diff --git a/.agents/skills/cli-admin/SKILL.md b/.agents/skills/cli-admin/SKILL.md index 9fd10260e9..cbd2e9892f 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 30 tables and 12 custom operations +description: CLI tool (csdk) for the admin API — provides CRUD commands for 26 tables and 4 custom operations --- # cli-admin -CLI tool (csdk) for the admin API — provides CRUD commands for 30 tables and 12 custom operations +CLI tool (csdk) for the admin API — provides CRUD commands for 26 tables and 4 custom operations ## Usage @@ -57,18 +57,18 @@ See the `references/` directory for detailed per-entity API documentation: - [auth](references/auth.md) - [config](references/config.md) - [app-admin-grant](references/app-admin-grant.md) +- [app-capability-default-capability](references/app-capability-default-capability.md) +- [app-capability-default-grant](references/app-capability-default-grant.md) - [app-claimed-invite](references/app-claimed-invite.md) - [app-grant](references/app-grant.md) - [app-invite](references/app-invite.md) - [app-membership](references/app-membership.md) - [app-membership-default](references/app-membership-default.md) - [app-owner-grant](references/app-owner-grant.md) -- [app-permission](references/app-permission.md) -- [app-permission-default](references/app-permission-default.md) -- [app-permission-default-grant](references/app-permission-default-grant.md) -- [app-permission-default-permission](references/app-permission-default-permission.md) - [membership-type](references/membership-type.md) - [org-admin-grant](references/org-admin-grant.md) +- [org-capability-default-capability](references/org-capability-default-capability.md) +- [org-capability-default-grant](references/org-capability-default-grant.md) - [org-chart-edge](references/org-chart-edge.md) - [org-chart-edge-grant](references/org-chart-edge-grant.md) - [org-claimed-invite](references/org-claimed-invite.md) @@ -82,19 +82,7 @@ See the `references/` directory for detailed per-entity API documentation: - [org-membership-default](references/org-membership-default.md) - [org-membership-setting](references/org-membership-setting.md) - [org-owner-grant](references/org-owner-grant.md) -- [org-permission](references/org-permission.md) -- [org-permission-default](references/org-permission-default.md) -- [org-permission-default-grant](references/org-permission-default-grant.md) -- [org-permission-default-permission](references/org-permission-default-permission.md) -- [app-permissions-get-by-mask](references/app-permissions-get-by-mask.md) -- [app-permissions-get-mask](references/app-permissions-get-mask.md) -- [app-permissions-get-mask-by-names](references/app-permissions-get-mask-by-names.md) -- [app-permissions-get-padded-mask](references/app-permissions-get-padded-mask.md) - [org-is-manager-of](references/org-is-manager-of.md) -- [org-permissions-get-by-mask](references/org-permissions-get-by-mask.md) -- [org-permissions-get-mask](references/org-permissions-get-mask.md) -- [org-permissions-get-mask-by-names](references/org-permissions-get-mask-by-names.md) -- [org-permissions-get-padded-mask](references/org-permissions-get-padded-mask.md) - [provision-bucket](references/provision-bucket.md) - [submit-app-invite-code](references/submit-app-invite-code.md) - [submit-org-invite-code](references/submit-org-invite-code.md) diff --git a/.agents/skills/cli-admin/references/app-capability-default-capability.md b/.agents/skills/cli-admin/references/app-capability-default-capability.md new file mode 100644 index 0000000000..92ce65bdf7 --- /dev/null +++ b/.agents/skills/cli-admin/references/app-capability-default-capability.md @@ -0,0 +1,68 @@ +# appCapabilityDefaultCapability + + + +CRUD operations for AppCapabilityDefaultCapability records via csdk CLI + +## Usage + +```bash +csdk app-capability-default-capability list +csdk app-capability-default-capability list --where.. --orderBy +csdk app-capability-default-capability list --limit 10 --after +csdk app-capability-default-capability find-first --where.. +csdk app-capability-default-capability get --id +csdk app-capability-default-capability create --capabilityId +csdk app-capability-default-capability update --id [--capabilityId ] +csdk app-capability-default-capability delete --id +``` + +## Examples + +### List appCapabilityDefaultCapability records + +```bash +csdk app-capability-default-capability list +``` + +### List appCapabilityDefaultCapability records with pagination + +```bash +csdk app-capability-default-capability list --limit 10 --offset 0 +``` + +### List appCapabilityDefaultCapability records with cursor pagination + +```bash +csdk app-capability-default-capability list --limit 10 --after +``` + +### Find first matching appCapabilityDefaultCapability + +```bash +csdk app-capability-default-capability find-first --where.id.equalTo +``` + +### List appCapabilityDefaultCapability records with field selection + +```bash +csdk app-capability-default-capability list --select id,id +``` + +### List appCapabilityDefaultCapability records with filtering and ordering + +```bash +csdk app-capability-default-capability list --where.id.equalTo --orderBy ID_ASC +``` + +### Create a appCapabilityDefaultCapability + +```bash +csdk app-capability-default-capability create --capabilityId +``` + +### Get a appCapabilityDefaultCapability by id + +```bash +csdk app-capability-default-capability get --id +``` diff --git a/.agents/skills/cli-admin/references/app-capability-default-grant.md b/.agents/skills/cli-admin/references/app-capability-default-grant.md new file mode 100644 index 0000000000..408ee1aa0d --- /dev/null +++ b/.agents/skills/cli-admin/references/app-capability-default-grant.md @@ -0,0 +1,68 @@ +# appCapabilityDefaultGrant + + + +CRUD operations for AppCapabilityDefaultGrant records via csdk CLI + +## Usage + +```bash +csdk app-capability-default-grant list +csdk app-capability-default-grant list --where.. --orderBy +csdk app-capability-default-grant list --limit 10 --after +csdk app-capability-default-grant find-first --where.. +csdk app-capability-default-grant get --id +csdk app-capability-default-grant create --capabilityId [--grantorId ] [--isGrant ] +csdk app-capability-default-grant update --id [--capabilityId ] [--grantorId ] [--isGrant ] +csdk app-capability-default-grant delete --id +``` + +## Examples + +### List appCapabilityDefaultGrant records + +```bash +csdk app-capability-default-grant list +``` + +### List appCapabilityDefaultGrant records with pagination + +```bash +csdk app-capability-default-grant list --limit 10 --offset 0 +``` + +### List appCapabilityDefaultGrant records with cursor pagination + +```bash +csdk app-capability-default-grant list --limit 10 --after +``` + +### Find first matching appCapabilityDefaultGrant + +```bash +csdk app-capability-default-grant find-first --where.id.equalTo +``` + +### List appCapabilityDefaultGrant records with field selection + +```bash +csdk app-capability-default-grant list --select id,id +``` + +### List appCapabilityDefaultGrant records with filtering and ordering + +```bash +csdk app-capability-default-grant list --where.id.equalTo --orderBy ID_ASC +``` + +### Create a appCapabilityDefaultGrant + +```bash +csdk app-capability-default-grant create --capabilityId [--grantorId ] [--isGrant ] +``` + +### Get a appCapabilityDefaultGrant by id + +```bash +csdk app-capability-default-grant get --id +``` diff --git a/.agents/skills/cli-admin/references/app-grant.md b/.agents/skills/cli-admin/references/app-grant.md index 650e3ddcd1..56706c06b3 100644 --- a/.agents/skills/cli-admin/references/app-grant.md +++ b/.agents/skills/cli-admin/references/app-grant.md @@ -12,8 +12,8 @@ csdk app-grant list --where.. --orderBy csdk app-grant list --limit 10 --after csdk app-grant find-first --where.. csdk app-grant get --id -csdk app-grant create [--actorId ] [--grantorId ] [--isGrant ] [--permissions ] -csdk app-grant update --id [--actorId ] [--grantorId ] [--isGrant ] [--permissions ] +csdk app-grant create [--actorId ] [--capabilities ] [--grantorId ] [--isGrant ] +csdk app-grant update --id [--actorId ] [--capabilities ] [--grantorId ] [--isGrant ] csdk app-grant delete --id ``` @@ -58,7 +58,7 @@ csdk app-grant list --where.id.equalTo --orderBy ID_ASC ### Create a appGrant ```bash -csdk app-grant create [--actorId ] [--grantorId ] [--isGrant ] [--permissions ] +csdk app-grant create [--actorId ] [--capabilities ] [--grantorId ] [--isGrant ] ``` ### Get a appGrant by id diff --git a/.agents/skills/cli-admin/references/app-membership.md b/.agents/skills/cli-admin/references/app-membership.md index bb7ce73260..d25356c398 100644 --- a/.agents/skills/cli-admin/references/app-membership.md +++ b/.agents/skills/cli-admin/references/app-membership.md @@ -12,8 +12,8 @@ csdk app-membership list --where.. --orderBy csdk app-membership list --limit 10 --after csdk app-membership find-first --where.. csdk app-membership get --id -csdk app-membership create --actorId [--createdBy ] [--granted ] [--isActive ] [--isAdmin ] [--isApproved ] [--isBanned ] [--isDisabled ] [--isOwner ] [--isVerified ] [--permissions ] [--profileId ] [--updatedBy ] -csdk app-membership update --id [--actorId ] [--createdBy ] [--granted ] [--isActive ] [--isAdmin ] [--isApproved ] [--isBanned ] [--isDisabled ] [--isOwner ] [--isVerified ] [--permissions ] [--profileId ] [--updatedBy ] +csdk app-membership create --actorId [--capabilities ] [--createdBy ] [--granted ] [--isActive ] [--isAdmin ] [--isApproved ] [--isBanned ] [--isDisabled ] [--isOwner ] [--isVerified ] [--profileId ] [--updatedBy ] +csdk app-membership update --id [--actorId ] [--capabilities ] [--createdBy ] [--granted ] [--isActive ] [--isAdmin ] [--isApproved ] [--isBanned ] [--isDisabled ] [--isOwner ] [--isVerified ] [--profileId ] [--updatedBy ] csdk app-membership delete --id ``` @@ -58,7 +58,7 @@ csdk app-membership list --where.id.equalTo --orderBy ID_ASC ### Create a appMembership ```bash -csdk app-membership create --actorId [--createdBy ] [--granted ] [--isActive ] [--isAdmin ] [--isApproved ] [--isBanned ] [--isDisabled ] [--isOwner ] [--isVerified ] [--permissions ] [--profileId ] [--updatedBy ] +csdk app-membership create --actorId [--capabilities ] [--createdBy ] [--granted ] [--isActive ] [--isAdmin ] [--isApproved ] [--isBanned ] [--isDisabled ] [--isOwner ] [--isVerified ] [--profileId ] [--updatedBy ] ``` ### Get a appMembership by id diff --git a/.agents/skills/cli-admin/references/org-capability-default-capability.md b/.agents/skills/cli-admin/references/org-capability-default-capability.md new file mode 100644 index 0000000000..649e537027 --- /dev/null +++ b/.agents/skills/cli-admin/references/org-capability-default-capability.md @@ -0,0 +1,68 @@ +# orgCapabilityDefaultCapability + + + +CRUD operations for OrgCapabilityDefaultCapability records via csdk CLI + +## Usage + +```bash +csdk org-capability-default-capability list +csdk org-capability-default-capability list --where.. --orderBy +csdk org-capability-default-capability list --limit 10 --after +csdk org-capability-default-capability find-first --where.. +csdk org-capability-default-capability get --id +csdk org-capability-default-capability create --capabilityId --entityId +csdk org-capability-default-capability update --id [--capabilityId ] [--entityId ] +csdk org-capability-default-capability delete --id +``` + +## Examples + +### List orgCapabilityDefaultCapability records + +```bash +csdk org-capability-default-capability list +``` + +### List orgCapabilityDefaultCapability records with pagination + +```bash +csdk org-capability-default-capability list --limit 10 --offset 0 +``` + +### List orgCapabilityDefaultCapability records with cursor pagination + +```bash +csdk org-capability-default-capability list --limit 10 --after +``` + +### Find first matching orgCapabilityDefaultCapability + +```bash +csdk org-capability-default-capability find-first --where.id.equalTo +``` + +### List orgCapabilityDefaultCapability records with field selection + +```bash +csdk org-capability-default-capability list --select id,id +``` + +### List orgCapabilityDefaultCapability records with filtering and ordering + +```bash +csdk org-capability-default-capability list --where.id.equalTo --orderBy ID_ASC +``` + +### Create a orgCapabilityDefaultCapability + +```bash +csdk org-capability-default-capability create --capabilityId --entityId +``` + +### Get a orgCapabilityDefaultCapability by id + +```bash +csdk org-capability-default-capability get --id +``` diff --git a/.agents/skills/cli-admin/references/org-capability-default-grant.md b/.agents/skills/cli-admin/references/org-capability-default-grant.md new file mode 100644 index 0000000000..3bde558d05 --- /dev/null +++ b/.agents/skills/cli-admin/references/org-capability-default-grant.md @@ -0,0 +1,68 @@ +# orgCapabilityDefaultGrant + + + +CRUD operations for OrgCapabilityDefaultGrant records via csdk CLI + +## Usage + +```bash +csdk org-capability-default-grant list +csdk org-capability-default-grant list --where.. --orderBy +csdk org-capability-default-grant list --limit 10 --after +csdk org-capability-default-grant find-first --where.. +csdk org-capability-default-grant get --id +csdk org-capability-default-grant create --capabilityId --entityId [--grantorId ] [--isGrant ] +csdk org-capability-default-grant update --id [--capabilityId ] [--entityId ] [--grantorId ] [--isGrant ] +csdk org-capability-default-grant delete --id +``` + +## Examples + +### List orgCapabilityDefaultGrant records + +```bash +csdk org-capability-default-grant list +``` + +### List orgCapabilityDefaultGrant records with pagination + +```bash +csdk org-capability-default-grant list --limit 10 --offset 0 +``` + +### List orgCapabilityDefaultGrant records with cursor pagination + +```bash +csdk org-capability-default-grant list --limit 10 --after +``` + +### Find first matching orgCapabilityDefaultGrant + +```bash +csdk org-capability-default-grant find-first --where.id.equalTo +``` + +### List orgCapabilityDefaultGrant records with field selection + +```bash +csdk org-capability-default-grant list --select id,id +``` + +### List orgCapabilityDefaultGrant records with filtering and ordering + +```bash +csdk org-capability-default-grant list --where.id.equalTo --orderBy ID_ASC +``` + +### Create a orgCapabilityDefaultGrant + +```bash +csdk org-capability-default-grant create --capabilityId --entityId [--grantorId ] [--isGrant ] +``` + +### Get a orgCapabilityDefaultGrant by id + +```bash +csdk org-capability-default-grant get --id +``` diff --git a/.agents/skills/cli-admin/references/org-grant.md b/.agents/skills/cli-admin/references/org-grant.md index e8da74b3de..ab9963ce5c 100644 --- a/.agents/skills/cli-admin/references/org-grant.md +++ b/.agents/skills/cli-admin/references/org-grant.md @@ -12,8 +12,8 @@ csdk org-grant list --where.. --orderBy csdk org-grant list --limit 10 --after csdk org-grant find-first --where.. csdk org-grant get --id -csdk org-grant create --entityId [--actorId ] [--grantorId ] [--isGrant ] [--permissions ] -csdk org-grant update --id [--actorId ] [--entityId ] [--grantorId ] [--isGrant ] [--permissions ] +csdk org-grant create --entityId [--actorId ] [--capabilities ] [--grantorId ] [--isGrant ] +csdk org-grant update --id [--actorId ] [--capabilities ] [--entityId ] [--grantorId ] [--isGrant ] csdk org-grant delete --id ``` @@ -58,7 +58,7 @@ csdk org-grant list --where.id.equalTo --orderBy ID_ASC ### Create a orgGrant ```bash -csdk org-grant create --entityId [--actorId ] [--grantorId ] [--isGrant ] [--permissions ] +csdk org-grant create --entityId [--actorId ] [--capabilities ] [--grantorId ] [--isGrant ] ``` ### Get a orgGrant by id diff --git a/.agents/skills/cli-admin/references/org-membership.md b/.agents/skills/cli-admin/references/org-membership.md index 70c1f1d893..2424d5957a 100644 --- a/.agents/skills/cli-admin/references/org-membership.md +++ b/.agents/skills/cli-admin/references/org-membership.md @@ -12,8 +12,8 @@ csdk org-membership list --where.. --orderBy csdk org-membership list --limit 10 --after csdk org-membership find-first --where.. csdk org-membership get --id -csdk org-membership create --actorId --entityId [--createdBy ] [--granted ] [--isActive ] [--isAdmin ] [--isApproved ] [--isBanned ] [--isDisabled ] [--isExternal ] [--isOwner ] [--isReadOnly ] [--permissions ] [--profileId ] [--updatedBy ] -csdk org-membership update --id [--actorId ] [--createdBy ] [--entityId ] [--granted ] [--isActive ] [--isAdmin ] [--isApproved ] [--isBanned ] [--isDisabled ] [--isExternal ] [--isOwner ] [--isReadOnly ] [--permissions ] [--profileId ] [--updatedBy ] +csdk org-membership create --actorId --entityId [--capabilities ] [--createdBy ] [--granted ] [--isActive ] [--isAdmin ] [--isApproved ] [--isBanned ] [--isDisabled ] [--isExternal ] [--isOwner ] [--isReadOnly ] [--profileId ] [--updatedBy ] +csdk org-membership update --id [--actorId ] [--capabilities ] [--createdBy ] [--entityId ] [--granted ] [--isActive ] [--isAdmin ] [--isApproved ] [--isBanned ] [--isDisabled ] [--isExternal ] [--isOwner ] [--isReadOnly ] [--profileId ] [--updatedBy ] csdk org-membership delete --id ``` @@ -58,7 +58,7 @@ csdk org-membership list --where.id.equalTo --orderBy ID_ASC ### Create a orgMembership ```bash -csdk org-membership create --actorId --entityId [--createdBy ] [--granted ] [--isActive ] [--isAdmin ] [--isApproved ] [--isBanned ] [--isDisabled ] [--isExternal ] [--isOwner ] [--isReadOnly ] [--permissions ] [--profileId ] [--updatedBy ] +csdk org-membership create --actorId --entityId [--capabilities ] [--createdBy ] [--granted ] [--isActive ] [--isAdmin ] [--isApproved ] [--isBanned ] [--isDisabled ] [--isExternal ] [--isOwner ] [--isReadOnly ] [--profileId ] [--updatedBy ] ``` ### Get a orgMembership by id diff --git a/.agents/skills/cli-api/SKILL.md b/.agents/skills/cli-api/SKILL.md index 309d60d810..4c1f8ca04c 100644 --- a/.agents/skills/cli-api/SKILL.md +++ b/.agents/skills/cli-api/SKILL.md @@ -1,13 +1,13 @@ --- name: cli-api -description: CLI tool (csdk) for the api API — provides CRUD commands for 80 tables and 17 custom operations +description: CLI tool (csdk) for the api API — provides CRUD commands for 86 tables and 17 custom operations --- # cli-api -CLI tool (csdk) for the api API — provides CRUD commands for 80 tables and 17 custom operations +CLI tool (csdk) for the api API — provides CRUD commands for 86 tables and 17 custom operations ## Usage @@ -23,13 +23,13 @@ csdk auth set-token csdk config set csdk config get -# CRUD for any table (e.g. api-schema) -csdk api-schema list -csdk api-schema get --id -csdk api-schema create -- +# CRUD for any table (e.g. api) +csdk api list +csdk api get --id +csdk api create -- # Non-interactive mode (skip all prompts, use flags only) -csdk --no-tty api-schema list +csdk --no-tty api list ``` ## Examples @@ -40,13 +40,13 @@ csdk --no-tty api-schema list csdk context create local --endpoint http://localhost:5000/graphql csdk context use local csdk auth set-token -csdk api-schema list +csdk api list ``` ### Non-interactive mode (for scripts and CI) ```bash -csdk --no-tty api-schema create -- +csdk --no-tty api create -- ``` ## References @@ -56,9 +56,9 @@ See the `references/` directory for detailed per-entity API documentation: - [context](references/context.md) - [auth](references/auth.md) - [config](references/config.md) +- [api](references/api.md) - [api-schema](references/api-schema.md) - [api-setting](references/api-setting.md) -- [apis](references/apis.md) - [ast-migration](references/ast-migration.md) - [check-constraint](references/check-constraint.md) - [composite-type](references/composite-type.md) @@ -72,6 +72,9 @@ See the `references/` directory for detailed per-entity API documentation: - [domain-event](references/domain-event.md) - [domain-type](references/domain-type.md) - [domain-verification](references/domain-verification.md) +- [email-identity](references/email-identity.md) +- [email-provider-account](references/email-provider-account.md) +- [email-site-identity](references/email-site-identity.md) - [embedding-chunk](references/embedding-chunk.md) - [enum](references/enum.md) - [exclusion-constraint](references/exclusion-constraint.md) @@ -88,13 +91,16 @@ See the `references/` directory for detailed per-entity API documentation: - [node-type-registry](references/node-type-registry.md) - [page](references/page.md) - [partition](references/partition.md) +- [platform-api](references/platform-api.md) - [platform-api-schema](references/platform-api-schema.md) - [platform-api-setting](references/platform-api-setting.md) -- [platform-apis](references/platform-apis.md) - [platform-cors-setting](references/platform-cors-setting.md) - [platform-domain](references/platform-domain.md) - [platform-domain-event](references/platform-domain-event.md) - [platform-domain-verification](references/platform-domain-verification.md) +- [platform-email-identity](references/platform-email-identity.md) +- [platform-email-provider-account](references/platform-email-provider-account.md) +- [platform-email-site-identity](references/platform-email-site-identity.md) - [platform-managed-domain](references/platform-managed-domain.md) - [platform-page](references/platform-page.md) - [platform-site-app-link](references/platform-site-app-link.md) diff --git a/.agents/skills/cli-api/references/email-identity.md b/.agents/skills/cli-api/references/email-identity.md new file mode 100644 index 0000000000..ded83f75ea --- /dev/null +++ b/.agents/skills/cli-api/references/email-identity.md @@ -0,0 +1,68 @@ +# emailIdentity + + + +CRUD operations for EmailIdentity records via csdk CLI + +## Usage + +```bash +csdk email-identity list +csdk email-identity list --where.. --orderBy +csdk email-identity list --limit 10 --after +csdk email-identity find-first --where.. +csdk email-identity get --id +csdk email-identity create --databaseId --fromAddress --name [--fromName ] [--isActive ] [--isDefault ] [--providerAccountId ] [--replyToAddress ] [--supportAddress ] [--transportMode ] +csdk email-identity update --id [--databaseId ] [--fromAddress ] [--fromName ] [--isActive ] [--isDefault ] [--name ] [--providerAccountId ] [--replyToAddress ] [--supportAddress ] [--transportMode ] +csdk email-identity delete --id +``` + +## Examples + +### List emailIdentity records + +```bash +csdk email-identity list +``` + +### List emailIdentity records with pagination + +```bash +csdk email-identity list --limit 10 --offset 0 +``` + +### List emailIdentity records with cursor pagination + +```bash +csdk email-identity list --limit 10 --after +``` + +### Find first matching emailIdentity + +```bash +csdk email-identity find-first --where.id.equalTo +``` + +### List emailIdentity records with field selection + +```bash +csdk email-identity list --select id,id +``` + +### List emailIdentity records with filtering and ordering + +```bash +csdk email-identity list --where.id.equalTo --orderBy ID_ASC +``` + +### Create a emailIdentity + +```bash +csdk email-identity create --databaseId --fromAddress --name [--fromName ] [--isActive ] [--isDefault ] [--providerAccountId ] [--replyToAddress ] [--supportAddress ] [--transportMode ] +``` + +### Get a emailIdentity by id + +```bash +csdk email-identity get --id +``` diff --git a/.agents/skills/cli-api/references/email-provider-account.md b/.agents/skills/cli-api/references/email-provider-account.md new file mode 100644 index 0000000000..eac6921e7d --- /dev/null +++ b/.agents/skills/cli-api/references/email-provider-account.md @@ -0,0 +1,68 @@ +# emailProviderAccount + + + +CRUD operations for EmailProviderAccount records via csdk CLI + +## Usage + +```bash +csdk email-provider-account list +csdk email-provider-account list --where.. --orderBy +csdk email-provider-account list --limit 10 --after +csdk email-provider-account find-first --where.. +csdk email-provider-account get --id +csdk email-provider-account create --credentialsSecretName --databaseId --name --provider [--apiBaseUrl ] [--isActive ] [--providerAccountName ] [--region ] [--smtpHost ] [--smtpPort ] [--smtpSecure ] [--smtpUser ] [--webhookSigningSecretName ] +csdk email-provider-account update --id [--apiBaseUrl ] [--credentialsSecretName ] [--databaseId ] [--isActive ] [--name ] [--provider ] [--providerAccountName ] [--region ] [--smtpHost ] [--smtpPort ] [--smtpSecure ] [--smtpUser ] [--webhookSigningSecretName ] +csdk email-provider-account delete --id +``` + +## Examples + +### List emailProviderAccount records + +```bash +csdk email-provider-account list +``` + +### List emailProviderAccount records with pagination + +```bash +csdk email-provider-account list --limit 10 --offset 0 +``` + +### List emailProviderAccount records with cursor pagination + +```bash +csdk email-provider-account list --limit 10 --after +``` + +### Find first matching emailProviderAccount + +```bash +csdk email-provider-account find-first --where.id.equalTo +``` + +### List emailProviderAccount records with field selection + +```bash +csdk email-provider-account list --select id,id +``` + +### List emailProviderAccount records with filtering and ordering + +```bash +csdk email-provider-account list --where.id.equalTo --orderBy ID_ASC +``` + +### Create a emailProviderAccount + +```bash +csdk email-provider-account create --credentialsSecretName --databaseId --name --provider [--apiBaseUrl ] [--isActive ] [--providerAccountName ] [--region ] [--smtpHost ] [--smtpPort ] [--smtpSecure ] [--smtpUser ] [--webhookSigningSecretName ] +``` + +### Get a emailProviderAccount by id + +```bash +csdk email-provider-account get --id +``` diff --git a/.agents/skills/cli-api/references/email-site-identity.md b/.agents/skills/cli-api/references/email-site-identity.md new file mode 100644 index 0000000000..cf1208ff94 --- /dev/null +++ b/.agents/skills/cli-api/references/email-site-identity.md @@ -0,0 +1,68 @@ +# emailSiteIdentity + + + +CRUD operations for EmailSiteIdentity records via csdk CLI + +## Usage + +```bash +csdk email-site-identity list +csdk email-site-identity list --where.. --orderBy +csdk email-site-identity list --limit 10 --after +csdk email-site-identity find-first --where.. +csdk email-site-identity get --id +csdk email-site-identity create --databaseId --emailIdentityId --siteId +csdk email-site-identity update --id [--databaseId ] [--emailIdentityId ] [--siteId ] +csdk email-site-identity delete --id +``` + +## Examples + +### List emailSiteIdentity records + +```bash +csdk email-site-identity list +``` + +### List emailSiteIdentity records with pagination + +```bash +csdk email-site-identity list --limit 10 --offset 0 +``` + +### List emailSiteIdentity records with cursor pagination + +```bash +csdk email-site-identity list --limit 10 --after +``` + +### Find first matching emailSiteIdentity + +```bash +csdk email-site-identity find-first --where.id.equalTo +``` + +### List emailSiteIdentity records with field selection + +```bash +csdk email-site-identity list --select id,id +``` + +### List emailSiteIdentity records with filtering and ordering + +```bash +csdk email-site-identity list --where.id.equalTo --orderBy ID_ASC +``` + +### Create a emailSiteIdentity + +```bash +csdk email-site-identity create --databaseId --emailIdentityId --siteId +``` + +### Get a emailSiteIdentity by id + +```bash +csdk email-site-identity get --id +``` diff --git a/.agents/skills/cli-api/references/platform-email-identity.md b/.agents/skills/cli-api/references/platform-email-identity.md new file mode 100644 index 0000000000..a5230fbfe7 --- /dev/null +++ b/.agents/skills/cli-api/references/platform-email-identity.md @@ -0,0 +1,68 @@ +# platformEmailIdentity + + + +CRUD operations for PlatformEmailIdentity records via csdk CLI + +## Usage + +```bash +csdk platform-email-identity list +csdk platform-email-identity list --where.. --orderBy +csdk platform-email-identity list --limit 10 --after +csdk platform-email-identity find-first --where.. +csdk platform-email-identity get --id +csdk platform-email-identity create --fromAddress --name [--fromName ] [--isActive ] [--isDefault ] [--providerAccountId ] [--replyToAddress ] [--supportAddress ] [--transportMode ] +csdk platform-email-identity update --id [--fromAddress ] [--fromName ] [--isActive ] [--isDefault ] [--name ] [--providerAccountId ] [--replyToAddress ] [--supportAddress ] [--transportMode ] +csdk platform-email-identity delete --id +``` + +## Examples + +### List platformEmailIdentity records + +```bash +csdk platform-email-identity list +``` + +### List platformEmailIdentity records with pagination + +```bash +csdk platform-email-identity list --limit 10 --offset 0 +``` + +### List platformEmailIdentity records with cursor pagination + +```bash +csdk platform-email-identity list --limit 10 --after +``` + +### Find first matching platformEmailIdentity + +```bash +csdk platform-email-identity find-first --where.id.equalTo +``` + +### List platformEmailIdentity records with field selection + +```bash +csdk platform-email-identity list --select id,id +``` + +### List platformEmailIdentity records with filtering and ordering + +```bash +csdk platform-email-identity list --where.id.equalTo --orderBy ID_ASC +``` + +### Create a platformEmailIdentity + +```bash +csdk platform-email-identity create --fromAddress --name [--fromName ] [--isActive ] [--isDefault ] [--providerAccountId ] [--replyToAddress ] [--supportAddress ] [--transportMode ] +``` + +### Get a platformEmailIdentity by id + +```bash +csdk platform-email-identity get --id +``` diff --git a/.agents/skills/cli-api/references/platform-email-provider-account.md b/.agents/skills/cli-api/references/platform-email-provider-account.md new file mode 100644 index 0000000000..053e088990 --- /dev/null +++ b/.agents/skills/cli-api/references/platform-email-provider-account.md @@ -0,0 +1,68 @@ +# platformEmailProviderAccount + + + +CRUD operations for PlatformEmailProviderAccount records via csdk CLI + +## Usage + +```bash +csdk platform-email-provider-account list +csdk platform-email-provider-account list --where.. --orderBy +csdk platform-email-provider-account list --limit 10 --after +csdk platform-email-provider-account find-first --where.. +csdk platform-email-provider-account get --id +csdk platform-email-provider-account create --credentialsSecretName --name --provider [--apiBaseUrl ] [--isActive ] [--providerAccountName ] [--region ] [--smtpHost ] [--smtpPort ] [--smtpSecure ] [--smtpUser ] [--webhookSigningSecretName ] +csdk platform-email-provider-account update --id [--apiBaseUrl ] [--credentialsSecretName ] [--isActive ] [--name ] [--provider ] [--providerAccountName ] [--region ] [--smtpHost ] [--smtpPort ] [--smtpSecure ] [--smtpUser ] [--webhookSigningSecretName ] +csdk platform-email-provider-account delete --id +``` + +## Examples + +### List platformEmailProviderAccount records + +```bash +csdk platform-email-provider-account list +``` + +### List platformEmailProviderAccount records with pagination + +```bash +csdk platform-email-provider-account list --limit 10 --offset 0 +``` + +### List platformEmailProviderAccount records with cursor pagination + +```bash +csdk platform-email-provider-account list --limit 10 --after +``` + +### Find first matching platformEmailProviderAccount + +```bash +csdk platform-email-provider-account find-first --where.id.equalTo +``` + +### List platformEmailProviderAccount records with field selection + +```bash +csdk platform-email-provider-account list --select id,id +``` + +### List platformEmailProviderAccount records with filtering and ordering + +```bash +csdk platform-email-provider-account list --where.id.equalTo --orderBy ID_ASC +``` + +### Create a platformEmailProviderAccount + +```bash +csdk platform-email-provider-account create --credentialsSecretName --name --provider [--apiBaseUrl ] [--isActive ] [--providerAccountName ] [--region ] [--smtpHost ] [--smtpPort ] [--smtpSecure ] [--smtpUser ] [--webhookSigningSecretName ] +``` + +### Get a platformEmailProviderAccount by id + +```bash +csdk platform-email-provider-account get --id +``` diff --git a/.agents/skills/cli-api/references/platform-email-site-identity.md b/.agents/skills/cli-api/references/platform-email-site-identity.md new file mode 100644 index 0000000000..480adf9ea9 --- /dev/null +++ b/.agents/skills/cli-api/references/platform-email-site-identity.md @@ -0,0 +1,68 @@ +# platformEmailSiteIdentity + + + +CRUD operations for PlatformEmailSiteIdentity records via csdk CLI + +## Usage + +```bash +csdk platform-email-site-identity list +csdk platform-email-site-identity list --where.. --orderBy +csdk platform-email-site-identity list --limit 10 --after +csdk platform-email-site-identity find-first --where.. +csdk platform-email-site-identity get --id +csdk platform-email-site-identity create --emailIdentityId --siteId +csdk platform-email-site-identity update --id [--emailIdentityId ] [--siteId ] +csdk platform-email-site-identity delete --id +``` + +## Examples + +### List platformEmailSiteIdentity records + +```bash +csdk platform-email-site-identity list +``` + +### List platformEmailSiteIdentity records with pagination + +```bash +csdk platform-email-site-identity list --limit 10 --offset 0 +``` + +### List platformEmailSiteIdentity records with cursor pagination + +```bash +csdk platform-email-site-identity list --limit 10 --after +``` + +### Find first matching platformEmailSiteIdentity + +```bash +csdk platform-email-site-identity find-first --where.id.equalTo +``` + +### List platformEmailSiteIdentity records with field selection + +```bash +csdk platform-email-site-identity list --select id,id +``` + +### List platformEmailSiteIdentity records with filtering and ordering + +```bash +csdk platform-email-site-identity list --where.id.equalTo --orderBy ID_ASC +``` + +### Create a platformEmailSiteIdentity + +```bash +csdk platform-email-site-identity create --emailIdentityId --siteId +``` + +### Get a platformEmailSiteIdentity by id + +```bash +csdk platform-email-site-identity get --id +``` diff --git a/.agents/skills/cli-auth/SKILL.md b/.agents/skills/cli-auth/SKILL.md index 467e1e4a8f..b6d0b1a587 100644 --- a/.agents/skills/cli-auth/SKILL.md +++ b/.agents/skills/cli-auth/SKILL.md @@ -1,13 +1,13 @@ --- name: cli-auth -description: CLI tool (csdk) for the auth API — provides CRUD commands for 13 tables and 35 custom operations +description: CLI tool (csdk) for the auth API — provides CRUD commands for 13 tables and 37 custom operations --- # cli-auth -CLI tool (csdk) for the auth API — provides CRUD commands for 13 tables and 35 custom operations +CLI tool (csdk) for the auth API — provides CRUD commands for 13 tables and 37 custom operations ## Usage @@ -97,9 +97,11 @@ See the `references/` directory for detailed per-entity API documentation: - [set-password](references/set-password.md) - [sign-in](references/sign-in.md) - [sign-in-cross-origin](references/sign-in-cross-origin.md) +- [sign-in-magic-link](references/sign-in-magic-link.md) - [sign-in-sms-otp](references/sign-in-sms-otp.md) - [sign-out](references/sign-out.md) - [sign-up](references/sign-up.md) +- [sign-up-magic-link](references/sign-up-magic-link.md) - [sign-up-sms](references/sign-up-sms.md) - [verify-email](references/verify-email.md) - [verify-password](references/verify-password.md) diff --git a/.agents/skills/cli-auth/references/sign-in-magic-link.md b/.agents/skills/cli-auth/references/sign-in-magic-link.md new file mode 100644 index 0000000000..9df3331174 --- /dev/null +++ b/.agents/skills/cli-auth/references/sign-in-magic-link.md @@ -0,0 +1,19 @@ +# signInMagicLink + + + +Execute the signInMagicLink mutation + +## Usage + +```bash +csdk sign-in-magic-link --input.clientMutationId --input.credentialKind --input.deviceToken --input.rememberMe --input.token +``` + +## Examples + +### Run signInMagicLink + +```bash +csdk sign-in-magic-link --input.clientMutationId --input.credentialKind --input.deviceToken --input.rememberMe --input.token +``` diff --git a/.agents/skills/cli-auth/references/sign-up-magic-link.md b/.agents/skills/cli-auth/references/sign-up-magic-link.md new file mode 100644 index 0000000000..d580e89628 --- /dev/null +++ b/.agents/skills/cli-auth/references/sign-up-magic-link.md @@ -0,0 +1,19 @@ +# signUpMagicLink + + + +Execute the signUpMagicLink mutation + +## Usage + +```bash +csdk sign-up-magic-link --input.clientMutationId --input.credentialKind --input.deviceToken --input.rememberMe --input.token +``` + +## Examples + +### Run signUpMagicLink + +```bash +csdk sign-up-magic-link --input.clientMutationId --input.credentialKind --input.deviceToken --input.rememberMe --input.token +``` diff --git a/.agents/skills/cli-compute/SKILL.md b/.agents/skills/cli-compute/SKILL.md index 1523187de2..666ffae01e 100644 --- a/.agents/skills/cli-compute/SKILL.md +++ b/.agents/skills/cli-compute/SKILL.md @@ -1,13 +1,13 @@ --- name: cli-compute -description: CLI tool (csdk) for the compute API — provides CRUD commands for 69 tables and 29 custom operations +description: CLI tool (csdk) for the compute API — provides CRUD commands for 70 tables and 38 custom operations --- # cli-compute -CLI tool (csdk) for the compute API — provides CRUD commands for 69 tables and 29 custom operations +CLI tool (csdk) for the compute API — provides CRUD commands for 70 tables and 38 custom operations ## Usage @@ -23,13 +23,13 @@ csdk auth set-token csdk config set csdk config get -# CRUD for any table (e.g. db-preset) -csdk db-preset list -csdk db-preset get --id -csdk db-preset create -- +# CRUD for any table (e.g. content-preset) +csdk content-preset list +csdk content-preset get --id +csdk content-preset create -- # Non-interactive mode (skip all prompts, use flags only) -csdk --no-tty db-preset list +csdk --no-tty content-preset list ``` ## Examples @@ -40,13 +40,13 @@ csdk --no-tty db-preset list csdk context create local --endpoint http://localhost:5000/graphql csdk context use local csdk auth set-token -csdk db-preset list +csdk content-preset list ``` ### Non-interactive mode (for scripts and CI) ```bash -csdk --no-tty db-preset create -- +csdk --no-tty content-preset create -- ``` ## References @@ -56,6 +56,7 @@ See the `references/` directory for detailed per-entity API documentation: - [context](references/context.md) - [auth](references/auth.md) - [config](references/config.md) +- [content-preset](references/content-preset.md) - [db-preset](references/db-preset.md) - [function-api-binding](references/function-api-binding.md) - [function-capability-binding](references/function-capability-binding.md) @@ -135,12 +136,19 @@ See the `references/` directory for detailed per-entity API documentation: - [import-graph-json](references/import-graph-json.md) - [infra-init-empty-repo](references/infra-init-empty-repo.md) - [infra-insert-node-at-path](references/infra-insert-node-at-path.md) +- [infra-insert-nodes-at-paths](references/infra-insert-nodes-at-paths.md) +- [infra-set-and-commit](references/infra-set-and-commit.md) - [infra-set-data-at-path](references/infra-set-data-at-path.md) +- [infra-set-many-and-commit](references/infra-set-many-and-commit.md) - [init-empty-repo](references/init-empty-repo.md) - [insert-node-at-path](references/insert-node-at-path.md) +- [insert-nodes-at-paths](references/insert-nodes-at-paths.md) - [platform-infra-init-empty-repo](references/platform-infra-init-empty-repo.md) - [platform-infra-insert-node-at-path](references/platform-infra-insert-node-at-path.md) +- [platform-infra-insert-nodes-at-paths](references/platform-infra-insert-nodes-at-paths.md) +- [platform-infra-set-and-commit](references/platform-infra-set-and-commit.md) - [platform-infra-set-data-at-path](references/platform-infra-set-data-at-path.md) +- [platform-infra-set-many-and-commit](references/platform-infra-set-many-and-commit.md) - [platform-resource-installations-install](references/platform-resource-installations-install.md) - [platform-resource-installations-rollback](references/platform-resource-installations-rollback.md) - [platform-resource-installations-uninstall](references/platform-resource-installations-uninstall.md) @@ -151,6 +159,8 @@ See the `references/` directory for detailed per-entity API documentation: - [resource-installations-uninstall](references/resource-installations-uninstall.md) - [resource-installations-upgrade](references/resource-installations-upgrade.md) - [save-graph](references/save-graph.md) +- [set-and-commit](references/set-and-commit.md) - [set-data-at-path](references/set-data-at-path.md) +- [set-many-and-commit](references/set-many-and-commit.md) - [start-execution](references/start-execution.md) - [validate-function-graph](references/validate-function-graph.md) diff --git a/.agents/skills/cli-compute/references/content-preset.md b/.agents/skills/cli-compute/references/content-preset.md new file mode 100644 index 0000000000..aea512d5cb --- /dev/null +++ b/.agents/skills/cli-compute/references/content-preset.md @@ -0,0 +1,68 @@ +# contentPreset + + + +CRUD operations for ContentPreset records via csdk CLI + +## Usage + +```bash +csdk content-preset list +csdk content-preset list --where.. --orderBy +csdk content-preset list --limit 10 --after +csdk content-preset find-first --where.. +csdk content-preset get --id +csdk content-preset create --definition --kind --slug [--active ] [--commitId ] [--description ] [--label ] [--storeId ] +csdk content-preset update --id [--active ] [--commitId ] [--definition ] [--description ] [--kind ] [--label ] [--slug ] [--storeId ] +csdk content-preset delete --id +``` + +## Examples + +### List contentPreset records + +```bash +csdk content-preset list +``` + +### List contentPreset records with pagination + +```bash +csdk content-preset list --limit 10 --offset 0 +``` + +### List contentPreset records with cursor pagination + +```bash +csdk content-preset list --limit 10 --after +``` + +### Find first matching contentPreset + +```bash +csdk content-preset find-first --where.id.equalTo +``` + +### List contentPreset records with field selection + +```bash +csdk content-preset list --select id,id +``` + +### List contentPreset records with filtering and ordering + +```bash +csdk content-preset list --where.id.equalTo --orderBy ID_ASC +``` + +### Create a contentPreset + +```bash +csdk content-preset create --definition --kind --slug [--active ] [--commitId ] [--description ] [--label ] [--storeId ] +``` + +### Get a contentPreset by id + +```bash +csdk content-preset get --id +``` diff --git a/.agents/skills/cli-compute/references/function-definition.md b/.agents/skills/cli-compute/references/function-definition.md index 42f8c39b15..a3c0d48f6e 100644 --- a/.agents/skills/cli-compute/references/function-definition.md +++ b/.agents/skills/cli-compute/references/function-definition.md @@ -12,8 +12,8 @@ csdk function-definition list --where.. --orderBy csdk function-definition list --limit 10 --after csdk function-definition find-first --where.. csdk function-definition get --id -csdk function-definition create --category --databaseId --name [--accessChannels ] [--concurrency ] [--description ] [--fnCategory ] [--functionColumns ] [--graphId ] [--icon ] [--image ] [--inputs ] [--integrations ] [--isPublished ] [--maxAttempts ] [--moduleTable ] [--outputs ] [--payloadArgs ] [--priority ] [--props ] [--protected ] [--publishedAt ] [--queueName ] [--requiredBuckets ] [--requiredConfigs ] [--requiredModels ] [--requiredSecrets ] [--resources ] [--runtime ] [--scaleMax ] [--scaleMin ] [--targetFunction ] [--targetSchema ] [--timeoutSeconds ] [--volatile ] -csdk function-definition update --id [--accessChannels ] [--category ] [--concurrency ] [--databaseId ] [--description ] [--fnCategory ] [--functionColumns ] [--graphId ] [--icon ] [--image ] [--inputs ] [--integrations ] [--isPublished ] [--maxAttempts ] [--moduleTable ] [--name ] [--outputs ] [--payloadArgs ] [--priority ] [--props ] [--protected ] [--publishedAt ] [--queueName ] [--requiredBuckets ] [--requiredConfigs ] [--requiredModels ] [--requiredSecrets ] [--resources ] [--runtime ] [--scaleMax ] [--scaleMin ] [--targetFunction ] [--targetSchema ] [--timeoutSeconds ] [--volatile ] +csdk function-definition create --category --databaseId --name [--accessChannels ] [--concurrency ] [--description ] [--fnCategory ] [--functionColumns ] [--graphId ] [--icon ] [--image ] [--inputs ] [--integrations ] [--isPublished ] [--maxAttempts ] [--moduleTable ] [--outputs ] [--payloadArgs ] [--priority ] [--props ] [--protected ] [--publishedAt ] [--queueName ] [--requiredBuckets ] [--requiredConfigs ] [--requiredModels ] [--requiredModules ] [--requiredSecrets ] [--resources ] [--runtime ] [--scaleMax ] [--scaleMin ] [--targetFunction ] [--targetSchema ] [--timeoutSeconds ] [--volatile ] +csdk function-definition update --id [--accessChannels ] [--category ] [--concurrency ] [--databaseId ] [--description ] [--fnCategory ] [--functionColumns ] [--graphId ] [--icon ] [--image ] [--inputs ] [--integrations ] [--isPublished ] [--maxAttempts ] [--moduleTable ] [--name ] [--outputs ] [--payloadArgs ] [--priority ] [--props ] [--protected ] [--publishedAt ] [--queueName ] [--requiredBuckets ] [--requiredConfigs ] [--requiredModels ] [--requiredModules ] [--requiredSecrets ] [--resources ] [--runtime ] [--scaleMax ] [--scaleMin ] [--targetFunction ] [--targetSchema ] [--timeoutSeconds ] [--volatile ] csdk function-definition delete --id ``` @@ -58,7 +58,7 @@ csdk function-definition list --where.id.equalTo --orderBy ID_ASC ### Create a functionDefinition ```bash -csdk function-definition create --category --databaseId --name [--accessChannels ] [--concurrency ] [--description ] [--fnCategory ] [--functionColumns ] [--graphId ] [--icon ] [--image ] [--inputs ] [--integrations ] [--isPublished ] [--maxAttempts ] [--moduleTable ] [--outputs ] [--payloadArgs ] [--priority ] [--props ] [--protected ] [--publishedAt ] [--queueName ] [--requiredBuckets ] [--requiredConfigs ] [--requiredModels ] [--requiredSecrets ] [--resources ] [--runtime ] [--scaleMax ] [--scaleMin ] [--targetFunction ] [--targetSchema ] [--timeoutSeconds ] [--volatile ] +csdk function-definition create --category --databaseId --name [--accessChannels ] [--concurrency ] [--description ] [--fnCategory ] [--functionColumns ] [--graphId ] [--icon ] [--image ] [--inputs ] [--integrations ] [--isPublished ] [--maxAttempts ] [--moduleTable ] [--outputs ] [--payloadArgs ] [--priority ] [--props ] [--protected ] [--publishedAt ] [--queueName ] [--requiredBuckets ] [--requiredConfigs ] [--requiredModels ] [--requiredModules ] [--requiredSecrets ] [--resources ] [--runtime ] [--scaleMax ] [--scaleMin ] [--targetFunction ] [--targetSchema ] [--timeoutSeconds ] [--volatile ] ``` ### Get a functionDefinition by id diff --git a/.agents/skills/cli-compute/references/function-deployment.md b/.agents/skills/cli-compute/references/function-deployment.md index 7c2c6fcb08..c1ec3743d9 100644 --- a/.agents/skills/cli-compute/references/function-deployment.md +++ b/.agents/skills/cli-compute/references/function-deployment.md @@ -12,8 +12,8 @@ csdk function-deployment list --where.. --orderBy csdk function-deployment list --limit 10 --after csdk function-deployment find-first --where.. csdk function-deployment get --id -csdk function-deployment create --databaseId --image --namespaceId [--annotations ] [--concurrency ] [--errorCount ] [--handlerName ] [--imageVersion ] [--labels ] [--lastError ] [--lastErrorAt ] [--resources ] [--revision ] [--scaleMax ] [--scaleMin ] [--serviceName ] [--serviceUrl ] [--status ] [--timeoutSeconds ] -csdk function-deployment update --id [--annotations ] [--concurrency ] [--databaseId ] [--errorCount ] [--handlerName ] [--image ] [--imageVersion ] [--labels ] [--lastError ] [--lastErrorAt ] [--namespaceId ] [--resources ] [--revision ] [--scaleMax ] [--scaleMin ] [--serviceName ] [--serviceUrl ] [--status ] [--timeoutSeconds ] +csdk function-deployment create --databaseId --image --namespaceId [--annotations ] [--concurrency ] [--errorCount ] [--handlerName ] [--imageVersion ] [--labels ] [--lastError ] [--lastErrorAt ] [--realm ] [--resources ] [--revision ] [--scaleMax ] [--scaleMin ] [--serviceName ] [--serviceUrl ] [--status ] [--timeoutSeconds ] +csdk function-deployment update --id [--annotations ] [--concurrency ] [--databaseId ] [--errorCount ] [--handlerName ] [--image ] [--imageVersion ] [--labels ] [--lastError ] [--lastErrorAt ] [--namespaceId ] [--realm ] [--resources ] [--revision ] [--scaleMax ] [--scaleMin ] [--serviceName ] [--serviceUrl ] [--status ] [--timeoutSeconds ] csdk function-deployment delete --id ``` @@ -58,7 +58,7 @@ csdk function-deployment list --where.id.equalTo --orderBy ID_ASC ### Create a functionDeployment ```bash -csdk function-deployment create --databaseId --image --namespaceId [--annotations ] [--concurrency ] [--errorCount ] [--handlerName ] [--imageVersion ] [--labels ] [--lastError ] [--lastErrorAt ] [--resources ] [--revision ] [--scaleMax ] [--scaleMin ] [--serviceName ] [--serviceUrl ] [--status ] [--timeoutSeconds ] +csdk function-deployment create --databaseId --image --namespaceId [--annotations ] [--concurrency ] [--errorCount ] [--handlerName ] [--imageVersion ] [--labels ] [--lastError ] [--lastErrorAt ] [--realm ] [--resources ] [--revision ] [--scaleMax ] [--scaleMin ] [--serviceName ] [--serviceUrl ] [--status ] [--timeoutSeconds ] ``` ### Get a functionDeployment by id diff --git a/.agents/skills/cli-compute/references/infra-insert-nodes-at-paths.md b/.agents/skills/cli-compute/references/infra-insert-nodes-at-paths.md new file mode 100644 index 0000000000..2e1b239b6d --- /dev/null +++ b/.agents/skills/cli-compute/references/infra-insert-nodes-at-paths.md @@ -0,0 +1,19 @@ +# infraInsertNodesAtPaths + + + +Execute the infraInsertNodesAtPaths mutation + +## Usage + +```bash +csdk infra-insert-nodes-at-paths --input.clientMutationId --input.datas --input.kidsList --input.ktreeList --input.paths --input.root --input.sId +``` + +## Examples + +### Run infraInsertNodesAtPaths + +```bash +csdk infra-insert-nodes-at-paths --input.clientMutationId --input.datas --input.kidsList --input.ktreeList --input.paths --input.root --input.sId +``` diff --git a/.agents/skills/cli-compute/references/infra-set-and-commit.md b/.agents/skills/cli-compute/references/infra-set-and-commit.md new file mode 100644 index 0000000000..7666c08c3c --- /dev/null +++ b/.agents/skills/cli-compute/references/infra-set-and-commit.md @@ -0,0 +1,19 @@ +# infraSetAndCommit + + + +Execute the infraSetAndCommit mutation + +## Usage + +```bash +csdk infra-set-and-commit --input.clientMutationId --input.data --input.kids --input.ktree --input.message --input.path --input.refname --input.sId --input.storeId +``` + +## Examples + +### Run infraSetAndCommit + +```bash +csdk infra-set-and-commit --input.clientMutationId --input.data --input.kids --input.ktree --input.message --input.path --input.refname --input.sId --input.storeId +``` diff --git a/.agents/skills/cli-compute/references/infra-set-many-and-commit.md b/.agents/skills/cli-compute/references/infra-set-many-and-commit.md new file mode 100644 index 0000000000..2a8a6d7b35 --- /dev/null +++ b/.agents/skills/cli-compute/references/infra-set-many-and-commit.md @@ -0,0 +1,19 @@ +# infraSetManyAndCommit + + + +Execute the infraSetManyAndCommit mutation + +## Usage + +```bash +csdk infra-set-many-and-commit --input.clientMutationId --input.entries --input.message --input.refname --input.sId --input.storeId +``` + +## Examples + +### Run infraSetManyAndCommit + +```bash +csdk infra-set-many-and-commit --input.clientMutationId --input.entries --input.message --input.refname --input.sId --input.storeId +``` diff --git a/.agents/skills/cli-compute/references/insert-nodes-at-paths.md b/.agents/skills/cli-compute/references/insert-nodes-at-paths.md new file mode 100644 index 0000000000..f023c4ad2f --- /dev/null +++ b/.agents/skills/cli-compute/references/insert-nodes-at-paths.md @@ -0,0 +1,19 @@ +# insertNodesAtPaths + + + +Execute the insertNodesAtPaths mutation + +## Usage + +```bash +csdk insert-nodes-at-paths --input.clientMutationId --input.datas --input.kidsList --input.ktreeList --input.paths --input.root --input.sId +``` + +## Examples + +### Run insertNodesAtPaths + +```bash +csdk insert-nodes-at-paths --input.clientMutationId --input.datas --input.kidsList --input.ktreeList --input.paths --input.root --input.sId +``` diff --git a/.agents/skills/cli-compute/references/platform-function-definition.md b/.agents/skills/cli-compute/references/platform-function-definition.md index 0f4b696f46..092f56799a 100644 --- a/.agents/skills/cli-compute/references/platform-function-definition.md +++ b/.agents/skills/cli-compute/references/platform-function-definition.md @@ -12,8 +12,8 @@ csdk platform-function-definition list --where.. --orderBy csdk platform-function-definition find-first --where.. csdk platform-function-definition get --id -csdk platform-function-definition create --category --name [--accessChannels ] [--billable ] [--concurrency ] [--description ] [--fnCategory ] [--functionColumns ] [--graphId ] [--icon ] [--image ] [--inputs ] [--integrations ] [--isPublished ] [--maxAttempts ] [--moduleTable ] [--outputs ] [--payloadArgs ] [--priority ] [--props ] [--protected ] [--publishedAt ] [--queueName ] [--requiredBuckets ] [--requiredConfigs ] [--requiredModels ] [--requiredSecrets ] [--resources ] [--runtime ] [--scaleMax ] [--scaleMin ] [--system ] [--targetFunction ] [--targetSchema ] [--timeoutSeconds ] [--volatile ] -csdk platform-function-definition update --id [--accessChannels ] [--billable ] [--category ] [--concurrency ] [--description ] [--fnCategory ] [--functionColumns ] [--graphId ] [--icon ] [--image ] [--inputs ] [--integrations ] [--isPublished ] [--maxAttempts ] [--moduleTable ] [--name ] [--outputs ] [--payloadArgs ] [--priority ] [--props ] [--protected ] [--publishedAt ] [--queueName ] [--requiredBuckets ] [--requiredConfigs ] [--requiredModels ] [--requiredSecrets ] [--resources ] [--runtime ] [--scaleMax ] [--scaleMin ] [--system ] [--targetFunction ] [--targetSchema ] [--timeoutSeconds ] [--volatile ] +csdk platform-function-definition create --category --name [--accessChannels ] [--billable ] [--concurrency ] [--description ] [--fnCategory ] [--functionColumns ] [--graphId ] [--icon ] [--image ] [--inputs ] [--integrations ] [--isPublished ] [--maxAttempts ] [--moduleTable ] [--outputs ] [--payloadArgs ] [--priority ] [--props ] [--protected ] [--publishedAt ] [--queueName ] [--requiredBuckets ] [--requiredConfigs ] [--requiredModels ] [--requiredModules ] [--requiredSecrets ] [--resources ] [--runtime ] [--scaleMax ] [--scaleMin ] [--system ] [--targetFunction ] [--targetSchema ] [--timeoutSeconds ] [--volatile ] +csdk platform-function-definition update --id [--accessChannels ] [--billable ] [--category ] [--concurrency ] [--description ] [--fnCategory ] [--functionColumns ] [--graphId ] [--icon ] [--image ] [--inputs ] [--integrations ] [--isPublished ] [--maxAttempts ] [--moduleTable ] [--name ] [--outputs ] [--payloadArgs ] [--priority ] [--props ] [--protected ] [--publishedAt ] [--queueName ] [--requiredBuckets ] [--requiredConfigs ] [--requiredModels ] [--requiredModules ] [--requiredSecrets ] [--resources ] [--runtime ] [--scaleMax ] [--scaleMin ] [--system ] [--targetFunction ] [--targetSchema ] [--timeoutSeconds ] [--volatile ] csdk platform-function-definition delete --id ``` @@ -58,7 +58,7 @@ csdk platform-function-definition list --where.id.equalTo --orderBy ID_A ### Create a platformFunctionDefinition ```bash -csdk platform-function-definition create --category --name [--accessChannels ] [--billable ] [--concurrency ] [--description ] [--fnCategory ] [--functionColumns ] [--graphId ] [--icon ] [--image ] [--inputs ] [--integrations ] [--isPublished ] [--maxAttempts ] [--moduleTable ] [--outputs ] [--payloadArgs ] [--priority ] [--props ] [--protected ] [--publishedAt ] [--queueName ] [--requiredBuckets ] [--requiredConfigs ] [--requiredModels ] [--requiredSecrets ] [--resources ] [--runtime ] [--scaleMax ] [--scaleMin ] [--system ] [--targetFunction ] [--targetSchema ] [--timeoutSeconds ] [--volatile ] +csdk platform-function-definition create --category --name [--accessChannels ] [--billable ] [--concurrency ] [--description ] [--fnCategory ] [--functionColumns ] [--graphId ] [--icon ] [--image ] [--inputs ] [--integrations ] [--isPublished ] [--maxAttempts ] [--moduleTable ] [--outputs ] [--payloadArgs ] [--priority ] [--props ] [--protected ] [--publishedAt ] [--queueName ] [--requiredBuckets ] [--requiredConfigs ] [--requiredModels ] [--requiredModules ] [--requiredSecrets ] [--resources ] [--runtime ] [--scaleMax ] [--scaleMin ] [--system ] [--targetFunction ] [--targetSchema ] [--timeoutSeconds ] [--volatile ] ``` ### Get a platformFunctionDefinition by id diff --git a/.agents/skills/cli-compute/references/platform-function-deployment.md b/.agents/skills/cli-compute/references/platform-function-deployment.md index 2fecca87b1..7b1950c34d 100644 --- a/.agents/skills/cli-compute/references/platform-function-deployment.md +++ b/.agents/skills/cli-compute/references/platform-function-deployment.md @@ -12,8 +12,8 @@ csdk platform-function-deployment list --where.. --orderBy csdk platform-function-deployment find-first --where.. csdk platform-function-deployment get --id -csdk platform-function-deployment create --image --namespaceId [--annotations ] [--concurrency ] [--errorCount ] [--handlerName ] [--imageVersion ] [--labels ] [--lastError ] [--lastErrorAt ] [--resources ] [--revision ] [--scaleMax ] [--scaleMin ] [--serviceName ] [--serviceUrl ] [--status ] [--timeoutSeconds ] -csdk platform-function-deployment update --id [--annotations ] [--concurrency ] [--errorCount ] [--handlerName ] [--image ] [--imageVersion ] [--labels ] [--lastError ] [--lastErrorAt ] [--namespaceId ] [--resources ] [--revision ] [--scaleMax ] [--scaleMin ] [--serviceName ] [--serviceUrl ] [--status ] [--timeoutSeconds ] +csdk platform-function-deployment create --image --namespaceId [--annotations ] [--concurrency ] [--errorCount ] [--handlerName ] [--imageVersion ] [--labels ] [--lastError ] [--lastErrorAt ] [--realm ] [--resources ] [--revision ] [--scaleMax ] [--scaleMin ] [--serviceName ] [--serviceUrl ] [--status ] [--timeoutSeconds ] +csdk platform-function-deployment update --id [--annotations ] [--concurrency ] [--errorCount ] [--handlerName ] [--image ] [--imageVersion ] [--labels ] [--lastError ] [--lastErrorAt ] [--namespaceId ] [--realm ] [--resources ] [--revision ] [--scaleMax ] [--scaleMin ] [--serviceName ] [--serviceUrl ] [--status ] [--timeoutSeconds ] csdk platform-function-deployment delete --id ``` @@ -58,7 +58,7 @@ csdk platform-function-deployment list --where.id.equalTo --orderBy ID_A ### Create a platformFunctionDeployment ```bash -csdk platform-function-deployment create --image --namespaceId [--annotations ] [--concurrency ] [--errorCount ] [--handlerName ] [--imageVersion ] [--labels ] [--lastError ] [--lastErrorAt ] [--resources ] [--revision ] [--scaleMax ] [--scaleMin ] [--serviceName ] [--serviceUrl ] [--status ] [--timeoutSeconds ] +csdk platform-function-deployment create --image --namespaceId [--annotations ] [--concurrency ] [--errorCount ] [--handlerName ] [--imageVersion ] [--labels ] [--lastError ] [--lastErrorAt ] [--realm ] [--resources ] [--revision ] [--scaleMax ] [--scaleMin ] [--serviceName ] [--serviceUrl ] [--status ] [--timeoutSeconds ] ``` ### Get a platformFunctionDeployment by id diff --git a/.agents/skills/cli-compute/references/platform-infra-insert-nodes-at-paths.md b/.agents/skills/cli-compute/references/platform-infra-insert-nodes-at-paths.md new file mode 100644 index 0000000000..0f1ce80662 --- /dev/null +++ b/.agents/skills/cli-compute/references/platform-infra-insert-nodes-at-paths.md @@ -0,0 +1,19 @@ +# platformInfraInsertNodesAtPaths + + + +Execute the platformInfraInsertNodesAtPaths mutation + +## Usage + +```bash +csdk platform-infra-insert-nodes-at-paths --input.clientMutationId --input.datas --input.kidsList --input.ktreeList --input.paths --input.root --input.sId +``` + +## Examples + +### Run platformInfraInsertNodesAtPaths + +```bash +csdk platform-infra-insert-nodes-at-paths --input.clientMutationId --input.datas --input.kidsList --input.ktreeList --input.paths --input.root --input.sId +``` diff --git a/.agents/skills/cli-compute/references/platform-infra-set-and-commit.md b/.agents/skills/cli-compute/references/platform-infra-set-and-commit.md new file mode 100644 index 0000000000..78c8099e2d --- /dev/null +++ b/.agents/skills/cli-compute/references/platform-infra-set-and-commit.md @@ -0,0 +1,19 @@ +# platformInfraSetAndCommit + + + +Execute the platformInfraSetAndCommit mutation + +## Usage + +```bash +csdk platform-infra-set-and-commit --input.clientMutationId --input.data --input.kids --input.ktree --input.message --input.path --input.refname --input.sId --input.storeId +``` + +## Examples + +### Run platformInfraSetAndCommit + +```bash +csdk platform-infra-set-and-commit --input.clientMutationId --input.data --input.kids --input.ktree --input.message --input.path --input.refname --input.sId --input.storeId +``` diff --git a/.agents/skills/cli-compute/references/platform-infra-set-many-and-commit.md b/.agents/skills/cli-compute/references/platform-infra-set-many-and-commit.md new file mode 100644 index 0000000000..33e719276f --- /dev/null +++ b/.agents/skills/cli-compute/references/platform-infra-set-many-and-commit.md @@ -0,0 +1,19 @@ +# platformInfraSetManyAndCommit + + + +Execute the platformInfraSetManyAndCommit mutation + +## Usage + +```bash +csdk platform-infra-set-many-and-commit --input.clientMutationId --input.entries --input.message --input.refname --input.sId --input.storeId +``` + +## Examples + +### Run platformInfraSetManyAndCommit + +```bash +csdk platform-infra-set-many-and-commit --input.clientMutationId --input.entries --input.message --input.refname --input.sId --input.storeId +``` diff --git a/.agents/skills/cli-compute/references/set-and-commit.md b/.agents/skills/cli-compute/references/set-and-commit.md new file mode 100644 index 0000000000..fdb32a40a4 --- /dev/null +++ b/.agents/skills/cli-compute/references/set-and-commit.md @@ -0,0 +1,19 @@ +# setAndCommit + + + +Execute the setAndCommit mutation + +## Usage + +```bash +csdk set-and-commit --input.clientMutationId --input.data --input.kids --input.ktree --input.message --input.path --input.refname --input.sId --input.storeId +``` + +## Examples + +### Run setAndCommit + +```bash +csdk set-and-commit --input.clientMutationId --input.data --input.kids --input.ktree --input.message --input.path --input.refname --input.sId --input.storeId +``` diff --git a/.agents/skills/cli-compute/references/set-many-and-commit.md b/.agents/skills/cli-compute/references/set-many-and-commit.md new file mode 100644 index 0000000000..7039169257 --- /dev/null +++ b/.agents/skills/cli-compute/references/set-many-and-commit.md @@ -0,0 +1,19 @@ +# setManyAndCommit + + + +Execute the setManyAndCommit mutation + +## Usage + +```bash +csdk set-many-and-commit --input.clientMutationId --input.entries --input.message --input.refname --input.sId --input.storeId +``` + +## Examples + +### Run setManyAndCommit + +```bash +csdk set-many-and-commit --input.clientMutationId --input.entries --input.message --input.refname --input.sId --input.storeId +``` diff --git a/.agents/skills/cli-infra/SKILL.md b/.agents/skills/cli-infra/SKILL.md index 2437911365..b8e7f05d37 100644 --- a/.agents/skills/cli-infra/SKILL.md +++ b/.agents/skills/cli-infra/SKILL.md @@ -1,13 +1,13 @@ --- name: cli-infra -description: CLI tool (csdk) for the infra API — provides CRUD commands for 10 tables and 4 custom operations +description: CLI tool (csdk) for the infra API — provides CRUD commands for 11 tables and 7 custom operations --- # cli-infra -CLI tool (csdk) for the infra API — provides CRUD commands for 10 tables and 4 custom operations +CLI tool (csdk) for the infra API — provides CRUD commands for 11 tables and 7 custom operations ## Usage @@ -23,13 +23,13 @@ csdk auth set-token csdk config set csdk config get -# CRUD for any table (e.g. db-preset) -csdk db-preset list -csdk db-preset get --id -csdk db-preset create -- +# CRUD for any table (e.g. content-preset) +csdk content-preset list +csdk content-preset get --id +csdk content-preset create -- # Non-interactive mode (skip all prompts, use flags only) -csdk --no-tty db-preset list +csdk --no-tty content-preset list ``` ## Examples @@ -40,13 +40,13 @@ csdk --no-tty db-preset list csdk context create local --endpoint http://localhost:5000/graphql csdk context use local csdk auth set-token -csdk db-preset list +csdk content-preset list ``` ### Non-interactive mode (for scripts and CI) ```bash -csdk --no-tty db-preset create -- +csdk --no-tty content-preset create -- ``` ## References @@ -56,6 +56,7 @@ See the `references/` directory for detailed per-entity API documentation: - [context](references/context.md) - [auth](references/auth.md) - [config](references/config.md) +- [content-preset](references/content-preset.md) - [db-preset](references/db-preset.md) - [namespace](references/namespace.md) - [namespace-event](references/namespace-event.md) @@ -68,5 +69,8 @@ See the `references/` directory for detailed per-entity API documentation: - [platform-namespace-event](references/platform-namespace-event.md) - [platform-infra-init-empty-repo](references/platform-infra-init-empty-repo.md) - [platform-infra-insert-node-at-path](references/platform-infra-insert-node-at-path.md) +- [platform-infra-insert-nodes-at-paths](references/platform-infra-insert-nodes-at-paths.md) +- [platform-infra-set-and-commit](references/platform-infra-set-and-commit.md) - [platform-infra-set-data-at-path](references/platform-infra-set-data-at-path.md) +- [platform-infra-set-many-and-commit](references/platform-infra-set-many-and-commit.md) - [provision-bucket](references/provision-bucket.md) diff --git a/.agents/skills/cli-infra/references/content-preset.md b/.agents/skills/cli-infra/references/content-preset.md new file mode 100644 index 0000000000..aea512d5cb --- /dev/null +++ b/.agents/skills/cli-infra/references/content-preset.md @@ -0,0 +1,68 @@ +# contentPreset + + + +CRUD operations for ContentPreset records via csdk CLI + +## Usage + +```bash +csdk content-preset list +csdk content-preset list --where.. --orderBy +csdk content-preset list --limit 10 --after +csdk content-preset find-first --where.. +csdk content-preset get --id +csdk content-preset create --definition --kind --slug [--active ] [--commitId ] [--description ] [--label ] [--storeId ] +csdk content-preset update --id [--active ] [--commitId ] [--definition ] [--description ] [--kind ] [--label ] [--slug ] [--storeId ] +csdk content-preset delete --id +``` + +## Examples + +### List contentPreset records + +```bash +csdk content-preset list +``` + +### List contentPreset records with pagination + +```bash +csdk content-preset list --limit 10 --offset 0 +``` + +### List contentPreset records with cursor pagination + +```bash +csdk content-preset list --limit 10 --after +``` + +### Find first matching contentPreset + +```bash +csdk content-preset find-first --where.id.equalTo +``` + +### List contentPreset records with field selection + +```bash +csdk content-preset list --select id,id +``` + +### List contentPreset records with filtering and ordering + +```bash +csdk content-preset list --where.id.equalTo --orderBy ID_ASC +``` + +### Create a contentPreset + +```bash +csdk content-preset create --definition --kind --slug [--active ] [--commitId ] [--description ] [--label ] [--storeId ] +``` + +### Get a contentPreset by id + +```bash +csdk content-preset get --id +``` diff --git a/.agents/skills/cli-infra/references/platform-infra-insert-nodes-at-paths.md b/.agents/skills/cli-infra/references/platform-infra-insert-nodes-at-paths.md new file mode 100644 index 0000000000..0f1ce80662 --- /dev/null +++ b/.agents/skills/cli-infra/references/platform-infra-insert-nodes-at-paths.md @@ -0,0 +1,19 @@ +# platformInfraInsertNodesAtPaths + + + +Execute the platformInfraInsertNodesAtPaths mutation + +## Usage + +```bash +csdk platform-infra-insert-nodes-at-paths --input.clientMutationId --input.datas --input.kidsList --input.ktreeList --input.paths --input.root --input.sId +``` + +## Examples + +### Run platformInfraInsertNodesAtPaths + +```bash +csdk platform-infra-insert-nodes-at-paths --input.clientMutationId --input.datas --input.kidsList --input.ktreeList --input.paths --input.root --input.sId +``` diff --git a/.agents/skills/cli-infra/references/platform-infra-set-and-commit.md b/.agents/skills/cli-infra/references/platform-infra-set-and-commit.md new file mode 100644 index 0000000000..78c8099e2d --- /dev/null +++ b/.agents/skills/cli-infra/references/platform-infra-set-and-commit.md @@ -0,0 +1,19 @@ +# platformInfraSetAndCommit + + + +Execute the platformInfraSetAndCommit mutation + +## Usage + +```bash +csdk platform-infra-set-and-commit --input.clientMutationId --input.data --input.kids --input.ktree --input.message --input.path --input.refname --input.sId --input.storeId +``` + +## Examples + +### Run platformInfraSetAndCommit + +```bash +csdk platform-infra-set-and-commit --input.clientMutationId --input.data --input.kids --input.ktree --input.message --input.path --input.refname --input.sId --input.storeId +``` diff --git a/.agents/skills/cli-infra/references/platform-infra-set-many-and-commit.md b/.agents/skills/cli-infra/references/platform-infra-set-many-and-commit.md new file mode 100644 index 0000000000..33e719276f --- /dev/null +++ b/.agents/skills/cli-infra/references/platform-infra-set-many-and-commit.md @@ -0,0 +1,19 @@ +# platformInfraSetManyAndCommit + + + +Execute the platformInfraSetManyAndCommit mutation + +## Usage + +```bash +csdk platform-infra-set-many-and-commit --input.clientMutationId --input.entries --input.message --input.refname --input.sId --input.storeId +``` + +## Examples + +### Run platformInfraSetManyAndCommit + +```bash +csdk platform-infra-set-many-and-commit --input.clientMutationId --input.entries --input.message --input.refname --input.sId --input.storeId +``` diff --git a/.agents/skills/cli-modules/SKILL.md b/.agents/skills/cli-modules/SKILL.md index c2e22a0d72..7da2e3ee3a 100644 --- a/.agents/skills/cli-modules/SKILL.md +++ b/.agents/skills/cli-modules/SKILL.md @@ -1,13 +1,13 @@ --- name: cli-modules -description: CLI tool (csdk) for the modules API — provides CRUD commands for 76 tables and 12 custom operations +description: CLI tool (csdk) for the modules API — provides CRUD commands for 83 tables and 3 custom operations --- # cli-modules -CLI tool (csdk) for the modules API — provides CRUD commands for 76 tables and 12 custom operations +CLI tool (csdk) for the modules API — provides CRUD commands for 83 tables and 3 custom operations ## Usage @@ -64,12 +64,15 @@ See the `references/` directory for detailed per-entity API documentation: - [blueprint](references/blueprint.md) - [blueprint-construction](references/blueprint-construction.md) - [blueprint-template](references/blueprint-template.md) +- [capabilities-module](references/capabilities-module.md) - [catalog-module](references/catalog-module.md) - [compute-log-module](references/compute-log-module.md) - [config-secrets-user-module](references/config-secrets-user-module.md) - [connected-accounts-module](references/connected-accounts-module.md) +- [content-preset-module](references/content-preset-module.md) - [crypto-addresses-module](references/crypto-addresses-module.md) - [crypto-auth-module](references/crypto-auth-module.md) +- [data-capabilities-field](references/data-capabilities-field.md) - [database-provision-module](references/database-provision-module.md) - [database-settings-module](references/database-settings-module.md) - [db-pool-config](references/db-pool-config.md) @@ -80,9 +83,11 @@ See the `references/` directory for detailed per-entity API documentation: - [denormalized-table-field](references/denormalized-table-field.md) - [devices-module](references/devices-module.md) - [domain-module](references/domain-module.md) +- [email-sender-module](references/email-sender-module.md) - [emails-module](references/emails-module.md) - [entity-type-provision](references/entity-type-provision.md) - [events-module](references/events-module.md) +- [file-ref-field](references/file-ref-field.md) - [function-deployment-module](references/function-deployment-module.md) - [function-invocation-module](references/function-invocation-module.md) - [function-module](references/function-module.md) @@ -104,8 +109,8 @@ See the `references/` directory for detailed per-entity API documentation: - [merkle-store-module](references/merkle-store-module.md) - [namespace-module](references/namespace-module.md) - [notifications-module](references/notifications-module.md) +- [oauth-requests-module](references/oauth-requests-module.md) - [pages-module](references/pages-module.md) -- [permissions-module](references/permissions-module.md) - [phone-numbers-module](references/phone-numbers-module.md) - [plans-module](references/plans-module.md) - [principal-auth-module](references/principal-auth-module.md) @@ -117,6 +122,7 @@ See the `references/` directory for detailed per-entity API documentation: - [resource-module](references/resource-module.md) - [rls-module](references/rls-module.md) - [route-module](references/route-module.md) +- [scope-types-module](references/scope-types-module.md) - [secure-table-provision](references/secure-table-provision.md) - [session-secrets-module](references/session-secrets-module.md) - [sessions-module](references/sessions-module.md) @@ -127,20 +133,12 @@ See the `references/` directory for detailed per-entity API documentation: - [user-auth-module](references/user-auth-module.md) - [user-credentials-module](references/user-credentials-module.md) - [user-settings-module](references/user-settings-module.md) +- [user-settings-security-module](references/user-settings-security-module.md) - [user-state-module](references/user-state-module.md) - [users-module](references/users-module.md) - [webauthn-auth-module](references/webauthn-auth-module.md) - [webauthn-credentials-module](references/webauthn-credentials-module.md) - [webhook-module](references/webhook-module.md) -- [resolve-blueprint-field](references/resolve-blueprint-field.md) -- [resolve-blueprint-table](references/resolve-blueprint-table.md) - [construct-blueprint](references/construct-blueprint.md) - [copy-template-to-blueprint](references/copy-template-to-blueprint.md) - [provision-bucket](references/provision-bucket.md) -- [provision-check-constraint](references/provision-check-constraint.md) -- [provision-full-text-search](references/provision-full-text-search.md) -- [provision-index](references/provision-index.md) -- [provision-relation](references/provision-relation.md) -- [provision-spatial-relation](references/provision-spatial-relation.md) -- [provision-table](references/provision-table.md) -- [provision-unique-constraint](references/provision-unique-constraint.md) diff --git a/.agents/skills/cli-modules/references/agent-module.md b/.agents/skills/cli-modules/references/agent-module.md index 6000c44550..79e02342cd 100644 --- a/.agents/skills/cli-modules/references/agent-module.md +++ b/.agents/skills/cli-modules/references/agent-module.md @@ -12,8 +12,8 @@ csdk agent-module list --where.. --orderBy csdk agent-module list --limit 10 --after csdk agent-module find-first --where.. csdk agent-module get --id -csdk agent-module create --databaseId --scope [--agentTableId ] [--agentTableName ] [--apiName ] [--defaultPermissions ] [--entityField ] [--entityTableId ] [--hasAgents ] [--hasPlans ] [--hasResources ] [--messageTableId ] [--messageTableName ] [--personaTableId ] [--personaTableName ] [--planTableId ] [--planTableName ] [--policies ] [--prefix ] [--privateApiName ] [--privateSchemaId ] [--privateSchemaName ] [--promptsTableId ] [--promptsTableName ] [--provisions ] [--publicSchemaName ] [--resourceTableId ] [--resourceTableName ] [--resources ] [--schemaId ] [--shared ] [--taskTableId ] [--taskTableName ] [--threadTableId ] [--threadTableName ] -csdk agent-module update --id [--agentTableId ] [--agentTableName ] [--apiName ] [--databaseId ] [--defaultPermissions ] [--entityField ] [--entityTableId ] [--hasAgents ] [--hasPlans ] [--hasResources ] [--messageTableId ] [--messageTableName ] [--personaTableId ] [--personaTableName ] [--planTableId ] [--planTableName ] [--policies ] [--prefix ] [--privateApiName ] [--privateSchemaId ] [--privateSchemaName ] [--promptsTableId ] [--promptsTableName ] [--provisions ] [--publicSchemaName ] [--resourceTableId ] [--resourceTableName ] [--resources ] [--schemaId ] [--scope ] [--shared ] [--taskTableId ] [--taskTableName ] [--threadTableId ] [--threadTableName ] +csdk agent-module create --databaseId --scope [--agentTableId ] [--agentTableName ] [--apiName ] [--defaultCapabilities ] [--entityField ] [--entityTableId ] [--hasAgents ] [--hasPlans ] [--hasResources ] [--messageTableId ] [--messageTableName ] [--personaTableId ] [--personaTableName ] [--planTableId ] [--planTableName ] [--policies ] [--prefix ] [--privateApiName ] [--privateSchemaId ] [--privateSchemaName ] [--promptsTableId ] [--promptsTableName ] [--provisions ] [--publicSchemaName ] [--resourceTableId ] [--resourceTableName ] [--resources ] [--schemaId ] [--shared ] [--taskTableId ] [--taskTableName ] [--threadTableId ] [--threadTableName ] +csdk agent-module update --id [--agentTableId ] [--agentTableName ] [--apiName ] [--databaseId ] [--defaultCapabilities ] [--entityField ] [--entityTableId ] [--hasAgents ] [--hasPlans ] [--hasResources ] [--messageTableId ] [--messageTableName ] [--personaTableId ] [--personaTableName ] [--planTableId ] [--planTableName ] [--policies ] [--prefix ] [--privateApiName ] [--privateSchemaId ] [--privateSchemaName ] [--promptsTableId ] [--promptsTableName ] [--provisions ] [--publicSchemaName ] [--resourceTableId ] [--resourceTableName ] [--resources ] [--schemaId ] [--scope ] [--shared ] [--taskTableId ] [--taskTableName ] [--threadTableId ] [--threadTableName ] csdk agent-module delete --id ``` @@ -58,7 +58,7 @@ csdk agent-module list --where.id.equalTo --orderBy ID_ASC ### Create a agentModule ```bash -csdk agent-module create --databaseId --scope [--agentTableId ] [--agentTableName ] [--apiName ] [--defaultPermissions ] [--entityField ] [--entityTableId ] [--hasAgents ] [--hasPlans ] [--hasResources ] [--messageTableId ] [--messageTableName ] [--personaTableId ] [--personaTableName ] [--planTableId ] [--planTableName ] [--policies ] [--prefix ] [--privateApiName ] [--privateSchemaId ] [--privateSchemaName ] [--promptsTableId ] [--promptsTableName ] [--provisions ] [--publicSchemaName ] [--resourceTableId ] [--resourceTableName ] [--resources ] [--schemaId ] [--shared ] [--taskTableId ] [--taskTableName ] [--threadTableId ] [--threadTableName ] +csdk agent-module create --databaseId --scope [--agentTableId ] [--agentTableName ] [--apiName ] [--defaultCapabilities ] [--entityField ] [--entityTableId ] [--hasAgents ] [--hasPlans ] [--hasResources ] [--messageTableId ] [--messageTableName ] [--personaTableId ] [--personaTableName ] [--planTableId ] [--planTableName ] [--policies ] [--prefix ] [--privateApiName ] [--privateSchemaId ] [--privateSchemaName ] [--promptsTableId ] [--promptsTableName ] [--provisions ] [--publicSchemaName ] [--resourceTableId ] [--resourceTableName ] [--resources ] [--schemaId ] [--shared ] [--taskTableId ] [--taskTableName ] [--threadTableId ] [--threadTableName ] ``` ### Get a agentModule by id diff --git a/.agents/skills/cli-modules/references/api-surface-module.md b/.agents/skills/cli-modules/references/api-surface-module.md index c8f8bb3494..b8d74e54b0 100644 --- a/.agents/skills/cli-modules/references/api-surface-module.md +++ b/.agents/skills/cli-modules/references/api-surface-module.md @@ -12,8 +12,8 @@ csdk api-surface-module list --where.. --orderBy csdk api-surface-module list --limit 10 --after csdk api-surface-module find-first --where.. csdk api-surface-module get --id -csdk api-surface-module create --databaseId --scope [--apiName ] [--apiSchemasTableId ] [--apiSchemasTableName ] [--apiSettingsTableId ] [--apiSettingsTableName ] [--apisTableId ] [--apisTableName ] [--catalogModuleId ] [--corsSettingsTableId ] [--corsSettingsTableName ] [--defaultPermissions ] [--entityField ] [--entityTableId ] [--policies ] [--prefix ] [--privateApiName ] [--provisions ] [--publicSchemaName ] [--schemaId ] -csdk api-surface-module update --id [--apiName ] [--apiSchemasTableId ] [--apiSchemasTableName ] [--apiSettingsTableId ] [--apiSettingsTableName ] [--apisTableId ] [--apisTableName ] [--catalogModuleId ] [--corsSettingsTableId ] [--corsSettingsTableName ] [--databaseId ] [--defaultPermissions ] [--entityField ] [--entityTableId ] [--policies ] [--prefix ] [--privateApiName ] [--provisions ] [--publicSchemaName ] [--schemaId ] [--scope ] +csdk api-surface-module create --databaseId --scope [--apiName ] [--apiSchemasTableId ] [--apiSchemasTableName ] [--apiSettingsTableId ] [--apiSettingsTableName ] [--apisTableId ] [--apisTableName ] [--catalogModuleId ] [--corsSettingsTableId ] [--corsSettingsTableName ] [--defaultCapabilities ] [--entityField ] [--entityTableId ] [--policies ] [--prefix ] [--privateApiName ] [--provisions ] [--publicSchemaName ] [--schemaId ] +csdk api-surface-module update --id [--apiName ] [--apiSchemasTableId ] [--apiSchemasTableName ] [--apiSettingsTableId ] [--apiSettingsTableName ] [--apisTableId ] [--apisTableName ] [--catalogModuleId ] [--corsSettingsTableId ] [--corsSettingsTableName ] [--databaseId ] [--defaultCapabilities ] [--entityField ] [--entityTableId ] [--policies ] [--prefix ] [--privateApiName ] [--provisions ] [--publicSchemaName ] [--schemaId ] [--scope ] csdk api-surface-module delete --id ``` @@ -58,7 +58,7 @@ csdk api-surface-module list --where.id.equalTo --orderBy ID_ASC ### Create a apiSurfaceModule ```bash -csdk api-surface-module create --databaseId --scope [--apiName ] [--apiSchemasTableId ] [--apiSchemasTableName ] [--apiSettingsTableId ] [--apiSettingsTableName ] [--apisTableId ] [--apisTableName ] [--catalogModuleId ] [--corsSettingsTableId ] [--corsSettingsTableName ] [--defaultPermissions ] [--entityField ] [--entityTableId ] [--policies ] [--prefix ] [--privateApiName ] [--provisions ] [--publicSchemaName ] [--schemaId ] +csdk api-surface-module create --databaseId --scope [--apiName ] [--apiSchemasTableId ] [--apiSchemasTableName ] [--apiSettingsTableId ] [--apiSettingsTableName ] [--apisTableId ] [--apisTableName ] [--catalogModuleId ] [--corsSettingsTableId ] [--corsSettingsTableName ] [--defaultCapabilities ] [--entityField ] [--entityTableId ] [--policies ] [--prefix ] [--privateApiName ] [--provisions ] [--publicSchemaName ] [--schemaId ] ``` ### Get a apiSurfaceModule by id diff --git a/.agents/skills/cli-modules/references/app-module.md b/.agents/skills/cli-modules/references/app-module.md index 4f3933f5f7..657c69acc0 100644 --- a/.agents/skills/cli-modules/references/app-module.md +++ b/.agents/skills/cli-modules/references/app-module.md @@ -12,8 +12,8 @@ csdk app-module list --where.. --orderBy csdk app-module list --limit 10 --after csdk app-module find-first --where.. csdk app-module get --id -csdk app-module create --databaseId --scope [--apiName ] [--appComponentsTableId ] [--appComponentsTableName ] [--appsTableId ] [--appsTableName ] [--catalogModuleId ] [--defaultPermissions ] [--entityField ] [--entityTableId ] [--policies ] [--prefix ] [--privateApiName ] [--privateSchemaId ] [--privateSchemaName ] [--provisions ] [--publicSchemaName ] [--schemaId ] -csdk app-module update --id [--apiName ] [--appComponentsTableId ] [--appComponentsTableName ] [--appsTableId ] [--appsTableName ] [--catalogModuleId ] [--databaseId ] [--defaultPermissions ] [--entityField ] [--entityTableId ] [--policies ] [--prefix ] [--privateApiName ] [--privateSchemaId ] [--privateSchemaName ] [--provisions ] [--publicSchemaName ] [--schemaId ] [--scope ] +csdk app-module create --databaseId --scope [--apiName ] [--appComponentsTableId ] [--appComponentsTableName ] [--appsTableId ] [--appsTableName ] [--catalogModuleId ] [--defaultCapabilities ] [--entityField ] [--entityTableId ] [--policies ] [--prefix ] [--privateApiName ] [--privateSchemaId ] [--privateSchemaName ] [--provisions ] [--publicSchemaName ] [--schemaId ] +csdk app-module update --id [--apiName ] [--appComponentsTableId ] [--appComponentsTableName ] [--appsTableId ] [--appsTableName ] [--catalogModuleId ] [--databaseId ] [--defaultCapabilities ] [--entityField ] [--entityTableId ] [--policies ] [--prefix ] [--privateApiName ] [--privateSchemaId ] [--privateSchemaName ] [--provisions ] [--publicSchemaName ] [--schemaId ] [--scope ] csdk app-module delete --id ``` @@ -58,7 +58,7 @@ csdk app-module list --where.id.equalTo --orderBy ID_ASC ### Create a appModule ```bash -csdk app-module create --databaseId --scope [--apiName ] [--appComponentsTableId ] [--appComponentsTableName ] [--appsTableId ] [--appsTableName ] [--catalogModuleId ] [--defaultPermissions ] [--entityField ] [--entityTableId ] [--policies ] [--prefix ] [--privateApiName ] [--privateSchemaId ] [--privateSchemaName ] [--provisions ] [--publicSchemaName ] [--schemaId ] +csdk app-module create --databaseId --scope [--apiName ] [--appComponentsTableId ] [--appComponentsTableName ] [--appsTableId ] [--appsTableName ] [--catalogModuleId ] [--defaultCapabilities ] [--entityField ] [--entityTableId ] [--policies ] [--prefix ] [--privateApiName ] [--privateSchemaId ] [--privateSchemaName ] [--provisions ] [--publicSchemaName ] [--schemaId ] ``` ### Get a appModule by id diff --git a/.agents/skills/cli-modules/references/billing-module.md b/.agents/skills/cli-modules/references/billing-module.md index 354a6386a3..73a4825097 100644 --- a/.agents/skills/cli-modules/references/billing-module.md +++ b/.agents/skills/cli-modules/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 [--apiName ] [--balancesTableId ] [--balancesTableName ] [--defaultMeterCatalog ] [--defaultPermissions ] [--ledgerTableId ] [--ledgerTableName ] [--meterCreditsTableId ] [--meterCreditsTableName ] [--meterDefaultsTableId ] [--meterDefaultsTableName ] [--meterSourcesTableId ] [--meterSourcesTableName ] [--metersTableId ] [--metersTableName ] [--planSubscriptionsTableId ] [--planSubscriptionsTableName ] [--prefix ] [--privateApiName ] [--privateSchemaId ] [--privateSchemaName ] [--publicSchemaName ] [--recordUsageFunction ] [--rollupUsageSummaryFunction ] [--schemaId ] [--sweepExpiredSubscriptionsFunction ] -csdk billing-module update --id [--apiName ] [--balancesTableId ] [--balancesTableName ] [--databaseId ] [--defaultMeterCatalog ] [--defaultPermissions ] [--ledgerTableId ] [--ledgerTableName ] [--meterCreditsTableId ] [--meterCreditsTableName ] [--meterDefaultsTableId ] [--meterDefaultsTableName ] [--meterSourcesTableId ] [--meterSourcesTableName ] [--metersTableId ] [--metersTableName ] [--planSubscriptionsTableId ] [--planSubscriptionsTableName ] [--prefix ] [--privateApiName ] [--privateSchemaId ] [--privateSchemaName ] [--publicSchemaName ] [--recordUsageFunction ] [--rollupUsageSummaryFunction ] [--schemaId ] [--sweepExpiredSubscriptionsFunction ] +csdk billing-module create --databaseId [--apiName ] [--balancesTableId ] [--balancesTableName ] [--defaultCapabilities ] [--defaultMeterCatalog ] [--ledgerTableId ] [--ledgerTableName ] [--meterCreditsTableId ] [--meterCreditsTableName ] [--meterDefaultsTableId ] [--meterDefaultsTableName ] [--meterSourcesTableId ] [--meterSourcesTableName ] [--metersTableId ] [--metersTableName ] [--planSubscriptionsTableId ] [--planSubscriptionsTableName ] [--prefix ] [--privateApiName ] [--privateSchemaId ] [--privateSchemaName ] [--publicSchemaName ] [--recordUsageFunction ] [--rollupUsageSummaryFunction ] [--schemaId ] [--sweepExpiredSubscriptionsFunction ] +csdk billing-module update --id [--apiName ] [--balancesTableId ] [--balancesTableName ] [--databaseId ] [--defaultCapabilities ] [--defaultMeterCatalog ] [--ledgerTableId ] [--ledgerTableName ] [--meterCreditsTableId ] [--meterCreditsTableName ] [--meterDefaultsTableId ] [--meterDefaultsTableName ] [--meterSourcesTableId ] [--meterSourcesTableName ] [--metersTableId ] [--metersTableName ] [--planSubscriptionsTableId ] [--planSubscriptionsTableName ] [--prefix ] [--privateApiName ] [--privateSchemaId ] [--privateSchemaName ] [--publicSchemaName ] [--recordUsageFunction ] [--rollupUsageSummaryFunction ] [--schemaId ] [--sweepExpiredSubscriptionsFunction ] 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 [--apiName ] [--balancesTableId ] [--balancesTableName ] [--defaultMeterCatalog ] [--defaultPermissions ] [--ledgerTableId ] [--ledgerTableName ] [--meterCreditsTableId ] [--meterCreditsTableName ] [--meterDefaultsTableId ] [--meterDefaultsTableName ] [--meterSourcesTableId ] [--meterSourcesTableName ] [--metersTableId ] [--metersTableName ] [--planSubscriptionsTableId ] [--planSubscriptionsTableName ] [--prefix ] [--privateApiName ] [--privateSchemaId ] [--privateSchemaName ] [--publicSchemaName ] [--recordUsageFunction ] [--rollupUsageSummaryFunction ] [--schemaId ] [--sweepExpiredSubscriptionsFunction ] +csdk billing-module create --databaseId [--apiName ] [--balancesTableId ] [--balancesTableName ] [--defaultCapabilities ] [--defaultMeterCatalog ] [--ledgerTableId ] [--ledgerTableName ] [--meterCreditsTableId ] [--meterCreditsTableName ] [--meterDefaultsTableId ] [--meterDefaultsTableName ] [--meterSourcesTableId ] [--meterSourcesTableName ] [--metersTableId ] [--metersTableName ] [--planSubscriptionsTableId ] [--planSubscriptionsTableName ] [--prefix ] [--privateApiName ] [--privateSchemaId ] [--privateSchemaName ] [--publicSchemaName ] [--recordUsageFunction ] [--rollupUsageSummaryFunction ] [--schemaId ] [--sweepExpiredSubscriptionsFunction ] ``` ### Get a billingModule by id diff --git a/.agents/skills/cli-modules/references/billing-provider-module.md b/.agents/skills/cli-modules/references/billing-provider-module.md index e6a3518fa9..90fb26beb0 100644 --- a/.agents/skills/cli-modules/references/billing-provider-module.md +++ b/.agents/skills/cli-modules/references/billing-provider-module.md @@ -12,8 +12,8 @@ csdk billing-provider-module list --where.. --orderBy csdk billing-provider-module find-first --where.. csdk billing-provider-module get --id -csdk billing-provider-module create --databaseId [--apiName ] [--billingCustomersTableId ] [--billingCustomersTableName ] [--billingPricesTableId ] [--billingPricesTableName ] [--billingProductsTableId ] [--billingProductsTableName ] [--billingSubscriptionsTableId ] [--billingSubscriptionsTableName ] [--billingWebhookEventsTableId ] [--billingWebhookEventsTableName ] [--prefix ] [--pricesTableId ] [--privateApiName ] [--privateSchemaId ] [--processBillingEventFunction ] [--productsTableId ] [--provider ] [--schemaId ] [--subscriptionsTableId ] -csdk billing-provider-module update --id [--apiName ] [--billingCustomersTableId ] [--billingCustomersTableName ] [--billingPricesTableId ] [--billingPricesTableName ] [--billingProductsTableId ] [--billingProductsTableName ] [--billingSubscriptionsTableId ] [--billingSubscriptionsTableName ] [--billingWebhookEventsTableId ] [--billingWebhookEventsTableName ] [--databaseId ] [--prefix ] [--pricesTableId ] [--privateApiName ] [--privateSchemaId ] [--processBillingEventFunction ] [--productsTableId ] [--provider ] [--schemaId ] [--subscriptionsTableId ] +csdk billing-provider-module create --databaseId [--apiName ] [--billingCustomersTableId ] [--billingCustomersTableName ] [--billingInvoicesTableId ] [--billingInvoicesTableName ] [--billingPricesTableId ] [--billingPricesTableName ] [--billingProductsTableId ] [--billingProductsTableName ] [--billingRefundsTableId ] [--billingRefundsTableName ] [--billingSubscriptionsTableId ] [--billingSubscriptionsTableName ] [--billingWebhookEventsTableId ] [--billingWebhookEventsTableName ] [--listPendingUsageSyncFunction ] [--markUsageSyncedFunction ] [--prefix ] [--pricesTableId ] [--privateApiName ] [--privateSchemaId ] [--processBillingEventFunction ] [--productsTableId ] [--provider ] [--recordRefundFunction ] [--schemaId ] [--subscriptionsTableId ] [--upsertInvoiceFunction ] +csdk billing-provider-module update --id [--apiName ] [--billingCustomersTableId ] [--billingCustomersTableName ] [--billingInvoicesTableId ] [--billingInvoicesTableName ] [--billingPricesTableId ] [--billingPricesTableName ] [--billingProductsTableId ] [--billingProductsTableName ] [--billingRefundsTableId ] [--billingRefundsTableName ] [--billingSubscriptionsTableId ] [--billingSubscriptionsTableName ] [--billingWebhookEventsTableId ] [--billingWebhookEventsTableName ] [--databaseId ] [--listPendingUsageSyncFunction ] [--markUsageSyncedFunction ] [--prefix ] [--pricesTableId ] [--privateApiName ] [--privateSchemaId ] [--processBillingEventFunction ] [--productsTableId ] [--provider ] [--recordRefundFunction ] [--schemaId ] [--subscriptionsTableId ] [--upsertInvoiceFunction ] csdk billing-provider-module delete --id ``` @@ -58,7 +58,7 @@ csdk billing-provider-module list --where.id.equalTo --orderBy ID_ASC ### Create a billingProviderModule ```bash -csdk billing-provider-module create --databaseId [--apiName ] [--billingCustomersTableId ] [--billingCustomersTableName ] [--billingPricesTableId ] [--billingPricesTableName ] [--billingProductsTableId ] [--billingProductsTableName ] [--billingSubscriptionsTableId ] [--billingSubscriptionsTableName ] [--billingWebhookEventsTableId ] [--billingWebhookEventsTableName ] [--prefix ] [--pricesTableId ] [--privateApiName ] [--privateSchemaId ] [--processBillingEventFunction ] [--productsTableId ] [--provider ] [--schemaId ] [--subscriptionsTableId ] +csdk billing-provider-module create --databaseId [--apiName ] [--billingCustomersTableId ] [--billingCustomersTableName ] [--billingInvoicesTableId ] [--billingInvoicesTableName ] [--billingPricesTableId ] [--billingPricesTableName ] [--billingProductsTableId ] [--billingProductsTableName ] [--billingRefundsTableId ] [--billingRefundsTableName ] [--billingSubscriptionsTableId ] [--billingSubscriptionsTableName ] [--billingWebhookEventsTableId ] [--billingWebhookEventsTableName ] [--listPendingUsageSyncFunction ] [--markUsageSyncedFunction ] [--prefix ] [--pricesTableId ] [--privateApiName ] [--privateSchemaId ] [--processBillingEventFunction ] [--productsTableId ] [--provider ] [--recordRefundFunction ] [--schemaId ] [--subscriptionsTableId ] [--upsertInvoiceFunction ] ``` ### Get a billingProviderModule by id diff --git a/.agents/skills/cli-modules/references/capabilities-module.md b/.agents/skills/cli-modules/references/capabilities-module.md new file mode 100644 index 0000000000..e5d5ca56a2 --- /dev/null +++ b/.agents/skills/cli-modules/references/capabilities-module.md @@ -0,0 +1,68 @@ +# capabilitiesModule + + + +CRUD operations for CapabilitiesModule records via csdk CLI + +## Usage + +```bash +csdk capabilities-module list +csdk capabilities-module list --where.. --orderBy +csdk capabilities-module list --limit 10 --after +csdk capabilities-module find-first --where.. +csdk capabilities-module get --id +csdk capabilities-module create --databaseId --scope [--actorTableId ] [--apiName ] [--bitlen ] [--defaultTableId ] [--defaultTableName ] [--entityField ] [--entityTableId ] [--getByMask ] [--getMask ] [--getMaskByName ] [--getPaddedMask ] [--prefix ] [--privateApiName ] [--privateSchemaId ] [--privateSchemaName ] [--publicSchemaName ] [--schemaId ] [--tableId ] [--tableName ] +csdk capabilities-module update --id [--actorTableId ] [--apiName ] [--bitlen ] [--databaseId ] [--defaultTableId ] [--defaultTableName ] [--entityField ] [--entityTableId ] [--getByMask ] [--getMask ] [--getMaskByName ] [--getPaddedMask ] [--prefix ] [--privateApiName ] [--privateSchemaId ] [--privateSchemaName ] [--publicSchemaName ] [--schemaId ] [--scope ] [--tableId ] [--tableName ] +csdk capabilities-module delete --id +``` + +## Examples + +### List capabilitiesModule records + +```bash +csdk capabilities-module list +``` + +### List capabilitiesModule records with pagination + +```bash +csdk capabilities-module list --limit 10 --offset 0 +``` + +### List capabilitiesModule records with cursor pagination + +```bash +csdk capabilities-module list --limit 10 --after +``` + +### Find first matching capabilitiesModule + +```bash +csdk capabilities-module find-first --where.id.equalTo +``` + +### List capabilitiesModule records with field selection + +```bash +csdk capabilities-module list --select id,id +``` + +### List capabilitiesModule records with filtering and ordering + +```bash +csdk capabilities-module list --where.id.equalTo --orderBy ID_ASC +``` + +### Create a capabilitiesModule + +```bash +csdk capabilities-module create --databaseId --scope [--actorTableId ] [--apiName ] [--bitlen ] [--defaultTableId ] [--defaultTableName ] [--entityField ] [--entityTableId ] [--getByMask ] [--getMask ] [--getMaskByName ] [--getPaddedMask ] [--prefix ] [--privateApiName ] [--privateSchemaId ] [--privateSchemaName ] [--publicSchemaName ] [--schemaId ] [--tableId ] [--tableName ] +``` + +### Get a capabilitiesModule by id + +```bash +csdk capabilities-module get --id +``` diff --git a/.agents/skills/cli-modules/references/catalog-module.md b/.agents/skills/cli-modules/references/catalog-module.md index 5b2a308304..2db18e5366 100644 --- a/.agents/skills/cli-modules/references/catalog-module.md +++ b/.agents/skills/cli-modules/references/catalog-module.md @@ -12,8 +12,8 @@ csdk catalog-module list --where.. --orderBy csdk catalog-module list --limit 10 --after csdk catalog-module find-first --where.. csdk catalog-module get --id -csdk catalog-module create --databaseId --scope [--apiName ] [--apisTableId ] [--apisTableName ] [--appsTableId ] [--appsTableName ] [--bucketsTableId ] [--bucketsTableName ] [--defaultPermissions ] [--domainsTableId ] [--domainsTableName ] [--entityTableId ] [--functionsTableId ] [--functionsTableName ] [--namespacesTableId ] [--namespacesTableName ] [--policies ] [--privateApiName ] [--provisions ] [--publicSchemaName ] [--resourceDefinitionsTableId ] [--resourceDefinitionsTableName ] [--resourceInstallationsTableId ] [--resourceInstallationsTableName ] [--resourcesTableId ] [--resourcesTableName ] [--schemaId ] [--sitesAppLinksTableId ] [--sitesAppLinksTableName ] [--sitesDeepLinksTableId ] [--sitesDeepLinksTableName ] [--sitesErrorPagesTableId ] [--sitesErrorPagesTableName ] [--sitesTableId ] [--sitesTableName ] [--sitesWebConfigTableId ] [--sitesWebConfigTableName ] -csdk catalog-module update --id [--apiName ] [--apisTableId ] [--apisTableName ] [--appsTableId ] [--appsTableName ] [--bucketsTableId ] [--bucketsTableName ] [--databaseId ] [--defaultPermissions ] [--domainsTableId ] [--domainsTableName ] [--entityTableId ] [--functionsTableId ] [--functionsTableName ] [--namespacesTableId ] [--namespacesTableName ] [--policies ] [--privateApiName ] [--provisions ] [--publicSchemaName ] [--resourceDefinitionsTableId ] [--resourceDefinitionsTableName ] [--resourceInstallationsTableId ] [--resourceInstallationsTableName ] [--resourcesTableId ] [--resourcesTableName ] [--schemaId ] [--scope ] [--sitesAppLinksTableId ] [--sitesAppLinksTableName ] [--sitesDeepLinksTableId ] [--sitesDeepLinksTableName ] [--sitesErrorPagesTableId ] [--sitesErrorPagesTableName ] [--sitesTableId ] [--sitesTableName ] [--sitesWebConfigTableId ] [--sitesWebConfigTableName ] +csdk catalog-module create --databaseId --scope [--apiName ] [--apisTableId ] [--apisTableName ] [--appsTableId ] [--appsTableName ] [--bindingsTableId ] [--bindingsTableName ] [--bucketsTableId ] [--bucketsTableName ] [--defaultCapabilities ] [--domainsTableId ] [--domainsTableName ] [--entityTableId ] [--functionsTableId ] [--functionsTableName ] [--namespacesTableId ] [--namespacesTableName ] [--policies ] [--privateApiName ] [--provisions ] [--publicSchemaName ] [--resourceDefinitionsTableId ] [--resourceDefinitionsTableName ] [--resourceInstallationsTableId ] [--resourceInstallationsTableName ] [--resourcesTableId ] [--resourcesTableName ] [--schemaId ] [--sitesAppLinksTableId ] [--sitesAppLinksTableName ] [--sitesDeepLinksTableId ] [--sitesDeepLinksTableName ] [--sitesErrorPagesTableId ] [--sitesErrorPagesTableName ] [--sitesTableId ] [--sitesTableName ] [--sitesWebConfigTableId ] [--sitesWebConfigTableName ] +csdk catalog-module update --id [--apiName ] [--apisTableId ] [--apisTableName ] [--appsTableId ] [--appsTableName ] [--bindingsTableId ] [--bindingsTableName ] [--bucketsTableId ] [--bucketsTableName ] [--databaseId ] [--defaultCapabilities ] [--domainsTableId ] [--domainsTableName ] [--entityTableId ] [--functionsTableId ] [--functionsTableName ] [--namespacesTableId ] [--namespacesTableName ] [--policies ] [--privateApiName ] [--provisions ] [--publicSchemaName ] [--resourceDefinitionsTableId ] [--resourceDefinitionsTableName ] [--resourceInstallationsTableId ] [--resourceInstallationsTableName ] [--resourcesTableId ] [--resourcesTableName ] [--schemaId ] [--scope ] [--sitesAppLinksTableId ] [--sitesAppLinksTableName ] [--sitesDeepLinksTableId ] [--sitesDeepLinksTableName ] [--sitesErrorPagesTableId ] [--sitesErrorPagesTableName ] [--sitesTableId ] [--sitesTableName ] [--sitesWebConfigTableId ] [--sitesWebConfigTableName ] csdk catalog-module delete --id ``` @@ -58,7 +58,7 @@ csdk catalog-module list --where.id.equalTo --orderBy ID_ASC ### Create a catalogModule ```bash -csdk catalog-module create --databaseId --scope [--apiName ] [--apisTableId ] [--apisTableName ] [--appsTableId ] [--appsTableName ] [--bucketsTableId ] [--bucketsTableName ] [--defaultPermissions ] [--domainsTableId ] [--domainsTableName ] [--entityTableId ] [--functionsTableId ] [--functionsTableName ] [--namespacesTableId ] [--namespacesTableName ] [--policies ] [--privateApiName ] [--provisions ] [--publicSchemaName ] [--resourceDefinitionsTableId ] [--resourceDefinitionsTableName ] [--resourceInstallationsTableId ] [--resourceInstallationsTableName ] [--resourcesTableId ] [--resourcesTableName ] [--schemaId ] [--sitesAppLinksTableId ] [--sitesAppLinksTableName ] [--sitesDeepLinksTableId ] [--sitesDeepLinksTableName ] [--sitesErrorPagesTableId ] [--sitesErrorPagesTableName ] [--sitesTableId ] [--sitesTableName ] [--sitesWebConfigTableId ] [--sitesWebConfigTableName ] +csdk catalog-module create --databaseId --scope [--apiName ] [--apisTableId ] [--apisTableName ] [--appsTableId ] [--appsTableName ] [--bindingsTableId ] [--bindingsTableName ] [--bucketsTableId ] [--bucketsTableName ] [--defaultCapabilities ] [--domainsTableId ] [--domainsTableName ] [--entityTableId ] [--functionsTableId ] [--functionsTableName ] [--namespacesTableId ] [--namespacesTableName ] [--policies ] [--privateApiName ] [--provisions ] [--publicSchemaName ] [--resourceDefinitionsTableId ] [--resourceDefinitionsTableName ] [--resourceInstallationsTableId ] [--resourceInstallationsTableName ] [--resourcesTableId ] [--resourcesTableName ] [--schemaId ] [--sitesAppLinksTableId ] [--sitesAppLinksTableName ] [--sitesDeepLinksTableId ] [--sitesDeepLinksTableName ] [--sitesErrorPagesTableId ] [--sitesErrorPagesTableName ] [--sitesTableId ] [--sitesTableName ] [--sitesWebConfigTableId ] [--sitesWebConfigTableName ] ``` ### Get a catalogModule by id diff --git a/.agents/skills/cli-modules/references/content-preset-module.md b/.agents/skills/cli-modules/references/content-preset-module.md new file mode 100644 index 0000000000..b3dec31fb3 --- /dev/null +++ b/.agents/skills/cli-modules/references/content-preset-module.md @@ -0,0 +1,68 @@ +# contentPresetModule + + + +CRUD operations for ContentPresetModule records via csdk CLI + +## Usage + +```bash +csdk content-preset-module list +csdk content-preset-module list --where.. --orderBy +csdk content-preset-module list --limit 10 --after +csdk content-preset-module find-first --where.. +csdk content-preset-module get --id +csdk content-preset-module create --databaseId --merkleStoreModuleId --prefix --scope --storeName [--apiName ] [--contentPresetsTableId ] [--entityTableId ] [--policies ] [--privateApiName ] [--privateSchemaId ] [--privateSchemaName ] [--provisions ] [--publicSchemaId ] [--publicSchemaName ] +csdk content-preset-module update --id [--apiName ] [--contentPresetsTableId ] [--databaseId ] [--entityTableId ] [--merkleStoreModuleId ] [--policies ] [--prefix ] [--privateApiName ] [--privateSchemaId ] [--privateSchemaName ] [--provisions ] [--publicSchemaId ] [--publicSchemaName ] [--scope ] [--storeName ] +csdk content-preset-module delete --id +``` + +## Examples + +### List contentPresetModule records + +```bash +csdk content-preset-module list +``` + +### List contentPresetModule records with pagination + +```bash +csdk content-preset-module list --limit 10 --offset 0 +``` + +### List contentPresetModule records with cursor pagination + +```bash +csdk content-preset-module list --limit 10 --after +``` + +### Find first matching contentPresetModule + +```bash +csdk content-preset-module find-first --where.id.equalTo +``` + +### List contentPresetModule records with field selection + +```bash +csdk content-preset-module list --select id,id +``` + +### List contentPresetModule records with filtering and ordering + +```bash +csdk content-preset-module list --where.id.equalTo --orderBy ID_ASC +``` + +### Create a contentPresetModule + +```bash +csdk content-preset-module create --databaseId --merkleStoreModuleId --prefix --scope --storeName [--apiName ] [--contentPresetsTableId ] [--entityTableId ] [--policies ] [--privateApiName ] [--privateSchemaId ] [--privateSchemaName ] [--provisions ] [--publicSchemaId ] [--publicSchemaName ] +``` + +### Get a contentPresetModule by id + +```bash +csdk content-preset-module get --id +``` diff --git a/.agents/skills/cli-modules/references/data-capabilities-field.md b/.agents/skills/cli-modules/references/data-capabilities-field.md new file mode 100644 index 0000000000..02839d635a --- /dev/null +++ b/.agents/skills/cli-modules/references/data-capabilities-field.md @@ -0,0 +1,68 @@ +# dataCapabilitiesField + + + +CRUD operations for DataCapabilitiesField records via csdk CLI + +## Usage + +```bash +csdk data-capabilities-field list +csdk data-capabilities-field list --where.. --orderBy +csdk data-capabilities-field list --limit 10 --after +csdk data-capabilities-field find-first --where.. +csdk data-capabilities-field get --id +csdk data-capabilities-field create --capabilitiesModuleId --databaseId --fieldId --tableId [--fromFieldId ] [--mappingFieldId ] [--mappingKeyFieldId ] [--mappingTableId ] [--mode ] [--subsetGuard ] +csdk data-capabilities-field update --id [--capabilitiesModuleId ] [--databaseId ] [--fieldId ] [--fromFieldId ] [--mappingFieldId ] [--mappingKeyFieldId ] [--mappingTableId ] [--mode ] [--subsetGuard ] [--tableId ] +csdk data-capabilities-field delete --id +``` + +## Examples + +### List dataCapabilitiesField records + +```bash +csdk data-capabilities-field list +``` + +### List dataCapabilitiesField records with pagination + +```bash +csdk data-capabilities-field list --limit 10 --offset 0 +``` + +### List dataCapabilitiesField records with cursor pagination + +```bash +csdk data-capabilities-field list --limit 10 --after +``` + +### Find first matching dataCapabilitiesField + +```bash +csdk data-capabilities-field find-first --where.id.equalTo +``` + +### List dataCapabilitiesField records with field selection + +```bash +csdk data-capabilities-field list --select id,id +``` + +### List dataCapabilitiesField records with filtering and ordering + +```bash +csdk data-capabilities-field list --where.id.equalTo --orderBy ID_ASC +``` + +### Create a dataCapabilitiesField + +```bash +csdk data-capabilities-field create --capabilitiesModuleId --databaseId --fieldId --tableId [--fromFieldId ] [--mappingFieldId ] [--mappingKeyFieldId ] [--mappingTableId ] [--mode ] [--subsetGuard ] +``` + +### Get a dataCapabilitiesField by id + +```bash +csdk data-capabilities-field get --id +``` diff --git a/.agents/skills/cli-modules/references/database-settings-module.md b/.agents/skills/cli-modules/references/database-settings-module.md index b248a0900f..ec45aff236 100644 --- a/.agents/skills/cli-modules/references/database-settings-module.md +++ b/.agents/skills/cli-modules/references/database-settings-module.md @@ -12,8 +12,8 @@ csdk database-settings-module list --where.. --orderBy csdk database-settings-module find-first --where.. csdk database-settings-module get --id -csdk database-settings-module create --databaseId --scope [--apiName ] [--databaseSettingsTableId ] [--databaseSettingsTableName ] [--defaultPermissions ] [--entityField ] [--entityTableId ] [--policies ] [--prefix ] [--privateApiName ] [--provisions ] [--pubkeySettingsTableId ] [--pubkeySettingsTableName ] [--publicSchemaName ] [--rlsSettingsTableId ] [--rlsSettingsTableName ] [--schemaId ] [--webauthnSettingsTableId ] [--webauthnSettingsTableName ] -csdk database-settings-module update --id [--apiName ] [--databaseId ] [--databaseSettingsTableId ] [--databaseSettingsTableName ] [--defaultPermissions ] [--entityField ] [--entityTableId ] [--policies ] [--prefix ] [--privateApiName ] [--provisions ] [--pubkeySettingsTableId ] [--pubkeySettingsTableName ] [--publicSchemaName ] [--rlsSettingsTableId ] [--rlsSettingsTableName ] [--schemaId ] [--scope ] [--webauthnSettingsTableId ] [--webauthnSettingsTableName ] +csdk database-settings-module create --databaseId --scope [--apiName ] [--databaseSettingsTableId ] [--databaseSettingsTableName ] [--defaultCapabilities ] [--entityField ] [--entityTableId ] [--policies ] [--prefix ] [--privateApiName ] [--provisions ] [--pubkeySettingsTableId ] [--pubkeySettingsTableName ] [--publicSchemaName ] [--rlsSettingsTableId ] [--rlsSettingsTableName ] [--schemaId ] [--webauthnSettingsTableId ] [--webauthnSettingsTableName ] +csdk database-settings-module update --id [--apiName ] [--databaseId ] [--databaseSettingsTableId ] [--databaseSettingsTableName ] [--defaultCapabilities ] [--entityField ] [--entityTableId ] [--policies ] [--prefix ] [--privateApiName ] [--provisions ] [--pubkeySettingsTableId ] [--pubkeySettingsTableName ] [--publicSchemaName ] [--rlsSettingsTableId ] [--rlsSettingsTableName ] [--schemaId ] [--scope ] [--webauthnSettingsTableId ] [--webauthnSettingsTableName ] csdk database-settings-module delete --id ``` @@ -58,7 +58,7 @@ csdk database-settings-module list --where.id.equalTo --orderBy ID_ASC ### Create a databaseSettingsModule ```bash -csdk database-settings-module create --databaseId --scope [--apiName ] [--databaseSettingsTableId ] [--databaseSettingsTableName ] [--defaultPermissions ] [--entityField ] [--entityTableId ] [--policies ] [--prefix ] [--privateApiName ] [--provisions ] [--pubkeySettingsTableId ] [--pubkeySettingsTableName ] [--publicSchemaName ] [--rlsSettingsTableId ] [--rlsSettingsTableName ] [--schemaId ] [--webauthnSettingsTableId ] [--webauthnSettingsTableName ] +csdk database-settings-module create --databaseId --scope [--apiName ] [--databaseSettingsTableId ] [--databaseSettingsTableName ] [--defaultCapabilities ] [--entityField ] [--entityTableId ] [--policies ] [--prefix ] [--privateApiName ] [--provisions ] [--pubkeySettingsTableId ] [--pubkeySettingsTableName ] [--publicSchemaName ] [--rlsSettingsTableId ] [--rlsSettingsTableName ] [--schemaId ] [--webauthnSettingsTableId ] [--webauthnSettingsTableName ] ``` ### Get a databaseSettingsModule by id diff --git a/.agents/skills/cli-modules/references/db-usage-module.md b/.agents/skills/cli-modules/references/db-usage-module.md index 1de713d493..a365281b88 100644 --- a/.agents/skills/cli-modules/references/db-usage-module.md +++ b/.agents/skills/cli-modules/references/db-usage-module.md @@ -12,8 +12,8 @@ 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 --scope [--apiName ] [--collectDbQueryStatsFunction ] [--collectDbTableStatsFunction ] [--defaultPermissions ] [--entityField ] [--interval ] [--prefix ] [--premake ] [--privateApiName ] [--privateSchemaId ] [--privateSchemaName ] [--publicSchemaName ] [--queryStatsLogTableId ] [--queryStatsLogTableName ] [--queryStatsSummaryTableId ] [--queryStatsSummaryTableName ] [--retention ] [--rollupDbQueryStatsUsageSummaryFunction ] [--rollupDbTableStatsUsageSummaryFunction ] [--schemaId ] [--tableStatsLogTableId ] [--tableStatsLogTableName ] [--tableStatsSummaryTableId ] [--tableStatsSummaryTableName ] -csdk db-usage-module update --id [--apiName ] [--collectDbQueryStatsFunction ] [--collectDbTableStatsFunction ] [--databaseId ] [--defaultPermissions ] [--entityField ] [--interval ] [--prefix ] [--premake ] [--privateApiName ] [--privateSchemaId ] [--privateSchemaName ] [--publicSchemaName ] [--queryStatsLogTableId ] [--queryStatsLogTableName ] [--queryStatsSummaryTableId ] [--queryStatsSummaryTableName ] [--retention ] [--rollupDbQueryStatsUsageSummaryFunction ] [--rollupDbTableStatsUsageSummaryFunction ] [--schemaId ] [--scope ] [--tableStatsLogTableId ] [--tableStatsLogTableName ] [--tableStatsSummaryTableId ] [--tableStatsSummaryTableName ] +csdk db-usage-module create --databaseId --scope [--apiName ] [--collectDbQueryStatsFunction ] [--collectDbTableStatsFunction ] [--defaultCapabilities ] [--entityField ] [--interval ] [--prefix ] [--premake ] [--privateApiName ] [--privateSchemaId ] [--privateSchemaName ] [--publicSchemaName ] [--queryStatsLogTableId ] [--queryStatsLogTableName ] [--queryStatsSummaryTableId ] [--queryStatsSummaryTableName ] [--retention ] [--rollupDbQueryStatsUsageSummaryFunction ] [--rollupDbTableStatsUsageSummaryFunction ] [--schemaId ] [--tableStatsLogTableId ] [--tableStatsLogTableName ] [--tableStatsSummaryTableId ] [--tableStatsSummaryTableName ] +csdk db-usage-module update --id [--apiName ] [--collectDbQueryStatsFunction ] [--collectDbTableStatsFunction ] [--databaseId ] [--defaultCapabilities ] [--entityField ] [--interval ] [--prefix ] [--premake ] [--privateApiName ] [--privateSchemaId ] [--privateSchemaName ] [--publicSchemaName ] [--queryStatsLogTableId ] [--queryStatsLogTableName ] [--queryStatsSummaryTableId ] [--queryStatsSummaryTableName ] [--retention ] [--rollupDbQueryStatsUsageSummaryFunction ] [--rollupDbTableStatsUsageSummaryFunction ] [--schemaId ] [--scope ] [--tableStatsLogTableId ] [--tableStatsLogTableName ] [--tableStatsSummaryTableId ] [--tableStatsSummaryTableName ] csdk db-usage-module delete --id ``` @@ -58,7 +58,7 @@ csdk db-usage-module list --where.id.equalTo --orderBy ID_ASC ### Create a dbUsageModule ```bash -csdk db-usage-module create --databaseId --scope [--apiName ] [--collectDbQueryStatsFunction ] [--collectDbTableStatsFunction ] [--defaultPermissions ] [--entityField ] [--interval ] [--prefix ] [--premake ] [--privateApiName ] [--privateSchemaId ] [--privateSchemaName ] [--publicSchemaName ] [--queryStatsLogTableId ] [--queryStatsLogTableName ] [--queryStatsSummaryTableId ] [--queryStatsSummaryTableName ] [--retention ] [--rollupDbQueryStatsUsageSummaryFunction ] [--rollupDbTableStatsUsageSummaryFunction ] [--schemaId ] [--tableStatsLogTableId ] [--tableStatsLogTableName ] [--tableStatsSummaryTableId ] [--tableStatsSummaryTableName ] +csdk db-usage-module create --databaseId --scope [--apiName ] [--collectDbQueryStatsFunction ] [--collectDbTableStatsFunction ] [--defaultCapabilities ] [--entityField ] [--interval ] [--prefix ] [--premake ] [--privateApiName ] [--privateSchemaId ] [--privateSchemaName ] [--publicSchemaName ] [--queryStatsLogTableId ] [--queryStatsLogTableName ] [--queryStatsSummaryTableId ] [--queryStatsSummaryTableName ] [--retention ] [--rollupDbQueryStatsUsageSummaryFunction ] [--rollupDbTableStatsUsageSummaryFunction ] [--schemaId ] [--tableStatsLogTableId ] [--tableStatsLogTableName ] [--tableStatsSummaryTableId ] [--tableStatsSummaryTableName ] ``` ### Get a dbUsageModule by id diff --git a/.agents/skills/cli-modules/references/domain-module.md b/.agents/skills/cli-modules/references/domain-module.md index b62e692739..dec550e2ce 100644 --- a/.agents/skills/cli-modules/references/domain-module.md +++ b/.agents/skills/cli-modules/references/domain-module.md @@ -12,8 +12,8 @@ csdk domain-module list --where.. --orderBy csdk domain-module list --limit 10 --after csdk domain-module find-first --where.. csdk domain-module get --id -csdk domain-module create --databaseId --scope [--apiName ] [--catalogModuleId ] [--defaultPermissions ] [--domainEventsTableId ] [--domainEventsTableName ] [--domainVerificationsTableId ] [--domainVerificationsTableName ] [--domainsTableId ] [--domainsTableName ] [--entityField ] [--entityTableId ] [--managedDomainsTableId ] [--managedDomainsTableName ] [--policies ] [--prefix ] [--privateApiName ] [--privateSchemaId ] [--privateSchemaName ] [--provisions ] [--publicSchemaName ] [--schemaId ] -csdk domain-module update --id [--apiName ] [--catalogModuleId ] [--databaseId ] [--defaultPermissions ] [--domainEventsTableId ] [--domainEventsTableName ] [--domainVerificationsTableId ] [--domainVerificationsTableName ] [--domainsTableId ] [--domainsTableName ] [--entityField ] [--entityTableId ] [--managedDomainsTableId ] [--managedDomainsTableName ] [--policies ] [--prefix ] [--privateApiName ] [--privateSchemaId ] [--privateSchemaName ] [--provisions ] [--publicSchemaName ] [--schemaId ] [--scope ] +csdk domain-module create --databaseId --scope [--apiName ] [--catalogModuleId ] [--defaultCapabilities ] [--domainEventsTableId ] [--domainEventsTableName ] [--domainVerificationsTableId ] [--domainVerificationsTableName ] [--domainsTableId ] [--domainsTableName ] [--entityField ] [--entityTableId ] [--managedDomainsTableId ] [--managedDomainsTableName ] [--policies ] [--prefix ] [--privateApiName ] [--privateSchemaId ] [--privateSchemaName ] [--provisions ] [--publicSchemaName ] [--schemaId ] +csdk domain-module update --id [--apiName ] [--catalogModuleId ] [--databaseId ] [--defaultCapabilities ] [--domainEventsTableId ] [--domainEventsTableName ] [--domainVerificationsTableId ] [--domainVerificationsTableName ] [--domainsTableId ] [--domainsTableName ] [--entityField ] [--entityTableId ] [--managedDomainsTableId ] [--managedDomainsTableName ] [--policies ] [--prefix ] [--privateApiName ] [--privateSchemaId ] [--privateSchemaName ] [--provisions ] [--publicSchemaName ] [--schemaId ] [--scope ] csdk domain-module delete --id ``` @@ -58,7 +58,7 @@ csdk domain-module list --where.id.equalTo --orderBy ID_ASC ### Create a domainModule ```bash -csdk domain-module create --databaseId --scope [--apiName ] [--catalogModuleId ] [--defaultPermissions ] [--domainEventsTableId ] [--domainEventsTableName ] [--domainVerificationsTableId ] [--domainVerificationsTableName ] [--domainsTableId ] [--domainsTableName ] [--entityField ] [--entityTableId ] [--managedDomainsTableId ] [--managedDomainsTableName ] [--policies ] [--prefix ] [--privateApiName ] [--privateSchemaId ] [--privateSchemaName ] [--provisions ] [--publicSchemaName ] [--schemaId ] +csdk domain-module create --databaseId --scope [--apiName ] [--catalogModuleId ] [--defaultCapabilities ] [--domainEventsTableId ] [--domainEventsTableName ] [--domainVerificationsTableId ] [--domainVerificationsTableName ] [--domainsTableId ] [--domainsTableName ] [--entityField ] [--entityTableId ] [--managedDomainsTableId ] [--managedDomainsTableName ] [--policies ] [--prefix ] [--privateApiName ] [--privateSchemaId ] [--privateSchemaName ] [--provisions ] [--publicSchemaName ] [--schemaId ] ``` ### Get a domainModule by id diff --git a/.agents/skills/cli-modules/references/email-sender-module.md b/.agents/skills/cli-modules/references/email-sender-module.md new file mode 100644 index 0000000000..cd5e793690 --- /dev/null +++ b/.agents/skills/cli-modules/references/email-sender-module.md @@ -0,0 +1,68 @@ +# emailSenderModule + + + +CRUD operations for EmailSenderModule records via csdk CLI + +## Usage + +```bash +csdk email-sender-module list +csdk email-sender-module list --where.. --orderBy +csdk email-sender-module list --limit 10 --after +csdk email-sender-module find-first --where.. +csdk email-sender-module get --id +csdk email-sender-module create --databaseId --scope [--apiName ] [--defaultCapabilities ] [--emailIdentitiesTableId ] [--emailIdentitiesTableName ] [--emailProviderAccountsTableId ] [--emailProviderAccountsTableName ] [--emailSiteIdentitiesTableId ] [--emailSiteIdentitiesTableName ] [--entityField ] [--entityTableId ] [--policies ] [--prefix ] [--privateApiName ] [--provisions ] [--publicSchemaName ] [--schemaId ] [--siteSurfaceModuleId ] +csdk email-sender-module update --id [--apiName ] [--databaseId ] [--defaultCapabilities ] [--emailIdentitiesTableId ] [--emailIdentitiesTableName ] [--emailProviderAccountsTableId ] [--emailProviderAccountsTableName ] [--emailSiteIdentitiesTableId ] [--emailSiteIdentitiesTableName ] [--entityField ] [--entityTableId ] [--policies ] [--prefix ] [--privateApiName ] [--provisions ] [--publicSchemaName ] [--schemaId ] [--scope ] [--siteSurfaceModuleId ] +csdk email-sender-module delete --id +``` + +## Examples + +### List emailSenderModule records + +```bash +csdk email-sender-module list +``` + +### List emailSenderModule records with pagination + +```bash +csdk email-sender-module list --limit 10 --offset 0 +``` + +### List emailSenderModule records with cursor pagination + +```bash +csdk email-sender-module list --limit 10 --after +``` + +### Find first matching emailSenderModule + +```bash +csdk email-sender-module find-first --where.id.equalTo +``` + +### List emailSenderModule records with field selection + +```bash +csdk email-sender-module list --select id,id +``` + +### List emailSenderModule records with filtering and ordering + +```bash +csdk email-sender-module list --where.id.equalTo --orderBy ID_ASC +``` + +### Create a emailSenderModule + +```bash +csdk email-sender-module create --databaseId --scope [--apiName ] [--defaultCapabilities ] [--emailIdentitiesTableId ] [--emailIdentitiesTableName ] [--emailProviderAccountsTableId ] [--emailProviderAccountsTableName ] [--emailSiteIdentitiesTableId ] [--emailSiteIdentitiesTableName ] [--entityField ] [--entityTableId ] [--policies ] [--prefix ] [--privateApiName ] [--provisions ] [--publicSchemaName ] [--schemaId ] [--siteSurfaceModuleId ] +``` + +### Get a emailSenderModule by id + +```bash +csdk email-sender-module get --id +``` diff --git a/.agents/skills/cli-modules/references/events-module.md b/.agents/skills/cli-modules/references/events-module.md index 23dc7e10a3..46e28db596 100644 --- a/.agents/skills/cli-modules/references/events-module.md +++ b/.agents/skills/cli-modules/references/events-module.md @@ -12,8 +12,8 @@ csdk events-module list --where.. --orderBy csdk events-module list --limit 10 --after csdk events-module find-first --where.. csdk events-module get --id -csdk events-module create --databaseId --scope [--achievementRewardsTableId ] [--achievementRewardsTableName ] [--actorTableId ] [--apiName ] [--defaultPermissions ] [--entityField ] [--entityTableId ] [--eventAggregatesTableId ] [--eventAggregatesTableName ] [--eventTypesTableId ] [--eventTypesTableName ] [--eventsTableId ] [--eventsTableName ] [--grantAchievement ] [--interval ] [--levelAchieved ] [--levelGrantsTableId ] [--levelGrantsTableName ] [--levelRequirementsTableId ] [--levelRequirementsTableName ] [--levelsTableId ] [--levelsTableName ] [--prefix ] [--premake ] [--privateApiName ] [--privateSchemaId ] [--privateSchemaName ] [--publicSchemaName ] [--recordEvent ] [--removeEvent ] [--retention ] [--schemaId ] [--stepsRequired ] [--tgAchievementReward ] [--tgCheckAchievements ] [--tgEvent ] [--tgEventBool ] [--tgEventToggle ] [--tgEventToggleBool ] [--tgUpdateAggregates ] [--upsertAggregate ] -csdk events-module update --id [--achievementRewardsTableId ] [--achievementRewardsTableName ] [--actorTableId ] [--apiName ] [--databaseId ] [--defaultPermissions ] [--entityField ] [--entityTableId ] [--eventAggregatesTableId ] [--eventAggregatesTableName ] [--eventTypesTableId ] [--eventTypesTableName ] [--eventsTableId ] [--eventsTableName ] [--grantAchievement ] [--interval ] [--levelAchieved ] [--levelGrantsTableId ] [--levelGrantsTableName ] [--levelRequirementsTableId ] [--levelRequirementsTableName ] [--levelsTableId ] [--levelsTableName ] [--prefix ] [--premake ] [--privateApiName ] [--privateSchemaId ] [--privateSchemaName ] [--publicSchemaName ] [--recordEvent ] [--removeEvent ] [--retention ] [--schemaId ] [--scope ] [--stepsRequired ] [--tgAchievementReward ] [--tgCheckAchievements ] [--tgEvent ] [--tgEventBool ] [--tgEventToggle ] [--tgEventToggleBool ] [--tgUpdateAggregates ] [--upsertAggregate ] +csdk events-module create --databaseId --scope [--achievementRewardsTableId ] [--achievementRewardsTableName ] [--actorTableId ] [--apiName ] [--defaultCapabilities ] [--entityField ] [--entityTableId ] [--eventAggregatesTableId ] [--eventAggregatesTableName ] [--eventTypesTableId ] [--eventTypesTableName ] [--eventsTableId ] [--eventsTableName ] [--expireGrants ] [--grantAchievement ] [--interval ] [--levelAchieved ] [--levelGrantsTableId ] [--levelGrantsTableName ] [--levelRequirementsTableId ] [--levelRequirementsTableName ] [--levelsTableId ] [--levelsTableName ] [--prefix ] [--premake ] [--privateApiName ] [--privateSchemaId ] [--privateSchemaName ] [--publicSchemaName ] [--recomputeCapabilities ] [--recordEvent ] [--removeEvent ] [--retention ] [--revokeAchievement ] [--schemaId ] [--stepsRequired ] [--tgAchievementReward ] [--tgCheckAchievements ] [--tgEvent ] [--tgEventBool ] [--tgEventToggle ] [--tgEventToggleBool ] [--tgLevelGrantSync ] [--tgUpdateAggregates ] [--trustLadder ] [--upsertAggregate ] +csdk events-module update --id [--achievementRewardsTableId ] [--achievementRewardsTableName ] [--actorTableId ] [--apiName ] [--databaseId ] [--defaultCapabilities ] [--entityField ] [--entityTableId ] [--eventAggregatesTableId ] [--eventAggregatesTableName ] [--eventTypesTableId ] [--eventTypesTableName ] [--eventsTableId ] [--eventsTableName ] [--expireGrants ] [--grantAchievement ] [--interval ] [--levelAchieved ] [--levelGrantsTableId ] [--levelGrantsTableName ] [--levelRequirementsTableId ] [--levelRequirementsTableName ] [--levelsTableId ] [--levelsTableName ] [--prefix ] [--premake ] [--privateApiName ] [--privateSchemaId ] [--privateSchemaName ] [--publicSchemaName ] [--recomputeCapabilities ] [--recordEvent ] [--removeEvent ] [--retention ] [--revokeAchievement ] [--schemaId ] [--scope ] [--stepsRequired ] [--tgAchievementReward ] [--tgCheckAchievements ] [--tgEvent ] [--tgEventBool ] [--tgEventToggle ] [--tgEventToggleBool ] [--tgLevelGrantSync ] [--tgUpdateAggregates ] [--trustLadder ] [--upsertAggregate ] csdk events-module delete --id ``` @@ -58,7 +58,7 @@ csdk events-module list --where.id.equalTo --orderBy ID_ASC ### Create a eventsModule ```bash -csdk events-module create --databaseId --scope [--achievementRewardsTableId ] [--achievementRewardsTableName ] [--actorTableId ] [--apiName ] [--defaultPermissions ] [--entityField ] [--entityTableId ] [--eventAggregatesTableId ] [--eventAggregatesTableName ] [--eventTypesTableId ] [--eventTypesTableName ] [--eventsTableId ] [--eventsTableName ] [--grantAchievement ] [--interval ] [--levelAchieved ] [--levelGrantsTableId ] [--levelGrantsTableName ] [--levelRequirementsTableId ] [--levelRequirementsTableName ] [--levelsTableId ] [--levelsTableName ] [--prefix ] [--premake ] [--privateApiName ] [--privateSchemaId ] [--privateSchemaName ] [--publicSchemaName ] [--recordEvent ] [--removeEvent ] [--retention ] [--schemaId ] [--stepsRequired ] [--tgAchievementReward ] [--tgCheckAchievements ] [--tgEvent ] [--tgEventBool ] [--tgEventToggle ] [--tgEventToggleBool ] [--tgUpdateAggregates ] [--upsertAggregate ] +csdk events-module create --databaseId --scope [--achievementRewardsTableId ] [--achievementRewardsTableName ] [--actorTableId ] [--apiName ] [--defaultCapabilities ] [--entityField ] [--entityTableId ] [--eventAggregatesTableId ] [--eventAggregatesTableName ] [--eventTypesTableId ] [--eventTypesTableName ] [--eventsTableId ] [--eventsTableName ] [--expireGrants ] [--grantAchievement ] [--interval ] [--levelAchieved ] [--levelGrantsTableId ] [--levelGrantsTableName ] [--levelRequirementsTableId ] [--levelRequirementsTableName ] [--levelsTableId ] [--levelsTableName ] [--prefix ] [--premake ] [--privateApiName ] [--privateSchemaId ] [--privateSchemaName ] [--publicSchemaName ] [--recomputeCapabilities ] [--recordEvent ] [--removeEvent ] [--retention ] [--revokeAchievement ] [--schemaId ] [--stepsRequired ] [--tgAchievementReward ] [--tgCheckAchievements ] [--tgEvent ] [--tgEventBool ] [--tgEventToggle ] [--tgEventToggleBool ] [--tgLevelGrantSync ] [--tgUpdateAggregates ] [--trustLadder ] [--upsertAggregate ] ``` ### Get a eventsModule by id diff --git a/.agents/skills/cli-modules/references/file-ref-field.md b/.agents/skills/cli-modules/references/file-ref-field.md new file mode 100644 index 0000000000..39f1ec87ef --- /dev/null +++ b/.agents/skills/cli-modules/references/file-ref-field.md @@ -0,0 +1,68 @@ +# fileRefField + + + +CRUD operations for FileRefField records via csdk CLI + +## Usage + +```bash +csdk file-ref-field list +csdk file-ref-field list --where.. --orderBy +csdk file-ref-field list --limit 10 --after +csdk file-ref-field find-first --where.. +csdk file-ref-field get --id +csdk file-ref-field create --databaseId --fieldId --storageModuleId --tableId [--bucketKey ] [--bucketTags ] [--enforceFk ] [--isPublic ] +csdk file-ref-field update --id [--bucketKey ] [--bucketTags ] [--databaseId ] [--enforceFk ] [--fieldId ] [--isPublic ] [--storageModuleId ] [--tableId ] +csdk file-ref-field delete --id +``` + +## Examples + +### List fileRefField records + +```bash +csdk file-ref-field list +``` + +### List fileRefField records with pagination + +```bash +csdk file-ref-field list --limit 10 --offset 0 +``` + +### List fileRefField records with cursor pagination + +```bash +csdk file-ref-field list --limit 10 --after +``` + +### Find first matching fileRefField + +```bash +csdk file-ref-field find-first --where.id.equalTo +``` + +### List fileRefField records with field selection + +```bash +csdk file-ref-field list --select id,id +``` + +### List fileRefField records with filtering and ordering + +```bash +csdk file-ref-field list --where.id.equalTo --orderBy ID_ASC +``` + +### Create a fileRefField + +```bash +csdk file-ref-field create --databaseId --fieldId --storageModuleId --tableId [--bucketKey ] [--bucketTags ] [--enforceFk ] [--isPublic ] +``` + +### Get a fileRefField by id + +```bash +csdk file-ref-field get --id +``` diff --git a/.agents/skills/cli-modules/references/function-deployment-module.md b/.agents/skills/cli-modules/references/function-deployment-module.md index 5621082b0f..f128cf27c2 100644 --- a/.agents/skills/cli-modules/references/function-deployment-module.md +++ b/.agents/skills/cli-modules/references/function-deployment-module.md @@ -12,8 +12,8 @@ csdk function-deployment-module list --where.. --orderBy csdk function-deployment-module find-first --where.. csdk function-deployment-module get --id -csdk function-deployment-module create --databaseId --scope [--apiName ] [--defaultPermissions ] [--deploymentEventsTableId ] [--deploymentEventsTableName ] [--deploymentsTableId ] [--deploymentsTableName ] [--entityField ] [--entityTableId ] [--functionModuleId ] [--namespaceModuleId ] [--policies ] [--prefix ] [--privateApiName ] [--privateSchemaId ] [--privateSchemaName ] [--provisions ] [--publicSchemaName ] [--schemaId ] -csdk function-deployment-module update --id [--apiName ] [--databaseId ] [--defaultPermissions ] [--deploymentEventsTableId ] [--deploymentEventsTableName ] [--deploymentsTableId ] [--deploymentsTableName ] [--entityField ] [--entityTableId ] [--functionModuleId ] [--namespaceModuleId ] [--policies ] [--prefix ] [--privateApiName ] [--privateSchemaId ] [--privateSchemaName ] [--provisions ] [--publicSchemaName ] [--schemaId ] [--scope ] +csdk function-deployment-module create --databaseId --scope [--apiName ] [--defaultCapabilities ] [--deploymentEventsTableId ] [--deploymentEventsTableName ] [--deploymentsTableId ] [--deploymentsTableName ] [--entityField ] [--entityTableId ] [--functionModuleId ] [--namespaceModuleId ] [--policies ] [--prefix ] [--privateApiName ] [--privateSchemaId ] [--privateSchemaName ] [--provisions ] [--publicSchemaName ] [--schemaId ] +csdk function-deployment-module update --id [--apiName ] [--databaseId ] [--defaultCapabilities ] [--deploymentEventsTableId ] [--deploymentEventsTableName ] [--deploymentsTableId ] [--deploymentsTableName ] [--entityField ] [--entityTableId ] [--functionModuleId ] [--namespaceModuleId ] [--policies ] [--prefix ] [--privateApiName ] [--privateSchemaId ] [--privateSchemaName ] [--provisions ] [--publicSchemaName ] [--schemaId ] [--scope ] csdk function-deployment-module delete --id ``` @@ -58,7 +58,7 @@ csdk function-deployment-module list --where.id.equalTo --orderBy ID_ASC ### Create a functionDeploymentModule ```bash -csdk function-deployment-module create --databaseId --scope [--apiName ] [--defaultPermissions ] [--deploymentEventsTableId ] [--deploymentEventsTableName ] [--deploymentsTableId ] [--deploymentsTableName ] [--entityField ] [--entityTableId ] [--functionModuleId ] [--namespaceModuleId ] [--policies ] [--prefix ] [--privateApiName ] [--privateSchemaId ] [--privateSchemaName ] [--provisions ] [--publicSchemaName ] [--schemaId ] +csdk function-deployment-module create --databaseId --scope [--apiName ] [--defaultCapabilities ] [--deploymentEventsTableId ] [--deploymentEventsTableName ] [--deploymentsTableId ] [--deploymentsTableName ] [--entityField ] [--entityTableId ] [--functionModuleId ] [--namespaceModuleId ] [--policies ] [--prefix ] [--privateApiName ] [--privateSchemaId ] [--privateSchemaName ] [--provisions ] [--publicSchemaName ] [--schemaId ] ``` ### Get a functionDeploymentModule by id diff --git a/.agents/skills/cli-modules/references/function-invocation-module.md b/.agents/skills/cli-modules/references/function-invocation-module.md index b038f800c0..28bfeccb45 100644 --- a/.agents/skills/cli-modules/references/function-invocation-module.md +++ b/.agents/skills/cli-modules/references/function-invocation-module.md @@ -12,8 +12,8 @@ csdk function-invocation-module list --where.. --orderBy csdk function-invocation-module find-first --where.. csdk function-invocation-module get --id -csdk function-invocation-module create --databaseId --scope [--apiName ] [--attemptsTableId ] [--attemptsTableName ] [--defaultPermissions ] [--entityField ] [--entityTableId ] [--executionLogsTableId ] [--executionLogsTableName ] [--invocationsTableId ] [--invocationsTableName ] [--policies ] [--prefix ] [--privateApiName ] [--privateSchemaId ] [--privateSchemaName ] [--provisions ] [--publicSchemaName ] [--schemaId ] -csdk function-invocation-module update --id [--apiName ] [--attemptsTableId ] [--attemptsTableName ] [--databaseId ] [--defaultPermissions ] [--entityField ] [--entityTableId ] [--executionLogsTableId ] [--executionLogsTableName ] [--invocationsTableId ] [--invocationsTableName ] [--policies ] [--prefix ] [--privateApiName ] [--privateSchemaId ] [--privateSchemaName ] [--provisions ] [--publicSchemaName ] [--schemaId ] [--scope ] +csdk function-invocation-module create --databaseId --scope [--apiName ] [--attemptsTableId ] [--attemptsTableName ] [--defaultCapabilities ] [--entityField ] [--entityTableId ] [--executionLogsTableId ] [--executionLogsTableName ] [--invocationsTableId ] [--invocationsTableName ] [--policies ] [--prefix ] [--privateApiName ] [--privateSchemaId ] [--privateSchemaName ] [--provisions ] [--publicSchemaName ] [--schemaId ] +csdk function-invocation-module update --id [--apiName ] [--attemptsTableId ] [--attemptsTableName ] [--databaseId ] [--defaultCapabilities ] [--entityField ] [--entityTableId ] [--executionLogsTableId ] [--executionLogsTableName ] [--invocationsTableId ] [--invocationsTableName ] [--policies ] [--prefix ] [--privateApiName ] [--privateSchemaId ] [--privateSchemaName ] [--provisions ] [--publicSchemaName ] [--schemaId ] [--scope ] csdk function-invocation-module delete --id ``` @@ -58,7 +58,7 @@ csdk function-invocation-module list --where.id.equalTo --orderBy ID_ASC ### Create a functionInvocationModule ```bash -csdk function-invocation-module create --databaseId --scope [--apiName ] [--attemptsTableId ] [--attemptsTableName ] [--defaultPermissions ] [--entityField ] [--entityTableId ] [--executionLogsTableId ] [--executionLogsTableName ] [--invocationsTableId ] [--invocationsTableName ] [--policies ] [--prefix ] [--privateApiName ] [--privateSchemaId ] [--privateSchemaName ] [--provisions ] [--publicSchemaName ] [--schemaId ] +csdk function-invocation-module create --databaseId --scope [--apiName ] [--attemptsTableId ] [--attemptsTableName ] [--defaultCapabilities ] [--entityField ] [--entityTableId ] [--executionLogsTableId ] [--executionLogsTableName ] [--invocationsTableId ] [--invocationsTableName ] [--policies ] [--prefix ] [--privateApiName ] [--privateSchemaId ] [--privateSchemaName ] [--provisions ] [--publicSchemaName ] [--schemaId ] ``` ### Get a functionInvocationModule by id diff --git a/.agents/skills/cli-modules/references/function-module.md b/.agents/skills/cli-modules/references/function-module.md index 649deca7f8..4f42fe5462 100644 --- a/.agents/skills/cli-modules/references/function-module.md +++ b/.agents/skills/cli-modules/references/function-module.md @@ -12,8 +12,8 @@ csdk function-module list --where.. --orderBy csdk function-module list --limit 10 --after csdk function-module find-first --where.. csdk function-module get --id -csdk function-module create --databaseId --scope [--apiName ] [--bindingsTableId ] [--bindingsTableName ] [--capabilityBindingsTableId ] [--defaultPermissions ] [--definitionsTableId ] [--definitionsTableName ] [--entityField ] [--entityTableId ] [--hasCron ] [--policies ] [--prefix ] [--privateApiName ] [--privateSchemaId ] [--privateSchemaName ] [--provisions ] [--publicSchemaName ] [--schedulesTableId ] [--schemaId ] -csdk function-module update --id [--apiName ] [--bindingsTableId ] [--bindingsTableName ] [--capabilityBindingsTableId ] [--databaseId ] [--defaultPermissions ] [--definitionsTableId ] [--definitionsTableName ] [--entityField ] [--entityTableId ] [--hasCron ] [--policies ] [--prefix ] [--privateApiName ] [--privateSchemaId ] [--privateSchemaName ] [--provisions ] [--publicSchemaName ] [--schedulesTableId ] [--schemaId ] [--scope ] +csdk function-module create --databaseId --scope [--apiName ] [--bindingsTableId ] [--bindingsTableName ] [--capabilityBindingsTableId ] [--defaultCapabilities ] [--definitionsTableId ] [--definitionsTableName ] [--entityField ] [--entityTableId ] [--hasCron ] [--policies ] [--prefix ] [--privateApiName ] [--privateSchemaId ] [--privateSchemaName ] [--provisions ] [--publicSchemaName ] [--schedulesTableId ] [--schemaId ] +csdk function-module update --id [--apiName ] [--bindingsTableId ] [--bindingsTableName ] [--capabilityBindingsTableId ] [--databaseId ] [--defaultCapabilities ] [--definitionsTableId ] [--definitionsTableName ] [--entityField ] [--entityTableId ] [--hasCron ] [--policies ] [--prefix ] [--privateApiName ] [--privateSchemaId ] [--privateSchemaName ] [--provisions ] [--publicSchemaName ] [--schedulesTableId ] [--schemaId ] [--scope ] csdk function-module delete --id ``` @@ -58,7 +58,7 @@ csdk function-module list --where.id.equalTo --orderBy ID_ASC ### Create a functionModule ```bash -csdk function-module create --databaseId --scope [--apiName ] [--bindingsTableId ] [--bindingsTableName ] [--capabilityBindingsTableId ] [--defaultPermissions ] [--definitionsTableId ] [--definitionsTableName ] [--entityField ] [--entityTableId ] [--hasCron ] [--policies ] [--prefix ] [--privateApiName ] [--privateSchemaId ] [--privateSchemaName ] [--provisions ] [--publicSchemaName ] [--schedulesTableId ] [--schemaId ] +csdk function-module create --databaseId --scope [--apiName ] [--bindingsTableId ] [--bindingsTableName ] [--capabilityBindingsTableId ] [--defaultCapabilities ] [--definitionsTableId ] [--definitionsTableName ] [--entityField ] [--entityTableId ] [--hasCron ] [--policies ] [--prefix ] [--privateApiName ] [--privateSchemaId ] [--privateSchemaName ] [--provisions ] [--publicSchemaName ] [--schedulesTableId ] [--schemaId ] ``` ### Get a functionModule by id diff --git a/.agents/skills/cli-modules/references/graph-execution-module.md b/.agents/skills/cli-modules/references/graph-execution-module.md index 56c672ad15..d87061b3ac 100644 --- a/.agents/skills/cli-modules/references/graph-execution-module.md +++ b/.agents/skills/cli-modules/references/graph-execution-module.md @@ -12,8 +12,8 @@ csdk graph-execution-module list --where.. --orderBy csdk graph-execution-module list --limit 10 --after csdk graph-execution-module find-first --where.. csdk graph-execution-module get --id -csdk graph-execution-module create --databaseId --graphModuleId --scope [--apiName ] [--defaultPermissions ] [--entityField ] [--entityTableId ] [--executionsTableId ] [--executionsTableName ] [--nodeStatesTableId ] [--nodeStatesTableName ] [--outputsTableId ] [--outputsTableName ] [--policies ] [--prefix ] [--privateApiName ] [--privateSchemaId ] [--privateSchemaName ] [--provisions ] [--publicSchemaName ] [--schemaId ] -csdk graph-execution-module update --id [--apiName ] [--databaseId ] [--defaultPermissions ] [--entityField ] [--entityTableId ] [--executionsTableId ] [--executionsTableName ] [--graphModuleId ] [--nodeStatesTableId ] [--nodeStatesTableName ] [--outputsTableId ] [--outputsTableName ] [--policies ] [--prefix ] [--privateApiName ] [--privateSchemaId ] [--privateSchemaName ] [--provisions ] [--publicSchemaName ] [--schemaId ] [--scope ] +csdk graph-execution-module create --databaseId --graphModuleId --scope [--apiName ] [--defaultCapabilities ] [--entityField ] [--entityTableId ] [--executionsTableId ] [--executionsTableName ] [--nodeStatesTableId ] [--nodeStatesTableName ] [--outputsTableId ] [--outputsTableName ] [--policies ] [--prefix ] [--privateApiName ] [--privateSchemaId ] [--privateSchemaName ] [--provisions ] [--publicSchemaName ] [--schemaId ] +csdk graph-execution-module update --id [--apiName ] [--databaseId ] [--defaultCapabilities ] [--entityField ] [--entityTableId ] [--executionsTableId ] [--executionsTableName ] [--graphModuleId ] [--nodeStatesTableId ] [--nodeStatesTableName ] [--outputsTableId ] [--outputsTableName ] [--policies ] [--prefix ] [--privateApiName ] [--privateSchemaId ] [--privateSchemaName ] [--provisions ] [--publicSchemaName ] [--schemaId ] [--scope ] csdk graph-execution-module delete --id ``` @@ -58,7 +58,7 @@ csdk graph-execution-module list --where.id.equalTo --orderBy ID_ASC ### Create a graphExecutionModule ```bash -csdk graph-execution-module create --databaseId --graphModuleId --scope [--apiName ] [--defaultPermissions ] [--entityField ] [--entityTableId ] [--executionsTableId ] [--executionsTableName ] [--nodeStatesTableId ] [--nodeStatesTableName ] [--outputsTableId ] [--outputsTableName ] [--policies ] [--prefix ] [--privateApiName ] [--privateSchemaId ] [--privateSchemaName ] [--provisions ] [--publicSchemaName ] [--schemaId ] +csdk graph-execution-module create --databaseId --graphModuleId --scope [--apiName ] [--defaultCapabilities ] [--entityField ] [--entityTableId ] [--executionsTableId ] [--executionsTableName ] [--nodeStatesTableId ] [--nodeStatesTableName ] [--outputsTableId ] [--outputsTableName ] [--policies ] [--prefix ] [--privateApiName ] [--privateSchemaId ] [--privateSchemaName ] [--provisions ] [--publicSchemaName ] [--schemaId ] ``` ### Get a graphExecutionModule by id diff --git a/.agents/skills/cli-modules/references/graph-module.md b/.agents/skills/cli-modules/references/graph-module.md index 80b5bd321f..98b4058c1f 100644 --- a/.agents/skills/cli-modules/references/graph-module.md +++ b/.agents/skills/cli-modules/references/graph-module.md @@ -12,8 +12,8 @@ csdk graph-module list --where.. --orderBy csdk graph-module list --limit 10 --after csdk graph-module find-first --where.. csdk graph-module get --id -csdk graph-module create --databaseId --merkleStoreModuleId --scope [--apiName ] [--defaultPermissions ] [--entityField ] [--entityTableId ] [--graphsTableId ] [--policies ] [--prefix ] [--privateApiName ] [--privateSchemaId ] [--privateSchemaName ] [--provisions ] [--publicSchemaId ] [--publicSchemaName ] -csdk graph-module update --id [--apiName ] [--databaseId ] [--defaultPermissions ] [--entityField ] [--entityTableId ] [--graphsTableId ] [--merkleStoreModuleId ] [--policies ] [--prefix ] [--privateApiName ] [--privateSchemaId ] [--privateSchemaName ] [--provisions ] [--publicSchemaId ] [--publicSchemaName ] [--scope ] +csdk graph-module create --databaseId --merkleStoreModuleId --scope [--apiName ] [--defaultCapabilities ] [--entityField ] [--entityTableId ] [--graphsTableId ] [--policies ] [--prefix ] [--privateApiName ] [--privateSchemaId ] [--privateSchemaName ] [--provisions ] [--publicSchemaId ] [--publicSchemaName ] +csdk graph-module update --id [--apiName ] [--databaseId ] [--defaultCapabilities ] [--entityField ] [--entityTableId ] [--graphsTableId ] [--merkleStoreModuleId ] [--policies ] [--prefix ] [--privateApiName ] [--privateSchemaId ] [--privateSchemaName ] [--provisions ] [--publicSchemaId ] [--publicSchemaName ] [--scope ] csdk graph-module delete --id ``` @@ -58,7 +58,7 @@ csdk graph-module list --where.id.equalTo --orderBy ID_ASC ### Create a graphModule ```bash -csdk graph-module create --databaseId --merkleStoreModuleId --scope [--apiName ] [--defaultPermissions ] [--entityField ] [--entityTableId ] [--graphsTableId ] [--policies ] [--prefix ] [--privateApiName ] [--privateSchemaId ] [--privateSchemaName ] [--provisions ] [--publicSchemaId ] [--publicSchemaName ] +csdk graph-module create --databaseId --merkleStoreModuleId --scope [--apiName ] [--defaultCapabilities ] [--entityField ] [--entityTableId ] [--graphsTableId ] [--policies ] [--prefix ] [--privateApiName ] [--privateSchemaId ] [--privateSchemaName ] [--provisions ] [--publicSchemaId ] [--publicSchemaName ] ``` ### Get a graphModule by id diff --git a/.agents/skills/cli-modules/references/hierarchy-module.md b/.agents/skills/cli-modules/references/hierarchy-module.md index 83b155401c..4f91d9554b 100644 --- a/.agents/skills/cli-modules/references/hierarchy-module.md +++ b/.agents/skills/cli-modules/references/hierarchy-module.md @@ -12,8 +12,8 @@ csdk hierarchy-module list --where.. --orderBy csdk hierarchy-module list --limit 10 --after csdk hierarchy-module find-first --where.. csdk hierarchy-module get --id -csdk hierarchy-module create --databaseId --entityTableId --scope --usersTableId [--chartEdgeGrantsTableId ] [--chartEdgeGrantsTableName ] [--chartEdgesTableId ] [--chartEdgesTableName ] [--defaultPermissions ] [--entityField ] [--getManagersFunction ] [--getSubordinatesFunction ] [--hierarchySprtTableId ] [--hierarchySprtTableName ] [--isManagerOfFunction ] [--prefix ] [--privateSchemaId ] [--privateSchemaName ] [--rebuildHierarchyFunction ] [--schemaId ] [--sprtTableName ] -csdk hierarchy-module update --id [--chartEdgeGrantsTableId ] [--chartEdgeGrantsTableName ] [--chartEdgesTableId ] [--chartEdgesTableName ] [--databaseId ] [--defaultPermissions ] [--entityField ] [--entityTableId ] [--getManagersFunction ] [--getSubordinatesFunction ] [--hierarchySprtTableId ] [--hierarchySprtTableName ] [--isManagerOfFunction ] [--prefix ] [--privateSchemaId ] [--privateSchemaName ] [--rebuildHierarchyFunction ] [--schemaId ] [--scope ] [--sprtTableName ] [--usersTableId ] +csdk hierarchy-module create --databaseId --entityTableId --scope --usersTableId [--chartEdgeGrantsTableId ] [--chartEdgeGrantsTableName ] [--chartEdgesTableId ] [--chartEdgesTableName ] [--defaultCapabilities ] [--entityField ] [--getManagersFunction ] [--getSubordinatesFunction ] [--hierarchySprtTableId ] [--hierarchySprtTableName ] [--isManagerOfFunction ] [--prefix ] [--privateSchemaId ] [--privateSchemaName ] [--rebuildHierarchyFunction ] [--schemaId ] [--sprtTableName ] +csdk hierarchy-module update --id [--chartEdgeGrantsTableId ] [--chartEdgeGrantsTableName ] [--chartEdgesTableId ] [--chartEdgesTableName ] [--databaseId ] [--defaultCapabilities ] [--entityField ] [--entityTableId ] [--getManagersFunction ] [--getSubordinatesFunction ] [--hierarchySprtTableId ] [--hierarchySprtTableName ] [--isManagerOfFunction ] [--prefix ] [--privateSchemaId ] [--privateSchemaName ] [--rebuildHierarchyFunction ] [--schemaId ] [--scope ] [--sprtTableName ] [--usersTableId ] csdk hierarchy-module delete --id ``` @@ -58,7 +58,7 @@ csdk hierarchy-module list --where.id.equalTo --orderBy ID_ASC ### Create a hierarchyModule ```bash -csdk hierarchy-module create --databaseId --entityTableId --scope --usersTableId [--chartEdgeGrantsTableId ] [--chartEdgeGrantsTableName ] [--chartEdgesTableId ] [--chartEdgesTableName ] [--defaultPermissions ] [--entityField ] [--getManagersFunction ] [--getSubordinatesFunction ] [--hierarchySprtTableId ] [--hierarchySprtTableName ] [--isManagerOfFunction ] [--prefix ] [--privateSchemaId ] [--privateSchemaName ] [--rebuildHierarchyFunction ] [--schemaId ] [--sprtTableName ] +csdk hierarchy-module create --databaseId --entityTableId --scope --usersTableId [--chartEdgeGrantsTableId ] [--chartEdgeGrantsTableName ] [--chartEdgesTableId ] [--chartEdgesTableName ] [--defaultCapabilities ] [--entityField ] [--getManagersFunction ] [--getSubordinatesFunction ] [--hierarchySprtTableId ] [--hierarchySprtTableName ] [--isManagerOfFunction ] [--prefix ] [--privateSchemaId ] [--privateSchemaName ] [--rebuildHierarchyFunction ] [--schemaId ] [--sprtTableName ] ``` ### Get a hierarchyModule by id diff --git a/.agents/skills/cli-modules/references/http-route-module.md b/.agents/skills/cli-modules/references/http-route-module.md index 7c49c6aad1..337fecd781 100644 --- a/.agents/skills/cli-modules/references/http-route-module.md +++ b/.agents/skills/cli-modules/references/http-route-module.md @@ -12,8 +12,8 @@ csdk http-route-module list --where.. --orderBy csdk http-route-module list --limit 10 --after csdk http-route-module find-first --where.. csdk http-route-module get --id -csdk http-route-module create --databaseId --scope [--apiName ] [--defaultPermissions ] [--entityField ] [--entityTableId ] [--functionModuleId ] [--httpRoutesTableId ] [--httpRoutesTableName ] [--policies ] [--prefix ] [--privateApiName ] [--privateSchemaId ] [--privateSchemaName ] [--provisions ] [--publicSchemaName ] [--resolverFunctionName ] [--resourceModuleId ] [--schemaId ] [--storageModuleId ] -csdk http-route-module update --id [--apiName ] [--databaseId ] [--defaultPermissions ] [--entityField ] [--entityTableId ] [--functionModuleId ] [--httpRoutesTableId ] [--httpRoutesTableName ] [--policies ] [--prefix ] [--privateApiName ] [--privateSchemaId ] [--privateSchemaName ] [--provisions ] [--publicSchemaName ] [--resolverFunctionName ] [--resourceModuleId ] [--schemaId ] [--scope ] [--storageModuleId ] +csdk http-route-module create --databaseId --scope [--apiName ] [--defaultCapabilities ] [--entityField ] [--entityTableId ] [--functionModuleId ] [--httpRoutesTableId ] [--httpRoutesTableName ] [--policies ] [--prefix ] [--privateApiName ] [--privateSchemaId ] [--privateSchemaName ] [--provisions ] [--publicSchemaName ] [--resolverFunctionName ] [--resourceModuleId ] [--schemaId ] [--storageModuleId ] +csdk http-route-module update --id [--apiName ] [--databaseId ] [--defaultCapabilities ] [--entityField ] [--entityTableId ] [--functionModuleId ] [--httpRoutesTableId ] [--httpRoutesTableName ] [--policies ] [--prefix ] [--privateApiName ] [--privateSchemaId ] [--privateSchemaName ] [--provisions ] [--publicSchemaName ] [--resolverFunctionName ] [--resourceModuleId ] [--schemaId ] [--scope ] [--storageModuleId ] csdk http-route-module delete --id ``` @@ -58,7 +58,7 @@ csdk http-route-module list --where.id.equalTo --orderBy ID_ASC ### Create a httpRouteModule ```bash -csdk http-route-module create --databaseId --scope [--apiName ] [--defaultPermissions ] [--entityField ] [--entityTableId ] [--functionModuleId ] [--httpRoutesTableId ] [--httpRoutesTableName ] [--policies ] [--prefix ] [--privateApiName ] [--privateSchemaId ] [--privateSchemaName ] [--provisions ] [--publicSchemaName ] [--resolverFunctionName ] [--resourceModuleId ] [--schemaId ] [--storageModuleId ] +csdk http-route-module create --databaseId --scope [--apiName ] [--defaultCapabilities ] [--entityField ] [--entityTableId ] [--functionModuleId ] [--httpRoutesTableId ] [--httpRoutesTableName ] [--policies ] [--prefix ] [--privateApiName ] [--privateSchemaId ] [--privateSchemaName ] [--provisions ] [--publicSchemaName ] [--resolverFunctionName ] [--resourceModuleId ] [--schemaId ] [--storageModuleId ] ``` ### Get a httpRouteModule by id diff --git a/.agents/skills/cli-modules/references/limits-module.md b/.agents/skills/cli-modules/references/limits-module.md index 0d427dd2b4..d1bad669de 100644 --- a/.agents/skills/cli-modules/references/limits-module.md +++ b/.agents/skills/cli-modules/references/limits-module.md @@ -12,8 +12,8 @@ csdk limits-module list --where.. --orderBy csdk limits-module list --limit 10 --after csdk limits-module find-first --where.. csdk limits-module get --id -csdk limits-module create --databaseId --scope [--actorTableId ] [--aggregateTableId ] [--apiName ] [--capCheckTrigger ] [--creditCodeItemsTableId ] [--creditCodesTableId ] [--creditRedemptionsTableId ] [--defaultTableId ] [--defaultTableName ] [--entityField ] [--entityTableId ] [--eventsTableId ] [--limitAggregateCheckSoftFunction ] [--limitCapsDefaultsTableId ] [--limitCapsTableId ] [--limitCheckFunction ] [--limitCheckSoftFunction ] [--limitCreditsTableId ] [--limitDecrementFunction ] [--limitDecrementTrigger ] [--limitIncrementFunction ] [--limitIncrementTrigger ] [--limitUpdateTrigger ] [--limitWarningStateTableId ] [--limitWarningsTableId ] [--prefix ] [--privateApiName ] [--privateSchemaId ] [--privateSchemaName ] [--publicSchemaName ] [--resolveCapFunction ] [--schemaId ] [--tableId ] [--tableName ] -csdk limits-module update --id [--actorTableId ] [--aggregateTableId ] [--apiName ] [--capCheckTrigger ] [--creditCodeItemsTableId ] [--creditCodesTableId ] [--creditRedemptionsTableId ] [--databaseId ] [--defaultTableId ] [--defaultTableName ] [--entityField ] [--entityTableId ] [--eventsTableId ] [--limitAggregateCheckSoftFunction ] [--limitCapsDefaultsTableId ] [--limitCapsTableId ] [--limitCheckFunction ] [--limitCheckSoftFunction ] [--limitCreditsTableId ] [--limitDecrementFunction ] [--limitDecrementTrigger ] [--limitIncrementFunction ] [--limitIncrementTrigger ] [--limitUpdateTrigger ] [--limitWarningStateTableId ] [--limitWarningsTableId ] [--prefix ] [--privateApiName ] [--privateSchemaId ] [--privateSchemaName ] [--publicSchemaName ] [--resolveCapFunction ] [--schemaId ] [--scope ] [--tableId ] [--tableName ] +csdk limits-module create --databaseId --scope [--actorTableId ] [--aggregateTableId ] [--apiName ] [--capCheckTrigger ] [--creditCodeItemsTableId ] [--creditCodesTableId ] [--creditRedemptionsTableId ] [--defaultTableId ] [--defaultTableName ] [--entityField ] [--entityTableId ] [--eventsTableId ] [--limitAggregateCheckSoftFunction ] [--limitCapsDefaultsTableId ] [--limitCapsTableId ] [--limitCheckFunction ] [--limitCheckSoftFunction ] [--limitCreditsTableId ] [--limitDecrementFunction ] [--limitDecrementTrigger ] [--limitDefaults ] [--limitIncrementFunction ] [--limitIncrementTrigger ] [--limitUpdateTrigger ] [--limitWarningStateTableId ] [--limitWarningsTableId ] [--prefix ] [--privateApiName ] [--privateSchemaId ] [--privateSchemaName ] [--publicSchemaName ] [--resolveCapFunction ] [--schemaId ] [--tableId ] [--tableName ] +csdk limits-module update --id [--actorTableId ] [--aggregateTableId ] [--apiName ] [--capCheckTrigger ] [--creditCodeItemsTableId ] [--creditCodesTableId ] [--creditRedemptionsTableId ] [--databaseId ] [--defaultTableId ] [--defaultTableName ] [--entityField ] [--entityTableId ] [--eventsTableId ] [--limitAggregateCheckSoftFunction ] [--limitCapsDefaultsTableId ] [--limitCapsTableId ] [--limitCheckFunction ] [--limitCheckSoftFunction ] [--limitCreditsTableId ] [--limitDecrementFunction ] [--limitDecrementTrigger ] [--limitDefaults ] [--limitIncrementFunction ] [--limitIncrementTrigger ] [--limitUpdateTrigger ] [--limitWarningStateTableId ] [--limitWarningsTableId ] [--prefix ] [--privateApiName ] [--privateSchemaId ] [--privateSchemaName ] [--publicSchemaName ] [--resolveCapFunction ] [--schemaId ] [--scope ] [--tableId ] [--tableName ] csdk limits-module delete --id ``` @@ -58,7 +58,7 @@ csdk limits-module list --where.id.equalTo --orderBy ID_ASC ### Create a limitsModule ```bash -csdk limits-module create --databaseId --scope [--actorTableId ] [--aggregateTableId ] [--apiName ] [--capCheckTrigger ] [--creditCodeItemsTableId ] [--creditCodesTableId ] [--creditRedemptionsTableId ] [--defaultTableId ] [--defaultTableName ] [--entityField ] [--entityTableId ] [--eventsTableId ] [--limitAggregateCheckSoftFunction ] [--limitCapsDefaultsTableId ] [--limitCapsTableId ] [--limitCheckFunction ] [--limitCheckSoftFunction ] [--limitCreditsTableId ] [--limitDecrementFunction ] [--limitDecrementTrigger ] [--limitIncrementFunction ] [--limitIncrementTrigger ] [--limitUpdateTrigger ] [--limitWarningStateTableId ] [--limitWarningsTableId ] [--prefix ] [--privateApiName ] [--privateSchemaId ] [--privateSchemaName ] [--publicSchemaName ] [--resolveCapFunction ] [--schemaId ] [--tableId ] [--tableName ] +csdk limits-module create --databaseId --scope [--actorTableId ] [--aggregateTableId ] [--apiName ] [--capCheckTrigger ] [--creditCodeItemsTableId ] [--creditCodesTableId ] [--creditRedemptionsTableId ] [--defaultTableId ] [--defaultTableName ] [--entityField ] [--entityTableId ] [--eventsTableId ] [--limitAggregateCheckSoftFunction ] [--limitCapsDefaultsTableId ] [--limitCapsTableId ] [--limitCheckFunction ] [--limitCheckSoftFunction ] [--limitCreditsTableId ] [--limitDecrementFunction ] [--limitDecrementTrigger ] [--limitDefaults ] [--limitIncrementFunction ] [--limitIncrementTrigger ] [--limitUpdateTrigger ] [--limitWarningStateTableId ] [--limitWarningsTableId ] [--prefix ] [--privateApiName ] [--privateSchemaId ] [--privateSchemaName ] [--publicSchemaName ] [--resolveCapFunction ] [--schemaId ] [--tableId ] [--tableName ] ``` ### Get a limitsModule by id diff --git a/.agents/skills/cli-modules/references/memberships-module.md b/.agents/skills/cli-modules/references/memberships-module.md index 068e20c103..3cc7c7b690 100644 --- a/.agents/skills/cli-modules/references/memberships-module.md +++ b/.agents/skills/cli-modules/references/memberships-module.md @@ -12,8 +12,8 @@ csdk memberships-module list --where.. --orderBy csdk memberships-module list --limit 10 --after csdk memberships-module find-first --where.. csdk memberships-module get --id -csdk memberships-module create --databaseId --scope [--actorMaskCheck ] [--actorPermCheck ] [--actorTableId ] [--adminGrantsTableId ] [--adminGrantsTableName ] [--apiName ] [--defaultLimitsTableId ] [--defaultPermissionsTableId ] [--entityField ] [--entityIdsByMask ] [--entityIdsByPerm ] [--entityIdsFunction ] [--entityTableId ] [--entityTableOwnerId ] [--getOrgFn ] [--grantsTableId ] [--grantsTableName ] [--limitsTableId ] [--memberProfilesTableId ] [--membersTableId ] [--membersTableName ] [--membershipDefaultsTableId ] [--membershipDefaultsTableName ] [--membershipSettingsTableId ] [--membershipSettingsTableName ] [--membershipsTableId ] [--membershipsTableName ] [--ownerGrantsTableId ] [--ownerGrantsTableName ] [--permissionDefaultGrantsTableId ] [--permissionDefaultPermissionsTableId ] [--permissionsTableId ] [--prefix ] [--privateApiName ] [--privateSchemaId ] [--privateSchemaName ] [--publicSchemaName ] [--schemaId ] [--sprtTableId ] -csdk memberships-module update --id [--actorMaskCheck ] [--actorPermCheck ] [--actorTableId ] [--adminGrantsTableId ] [--adminGrantsTableName ] [--apiName ] [--databaseId ] [--defaultLimitsTableId ] [--defaultPermissionsTableId ] [--entityField ] [--entityIdsByMask ] [--entityIdsByPerm ] [--entityIdsFunction ] [--entityTableId ] [--entityTableOwnerId ] [--getOrgFn ] [--grantsTableId ] [--grantsTableName ] [--limitsTableId ] [--memberProfilesTableId ] [--membersTableId ] [--membersTableName ] [--membershipDefaultsTableId ] [--membershipDefaultsTableName ] [--membershipSettingsTableId ] [--membershipSettingsTableName ] [--membershipsTableId ] [--membershipsTableName ] [--ownerGrantsTableId ] [--ownerGrantsTableName ] [--permissionDefaultGrantsTableId ] [--permissionDefaultPermissionsTableId ] [--permissionsTableId ] [--prefix ] [--privateApiName ] [--privateSchemaId ] [--privateSchemaName ] [--publicSchemaName ] [--schemaId ] [--scope ] [--sprtTableId ] +csdk memberships-module create --databaseId --scope [--actorMaskCheck ] [--actorPermCheck ] [--actorTableId ] [--adminGrantsTableId ] [--adminGrantsTableName ] [--apiName ] [--capabilitiesTableId ] [--capabilityDefaultCapabilitiesTableId ] [--capabilityDefaultGrantsTableId ] [--defaultCapabilitiesTableId ] [--defaultLimitsTableId ] [--entityField ] [--entityIdsByMask ] [--entityIdsByPerm ] [--entityIdsFunction ] [--entityTableId ] [--entityTableOwnerId ] [--getOrgFn ] [--grantsTableId ] [--grantsTableName ] [--limitsTableId ] [--memberProfilesTableId ] [--membersTableId ] [--membersTableName ] [--membershipDefaultsTableId ] [--membershipDefaultsTableName ] [--membershipSettingsTableId ] [--membershipSettingsTableName ] [--membershipsTableId ] [--membershipsTableName ] [--ownerGrantsTableId ] [--ownerGrantsTableName ] [--prefix ] [--privateApiName ] [--privateSchemaId ] [--privateSchemaName ] [--publicSchemaName ] [--schemaId ] [--sprtTableId ] +csdk memberships-module update --id [--actorMaskCheck ] [--actorPermCheck ] [--actorTableId ] [--adminGrantsTableId ] [--adminGrantsTableName ] [--apiName ] [--capabilitiesTableId ] [--capabilityDefaultCapabilitiesTableId ] [--capabilityDefaultGrantsTableId ] [--databaseId ] [--defaultCapabilitiesTableId ] [--defaultLimitsTableId ] [--entityField ] [--entityIdsByMask ] [--entityIdsByPerm ] [--entityIdsFunction ] [--entityTableId ] [--entityTableOwnerId ] [--getOrgFn ] [--grantsTableId ] [--grantsTableName ] [--limitsTableId ] [--memberProfilesTableId ] [--membersTableId ] [--membersTableName ] [--membershipDefaultsTableId ] [--membershipDefaultsTableName ] [--membershipSettingsTableId ] [--membershipSettingsTableName ] [--membershipsTableId ] [--membershipsTableName ] [--ownerGrantsTableId ] [--ownerGrantsTableName ] [--prefix ] [--privateApiName ] [--privateSchemaId ] [--privateSchemaName ] [--publicSchemaName ] [--schemaId ] [--scope ] [--sprtTableId ] csdk memberships-module delete --id ``` @@ -58,7 +58,7 @@ csdk memberships-module list --where.id.equalTo --orderBy ID_ASC ### Create a membershipsModule ```bash -csdk memberships-module create --databaseId --scope [--actorMaskCheck ] [--actorPermCheck ] [--actorTableId ] [--adminGrantsTableId ] [--adminGrantsTableName ] [--apiName ] [--defaultLimitsTableId ] [--defaultPermissionsTableId ] [--entityField ] [--entityIdsByMask ] [--entityIdsByPerm ] [--entityIdsFunction ] [--entityTableId ] [--entityTableOwnerId ] [--getOrgFn ] [--grantsTableId ] [--grantsTableName ] [--limitsTableId ] [--memberProfilesTableId ] [--membersTableId ] [--membersTableName ] [--membershipDefaultsTableId ] [--membershipDefaultsTableName ] [--membershipSettingsTableId ] [--membershipSettingsTableName ] [--membershipsTableId ] [--membershipsTableName ] [--ownerGrantsTableId ] [--ownerGrantsTableName ] [--permissionDefaultGrantsTableId ] [--permissionDefaultPermissionsTableId ] [--permissionsTableId ] [--prefix ] [--privateApiName ] [--privateSchemaId ] [--privateSchemaName ] [--publicSchemaName ] [--schemaId ] [--sprtTableId ] +csdk memberships-module create --databaseId --scope [--actorMaskCheck ] [--actorPermCheck ] [--actorTableId ] [--adminGrantsTableId ] [--adminGrantsTableName ] [--apiName ] [--capabilitiesTableId ] [--capabilityDefaultCapabilitiesTableId ] [--capabilityDefaultGrantsTableId ] [--defaultCapabilitiesTableId ] [--defaultLimitsTableId ] [--entityField ] [--entityIdsByMask ] [--entityIdsByPerm ] [--entityIdsFunction ] [--entityTableId ] [--entityTableOwnerId ] [--getOrgFn ] [--grantsTableId ] [--grantsTableName ] [--limitsTableId ] [--memberProfilesTableId ] [--membersTableId ] [--membersTableName ] [--membershipDefaultsTableId ] [--membershipDefaultsTableName ] [--membershipSettingsTableId ] [--membershipSettingsTableName ] [--membershipsTableId ] [--membershipsTableName ] [--ownerGrantsTableId ] [--ownerGrantsTableName ] [--prefix ] [--privateApiName ] [--privateSchemaId ] [--privateSchemaName ] [--publicSchemaName ] [--schemaId ] [--sprtTableId ] ``` ### Get a membershipsModule by id diff --git a/.agents/skills/cli-modules/references/merkle-store-module.md b/.agents/skills/cli-modules/references/merkle-store-module.md index f62df636d0..f1361653dc 100644 --- a/.agents/skills/cli-modules/references/merkle-store-module.md +++ b/.agents/skills/cli-modules/references/merkle-store-module.md @@ -12,8 +12,8 @@ csdk merkle-store-module list --where.. --orderBy csdk merkle-store-module list --limit 10 --after csdk merkle-store-module find-first --where.. csdk merkle-store-module get --id -csdk merkle-store-module create --databaseId --scope [--apiName ] [--commitTableId ] [--entityField ] [--functionPrefix ] [--objectTableId ] [--permissionKey ] [--prefix ] [--privateApiName ] [--privateSchemaId ] [--privateSchemaName ] [--publicSchemaName ] [--refTableId ] [--schemaId ] [--storeTableId ] -csdk merkle-store-module update --id [--apiName ] [--commitTableId ] [--databaseId ] [--entityField ] [--functionPrefix ] [--objectTableId ] [--permissionKey ] [--prefix ] [--privateApiName ] [--privateSchemaId ] [--privateSchemaName ] [--publicSchemaName ] [--refTableId ] [--schemaId ] [--scope ] [--storeTableId ] +csdk merkle-store-module create --databaseId --scope [--apiName ] [--capabilityKey ] [--commitTableId ] [--entityField ] [--functionPrefix ] [--objectTableId ] [--prefix ] [--privateApiName ] [--privateSchemaId ] [--privateSchemaName ] [--publicSchemaName ] [--refTableId ] [--schemaId ] [--storeTableId ] +csdk merkle-store-module update --id [--apiName ] [--capabilityKey ] [--commitTableId ] [--databaseId ] [--entityField ] [--functionPrefix ] [--objectTableId ] [--prefix ] [--privateApiName ] [--privateSchemaId ] [--privateSchemaName ] [--publicSchemaName ] [--refTableId ] [--schemaId ] [--scope ] [--storeTableId ] csdk merkle-store-module delete --id ``` @@ -58,7 +58,7 @@ csdk merkle-store-module list --where.id.equalTo --orderBy ID_ASC ### Create a merkleStoreModule ```bash -csdk merkle-store-module create --databaseId --scope [--apiName ] [--commitTableId ] [--entityField ] [--functionPrefix ] [--objectTableId ] [--permissionKey ] [--prefix ] [--privateApiName ] [--privateSchemaId ] [--privateSchemaName ] [--publicSchemaName ] [--refTableId ] [--schemaId ] [--storeTableId ] +csdk merkle-store-module create --databaseId --scope [--apiName ] [--capabilityKey ] [--commitTableId ] [--entityField ] [--functionPrefix ] [--objectTableId ] [--prefix ] [--privateApiName ] [--privateSchemaId ] [--privateSchemaName ] [--publicSchemaName ] [--refTableId ] [--schemaId ] [--storeTableId ] ``` ### Get a merkleStoreModule by id diff --git a/.agents/skills/cli-modules/references/namespace-module.md b/.agents/skills/cli-modules/references/namespace-module.md index 26f955817a..b171be5458 100644 --- a/.agents/skills/cli-modules/references/namespace-module.md +++ b/.agents/skills/cli-modules/references/namespace-module.md @@ -12,8 +12,8 @@ csdk namespace-module list --where.. --orderBy csdk namespace-module list --limit 10 --after csdk namespace-module find-first --where.. csdk namespace-module get --id -csdk namespace-module create --databaseId --scope [--apiName ] [--defaultPermissions ] [--entityField ] [--entityTableId ] [--namespaceEventsTableId ] [--namespaceEventsTableName ] [--namespacesTableId ] [--namespacesTableName ] [--policies ] [--prefix ] [--privateApiName ] [--privateSchemaId ] [--privateSchemaName ] [--provisions ] [--publicSchemaName ] [--schemaId ] -csdk namespace-module update --id [--apiName ] [--databaseId ] [--defaultPermissions ] [--entityField ] [--entityTableId ] [--namespaceEventsTableId ] [--namespaceEventsTableName ] [--namespacesTableId ] [--namespacesTableName ] [--policies ] [--prefix ] [--privateApiName ] [--privateSchemaId ] [--privateSchemaName ] [--provisions ] [--publicSchemaName ] [--schemaId ] [--scope ] +csdk namespace-module create --databaseId --scope [--apiName ] [--defaultCapabilities ] [--entityField ] [--entityTableId ] [--namespaceEventsTableId ] [--namespaceEventsTableName ] [--namespacesTableId ] [--namespacesTableName ] [--policies ] [--prefix ] [--privateApiName ] [--privateSchemaId ] [--privateSchemaName ] [--provisions ] [--publicSchemaName ] [--schemaId ] +csdk namespace-module update --id [--apiName ] [--databaseId ] [--defaultCapabilities ] [--entityField ] [--entityTableId ] [--namespaceEventsTableId ] [--namespaceEventsTableName ] [--namespacesTableId ] [--namespacesTableName ] [--policies ] [--prefix ] [--privateApiName ] [--privateSchemaId ] [--privateSchemaName ] [--provisions ] [--publicSchemaName ] [--schemaId ] [--scope ] csdk namespace-module delete --id ``` @@ -58,7 +58,7 @@ csdk namespace-module list --where.id.equalTo --orderBy ID_ASC ### Create a namespaceModule ```bash -csdk namespace-module create --databaseId --scope [--apiName ] [--defaultPermissions ] [--entityField ] [--entityTableId ] [--namespaceEventsTableId ] [--namespaceEventsTableName ] [--namespacesTableId ] [--namespacesTableName ] [--policies ] [--prefix ] [--privateApiName ] [--privateSchemaId ] [--privateSchemaName ] [--provisions ] [--publicSchemaName ] [--schemaId ] +csdk namespace-module create --databaseId --scope [--apiName ] [--defaultCapabilities ] [--entityField ] [--entityTableId ] [--namespaceEventsTableId ] [--namespaceEventsTableName ] [--namespacesTableId ] [--namespacesTableName ] [--policies ] [--prefix ] [--privateApiName ] [--privateSchemaId ] [--privateSchemaName ] [--provisions ] [--publicSchemaName ] [--schemaId ] ``` ### Get a namespaceModule by id diff --git a/.agents/skills/cli-modules/references/notifications-module.md b/.agents/skills/cli-modules/references/notifications-module.md index 482545f18e..f742f26ed4 100644 --- a/.agents/skills/cli-modules/references/notifications-module.md +++ b/.agents/skills/cli-modules/references/notifications-module.md @@ -12,8 +12,8 @@ csdk notifications-module list --where.. --orderBy csdk notifications-module list --limit 10 --after csdk notifications-module find-first --where.. csdk notifications-module get --id -csdk notifications-module create --databaseId [--apiName ] [--channelsTableId ] [--defaultPermissions ] [--deliveryLogTableId ] [--entityField ] [--hasChannels ] [--hasDigestMetadata ] [--hasPreferences ] [--hasSettingsExtension ] [--hasSubscriptions ] [--notificationsTableId ] [--organizationSettingsTableId ] [--ownerTableId ] [--preferencesTableId ] [--privateApiName ] [--privateSchemaId ] [--privateSchemaName ] [--publicSchemaName ] [--readStateTableId ] [--schemaId ] [--suppressionsTableId ] [--userSettingsTableId ] -csdk notifications-module update --id [--apiName ] [--channelsTableId ] [--databaseId ] [--defaultPermissions ] [--deliveryLogTableId ] [--entityField ] [--hasChannels ] [--hasDigestMetadata ] [--hasPreferences ] [--hasSettingsExtension ] [--hasSubscriptions ] [--notificationsTableId ] [--organizationSettingsTableId ] [--ownerTableId ] [--preferencesTableId ] [--privateApiName ] [--privateSchemaId ] [--privateSchemaName ] [--publicSchemaName ] [--readStateTableId ] [--schemaId ] [--suppressionsTableId ] [--userSettingsTableId ] +csdk notifications-module create --databaseId [--apiName ] [--channelsTableId ] [--defaultCapabilities ] [--deliveryLogTableId ] [--entityField ] [--hasChannels ] [--hasDigestMetadata ] [--hasPreferences ] [--hasSettingsExtension ] [--hasSubscriptions ] [--notificationsTableId ] [--organizationSettingsTableId ] [--ownerTableId ] [--preferencesTableId ] [--privateApiName ] [--privateSchemaId ] [--privateSchemaName ] [--publicSchemaName ] [--readStateTableId ] [--schemaId ] [--suppressionsTableId ] [--userSettingsTableId ] +csdk notifications-module update --id [--apiName ] [--channelsTableId ] [--databaseId ] [--defaultCapabilities ] [--deliveryLogTableId ] [--entityField ] [--hasChannels ] [--hasDigestMetadata ] [--hasPreferences ] [--hasSettingsExtension ] [--hasSubscriptions ] [--notificationsTableId ] [--organizationSettingsTableId ] [--ownerTableId ] [--preferencesTableId ] [--privateApiName ] [--privateSchemaId ] [--privateSchemaName ] [--publicSchemaName ] [--readStateTableId ] [--schemaId ] [--suppressionsTableId ] [--userSettingsTableId ] csdk notifications-module delete --id ``` @@ -58,7 +58,7 @@ csdk notifications-module list --where.id.equalTo --orderBy ID_ASC ### Create a notificationsModule ```bash -csdk notifications-module create --databaseId [--apiName ] [--channelsTableId ] [--defaultPermissions ] [--deliveryLogTableId ] [--entityField ] [--hasChannels ] [--hasDigestMetadata ] [--hasPreferences ] [--hasSettingsExtension ] [--hasSubscriptions ] [--notificationsTableId ] [--organizationSettingsTableId ] [--ownerTableId ] [--preferencesTableId ] [--privateApiName ] [--privateSchemaId ] [--privateSchemaName ] [--publicSchemaName ] [--readStateTableId ] [--schemaId ] [--suppressionsTableId ] [--userSettingsTableId ] +csdk notifications-module create --databaseId [--apiName ] [--channelsTableId ] [--defaultCapabilities ] [--deliveryLogTableId ] [--entityField ] [--hasChannels ] [--hasDigestMetadata ] [--hasPreferences ] [--hasSettingsExtension ] [--hasSubscriptions ] [--notificationsTableId ] [--organizationSettingsTableId ] [--ownerTableId ] [--preferencesTableId ] [--privateApiName ] [--privateSchemaId ] [--privateSchemaName ] [--publicSchemaName ] [--readStateTableId ] [--schemaId ] [--suppressionsTableId ] [--userSettingsTableId ] ``` ### Get a notificationsModule by id diff --git a/.agents/skills/cli-modules/references/oauth-requests-module.md b/.agents/skills/cli-modules/references/oauth-requests-module.md new file mode 100644 index 0000000000..3b9612d87d --- /dev/null +++ b/.agents/skills/cli-modules/references/oauth-requests-module.md @@ -0,0 +1,68 @@ +# oauthRequestsModule + + + +CRUD operations for OauthRequestsModule records via csdk CLI + +## Usage + +```bash +csdk oauth-requests-module list +csdk oauth-requests-module list --where.. --orderBy +csdk oauth-requests-module list --limit 10 --after +csdk oauth-requests-module find-first --where.. +csdk oauth-requests-module get --id +csdk oauth-requests-module create --databaseId --scope [--entityField ] [--entityTableId ] [--oauthAuthorizationRequestsTableId ] [--oauthAuthorizationRequestsTableName ] [--pendingIdentityLinksTableId ] [--pendingIdentityLinksTableName ] [--prefix ] [--privateSchemaId ] [--privateSchemaName ] +csdk oauth-requests-module update --id [--databaseId ] [--entityField ] [--entityTableId ] [--oauthAuthorizationRequestsTableId ] [--oauthAuthorizationRequestsTableName ] [--pendingIdentityLinksTableId ] [--pendingIdentityLinksTableName ] [--prefix ] [--privateSchemaId ] [--privateSchemaName ] [--scope ] +csdk oauth-requests-module delete --id +``` + +## Examples + +### List oauthRequestsModule records + +```bash +csdk oauth-requests-module list +``` + +### List oauthRequestsModule records with pagination + +```bash +csdk oauth-requests-module list --limit 10 --offset 0 +``` + +### List oauthRequestsModule records with cursor pagination + +```bash +csdk oauth-requests-module list --limit 10 --after +``` + +### Find first matching oauthRequestsModule + +```bash +csdk oauth-requests-module find-first --where.id.equalTo +``` + +### List oauthRequestsModule records with field selection + +```bash +csdk oauth-requests-module list --select id,id +``` + +### List oauthRequestsModule records with filtering and ordering + +```bash +csdk oauth-requests-module list --where.id.equalTo --orderBy ID_ASC +``` + +### Create a oauthRequestsModule + +```bash +csdk oauth-requests-module create --databaseId --scope [--entityField ] [--entityTableId ] [--oauthAuthorizationRequestsTableId ] [--oauthAuthorizationRequestsTableName ] [--pendingIdentityLinksTableId ] [--pendingIdentityLinksTableName ] [--prefix ] [--privateSchemaId ] [--privateSchemaName ] +``` + +### Get a oauthRequestsModule by id + +```bash +csdk oauth-requests-module get --id +``` diff --git a/.agents/skills/cli-modules/references/profiles-module.md b/.agents/skills/cli-modules/references/profiles-module.md index eca4d8a0cc..6a22fed330 100644 --- a/.agents/skills/cli-modules/references/profiles-module.md +++ b/.agents/skills/cli-modules/references/profiles-module.md @@ -12,8 +12,8 @@ csdk profiles-module list --where.. --orderBy csdk profiles-module list --limit 10 --after csdk profiles-module find-first --where.. csdk profiles-module get --id -csdk profiles-module create --databaseId --scope [--actorTableId ] [--apiName ] [--entityField ] [--entityTableId ] [--membershipsTableId ] [--permissionsTableId ] [--prefix ] [--privateApiName ] [--privateSchemaId ] [--privateSchemaName ] [--profileDefinitionGrantsTableId ] [--profileDefinitionGrantsTableName ] [--profileGrantsTableId ] [--profileGrantsTableName ] [--profilePermissionsTableId ] [--profilePermissionsTableName ] [--profileTemplatesTableId ] [--profileTemplatesTableName ] [--publicSchemaName ] [--schemaId ] [--tableId ] [--tableName ] -csdk profiles-module update --id [--actorTableId ] [--apiName ] [--databaseId ] [--entityField ] [--entityTableId ] [--membershipsTableId ] [--permissionsTableId ] [--prefix ] [--privateApiName ] [--privateSchemaId ] [--privateSchemaName ] [--profileDefinitionGrantsTableId ] [--profileDefinitionGrantsTableName ] [--profileGrantsTableId ] [--profileGrantsTableName ] [--profilePermissionsTableId ] [--profilePermissionsTableName ] [--profileTemplatesTableId ] [--profileTemplatesTableName ] [--publicSchemaName ] [--schemaId ] [--scope ] [--tableId ] [--tableName ] +csdk profiles-module create --databaseId --scope [--actorTableId ] [--apiName ] [--capabilitiesTableId ] [--entityField ] [--entityTableId ] [--membershipProfilesTableId ] [--membershipProfilesTableName ] [--membershipsTableId ] [--prefix ] [--privateApiName ] [--privateSchemaId ] [--privateSchemaName ] [--profileCapabilitiesTableId ] [--profileCapabilitiesTableName ] [--profileDefinitionGrantsTableId ] [--profileDefinitionGrantsTableName ] [--profileGrantsTableId ] [--profileGrantsTableName ] [--profileTemplatesTableId ] [--profileTemplatesTableName ] [--publicSchemaName ] [--schemaId ] [--tableId ] [--tableName ] +csdk profiles-module update --id [--actorTableId ] [--apiName ] [--capabilitiesTableId ] [--databaseId ] [--entityField ] [--entityTableId ] [--membershipProfilesTableId ] [--membershipProfilesTableName ] [--membershipsTableId ] [--prefix ] [--privateApiName ] [--privateSchemaId ] [--privateSchemaName ] [--profileCapabilitiesTableId ] [--profileCapabilitiesTableName ] [--profileDefinitionGrantsTableId ] [--profileDefinitionGrantsTableName ] [--profileGrantsTableId ] [--profileGrantsTableName ] [--profileTemplatesTableId ] [--profileTemplatesTableName ] [--publicSchemaName ] [--schemaId ] [--scope ] [--tableId ] [--tableName ] csdk profiles-module delete --id ``` @@ -58,7 +58,7 @@ csdk profiles-module list --where.id.equalTo --orderBy ID_ASC ### Create a profilesModule ```bash -csdk profiles-module create --databaseId --scope [--actorTableId ] [--apiName ] [--entityField ] [--entityTableId ] [--membershipsTableId ] [--permissionsTableId ] [--prefix ] [--privateApiName ] [--privateSchemaId ] [--privateSchemaName ] [--profileDefinitionGrantsTableId ] [--profileDefinitionGrantsTableName ] [--profileGrantsTableId ] [--profileGrantsTableName ] [--profilePermissionsTableId ] [--profilePermissionsTableName ] [--profileTemplatesTableId ] [--profileTemplatesTableName ] [--publicSchemaName ] [--schemaId ] [--tableId ] [--tableName ] +csdk profiles-module create --databaseId --scope [--actorTableId ] [--apiName ] [--capabilitiesTableId ] [--entityField ] [--entityTableId ] [--membershipProfilesTableId ] [--membershipProfilesTableName ] [--membershipsTableId ] [--prefix ] [--privateApiName ] [--privateSchemaId ] [--privateSchemaName ] [--profileCapabilitiesTableId ] [--profileCapabilitiesTableName ] [--profileDefinitionGrantsTableId ] [--profileDefinitionGrantsTableName ] [--profileGrantsTableId ] [--profileGrantsTableName ] [--profileTemplatesTableId ] [--profileTemplatesTableName ] [--publicSchemaName ] [--schemaId ] [--tableId ] [--tableName ] ``` ### Get a profilesModule by id diff --git a/.agents/skills/cli-modules/references/rate-limit-meters-module.md b/.agents/skills/cli-modules/references/rate-limit-meters-module.md index c76c2e1aa4..f92f5a2cdd 100644 --- a/.agents/skills/cli-modules/references/rate-limit-meters-module.md +++ b/.agents/skills/cli-modules/references/rate-limit-meters-module.md @@ -12,8 +12,8 @@ csdk rate-limit-meters-module list --where.. --orderBy csdk rate-limit-meters-module find-first --where.. csdk rate-limit-meters-module get --id -csdk rate-limit-meters-module create --databaseId [--apiName ] [--checkRateLimitFunction ] [--defaultPermissions ] [--prefix ] [--privateApiName ] [--privateSchemaId ] [--privateSchemaName ] [--publicSchemaName ] [--rateLimitOverridesTableId ] [--rateLimitOverridesTableName ] [--rateLimitStateTableId ] [--rateLimitStateTableName ] [--rateWindowLimitsTableId ] [--rateWindowLimitsTableName ] [--schemaId ] -csdk rate-limit-meters-module update --id [--apiName ] [--checkRateLimitFunction ] [--databaseId ] [--defaultPermissions ] [--prefix ] [--privateApiName ] [--privateSchemaId ] [--privateSchemaName ] [--publicSchemaName ] [--rateLimitOverridesTableId ] [--rateLimitOverridesTableName ] [--rateLimitStateTableId ] [--rateLimitStateTableName ] [--rateWindowLimitsTableId ] [--rateWindowLimitsTableName ] [--schemaId ] +csdk rate-limit-meters-module create --databaseId [--apiName ] [--checkRateLimitFunction ] [--defaultCapabilities ] [--prefix ] [--privateApiName ] [--privateSchemaId ] [--privateSchemaName ] [--publicSchemaName ] [--rateLimitOverridesTableId ] [--rateLimitOverridesTableName ] [--rateLimitStateTableId ] [--rateLimitStateTableName ] [--rateWindowLimitsTableId ] [--rateWindowLimitsTableName ] [--schemaId ] +csdk rate-limit-meters-module update --id [--apiName ] [--checkRateLimitFunction ] [--databaseId ] [--defaultCapabilities ] [--prefix ] [--privateApiName ] [--privateSchemaId ] [--privateSchemaName ] [--publicSchemaName ] [--rateLimitOverridesTableId ] [--rateLimitOverridesTableName ] [--rateLimitStateTableId ] [--rateLimitStateTableName ] [--rateWindowLimitsTableId ] [--rateWindowLimitsTableName ] [--schemaId ] csdk rate-limit-meters-module delete --id ``` @@ -58,7 +58,7 @@ csdk rate-limit-meters-module list --where.id.equalTo --orderBy ID_ASC ### Create a rateLimitMetersModule ```bash -csdk rate-limit-meters-module create --databaseId [--apiName ] [--checkRateLimitFunction ] [--defaultPermissions ] [--prefix ] [--privateApiName ] [--privateSchemaId ] [--privateSchemaName ] [--publicSchemaName ] [--rateLimitOverridesTableId ] [--rateLimitOverridesTableName ] [--rateLimitStateTableId ] [--rateLimitStateTableName ] [--rateWindowLimitsTableId ] [--rateWindowLimitsTableName ] [--schemaId ] +csdk rate-limit-meters-module create --databaseId [--apiName ] [--checkRateLimitFunction ] [--defaultCapabilities ] [--prefix ] [--privateApiName ] [--privateSchemaId ] [--privateSchemaName ] [--publicSchemaName ] [--rateLimitOverridesTableId ] [--rateLimitOverridesTableName ] [--rateLimitStateTableId ] [--rateLimitStateTableName ] [--rateWindowLimitsTableId ] [--rateWindowLimitsTableName ] [--schemaId ] ``` ### Get a rateLimitMetersModule by id diff --git a/.agents/skills/cli-modules/references/resource-module.md b/.agents/skills/cli-modules/references/resource-module.md index ec3547424c..733ad6c96b 100644 --- a/.agents/skills/cli-modules/references/resource-module.md +++ b/.agents/skills/cli-modules/references/resource-module.md @@ -12,8 +12,8 @@ csdk resource-module list --where.. --orderBy csdk resource-module list --limit 10 --after csdk resource-module find-first --where.. csdk resource-module get --id -csdk resource-module create --databaseId --scope [--apiName ] [--defaultPermissions ] [--entityField ] [--entityTableId ] [--installationStoreName ] [--merkleStoreModuleId ] [--namespaceModuleId ] [--policies ] [--prefix ] [--privateApiName ] [--privateSchemaId ] [--privateSchemaName ] [--provisions ] [--publicSchemaName ] [--requirementsStateViewName ] [--resolvedRequirementsViewName ] [--resourceBillingRollupFunction ] [--resourceDefinitionsTableId ] [--resourceDefinitionsTableName ] [--resourceEventsTableId ] [--resourceEventsTableName ] [--resourceInstallationsTableId ] [--resourceInstallationsTableName ] [--resourceStatusChecksTableId ] [--resourceStatusChecksTableName ] [--resourceUsageLogTableId ] [--resourceUsageLogTableName ] [--resourceUsageSummaryTableId ] [--resourceUsageSummaryTableName ] [--resourcesTableId ] [--resourcesTableName ] [--rollupResourceUsageSummaryFunction ] [--schemaId ] -csdk resource-module update --id [--apiName ] [--databaseId ] [--defaultPermissions ] [--entityField ] [--entityTableId ] [--installationStoreName ] [--merkleStoreModuleId ] [--namespaceModuleId ] [--policies ] [--prefix ] [--privateApiName ] [--privateSchemaId ] [--privateSchemaName ] [--provisions ] [--publicSchemaName ] [--requirementsStateViewName ] [--resolvedRequirementsViewName ] [--resourceBillingRollupFunction ] [--resourceDefinitionsTableId ] [--resourceDefinitionsTableName ] [--resourceEventsTableId ] [--resourceEventsTableName ] [--resourceInstallationsTableId ] [--resourceInstallationsTableName ] [--resourceStatusChecksTableId ] [--resourceStatusChecksTableName ] [--resourceUsageLogTableId ] [--resourceUsageLogTableName ] [--resourceUsageSummaryTableId ] [--resourceUsageSummaryTableName ] [--resourcesTableId ] [--resourcesTableName ] [--rollupResourceUsageSummaryFunction ] [--schemaId ] [--scope ] +csdk resource-module create --databaseId --scope [--apiName ] [--defaultCapabilities ] [--entityField ] [--entityTableId ] [--installationStoreName ] [--merkleStoreModuleId ] [--namespaceModuleId ] [--policies ] [--prefix ] [--privateApiName ] [--privateSchemaId ] [--privateSchemaName ] [--provisions ] [--publicSchemaName ] [--requirementsStateViewName ] [--resolvedRequirementsViewName ] [--resourceBillingRollupFunction ] [--resourceDefinitionsTableId ] [--resourceDefinitionsTableName ] [--resourceEventsTableId ] [--resourceEventsTableName ] [--resourceInstallationsTableId ] [--resourceInstallationsTableName ] [--resourceStatusChecksTableId ] [--resourceStatusChecksTableName ] [--resourceUsageLogTableId ] [--resourceUsageLogTableName ] [--resourceUsageSummaryTableId ] [--resourceUsageSummaryTableName ] [--resourcesTableId ] [--resourcesTableName ] [--rollupResourceUsageSummaryFunction ] [--schemaId ] +csdk resource-module update --id [--apiName ] [--databaseId ] [--defaultCapabilities ] [--entityField ] [--entityTableId ] [--installationStoreName ] [--merkleStoreModuleId ] [--namespaceModuleId ] [--policies ] [--prefix ] [--privateApiName ] [--privateSchemaId ] [--privateSchemaName ] [--provisions ] [--publicSchemaName ] [--requirementsStateViewName ] [--resolvedRequirementsViewName ] [--resourceBillingRollupFunction ] [--resourceDefinitionsTableId ] [--resourceDefinitionsTableName ] [--resourceEventsTableId ] [--resourceEventsTableName ] [--resourceInstallationsTableId ] [--resourceInstallationsTableName ] [--resourceStatusChecksTableId ] [--resourceStatusChecksTableName ] [--resourceUsageLogTableId ] [--resourceUsageLogTableName ] [--resourceUsageSummaryTableId ] [--resourceUsageSummaryTableName ] [--resourcesTableId ] [--resourcesTableName ] [--rollupResourceUsageSummaryFunction ] [--schemaId ] [--scope ] csdk resource-module delete --id ``` @@ -58,7 +58,7 @@ csdk resource-module list --where.id.equalTo --orderBy ID_ASC ### Create a resourceModule ```bash -csdk resource-module create --databaseId --scope [--apiName ] [--defaultPermissions ] [--entityField ] [--entityTableId ] [--installationStoreName ] [--merkleStoreModuleId ] [--namespaceModuleId ] [--policies ] [--prefix ] [--privateApiName ] [--privateSchemaId ] [--privateSchemaName ] [--provisions ] [--publicSchemaName ] [--requirementsStateViewName ] [--resolvedRequirementsViewName ] [--resourceBillingRollupFunction ] [--resourceDefinitionsTableId ] [--resourceDefinitionsTableName ] [--resourceEventsTableId ] [--resourceEventsTableName ] [--resourceInstallationsTableId ] [--resourceInstallationsTableName ] [--resourceStatusChecksTableId ] [--resourceStatusChecksTableName ] [--resourceUsageLogTableId ] [--resourceUsageLogTableName ] [--resourceUsageSummaryTableId ] [--resourceUsageSummaryTableName ] [--resourcesTableId ] [--resourcesTableName ] [--rollupResourceUsageSummaryFunction ] [--schemaId ] +csdk resource-module create --databaseId --scope [--apiName ] [--defaultCapabilities ] [--entityField ] [--entityTableId ] [--installationStoreName ] [--merkleStoreModuleId ] [--namespaceModuleId ] [--policies ] [--prefix ] [--privateApiName ] [--privateSchemaId ] [--privateSchemaName ] [--provisions ] [--publicSchemaName ] [--requirementsStateViewName ] [--resolvedRequirementsViewName ] [--resourceBillingRollupFunction ] [--resourceDefinitionsTableId ] [--resourceDefinitionsTableName ] [--resourceEventsTableId ] [--resourceEventsTableName ] [--resourceInstallationsTableId ] [--resourceInstallationsTableName ] [--resourceStatusChecksTableId ] [--resourceStatusChecksTableName ] [--resourceUsageLogTableId ] [--resourceUsageLogTableName ] [--resourceUsageSummaryTableId ] [--resourceUsageSummaryTableName ] [--resourcesTableId ] [--resourcesTableName ] [--rollupResourceUsageSummaryFunction ] [--schemaId ] ``` ### Get a resourceModule by id diff --git a/.agents/skills/cli-modules/references/route-module.md b/.agents/skills/cli-modules/references/route-module.md index ee1a02a01f..26372a6a3b 100644 --- a/.agents/skills/cli-modules/references/route-module.md +++ b/.agents/skills/cli-modules/references/route-module.md @@ -12,8 +12,8 @@ csdk route-module list --where.. --orderBy csdk route-module list --limit 10 --after csdk route-module find-first --where.. csdk route-module get --id -csdk route-module create --databaseId --scope [--apiName ] [--catalogModuleId ] [--defaultPermissions ] [--domainModuleId ] [--entityField ] [--entityTableId ] [--hostnameBindingsTableId ] [--hostnameBindingsTableName ] [--policies ] [--prefix ] [--privateApiName ] [--privateSchemaId ] [--privateSchemaName ] [--provisions ] [--publicSchemaName ] [--resolverFunctionName ] [--routeBindingsTableId ] [--routeBindingsTableName ] [--routesTableId ] [--routesTableName ] [--schemaId ] -csdk route-module update --id [--apiName ] [--catalogModuleId ] [--databaseId ] [--defaultPermissions ] [--domainModuleId ] [--entityField ] [--entityTableId ] [--hostnameBindingsTableId ] [--hostnameBindingsTableName ] [--policies ] [--prefix ] [--privateApiName ] [--privateSchemaId ] [--privateSchemaName ] [--provisions ] [--publicSchemaName ] [--resolverFunctionName ] [--routeBindingsTableId ] [--routeBindingsTableName ] [--routesTableId ] [--routesTableName ] [--schemaId ] [--scope ] +csdk route-module create --databaseId --scope [--apiName ] [--appLinksFunctionName ] [--catalogModuleId ] [--deepLinkFunctionName ] [--defaultCapabilities ] [--domainModuleId ] [--entityField ] [--entityTableId ] [--hostnameBindingsTableId ] [--hostnameBindingsTableName ] [--policies ] [--prefix ] [--privateApiName ] [--privateSchemaId ] [--privateSchemaName ] [--provisions ] [--publicSchemaName ] [--resolverFunctionName ] [--routeBindingsTableId ] [--routeBindingsTableName ] [--routesTableId ] [--routesTableName ] [--schemaId ] +csdk route-module update --id [--apiName ] [--appLinksFunctionName ] [--catalogModuleId ] [--databaseId ] [--deepLinkFunctionName ] [--defaultCapabilities ] [--domainModuleId ] [--entityField ] [--entityTableId ] [--hostnameBindingsTableId ] [--hostnameBindingsTableName ] [--policies ] [--prefix ] [--privateApiName ] [--privateSchemaId ] [--privateSchemaName ] [--provisions ] [--publicSchemaName ] [--resolverFunctionName ] [--routeBindingsTableId ] [--routeBindingsTableName ] [--routesTableId ] [--routesTableName ] [--schemaId ] [--scope ] csdk route-module delete --id ``` @@ -58,7 +58,7 @@ csdk route-module list --where.id.equalTo --orderBy ID_ASC ### Create a routeModule ```bash -csdk route-module create --databaseId --scope [--apiName ] [--catalogModuleId ] [--defaultPermissions ] [--domainModuleId ] [--entityField ] [--entityTableId ] [--hostnameBindingsTableId ] [--hostnameBindingsTableName ] [--policies ] [--prefix ] [--privateApiName ] [--privateSchemaId ] [--privateSchemaName ] [--provisions ] [--publicSchemaName ] [--resolverFunctionName ] [--routeBindingsTableId ] [--routeBindingsTableName ] [--routesTableId ] [--routesTableName ] [--schemaId ] +csdk route-module create --databaseId --scope [--apiName ] [--appLinksFunctionName ] [--catalogModuleId ] [--deepLinkFunctionName ] [--defaultCapabilities ] [--domainModuleId ] [--entityField ] [--entityTableId ] [--hostnameBindingsTableId ] [--hostnameBindingsTableName ] [--policies ] [--prefix ] [--privateApiName ] [--privateSchemaId ] [--privateSchemaName ] [--provisions ] [--publicSchemaName ] [--resolverFunctionName ] [--routeBindingsTableId ] [--routeBindingsTableName ] [--routesTableId ] [--routesTableName ] [--schemaId ] ``` ### Get a routeModule by id diff --git a/.agents/skills/cli-modules/references/scope-types-module.md b/.agents/skills/cli-modules/references/scope-types-module.md new file mode 100644 index 0000000000..d78bac7575 --- /dev/null +++ b/.agents/skills/cli-modules/references/scope-types-module.md @@ -0,0 +1,68 @@ +# scopeTypesModule + + + +CRUD operations for ScopeTypesModule records via csdk CLI + +## Usage + +```bash +csdk scope-types-module list +csdk scope-types-module list --where.. --orderBy +csdk scope-types-module list --limit 10 --after +csdk scope-types-module find-first --where.. +csdk scope-types-module get --id +csdk scope-types-module create --databaseId [--privateSchemaName ] [--schemaId ] [--scopeTypesTableId ] +csdk scope-types-module update --id [--databaseId ] [--privateSchemaName ] [--schemaId ] [--scopeTypesTableId ] +csdk scope-types-module delete --id +``` + +## Examples + +### List scopeTypesModule records + +```bash +csdk scope-types-module list +``` + +### List scopeTypesModule records with pagination + +```bash +csdk scope-types-module list --limit 10 --offset 0 +``` + +### List scopeTypesModule records with cursor pagination + +```bash +csdk scope-types-module list --limit 10 --after +``` + +### Find first matching scopeTypesModule + +```bash +csdk scope-types-module find-first --where.id.equalTo +``` + +### List scopeTypesModule records with field selection + +```bash +csdk scope-types-module list --select id,id +``` + +### List scopeTypesModule records with filtering and ordering + +```bash +csdk scope-types-module list --where.id.equalTo --orderBy ID_ASC +``` + +### Create a scopeTypesModule + +```bash +csdk scope-types-module create --databaseId [--privateSchemaName ] [--schemaId ] [--scopeTypesTableId ] +``` + +### Get a scopeTypesModule by id + +```bash +csdk scope-types-module get --id +``` diff --git a/.agents/skills/cli-modules/references/site-surface-module.md b/.agents/skills/cli-modules/references/site-surface-module.md index f6475dbfa6..df13c14384 100644 --- a/.agents/skills/cli-modules/references/site-surface-module.md +++ b/.agents/skills/cli-modules/references/site-surface-module.md @@ -12,8 +12,8 @@ csdk site-surface-module list --where.. --orderBy csdk site-surface-module list --limit 10 --after csdk site-surface-module find-first --where.. csdk site-surface-module get --id -csdk site-surface-module create --databaseId --scope [--apiName ] [--catalogModuleId ] [--defaultPermissions ] [--entityField ] [--entityTableId ] [--policies ] [--prefix ] [--privateApiName ] [--privateSchemaId ] [--privateSchemaName ] [--provisions ] [--publicSchemaName ] [--schemaId ] [--siteAppLinksTableId ] [--siteAppLinksTableName ] [--siteDeepLinksTableId ] [--siteDeepLinksTableName ] [--siteErrorPagesTableId ] [--siteErrorPagesTableName ] [--siteMetadataTableId ] [--siteMetadataTableName ] [--siteModulesTableId ] [--siteModulesTableName ] [--siteThemesTableId ] [--siteThemesTableName ] [--siteWebConfigTableId ] [--siteWebConfigTableName ] [--sitesTableId ] [--sitesTableName ] -csdk site-surface-module update --id [--apiName ] [--catalogModuleId ] [--databaseId ] [--defaultPermissions ] [--entityField ] [--entityTableId ] [--policies ] [--prefix ] [--privateApiName ] [--privateSchemaId ] [--privateSchemaName ] [--provisions ] [--publicSchemaName ] [--schemaId ] [--scope ] [--siteAppLinksTableId ] [--siteAppLinksTableName ] [--siteDeepLinksTableId ] [--siteDeepLinksTableName ] [--siteErrorPagesTableId ] [--siteErrorPagesTableName ] [--siteMetadataTableId ] [--siteMetadataTableName ] [--siteModulesTableId ] [--siteModulesTableName ] [--siteThemesTableId ] [--siteThemesTableName ] [--siteWebConfigTableId ] [--siteWebConfigTableName ] [--sitesTableId ] [--sitesTableName ] +csdk site-surface-module create --databaseId --scope [--apiName ] [--catalogModuleId ] [--defaultCapabilities ] [--entityField ] [--entityTableId ] [--policies ] [--prefix ] [--privateApiName ] [--privateSchemaId ] [--privateSchemaName ] [--provisions ] [--publicSchemaName ] [--schemaId ] [--siteAppLinksTableId ] [--siteAppLinksTableName ] [--siteDeepLinksTableId ] [--siteDeepLinksTableName ] [--siteErrorPagesTableId ] [--siteErrorPagesTableName ] [--siteMetadataTableId ] [--siteMetadataTableName ] [--siteModulesTableId ] [--siteModulesTableName ] [--siteThemesTableId ] [--siteThemesTableName ] [--siteWebConfigTableId ] [--siteWebConfigTableName ] [--sitesTableId ] [--sitesTableName ] +csdk site-surface-module update --id [--apiName ] [--catalogModuleId ] [--databaseId ] [--defaultCapabilities ] [--entityField ] [--entityTableId ] [--policies ] [--prefix ] [--privateApiName ] [--privateSchemaId ] [--privateSchemaName ] [--provisions ] [--publicSchemaName ] [--schemaId ] [--scope ] [--siteAppLinksTableId ] [--siteAppLinksTableName ] [--siteDeepLinksTableId ] [--siteDeepLinksTableName ] [--siteErrorPagesTableId ] [--siteErrorPagesTableName ] [--siteMetadataTableId ] [--siteMetadataTableName ] [--siteModulesTableId ] [--siteModulesTableName ] [--siteThemesTableId ] [--siteThemesTableName ] [--siteWebConfigTableId ] [--siteWebConfigTableName ] [--sitesTableId ] [--sitesTableName ] csdk site-surface-module delete --id ``` @@ -58,7 +58,7 @@ csdk site-surface-module list --where.id.equalTo --orderBy ID_ASC ### Create a siteSurfaceModule ```bash -csdk site-surface-module create --databaseId --scope [--apiName ] [--catalogModuleId ] [--defaultPermissions ] [--entityField ] [--entityTableId ] [--policies ] [--prefix ] [--privateApiName ] [--privateSchemaId ] [--privateSchemaName ] [--provisions ] [--publicSchemaName ] [--schemaId ] [--siteAppLinksTableId ] [--siteAppLinksTableName ] [--siteDeepLinksTableId ] [--siteDeepLinksTableName ] [--siteErrorPagesTableId ] [--siteErrorPagesTableName ] [--siteMetadataTableId ] [--siteMetadataTableName ] [--siteModulesTableId ] [--siteModulesTableName ] [--siteThemesTableId ] [--siteThemesTableName ] [--siteWebConfigTableId ] [--siteWebConfigTableName ] [--sitesTableId ] [--sitesTableName ] +csdk site-surface-module create --databaseId --scope [--apiName ] [--catalogModuleId ] [--defaultCapabilities ] [--entityField ] [--entityTableId ] [--policies ] [--prefix ] [--privateApiName ] [--privateSchemaId ] [--privateSchemaName ] [--provisions ] [--publicSchemaName ] [--schemaId ] [--siteAppLinksTableId ] [--siteAppLinksTableName ] [--siteDeepLinksTableId ] [--siteDeepLinksTableName ] [--siteErrorPagesTableId ] [--siteErrorPagesTableName ] [--siteMetadataTableId ] [--siteMetadataTableName ] [--siteModulesTableId ] [--siteModulesTableName ] [--siteThemesTableId ] [--siteThemesTableName ] [--siteWebConfigTableId ] [--siteWebConfigTableName ] [--sitesTableId ] [--sitesTableName ] ``` ### Get a siteSurfaceModule by id diff --git a/.agents/skills/cli-modules/references/storage-module.md b/.agents/skills/cli-modules/references/storage-module.md index 985aca5958..efe42886b7 100644 --- a/.agents/skills/cli-modules/references/storage-module.md +++ b/.agents/skills/cli-modules/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 --scope [--allowedOrigins ] [--apiName ] [--bucketsTableId ] [--bucketsTableName ] [--cacheTtlSeconds ] [--catalogModuleId ] [--confirmUploadDelay ] [--defaultMaxFileSize ] [--defaultPermissions ] [--downloadUrlExpirySeconds ] [--endpoint ] [--entityField ] [--entityTableId ] [--fileEventsTableId ] [--filesTableId ] [--filesTableName ] [--hasAuditLog ] [--hasConfirmUpload ] [--hasContentHash ] [--hasCustomKeys ] [--hasPathShares ] [--hasVersioning ] [--maxBulkFiles ] [--maxBulkTotalSize ] [--maxFilenameLength ] [--pathSharesTableId ] [--policies ] [--prefix ] [--privateApiName ] [--privateSchemaId ] [--privateSchemaName ] [--provider ] [--provisions ] [--publicSchemaName ] [--publicUrlPrefix ] [--restrictReads ] [--schemaId ] [--uploadUrlExpirySeconds ] -csdk storage-module update --id [--allowedOrigins ] [--apiName ] [--bucketsTableId ] [--bucketsTableName ] [--cacheTtlSeconds ] [--catalogModuleId ] [--confirmUploadDelay ] [--databaseId ] [--defaultMaxFileSize ] [--defaultPermissions ] [--downloadUrlExpirySeconds ] [--endpoint ] [--entityField ] [--entityTableId ] [--fileEventsTableId ] [--filesTableId ] [--filesTableName ] [--hasAuditLog ] [--hasConfirmUpload ] [--hasContentHash ] [--hasCustomKeys ] [--hasPathShares ] [--hasVersioning ] [--maxBulkFiles ] [--maxBulkTotalSize ] [--maxFilenameLength ] [--pathSharesTableId ] [--policies ] [--prefix ] [--privateApiName ] [--privateSchemaId ] [--privateSchemaName ] [--provider ] [--provisions ] [--publicSchemaName ] [--publicUrlPrefix ] [--restrictReads ] [--schemaId ] [--scope ] [--uploadUrlExpirySeconds ] +csdk storage-module create --databaseId --scope [--allowedOrigins ] [--apiName ] [--bucketsTableId ] [--bucketsTableName ] [--cacheTtlSeconds ] [--catalogModuleId ] [--confirmUploadDelay ] [--defaultCapabilities ] [--defaultMaxFileSize ] [--downloadUrlExpirySeconds ] [--endpoint ] [--entityField ] [--entityTableId ] [--fileEventsTableId ] [--filesTableId ] [--filesTableName ] [--hasAuditLog ] [--hasConfirmUpload ] [--hasContentHash ] [--hasCustomKeys ] [--hasPathShares ] [--hasVersioning ] [--maxBulkFiles ] [--maxBulkTotalSize ] [--maxFilenameLength ] [--pathSharesTableId ] [--policies ] [--prefix ] [--privateApiName ] [--privateSchemaId ] [--privateSchemaName ] [--provider ] [--provisions ] [--publicSchemaName ] [--publicUrlPrefix ] [--restrictReads ] [--schemaId ] [--uploadUrlExpirySeconds ] +csdk storage-module update --id [--allowedOrigins ] [--apiName ] [--bucketsTableId ] [--bucketsTableName ] [--cacheTtlSeconds ] [--catalogModuleId ] [--confirmUploadDelay ] [--databaseId ] [--defaultCapabilities ] [--defaultMaxFileSize ] [--downloadUrlExpirySeconds ] [--endpoint ] [--entityField ] [--entityTableId ] [--fileEventsTableId ] [--filesTableId ] [--filesTableName ] [--hasAuditLog ] [--hasConfirmUpload ] [--hasContentHash ] [--hasCustomKeys ] [--hasPathShares ] [--hasVersioning ] [--maxBulkFiles ] [--maxBulkTotalSize ] [--maxFilenameLength ] [--pathSharesTableId ] [--policies ] [--prefix ] [--privateApiName ] [--privateSchemaId ] [--privateSchemaName ] [--provider ] [--provisions ] [--publicSchemaName ] [--publicUrlPrefix ] [--restrictReads ] [--schemaId ] [--scope ] [--uploadUrlExpirySeconds ] 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 --scope [--allowedOrigins ] [--apiName ] [--bucketsTableId ] [--bucketsTableName ] [--cacheTtlSeconds ] [--catalogModuleId ] [--confirmUploadDelay ] [--defaultMaxFileSize ] [--defaultPermissions ] [--downloadUrlExpirySeconds ] [--endpoint ] [--entityField ] [--entityTableId ] [--fileEventsTableId ] [--filesTableId ] [--filesTableName ] [--hasAuditLog ] [--hasConfirmUpload ] [--hasContentHash ] [--hasCustomKeys ] [--hasPathShares ] [--hasVersioning ] [--maxBulkFiles ] [--maxBulkTotalSize ] [--maxFilenameLength ] [--pathSharesTableId ] [--policies ] [--prefix ] [--privateApiName ] [--privateSchemaId ] [--privateSchemaName ] [--provider ] [--provisions ] [--publicSchemaName ] [--publicUrlPrefix ] [--restrictReads ] [--schemaId ] [--uploadUrlExpirySeconds ] +csdk storage-module create --databaseId --scope [--allowedOrigins ] [--apiName ] [--bucketsTableId ] [--bucketsTableName ] [--cacheTtlSeconds ] [--catalogModuleId ] [--confirmUploadDelay ] [--defaultCapabilities ] [--defaultMaxFileSize ] [--downloadUrlExpirySeconds ] [--endpoint ] [--entityField ] [--entityTableId ] [--fileEventsTableId ] [--filesTableId ] [--filesTableName ] [--hasAuditLog ] [--hasConfirmUpload ] [--hasContentHash ] [--hasCustomKeys ] [--hasPathShares ] [--hasVersioning ] [--maxBulkFiles ] [--maxBulkTotalSize ] [--maxFilenameLength ] [--pathSharesTableId ] [--policies ] [--prefix ] [--privateApiName ] [--privateSchemaId ] [--privateSchemaName ] [--provider ] [--provisions ] [--publicSchemaName ] [--publicUrlPrefix ] [--restrictReads ] [--schemaId ] [--uploadUrlExpirySeconds ] ``` ### Get a storageModule by id diff --git a/.agents/skills/cli-modules/references/user-settings-security-module.md b/.agents/skills/cli-modules/references/user-settings-security-module.md new file mode 100644 index 0000000000..75078a141c --- /dev/null +++ b/.agents/skills/cli-modules/references/user-settings-security-module.md @@ -0,0 +1,68 @@ +# userSettingsSecurityModule + + + +CRUD operations for UserSettingsSecurityModule records via csdk CLI + +## Usage + +```bash +csdk user-settings-security-module list +csdk user-settings-security-module list --where.. --orderBy +csdk user-settings-security-module list --limit 10 --after +csdk user-settings-security-module find-first --where.. +csdk user-settings-security-module get --id +csdk user-settings-security-module create --databaseId [--apiName ] [--ownerTableId ] [--schemaId ] [--tableId ] [--tableName ] +csdk user-settings-security-module update --id [--apiName ] [--databaseId ] [--ownerTableId ] [--schemaId ] [--tableId ] [--tableName ] +csdk user-settings-security-module delete --id +``` + +## Examples + +### List userSettingsSecurityModule records + +```bash +csdk user-settings-security-module list +``` + +### List userSettingsSecurityModule records with pagination + +```bash +csdk user-settings-security-module list --limit 10 --offset 0 +``` + +### List userSettingsSecurityModule records with cursor pagination + +```bash +csdk user-settings-security-module list --limit 10 --after +``` + +### Find first matching userSettingsSecurityModule + +```bash +csdk user-settings-security-module find-first --where.id.equalTo +``` + +### List userSettingsSecurityModule records with field selection + +```bash +csdk user-settings-security-module list --select id,id +``` + +### List userSettingsSecurityModule records with filtering and ordering + +```bash +csdk user-settings-security-module list --where.id.equalTo --orderBy ID_ASC +``` + +### Create a userSettingsSecurityModule + +```bash +csdk user-settings-security-module create --databaseId [--apiName ] [--ownerTableId ] [--schemaId ] [--tableId ] [--tableName ] +``` + +### Get a userSettingsSecurityModule by id + +```bash +csdk user-settings-security-module get --id +``` diff --git a/.agents/skills/cli-modules/references/webhook-module.md b/.agents/skills/cli-modules/references/webhook-module.md index e11626fccb..ec1cd57484 100644 --- a/.agents/skills/cli-modules/references/webhook-module.md +++ b/.agents/skills/cli-modules/references/webhook-module.md @@ -12,8 +12,8 @@ csdk webhook-module list --where.. --orderBy csdk webhook-module list --limit 10 --after csdk webhook-module find-first --where.. csdk webhook-module get --id -csdk webhook-module create --databaseId --scope [--apiName ] [--defaultPermissions ] [--entityField ] [--entityTableId ] [--functionInvocationModuleId ] [--functionModuleId ] [--infraSecretsModuleId ] [--namespaceModuleId ] [--policies ] [--prefix ] [--privateApiName ] [--privateSchemaId ] [--privateSchemaName ] [--provisions ] [--publicSchemaName ] [--schemaId ] [--webhookEndpointsTableId ] [--webhookEndpointsTableName ] [--webhookEventsTableId ] [--webhookEventsTableName ] -csdk webhook-module update --id [--apiName ] [--databaseId ] [--defaultPermissions ] [--entityField ] [--entityTableId ] [--functionInvocationModuleId ] [--functionModuleId ] [--infraSecretsModuleId ] [--namespaceModuleId ] [--policies ] [--prefix ] [--privateApiName ] [--privateSchemaId ] [--privateSchemaName ] [--provisions ] [--publicSchemaName ] [--schemaId ] [--scope ] [--webhookEndpointsTableId ] [--webhookEndpointsTableName ] [--webhookEventsTableId ] [--webhookEventsTableName ] +csdk webhook-module create --databaseId --scope [--apiName ] [--defaultCapabilities ] [--entityField ] [--entityTableId ] [--functionInvocationModuleId ] [--functionModuleId ] [--infraSecretsModuleId ] [--namespaceModuleId ] [--policies ] [--prefix ] [--privateApiName ] [--privateSchemaId ] [--privateSchemaName ] [--provisions ] [--publicSchemaName ] [--schemaId ] [--webhookEndpointsTableId ] [--webhookEndpointsTableName ] [--webhookEventsTableId ] [--webhookEventsTableName ] +csdk webhook-module update --id [--apiName ] [--databaseId ] [--defaultCapabilities ] [--entityField ] [--entityTableId ] [--functionInvocationModuleId ] [--functionModuleId ] [--infraSecretsModuleId ] [--namespaceModuleId ] [--policies ] [--prefix ] [--privateApiName ] [--privateSchemaId ] [--privateSchemaName ] [--provisions ] [--publicSchemaName ] [--schemaId ] [--scope ] [--webhookEndpointsTableId ] [--webhookEndpointsTableName ] [--webhookEventsTableId ] [--webhookEventsTableName ] csdk webhook-module delete --id ``` @@ -58,7 +58,7 @@ csdk webhook-module list --where.id.equalTo --orderBy ID_ASC ### Create a webhookModule ```bash -csdk webhook-module create --databaseId --scope [--apiName ] [--defaultPermissions ] [--entityField ] [--entityTableId ] [--functionInvocationModuleId ] [--functionModuleId ] [--infraSecretsModuleId ] [--namespaceModuleId ] [--policies ] [--prefix ] [--privateApiName ] [--privateSchemaId ] [--privateSchemaName ] [--provisions ] [--publicSchemaName ] [--schemaId ] [--webhookEndpointsTableId ] [--webhookEndpointsTableName ] [--webhookEventsTableId ] [--webhookEventsTableName ] +csdk webhook-module create --databaseId --scope [--apiName ] [--defaultCapabilities ] [--entityField ] [--entityTableId ] [--functionInvocationModuleId ] [--functionModuleId ] [--infraSecretsModuleId ] [--namespaceModuleId ] [--policies ] [--prefix ] [--privateApiName ] [--privateSchemaId ] [--privateSchemaName ] [--provisions ] [--publicSchemaName ] [--schemaId ] [--webhookEndpointsTableId ] [--webhookEndpointsTableName ] [--webhookEventsTableId ] [--webhookEventsTableName ] ``` ### Get a webhookModule by id diff --git a/.agents/skills/cli-objects/SKILL.md b/.agents/skills/cli-objects/SKILL.md index ea2ac97787..db49ad1859 100644 --- a/.agents/skills/cli-objects/SKILL.md +++ b/.agents/skills/cli-objects/SKILL.md @@ -1,13 +1,13 @@ --- name: cli-objects -description: CLI tool (csdk) for the objects API — provides CRUD commands for 5 tables and 4 custom operations +description: CLI tool (csdk) for the objects API — provides CRUD commands for 5 tables and 7 custom operations --- # cli-objects -CLI tool (csdk) for the objects API — provides CRUD commands for 5 tables and 4 custom operations +CLI tool (csdk) for the objects API — provides CRUD commands for 5 tables and 7 custom operations ## Usage @@ -63,5 +63,8 @@ See the `references/` directory for detailed per-entity API documentation: - [store](references/store.md) - [init-empty-repo](references/init-empty-repo.md) - [insert-node-at-path](references/insert-node-at-path.md) +- [insert-nodes-at-paths](references/insert-nodes-at-paths.md) - [provision-bucket](references/provision-bucket.md) +- [set-and-commit](references/set-and-commit.md) - [set-data-at-path](references/set-data-at-path.md) +- [set-many-and-commit](references/set-many-and-commit.md) diff --git a/.agents/skills/cli-objects/references/insert-nodes-at-paths.md b/.agents/skills/cli-objects/references/insert-nodes-at-paths.md new file mode 100644 index 0000000000..f023c4ad2f --- /dev/null +++ b/.agents/skills/cli-objects/references/insert-nodes-at-paths.md @@ -0,0 +1,19 @@ +# insertNodesAtPaths + + + +Execute the insertNodesAtPaths mutation + +## Usage + +```bash +csdk insert-nodes-at-paths --input.clientMutationId --input.datas --input.kidsList --input.ktreeList --input.paths --input.root --input.sId +``` + +## Examples + +### Run insertNodesAtPaths + +```bash +csdk insert-nodes-at-paths --input.clientMutationId --input.datas --input.kidsList --input.ktreeList --input.paths --input.root --input.sId +``` diff --git a/.agents/skills/cli-objects/references/set-and-commit.md b/.agents/skills/cli-objects/references/set-and-commit.md index 897356944a..fdb32a40a4 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.data --input.kids --input.ktree --input.message --input.path --input.refname --input.sId --input.storeId ``` ## 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.data --input.kids --input.ktree --input.message --input.path --input.refname --input.sId --input.storeId ``` diff --git a/.agents/skills/cli-objects/references/set-many-and-commit.md b/.agents/skills/cli-objects/references/set-many-and-commit.md new file mode 100644 index 0000000000..7039169257 --- /dev/null +++ b/.agents/skills/cli-objects/references/set-many-and-commit.md @@ -0,0 +1,19 @@ +# setManyAndCommit + + + +Execute the setManyAndCommit mutation + +## Usage + +```bash +csdk set-many-and-commit --input.clientMutationId --input.entries --input.message --input.refname --input.sId --input.storeId +``` + +## Examples + +### Run setManyAndCommit + +```bash +csdk set-many-and-commit --input.clientMutationId --input.entries --input.message --input.refname --input.sId --input.storeId +``` diff --git a/.agents/skills/cli-usage/SKILL.md b/.agents/skills/cli-usage/SKILL.md index b19c8fe0c5..6c450bbb2b 100644 --- a/.agents/skills/cli-usage/SKILL.md +++ b/.agents/skills/cli-usage/SKILL.md @@ -1,13 +1,13 @@ --- name: cli-usage -description: CLI tool (csdk) for the usage API — provides CRUD commands for 18 tables and 5 custom operations +description: CLI tool (csdk) for the usage API — provides CRUD commands for 18 tables and 7 custom operations --- # cli-usage -CLI tool (csdk) for the usage API — provides CRUD commands for 18 tables and 5 custom operations +CLI tool (csdk) for the usage API — provides CRUD commands for 18 tables and 7 custom operations ## Usage @@ -74,6 +74,8 @@ See the `references/` directory for detailed per-entity API documentation: - [org-limit-default](references/org-limit-default.md) - [org-limit-event](references/org-limit-event.md) - [org-limit-warning](references/org-limit-warning.md) +- [capture-app-limit-defaults](references/capture-app-limit-defaults.md) +- [capture-org-limit-defaults](references/capture-org-limit-defaults.md) - [provision-bucket](references/provision-bucket.md) - [seed-app-limit-caps-defaults](references/seed-app-limit-caps-defaults.md) - [seed-app-limit-defaults](references/seed-app-limit-defaults.md) diff --git a/.agents/skills/cli-usage/references/capture-app-limit-defaults.md b/.agents/skills/cli-usage/references/capture-app-limit-defaults.md new file mode 100644 index 0000000000..dcc64b540f --- /dev/null +++ b/.agents/skills/cli-usage/references/capture-app-limit-defaults.md @@ -0,0 +1,19 @@ +# captureAppLimitDefaults + + + +Execute the captureAppLimitDefaults query + +## Usage + +```bash +csdk capture-app-limit-defaults +``` + +## Examples + +### Run captureAppLimitDefaults + +```bash +csdk capture-app-limit-defaults +``` diff --git a/.agents/skills/cli-usage/references/capture-org-limit-defaults.md b/.agents/skills/cli-usage/references/capture-org-limit-defaults.md new file mode 100644 index 0000000000..900253fce2 --- /dev/null +++ b/.agents/skills/cli-usage/references/capture-org-limit-defaults.md @@ -0,0 +1,19 @@ +# captureOrgLimitDefaults + + + +Execute the captureOrgLimitDefaults query + +## Usage + +```bash +csdk capture-org-limit-defaults +``` + +## Examples + +### Run captureOrgLimitDefaults + +```bash +csdk capture-org-limit-defaults +``` diff --git a/.agents/skills/hooks-admin/SKILL.md b/.agents/skills/hooks-admin/SKILL.md index 713a481c69..c55eee526c 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 30 tables and 12 custom operations +description: React Query hooks for the admin API — provides typed query and mutation hooks for 26 tables and 4 custom operations --- # hooks-admin -React Query hooks for the admin API — provides typed query and mutation hooks for 30 tables and 12 custom operations +React Query hooks for the admin API — provides typed query and mutation hooks for 26 tables and 4 custom operations ## Usage @@ -39,18 +39,18 @@ const { data, isLoading } = useAppAdminGrantsQuery({ See the `references/` directory for detailed per-entity API documentation: - [app-admin-grant](references/app-admin-grant.md) +- [app-capability-default-capability](references/app-capability-default-capability.md) +- [app-capability-default-grant](references/app-capability-default-grant.md) - [app-claimed-invite](references/app-claimed-invite.md) - [app-grant](references/app-grant.md) - [app-invite](references/app-invite.md) - [app-membership](references/app-membership.md) - [app-membership-default](references/app-membership-default.md) - [app-owner-grant](references/app-owner-grant.md) -- [app-permission](references/app-permission.md) -- [app-permission-default](references/app-permission-default.md) -- [app-permission-default-grant](references/app-permission-default-grant.md) -- [app-permission-default-permission](references/app-permission-default-permission.md) - [membership-type](references/membership-type.md) - [org-admin-grant](references/org-admin-grant.md) +- [org-capability-default-capability](references/org-capability-default-capability.md) +- [org-capability-default-grant](references/org-capability-default-grant.md) - [org-chart-edge](references/org-chart-edge.md) - [org-chart-edge-grant](references/org-chart-edge-grant.md) - [org-claimed-invite](references/org-claimed-invite.md) @@ -64,19 +64,7 @@ See the `references/` directory for detailed per-entity API documentation: - [org-membership-default](references/org-membership-default.md) - [org-membership-setting](references/org-membership-setting.md) - [org-owner-grant](references/org-owner-grant.md) -- [org-permission](references/org-permission.md) -- [org-permission-default](references/org-permission-default.md) -- [org-permission-default-grant](references/org-permission-default-grant.md) -- [org-permission-default-permission](references/org-permission-default-permission.md) -- [app-permissions-get-by-mask](references/app-permissions-get-by-mask.md) -- [app-permissions-get-mask](references/app-permissions-get-mask.md) -- [app-permissions-get-mask-by-names](references/app-permissions-get-mask-by-names.md) -- [app-permissions-get-padded-mask](references/app-permissions-get-padded-mask.md) - [org-is-manager-of](references/org-is-manager-of.md) -- [org-permissions-get-by-mask](references/org-permissions-get-by-mask.md) -- [org-permissions-get-mask](references/org-permissions-get-mask.md) -- [org-permissions-get-mask-by-names](references/org-permissions-get-mask-by-names.md) -- [org-permissions-get-padded-mask](references/org-permissions-get-padded-mask.md) - [provision-bucket](references/provision-bucket.md) - [submit-app-invite-code](references/submit-app-invite-code.md) - [submit-org-invite-code](references/submit-org-invite-code.md) diff --git a/.agents/skills/hooks-admin/references/app-capability-default-capability.md b/.agents/skills/hooks-admin/references/app-capability-default-capability.md new file mode 100644 index 0000000000..b3fd38491b --- /dev/null +++ b/.agents/skills/hooks-admin/references/app-capability-default-capability.md @@ -0,0 +1,34 @@ +# appCapabilityDefaultCapability + + + +Join table linking capability defaults to individual capabilities; recompute trigger rebuilds the defaults bitmask + +## Usage + +```typescript +useAppCapabilityDefaultCapabilitiesQuery({ selection: { fields: { capabilityId: true, createdAt: true, id: true, updatedAt: true } } }) +useAppCapabilityDefaultCapabilityQuery({ id: '', selection: { fields: { capabilityId: true, createdAt: true, id: true, updatedAt: true } } }) +useCreateAppCapabilityDefaultCapabilityMutation({ selection: { fields: { id: true } } }) +useUpdateAppCapabilityDefaultCapabilityMutation({ selection: { fields: { id: true } } }) +useDeleteAppCapabilityDefaultCapabilityMutation({}) +``` + +## Examples + +### List all appCapabilityDefaultCapabilities + +```typescript +const { data, isLoading } = useAppCapabilityDefaultCapabilitiesQuery({ + selection: { fields: { capabilityId: true, createdAt: true, id: true, updatedAt: true } }, +}); +``` + +### Create a appCapabilityDefaultCapability + +```typescript +const { mutate } = useCreateAppCapabilityDefaultCapabilityMutation({ + selection: { fields: { id: true } }, +}); +mutate({ capabilityId: '' }); +``` diff --git a/.agents/skills/hooks-admin/references/app-capability-default-grant.md b/.agents/skills/hooks-admin/references/app-capability-default-grant.md new file mode 100644 index 0000000000..ba6827a7fc --- /dev/null +++ b/.agents/skills/hooks-admin/references/app-capability-default-grant.md @@ -0,0 +1,34 @@ +# appCapabilityDefaultGrant + + + +Audit log of capability additions and removals from the defaults bitmask + +## Usage + +```typescript +useAppCapabilityDefaultGrantsQuery({ selection: { fields: { capabilityId: true, createdAt: true, grantorId: true, id: true, isGrant: true, updatedAt: true } } }) +useAppCapabilityDefaultGrantQuery({ id: '', selection: { fields: { capabilityId: true, createdAt: true, grantorId: true, id: true, isGrant: true, updatedAt: true } } }) +useCreateAppCapabilityDefaultGrantMutation({ selection: { fields: { id: true } } }) +useUpdateAppCapabilityDefaultGrantMutation({ selection: { fields: { id: true } } }) +useDeleteAppCapabilityDefaultGrantMutation({}) +``` + +## Examples + +### List all appCapabilityDefaultGrants + +```typescript +const { data, isLoading } = useAppCapabilityDefaultGrantsQuery({ + selection: { fields: { capabilityId: true, createdAt: true, grantorId: true, id: true, isGrant: true, updatedAt: true } }, +}); +``` + +### Create a appCapabilityDefaultGrant + +```typescript +const { mutate } = useCreateAppCapabilityDefaultGrantMutation({ + selection: { fields: { id: true } }, +}); +mutate({ capabilityId: '', grantorId: '', isGrant: '' }); +``` diff --git a/.agents/skills/hooks-admin/references/app-grant.md b/.agents/skills/hooks-admin/references/app-grant.md index cb760b9dcf..8d1691a04d 100644 --- a/.agents/skills/hooks-admin/references/app-grant.md +++ b/.agents/skills/hooks-admin/references/app-grant.md @@ -2,13 +2,13 @@ -Records of individual permission grants and revocations for members via bitmask +Records of individual capability grants and revocations for members via bitmask ## Usage ```typescript -useAppGrantsQuery({ selection: { fields: { actorId: true, createdAt: true, grantorId: true, id: true, isGrant: true, permissions: true, updatedAt: true } } }) -useAppGrantQuery({ id: '', selection: { fields: { actorId: true, createdAt: true, grantorId: true, id: true, isGrant: true, permissions: true, updatedAt: true } } }) +useAppGrantsQuery({ selection: { fields: { actorId: true, capabilities: true, createdAt: true, grantorId: true, id: true, isGrant: true, updatedAt: true } } }) +useAppGrantQuery({ id: '', selection: { fields: { actorId: true, capabilities: true, createdAt: true, grantorId: true, id: true, isGrant: true, updatedAt: true } } }) useCreateAppGrantMutation({ selection: { fields: { id: true } } }) useUpdateAppGrantMutation({ selection: { fields: { id: true } } }) useDeleteAppGrantMutation({}) @@ -20,7 +20,7 @@ useDeleteAppGrantMutation({}) ```typescript const { data, isLoading } = useAppGrantsQuery({ - selection: { fields: { actorId: true, createdAt: true, grantorId: true, id: true, isGrant: true, permissions: true, updatedAt: true } }, + selection: { fields: { actorId: true, capabilities: true, createdAt: true, grantorId: true, id: true, isGrant: true, updatedAt: true } }, }); ``` @@ -30,5 +30,5 @@ const { data, isLoading } = useAppGrantsQuery({ const { mutate } = useCreateAppGrantMutation({ selection: { fields: { id: true } }, }); -mutate({ actorId: '', grantorId: '', isGrant: '', permissions: '' }); +mutate({ actorId: '', capabilities: '', grantorId: '', isGrant: '' }); ``` diff --git a/.agents/skills/hooks-admin/references/app-membership.md b/.agents/skills/hooks-admin/references/app-membership.md index ddb058fb70..90d52f11da 100644 --- a/.agents/skills/hooks-admin/references/app-membership.md +++ b/.agents/skills/hooks-admin/references/app-membership.md @@ -2,13 +2,13 @@ -Tracks membership records linking actors to entities with permission bitmasks, ownership, and admin status +Tracks membership records linking actors to entities with capability bitmasks, ownership, and admin status ## Usage ```typescript -useAppMembershipsQuery({ selection: { fields: { actorId: true, createdAt: true, createdBy: true, granted: true, id: true, isActive: true, isAdmin: true, isApproved: true, isBanned: true, isDisabled: true, isOwner: true, isVerified: true, permissions: true, profileId: true, updatedAt: true, updatedBy: true } } }) -useAppMembershipQuery({ id: '', selection: { fields: { actorId: true, createdAt: true, createdBy: true, granted: true, id: true, isActive: true, isAdmin: true, isApproved: true, isBanned: true, isDisabled: true, isOwner: true, isVerified: true, permissions: true, profileId: true, updatedAt: true, updatedBy: true } } }) +useAppMembershipsQuery({ selection: { fields: { actorId: true, capabilities: true, createdAt: true, createdBy: true, granted: true, id: true, isActive: true, isAdmin: true, isApproved: true, isBanned: true, isDisabled: true, isOwner: true, isVerified: true, profileId: true, updatedAt: true, updatedBy: true } } }) +useAppMembershipQuery({ id: '', selection: { fields: { actorId: true, capabilities: true, createdAt: true, createdBy: true, granted: true, id: true, isActive: true, isAdmin: true, isApproved: true, isBanned: true, isDisabled: true, isOwner: true, isVerified: true, profileId: true, updatedAt: true, updatedBy: true } } }) useCreateAppMembershipMutation({ selection: { fields: { id: true } } }) useUpdateAppMembershipMutation({ selection: { fields: { id: true } } }) useDeleteAppMembershipMutation({}) @@ -20,7 +20,7 @@ useDeleteAppMembershipMutation({}) ```typescript const { data, isLoading } = useAppMembershipsQuery({ - selection: { fields: { actorId: true, createdAt: true, createdBy: true, granted: true, id: true, isActive: true, isAdmin: true, isApproved: true, isBanned: true, isDisabled: true, isOwner: true, isVerified: true, permissions: true, profileId: true, updatedAt: true, updatedBy: true } }, + selection: { fields: { actorId: true, capabilities: true, createdAt: true, createdBy: true, granted: true, id: true, isActive: true, isAdmin: true, isApproved: true, isBanned: true, isDisabled: true, isOwner: true, isVerified: true, profileId: true, updatedAt: true, updatedBy: true } }, }); ``` @@ -30,5 +30,5 @@ const { data, isLoading } = useAppMembershipsQuery({ const { mutate } = useCreateAppMembershipMutation({ selection: { fields: { id: true } }, }); -mutate({ actorId: '', createdBy: '', granted: '', isActive: '', isAdmin: '', isApproved: '', isBanned: '', isDisabled: '', isOwner: '', isVerified: '', permissions: '', profileId: '', updatedBy: '' }); +mutate({ actorId: '', capabilities: '', createdBy: '', granted: '', isActive: '', isAdmin: '', isApproved: '', isBanned: '', isDisabled: '', isOwner: '', isVerified: '', profileId: '', updatedBy: '' }); ``` diff --git a/.agents/skills/hooks-admin/references/org-capability-default-capability.md b/.agents/skills/hooks-admin/references/org-capability-default-capability.md new file mode 100644 index 0000000000..fbd2d61562 --- /dev/null +++ b/.agents/skills/hooks-admin/references/org-capability-default-capability.md @@ -0,0 +1,34 @@ +# orgCapabilityDefaultCapability + + + +Join table linking capability defaults to individual capabilities; recompute trigger rebuilds the defaults bitmask + +## Usage + +```typescript +useOrgCapabilityDefaultCapabilitiesQuery({ selection: { fields: { capabilityId: true, createdAt: true, entityId: true, id: true, updatedAt: true } } }) +useOrgCapabilityDefaultCapabilityQuery({ id: '', selection: { fields: { capabilityId: true, createdAt: true, entityId: true, id: true, updatedAt: true } } }) +useCreateOrgCapabilityDefaultCapabilityMutation({ selection: { fields: { id: true } } }) +useUpdateOrgCapabilityDefaultCapabilityMutation({ selection: { fields: { id: true } } }) +useDeleteOrgCapabilityDefaultCapabilityMutation({}) +``` + +## Examples + +### List all orgCapabilityDefaultCapabilities + +```typescript +const { data, isLoading } = useOrgCapabilityDefaultCapabilitiesQuery({ + selection: { fields: { capabilityId: true, createdAt: true, entityId: true, id: true, updatedAt: true } }, +}); +``` + +### Create a orgCapabilityDefaultCapability + +```typescript +const { mutate } = useCreateOrgCapabilityDefaultCapabilityMutation({ + selection: { fields: { id: true } }, +}); +mutate({ capabilityId: '', entityId: '' }); +``` diff --git a/.agents/skills/hooks-admin/references/org-capability-default-grant.md b/.agents/skills/hooks-admin/references/org-capability-default-grant.md new file mode 100644 index 0000000000..a254c847b6 --- /dev/null +++ b/.agents/skills/hooks-admin/references/org-capability-default-grant.md @@ -0,0 +1,34 @@ +# orgCapabilityDefaultGrant + + + +Audit log of capability additions and removals from the defaults bitmask + +## Usage + +```typescript +useOrgCapabilityDefaultGrantsQuery({ selection: { fields: { capabilityId: true, createdAt: true, entityId: true, grantorId: true, id: true, isGrant: true, updatedAt: true } } }) +useOrgCapabilityDefaultGrantQuery({ id: '', selection: { fields: { capabilityId: true, createdAt: true, entityId: true, grantorId: true, id: true, isGrant: true, updatedAt: true } } }) +useCreateOrgCapabilityDefaultGrantMutation({ selection: { fields: { id: true } } }) +useUpdateOrgCapabilityDefaultGrantMutation({ selection: { fields: { id: true } } }) +useDeleteOrgCapabilityDefaultGrantMutation({}) +``` + +## Examples + +### List all orgCapabilityDefaultGrants + +```typescript +const { data, isLoading } = useOrgCapabilityDefaultGrantsQuery({ + selection: { fields: { capabilityId: true, createdAt: true, entityId: true, grantorId: true, id: true, isGrant: true, updatedAt: true } }, +}); +``` + +### Create a orgCapabilityDefaultGrant + +```typescript +const { mutate } = useCreateOrgCapabilityDefaultGrantMutation({ + selection: { fields: { id: true } }, +}); +mutate({ capabilityId: '', entityId: '', grantorId: '', isGrant: '' }); +``` diff --git a/.agents/skills/hooks-admin/references/org-grant.md b/.agents/skills/hooks-admin/references/org-grant.md index cdecbe6bde..7ddd74f47a 100644 --- a/.agents/skills/hooks-admin/references/org-grant.md +++ b/.agents/skills/hooks-admin/references/org-grant.md @@ -2,13 +2,13 @@ -Records of individual permission grants and revocations for members via bitmask +Records of individual capability grants and revocations for members via bitmask ## Usage ```typescript -useOrgGrantsQuery({ selection: { fields: { actorId: true, createdAt: true, entityId: true, grantorId: true, id: true, isGrant: true, permissions: true, updatedAt: true } } }) -useOrgGrantQuery({ id: '', selection: { fields: { actorId: true, createdAt: true, entityId: true, grantorId: true, id: true, isGrant: true, permissions: true, updatedAt: true } } }) +useOrgGrantsQuery({ selection: { fields: { actorId: true, capabilities: true, createdAt: true, entityId: true, grantorId: true, id: true, isGrant: true, updatedAt: true } } }) +useOrgGrantQuery({ id: '', selection: { fields: { actorId: true, capabilities: true, createdAt: true, entityId: true, grantorId: true, id: true, isGrant: true, updatedAt: true } } }) useCreateOrgGrantMutation({ selection: { fields: { id: true } } }) useUpdateOrgGrantMutation({ selection: { fields: { id: true } } }) useDeleteOrgGrantMutation({}) @@ -20,7 +20,7 @@ useDeleteOrgGrantMutation({}) ```typescript const { data, isLoading } = useOrgGrantsQuery({ - selection: { fields: { actorId: true, createdAt: true, entityId: true, grantorId: true, id: true, isGrant: true, permissions: true, updatedAt: true } }, + selection: { fields: { actorId: true, capabilities: true, createdAt: true, entityId: true, grantorId: true, id: true, isGrant: true, updatedAt: true } }, }); ``` @@ -30,5 +30,5 @@ const { data, isLoading } = useOrgGrantsQuery({ const { mutate } = useCreateOrgGrantMutation({ selection: { fields: { id: true } }, }); -mutate({ actorId: '', entityId: '', grantorId: '', isGrant: '', permissions: '' }); +mutate({ actorId: '', capabilities: '', entityId: '', grantorId: '', isGrant: '' }); ``` diff --git a/.agents/skills/hooks-admin/references/org-membership.md b/.agents/skills/hooks-admin/references/org-membership.md index e899998aac..5b7d33ae2d 100644 --- a/.agents/skills/hooks-admin/references/org-membership.md +++ b/.agents/skills/hooks-admin/references/org-membership.md @@ -2,13 +2,13 @@ -Tracks membership records linking actors to entities with permission bitmasks, ownership, and admin status +Tracks membership records linking actors to entities with capability bitmasks, ownership, and admin status ## Usage ```typescript -useOrgMembershipsQuery({ selection: { fields: { actorId: true, createdAt: true, createdBy: true, entityId: true, granted: true, id: true, isActive: true, isAdmin: true, isApproved: true, isBanned: true, isDisabled: true, isExternal: true, isOwner: true, isReadOnly: true, permissions: true, profileId: true, updatedAt: true, updatedBy: true } } }) -useOrgMembershipQuery({ id: '', selection: { fields: { actorId: true, createdAt: true, createdBy: true, entityId: true, granted: true, id: true, isActive: true, isAdmin: true, isApproved: true, isBanned: true, isDisabled: true, isExternal: true, isOwner: true, isReadOnly: true, permissions: true, profileId: true, updatedAt: true, updatedBy: true } } }) +useOrgMembershipsQuery({ selection: { fields: { actorId: true, capabilities: true, createdAt: true, createdBy: true, entityId: true, granted: true, id: true, isActive: true, isAdmin: true, isApproved: true, isBanned: true, isDisabled: true, isExternal: true, isOwner: true, isReadOnly: true, profileId: true, updatedAt: true, updatedBy: true } } }) +useOrgMembershipQuery({ id: '', selection: { fields: { actorId: true, capabilities: true, createdAt: true, createdBy: true, entityId: true, granted: true, id: true, isActive: true, isAdmin: true, isApproved: true, isBanned: true, isDisabled: true, isExternal: true, isOwner: true, isReadOnly: true, profileId: true, updatedAt: true, updatedBy: true } } }) useCreateOrgMembershipMutation({ selection: { fields: { id: true } } }) useUpdateOrgMembershipMutation({ selection: { fields: { id: true } } }) useDeleteOrgMembershipMutation({}) @@ -20,7 +20,7 @@ useDeleteOrgMembershipMutation({}) ```typescript const { data, isLoading } = useOrgMembershipsQuery({ - selection: { fields: { actorId: true, createdAt: true, createdBy: true, entityId: true, granted: true, id: true, isActive: true, isAdmin: true, isApproved: true, isBanned: true, isDisabled: true, isExternal: true, isOwner: true, isReadOnly: true, permissions: true, profileId: true, updatedAt: true, updatedBy: true } }, + selection: { fields: { actorId: true, capabilities: true, createdAt: true, createdBy: true, entityId: true, granted: true, id: true, isActive: true, isAdmin: true, isApproved: true, isBanned: true, isDisabled: true, isExternal: true, isOwner: true, isReadOnly: true, profileId: true, updatedAt: true, updatedBy: true } }, }); ``` @@ -30,5 +30,5 @@ const { data, isLoading } = useOrgMembershipsQuery({ const { mutate } = useCreateOrgMembershipMutation({ selection: { fields: { id: true } }, }); -mutate({ actorId: '', createdBy: '', entityId: '', granted: '', isActive: '', isAdmin: '', isApproved: '', isBanned: '', isDisabled: '', isExternal: '', isOwner: '', isReadOnly: '', permissions: '', profileId: '', updatedBy: '' }); +mutate({ actorId: '', capabilities: '', createdBy: '', entityId: '', granted: '', isActive: '', isAdmin: '', isApproved: '', isBanned: '', isDisabled: '', isExternal: '', isOwner: '', isReadOnly: '', profileId: '', updatedBy: '' }); ``` diff --git a/.agents/skills/hooks-api/SKILL.md b/.agents/skills/hooks-api/SKILL.md index 5198cc125d..e3819ffef1 100644 --- a/.agents/skills/hooks-api/SKILL.md +++ b/.agents/skills/hooks-api/SKILL.md @@ -1,25 +1,25 @@ --- name: hooks-api -description: React Query hooks for the api API — provides typed query and mutation hooks for 80 tables and 17 custom operations +description: React Query hooks for the api API — provides typed query and mutation hooks for 86 tables and 17 custom operations --- # hooks-api -React Query hooks for the api API — provides typed query and mutation hooks for 80 tables and 17 custom operations +React Query hooks for the api API — provides typed query and mutation hooks for 86 tables and 17 custom operations ## Usage ```typescript // Import hooks -import { useApiSchemasQuery } from './hooks'; +import { useApisQuery } from './hooks'; // Query hooks: useQuery, usesQuery // Mutation hooks: useCreateMutation, useUpdateMutation, useDeleteMutation // Bulk mutation hooks (when enabled): useBulkCreateMutation, useBulkUpsertMutation, etc. -const { data, isLoading } = useApiSchemasQuery({ +const { data, isLoading } = useApisQuery({ selection: { fields: { id: true } }, }); ``` @@ -29,7 +29,7 @@ const { data, isLoading } = useApiSchemasQuery({ ### Query records ```typescript -const { data, isLoading } = useApiSchemasQuery({ +const { data, isLoading } = useApisQuery({ selection: { fields: { id: true } }, }); ``` @@ -38,9 +38,9 @@ const { data, isLoading } = useApiSchemasQuery({ See the `references/` directory for detailed per-entity API documentation: +- [api](references/api.md) - [api-schema](references/api-schema.md) - [api-setting](references/api-setting.md) -- [apis](references/apis.md) - [ast-migration](references/ast-migration.md) - [check-constraint](references/check-constraint.md) - [composite-type](references/composite-type.md) @@ -54,6 +54,9 @@ See the `references/` directory for detailed per-entity API documentation: - [domain-event](references/domain-event.md) - [domain-type](references/domain-type.md) - [domain-verification](references/domain-verification.md) +- [email-identity](references/email-identity.md) +- [email-provider-account](references/email-provider-account.md) +- [email-site-identity](references/email-site-identity.md) - [embedding-chunk](references/embedding-chunk.md) - [enum](references/enum.md) - [exclusion-constraint](references/exclusion-constraint.md) @@ -70,13 +73,16 @@ See the `references/` directory for detailed per-entity API documentation: - [node-type-registry](references/node-type-registry.md) - [page](references/page.md) - [partition](references/partition.md) +- [platform-api](references/platform-api.md) - [platform-api-schema](references/platform-api-schema.md) - [platform-api-setting](references/platform-api-setting.md) -- [platform-apis](references/platform-apis.md) - [platform-cors-setting](references/platform-cors-setting.md) - [platform-domain](references/platform-domain.md) - [platform-domain-event](references/platform-domain-event.md) - [platform-domain-verification](references/platform-domain-verification.md) +- [platform-email-identity](references/platform-email-identity.md) +- [platform-email-provider-account](references/platform-email-provider-account.md) +- [platform-email-site-identity](references/platform-email-site-identity.md) - [platform-managed-domain](references/platform-managed-domain.md) - [platform-page](references/platform-page.md) - [platform-site-app-link](references/platform-site-app-link.md) diff --git a/.agents/skills/hooks-api/references/email-identity.md b/.agents/skills/hooks-api/references/email-identity.md new file mode 100644 index 0000000000..de9ba39a61 --- /dev/null +++ b/.agents/skills/hooks-api/references/email-identity.md @@ -0,0 +1,34 @@ +# emailIdentity + + + +Outbound sender identity: the from/reply-to/support addresses a tenant sends as, and the provider account the mail leaves through + +## Usage + +```typescript +useEmailIdentitiesQuery({ selection: { fields: { createdAt: true, databaseId: true, fromAddress: true, fromName: true, id: true, isActive: true, isDefault: true, name: true, providerAccountId: true, replyToAddress: true, supportAddress: true, transportMode: true, updatedAt: true } } }) +useEmailIdentityQuery({ id: '', selection: { fields: { createdAt: true, databaseId: true, fromAddress: true, fromName: true, id: true, isActive: true, isDefault: true, name: true, providerAccountId: true, replyToAddress: true, supportAddress: true, transportMode: true, updatedAt: true } } }) +useCreateEmailIdentityMutation({ selection: { fields: { id: true } } }) +useUpdateEmailIdentityMutation({ selection: { fields: { id: true } } }) +useDeleteEmailIdentityMutation({}) +``` + +## Examples + +### List all emailIdentities + +```typescript +const { data, isLoading } = useEmailIdentitiesQuery({ + selection: { fields: { createdAt: true, databaseId: true, fromAddress: true, fromName: true, id: true, isActive: true, isDefault: true, name: true, providerAccountId: true, replyToAddress: true, supportAddress: true, transportMode: true, updatedAt: true } }, +}); +``` + +### Create a emailIdentity + +```typescript +const { mutate } = useCreateEmailIdentityMutation({ + selection: { fields: { id: true } }, +}); +mutate({ databaseId: '', fromAddress: '', fromName: '', isActive: '', isDefault: '', name: '', providerAccountId: '', replyToAddress: '', supportAddress: '', transportMode: '' }); +``` diff --git a/.agents/skills/hooks-api/references/email-provider-account.md b/.agents/skills/hooks-api/references/email-provider-account.md new file mode 100644 index 0000000000..c2b2c674fe --- /dev/null +++ b/.agents/skills/hooks-api/references/email-provider-account.md @@ -0,0 +1,34 @@ +# emailProviderAccount + + + +A tenant's configured account at an email provider: provider slug, endpoint coordinates, and the NAME of the secret holding its credentials (never the credential itself) + +## Usage + +```typescript +useEmailProviderAccountsQuery({ selection: { fields: { apiBaseUrl: true, createdAt: true, credentialsSecretName: true, databaseId: true, id: true, isActive: true, name: true, provider: true, providerAccountName: true, region: true, smtpHost: true, smtpPort: true, smtpSecure: true, smtpUser: true, updatedAt: true, webhookSigningSecretName: true } } }) +useEmailProviderAccountQuery({ id: '', selection: { fields: { apiBaseUrl: true, createdAt: true, credentialsSecretName: true, databaseId: true, id: true, isActive: true, name: true, provider: true, providerAccountName: true, region: true, smtpHost: true, smtpPort: true, smtpSecure: true, smtpUser: true, updatedAt: true, webhookSigningSecretName: true } } }) +useCreateEmailProviderAccountMutation({ selection: { fields: { id: true } } }) +useUpdateEmailProviderAccountMutation({ selection: { fields: { id: true } } }) +useDeleteEmailProviderAccountMutation({}) +``` + +## Examples + +### List all emailProviderAccounts + +```typescript +const { data, isLoading } = useEmailProviderAccountsQuery({ + selection: { fields: { apiBaseUrl: true, createdAt: true, credentialsSecretName: true, databaseId: true, id: true, isActive: true, name: true, provider: true, providerAccountName: true, region: true, smtpHost: true, smtpPort: true, smtpSecure: true, smtpUser: true, updatedAt: true, webhookSigningSecretName: true } }, +}); +``` + +### Create a emailProviderAccount + +```typescript +const { mutate } = useCreateEmailProviderAccountMutation({ + selection: { fields: { id: true } }, +}); +mutate({ apiBaseUrl: '', credentialsSecretName: '', databaseId: '', isActive: '', name: '', provider: '', providerAccountName: '', region: '', smtpHost: '', smtpPort: '', smtpSecure: '', smtpUser: '', webhookSigningSecretName: '' }); +``` diff --git a/.agents/skills/hooks-api/references/email-site-identity.md b/.agents/skills/hooks-api/references/email-site-identity.md new file mode 100644 index 0000000000..5366c80c30 --- /dev/null +++ b/.agents/skills/hooks-api/references/email-site-identity.md @@ -0,0 +1,34 @@ +# emailSiteIdentity + + + +Binds a site to the identity it sends as. Unique on site_id: one identity per site, but many sites may share an identity. + +## Usage + +```typescript +useEmailSiteIdentitiesQuery({ selection: { fields: { createdAt: true, databaseId: true, emailIdentityId: true, id: true, siteId: true, updatedAt: true } } }) +useEmailSiteIdentityQuery({ id: '', selection: { fields: { createdAt: true, databaseId: true, emailIdentityId: true, id: true, siteId: true, updatedAt: true } } }) +useCreateEmailSiteIdentityMutation({ selection: { fields: { id: true } } }) +useUpdateEmailSiteIdentityMutation({ selection: { fields: { id: true } } }) +useDeleteEmailSiteIdentityMutation({}) +``` + +## Examples + +### List all emailSiteIdentities + +```typescript +const { data, isLoading } = useEmailSiteIdentitiesQuery({ + selection: { fields: { createdAt: true, databaseId: true, emailIdentityId: true, id: true, siteId: true, updatedAt: true } }, +}); +``` + +### Create a emailSiteIdentity + +```typescript +const { mutate } = useCreateEmailSiteIdentityMutation({ + selection: { fields: { id: true } }, +}); +mutate({ databaseId: '', emailIdentityId: '', siteId: '' }); +``` diff --git a/.agents/skills/hooks-api/references/platform-email-identity.md b/.agents/skills/hooks-api/references/platform-email-identity.md new file mode 100644 index 0000000000..946f9c8577 --- /dev/null +++ b/.agents/skills/hooks-api/references/platform-email-identity.md @@ -0,0 +1,34 @@ +# platformEmailIdentity + + + +Outbound sender identity: the from/reply-to/support addresses a tenant sends as, and the provider account the mail leaves through + +## Usage + +```typescript +usePlatformEmailIdentitiesQuery({ selection: { fields: { createdAt: true, fromAddress: true, fromName: true, id: true, isActive: true, isDefault: true, name: true, providerAccountId: true, replyToAddress: true, supportAddress: true, transportMode: true, updatedAt: true } } }) +usePlatformEmailIdentityQuery({ id: '', selection: { fields: { createdAt: true, fromAddress: true, fromName: true, id: true, isActive: true, isDefault: true, name: true, providerAccountId: true, replyToAddress: true, supportAddress: true, transportMode: true, updatedAt: true } } }) +useCreatePlatformEmailIdentityMutation({ selection: { fields: { id: true } } }) +useUpdatePlatformEmailIdentityMutation({ selection: { fields: { id: true } } }) +useDeletePlatformEmailIdentityMutation({}) +``` + +## Examples + +### List all platformEmailIdentities + +```typescript +const { data, isLoading } = usePlatformEmailIdentitiesQuery({ + selection: { fields: { createdAt: true, fromAddress: true, fromName: true, id: true, isActive: true, isDefault: true, name: true, providerAccountId: true, replyToAddress: true, supportAddress: true, transportMode: true, updatedAt: true } }, +}); +``` + +### Create a platformEmailIdentity + +```typescript +const { mutate } = useCreatePlatformEmailIdentityMutation({ + selection: { fields: { id: true } }, +}); +mutate({ fromAddress: '', fromName: '', isActive: '', isDefault: '', name: '', providerAccountId: '', replyToAddress: '', supportAddress: '', transportMode: '' }); +``` diff --git a/.agents/skills/hooks-api/references/platform-email-provider-account.md b/.agents/skills/hooks-api/references/platform-email-provider-account.md new file mode 100644 index 0000000000..873e5b085f --- /dev/null +++ b/.agents/skills/hooks-api/references/platform-email-provider-account.md @@ -0,0 +1,34 @@ +# platformEmailProviderAccount + + + +A tenant's configured account at an email provider: provider slug, endpoint coordinates, and the NAME of the secret holding its credentials (never the credential itself) + +## Usage + +```typescript +usePlatformEmailProviderAccountsQuery({ selection: { fields: { apiBaseUrl: true, createdAt: true, credentialsSecretName: true, id: true, isActive: true, name: true, provider: true, providerAccountName: true, region: true, smtpHost: true, smtpPort: true, smtpSecure: true, smtpUser: true, updatedAt: true, webhookSigningSecretName: true } } }) +usePlatformEmailProviderAccountQuery({ id: '', selection: { fields: { apiBaseUrl: true, createdAt: true, credentialsSecretName: true, id: true, isActive: true, name: true, provider: true, providerAccountName: true, region: true, smtpHost: true, smtpPort: true, smtpSecure: true, smtpUser: true, updatedAt: true, webhookSigningSecretName: true } } }) +useCreatePlatformEmailProviderAccountMutation({ selection: { fields: { id: true } } }) +useUpdatePlatformEmailProviderAccountMutation({ selection: { fields: { id: true } } }) +useDeletePlatformEmailProviderAccountMutation({}) +``` + +## Examples + +### List all platformEmailProviderAccounts + +```typescript +const { data, isLoading } = usePlatformEmailProviderAccountsQuery({ + selection: { fields: { apiBaseUrl: true, createdAt: true, credentialsSecretName: true, id: true, isActive: true, name: true, provider: true, providerAccountName: true, region: true, smtpHost: true, smtpPort: true, smtpSecure: true, smtpUser: true, updatedAt: true, webhookSigningSecretName: true } }, +}); +``` + +### Create a platformEmailProviderAccount + +```typescript +const { mutate } = useCreatePlatformEmailProviderAccountMutation({ + selection: { fields: { id: true } }, +}); +mutate({ apiBaseUrl: '', credentialsSecretName: '', isActive: '', name: '', provider: '', providerAccountName: '', region: '', smtpHost: '', smtpPort: '', smtpSecure: '', smtpUser: '', webhookSigningSecretName: '' }); +``` diff --git a/.agents/skills/hooks-api/references/platform-email-site-identity.md b/.agents/skills/hooks-api/references/platform-email-site-identity.md new file mode 100644 index 0000000000..c142dfa2f3 --- /dev/null +++ b/.agents/skills/hooks-api/references/platform-email-site-identity.md @@ -0,0 +1,34 @@ +# platformEmailSiteIdentity + + + +Binds a site to the identity it sends as. Unique on site_id: one identity per site, but many sites may share an identity. + +## Usage + +```typescript +usePlatformEmailSiteIdentitiesQuery({ selection: { fields: { createdAt: true, emailIdentityId: true, id: true, siteId: true, updatedAt: true } } }) +usePlatformEmailSiteIdentityQuery({ id: '', selection: { fields: { createdAt: true, emailIdentityId: true, id: true, siteId: true, updatedAt: true } } }) +useCreatePlatformEmailSiteIdentityMutation({ selection: { fields: { id: true } } }) +useUpdatePlatformEmailSiteIdentityMutation({ selection: { fields: { id: true } } }) +useDeletePlatformEmailSiteIdentityMutation({}) +``` + +## Examples + +### List all platformEmailSiteIdentities + +```typescript +const { data, isLoading } = usePlatformEmailSiteIdentitiesQuery({ + selection: { fields: { createdAt: true, emailIdentityId: true, id: true, siteId: true, updatedAt: true } }, +}); +``` + +### Create a platformEmailSiteIdentity + +```typescript +const { mutate } = useCreatePlatformEmailSiteIdentityMutation({ + selection: { fields: { id: true } }, +}); +mutate({ emailIdentityId: '', siteId: '' }); +``` diff --git a/.agents/skills/hooks-auth/SKILL.md b/.agents/skills/hooks-auth/SKILL.md index b8795add5e..3bf7851dd2 100644 --- a/.agents/skills/hooks-auth/SKILL.md +++ b/.agents/skills/hooks-auth/SKILL.md @@ -1,13 +1,13 @@ --- name: hooks-auth -description: React Query hooks for the auth API — provides typed query and mutation hooks for 13 tables and 35 custom operations +description: React Query hooks for the auth API — provides typed query and mutation hooks for 13 tables and 37 custom operations --- # hooks-auth -React Query hooks for the auth API — provides typed query and mutation hooks for 13 tables and 35 custom operations +React Query hooks for the auth API — provides typed query and mutation hooks for 13 tables and 37 custom operations ## Usage @@ -79,9 +79,11 @@ See the `references/` directory for detailed per-entity API documentation: - [set-password](references/set-password.md) - [sign-in](references/sign-in.md) - [sign-in-cross-origin](references/sign-in-cross-origin.md) +- [sign-in-magic-link](references/sign-in-magic-link.md) - [sign-in-sms-otp](references/sign-in-sms-otp.md) - [sign-out](references/sign-out.md) - [sign-up](references/sign-up.md) +- [sign-up-magic-link](references/sign-up-magic-link.md) - [sign-up-sms](references/sign-up-sms.md) - [verify-email](references/verify-email.md) - [verify-password](references/verify-password.md) diff --git a/.agents/skills/hooks-auth/references/principal-scope-override.md b/.agents/skills/hooks-auth/references/principal-scope-override.md index e9b83284b1..05e8536225 100644 --- a/.agents/skills/hooks-auth/references/principal-scope-override.md +++ b/.agents/skills/hooks-auth/references/principal-scope-override.md @@ -2,7 +2,7 @@ -Per-scope permission overrides for principals. No row = full access; row exists = apply restrictions. +Per-scope capability overrides for principals. No row = full access; row exists = apply restrictions. ## Usage diff --git a/.agents/skills/hooks-auth/references/sign-in-magic-link.md b/.agents/skills/hooks-auth/references/sign-in-magic-link.md new file mode 100644 index 0000000000..cedaeda6f3 --- /dev/null +++ b/.agents/skills/hooks-auth/references/sign-in-magic-link.md @@ -0,0 +1,20 @@ +# signInMagicLink + + + +React Query mutation hook for signInMagicLink + +## Usage + +```typescript +const { mutate } = useSignInMagicLinkMutation(); mutate({ input: { credentialKind: '', deviceToken: '', rememberMe: '', token: '' } }); +``` + +## Examples + +### Use useSignInMagicLinkMutation + +```typescript +const { mutate, isLoading } = useSignInMagicLinkMutation(); +mutate({ input: { credentialKind: '', deviceToken: '', rememberMe: '', token: '' } }); +``` diff --git a/.agents/skills/hooks-auth/references/sign-up-magic-link.md b/.agents/skills/hooks-auth/references/sign-up-magic-link.md new file mode 100644 index 0000000000..1680db401a --- /dev/null +++ b/.agents/skills/hooks-auth/references/sign-up-magic-link.md @@ -0,0 +1,20 @@ +# signUpMagicLink + + + +React Query mutation hook for signUpMagicLink + +## Usage + +```typescript +const { mutate } = useSignUpMagicLinkMutation(); mutate({ input: { credentialKind: '', deviceToken: '', rememberMe: '', token: '' } }); +``` + +## Examples + +### Use useSignUpMagicLinkMutation + +```typescript +const { mutate, isLoading } = useSignUpMagicLinkMutation(); +mutate({ input: { credentialKind: '', deviceToken: '', rememberMe: '', token: '' } }); +``` diff --git a/.agents/skills/hooks-compute/SKILL.md b/.agents/skills/hooks-compute/SKILL.md index 38b33fa7b0..d233091158 100644 --- a/.agents/skills/hooks-compute/SKILL.md +++ b/.agents/skills/hooks-compute/SKILL.md @@ -1,25 +1,25 @@ --- name: hooks-compute -description: React Query hooks for the compute API — provides typed query and mutation hooks for 69 tables and 29 custom operations +description: React Query hooks for the compute API — provides typed query and mutation hooks for 70 tables and 38 custom operations --- # hooks-compute -React Query hooks for the compute API — provides typed query and mutation hooks for 69 tables and 29 custom operations +React Query hooks for the compute API — provides typed query and mutation hooks for 70 tables and 38 custom operations ## Usage ```typescript // Import hooks -import { useDbPresetsQuery } from './hooks'; +import { useContentPresetsQuery } from './hooks'; // Query hooks: useQuery, usesQuery // Mutation hooks: useCreateMutation, useUpdateMutation, useDeleteMutation // Bulk mutation hooks (when enabled): useBulkCreateMutation, useBulkUpsertMutation, etc. -const { data, isLoading } = useDbPresetsQuery({ +const { data, isLoading } = useContentPresetsQuery({ selection: { fields: { id: true } }, }); ``` @@ -29,7 +29,7 @@ const { data, isLoading } = useDbPresetsQuery({ ### Query records ```typescript -const { data, isLoading } = useDbPresetsQuery({ +const { data, isLoading } = useContentPresetsQuery({ selection: { fields: { id: true } }, }); ``` @@ -38,6 +38,7 @@ const { data, isLoading } = useDbPresetsQuery({ See the `references/` directory for detailed per-entity API documentation: +- [content-preset](references/content-preset.md) - [db-preset](references/db-preset.md) - [function-api-binding](references/function-api-binding.md) - [function-capability-binding](references/function-capability-binding.md) @@ -117,12 +118,19 @@ See the `references/` directory for detailed per-entity API documentation: - [import-graph-json](references/import-graph-json.md) - [infra-init-empty-repo](references/infra-init-empty-repo.md) - [infra-insert-node-at-path](references/infra-insert-node-at-path.md) +- [infra-insert-nodes-at-paths](references/infra-insert-nodes-at-paths.md) +- [infra-set-and-commit](references/infra-set-and-commit.md) - [infra-set-data-at-path](references/infra-set-data-at-path.md) +- [infra-set-many-and-commit](references/infra-set-many-and-commit.md) - [init-empty-repo](references/init-empty-repo.md) - [insert-node-at-path](references/insert-node-at-path.md) +- [insert-nodes-at-paths](references/insert-nodes-at-paths.md) - [platform-infra-init-empty-repo](references/platform-infra-init-empty-repo.md) - [platform-infra-insert-node-at-path](references/platform-infra-insert-node-at-path.md) +- [platform-infra-insert-nodes-at-paths](references/platform-infra-insert-nodes-at-paths.md) +- [platform-infra-set-and-commit](references/platform-infra-set-and-commit.md) - [platform-infra-set-data-at-path](references/platform-infra-set-data-at-path.md) +- [platform-infra-set-many-and-commit](references/platform-infra-set-many-and-commit.md) - [platform-resource-installations-install](references/platform-resource-installations-install.md) - [platform-resource-installations-rollback](references/platform-resource-installations-rollback.md) - [platform-resource-installations-uninstall](references/platform-resource-installations-uninstall.md) @@ -133,6 +141,8 @@ See the `references/` directory for detailed per-entity API documentation: - [resource-installations-uninstall](references/resource-installations-uninstall.md) - [resource-installations-upgrade](references/resource-installations-upgrade.md) - [save-graph](references/save-graph.md) +- [set-and-commit](references/set-and-commit.md) - [set-data-at-path](references/set-data-at-path.md) +- [set-many-and-commit](references/set-many-and-commit.md) - [start-execution](references/start-execution.md) - [validate-function-graph](references/validate-function-graph.md) diff --git a/.agents/skills/hooks-compute/references/content-preset.md b/.agents/skills/hooks-compute/references/content-preset.md new file mode 100644 index 0000000000..e88ddebe7e --- /dev/null +++ b/.agents/skills/hooks-compute/references/content-preset.md @@ -0,0 +1,34 @@ +# contentPreset + + + +Seed-content preset catalog (limit defaults, trust ladders, ...) — merkle-versioned head over the infra store + +## Usage + +```typescript +useContentPresetsQuery({ selection: { fields: { active: true, commitId: true, createdAt: true, definition: true, description: true, id: true, kind: true, label: true, slug: true, storeId: true, updatedAt: true } } }) +useContentPresetQuery({ id: '', selection: { fields: { active: true, commitId: true, createdAt: true, definition: true, description: true, id: true, kind: true, label: true, slug: true, storeId: true, updatedAt: true } } }) +useCreateContentPresetMutation({ selection: { fields: { id: true } } }) +useUpdateContentPresetMutation({ selection: { fields: { id: true } } }) +useDeleteContentPresetMutation({}) +``` + +## Examples + +### List all contentPresets + +```typescript +const { data, isLoading } = useContentPresetsQuery({ + selection: { fields: { active: true, commitId: true, createdAt: true, definition: true, description: true, id: true, kind: true, label: true, slug: true, storeId: true, updatedAt: true } }, +}); +``` + +### Create a contentPreset + +```typescript +const { mutate } = useCreateContentPresetMutation({ + selection: { fields: { id: true } }, +}); +mutate({ active: '', commitId: '', definition: '', description: '', kind: '', label: '', slug: '', storeId: '' }); +``` diff --git a/.agents/skills/hooks-compute/references/function-definition.md b/.agents/skills/hooks-compute/references/function-definition.md index 0bfc2e6e4e..93cbce3c63 100644 --- a/.agents/skills/hooks-compute/references/function-definition.md +++ b/.agents/skills/hooks-compute/references/function-definition.md @@ -7,8 +7,8 @@ Function definitions — registered cloud functions with routing, queue, and ret ## Usage ```typescript -useFunctionDefinitionsQuery({ selection: { fields: { accessChannels: true, category: true, concurrency: true, cpuLimitMillicores: true, cpuRequestMillicores: true, createdAt: true, databaseId: true, description: true, fnCategory: true, functionColumns: true, graphId: true, icon: true, id: true, image: true, inputs: true, integrations: true, isPublished: true, maxAttempts: true, memoryLimitBytes: true, memoryRequestBytes: true, moduleTable: true, name: true, outputs: true, payloadArgs: true, priority: true, props: true, protected: true, publishedAt: true, queueName: true, requiredBuckets: true, requiredConfigs: true, requiredModels: true, requiredSecrets: true, resources: true, runtime: true, scaleMax: true, scaleMin: true, targetFunction: true, targetSchema: true, taskIdentifier: true, timeoutSeconds: true, updatedAt: true, volatile: true } } }) -useFunctionDefinitionQuery({ id: '', selection: { fields: { accessChannels: true, category: true, concurrency: true, cpuLimitMillicores: true, cpuRequestMillicores: true, createdAt: true, databaseId: true, description: true, fnCategory: true, functionColumns: true, graphId: true, icon: true, id: true, image: true, inputs: true, integrations: true, isPublished: true, maxAttempts: true, memoryLimitBytes: true, memoryRequestBytes: true, moduleTable: true, name: true, outputs: true, payloadArgs: true, priority: true, props: true, protected: true, publishedAt: true, queueName: true, requiredBuckets: true, requiredConfigs: true, requiredModels: true, requiredSecrets: true, resources: true, runtime: true, scaleMax: true, scaleMin: true, targetFunction: true, targetSchema: true, taskIdentifier: true, timeoutSeconds: true, updatedAt: true, volatile: true } } }) +useFunctionDefinitionsQuery({ selection: { fields: { accessChannels: true, category: true, concurrency: true, cpuLimitMillicores: true, cpuRequestMillicores: true, createdAt: true, databaseId: true, description: true, fnCategory: true, functionColumns: true, graphId: true, icon: true, id: true, image: true, inputs: true, integrations: true, isPublished: true, maxAttempts: true, memoryLimitBytes: true, memoryRequestBytes: true, moduleTable: true, name: true, outputs: true, payloadArgs: true, priority: true, props: true, protected: true, publishedAt: true, queueName: true, requiredBuckets: true, requiredConfigs: true, requiredModels: true, requiredModules: true, requiredSecrets: true, resources: true, runtime: true, scaleMax: true, scaleMin: true, targetFunction: true, targetSchema: true, taskIdentifier: true, timeoutSeconds: true, updatedAt: true, volatile: true } } }) +useFunctionDefinitionQuery({ id: '', selection: { fields: { accessChannels: true, category: true, concurrency: true, cpuLimitMillicores: true, cpuRequestMillicores: true, createdAt: true, databaseId: true, description: true, fnCategory: true, functionColumns: true, graphId: true, icon: true, id: true, image: true, inputs: true, integrations: true, isPublished: true, maxAttempts: true, memoryLimitBytes: true, memoryRequestBytes: true, moduleTable: true, name: true, outputs: true, payloadArgs: true, priority: true, props: true, protected: true, publishedAt: true, queueName: true, requiredBuckets: true, requiredConfigs: true, requiredModels: true, requiredModules: true, requiredSecrets: true, resources: true, runtime: true, scaleMax: true, scaleMin: true, targetFunction: true, targetSchema: true, taskIdentifier: true, timeoutSeconds: true, updatedAt: true, volatile: true } } }) useCreateFunctionDefinitionMutation({ selection: { fields: { id: true } } }) useUpdateFunctionDefinitionMutation({ selection: { fields: { id: true } } }) useDeleteFunctionDefinitionMutation({}) @@ -20,7 +20,7 @@ useDeleteFunctionDefinitionMutation({}) ```typescript const { data, isLoading } = useFunctionDefinitionsQuery({ - selection: { fields: { accessChannels: true, category: true, concurrency: true, cpuLimitMillicores: true, cpuRequestMillicores: true, createdAt: true, databaseId: true, description: true, fnCategory: true, functionColumns: true, graphId: true, icon: true, id: true, image: true, inputs: true, integrations: true, isPublished: true, maxAttempts: true, memoryLimitBytes: true, memoryRequestBytes: true, moduleTable: true, name: true, outputs: true, payloadArgs: true, priority: true, props: true, protected: true, publishedAt: true, queueName: true, requiredBuckets: true, requiredConfigs: true, requiredModels: true, requiredSecrets: true, resources: true, runtime: true, scaleMax: true, scaleMin: true, targetFunction: true, targetSchema: true, taskIdentifier: true, timeoutSeconds: true, updatedAt: true, volatile: true } }, + selection: { fields: { accessChannels: true, category: true, concurrency: true, cpuLimitMillicores: true, cpuRequestMillicores: true, createdAt: true, databaseId: true, description: true, fnCategory: true, functionColumns: true, graphId: true, icon: true, id: true, image: true, inputs: true, integrations: true, isPublished: true, maxAttempts: true, memoryLimitBytes: true, memoryRequestBytes: true, moduleTable: true, name: true, outputs: true, payloadArgs: true, priority: true, props: true, protected: true, publishedAt: true, queueName: true, requiredBuckets: true, requiredConfigs: true, requiredModels: true, requiredModules: true, requiredSecrets: true, resources: true, runtime: true, scaleMax: true, scaleMin: true, targetFunction: true, targetSchema: true, taskIdentifier: true, timeoutSeconds: true, updatedAt: true, volatile: true } }, }); ``` @@ -30,5 +30,5 @@ const { data, isLoading } = useFunctionDefinitionsQuery({ const { mutate } = useCreateFunctionDefinitionMutation({ selection: { fields: { id: true } }, }); -mutate({ accessChannels: '', category: '', concurrency: '', cpuLimitMillicores: '', cpuRequestMillicores: '', databaseId: '', description: '', fnCategory: '', functionColumns: '', graphId: '', icon: '', image: '', inputs: '', integrations: '', isPublished: '', maxAttempts: '', memoryLimitBytes: '', memoryRequestBytes: '', moduleTable: '', name: '', outputs: '', payloadArgs: '', priority: '', props: '', protected: '', publishedAt: '', queueName: '', requiredBuckets: '', requiredConfigs: '', requiredModels: '', requiredSecrets: '', resources: '', runtime: '', scaleMax: '', scaleMin: '', targetFunction: '', targetSchema: '', taskIdentifier: '', timeoutSeconds: '', volatile: '' }); +mutate({ accessChannels: '', category: '', concurrency: '', cpuLimitMillicores: '', cpuRequestMillicores: '', databaseId: '', description: '', fnCategory: '', functionColumns: '', graphId: '', icon: '', image: '', inputs: '', integrations: '', isPublished: '', maxAttempts: '', memoryLimitBytes: '', memoryRequestBytes: '', moduleTable: '', name: '', outputs: '', payloadArgs: '', priority: '', props: '', protected: '', publishedAt: '', queueName: '', requiredBuckets: '', requiredConfigs: '', requiredModels: '', requiredModules: '', requiredSecrets: '', resources: '', runtime: '', scaleMax: '', scaleMin: '', targetFunction: '', targetSchema: '', taskIdentifier: '', timeoutSeconds: '', volatile: '' }); ``` diff --git a/.agents/skills/hooks-compute/references/function-deployment.md b/.agents/skills/hooks-compute/references/function-deployment.md index f983fea8c6..d0ac57d720 100644 --- a/.agents/skills/hooks-compute/references/function-deployment.md +++ b/.agents/skills/hooks-compute/references/function-deployment.md @@ -7,8 +7,8 @@ Function deployment bindings — ties a handler image to a namespace for Knative ## Usage ```typescript -useFunctionDeploymentsQuery({ selection: { fields: { annotations: true, concurrency: true, createdAt: true, databaseId: true, errorCount: true, handlerName: true, id: true, image: true, imageVersion: true, labels: true, lastError: true, lastErrorAt: true, namespaceId: true, resources: true, revision: true, scaleMax: true, scaleMin: true, serviceName: true, serviceUrl: true, status: true, timeoutSeconds: true, updatedAt: true } } }) -useFunctionDeploymentQuery({ id: '', selection: { fields: { annotations: true, concurrency: true, createdAt: true, databaseId: true, errorCount: true, handlerName: true, id: true, image: true, imageVersion: true, labels: true, lastError: true, lastErrorAt: true, namespaceId: true, resources: true, revision: true, scaleMax: true, scaleMin: true, serviceName: true, serviceUrl: true, status: true, timeoutSeconds: true, updatedAt: true } } }) +useFunctionDeploymentsQuery({ selection: { fields: { annotations: true, concurrency: true, createdAt: true, databaseId: true, errorCount: true, handlerName: true, id: true, image: true, imageVersion: true, labels: true, lastError: true, lastErrorAt: true, namespaceId: true, realm: true, resources: true, revision: true, scaleMax: true, scaleMin: true, serviceName: true, serviceUrl: true, status: true, timeoutSeconds: true, updatedAt: true } } }) +useFunctionDeploymentQuery({ id: '', selection: { fields: { annotations: true, concurrency: true, createdAt: true, databaseId: true, errorCount: true, handlerName: true, id: true, image: true, imageVersion: true, labels: true, lastError: true, lastErrorAt: true, namespaceId: true, realm: true, resources: true, revision: true, scaleMax: true, scaleMin: true, serviceName: true, serviceUrl: true, status: true, timeoutSeconds: true, updatedAt: true } } }) useCreateFunctionDeploymentMutation({ selection: { fields: { id: true } } }) useUpdateFunctionDeploymentMutation({ selection: { fields: { id: true } } }) useDeleteFunctionDeploymentMutation({}) @@ -20,7 +20,7 @@ useDeleteFunctionDeploymentMutation({}) ```typescript const { data, isLoading } = useFunctionDeploymentsQuery({ - selection: { fields: { annotations: true, concurrency: true, createdAt: true, databaseId: true, errorCount: true, handlerName: true, id: true, image: true, imageVersion: true, labels: true, lastError: true, lastErrorAt: true, namespaceId: true, resources: true, revision: true, scaleMax: true, scaleMin: true, serviceName: true, serviceUrl: true, status: true, timeoutSeconds: true, updatedAt: true } }, + selection: { fields: { annotations: true, concurrency: true, createdAt: true, databaseId: true, errorCount: true, handlerName: true, id: true, image: true, imageVersion: true, labels: true, lastError: true, lastErrorAt: true, namespaceId: true, realm: true, resources: true, revision: true, scaleMax: true, scaleMin: true, serviceName: true, serviceUrl: true, status: true, timeoutSeconds: true, updatedAt: true } }, }); ``` @@ -30,5 +30,5 @@ const { data, isLoading } = useFunctionDeploymentsQuery({ const { mutate } = useCreateFunctionDeploymentMutation({ selection: { fields: { id: true } }, }); -mutate({ annotations: '', concurrency: '', databaseId: '', errorCount: '', handlerName: '', image: '', imageVersion: '', labels: '', lastError: '', lastErrorAt: '', namespaceId: '', resources: '', revision: '', scaleMax: '', scaleMin: '', serviceName: '', serviceUrl: '', status: '', timeoutSeconds: '' }); +mutate({ annotations: '', concurrency: '', databaseId: '', errorCount: '', handlerName: '', image: '', imageVersion: '', labels: '', lastError: '', lastErrorAt: '', namespaceId: '', realm: '', resources: '', revision: '', scaleMax: '', scaleMin: '', serviceName: '', serviceUrl: '', status: '', timeoutSeconds: '' }); ``` diff --git a/.agents/skills/hooks-compute/references/infra-insert-nodes-at-paths.md b/.agents/skills/hooks-compute/references/infra-insert-nodes-at-paths.md new file mode 100644 index 0000000000..b48b858b5e --- /dev/null +++ b/.agents/skills/hooks-compute/references/infra-insert-nodes-at-paths.md @@ -0,0 +1,20 @@ +# infraInsertNodesAtPaths + + + +React Query mutation hook for infraInsertNodesAtPaths + +## Usage + +```typescript +const { mutate } = useInfraInsertNodesAtPathsMutation(); mutate({ input: '' }); +``` + +## Examples + +### Use useInfraInsertNodesAtPathsMutation + +```typescript +const { mutate, isLoading } = useInfraInsertNodesAtPathsMutation(); +mutate({ input: '' }); +``` diff --git a/.agents/skills/hooks-compute/references/infra-set-and-commit.md b/.agents/skills/hooks-compute/references/infra-set-and-commit.md new file mode 100644 index 0000000000..a64e1bf66f --- /dev/null +++ b/.agents/skills/hooks-compute/references/infra-set-and-commit.md @@ -0,0 +1,20 @@ +# infraSetAndCommit + + + +React Query mutation hook for infraSetAndCommit + +## Usage + +```typescript +const { mutate } = useInfraSetAndCommitMutation(); mutate({ input: '' }); +``` + +## Examples + +### Use useInfraSetAndCommitMutation + +```typescript +const { mutate, isLoading } = useInfraSetAndCommitMutation(); +mutate({ input: '' }); +``` diff --git a/.agents/skills/hooks-compute/references/infra-set-many-and-commit.md b/.agents/skills/hooks-compute/references/infra-set-many-and-commit.md new file mode 100644 index 0000000000..3ada7f8d91 --- /dev/null +++ b/.agents/skills/hooks-compute/references/infra-set-many-and-commit.md @@ -0,0 +1,20 @@ +# infraSetManyAndCommit + + + +React Query mutation hook for infraSetManyAndCommit + +## Usage + +```typescript +const { mutate } = useInfraSetManyAndCommitMutation(); mutate({ input: { entries: '', message: '', refname: '', sId: '', storeId: '' } }); +``` + +## Examples + +### Use useInfraSetManyAndCommitMutation + +```typescript +const { mutate, isLoading } = useInfraSetManyAndCommitMutation(); +mutate({ input: { entries: '', message: '', refname: '', sId: '', storeId: '' } }); +``` diff --git a/.agents/skills/hooks-compute/references/insert-nodes-at-paths.md b/.agents/skills/hooks-compute/references/insert-nodes-at-paths.md new file mode 100644 index 0000000000..d7185a48ac --- /dev/null +++ b/.agents/skills/hooks-compute/references/insert-nodes-at-paths.md @@ -0,0 +1,20 @@ +# insertNodesAtPaths + + + +React Query mutation hook for insertNodesAtPaths + +## Usage + +```typescript +const { mutate } = useInsertNodesAtPathsMutation(); mutate({ input: '' }); +``` + +## Examples + +### Use useInsertNodesAtPathsMutation + +```typescript +const { mutate, isLoading } = useInsertNodesAtPathsMutation(); +mutate({ input: '' }); +``` diff --git a/.agents/skills/hooks-compute/references/platform-function-definition.md b/.agents/skills/hooks-compute/references/platform-function-definition.md index 739c3642ba..f23e03dc7b 100644 --- a/.agents/skills/hooks-compute/references/platform-function-definition.md +++ b/.agents/skills/hooks-compute/references/platform-function-definition.md @@ -7,8 +7,8 @@ Function definitions — registered cloud functions with routing, queue, and ret ## Usage ```typescript -usePlatformFunctionDefinitionsQuery({ selection: { fields: { accessChannels: true, billable: true, category: true, concurrency: true, cpuLimitMillicores: true, cpuRequestMillicores: true, createdAt: true, description: true, fnCategory: true, functionColumns: true, graphId: true, icon: true, id: true, image: true, inputs: true, integrations: true, isPublished: true, maxAttempts: true, memoryLimitBytes: true, memoryRequestBytes: true, moduleTable: true, name: true, outputs: true, payloadArgs: true, priority: true, props: true, protected: true, publishedAt: true, queueName: true, requiredBuckets: true, requiredConfigs: true, requiredModels: true, requiredSecrets: true, resources: true, runtime: true, scaleMax: true, scaleMin: true, system: true, targetFunction: true, targetSchema: true, taskIdentifier: true, timeoutSeconds: true, updatedAt: true, volatile: true } } }) -usePlatformFunctionDefinitionQuery({ id: '', selection: { fields: { accessChannels: true, billable: true, category: true, concurrency: true, cpuLimitMillicores: true, cpuRequestMillicores: true, createdAt: true, description: true, fnCategory: true, functionColumns: true, graphId: true, icon: true, id: true, image: true, inputs: true, integrations: true, isPublished: true, maxAttempts: true, memoryLimitBytes: true, memoryRequestBytes: true, moduleTable: true, name: true, outputs: true, payloadArgs: true, priority: true, props: true, protected: true, publishedAt: true, queueName: true, requiredBuckets: true, requiredConfigs: true, requiredModels: true, requiredSecrets: true, resources: true, runtime: true, scaleMax: true, scaleMin: true, system: true, targetFunction: true, targetSchema: true, taskIdentifier: true, timeoutSeconds: true, updatedAt: true, volatile: true } } }) +usePlatformFunctionDefinitionsQuery({ selection: { fields: { accessChannels: true, billable: true, category: true, concurrency: true, cpuLimitMillicores: true, cpuRequestMillicores: true, createdAt: true, description: true, fnCategory: true, functionColumns: true, graphId: true, icon: true, id: true, image: true, inputs: true, integrations: true, isPublished: true, maxAttempts: true, memoryLimitBytes: true, memoryRequestBytes: true, moduleTable: true, name: true, outputs: true, payloadArgs: true, priority: true, props: true, protected: true, publishedAt: true, queueName: true, requiredBuckets: true, requiredConfigs: true, requiredModels: true, requiredModules: true, requiredSecrets: true, resources: true, runtime: true, scaleMax: true, scaleMin: true, system: true, targetFunction: true, targetSchema: true, taskIdentifier: true, timeoutSeconds: true, updatedAt: true, volatile: true } } }) +usePlatformFunctionDefinitionQuery({ id: '', selection: { fields: { accessChannels: true, billable: true, category: true, concurrency: true, cpuLimitMillicores: true, cpuRequestMillicores: true, createdAt: true, description: true, fnCategory: true, functionColumns: true, graphId: true, icon: true, id: true, image: true, inputs: true, integrations: true, isPublished: true, maxAttempts: true, memoryLimitBytes: true, memoryRequestBytes: true, moduleTable: true, name: true, outputs: true, payloadArgs: true, priority: true, props: true, protected: true, publishedAt: true, queueName: true, requiredBuckets: true, requiredConfigs: true, requiredModels: true, requiredModules: true, requiredSecrets: true, resources: true, runtime: true, scaleMax: true, scaleMin: true, system: true, targetFunction: true, targetSchema: true, taskIdentifier: true, timeoutSeconds: true, updatedAt: true, volatile: true } } }) useCreatePlatformFunctionDefinitionMutation({ selection: { fields: { id: true } } }) useUpdatePlatformFunctionDefinitionMutation({ selection: { fields: { id: true } } }) useDeletePlatformFunctionDefinitionMutation({}) @@ -20,7 +20,7 @@ useDeletePlatformFunctionDefinitionMutation({}) ```typescript const { data, isLoading } = usePlatformFunctionDefinitionsQuery({ - selection: { fields: { accessChannels: true, billable: true, category: true, concurrency: true, cpuLimitMillicores: true, cpuRequestMillicores: true, createdAt: true, description: true, fnCategory: true, functionColumns: true, graphId: true, icon: true, id: true, image: true, inputs: true, integrations: true, isPublished: true, maxAttempts: true, memoryLimitBytes: true, memoryRequestBytes: true, moduleTable: true, name: true, outputs: true, payloadArgs: true, priority: true, props: true, protected: true, publishedAt: true, queueName: true, requiredBuckets: true, requiredConfigs: true, requiredModels: true, requiredSecrets: true, resources: true, runtime: true, scaleMax: true, scaleMin: true, system: true, targetFunction: true, targetSchema: true, taskIdentifier: true, timeoutSeconds: true, updatedAt: true, volatile: true } }, + selection: { fields: { accessChannels: true, billable: true, category: true, concurrency: true, cpuLimitMillicores: true, cpuRequestMillicores: true, createdAt: true, description: true, fnCategory: true, functionColumns: true, graphId: true, icon: true, id: true, image: true, inputs: true, integrations: true, isPublished: true, maxAttempts: true, memoryLimitBytes: true, memoryRequestBytes: true, moduleTable: true, name: true, outputs: true, payloadArgs: true, priority: true, props: true, protected: true, publishedAt: true, queueName: true, requiredBuckets: true, requiredConfigs: true, requiredModels: true, requiredModules: true, requiredSecrets: true, resources: true, runtime: true, scaleMax: true, scaleMin: true, system: true, targetFunction: true, targetSchema: true, taskIdentifier: true, timeoutSeconds: true, updatedAt: true, volatile: true } }, }); ``` @@ -30,5 +30,5 @@ const { data, isLoading } = usePlatformFunctionDefinitionsQuery({ const { mutate } = useCreatePlatformFunctionDefinitionMutation({ selection: { fields: { id: true } }, }); -mutate({ accessChannels: '', billable: '', category: '', concurrency: '', cpuLimitMillicores: '', cpuRequestMillicores: '', description: '', fnCategory: '', functionColumns: '', graphId: '', icon: '', image: '', inputs: '', integrations: '', isPublished: '', maxAttempts: '', memoryLimitBytes: '', memoryRequestBytes: '', moduleTable: '', name: '', outputs: '', payloadArgs: '', priority: '', props: '', protected: '', publishedAt: '', queueName: '', requiredBuckets: '', requiredConfigs: '', requiredModels: '', requiredSecrets: '', resources: '', runtime: '', scaleMax: '', scaleMin: '', system: '', targetFunction: '', targetSchema: '', taskIdentifier: '', timeoutSeconds: '', volatile: '' }); +mutate({ accessChannels: '', billable: '', category: '', concurrency: '', cpuLimitMillicores: '', cpuRequestMillicores: '', description: '', fnCategory: '', functionColumns: '', graphId: '', icon: '', image: '', inputs: '', integrations: '', isPublished: '', maxAttempts: '', memoryLimitBytes: '', memoryRequestBytes: '', moduleTable: '', name: '', outputs: '', payloadArgs: '', priority: '', props: '', protected: '', publishedAt: '', queueName: '', requiredBuckets: '', requiredConfigs: '', requiredModels: '', requiredModules: '', requiredSecrets: '', resources: '', runtime: '', scaleMax: '', scaleMin: '', system: '', targetFunction: '', targetSchema: '', taskIdentifier: '', timeoutSeconds: '', volatile: '' }); ``` diff --git a/.agents/skills/hooks-compute/references/platform-function-deployment.md b/.agents/skills/hooks-compute/references/platform-function-deployment.md index e968311f01..f263fc6baa 100644 --- a/.agents/skills/hooks-compute/references/platform-function-deployment.md +++ b/.agents/skills/hooks-compute/references/platform-function-deployment.md @@ -7,8 +7,8 @@ Function deployment bindings — ties a handler image to a namespace for Knative ## Usage ```typescript -usePlatformFunctionDeploymentsQuery({ selection: { fields: { annotations: true, concurrency: true, createdAt: true, errorCount: true, handlerName: true, id: true, image: true, imageVersion: true, labels: true, lastError: true, lastErrorAt: true, namespaceId: true, resources: true, revision: true, scaleMax: true, scaleMin: true, serviceName: true, serviceUrl: true, status: true, timeoutSeconds: true, updatedAt: true } } }) -usePlatformFunctionDeploymentQuery({ id: '', selection: { fields: { annotations: true, concurrency: true, createdAt: true, errorCount: true, handlerName: true, id: true, image: true, imageVersion: true, labels: true, lastError: true, lastErrorAt: true, namespaceId: true, resources: true, revision: true, scaleMax: true, scaleMin: true, serviceName: true, serviceUrl: true, status: true, timeoutSeconds: true, updatedAt: true } } }) +usePlatformFunctionDeploymentsQuery({ selection: { fields: { annotations: true, concurrency: true, createdAt: true, errorCount: true, handlerName: true, id: true, image: true, imageVersion: true, labels: true, lastError: true, lastErrorAt: true, namespaceId: true, realm: true, resources: true, revision: true, scaleMax: true, scaleMin: true, serviceName: true, serviceUrl: true, status: true, timeoutSeconds: true, updatedAt: true } } }) +usePlatformFunctionDeploymentQuery({ id: '', selection: { fields: { annotations: true, concurrency: true, createdAt: true, errorCount: true, handlerName: true, id: true, image: true, imageVersion: true, labels: true, lastError: true, lastErrorAt: true, namespaceId: true, realm: true, resources: true, revision: true, scaleMax: true, scaleMin: true, serviceName: true, serviceUrl: true, status: true, timeoutSeconds: true, updatedAt: true } } }) useCreatePlatformFunctionDeploymentMutation({ selection: { fields: { id: true } } }) useUpdatePlatformFunctionDeploymentMutation({ selection: { fields: { id: true } } }) useDeletePlatformFunctionDeploymentMutation({}) @@ -20,7 +20,7 @@ useDeletePlatformFunctionDeploymentMutation({}) ```typescript const { data, isLoading } = usePlatformFunctionDeploymentsQuery({ - selection: { fields: { annotations: true, concurrency: true, createdAt: true, errorCount: true, handlerName: true, id: true, image: true, imageVersion: true, labels: true, lastError: true, lastErrorAt: true, namespaceId: true, resources: true, revision: true, scaleMax: true, scaleMin: true, serviceName: true, serviceUrl: true, status: true, timeoutSeconds: true, updatedAt: true } }, + selection: { fields: { annotations: true, concurrency: true, createdAt: true, errorCount: true, handlerName: true, id: true, image: true, imageVersion: true, labels: true, lastError: true, lastErrorAt: true, namespaceId: true, realm: true, resources: true, revision: true, scaleMax: true, scaleMin: true, serviceName: true, serviceUrl: true, status: true, timeoutSeconds: true, updatedAt: true } }, }); ``` @@ -30,5 +30,5 @@ const { data, isLoading } = usePlatformFunctionDeploymentsQuery({ const { mutate } = useCreatePlatformFunctionDeploymentMutation({ selection: { fields: { id: true } }, }); -mutate({ annotations: '', concurrency: '', errorCount: '', handlerName: '', image: '', imageVersion: '', labels: '', lastError: '', lastErrorAt: '', namespaceId: '', resources: '', revision: '', scaleMax: '', scaleMin: '', serviceName: '', serviceUrl: '', status: '', timeoutSeconds: '' }); +mutate({ annotations: '', concurrency: '', errorCount: '', handlerName: '', image: '', imageVersion: '', labels: '', lastError: '', lastErrorAt: '', namespaceId: '', realm: '', resources: '', revision: '', scaleMax: '', scaleMin: '', serviceName: '', serviceUrl: '', status: '', timeoutSeconds: '' }); ``` diff --git a/.agents/skills/hooks-compute/references/platform-infra-insert-nodes-at-paths.md b/.agents/skills/hooks-compute/references/platform-infra-insert-nodes-at-paths.md new file mode 100644 index 0000000000..dd4c10a2f0 --- /dev/null +++ b/.agents/skills/hooks-compute/references/platform-infra-insert-nodes-at-paths.md @@ -0,0 +1,20 @@ +# platformInfraInsertNodesAtPaths + + + +React Query mutation hook for platformInfraInsertNodesAtPaths + +## Usage + +```typescript +const { mutate } = usePlatformInfraInsertNodesAtPathsMutation(); mutate({ input: '' }); +``` + +## Examples + +### Use usePlatformInfraInsertNodesAtPathsMutation + +```typescript +const { mutate, isLoading } = usePlatformInfraInsertNodesAtPathsMutation(); +mutate({ input: '' }); +``` diff --git a/.agents/skills/hooks-compute/references/platform-infra-set-and-commit.md b/.agents/skills/hooks-compute/references/platform-infra-set-and-commit.md new file mode 100644 index 0000000000..3a31f2d542 --- /dev/null +++ b/.agents/skills/hooks-compute/references/platform-infra-set-and-commit.md @@ -0,0 +1,20 @@ +# platformInfraSetAndCommit + + + +React Query mutation hook for platformInfraSetAndCommit + +## Usage + +```typescript +const { mutate } = usePlatformInfraSetAndCommitMutation(); mutate({ input: '' }); +``` + +## Examples + +### Use usePlatformInfraSetAndCommitMutation + +```typescript +const { mutate, isLoading } = usePlatformInfraSetAndCommitMutation(); +mutate({ input: '' }); +``` diff --git a/.agents/skills/hooks-compute/references/platform-infra-set-many-and-commit.md b/.agents/skills/hooks-compute/references/platform-infra-set-many-and-commit.md new file mode 100644 index 0000000000..1cdfbea46e --- /dev/null +++ b/.agents/skills/hooks-compute/references/platform-infra-set-many-and-commit.md @@ -0,0 +1,20 @@ +# platformInfraSetManyAndCommit + + + +React Query mutation hook for platformInfraSetManyAndCommit + +## Usage + +```typescript +const { mutate } = usePlatformInfraSetManyAndCommitMutation(); mutate({ input: { entries: '', message: '', refname: '', sId: '', storeId: '' } }); +``` + +## Examples + +### Use usePlatformInfraSetManyAndCommitMutation + +```typescript +const { mutate, isLoading } = usePlatformInfraSetManyAndCommitMutation(); +mutate({ input: { entries: '', message: '', refname: '', sId: '', storeId: '' } }); +``` diff --git a/.agents/skills/hooks-compute/references/set-and-commit.md b/.agents/skills/hooks-compute/references/set-and-commit.md new file mode 100644 index 0000000000..362ab6ea2b --- /dev/null +++ b/.agents/skills/hooks-compute/references/set-and-commit.md @@ -0,0 +1,20 @@ +# setAndCommit + + + +React Query mutation hook for setAndCommit + +## Usage + +```typescript +const { mutate } = useSetAndCommitMutation(); mutate({ input: '' }); +``` + +## Examples + +### Use useSetAndCommitMutation + +```typescript +const { mutate, isLoading } = useSetAndCommitMutation(); +mutate({ input: '' }); +``` diff --git a/.agents/skills/hooks-compute/references/set-many-and-commit.md b/.agents/skills/hooks-compute/references/set-many-and-commit.md new file mode 100644 index 0000000000..7329c10396 --- /dev/null +++ b/.agents/skills/hooks-compute/references/set-many-and-commit.md @@ -0,0 +1,20 @@ +# setManyAndCommit + + + +React Query mutation hook for setManyAndCommit + +## Usage + +```typescript +const { mutate } = useSetManyAndCommitMutation(); mutate({ input: { entries: '', message: '', refname: '', sId: '', storeId: '' } }); +``` + +## Examples + +### Use useSetManyAndCommitMutation + +```typescript +const { mutate, isLoading } = useSetManyAndCommitMutation(); +mutate({ input: { entries: '', message: '', refname: '', sId: '', storeId: '' } }); +``` diff --git a/.agents/skills/hooks-infra/SKILL.md b/.agents/skills/hooks-infra/SKILL.md index f33976c75a..8bad66ac02 100644 --- a/.agents/skills/hooks-infra/SKILL.md +++ b/.agents/skills/hooks-infra/SKILL.md @@ -1,25 +1,25 @@ --- name: hooks-infra -description: React Query hooks for the infra API — provides typed query and mutation hooks for 10 tables and 4 custom operations +description: React Query hooks for the infra API — provides typed query and mutation hooks for 11 tables and 7 custom operations --- # hooks-infra -React Query hooks for the infra API — provides typed query and mutation hooks for 10 tables and 4 custom operations +React Query hooks for the infra API — provides typed query and mutation hooks for 11 tables and 7 custom operations ## Usage ```typescript // Import hooks -import { useDbPresetsQuery } from './hooks'; +import { useContentPresetsQuery } from './hooks'; // Query hooks: useQuery, usesQuery // Mutation hooks: useCreateMutation, useUpdateMutation, useDeleteMutation // Bulk mutation hooks (when enabled): useBulkCreateMutation, useBulkUpsertMutation, etc. -const { data, isLoading } = useDbPresetsQuery({ +const { data, isLoading } = useContentPresetsQuery({ selection: { fields: { id: true } }, }); ``` @@ -29,7 +29,7 @@ const { data, isLoading } = useDbPresetsQuery({ ### Query records ```typescript -const { data, isLoading } = useDbPresetsQuery({ +const { data, isLoading } = useContentPresetsQuery({ selection: { fields: { id: true } }, }); ``` @@ -38,6 +38,7 @@ const { data, isLoading } = useDbPresetsQuery({ See the `references/` directory for detailed per-entity API documentation: +- [content-preset](references/content-preset.md) - [db-preset](references/db-preset.md) - [namespace](references/namespace.md) - [namespace-event](references/namespace-event.md) @@ -50,5 +51,8 @@ See the `references/` directory for detailed per-entity API documentation: - [platform-namespace-event](references/platform-namespace-event.md) - [platform-infra-init-empty-repo](references/platform-infra-init-empty-repo.md) - [platform-infra-insert-node-at-path](references/platform-infra-insert-node-at-path.md) +- [platform-infra-insert-nodes-at-paths](references/platform-infra-insert-nodes-at-paths.md) +- [platform-infra-set-and-commit](references/platform-infra-set-and-commit.md) - [platform-infra-set-data-at-path](references/platform-infra-set-data-at-path.md) +- [platform-infra-set-many-and-commit](references/platform-infra-set-many-and-commit.md) - [provision-bucket](references/provision-bucket.md) diff --git a/.agents/skills/hooks-infra/references/content-preset.md b/.agents/skills/hooks-infra/references/content-preset.md new file mode 100644 index 0000000000..e88ddebe7e --- /dev/null +++ b/.agents/skills/hooks-infra/references/content-preset.md @@ -0,0 +1,34 @@ +# contentPreset + + + +Seed-content preset catalog (limit defaults, trust ladders, ...) — merkle-versioned head over the infra store + +## Usage + +```typescript +useContentPresetsQuery({ selection: { fields: { active: true, commitId: true, createdAt: true, definition: true, description: true, id: true, kind: true, label: true, slug: true, storeId: true, updatedAt: true } } }) +useContentPresetQuery({ id: '', selection: { fields: { active: true, commitId: true, createdAt: true, definition: true, description: true, id: true, kind: true, label: true, slug: true, storeId: true, updatedAt: true } } }) +useCreateContentPresetMutation({ selection: { fields: { id: true } } }) +useUpdateContentPresetMutation({ selection: { fields: { id: true } } }) +useDeleteContentPresetMutation({}) +``` + +## Examples + +### List all contentPresets + +```typescript +const { data, isLoading } = useContentPresetsQuery({ + selection: { fields: { active: true, commitId: true, createdAt: true, definition: true, description: true, id: true, kind: true, label: true, slug: true, storeId: true, updatedAt: true } }, +}); +``` + +### Create a contentPreset + +```typescript +const { mutate } = useCreateContentPresetMutation({ + selection: { fields: { id: true } }, +}); +mutate({ active: '', commitId: '', definition: '', description: '', kind: '', label: '', slug: '', storeId: '' }); +``` diff --git a/.agents/skills/hooks-infra/references/platform-infra-insert-nodes-at-paths.md b/.agents/skills/hooks-infra/references/platform-infra-insert-nodes-at-paths.md new file mode 100644 index 0000000000..dd4c10a2f0 --- /dev/null +++ b/.agents/skills/hooks-infra/references/platform-infra-insert-nodes-at-paths.md @@ -0,0 +1,20 @@ +# platformInfraInsertNodesAtPaths + + + +React Query mutation hook for platformInfraInsertNodesAtPaths + +## Usage + +```typescript +const { mutate } = usePlatformInfraInsertNodesAtPathsMutation(); mutate({ input: '' }); +``` + +## Examples + +### Use usePlatformInfraInsertNodesAtPathsMutation + +```typescript +const { mutate, isLoading } = usePlatformInfraInsertNodesAtPathsMutation(); +mutate({ input: '' }); +``` diff --git a/.agents/skills/hooks-infra/references/platform-infra-set-and-commit.md b/.agents/skills/hooks-infra/references/platform-infra-set-and-commit.md new file mode 100644 index 0000000000..3a31f2d542 --- /dev/null +++ b/.agents/skills/hooks-infra/references/platform-infra-set-and-commit.md @@ -0,0 +1,20 @@ +# platformInfraSetAndCommit + + + +React Query mutation hook for platformInfraSetAndCommit + +## Usage + +```typescript +const { mutate } = usePlatformInfraSetAndCommitMutation(); mutate({ input: '' }); +``` + +## Examples + +### Use usePlatformInfraSetAndCommitMutation + +```typescript +const { mutate, isLoading } = usePlatformInfraSetAndCommitMutation(); +mutate({ input: '' }); +``` diff --git a/.agents/skills/hooks-infra/references/platform-infra-set-many-and-commit.md b/.agents/skills/hooks-infra/references/platform-infra-set-many-and-commit.md new file mode 100644 index 0000000000..1cdfbea46e --- /dev/null +++ b/.agents/skills/hooks-infra/references/platform-infra-set-many-and-commit.md @@ -0,0 +1,20 @@ +# platformInfraSetManyAndCommit + + + +React Query mutation hook for platformInfraSetManyAndCommit + +## Usage + +```typescript +const { mutate } = usePlatformInfraSetManyAndCommitMutation(); mutate({ input: { entries: '', message: '', refname: '', sId: '', storeId: '' } }); +``` + +## Examples + +### Use usePlatformInfraSetManyAndCommitMutation + +```typescript +const { mutate, isLoading } = usePlatformInfraSetManyAndCommitMutation(); +mutate({ input: { entries: '', message: '', refname: '', sId: '', storeId: '' } }); +``` diff --git a/.agents/skills/hooks-modules/SKILL.md b/.agents/skills/hooks-modules/SKILL.md index 092bd5df16..b07db5d06a 100644 --- a/.agents/skills/hooks-modules/SKILL.md +++ b/.agents/skills/hooks-modules/SKILL.md @@ -1,13 +1,13 @@ --- name: hooks-modules -description: React Query hooks for the modules API — provides typed query and mutation hooks for 76 tables and 12 custom operations +description: React Query hooks for the modules API — provides typed query and mutation hooks for 83 tables and 3 custom operations --- # hooks-modules -React Query hooks for the modules API — provides typed query and mutation hooks for 76 tables and 12 custom operations +React Query hooks for the modules API — provides typed query and mutation hooks for 83 tables and 3 custom operations ## Usage @@ -46,12 +46,15 @@ See the `references/` directory for detailed per-entity API documentation: - [blueprint](references/blueprint.md) - [blueprint-construction](references/blueprint-construction.md) - [blueprint-template](references/blueprint-template.md) +- [capabilities-module](references/capabilities-module.md) - [catalog-module](references/catalog-module.md) - [compute-log-module](references/compute-log-module.md) - [config-secrets-user-module](references/config-secrets-user-module.md) - [connected-accounts-module](references/connected-accounts-module.md) +- [content-preset-module](references/content-preset-module.md) - [crypto-addresses-module](references/crypto-addresses-module.md) - [crypto-auth-module](references/crypto-auth-module.md) +- [data-capabilities-field](references/data-capabilities-field.md) - [database-provision-module](references/database-provision-module.md) - [database-settings-module](references/database-settings-module.md) - [db-pool-config](references/db-pool-config.md) @@ -62,9 +65,11 @@ See the `references/` directory for detailed per-entity API documentation: - [denormalized-table-field](references/denormalized-table-field.md) - [devices-module](references/devices-module.md) - [domain-module](references/domain-module.md) +- [email-sender-module](references/email-sender-module.md) - [emails-module](references/emails-module.md) - [entity-type-provision](references/entity-type-provision.md) - [events-module](references/events-module.md) +- [file-ref-field](references/file-ref-field.md) - [function-deployment-module](references/function-deployment-module.md) - [function-invocation-module](references/function-invocation-module.md) - [function-module](references/function-module.md) @@ -86,8 +91,8 @@ See the `references/` directory for detailed per-entity API documentation: - [merkle-store-module](references/merkle-store-module.md) - [namespace-module](references/namespace-module.md) - [notifications-module](references/notifications-module.md) +- [oauth-requests-module](references/oauth-requests-module.md) - [pages-module](references/pages-module.md) -- [permissions-module](references/permissions-module.md) - [phone-numbers-module](references/phone-numbers-module.md) - [plans-module](references/plans-module.md) - [principal-auth-module](references/principal-auth-module.md) @@ -99,6 +104,7 @@ See the `references/` directory for detailed per-entity API documentation: - [resource-module](references/resource-module.md) - [rls-module](references/rls-module.md) - [route-module](references/route-module.md) +- [scope-types-module](references/scope-types-module.md) - [secure-table-provision](references/secure-table-provision.md) - [session-secrets-module](references/session-secrets-module.md) - [sessions-module](references/sessions-module.md) @@ -109,20 +115,12 @@ See the `references/` directory for detailed per-entity API documentation: - [user-auth-module](references/user-auth-module.md) - [user-credentials-module](references/user-credentials-module.md) - [user-settings-module](references/user-settings-module.md) +- [user-settings-security-module](references/user-settings-security-module.md) - [user-state-module](references/user-state-module.md) - [users-module](references/users-module.md) - [webauthn-auth-module](references/webauthn-auth-module.md) - [webauthn-credentials-module](references/webauthn-credentials-module.md) - [webhook-module](references/webhook-module.md) -- [resolve-blueprint-field](references/resolve-blueprint-field.md) -- [resolve-blueprint-table](references/resolve-blueprint-table.md) - [construct-blueprint](references/construct-blueprint.md) - [copy-template-to-blueprint](references/copy-template-to-blueprint.md) - [provision-bucket](references/provision-bucket.md) -- [provision-check-constraint](references/provision-check-constraint.md) -- [provision-full-text-search](references/provision-full-text-search.md) -- [provision-index](references/provision-index.md) -- [provision-relation](references/provision-relation.md) -- [provision-spatial-relation](references/provision-spatial-relation.md) -- [provision-table](references/provision-table.md) -- [provision-unique-constraint](references/provision-unique-constraint.md) diff --git a/.agents/skills/hooks-modules/references/agent-module.md b/.agents/skills/hooks-modules/references/agent-module.md index c8c4f086b1..7a2db5fb4d 100644 --- a/.agents/skills/hooks-modules/references/agent-module.md +++ b/.agents/skills/hooks-modules/references/agent-module.md @@ -7,8 +7,8 @@ React Query hooks for AgentModule data operations ## Usage ```typescript -useAgentModulesQuery({ selection: { fields: { agentTableId: true, agentTableName: true, apiName: true, databaseId: true, defaultPermissions: true, entityField: true, entityTableId: true, hasAgents: true, hasPlans: true, hasResources: true, id: true, messageTableId: true, messageTableName: true, personaTableId: true, personaTableName: true, planTableId: true, planTableName: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, promptsTableId: true, promptsTableName: true, provisions: true, publicSchemaName: true, resourceTableId: true, resourceTableName: true, resources: true, schemaId: true, scope: true, shared: true, taskTableId: true, taskTableName: true, threadTableId: true, threadTableName: true } } }) -useAgentModuleQuery({ id: '', selection: { fields: { agentTableId: true, agentTableName: true, apiName: true, databaseId: true, defaultPermissions: true, entityField: true, entityTableId: true, hasAgents: true, hasPlans: true, hasResources: true, id: true, messageTableId: true, messageTableName: true, personaTableId: true, personaTableName: true, planTableId: true, planTableName: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, promptsTableId: true, promptsTableName: true, provisions: true, publicSchemaName: true, resourceTableId: true, resourceTableName: true, resources: true, schemaId: true, scope: true, shared: true, taskTableId: true, taskTableName: true, threadTableId: true, threadTableName: true } } }) +useAgentModulesQuery({ selection: { fields: { agentTableId: true, agentTableName: true, apiName: true, databaseId: true, defaultCapabilities: true, entityField: true, entityTableId: true, hasAgents: true, hasPlans: true, hasResources: true, id: true, messageTableId: true, messageTableName: true, personaTableId: true, personaTableName: true, planTableId: true, planTableName: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, promptsTableId: true, promptsTableName: true, provisions: true, publicSchemaName: true, resourceTableId: true, resourceTableName: true, resources: true, schemaId: true, scope: true, shared: true, taskTableId: true, taskTableName: true, threadTableId: true, threadTableName: true } } }) +useAgentModuleQuery({ id: '', selection: { fields: { agentTableId: true, agentTableName: true, apiName: true, databaseId: true, defaultCapabilities: true, entityField: true, entityTableId: true, hasAgents: true, hasPlans: true, hasResources: true, id: true, messageTableId: true, messageTableName: true, personaTableId: true, personaTableName: true, planTableId: true, planTableName: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, promptsTableId: true, promptsTableName: true, provisions: true, publicSchemaName: true, resourceTableId: true, resourceTableName: true, resources: true, schemaId: true, scope: true, shared: true, taskTableId: true, taskTableName: true, threadTableId: true, threadTableName: true } } }) useCreateAgentModuleMutation({ selection: { fields: { id: true } } }) useUpdateAgentModuleMutation({ selection: { fields: { id: true } } }) useDeleteAgentModuleMutation({}) @@ -20,7 +20,7 @@ useDeleteAgentModuleMutation({}) ```typescript const { data, isLoading } = useAgentModulesQuery({ - selection: { fields: { agentTableId: true, agentTableName: true, apiName: true, databaseId: true, defaultPermissions: true, entityField: true, entityTableId: true, hasAgents: true, hasPlans: true, hasResources: true, id: true, messageTableId: true, messageTableName: true, personaTableId: true, personaTableName: true, planTableId: true, planTableName: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, promptsTableId: true, promptsTableName: true, provisions: true, publicSchemaName: true, resourceTableId: true, resourceTableName: true, resources: true, schemaId: true, scope: true, shared: true, taskTableId: true, taskTableName: true, threadTableId: true, threadTableName: true } }, + selection: { fields: { agentTableId: true, agentTableName: true, apiName: true, databaseId: true, defaultCapabilities: true, entityField: true, entityTableId: true, hasAgents: true, hasPlans: true, hasResources: true, id: true, messageTableId: true, messageTableName: true, personaTableId: true, personaTableName: true, planTableId: true, planTableName: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, promptsTableId: true, promptsTableName: true, provisions: true, publicSchemaName: true, resourceTableId: true, resourceTableName: true, resources: true, schemaId: true, scope: true, shared: true, taskTableId: true, taskTableName: true, threadTableId: true, threadTableName: true } }, }); ``` @@ -30,5 +30,5 @@ const { data, isLoading } = useAgentModulesQuery({ const { mutate } = useCreateAgentModuleMutation({ selection: { fields: { id: true } }, }); -mutate({ agentTableId: '', agentTableName: '', apiName: '', databaseId: '', defaultPermissions: '', entityField: '', entityTableId: '', hasAgents: '', hasPlans: '', hasResources: '', messageTableId: '', messageTableName: '', personaTableId: '', personaTableName: '', planTableId: '', planTableName: '', policies: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', promptsTableId: '', promptsTableName: '', provisions: '', publicSchemaName: '', resourceTableId: '', resourceTableName: '', resources: '', schemaId: '', scope: '', shared: '', taskTableId: '', taskTableName: '', threadTableId: '', threadTableName: '' }); +mutate({ agentTableId: '', agentTableName: '', apiName: '', databaseId: '', defaultCapabilities: '', entityField: '', entityTableId: '', hasAgents: '', hasPlans: '', hasResources: '', messageTableId: '', messageTableName: '', personaTableId: '', personaTableName: '', planTableId: '', planTableName: '', policies: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', promptsTableId: '', promptsTableName: '', provisions: '', publicSchemaName: '', resourceTableId: '', resourceTableName: '', resources: '', schemaId: '', scope: '', shared: '', taskTableId: '', taskTableName: '', threadTableId: '', threadTableName: '' }); ``` diff --git a/.agents/skills/hooks-modules/references/api-surface-module.md b/.agents/skills/hooks-modules/references/api-surface-module.md index 4b08201c0b..37dc608085 100644 --- a/.agents/skills/hooks-modules/references/api-surface-module.md +++ b/.agents/skills/hooks-modules/references/api-surface-module.md @@ -7,8 +7,8 @@ React Query hooks for ApiSurfaceModule data operations ## Usage ```typescript -useApiSurfaceModulesQuery({ selection: { fields: { apiName: true, apiSchemasTableId: true, apiSchemasTableName: true, apiSettingsTableId: true, apiSettingsTableName: true, apisTableId: true, apisTableName: true, catalogModuleId: true, corsSettingsTableId: true, corsSettingsTableName: true, databaseId: true, defaultPermissions: true, entityField: true, entityTableId: true, id: true, policies: true, prefix: true, privateApiName: true, provisions: true, publicSchemaName: true, schemaId: true, scope: true } } }) -useApiSurfaceModuleQuery({ id: '', selection: { fields: { apiName: true, apiSchemasTableId: true, apiSchemasTableName: true, apiSettingsTableId: true, apiSettingsTableName: true, apisTableId: true, apisTableName: true, catalogModuleId: true, corsSettingsTableId: true, corsSettingsTableName: true, databaseId: true, defaultPermissions: true, entityField: true, entityTableId: true, id: true, policies: true, prefix: true, privateApiName: true, provisions: true, publicSchemaName: true, schemaId: true, scope: true } } }) +useApiSurfaceModulesQuery({ selection: { fields: { apiName: true, apiSchemasTableId: true, apiSchemasTableName: true, apiSettingsTableId: true, apiSettingsTableName: true, apisTableId: true, apisTableName: true, catalogModuleId: true, corsSettingsTableId: true, corsSettingsTableName: true, databaseId: true, defaultCapabilities: true, entityField: true, entityTableId: true, id: true, policies: true, prefix: true, privateApiName: true, provisions: true, publicSchemaName: true, schemaId: true, scope: true } } }) +useApiSurfaceModuleQuery({ id: '', selection: { fields: { apiName: true, apiSchemasTableId: true, apiSchemasTableName: true, apiSettingsTableId: true, apiSettingsTableName: true, apisTableId: true, apisTableName: true, catalogModuleId: true, corsSettingsTableId: true, corsSettingsTableName: true, databaseId: true, defaultCapabilities: true, entityField: true, entityTableId: true, id: true, policies: true, prefix: true, privateApiName: true, provisions: true, publicSchemaName: true, schemaId: true, scope: true } } }) useCreateApiSurfaceModuleMutation({ selection: { fields: { id: true } } }) useUpdateApiSurfaceModuleMutation({ selection: { fields: { id: true } } }) useDeleteApiSurfaceModuleMutation({}) @@ -20,7 +20,7 @@ useDeleteApiSurfaceModuleMutation({}) ```typescript const { data, isLoading } = useApiSurfaceModulesQuery({ - selection: { fields: { apiName: true, apiSchemasTableId: true, apiSchemasTableName: true, apiSettingsTableId: true, apiSettingsTableName: true, apisTableId: true, apisTableName: true, catalogModuleId: true, corsSettingsTableId: true, corsSettingsTableName: true, databaseId: true, defaultPermissions: true, entityField: true, entityTableId: true, id: true, policies: true, prefix: true, privateApiName: true, provisions: true, publicSchemaName: true, schemaId: true, scope: true } }, + selection: { fields: { apiName: true, apiSchemasTableId: true, apiSchemasTableName: true, apiSettingsTableId: true, apiSettingsTableName: true, apisTableId: true, apisTableName: true, catalogModuleId: true, corsSettingsTableId: true, corsSettingsTableName: true, databaseId: true, defaultCapabilities: true, entityField: true, entityTableId: true, id: true, policies: true, prefix: true, privateApiName: true, provisions: true, publicSchemaName: true, schemaId: true, scope: true } }, }); ``` @@ -30,5 +30,5 @@ const { data, isLoading } = useApiSurfaceModulesQuery({ const { mutate } = useCreateApiSurfaceModuleMutation({ selection: { fields: { id: true } }, }); -mutate({ apiName: '', apiSchemasTableId: '', apiSchemasTableName: '', apiSettingsTableId: '', apiSettingsTableName: '', apisTableId: '', apisTableName: '', catalogModuleId: '', corsSettingsTableId: '', corsSettingsTableName: '', databaseId: '', defaultPermissions: '', entityField: '', entityTableId: '', policies: '', prefix: '', privateApiName: '', provisions: '', publicSchemaName: '', schemaId: '', scope: '' }); +mutate({ apiName: '', apiSchemasTableId: '', apiSchemasTableName: '', apiSettingsTableId: '', apiSettingsTableName: '', apisTableId: '', apisTableName: '', catalogModuleId: '', corsSettingsTableId: '', corsSettingsTableName: '', databaseId: '', defaultCapabilities: '', entityField: '', entityTableId: '', policies: '', prefix: '', privateApiName: '', provisions: '', publicSchemaName: '', schemaId: '', scope: '' }); ``` diff --git a/.agents/skills/hooks-modules/references/app-module.md b/.agents/skills/hooks-modules/references/app-module.md index 8960424657..2d02742242 100644 --- a/.agents/skills/hooks-modules/references/app-module.md +++ b/.agents/skills/hooks-modules/references/app-module.md @@ -7,8 +7,8 @@ React Query hooks for AppModule data operations ## Usage ```typescript -useAppModulesQuery({ selection: { fields: { apiName: true, appComponentsTableId: true, appComponentsTableName: true, appsTableId: true, appsTableName: true, catalogModuleId: true, databaseId: true, defaultPermissions: true, entityField: true, entityTableId: true, id: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provisions: true, publicSchemaName: true, schemaId: true, scope: true } } }) -useAppModuleQuery({ id: '', selection: { fields: { apiName: true, appComponentsTableId: true, appComponentsTableName: true, appsTableId: true, appsTableName: true, catalogModuleId: true, databaseId: true, defaultPermissions: true, entityField: true, entityTableId: true, id: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provisions: true, publicSchemaName: true, schemaId: true, scope: true } } }) +useAppModulesQuery({ selection: { fields: { apiName: true, appComponentsTableId: true, appComponentsTableName: true, appsTableId: true, appsTableName: true, catalogModuleId: true, databaseId: true, defaultCapabilities: true, entityField: true, entityTableId: true, id: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provisions: true, publicSchemaName: true, schemaId: true, scope: true } } }) +useAppModuleQuery({ id: '', selection: { fields: { apiName: true, appComponentsTableId: true, appComponentsTableName: true, appsTableId: true, appsTableName: true, catalogModuleId: true, databaseId: true, defaultCapabilities: true, entityField: true, entityTableId: true, id: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provisions: true, publicSchemaName: true, schemaId: true, scope: true } } }) useCreateAppModuleMutation({ selection: { fields: { id: true } } }) useUpdateAppModuleMutation({ selection: { fields: { id: true } } }) useDeleteAppModuleMutation({}) @@ -20,7 +20,7 @@ useDeleteAppModuleMutation({}) ```typescript const { data, isLoading } = useAppModulesQuery({ - selection: { fields: { apiName: true, appComponentsTableId: true, appComponentsTableName: true, appsTableId: true, appsTableName: true, catalogModuleId: true, databaseId: true, defaultPermissions: true, entityField: true, entityTableId: true, id: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provisions: true, publicSchemaName: true, schemaId: true, scope: true } }, + selection: { fields: { apiName: true, appComponentsTableId: true, appComponentsTableName: true, appsTableId: true, appsTableName: true, catalogModuleId: true, databaseId: true, defaultCapabilities: true, entityField: true, entityTableId: true, id: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provisions: true, publicSchemaName: true, schemaId: true, scope: true } }, }); ``` @@ -30,5 +30,5 @@ const { data, isLoading } = useAppModulesQuery({ const { mutate } = useCreateAppModuleMutation({ selection: { fields: { id: true } }, }); -mutate({ apiName: '', appComponentsTableId: '', appComponentsTableName: '', appsTableId: '', appsTableName: '', catalogModuleId: '', databaseId: '', defaultPermissions: '', entityField: '', entityTableId: '', policies: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', provisions: '', publicSchemaName: '', schemaId: '', scope: '' }); +mutate({ apiName: '', appComponentsTableId: '', appComponentsTableName: '', appsTableId: '', appsTableName: '', catalogModuleId: '', databaseId: '', defaultCapabilities: '', entityField: '', entityTableId: '', policies: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', provisions: '', publicSchemaName: '', schemaId: '', scope: '' }); ``` diff --git a/.agents/skills/hooks-modules/references/billing-module.md b/.agents/skills/hooks-modules/references/billing-module.md index a7eb538743..25fd2b58d0 100644 --- a/.agents/skills/hooks-modules/references/billing-module.md +++ b/.agents/skills/hooks-modules/references/billing-module.md @@ -7,8 +7,8 @@ React Query hooks for BillingModule data operations ## Usage ```typescript -useBillingModulesQuery({ selection: { fields: { apiName: true, balancesTableId: true, balancesTableName: true, databaseId: true, defaultMeterCatalog: true, defaultPermissions: true, id: true, ledgerTableId: true, ledgerTableName: true, meterCreditsTableId: true, meterCreditsTableName: true, meterDefaultsTableId: true, meterDefaultsTableName: true, meterSourcesTableId: true, meterSourcesTableName: true, metersTableId: true, metersTableName: true, planSubscriptionsTableId: true, planSubscriptionsTableName: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, publicSchemaName: true, recordUsageFunction: true, rollupUsageSummaryFunction: true, schemaId: true, sweepExpiredSubscriptionsFunction: true } } }) -useBillingModuleQuery({ id: '', selection: { fields: { apiName: true, balancesTableId: true, balancesTableName: true, databaseId: true, defaultMeterCatalog: true, defaultPermissions: true, id: true, ledgerTableId: true, ledgerTableName: true, meterCreditsTableId: true, meterCreditsTableName: true, meterDefaultsTableId: true, meterDefaultsTableName: true, meterSourcesTableId: true, meterSourcesTableName: true, metersTableId: true, metersTableName: true, planSubscriptionsTableId: true, planSubscriptionsTableName: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, publicSchemaName: true, recordUsageFunction: true, rollupUsageSummaryFunction: true, schemaId: true, sweepExpiredSubscriptionsFunction: true } } }) +useBillingModulesQuery({ selection: { fields: { apiName: true, balancesTableId: true, balancesTableName: true, databaseId: true, defaultCapabilities: true, defaultMeterCatalog: true, id: true, ledgerTableId: true, ledgerTableName: true, meterCreditsTableId: true, meterCreditsTableName: true, meterDefaultsTableId: true, meterDefaultsTableName: true, meterSourcesTableId: true, meterSourcesTableName: true, metersTableId: true, metersTableName: true, planSubscriptionsTableId: true, planSubscriptionsTableName: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, publicSchemaName: true, recordUsageFunction: true, rollupUsageSummaryFunction: true, schemaId: true, sweepExpiredSubscriptionsFunction: true } } }) +useBillingModuleQuery({ id: '', selection: { fields: { apiName: true, balancesTableId: true, balancesTableName: true, databaseId: true, defaultCapabilities: true, defaultMeterCatalog: true, id: true, ledgerTableId: true, ledgerTableName: true, meterCreditsTableId: true, meterCreditsTableName: true, meterDefaultsTableId: true, meterDefaultsTableName: true, meterSourcesTableId: true, meterSourcesTableName: true, metersTableId: true, metersTableName: true, planSubscriptionsTableId: true, planSubscriptionsTableName: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, publicSchemaName: true, recordUsageFunction: true, rollupUsageSummaryFunction: true, schemaId: true, sweepExpiredSubscriptionsFunction: true } } }) useCreateBillingModuleMutation({ selection: { fields: { id: true } } }) useUpdateBillingModuleMutation({ selection: { fields: { id: true } } }) useDeleteBillingModuleMutation({}) @@ -20,7 +20,7 @@ useDeleteBillingModuleMutation({}) ```typescript const { data, isLoading } = useBillingModulesQuery({ - selection: { fields: { apiName: true, balancesTableId: true, balancesTableName: true, databaseId: true, defaultMeterCatalog: true, defaultPermissions: true, id: true, ledgerTableId: true, ledgerTableName: true, meterCreditsTableId: true, meterCreditsTableName: true, meterDefaultsTableId: true, meterDefaultsTableName: true, meterSourcesTableId: true, meterSourcesTableName: true, metersTableId: true, metersTableName: true, planSubscriptionsTableId: true, planSubscriptionsTableName: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, publicSchemaName: true, recordUsageFunction: true, rollupUsageSummaryFunction: true, schemaId: true, sweepExpiredSubscriptionsFunction: true } }, + selection: { fields: { apiName: true, balancesTableId: true, balancesTableName: true, databaseId: true, defaultCapabilities: true, defaultMeterCatalog: true, id: true, ledgerTableId: true, ledgerTableName: true, meterCreditsTableId: true, meterCreditsTableName: true, meterDefaultsTableId: true, meterDefaultsTableName: true, meterSourcesTableId: true, meterSourcesTableName: true, metersTableId: true, metersTableName: true, planSubscriptionsTableId: true, planSubscriptionsTableName: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, publicSchemaName: true, recordUsageFunction: true, rollupUsageSummaryFunction: true, schemaId: true, sweepExpiredSubscriptionsFunction: true } }, }); ``` @@ -30,5 +30,5 @@ const { data, isLoading } = useBillingModulesQuery({ const { mutate } = useCreateBillingModuleMutation({ selection: { fields: { id: true } }, }); -mutate({ apiName: '', balancesTableId: '', balancesTableName: '', databaseId: '', defaultMeterCatalog: '', defaultPermissions: '', ledgerTableId: '', ledgerTableName: '', meterCreditsTableId: '', meterCreditsTableName: '', meterDefaultsTableId: '', meterDefaultsTableName: '', meterSourcesTableId: '', meterSourcesTableName: '', metersTableId: '', metersTableName: '', planSubscriptionsTableId: '', planSubscriptionsTableName: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', publicSchemaName: '', recordUsageFunction: '', rollupUsageSummaryFunction: '', schemaId: '', sweepExpiredSubscriptionsFunction: '' }); +mutate({ apiName: '', balancesTableId: '', balancesTableName: '', databaseId: '', defaultCapabilities: '', defaultMeterCatalog: '', ledgerTableId: '', ledgerTableName: '', meterCreditsTableId: '', meterCreditsTableName: '', meterDefaultsTableId: '', meterDefaultsTableName: '', meterSourcesTableId: '', meterSourcesTableName: '', metersTableId: '', metersTableName: '', planSubscriptionsTableId: '', planSubscriptionsTableName: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', publicSchemaName: '', recordUsageFunction: '', rollupUsageSummaryFunction: '', schemaId: '', sweepExpiredSubscriptionsFunction: '' }); ``` diff --git a/.agents/skills/hooks-modules/references/billing-provider-module.md b/.agents/skills/hooks-modules/references/billing-provider-module.md index 88f93fdba5..5980231bee 100644 --- a/.agents/skills/hooks-modules/references/billing-provider-module.md +++ b/.agents/skills/hooks-modules/references/billing-provider-module.md @@ -7,8 +7,8 @@ React Query hooks for BillingProviderModule data operations ## Usage ```typescript -useBillingProviderModulesQuery({ selection: { fields: { apiName: true, billingCustomersTableId: true, billingCustomersTableName: true, billingPricesTableId: true, billingPricesTableName: true, billingProductsTableId: true, billingProductsTableName: true, billingSubscriptionsTableId: true, billingSubscriptionsTableName: true, billingWebhookEventsTableId: true, billingWebhookEventsTableName: true, databaseId: true, id: true, prefix: true, pricesTableId: true, privateApiName: true, privateSchemaId: true, processBillingEventFunction: true, productsTableId: true, provider: true, schemaId: true, subscriptionsTableId: true } } }) -useBillingProviderModuleQuery({ id: '', selection: { fields: { apiName: true, billingCustomersTableId: true, billingCustomersTableName: true, billingPricesTableId: true, billingPricesTableName: true, billingProductsTableId: true, billingProductsTableName: true, billingSubscriptionsTableId: true, billingSubscriptionsTableName: true, billingWebhookEventsTableId: true, billingWebhookEventsTableName: true, databaseId: true, id: true, prefix: true, pricesTableId: true, privateApiName: true, privateSchemaId: true, processBillingEventFunction: true, productsTableId: true, provider: true, schemaId: true, subscriptionsTableId: true } } }) +useBillingProviderModulesQuery({ selection: { fields: { apiName: true, billingCustomersTableId: true, billingCustomersTableName: true, billingInvoicesTableId: true, billingInvoicesTableName: true, billingPricesTableId: true, billingPricesTableName: true, billingProductsTableId: true, billingProductsTableName: true, billingRefundsTableId: true, billingRefundsTableName: true, billingSubscriptionsTableId: true, billingSubscriptionsTableName: true, billingWebhookEventsTableId: true, billingWebhookEventsTableName: true, databaseId: true, id: true, listPendingUsageSyncFunction: true, markUsageSyncedFunction: true, prefix: true, pricesTableId: true, privateApiName: true, privateSchemaId: true, processBillingEventFunction: true, productsTableId: true, provider: true, recordRefundFunction: true, schemaId: true, subscriptionsTableId: true, upsertInvoiceFunction: true } } }) +useBillingProviderModuleQuery({ id: '', selection: { fields: { apiName: true, billingCustomersTableId: true, billingCustomersTableName: true, billingInvoicesTableId: true, billingInvoicesTableName: true, billingPricesTableId: true, billingPricesTableName: true, billingProductsTableId: true, billingProductsTableName: true, billingRefundsTableId: true, billingRefundsTableName: true, billingSubscriptionsTableId: true, billingSubscriptionsTableName: true, billingWebhookEventsTableId: true, billingWebhookEventsTableName: true, databaseId: true, id: true, listPendingUsageSyncFunction: true, markUsageSyncedFunction: true, prefix: true, pricesTableId: true, privateApiName: true, privateSchemaId: true, processBillingEventFunction: true, productsTableId: true, provider: true, recordRefundFunction: true, schemaId: true, subscriptionsTableId: true, upsertInvoiceFunction: true } } }) useCreateBillingProviderModuleMutation({ selection: { fields: { id: true } } }) useUpdateBillingProviderModuleMutation({ selection: { fields: { id: true } } }) useDeleteBillingProviderModuleMutation({}) @@ -20,7 +20,7 @@ useDeleteBillingProviderModuleMutation({}) ```typescript const { data, isLoading } = useBillingProviderModulesQuery({ - selection: { fields: { apiName: true, billingCustomersTableId: true, billingCustomersTableName: true, billingPricesTableId: true, billingPricesTableName: true, billingProductsTableId: true, billingProductsTableName: true, billingSubscriptionsTableId: true, billingSubscriptionsTableName: true, billingWebhookEventsTableId: true, billingWebhookEventsTableName: true, databaseId: true, id: true, prefix: true, pricesTableId: true, privateApiName: true, privateSchemaId: true, processBillingEventFunction: true, productsTableId: true, provider: true, schemaId: true, subscriptionsTableId: true } }, + selection: { fields: { apiName: true, billingCustomersTableId: true, billingCustomersTableName: true, billingInvoicesTableId: true, billingInvoicesTableName: true, billingPricesTableId: true, billingPricesTableName: true, billingProductsTableId: true, billingProductsTableName: true, billingRefundsTableId: true, billingRefundsTableName: true, billingSubscriptionsTableId: true, billingSubscriptionsTableName: true, billingWebhookEventsTableId: true, billingWebhookEventsTableName: true, databaseId: true, id: true, listPendingUsageSyncFunction: true, markUsageSyncedFunction: true, prefix: true, pricesTableId: true, privateApiName: true, privateSchemaId: true, processBillingEventFunction: true, productsTableId: true, provider: true, recordRefundFunction: true, schemaId: true, subscriptionsTableId: true, upsertInvoiceFunction: true } }, }); ``` @@ -30,5 +30,5 @@ const { data, isLoading } = useBillingProviderModulesQuery({ const { mutate } = useCreateBillingProviderModuleMutation({ selection: { fields: { id: true } }, }); -mutate({ apiName: '', billingCustomersTableId: '', billingCustomersTableName: '', billingPricesTableId: '', billingPricesTableName: '', billingProductsTableId: '', billingProductsTableName: '', billingSubscriptionsTableId: '', billingSubscriptionsTableName: '', billingWebhookEventsTableId: '', billingWebhookEventsTableName: '', databaseId: '', prefix: '', pricesTableId: '', privateApiName: '', privateSchemaId: '', processBillingEventFunction: '', productsTableId: '', provider: '', schemaId: '', subscriptionsTableId: '' }); +mutate({ apiName: '', billingCustomersTableId: '', billingCustomersTableName: '', billingInvoicesTableId: '', billingInvoicesTableName: '', billingPricesTableId: '', billingPricesTableName: '', billingProductsTableId: '', billingProductsTableName: '', billingRefundsTableId: '', billingRefundsTableName: '', billingSubscriptionsTableId: '', billingSubscriptionsTableName: '', billingWebhookEventsTableId: '', billingWebhookEventsTableName: '', databaseId: '', listPendingUsageSyncFunction: '', markUsageSyncedFunction: '', prefix: '', pricesTableId: '', privateApiName: '', privateSchemaId: '', processBillingEventFunction: '', productsTableId: '', provider: '', recordRefundFunction: '', schemaId: '', subscriptionsTableId: '', upsertInvoiceFunction: '' }); ``` diff --git a/.agents/skills/hooks-modules/references/capabilities-module.md b/.agents/skills/hooks-modules/references/capabilities-module.md new file mode 100644 index 0000000000..126d8836bb --- /dev/null +++ b/.agents/skills/hooks-modules/references/capabilities-module.md @@ -0,0 +1,34 @@ +# capabilitiesModule + + + +React Query hooks for CapabilitiesModule data operations + +## Usage + +```typescript +useCapabilitiesModulesQuery({ selection: { fields: { actorTableId: true, apiName: true, bitlen: true, databaseId: true, defaultTableId: true, defaultTableName: true, entityField: true, entityTableId: true, getByMask: true, getMask: true, getMaskByName: true, getPaddedMask: true, id: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, publicSchemaName: true, schemaId: true, scope: true, tableId: true, tableName: true } } }) +useCapabilitiesModuleQuery({ id: '', selection: { fields: { actorTableId: true, apiName: true, bitlen: true, databaseId: true, defaultTableId: true, defaultTableName: true, entityField: true, entityTableId: true, getByMask: true, getMask: true, getMaskByName: true, getPaddedMask: true, id: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, publicSchemaName: true, schemaId: true, scope: true, tableId: true, tableName: true } } }) +useCreateCapabilitiesModuleMutation({ selection: { fields: { id: true } } }) +useUpdateCapabilitiesModuleMutation({ selection: { fields: { id: true } } }) +useDeleteCapabilitiesModuleMutation({}) +``` + +## Examples + +### List all capabilitiesModules + +```typescript +const { data, isLoading } = useCapabilitiesModulesQuery({ + selection: { fields: { actorTableId: true, apiName: true, bitlen: true, databaseId: true, defaultTableId: true, defaultTableName: true, entityField: true, entityTableId: true, getByMask: true, getMask: true, getMaskByName: true, getPaddedMask: true, id: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, publicSchemaName: true, schemaId: true, scope: true, tableId: true, tableName: true } }, +}); +``` + +### Create a capabilitiesModule + +```typescript +const { mutate } = useCreateCapabilitiesModuleMutation({ + selection: { fields: { id: true } }, +}); +mutate({ actorTableId: '', apiName: '', bitlen: '', databaseId: '', defaultTableId: '', defaultTableName: '', entityField: '', entityTableId: '', getByMask: '', getMask: '', getMaskByName: '', getPaddedMask: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', publicSchemaName: '', schemaId: '', scope: '', tableId: '', tableName: '' }); +``` diff --git a/.agents/skills/hooks-modules/references/catalog-module.md b/.agents/skills/hooks-modules/references/catalog-module.md index cf24906c51..ba6b2625c0 100644 --- a/.agents/skills/hooks-modules/references/catalog-module.md +++ b/.agents/skills/hooks-modules/references/catalog-module.md @@ -7,8 +7,8 @@ React Query hooks for CatalogModule data operations ## Usage ```typescript -useCatalogModulesQuery({ selection: { fields: { apiName: true, apisTableId: true, apisTableName: true, appsTableId: true, appsTableName: true, bucketsTableId: true, bucketsTableName: true, databaseId: true, defaultPermissions: true, domainsTableId: true, domainsTableName: true, entityTableId: true, functionsTableId: true, functionsTableName: true, id: true, namespacesTableId: true, namespacesTableName: true, policies: true, privateApiName: true, provisions: true, publicSchemaName: true, resourceDefinitionsTableId: true, resourceDefinitionsTableName: true, resourceInstallationsTableId: true, resourceInstallationsTableName: true, resourcesTableId: true, resourcesTableName: true, schemaId: true, scope: true, sitesAppLinksTableId: true, sitesAppLinksTableName: true, sitesDeepLinksTableId: true, sitesDeepLinksTableName: true, sitesErrorPagesTableId: true, sitesErrorPagesTableName: true, sitesTableId: true, sitesTableName: true, sitesWebConfigTableId: true, sitesWebConfigTableName: true } } }) -useCatalogModuleQuery({ id: '', selection: { fields: { apiName: true, apisTableId: true, apisTableName: true, appsTableId: true, appsTableName: true, bucketsTableId: true, bucketsTableName: true, databaseId: true, defaultPermissions: true, domainsTableId: true, domainsTableName: true, entityTableId: true, functionsTableId: true, functionsTableName: true, id: true, namespacesTableId: true, namespacesTableName: true, policies: true, privateApiName: true, provisions: true, publicSchemaName: true, resourceDefinitionsTableId: true, resourceDefinitionsTableName: true, resourceInstallationsTableId: true, resourceInstallationsTableName: true, resourcesTableId: true, resourcesTableName: true, schemaId: true, scope: true, sitesAppLinksTableId: true, sitesAppLinksTableName: true, sitesDeepLinksTableId: true, sitesDeepLinksTableName: true, sitesErrorPagesTableId: true, sitesErrorPagesTableName: true, sitesTableId: true, sitesTableName: true, sitesWebConfigTableId: true, sitesWebConfigTableName: true } } }) +useCatalogModulesQuery({ selection: { fields: { apiName: true, apisTableId: true, apisTableName: true, appsTableId: true, appsTableName: true, bindingsTableId: true, bindingsTableName: true, bucketsTableId: true, bucketsTableName: true, databaseId: true, defaultCapabilities: true, domainsTableId: true, domainsTableName: true, entityTableId: true, functionsTableId: true, functionsTableName: true, id: true, namespacesTableId: true, namespacesTableName: true, policies: true, privateApiName: true, provisions: true, publicSchemaName: true, resourceDefinitionsTableId: true, resourceDefinitionsTableName: true, resourceInstallationsTableId: true, resourceInstallationsTableName: true, resourcesTableId: true, resourcesTableName: true, schemaId: true, scope: true, sitesAppLinksTableId: true, sitesAppLinksTableName: true, sitesDeepLinksTableId: true, sitesDeepLinksTableName: true, sitesErrorPagesTableId: true, sitesErrorPagesTableName: true, sitesTableId: true, sitesTableName: true, sitesWebConfigTableId: true, sitesWebConfigTableName: true } } }) +useCatalogModuleQuery({ id: '', selection: { fields: { apiName: true, apisTableId: true, apisTableName: true, appsTableId: true, appsTableName: true, bindingsTableId: true, bindingsTableName: true, bucketsTableId: true, bucketsTableName: true, databaseId: true, defaultCapabilities: true, domainsTableId: true, domainsTableName: true, entityTableId: true, functionsTableId: true, functionsTableName: true, id: true, namespacesTableId: true, namespacesTableName: true, policies: true, privateApiName: true, provisions: true, publicSchemaName: true, resourceDefinitionsTableId: true, resourceDefinitionsTableName: true, resourceInstallationsTableId: true, resourceInstallationsTableName: true, resourcesTableId: true, resourcesTableName: true, schemaId: true, scope: true, sitesAppLinksTableId: true, sitesAppLinksTableName: true, sitesDeepLinksTableId: true, sitesDeepLinksTableName: true, sitesErrorPagesTableId: true, sitesErrorPagesTableName: true, sitesTableId: true, sitesTableName: true, sitesWebConfigTableId: true, sitesWebConfigTableName: true } } }) useCreateCatalogModuleMutation({ selection: { fields: { id: true } } }) useUpdateCatalogModuleMutation({ selection: { fields: { id: true } } }) useDeleteCatalogModuleMutation({}) @@ -20,7 +20,7 @@ useDeleteCatalogModuleMutation({}) ```typescript const { data, isLoading } = useCatalogModulesQuery({ - selection: { fields: { apiName: true, apisTableId: true, apisTableName: true, appsTableId: true, appsTableName: true, bucketsTableId: true, bucketsTableName: true, databaseId: true, defaultPermissions: true, domainsTableId: true, domainsTableName: true, entityTableId: true, functionsTableId: true, functionsTableName: true, id: true, namespacesTableId: true, namespacesTableName: true, policies: true, privateApiName: true, provisions: true, publicSchemaName: true, resourceDefinitionsTableId: true, resourceDefinitionsTableName: true, resourceInstallationsTableId: true, resourceInstallationsTableName: true, resourcesTableId: true, resourcesTableName: true, schemaId: true, scope: true, sitesAppLinksTableId: true, sitesAppLinksTableName: true, sitesDeepLinksTableId: true, sitesDeepLinksTableName: true, sitesErrorPagesTableId: true, sitesErrorPagesTableName: true, sitesTableId: true, sitesTableName: true, sitesWebConfigTableId: true, sitesWebConfigTableName: true } }, + selection: { fields: { apiName: true, apisTableId: true, apisTableName: true, appsTableId: true, appsTableName: true, bindingsTableId: true, bindingsTableName: true, bucketsTableId: true, bucketsTableName: true, databaseId: true, defaultCapabilities: true, domainsTableId: true, domainsTableName: true, entityTableId: true, functionsTableId: true, functionsTableName: true, id: true, namespacesTableId: true, namespacesTableName: true, policies: true, privateApiName: true, provisions: true, publicSchemaName: true, resourceDefinitionsTableId: true, resourceDefinitionsTableName: true, resourceInstallationsTableId: true, resourceInstallationsTableName: true, resourcesTableId: true, resourcesTableName: true, schemaId: true, scope: true, sitesAppLinksTableId: true, sitesAppLinksTableName: true, sitesDeepLinksTableId: true, sitesDeepLinksTableName: true, sitesErrorPagesTableId: true, sitesErrorPagesTableName: true, sitesTableId: true, sitesTableName: true, sitesWebConfigTableId: true, sitesWebConfigTableName: true } }, }); ``` @@ -30,5 +30,5 @@ const { data, isLoading } = useCatalogModulesQuery({ const { mutate } = useCreateCatalogModuleMutation({ selection: { fields: { id: true } }, }); -mutate({ apiName: '', apisTableId: '', apisTableName: '', appsTableId: '', appsTableName: '', bucketsTableId: '', bucketsTableName: '', databaseId: '', defaultPermissions: '', domainsTableId: '', domainsTableName: '', entityTableId: '', functionsTableId: '', functionsTableName: '', namespacesTableId: '', namespacesTableName: '', policies: '', privateApiName: '', provisions: '', publicSchemaName: '', resourceDefinitionsTableId: '', resourceDefinitionsTableName: '', resourceInstallationsTableId: '', resourceInstallationsTableName: '', resourcesTableId: '', resourcesTableName: '', schemaId: '', scope: '', sitesAppLinksTableId: '', sitesAppLinksTableName: '', sitesDeepLinksTableId: '', sitesDeepLinksTableName: '', sitesErrorPagesTableId: '', sitesErrorPagesTableName: '', sitesTableId: '', sitesTableName: '', sitesWebConfigTableId: '', sitesWebConfigTableName: '' }); +mutate({ apiName: '', apisTableId: '', apisTableName: '', appsTableId: '', appsTableName: '', bindingsTableId: '', bindingsTableName: '', bucketsTableId: '', bucketsTableName: '', databaseId: '', defaultCapabilities: '', domainsTableId: '', domainsTableName: '', entityTableId: '', functionsTableId: '', functionsTableName: '', namespacesTableId: '', namespacesTableName: '', policies: '', privateApiName: '', provisions: '', publicSchemaName: '', resourceDefinitionsTableId: '', resourceDefinitionsTableName: '', resourceInstallationsTableId: '', resourceInstallationsTableName: '', resourcesTableId: '', resourcesTableName: '', schemaId: '', scope: '', sitesAppLinksTableId: '', sitesAppLinksTableName: '', sitesDeepLinksTableId: '', sitesDeepLinksTableName: '', sitesErrorPagesTableId: '', sitesErrorPagesTableName: '', sitesTableId: '', sitesTableName: '', sitesWebConfigTableId: '', sitesWebConfigTableName: '' }); ``` diff --git a/.agents/skills/hooks-modules/references/content-preset-module.md b/.agents/skills/hooks-modules/references/content-preset-module.md new file mode 100644 index 0000000000..7cfb083377 --- /dev/null +++ b/.agents/skills/hooks-modules/references/content-preset-module.md @@ -0,0 +1,34 @@ +# contentPresetModule + + + +React Query hooks for ContentPresetModule data operations + +## Usage + +```typescript +useContentPresetModulesQuery({ selection: { fields: { apiName: true, contentPresetsTableId: true, createdAt: true, databaseId: true, entityTableId: true, id: true, merkleStoreModuleId: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provisions: true, publicSchemaId: true, publicSchemaName: true, scope: true, storeName: true } } }) +useContentPresetModuleQuery({ id: '', selection: { fields: { apiName: true, contentPresetsTableId: true, createdAt: true, databaseId: true, entityTableId: true, id: true, merkleStoreModuleId: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provisions: true, publicSchemaId: true, publicSchemaName: true, scope: true, storeName: true } } }) +useCreateContentPresetModuleMutation({ selection: { fields: { id: true } } }) +useUpdateContentPresetModuleMutation({ selection: { fields: { id: true } } }) +useDeleteContentPresetModuleMutation({}) +``` + +## Examples + +### List all contentPresetModules + +```typescript +const { data, isLoading } = useContentPresetModulesQuery({ + selection: { fields: { apiName: true, contentPresetsTableId: true, createdAt: true, databaseId: true, entityTableId: true, id: true, merkleStoreModuleId: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provisions: true, publicSchemaId: true, publicSchemaName: true, scope: true, storeName: true } }, +}); +``` + +### Create a contentPresetModule + +```typescript +const { mutate } = useCreateContentPresetModuleMutation({ + selection: { fields: { id: true } }, +}); +mutate({ apiName: '', contentPresetsTableId: '', databaseId: '', entityTableId: '', merkleStoreModuleId: '', policies: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', provisions: '', publicSchemaId: '', publicSchemaName: '', scope: '', storeName: '' }); +``` diff --git a/.agents/skills/hooks-modules/references/data-capabilities-field.md b/.agents/skills/hooks-modules/references/data-capabilities-field.md new file mode 100644 index 0000000000..eab076c00e --- /dev/null +++ b/.agents/skills/hooks-modules/references/data-capabilities-field.md @@ -0,0 +1,34 @@ +# dataCapabilitiesField + + + +React Query hooks for DataCapabilitiesField data operations + +## Usage + +```typescript +useDataCapabilitiesFieldsQuery({ selection: { fields: { capabilitiesModuleId: true, databaseId: true, fieldId: true, fromFieldId: true, id: true, mappingFieldId: true, mappingKeyFieldId: true, mappingTableId: true, mode: true, subsetGuard: true, tableId: true } } }) +useDataCapabilitiesFieldQuery({ id: '', selection: { fields: { capabilitiesModuleId: true, databaseId: true, fieldId: true, fromFieldId: true, id: true, mappingFieldId: true, mappingKeyFieldId: true, mappingTableId: true, mode: true, subsetGuard: true, tableId: true } } }) +useCreateDataCapabilitiesFieldMutation({ selection: { fields: { id: true } } }) +useUpdateDataCapabilitiesFieldMutation({ selection: { fields: { id: true } } }) +useDeleteDataCapabilitiesFieldMutation({}) +``` + +## Examples + +### List all dataCapabilitiesFields + +```typescript +const { data, isLoading } = useDataCapabilitiesFieldsQuery({ + selection: { fields: { capabilitiesModuleId: true, databaseId: true, fieldId: true, fromFieldId: true, id: true, mappingFieldId: true, mappingKeyFieldId: true, mappingTableId: true, mode: true, subsetGuard: true, tableId: true } }, +}); +``` + +### Create a dataCapabilitiesField + +```typescript +const { mutate } = useCreateDataCapabilitiesFieldMutation({ + selection: { fields: { id: true } }, +}); +mutate({ capabilitiesModuleId: '', databaseId: '', fieldId: '', fromFieldId: '', mappingFieldId: '', mappingKeyFieldId: '', mappingTableId: '', mode: '', subsetGuard: '', tableId: '' }); +``` diff --git a/.agents/skills/hooks-modules/references/database-settings-module.md b/.agents/skills/hooks-modules/references/database-settings-module.md index 098e37454c..8a68eb5a18 100644 --- a/.agents/skills/hooks-modules/references/database-settings-module.md +++ b/.agents/skills/hooks-modules/references/database-settings-module.md @@ -7,8 +7,8 @@ React Query hooks for DatabaseSettingsModule data operations ## Usage ```typescript -useDatabaseSettingsModulesQuery({ selection: { fields: { apiName: true, databaseId: true, databaseSettingsTableId: true, databaseSettingsTableName: true, defaultPermissions: true, entityField: true, entityTableId: true, id: true, policies: true, prefix: true, privateApiName: true, provisions: true, pubkeySettingsTableId: true, pubkeySettingsTableName: true, publicSchemaName: true, rlsSettingsTableId: true, rlsSettingsTableName: true, schemaId: true, scope: true, webauthnSettingsTableId: true, webauthnSettingsTableName: true } } }) -useDatabaseSettingsModuleQuery({ id: '', selection: { fields: { apiName: true, databaseId: true, databaseSettingsTableId: true, databaseSettingsTableName: true, defaultPermissions: true, entityField: true, entityTableId: true, id: true, policies: true, prefix: true, privateApiName: true, provisions: true, pubkeySettingsTableId: true, pubkeySettingsTableName: true, publicSchemaName: true, rlsSettingsTableId: true, rlsSettingsTableName: true, schemaId: true, scope: true, webauthnSettingsTableId: true, webauthnSettingsTableName: true } } }) +useDatabaseSettingsModulesQuery({ selection: { fields: { apiName: true, databaseId: true, databaseSettingsTableId: true, databaseSettingsTableName: true, defaultCapabilities: true, entityField: true, entityTableId: true, id: true, policies: true, prefix: true, privateApiName: true, provisions: true, pubkeySettingsTableId: true, pubkeySettingsTableName: true, publicSchemaName: true, rlsSettingsTableId: true, rlsSettingsTableName: true, schemaId: true, scope: true, webauthnSettingsTableId: true, webauthnSettingsTableName: true } } }) +useDatabaseSettingsModuleQuery({ id: '', selection: { fields: { apiName: true, databaseId: true, databaseSettingsTableId: true, databaseSettingsTableName: true, defaultCapabilities: true, entityField: true, entityTableId: true, id: true, policies: true, prefix: true, privateApiName: true, provisions: true, pubkeySettingsTableId: true, pubkeySettingsTableName: true, publicSchemaName: true, rlsSettingsTableId: true, rlsSettingsTableName: true, schemaId: true, scope: true, webauthnSettingsTableId: true, webauthnSettingsTableName: true } } }) useCreateDatabaseSettingsModuleMutation({ selection: { fields: { id: true } } }) useUpdateDatabaseSettingsModuleMutation({ selection: { fields: { id: true } } }) useDeleteDatabaseSettingsModuleMutation({}) @@ -20,7 +20,7 @@ useDeleteDatabaseSettingsModuleMutation({}) ```typescript const { data, isLoading } = useDatabaseSettingsModulesQuery({ - selection: { fields: { apiName: true, databaseId: true, databaseSettingsTableId: true, databaseSettingsTableName: true, defaultPermissions: true, entityField: true, entityTableId: true, id: true, policies: true, prefix: true, privateApiName: true, provisions: true, pubkeySettingsTableId: true, pubkeySettingsTableName: true, publicSchemaName: true, rlsSettingsTableId: true, rlsSettingsTableName: true, schemaId: true, scope: true, webauthnSettingsTableId: true, webauthnSettingsTableName: true } }, + selection: { fields: { apiName: true, databaseId: true, databaseSettingsTableId: true, databaseSettingsTableName: true, defaultCapabilities: true, entityField: true, entityTableId: true, id: true, policies: true, prefix: true, privateApiName: true, provisions: true, pubkeySettingsTableId: true, pubkeySettingsTableName: true, publicSchemaName: true, rlsSettingsTableId: true, rlsSettingsTableName: true, schemaId: true, scope: true, webauthnSettingsTableId: true, webauthnSettingsTableName: true } }, }); ``` @@ -30,5 +30,5 @@ const { data, isLoading } = useDatabaseSettingsModulesQuery({ const { mutate } = useCreateDatabaseSettingsModuleMutation({ selection: { fields: { id: true } }, }); -mutate({ apiName: '', databaseId: '', databaseSettingsTableId: '', databaseSettingsTableName: '', defaultPermissions: '', entityField: '', entityTableId: '', policies: '', prefix: '', privateApiName: '', provisions: '', pubkeySettingsTableId: '', pubkeySettingsTableName: '', publicSchemaName: '', rlsSettingsTableId: '', rlsSettingsTableName: '', schemaId: '', scope: '', webauthnSettingsTableId: '', webauthnSettingsTableName: '' }); +mutate({ apiName: '', databaseId: '', databaseSettingsTableId: '', databaseSettingsTableName: '', defaultCapabilities: '', entityField: '', entityTableId: '', policies: '', prefix: '', privateApiName: '', provisions: '', pubkeySettingsTableId: '', pubkeySettingsTableName: '', publicSchemaName: '', rlsSettingsTableId: '', rlsSettingsTableName: '', schemaId: '', scope: '', webauthnSettingsTableId: '', webauthnSettingsTableName: '' }); ``` diff --git a/.agents/skills/hooks-modules/references/db-usage-module.md b/.agents/skills/hooks-modules/references/db-usage-module.md index 4d347624fa..f97d403ca7 100644 --- a/.agents/skills/hooks-modules/references/db-usage-module.md +++ b/.agents/skills/hooks-modules/references/db-usage-module.md @@ -7,8 +7,8 @@ React Query hooks for DbUsageModule data operations ## Usage ```typescript -useDbUsageModulesQuery({ selection: { fields: { apiName: true, collectDbQueryStatsFunction: true, collectDbTableStatsFunction: true, databaseId: true, defaultPermissions: true, entityField: true, id: true, interval: true, prefix: true, premake: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, publicSchemaName: true, queryStatsLogTableId: true, queryStatsLogTableName: true, queryStatsSummaryTableId: true, queryStatsSummaryTableName: true, retention: true, rollupDbQueryStatsUsageSummaryFunction: true, rollupDbTableStatsUsageSummaryFunction: true, schemaId: true, scope: true, tableStatsLogTableId: true, tableStatsLogTableName: true, tableStatsSummaryTableId: true, tableStatsSummaryTableName: true } } }) -useDbUsageModuleQuery({ id: '', selection: { fields: { apiName: true, collectDbQueryStatsFunction: true, collectDbTableStatsFunction: true, databaseId: true, defaultPermissions: true, entityField: true, id: true, interval: true, prefix: true, premake: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, publicSchemaName: true, queryStatsLogTableId: true, queryStatsLogTableName: true, queryStatsSummaryTableId: true, queryStatsSummaryTableName: true, retention: true, rollupDbQueryStatsUsageSummaryFunction: true, rollupDbTableStatsUsageSummaryFunction: true, schemaId: true, scope: true, tableStatsLogTableId: true, tableStatsLogTableName: true, tableStatsSummaryTableId: true, tableStatsSummaryTableName: true } } }) +useDbUsageModulesQuery({ selection: { fields: { apiName: true, collectDbQueryStatsFunction: true, collectDbTableStatsFunction: true, databaseId: true, defaultCapabilities: true, entityField: true, id: true, interval: true, prefix: true, premake: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, publicSchemaName: true, queryStatsLogTableId: true, queryStatsLogTableName: true, queryStatsSummaryTableId: true, queryStatsSummaryTableName: true, retention: true, rollupDbQueryStatsUsageSummaryFunction: true, rollupDbTableStatsUsageSummaryFunction: true, schemaId: true, scope: true, tableStatsLogTableId: true, tableStatsLogTableName: true, tableStatsSummaryTableId: true, tableStatsSummaryTableName: true } } }) +useDbUsageModuleQuery({ id: '', selection: { fields: { apiName: true, collectDbQueryStatsFunction: true, collectDbTableStatsFunction: true, databaseId: true, defaultCapabilities: true, entityField: true, id: true, interval: true, prefix: true, premake: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, publicSchemaName: true, queryStatsLogTableId: true, queryStatsLogTableName: true, queryStatsSummaryTableId: true, queryStatsSummaryTableName: true, retention: true, rollupDbQueryStatsUsageSummaryFunction: true, rollupDbTableStatsUsageSummaryFunction: true, schemaId: true, scope: true, tableStatsLogTableId: true, tableStatsLogTableName: true, tableStatsSummaryTableId: true, tableStatsSummaryTableName: true } } }) useCreateDbUsageModuleMutation({ selection: { fields: { id: true } } }) useUpdateDbUsageModuleMutation({ selection: { fields: { id: true } } }) useDeleteDbUsageModuleMutation({}) @@ -20,7 +20,7 @@ useDeleteDbUsageModuleMutation({}) ```typescript const { data, isLoading } = useDbUsageModulesQuery({ - selection: { fields: { apiName: true, collectDbQueryStatsFunction: true, collectDbTableStatsFunction: true, databaseId: true, defaultPermissions: true, entityField: true, id: true, interval: true, prefix: true, premake: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, publicSchemaName: true, queryStatsLogTableId: true, queryStatsLogTableName: true, queryStatsSummaryTableId: true, queryStatsSummaryTableName: true, retention: true, rollupDbQueryStatsUsageSummaryFunction: true, rollupDbTableStatsUsageSummaryFunction: true, schemaId: true, scope: true, tableStatsLogTableId: true, tableStatsLogTableName: true, tableStatsSummaryTableId: true, tableStatsSummaryTableName: true } }, + selection: { fields: { apiName: true, collectDbQueryStatsFunction: true, collectDbTableStatsFunction: true, databaseId: true, defaultCapabilities: true, entityField: true, id: true, interval: true, prefix: true, premake: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, publicSchemaName: true, queryStatsLogTableId: true, queryStatsLogTableName: true, queryStatsSummaryTableId: true, queryStatsSummaryTableName: true, retention: true, rollupDbQueryStatsUsageSummaryFunction: true, rollupDbTableStatsUsageSummaryFunction: true, schemaId: true, scope: true, tableStatsLogTableId: true, tableStatsLogTableName: true, tableStatsSummaryTableId: true, tableStatsSummaryTableName: true } }, }); ``` @@ -30,5 +30,5 @@ const { data, isLoading } = useDbUsageModulesQuery({ const { mutate } = useCreateDbUsageModuleMutation({ selection: { fields: { id: true } }, }); -mutate({ apiName: '', collectDbQueryStatsFunction: '', collectDbTableStatsFunction: '', databaseId: '', defaultPermissions: '', entityField: '', interval: '', prefix: '', premake: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', publicSchemaName: '', queryStatsLogTableId: '', queryStatsLogTableName: '', queryStatsSummaryTableId: '', queryStatsSummaryTableName: '', retention: '', rollupDbQueryStatsUsageSummaryFunction: '', rollupDbTableStatsUsageSummaryFunction: '', schemaId: '', scope: '', tableStatsLogTableId: '', tableStatsLogTableName: '', tableStatsSummaryTableId: '', tableStatsSummaryTableName: '' }); +mutate({ apiName: '', collectDbQueryStatsFunction: '', collectDbTableStatsFunction: '', databaseId: '', defaultCapabilities: '', entityField: '', interval: '', prefix: '', premake: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', publicSchemaName: '', queryStatsLogTableId: '', queryStatsLogTableName: '', queryStatsSummaryTableId: '', queryStatsSummaryTableName: '', retention: '', rollupDbQueryStatsUsageSummaryFunction: '', rollupDbTableStatsUsageSummaryFunction: '', schemaId: '', scope: '', tableStatsLogTableId: '', tableStatsLogTableName: '', tableStatsSummaryTableId: '', tableStatsSummaryTableName: '' }); ``` diff --git a/.agents/skills/hooks-modules/references/domain-module.md b/.agents/skills/hooks-modules/references/domain-module.md index f1bff2641a..0eb8fd223c 100644 --- a/.agents/skills/hooks-modules/references/domain-module.md +++ b/.agents/skills/hooks-modules/references/domain-module.md @@ -7,8 +7,8 @@ React Query hooks for DomainModule data operations ## Usage ```typescript -useDomainModulesQuery({ selection: { fields: { apiName: true, catalogModuleId: true, databaseId: true, defaultPermissions: true, domainEventsTableId: true, domainEventsTableName: true, domainVerificationsTableId: true, domainVerificationsTableName: true, domainsTableId: true, domainsTableName: true, entityField: true, entityTableId: true, id: true, managedDomainsTableId: true, managedDomainsTableName: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provisions: true, publicSchemaName: true, schemaId: true, scope: true } } }) -useDomainModuleQuery({ id: '', selection: { fields: { apiName: true, catalogModuleId: true, databaseId: true, defaultPermissions: true, domainEventsTableId: true, domainEventsTableName: true, domainVerificationsTableId: true, domainVerificationsTableName: true, domainsTableId: true, domainsTableName: true, entityField: true, entityTableId: true, id: true, managedDomainsTableId: true, managedDomainsTableName: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provisions: true, publicSchemaName: true, schemaId: true, scope: true } } }) +useDomainModulesQuery({ selection: { fields: { apiName: true, catalogModuleId: true, databaseId: true, defaultCapabilities: true, domainEventsTableId: true, domainEventsTableName: true, domainVerificationsTableId: true, domainVerificationsTableName: true, domainsTableId: true, domainsTableName: true, entityField: true, entityTableId: true, id: true, managedDomainsTableId: true, managedDomainsTableName: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provisions: true, publicSchemaName: true, schemaId: true, scope: true } } }) +useDomainModuleQuery({ id: '', selection: { fields: { apiName: true, catalogModuleId: true, databaseId: true, defaultCapabilities: true, domainEventsTableId: true, domainEventsTableName: true, domainVerificationsTableId: true, domainVerificationsTableName: true, domainsTableId: true, domainsTableName: true, entityField: true, entityTableId: true, id: true, managedDomainsTableId: true, managedDomainsTableName: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provisions: true, publicSchemaName: true, schemaId: true, scope: true } } }) useCreateDomainModuleMutation({ selection: { fields: { id: true } } }) useUpdateDomainModuleMutation({ selection: { fields: { id: true } } }) useDeleteDomainModuleMutation({}) @@ -20,7 +20,7 @@ useDeleteDomainModuleMutation({}) ```typescript const { data, isLoading } = useDomainModulesQuery({ - selection: { fields: { apiName: true, catalogModuleId: true, databaseId: true, defaultPermissions: true, domainEventsTableId: true, domainEventsTableName: true, domainVerificationsTableId: true, domainVerificationsTableName: true, domainsTableId: true, domainsTableName: true, entityField: true, entityTableId: true, id: true, managedDomainsTableId: true, managedDomainsTableName: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provisions: true, publicSchemaName: true, schemaId: true, scope: true } }, + selection: { fields: { apiName: true, catalogModuleId: true, databaseId: true, defaultCapabilities: true, domainEventsTableId: true, domainEventsTableName: true, domainVerificationsTableId: true, domainVerificationsTableName: true, domainsTableId: true, domainsTableName: true, entityField: true, entityTableId: true, id: true, managedDomainsTableId: true, managedDomainsTableName: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provisions: true, publicSchemaName: true, schemaId: true, scope: true } }, }); ``` @@ -30,5 +30,5 @@ const { data, isLoading } = useDomainModulesQuery({ const { mutate } = useCreateDomainModuleMutation({ selection: { fields: { id: true } }, }); -mutate({ apiName: '', catalogModuleId: '', databaseId: '', defaultPermissions: '', domainEventsTableId: '', domainEventsTableName: '', domainVerificationsTableId: '', domainVerificationsTableName: '', domainsTableId: '', domainsTableName: '', entityField: '', entityTableId: '', managedDomainsTableId: '', managedDomainsTableName: '', policies: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', provisions: '', publicSchemaName: '', schemaId: '', scope: '' }); +mutate({ apiName: '', catalogModuleId: '', databaseId: '', defaultCapabilities: '', domainEventsTableId: '', domainEventsTableName: '', domainVerificationsTableId: '', domainVerificationsTableName: '', domainsTableId: '', domainsTableName: '', entityField: '', entityTableId: '', managedDomainsTableId: '', managedDomainsTableName: '', policies: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', provisions: '', publicSchemaName: '', schemaId: '', scope: '' }); ``` diff --git a/.agents/skills/hooks-modules/references/email-sender-module.md b/.agents/skills/hooks-modules/references/email-sender-module.md new file mode 100644 index 0000000000..c8eb749242 --- /dev/null +++ b/.agents/skills/hooks-modules/references/email-sender-module.md @@ -0,0 +1,34 @@ +# emailSenderModule + + + +React Query hooks for EmailSenderModule data operations + +## Usage + +```typescript +useEmailSenderModulesQuery({ selection: { fields: { apiName: true, databaseId: true, defaultCapabilities: true, emailIdentitiesTableId: true, emailIdentitiesTableName: true, emailProviderAccountsTableId: true, emailProviderAccountsTableName: true, emailSiteIdentitiesTableId: true, emailSiteIdentitiesTableName: true, entityField: true, entityTableId: true, id: true, policies: true, prefix: true, privateApiName: true, provisions: true, publicSchemaName: true, schemaId: true, scope: true, siteSurfaceModuleId: true } } }) +useEmailSenderModuleQuery({ id: '', selection: { fields: { apiName: true, databaseId: true, defaultCapabilities: true, emailIdentitiesTableId: true, emailIdentitiesTableName: true, emailProviderAccountsTableId: true, emailProviderAccountsTableName: true, emailSiteIdentitiesTableId: true, emailSiteIdentitiesTableName: true, entityField: true, entityTableId: true, id: true, policies: true, prefix: true, privateApiName: true, provisions: true, publicSchemaName: true, schemaId: true, scope: true, siteSurfaceModuleId: true } } }) +useCreateEmailSenderModuleMutation({ selection: { fields: { id: true } } }) +useUpdateEmailSenderModuleMutation({ selection: { fields: { id: true } } }) +useDeleteEmailSenderModuleMutation({}) +``` + +## Examples + +### List all emailSenderModules + +```typescript +const { data, isLoading } = useEmailSenderModulesQuery({ + selection: { fields: { apiName: true, databaseId: true, defaultCapabilities: true, emailIdentitiesTableId: true, emailIdentitiesTableName: true, emailProviderAccountsTableId: true, emailProviderAccountsTableName: true, emailSiteIdentitiesTableId: true, emailSiteIdentitiesTableName: true, entityField: true, entityTableId: true, id: true, policies: true, prefix: true, privateApiName: true, provisions: true, publicSchemaName: true, schemaId: true, scope: true, siteSurfaceModuleId: true } }, +}); +``` + +### Create a emailSenderModule + +```typescript +const { mutate } = useCreateEmailSenderModuleMutation({ + selection: { fields: { id: true } }, +}); +mutate({ apiName: '', databaseId: '', defaultCapabilities: '', emailIdentitiesTableId: '', emailIdentitiesTableName: '', emailProviderAccountsTableId: '', emailProviderAccountsTableName: '', emailSiteIdentitiesTableId: '', emailSiteIdentitiesTableName: '', entityField: '', entityTableId: '', policies: '', prefix: '', privateApiName: '', provisions: '', publicSchemaName: '', schemaId: '', scope: '', siteSurfaceModuleId: '' }); +``` diff --git a/.agents/skills/hooks-modules/references/entity-type-provision.md b/.agents/skills/hooks-modules/references/entity-type-provision.md index ee10e22b7c..a115b6877f 100644 --- a/.agents/skills/hooks-modules/references/entity-type-provision.md +++ b/.agents/skills/hooks-modules/references/entity-type-provision.md @@ -3,7 +3,7 @@ Provisions a new membership entity type. Each INSERT creates an entity table, registers a membership type, - and installs the required modules (permissions, memberships, limits) plus optional modules (profiles, levels, invites). + and installs the required modules (capabilities, memberships, limits) plus optional modules (profiles, levels, invites). Uses provision_membership_table() internally. Graceful: duplicate (database_id, prefix) pairs are silently skipped via the unique constraint (use INSERT ... ON CONFLICT DO NOTHING). Policy behavior: by default the five entity-table RLS policies are applied (gated by is_visible). diff --git a/.agents/skills/hooks-modules/references/events-module.md b/.agents/skills/hooks-modules/references/events-module.md index 96fcca90b5..5fd9fdd5fa 100644 --- a/.agents/skills/hooks-modules/references/events-module.md +++ b/.agents/skills/hooks-modules/references/events-module.md @@ -7,8 +7,8 @@ React Query hooks for EventsModule data operations ## Usage ```typescript -useEventsModulesQuery({ selection: { fields: { achievementRewardsTableId: true, achievementRewardsTableName: true, actorTableId: true, apiName: true, databaseId: true, defaultPermissions: true, entityField: true, entityTableId: true, eventAggregatesTableId: true, eventAggregatesTableName: true, eventTypesTableId: true, eventTypesTableName: true, eventsTableId: true, eventsTableName: true, grantAchievement: true, id: true, interval: true, levelAchieved: true, levelGrantsTableId: true, levelGrantsTableName: true, levelRequirementsTableId: true, levelRequirementsTableName: true, levelsTableId: true, levelsTableName: true, prefix: true, premake: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, publicSchemaName: true, recordEvent: true, removeEvent: true, retention: true, schemaId: true, scope: true, stepsRequired: true, tgAchievementReward: true, tgCheckAchievements: true, tgEvent: true, tgEventBool: true, tgEventToggle: true, tgEventToggleBool: true, tgUpdateAggregates: true, upsertAggregate: true } } }) -useEventsModuleQuery({ id: '', selection: { fields: { achievementRewardsTableId: true, achievementRewardsTableName: true, actorTableId: true, apiName: true, databaseId: true, defaultPermissions: true, entityField: true, entityTableId: true, eventAggregatesTableId: true, eventAggregatesTableName: true, eventTypesTableId: true, eventTypesTableName: true, eventsTableId: true, eventsTableName: true, grantAchievement: true, id: true, interval: true, levelAchieved: true, levelGrantsTableId: true, levelGrantsTableName: true, levelRequirementsTableId: true, levelRequirementsTableName: true, levelsTableId: true, levelsTableName: true, prefix: true, premake: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, publicSchemaName: true, recordEvent: true, removeEvent: true, retention: true, schemaId: true, scope: true, stepsRequired: true, tgAchievementReward: true, tgCheckAchievements: true, tgEvent: true, tgEventBool: true, tgEventToggle: true, tgEventToggleBool: true, tgUpdateAggregates: true, upsertAggregate: true } } }) +useEventsModulesQuery({ selection: { fields: { achievementRewardsTableId: true, achievementRewardsTableName: true, actorTableId: true, apiName: true, databaseId: true, defaultCapabilities: true, entityField: true, entityTableId: true, eventAggregatesTableId: true, eventAggregatesTableName: true, eventTypesTableId: true, eventTypesTableName: true, eventsTableId: true, eventsTableName: true, expireGrants: true, grantAchievement: true, id: true, interval: true, levelAchieved: true, levelGrantsTableId: true, levelGrantsTableName: true, levelRequirementsTableId: true, levelRequirementsTableName: true, levelsTableId: true, levelsTableName: true, prefix: true, premake: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, publicSchemaName: true, recomputeCapabilities: true, recordEvent: true, removeEvent: true, retention: true, revokeAchievement: true, schemaId: true, scope: true, stepsRequired: true, tgAchievementReward: true, tgCheckAchievements: true, tgEvent: true, tgEventBool: true, tgEventToggle: true, tgEventToggleBool: true, tgLevelGrantSync: true, tgUpdateAggregates: true, trustLadder: true, upsertAggregate: true } } }) +useEventsModuleQuery({ id: '', selection: { fields: { achievementRewardsTableId: true, achievementRewardsTableName: true, actorTableId: true, apiName: true, databaseId: true, defaultCapabilities: true, entityField: true, entityTableId: true, eventAggregatesTableId: true, eventAggregatesTableName: true, eventTypesTableId: true, eventTypesTableName: true, eventsTableId: true, eventsTableName: true, expireGrants: true, grantAchievement: true, id: true, interval: true, levelAchieved: true, levelGrantsTableId: true, levelGrantsTableName: true, levelRequirementsTableId: true, levelRequirementsTableName: true, levelsTableId: true, levelsTableName: true, prefix: true, premake: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, publicSchemaName: true, recomputeCapabilities: true, recordEvent: true, removeEvent: true, retention: true, revokeAchievement: true, schemaId: true, scope: true, stepsRequired: true, tgAchievementReward: true, tgCheckAchievements: true, tgEvent: true, tgEventBool: true, tgEventToggle: true, tgEventToggleBool: true, tgLevelGrantSync: true, tgUpdateAggregates: true, trustLadder: true, upsertAggregate: true } } }) useCreateEventsModuleMutation({ selection: { fields: { id: true } } }) useUpdateEventsModuleMutation({ selection: { fields: { id: true } } }) useDeleteEventsModuleMutation({}) @@ -20,7 +20,7 @@ useDeleteEventsModuleMutation({}) ```typescript const { data, isLoading } = useEventsModulesQuery({ - selection: { fields: { achievementRewardsTableId: true, achievementRewardsTableName: true, actorTableId: true, apiName: true, databaseId: true, defaultPermissions: true, entityField: true, entityTableId: true, eventAggregatesTableId: true, eventAggregatesTableName: true, eventTypesTableId: true, eventTypesTableName: true, eventsTableId: true, eventsTableName: true, grantAchievement: true, id: true, interval: true, levelAchieved: true, levelGrantsTableId: true, levelGrantsTableName: true, levelRequirementsTableId: true, levelRequirementsTableName: true, levelsTableId: true, levelsTableName: true, prefix: true, premake: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, publicSchemaName: true, recordEvent: true, removeEvent: true, retention: true, schemaId: true, scope: true, stepsRequired: true, tgAchievementReward: true, tgCheckAchievements: true, tgEvent: true, tgEventBool: true, tgEventToggle: true, tgEventToggleBool: true, tgUpdateAggregates: true, upsertAggregate: true } }, + selection: { fields: { achievementRewardsTableId: true, achievementRewardsTableName: true, actorTableId: true, apiName: true, databaseId: true, defaultCapabilities: true, entityField: true, entityTableId: true, eventAggregatesTableId: true, eventAggregatesTableName: true, eventTypesTableId: true, eventTypesTableName: true, eventsTableId: true, eventsTableName: true, expireGrants: true, grantAchievement: true, id: true, interval: true, levelAchieved: true, levelGrantsTableId: true, levelGrantsTableName: true, levelRequirementsTableId: true, levelRequirementsTableName: true, levelsTableId: true, levelsTableName: true, prefix: true, premake: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, publicSchemaName: true, recomputeCapabilities: true, recordEvent: true, removeEvent: true, retention: true, revokeAchievement: true, schemaId: true, scope: true, stepsRequired: true, tgAchievementReward: true, tgCheckAchievements: true, tgEvent: true, tgEventBool: true, tgEventToggle: true, tgEventToggleBool: true, tgLevelGrantSync: true, tgUpdateAggregates: true, trustLadder: true, upsertAggregate: true } }, }); ``` @@ -30,5 +30,5 @@ const { data, isLoading } = useEventsModulesQuery({ const { mutate } = useCreateEventsModuleMutation({ selection: { fields: { id: true } }, }); -mutate({ achievementRewardsTableId: '', achievementRewardsTableName: '', actorTableId: '', apiName: '', databaseId: '', defaultPermissions: '', entityField: '', entityTableId: '', eventAggregatesTableId: '', eventAggregatesTableName: '', eventTypesTableId: '', eventTypesTableName: '', eventsTableId: '', eventsTableName: '', grantAchievement: '', interval: '', levelAchieved: '', levelGrantsTableId: '', levelGrantsTableName: '', levelRequirementsTableId: '', levelRequirementsTableName: '', levelsTableId: '', levelsTableName: '', prefix: '', premake: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', publicSchemaName: '', recordEvent: '', removeEvent: '', retention: '', schemaId: '', scope: '', stepsRequired: '', tgAchievementReward: '', tgCheckAchievements: '', tgEvent: '', tgEventBool: '', tgEventToggle: '', tgEventToggleBool: '', tgUpdateAggregates: '', upsertAggregate: '' }); +mutate({ achievementRewardsTableId: '', achievementRewardsTableName: '', actorTableId: '', apiName: '', databaseId: '', defaultCapabilities: '', entityField: '', entityTableId: '', eventAggregatesTableId: '', eventAggregatesTableName: '', eventTypesTableId: '', eventTypesTableName: '', eventsTableId: '', eventsTableName: '', expireGrants: '', grantAchievement: '', interval: '', levelAchieved: '', levelGrantsTableId: '', levelGrantsTableName: '', levelRequirementsTableId: '', levelRequirementsTableName: '', levelsTableId: '', levelsTableName: '', prefix: '', premake: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', publicSchemaName: '', recomputeCapabilities: '', recordEvent: '', removeEvent: '', retention: '', revokeAchievement: '', schemaId: '', scope: '', stepsRequired: '', tgAchievementReward: '', tgCheckAchievements: '', tgEvent: '', tgEventBool: '', tgEventToggle: '', tgEventToggleBool: '', tgLevelGrantSync: '', tgUpdateAggregates: '', trustLadder: '', upsertAggregate: '' }); ``` diff --git a/.agents/skills/hooks-modules/references/file-ref-field.md b/.agents/skills/hooks-modules/references/file-ref-field.md new file mode 100644 index 0000000000..60de795420 --- /dev/null +++ b/.agents/skills/hooks-modules/references/file-ref-field.md @@ -0,0 +1,34 @@ +# fileRefField + + + +React Query hooks for FileRefField data operations + +## Usage + +```typescript +useFileRefFieldsQuery({ selection: { fields: { bucketKey: true, bucketTags: true, databaseId: true, enforceFk: true, fieldId: true, id: true, isPublic: true, storageModuleId: true, tableId: true } } }) +useFileRefFieldQuery({ id: '', selection: { fields: { bucketKey: true, bucketTags: true, databaseId: true, enforceFk: true, fieldId: true, id: true, isPublic: true, storageModuleId: true, tableId: true } } }) +useCreateFileRefFieldMutation({ selection: { fields: { id: true } } }) +useUpdateFileRefFieldMutation({ selection: { fields: { id: true } } }) +useDeleteFileRefFieldMutation({}) +``` + +## Examples + +### List all fileRefFields + +```typescript +const { data, isLoading } = useFileRefFieldsQuery({ + selection: { fields: { bucketKey: true, bucketTags: true, databaseId: true, enforceFk: true, fieldId: true, id: true, isPublic: true, storageModuleId: true, tableId: true } }, +}); +``` + +### Create a fileRefField + +```typescript +const { mutate } = useCreateFileRefFieldMutation({ + selection: { fields: { id: true } }, +}); +mutate({ bucketKey: '', bucketTags: '', databaseId: '', enforceFk: '', fieldId: '', isPublic: '', storageModuleId: '', tableId: '' }); +``` diff --git a/.agents/skills/hooks-modules/references/function-deployment-module.md b/.agents/skills/hooks-modules/references/function-deployment-module.md index 7623d16040..4a25d53693 100644 --- a/.agents/skills/hooks-modules/references/function-deployment-module.md +++ b/.agents/skills/hooks-modules/references/function-deployment-module.md @@ -7,8 +7,8 @@ React Query hooks for FunctionDeploymentModule data operations ## Usage ```typescript -useFunctionDeploymentModulesQuery({ selection: { fields: { apiName: true, databaseId: true, defaultPermissions: true, deploymentEventsTableId: true, deploymentEventsTableName: true, deploymentsTableId: true, deploymentsTableName: true, entityField: true, entityTableId: true, functionModuleId: true, id: true, namespaceModuleId: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provisions: true, publicSchemaName: true, schemaId: true, scope: true } } }) -useFunctionDeploymentModuleQuery({ id: '', selection: { fields: { apiName: true, databaseId: true, defaultPermissions: true, deploymentEventsTableId: true, deploymentEventsTableName: true, deploymentsTableId: true, deploymentsTableName: true, entityField: true, entityTableId: true, functionModuleId: true, id: true, namespaceModuleId: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provisions: true, publicSchemaName: true, schemaId: true, scope: true } } }) +useFunctionDeploymentModulesQuery({ selection: { fields: { apiName: true, databaseId: true, defaultCapabilities: true, deploymentEventsTableId: true, deploymentEventsTableName: true, deploymentsTableId: true, deploymentsTableName: true, entityField: true, entityTableId: true, functionModuleId: true, id: true, namespaceModuleId: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provisions: true, publicSchemaName: true, schemaId: true, scope: true } } }) +useFunctionDeploymentModuleQuery({ id: '', selection: { fields: { apiName: true, databaseId: true, defaultCapabilities: true, deploymentEventsTableId: true, deploymentEventsTableName: true, deploymentsTableId: true, deploymentsTableName: true, entityField: true, entityTableId: true, functionModuleId: true, id: true, namespaceModuleId: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provisions: true, publicSchemaName: true, schemaId: true, scope: true } } }) useCreateFunctionDeploymentModuleMutation({ selection: { fields: { id: true } } }) useUpdateFunctionDeploymentModuleMutation({ selection: { fields: { id: true } } }) useDeleteFunctionDeploymentModuleMutation({}) @@ -20,7 +20,7 @@ useDeleteFunctionDeploymentModuleMutation({}) ```typescript const { data, isLoading } = useFunctionDeploymentModulesQuery({ - selection: { fields: { apiName: true, databaseId: true, defaultPermissions: true, deploymentEventsTableId: true, deploymentEventsTableName: true, deploymentsTableId: true, deploymentsTableName: true, entityField: true, entityTableId: true, functionModuleId: true, id: true, namespaceModuleId: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provisions: true, publicSchemaName: true, schemaId: true, scope: true } }, + selection: { fields: { apiName: true, databaseId: true, defaultCapabilities: true, deploymentEventsTableId: true, deploymentEventsTableName: true, deploymentsTableId: true, deploymentsTableName: true, entityField: true, entityTableId: true, functionModuleId: true, id: true, namespaceModuleId: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provisions: true, publicSchemaName: true, schemaId: true, scope: true } }, }); ``` @@ -30,5 +30,5 @@ const { data, isLoading } = useFunctionDeploymentModulesQuery({ const { mutate } = useCreateFunctionDeploymentModuleMutation({ selection: { fields: { id: true } }, }); -mutate({ apiName: '', databaseId: '', defaultPermissions: '', deploymentEventsTableId: '', deploymentEventsTableName: '', deploymentsTableId: '', deploymentsTableName: '', entityField: '', entityTableId: '', functionModuleId: '', namespaceModuleId: '', policies: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', provisions: '', publicSchemaName: '', schemaId: '', scope: '' }); +mutate({ apiName: '', databaseId: '', defaultCapabilities: '', deploymentEventsTableId: '', deploymentEventsTableName: '', deploymentsTableId: '', deploymentsTableName: '', entityField: '', entityTableId: '', functionModuleId: '', namespaceModuleId: '', policies: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', provisions: '', publicSchemaName: '', schemaId: '', scope: '' }); ``` diff --git a/.agents/skills/hooks-modules/references/function-invocation-module.md b/.agents/skills/hooks-modules/references/function-invocation-module.md index 62781b0db6..87b7bb2b78 100644 --- a/.agents/skills/hooks-modules/references/function-invocation-module.md +++ b/.agents/skills/hooks-modules/references/function-invocation-module.md @@ -7,8 +7,8 @@ React Query hooks for FunctionInvocationModule data operations ## Usage ```typescript -useFunctionInvocationModulesQuery({ selection: { fields: { apiName: true, attemptsTableId: true, attemptsTableName: true, databaseId: true, defaultPermissions: true, entityField: true, entityTableId: true, executionLogsTableId: true, executionLogsTableName: true, id: true, invocationsTableId: true, invocationsTableName: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provisions: true, publicSchemaName: true, schemaId: true, scope: true } } }) -useFunctionInvocationModuleQuery({ id: '', selection: { fields: { apiName: true, attemptsTableId: true, attemptsTableName: true, databaseId: true, defaultPermissions: true, entityField: true, entityTableId: true, executionLogsTableId: true, executionLogsTableName: true, id: true, invocationsTableId: true, invocationsTableName: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provisions: true, publicSchemaName: true, schemaId: true, scope: true } } }) +useFunctionInvocationModulesQuery({ selection: { fields: { apiName: true, attemptsTableId: true, attemptsTableName: true, databaseId: true, defaultCapabilities: true, entityField: true, entityTableId: true, executionLogsTableId: true, executionLogsTableName: true, id: true, invocationsTableId: true, invocationsTableName: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provisions: true, publicSchemaName: true, schemaId: true, scope: true } } }) +useFunctionInvocationModuleQuery({ id: '', selection: { fields: { apiName: true, attemptsTableId: true, attemptsTableName: true, databaseId: true, defaultCapabilities: true, entityField: true, entityTableId: true, executionLogsTableId: true, executionLogsTableName: true, id: true, invocationsTableId: true, invocationsTableName: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provisions: true, publicSchemaName: true, schemaId: true, scope: true } } }) useCreateFunctionInvocationModuleMutation({ selection: { fields: { id: true } } }) useUpdateFunctionInvocationModuleMutation({ selection: { fields: { id: true } } }) useDeleteFunctionInvocationModuleMutation({}) @@ -20,7 +20,7 @@ useDeleteFunctionInvocationModuleMutation({}) ```typescript const { data, isLoading } = useFunctionInvocationModulesQuery({ - selection: { fields: { apiName: true, attemptsTableId: true, attemptsTableName: true, databaseId: true, defaultPermissions: true, entityField: true, entityTableId: true, executionLogsTableId: true, executionLogsTableName: true, id: true, invocationsTableId: true, invocationsTableName: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provisions: true, publicSchemaName: true, schemaId: true, scope: true } }, + selection: { fields: { apiName: true, attemptsTableId: true, attemptsTableName: true, databaseId: true, defaultCapabilities: true, entityField: true, entityTableId: true, executionLogsTableId: true, executionLogsTableName: true, id: true, invocationsTableId: true, invocationsTableName: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provisions: true, publicSchemaName: true, schemaId: true, scope: true } }, }); ``` @@ -30,5 +30,5 @@ const { data, isLoading } = useFunctionInvocationModulesQuery({ const { mutate } = useCreateFunctionInvocationModuleMutation({ selection: { fields: { id: true } }, }); -mutate({ apiName: '', attemptsTableId: '', attemptsTableName: '', databaseId: '', defaultPermissions: '', entityField: '', entityTableId: '', executionLogsTableId: '', executionLogsTableName: '', invocationsTableId: '', invocationsTableName: '', policies: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', provisions: '', publicSchemaName: '', schemaId: '', scope: '' }); +mutate({ apiName: '', attemptsTableId: '', attemptsTableName: '', databaseId: '', defaultCapabilities: '', entityField: '', entityTableId: '', executionLogsTableId: '', executionLogsTableName: '', invocationsTableId: '', invocationsTableName: '', policies: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', provisions: '', publicSchemaName: '', schemaId: '', scope: '' }); ``` diff --git a/.agents/skills/hooks-modules/references/function-module.md b/.agents/skills/hooks-modules/references/function-module.md index e8b3855adf..003d49381f 100644 --- a/.agents/skills/hooks-modules/references/function-module.md +++ b/.agents/skills/hooks-modules/references/function-module.md @@ -7,8 +7,8 @@ React Query hooks for FunctionModule data operations ## Usage ```typescript -useFunctionModulesQuery({ selection: { fields: { apiName: true, bindingsTableId: true, bindingsTableName: true, capabilityBindingsTableId: true, databaseId: true, defaultPermissions: true, definitionsTableId: true, definitionsTableName: true, entityField: true, entityTableId: true, hasCron: true, id: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provisions: true, publicSchemaName: true, schedulesTableId: true, schemaId: true, scope: true } } }) -useFunctionModuleQuery({ id: '', selection: { fields: { apiName: true, bindingsTableId: true, bindingsTableName: true, capabilityBindingsTableId: true, databaseId: true, defaultPermissions: true, definitionsTableId: true, definitionsTableName: true, entityField: true, entityTableId: true, hasCron: true, id: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provisions: true, publicSchemaName: true, schedulesTableId: true, schemaId: true, scope: true } } }) +useFunctionModulesQuery({ selection: { fields: { apiName: true, bindingsTableId: true, bindingsTableName: true, capabilityBindingsTableId: true, databaseId: true, defaultCapabilities: true, definitionsTableId: true, definitionsTableName: true, entityField: true, entityTableId: true, hasCron: true, id: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provisions: true, publicSchemaName: true, schedulesTableId: true, schemaId: true, scope: true } } }) +useFunctionModuleQuery({ id: '', selection: { fields: { apiName: true, bindingsTableId: true, bindingsTableName: true, capabilityBindingsTableId: true, databaseId: true, defaultCapabilities: true, definitionsTableId: true, definitionsTableName: true, entityField: true, entityTableId: true, hasCron: true, id: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provisions: true, publicSchemaName: true, schedulesTableId: true, schemaId: true, scope: true } } }) useCreateFunctionModuleMutation({ selection: { fields: { id: true } } }) useUpdateFunctionModuleMutation({ selection: { fields: { id: true } } }) useDeleteFunctionModuleMutation({}) @@ -20,7 +20,7 @@ useDeleteFunctionModuleMutation({}) ```typescript const { data, isLoading } = useFunctionModulesQuery({ - selection: { fields: { apiName: true, bindingsTableId: true, bindingsTableName: true, capabilityBindingsTableId: true, databaseId: true, defaultPermissions: true, definitionsTableId: true, definitionsTableName: true, entityField: true, entityTableId: true, hasCron: true, id: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provisions: true, publicSchemaName: true, schedulesTableId: true, schemaId: true, scope: true } }, + selection: { fields: { apiName: true, bindingsTableId: true, bindingsTableName: true, capabilityBindingsTableId: true, databaseId: true, defaultCapabilities: true, definitionsTableId: true, definitionsTableName: true, entityField: true, entityTableId: true, hasCron: true, id: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provisions: true, publicSchemaName: true, schedulesTableId: true, schemaId: true, scope: true } }, }); ``` @@ -30,5 +30,5 @@ const { data, isLoading } = useFunctionModulesQuery({ const { mutate } = useCreateFunctionModuleMutation({ selection: { fields: { id: true } }, }); -mutate({ apiName: '', bindingsTableId: '', bindingsTableName: '', capabilityBindingsTableId: '', databaseId: '', defaultPermissions: '', definitionsTableId: '', definitionsTableName: '', entityField: '', entityTableId: '', hasCron: '', policies: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', provisions: '', publicSchemaName: '', schedulesTableId: '', schemaId: '', scope: '' }); +mutate({ apiName: '', bindingsTableId: '', bindingsTableName: '', capabilityBindingsTableId: '', databaseId: '', defaultCapabilities: '', definitionsTableId: '', definitionsTableName: '', entityField: '', entityTableId: '', hasCron: '', policies: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', provisions: '', publicSchemaName: '', schedulesTableId: '', schemaId: '', scope: '' }); ``` diff --git a/.agents/skills/hooks-modules/references/graph-execution-module.md b/.agents/skills/hooks-modules/references/graph-execution-module.md index 196339cdde..8929f9f09d 100644 --- a/.agents/skills/hooks-modules/references/graph-execution-module.md +++ b/.agents/skills/hooks-modules/references/graph-execution-module.md @@ -7,8 +7,8 @@ React Query hooks for GraphExecutionModule data operations ## Usage ```typescript -useGraphExecutionModulesQuery({ selection: { fields: { apiName: true, createdAt: true, databaseId: true, defaultPermissions: true, entityField: true, entityTableId: true, executionsTableId: true, executionsTableName: true, graphModuleId: true, id: true, nodeStatesTableId: true, nodeStatesTableName: true, outputsTableId: true, outputsTableName: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provisions: true, publicSchemaName: true, schemaId: true, scope: true } } }) -useGraphExecutionModuleQuery({ id: '', selection: { fields: { apiName: true, createdAt: true, databaseId: true, defaultPermissions: true, entityField: true, entityTableId: true, executionsTableId: true, executionsTableName: true, graphModuleId: true, id: true, nodeStatesTableId: true, nodeStatesTableName: true, outputsTableId: true, outputsTableName: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provisions: true, publicSchemaName: true, schemaId: true, scope: true } } }) +useGraphExecutionModulesQuery({ selection: { fields: { apiName: true, createdAt: true, databaseId: true, defaultCapabilities: true, entityField: true, entityTableId: true, executionsTableId: true, executionsTableName: true, graphModuleId: true, id: true, nodeStatesTableId: true, nodeStatesTableName: true, outputsTableId: true, outputsTableName: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provisions: true, publicSchemaName: true, schemaId: true, scope: true } } }) +useGraphExecutionModuleQuery({ id: '', selection: { fields: { apiName: true, createdAt: true, databaseId: true, defaultCapabilities: true, entityField: true, entityTableId: true, executionsTableId: true, executionsTableName: true, graphModuleId: true, id: true, nodeStatesTableId: true, nodeStatesTableName: true, outputsTableId: true, outputsTableName: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provisions: true, publicSchemaName: true, schemaId: true, scope: true } } }) useCreateGraphExecutionModuleMutation({ selection: { fields: { id: true } } }) useUpdateGraphExecutionModuleMutation({ selection: { fields: { id: true } } }) useDeleteGraphExecutionModuleMutation({}) @@ -20,7 +20,7 @@ useDeleteGraphExecutionModuleMutation({}) ```typescript const { data, isLoading } = useGraphExecutionModulesQuery({ - selection: { fields: { apiName: true, createdAt: true, databaseId: true, defaultPermissions: true, entityField: true, entityTableId: true, executionsTableId: true, executionsTableName: true, graphModuleId: true, id: true, nodeStatesTableId: true, nodeStatesTableName: true, outputsTableId: true, outputsTableName: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provisions: true, publicSchemaName: true, schemaId: true, scope: true } }, + selection: { fields: { apiName: true, createdAt: true, databaseId: true, defaultCapabilities: true, entityField: true, entityTableId: true, executionsTableId: true, executionsTableName: true, graphModuleId: true, id: true, nodeStatesTableId: true, nodeStatesTableName: true, outputsTableId: true, outputsTableName: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provisions: true, publicSchemaName: true, schemaId: true, scope: true } }, }); ``` @@ -30,5 +30,5 @@ const { data, isLoading } = useGraphExecutionModulesQuery({ const { mutate } = useCreateGraphExecutionModuleMutation({ selection: { fields: { id: true } }, }); -mutate({ apiName: '', databaseId: '', defaultPermissions: '', entityField: '', entityTableId: '', executionsTableId: '', executionsTableName: '', graphModuleId: '', nodeStatesTableId: '', nodeStatesTableName: '', outputsTableId: '', outputsTableName: '', policies: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', provisions: '', publicSchemaName: '', schemaId: '', scope: '' }); +mutate({ apiName: '', databaseId: '', defaultCapabilities: '', entityField: '', entityTableId: '', executionsTableId: '', executionsTableName: '', graphModuleId: '', nodeStatesTableId: '', nodeStatesTableName: '', outputsTableId: '', outputsTableName: '', policies: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', provisions: '', publicSchemaName: '', schemaId: '', scope: '' }); ``` diff --git a/.agents/skills/hooks-modules/references/graph-module.md b/.agents/skills/hooks-modules/references/graph-module.md index b079490d1f..57202f00ab 100644 --- a/.agents/skills/hooks-modules/references/graph-module.md +++ b/.agents/skills/hooks-modules/references/graph-module.md @@ -7,8 +7,8 @@ React Query hooks for GraphModule data operations ## Usage ```typescript -useGraphModulesQuery({ selection: { fields: { apiName: true, createdAt: true, databaseId: true, defaultPermissions: true, entityField: true, entityTableId: true, graphsTableId: true, id: true, merkleStoreModuleId: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provisions: true, publicSchemaId: true, publicSchemaName: true, scope: true } } }) -useGraphModuleQuery({ id: '', selection: { fields: { apiName: true, createdAt: true, databaseId: true, defaultPermissions: true, entityField: true, entityTableId: true, graphsTableId: true, id: true, merkleStoreModuleId: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provisions: true, publicSchemaId: true, publicSchemaName: true, scope: true } } }) +useGraphModulesQuery({ selection: { fields: { apiName: true, createdAt: true, databaseId: true, defaultCapabilities: true, entityField: true, entityTableId: true, graphsTableId: true, id: true, merkleStoreModuleId: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provisions: true, publicSchemaId: true, publicSchemaName: true, scope: true } } }) +useGraphModuleQuery({ id: '', selection: { fields: { apiName: true, createdAt: true, databaseId: true, defaultCapabilities: true, entityField: true, entityTableId: true, graphsTableId: true, id: true, merkleStoreModuleId: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provisions: true, publicSchemaId: true, publicSchemaName: true, scope: true } } }) useCreateGraphModuleMutation({ selection: { fields: { id: true } } }) useUpdateGraphModuleMutation({ selection: { fields: { id: true } } }) useDeleteGraphModuleMutation({}) @@ -20,7 +20,7 @@ useDeleteGraphModuleMutation({}) ```typescript const { data, isLoading } = useGraphModulesQuery({ - selection: { fields: { apiName: true, createdAt: true, databaseId: true, defaultPermissions: true, entityField: true, entityTableId: true, graphsTableId: true, id: true, merkleStoreModuleId: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provisions: true, publicSchemaId: true, publicSchemaName: true, scope: true } }, + selection: { fields: { apiName: true, createdAt: true, databaseId: true, defaultCapabilities: true, entityField: true, entityTableId: true, graphsTableId: true, id: true, merkleStoreModuleId: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provisions: true, publicSchemaId: true, publicSchemaName: true, scope: true } }, }); ``` @@ -30,5 +30,5 @@ const { data, isLoading } = useGraphModulesQuery({ const { mutate } = useCreateGraphModuleMutation({ selection: { fields: { id: true } }, }); -mutate({ apiName: '', databaseId: '', defaultPermissions: '', entityField: '', entityTableId: '', graphsTableId: '', merkleStoreModuleId: '', policies: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', provisions: '', publicSchemaId: '', publicSchemaName: '', scope: '' }); +mutate({ apiName: '', databaseId: '', defaultCapabilities: '', entityField: '', entityTableId: '', graphsTableId: '', merkleStoreModuleId: '', policies: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', provisions: '', publicSchemaId: '', publicSchemaName: '', scope: '' }); ``` diff --git a/.agents/skills/hooks-modules/references/hierarchy-module.md b/.agents/skills/hooks-modules/references/hierarchy-module.md index 78a30ed076..3f77c5e516 100644 --- a/.agents/skills/hooks-modules/references/hierarchy-module.md +++ b/.agents/skills/hooks-modules/references/hierarchy-module.md @@ -7,8 +7,8 @@ React Query hooks for HierarchyModule data operations ## Usage ```typescript -useHierarchyModulesQuery({ selection: { fields: { chartEdgeGrantsTableId: true, chartEdgeGrantsTableName: true, chartEdgesTableId: true, chartEdgesTableName: true, createdAt: true, databaseId: true, defaultPermissions: true, entityField: true, entityTableId: true, getManagersFunction: true, getSubordinatesFunction: true, hierarchySprtTableId: true, hierarchySprtTableName: true, id: true, isManagerOfFunction: true, prefix: true, privateSchemaId: true, privateSchemaName: true, rebuildHierarchyFunction: true, schemaId: true, scope: true, sprtTableName: true, usersTableId: true } } }) -useHierarchyModuleQuery({ id: '', selection: { fields: { chartEdgeGrantsTableId: true, chartEdgeGrantsTableName: true, chartEdgesTableId: true, chartEdgesTableName: true, createdAt: true, databaseId: true, defaultPermissions: true, entityField: true, entityTableId: true, getManagersFunction: true, getSubordinatesFunction: true, hierarchySprtTableId: true, hierarchySprtTableName: true, id: true, isManagerOfFunction: true, prefix: true, privateSchemaId: true, privateSchemaName: true, rebuildHierarchyFunction: true, schemaId: true, scope: true, sprtTableName: true, usersTableId: true } } }) +useHierarchyModulesQuery({ selection: { fields: { chartEdgeGrantsTableId: true, chartEdgeGrantsTableName: true, chartEdgesTableId: true, chartEdgesTableName: true, createdAt: true, databaseId: true, defaultCapabilities: true, entityField: true, entityTableId: true, getManagersFunction: true, getSubordinatesFunction: true, hierarchySprtTableId: true, hierarchySprtTableName: true, id: true, isManagerOfFunction: true, prefix: true, privateSchemaId: true, privateSchemaName: true, rebuildHierarchyFunction: true, schemaId: true, scope: true, sprtTableName: true, usersTableId: true } } }) +useHierarchyModuleQuery({ id: '', selection: { fields: { chartEdgeGrantsTableId: true, chartEdgeGrantsTableName: true, chartEdgesTableId: true, chartEdgesTableName: true, createdAt: true, databaseId: true, defaultCapabilities: true, entityField: true, entityTableId: true, getManagersFunction: true, getSubordinatesFunction: true, hierarchySprtTableId: true, hierarchySprtTableName: true, id: true, isManagerOfFunction: true, prefix: true, privateSchemaId: true, privateSchemaName: true, rebuildHierarchyFunction: true, schemaId: true, scope: true, sprtTableName: true, usersTableId: true } } }) useCreateHierarchyModuleMutation({ selection: { fields: { id: true } } }) useUpdateHierarchyModuleMutation({ selection: { fields: { id: true } } }) useDeleteHierarchyModuleMutation({}) @@ -20,7 +20,7 @@ useDeleteHierarchyModuleMutation({}) ```typescript const { data, isLoading } = useHierarchyModulesQuery({ - selection: { fields: { chartEdgeGrantsTableId: true, chartEdgeGrantsTableName: true, chartEdgesTableId: true, chartEdgesTableName: true, createdAt: true, databaseId: true, defaultPermissions: true, entityField: true, entityTableId: true, getManagersFunction: true, getSubordinatesFunction: true, hierarchySprtTableId: true, hierarchySprtTableName: true, id: true, isManagerOfFunction: true, prefix: true, privateSchemaId: true, privateSchemaName: true, rebuildHierarchyFunction: true, schemaId: true, scope: true, sprtTableName: true, usersTableId: true } }, + selection: { fields: { chartEdgeGrantsTableId: true, chartEdgeGrantsTableName: true, chartEdgesTableId: true, chartEdgesTableName: true, createdAt: true, databaseId: true, defaultCapabilities: true, entityField: true, entityTableId: true, getManagersFunction: true, getSubordinatesFunction: true, hierarchySprtTableId: true, hierarchySprtTableName: true, id: true, isManagerOfFunction: true, prefix: true, privateSchemaId: true, privateSchemaName: true, rebuildHierarchyFunction: true, schemaId: true, scope: true, sprtTableName: true, usersTableId: true } }, }); ``` @@ -30,5 +30,5 @@ const { data, isLoading } = useHierarchyModulesQuery({ const { mutate } = useCreateHierarchyModuleMutation({ selection: { fields: { id: true } }, }); -mutate({ chartEdgeGrantsTableId: '', chartEdgeGrantsTableName: '', chartEdgesTableId: '', chartEdgesTableName: '', databaseId: '', defaultPermissions: '', entityField: '', entityTableId: '', getManagersFunction: '', getSubordinatesFunction: '', hierarchySprtTableId: '', hierarchySprtTableName: '', isManagerOfFunction: '', prefix: '', privateSchemaId: '', privateSchemaName: '', rebuildHierarchyFunction: '', schemaId: '', scope: '', sprtTableName: '', usersTableId: '' }); +mutate({ chartEdgeGrantsTableId: '', chartEdgeGrantsTableName: '', chartEdgesTableId: '', chartEdgesTableName: '', databaseId: '', defaultCapabilities: '', entityField: '', entityTableId: '', getManagersFunction: '', getSubordinatesFunction: '', hierarchySprtTableId: '', hierarchySprtTableName: '', isManagerOfFunction: '', prefix: '', privateSchemaId: '', privateSchemaName: '', rebuildHierarchyFunction: '', schemaId: '', scope: '', sprtTableName: '', usersTableId: '' }); ``` diff --git a/.agents/skills/hooks-modules/references/http-route-module.md b/.agents/skills/hooks-modules/references/http-route-module.md index 1c432db087..646c765dc5 100644 --- a/.agents/skills/hooks-modules/references/http-route-module.md +++ b/.agents/skills/hooks-modules/references/http-route-module.md @@ -7,8 +7,8 @@ React Query hooks for HttpRouteModule data operations ## Usage ```typescript -useHttpRouteModulesQuery({ selection: { fields: { apiName: true, databaseId: true, defaultPermissions: true, entityField: true, entityTableId: true, functionModuleId: true, httpRoutesTableId: true, httpRoutesTableName: true, id: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provisions: true, publicSchemaName: true, resolverFunctionName: true, resourceModuleId: true, schemaId: true, scope: true, storageModuleId: true } } }) -useHttpRouteModuleQuery({ id: '', selection: { fields: { apiName: true, databaseId: true, defaultPermissions: true, entityField: true, entityTableId: true, functionModuleId: true, httpRoutesTableId: true, httpRoutesTableName: true, id: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provisions: true, publicSchemaName: true, resolverFunctionName: true, resourceModuleId: true, schemaId: true, scope: true, storageModuleId: true } } }) +useHttpRouteModulesQuery({ selection: { fields: { apiName: true, databaseId: true, defaultCapabilities: true, entityField: true, entityTableId: true, functionModuleId: true, httpRoutesTableId: true, httpRoutesTableName: true, id: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provisions: true, publicSchemaName: true, resolverFunctionName: true, resourceModuleId: true, schemaId: true, scope: true, storageModuleId: true } } }) +useHttpRouteModuleQuery({ id: '', selection: { fields: { apiName: true, databaseId: true, defaultCapabilities: true, entityField: true, entityTableId: true, functionModuleId: true, httpRoutesTableId: true, httpRoutesTableName: true, id: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provisions: true, publicSchemaName: true, resolverFunctionName: true, resourceModuleId: true, schemaId: true, scope: true, storageModuleId: true } } }) useCreateHttpRouteModuleMutation({ selection: { fields: { id: true } } }) useUpdateHttpRouteModuleMutation({ selection: { fields: { id: true } } }) useDeleteHttpRouteModuleMutation({}) @@ -20,7 +20,7 @@ useDeleteHttpRouteModuleMutation({}) ```typescript const { data, isLoading } = useHttpRouteModulesQuery({ - selection: { fields: { apiName: true, databaseId: true, defaultPermissions: true, entityField: true, entityTableId: true, functionModuleId: true, httpRoutesTableId: true, httpRoutesTableName: true, id: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provisions: true, publicSchemaName: true, resolverFunctionName: true, resourceModuleId: true, schemaId: true, scope: true, storageModuleId: true } }, + selection: { fields: { apiName: true, databaseId: true, defaultCapabilities: true, entityField: true, entityTableId: true, functionModuleId: true, httpRoutesTableId: true, httpRoutesTableName: true, id: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provisions: true, publicSchemaName: true, resolverFunctionName: true, resourceModuleId: true, schemaId: true, scope: true, storageModuleId: true } }, }); ``` @@ -30,5 +30,5 @@ const { data, isLoading } = useHttpRouteModulesQuery({ const { mutate } = useCreateHttpRouteModuleMutation({ selection: { fields: { id: true } }, }); -mutate({ apiName: '', databaseId: '', defaultPermissions: '', entityField: '', entityTableId: '', functionModuleId: '', httpRoutesTableId: '', httpRoutesTableName: '', policies: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', provisions: '', publicSchemaName: '', resolverFunctionName: '', resourceModuleId: '', schemaId: '', scope: '', storageModuleId: '' }); +mutate({ apiName: '', databaseId: '', defaultCapabilities: '', entityField: '', entityTableId: '', functionModuleId: '', httpRoutesTableId: '', httpRoutesTableName: '', policies: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', provisions: '', publicSchemaName: '', resolverFunctionName: '', resourceModuleId: '', schemaId: '', scope: '', storageModuleId: '' }); ``` diff --git a/.agents/skills/hooks-modules/references/limits-module.md b/.agents/skills/hooks-modules/references/limits-module.md index be1c2f64ec..f3c261892d 100644 --- a/.agents/skills/hooks-modules/references/limits-module.md +++ b/.agents/skills/hooks-modules/references/limits-module.md @@ -7,8 +7,8 @@ React Query hooks for LimitsModule data operations ## Usage ```typescript -useLimitsModulesQuery({ selection: { fields: { actorTableId: true, aggregateTableId: true, apiName: true, capCheckTrigger: true, creditCodeItemsTableId: true, creditCodesTableId: true, creditRedemptionsTableId: true, databaseId: true, defaultTableId: true, defaultTableName: true, entityField: true, entityTableId: true, eventsTableId: true, id: true, limitAggregateCheckSoftFunction: true, limitCapsDefaultsTableId: true, limitCapsTableId: true, limitCheckFunction: true, limitCheckSoftFunction: true, limitCreditsTableId: true, limitDecrementFunction: true, limitDecrementTrigger: true, limitIncrementFunction: true, limitIncrementTrigger: true, limitUpdateTrigger: true, limitWarningStateTableId: true, limitWarningsTableId: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, publicSchemaName: true, resolveCapFunction: true, schemaId: true, scope: true, tableId: true, tableName: true } } }) -useLimitsModuleQuery({ id: '', selection: { fields: { actorTableId: true, aggregateTableId: true, apiName: true, capCheckTrigger: true, creditCodeItemsTableId: true, creditCodesTableId: true, creditRedemptionsTableId: true, databaseId: true, defaultTableId: true, defaultTableName: true, entityField: true, entityTableId: true, eventsTableId: true, id: true, limitAggregateCheckSoftFunction: true, limitCapsDefaultsTableId: true, limitCapsTableId: true, limitCheckFunction: true, limitCheckSoftFunction: true, limitCreditsTableId: true, limitDecrementFunction: true, limitDecrementTrigger: true, limitIncrementFunction: true, limitIncrementTrigger: true, limitUpdateTrigger: true, limitWarningStateTableId: true, limitWarningsTableId: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, publicSchemaName: true, resolveCapFunction: true, schemaId: true, scope: true, tableId: true, tableName: true } } }) +useLimitsModulesQuery({ selection: { fields: { actorTableId: true, aggregateTableId: true, apiName: true, capCheckTrigger: true, creditCodeItemsTableId: true, creditCodesTableId: true, creditRedemptionsTableId: true, databaseId: true, defaultTableId: true, defaultTableName: true, entityField: true, entityTableId: true, eventsTableId: true, id: true, limitAggregateCheckSoftFunction: true, limitCapsDefaultsTableId: true, limitCapsTableId: true, limitCheckFunction: true, limitCheckSoftFunction: true, limitCreditsTableId: true, limitDecrementFunction: true, limitDecrementTrigger: true, limitDefaults: true, limitIncrementFunction: true, limitIncrementTrigger: true, limitUpdateTrigger: true, limitWarningStateTableId: true, limitWarningsTableId: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, publicSchemaName: true, resolveCapFunction: true, schemaId: true, scope: true, tableId: true, tableName: true } } }) +useLimitsModuleQuery({ id: '', selection: { fields: { actorTableId: true, aggregateTableId: true, apiName: true, capCheckTrigger: true, creditCodeItemsTableId: true, creditCodesTableId: true, creditRedemptionsTableId: true, databaseId: true, defaultTableId: true, defaultTableName: true, entityField: true, entityTableId: true, eventsTableId: true, id: true, limitAggregateCheckSoftFunction: true, limitCapsDefaultsTableId: true, limitCapsTableId: true, limitCheckFunction: true, limitCheckSoftFunction: true, limitCreditsTableId: true, limitDecrementFunction: true, limitDecrementTrigger: true, limitDefaults: true, limitIncrementFunction: true, limitIncrementTrigger: true, limitUpdateTrigger: true, limitWarningStateTableId: true, limitWarningsTableId: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, publicSchemaName: true, resolveCapFunction: true, schemaId: true, scope: true, tableId: true, tableName: true } } }) useCreateLimitsModuleMutation({ selection: { fields: { id: true } } }) useUpdateLimitsModuleMutation({ selection: { fields: { id: true } } }) useDeleteLimitsModuleMutation({}) @@ -20,7 +20,7 @@ useDeleteLimitsModuleMutation({}) ```typescript const { data, isLoading } = useLimitsModulesQuery({ - selection: { fields: { actorTableId: true, aggregateTableId: true, apiName: true, capCheckTrigger: true, creditCodeItemsTableId: true, creditCodesTableId: true, creditRedemptionsTableId: true, databaseId: true, defaultTableId: true, defaultTableName: true, entityField: true, entityTableId: true, eventsTableId: true, id: true, limitAggregateCheckSoftFunction: true, limitCapsDefaultsTableId: true, limitCapsTableId: true, limitCheckFunction: true, limitCheckSoftFunction: true, limitCreditsTableId: true, limitDecrementFunction: true, limitDecrementTrigger: true, limitIncrementFunction: true, limitIncrementTrigger: true, limitUpdateTrigger: true, limitWarningStateTableId: true, limitWarningsTableId: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, publicSchemaName: true, resolveCapFunction: true, schemaId: true, scope: true, tableId: true, tableName: true } }, + selection: { fields: { actorTableId: true, aggregateTableId: true, apiName: true, capCheckTrigger: true, creditCodeItemsTableId: true, creditCodesTableId: true, creditRedemptionsTableId: true, databaseId: true, defaultTableId: true, defaultTableName: true, entityField: true, entityTableId: true, eventsTableId: true, id: true, limitAggregateCheckSoftFunction: true, limitCapsDefaultsTableId: true, limitCapsTableId: true, limitCheckFunction: true, limitCheckSoftFunction: true, limitCreditsTableId: true, limitDecrementFunction: true, limitDecrementTrigger: true, limitDefaults: true, limitIncrementFunction: true, limitIncrementTrigger: true, limitUpdateTrigger: true, limitWarningStateTableId: true, limitWarningsTableId: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, publicSchemaName: true, resolveCapFunction: true, schemaId: true, scope: true, tableId: true, tableName: true } }, }); ``` @@ -30,5 +30,5 @@ const { data, isLoading } = useLimitsModulesQuery({ const { mutate } = useCreateLimitsModuleMutation({ selection: { fields: { id: true } }, }); -mutate({ actorTableId: '', aggregateTableId: '', apiName: '', capCheckTrigger: '', creditCodeItemsTableId: '', creditCodesTableId: '', creditRedemptionsTableId: '', databaseId: '', defaultTableId: '', defaultTableName: '', entityField: '', entityTableId: '', eventsTableId: '', limitAggregateCheckSoftFunction: '', limitCapsDefaultsTableId: '', limitCapsTableId: '', limitCheckFunction: '', limitCheckSoftFunction: '', limitCreditsTableId: '', limitDecrementFunction: '', limitDecrementTrigger: '', limitIncrementFunction: '', limitIncrementTrigger: '', limitUpdateTrigger: '', limitWarningStateTableId: '', limitWarningsTableId: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', publicSchemaName: '', resolveCapFunction: '', schemaId: '', scope: '', tableId: '', tableName: '' }); +mutate({ actorTableId: '', aggregateTableId: '', apiName: '', capCheckTrigger: '', creditCodeItemsTableId: '', creditCodesTableId: '', creditRedemptionsTableId: '', databaseId: '', defaultTableId: '', defaultTableName: '', entityField: '', entityTableId: '', eventsTableId: '', limitAggregateCheckSoftFunction: '', limitCapsDefaultsTableId: '', limitCapsTableId: '', limitCheckFunction: '', limitCheckSoftFunction: '', limitCreditsTableId: '', limitDecrementFunction: '', limitDecrementTrigger: '', limitDefaults: '', limitIncrementFunction: '', limitIncrementTrigger: '', limitUpdateTrigger: '', limitWarningStateTableId: '', limitWarningsTableId: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', publicSchemaName: '', resolveCapFunction: '', schemaId: '', scope: '', tableId: '', tableName: '' }); ``` diff --git a/.agents/skills/hooks-modules/references/memberships-module.md b/.agents/skills/hooks-modules/references/memberships-module.md index 0e72c50a3e..33f636c076 100644 --- a/.agents/skills/hooks-modules/references/memberships-module.md +++ b/.agents/skills/hooks-modules/references/memberships-module.md @@ -7,8 +7,8 @@ React Query hooks for MembershipsModule data operations ## Usage ```typescript -useMembershipsModulesQuery({ selection: { fields: { actorMaskCheck: true, actorPermCheck: true, actorTableId: true, adminGrantsTableId: true, adminGrantsTableName: true, apiName: true, databaseId: true, defaultLimitsTableId: true, defaultPermissionsTableId: true, entityField: true, entityIdsByMask: true, entityIdsByPerm: true, entityIdsFunction: true, entityTableId: true, entityTableOwnerId: true, getOrgFn: true, grantsTableId: true, grantsTableName: true, id: true, limitsTableId: true, memberProfilesTableId: true, membersTableId: true, membersTableName: true, membershipDefaultsTableId: true, membershipDefaultsTableName: true, membershipSettingsTableId: true, membershipSettingsTableName: true, membershipsTableId: true, membershipsTableName: true, ownerGrantsTableId: true, ownerGrantsTableName: true, permissionDefaultGrantsTableId: true, permissionDefaultPermissionsTableId: true, permissionsTableId: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, publicSchemaName: true, schemaId: true, scope: true, sprtTableId: true } } }) -useMembershipsModuleQuery({ id: '', selection: { fields: { actorMaskCheck: true, actorPermCheck: true, actorTableId: true, adminGrantsTableId: true, adminGrantsTableName: true, apiName: true, databaseId: true, defaultLimitsTableId: true, defaultPermissionsTableId: true, entityField: true, entityIdsByMask: true, entityIdsByPerm: true, entityIdsFunction: true, entityTableId: true, entityTableOwnerId: true, getOrgFn: true, grantsTableId: true, grantsTableName: true, id: true, limitsTableId: true, memberProfilesTableId: true, membersTableId: true, membersTableName: true, membershipDefaultsTableId: true, membershipDefaultsTableName: true, membershipSettingsTableId: true, membershipSettingsTableName: true, membershipsTableId: true, membershipsTableName: true, ownerGrantsTableId: true, ownerGrantsTableName: true, permissionDefaultGrantsTableId: true, permissionDefaultPermissionsTableId: true, permissionsTableId: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, publicSchemaName: true, schemaId: true, scope: true, sprtTableId: true } } }) +useMembershipsModulesQuery({ selection: { fields: { actorMaskCheck: true, actorPermCheck: true, actorTableId: true, adminGrantsTableId: true, adminGrantsTableName: true, apiName: true, capabilitiesTableId: true, capabilityDefaultCapabilitiesTableId: true, capabilityDefaultGrantsTableId: true, databaseId: true, defaultCapabilitiesTableId: true, defaultLimitsTableId: true, entityField: true, entityIdsByMask: true, entityIdsByPerm: true, entityIdsFunction: true, entityTableId: true, entityTableOwnerId: true, getOrgFn: true, grantsTableId: true, grantsTableName: true, id: true, limitsTableId: true, memberProfilesTableId: true, membersTableId: true, membersTableName: true, membershipDefaultsTableId: true, membershipDefaultsTableName: true, membershipSettingsTableId: true, membershipSettingsTableName: true, membershipsTableId: true, membershipsTableName: true, ownerGrantsTableId: true, ownerGrantsTableName: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, publicSchemaName: true, schemaId: true, scope: true, sprtTableId: true } } }) +useMembershipsModuleQuery({ id: '', selection: { fields: { actorMaskCheck: true, actorPermCheck: true, actorTableId: true, adminGrantsTableId: true, adminGrantsTableName: true, apiName: true, capabilitiesTableId: true, capabilityDefaultCapabilitiesTableId: true, capabilityDefaultGrantsTableId: true, databaseId: true, defaultCapabilitiesTableId: true, defaultLimitsTableId: true, entityField: true, entityIdsByMask: true, entityIdsByPerm: true, entityIdsFunction: true, entityTableId: true, entityTableOwnerId: true, getOrgFn: true, grantsTableId: true, grantsTableName: true, id: true, limitsTableId: true, memberProfilesTableId: true, membersTableId: true, membersTableName: true, membershipDefaultsTableId: true, membershipDefaultsTableName: true, membershipSettingsTableId: true, membershipSettingsTableName: true, membershipsTableId: true, membershipsTableName: true, ownerGrantsTableId: true, ownerGrantsTableName: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, publicSchemaName: true, schemaId: true, scope: true, sprtTableId: true } } }) useCreateMembershipsModuleMutation({ selection: { fields: { id: true } } }) useUpdateMembershipsModuleMutation({ selection: { fields: { id: true } } }) useDeleteMembershipsModuleMutation({}) @@ -20,7 +20,7 @@ useDeleteMembershipsModuleMutation({}) ```typescript const { data, isLoading } = useMembershipsModulesQuery({ - selection: { fields: { actorMaskCheck: true, actorPermCheck: true, actorTableId: true, adminGrantsTableId: true, adminGrantsTableName: true, apiName: true, databaseId: true, defaultLimitsTableId: true, defaultPermissionsTableId: true, entityField: true, entityIdsByMask: true, entityIdsByPerm: true, entityIdsFunction: true, entityTableId: true, entityTableOwnerId: true, getOrgFn: true, grantsTableId: true, grantsTableName: true, id: true, limitsTableId: true, memberProfilesTableId: true, membersTableId: true, membersTableName: true, membershipDefaultsTableId: true, membershipDefaultsTableName: true, membershipSettingsTableId: true, membershipSettingsTableName: true, membershipsTableId: true, membershipsTableName: true, ownerGrantsTableId: true, ownerGrantsTableName: true, permissionDefaultGrantsTableId: true, permissionDefaultPermissionsTableId: true, permissionsTableId: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, publicSchemaName: true, schemaId: true, scope: true, sprtTableId: true } }, + selection: { fields: { actorMaskCheck: true, actorPermCheck: true, actorTableId: true, adminGrantsTableId: true, adminGrantsTableName: true, apiName: true, capabilitiesTableId: true, capabilityDefaultCapabilitiesTableId: true, capabilityDefaultGrantsTableId: true, databaseId: true, defaultCapabilitiesTableId: true, defaultLimitsTableId: true, entityField: true, entityIdsByMask: true, entityIdsByPerm: true, entityIdsFunction: true, entityTableId: true, entityTableOwnerId: true, getOrgFn: true, grantsTableId: true, grantsTableName: true, id: true, limitsTableId: true, memberProfilesTableId: true, membersTableId: true, membersTableName: true, membershipDefaultsTableId: true, membershipDefaultsTableName: true, membershipSettingsTableId: true, membershipSettingsTableName: true, membershipsTableId: true, membershipsTableName: true, ownerGrantsTableId: true, ownerGrantsTableName: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, publicSchemaName: true, schemaId: true, scope: true, sprtTableId: true } }, }); ``` @@ -30,5 +30,5 @@ const { data, isLoading } = useMembershipsModulesQuery({ const { mutate } = useCreateMembershipsModuleMutation({ selection: { fields: { id: true } }, }); -mutate({ actorMaskCheck: '', actorPermCheck: '', actorTableId: '', adminGrantsTableId: '', adminGrantsTableName: '', apiName: '', databaseId: '', defaultLimitsTableId: '', defaultPermissionsTableId: '', entityField: '', entityIdsByMask: '', entityIdsByPerm: '', entityIdsFunction: '', entityTableId: '', entityTableOwnerId: '', getOrgFn: '', grantsTableId: '', grantsTableName: '', limitsTableId: '', memberProfilesTableId: '', membersTableId: '', membersTableName: '', membershipDefaultsTableId: '', membershipDefaultsTableName: '', membershipSettingsTableId: '', membershipSettingsTableName: '', membershipsTableId: '', membershipsTableName: '', ownerGrantsTableId: '', ownerGrantsTableName: '', permissionDefaultGrantsTableId: '', permissionDefaultPermissionsTableId: '', permissionsTableId: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', publicSchemaName: '', schemaId: '', scope: '', sprtTableId: '' }); +mutate({ actorMaskCheck: '', actorPermCheck: '', actorTableId: '', adminGrantsTableId: '', adminGrantsTableName: '', apiName: '', capabilitiesTableId: '', capabilityDefaultCapabilitiesTableId: '', capabilityDefaultGrantsTableId: '', databaseId: '', defaultCapabilitiesTableId: '', defaultLimitsTableId: '', entityField: '', entityIdsByMask: '', entityIdsByPerm: '', entityIdsFunction: '', entityTableId: '', entityTableOwnerId: '', getOrgFn: '', grantsTableId: '', grantsTableName: '', limitsTableId: '', memberProfilesTableId: '', membersTableId: '', membersTableName: '', membershipDefaultsTableId: '', membershipDefaultsTableName: '', membershipSettingsTableId: '', membershipSettingsTableName: '', membershipsTableId: '', membershipsTableName: '', ownerGrantsTableId: '', ownerGrantsTableName: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', publicSchemaName: '', schemaId: '', scope: '', sprtTableId: '' }); ``` diff --git a/.agents/skills/hooks-modules/references/merkle-store-module.md b/.agents/skills/hooks-modules/references/merkle-store-module.md index 02e66c6192..a66a1ad8a3 100644 --- a/.agents/skills/hooks-modules/references/merkle-store-module.md +++ b/.agents/skills/hooks-modules/references/merkle-store-module.md @@ -7,8 +7,8 @@ React Query hooks for MerkleStoreModule data operations ## Usage ```typescript -useMerkleStoreModulesQuery({ selection: { fields: { apiName: true, commitTableId: true, createdAt: true, databaseId: true, entityField: true, functionPrefix: true, id: true, objectTableId: true, permissionKey: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, publicSchemaName: true, refTableId: true, schemaId: true, scope: true, storeTableId: true } } }) -useMerkleStoreModuleQuery({ id: '', selection: { fields: { apiName: true, commitTableId: true, createdAt: true, databaseId: true, entityField: true, functionPrefix: true, id: true, objectTableId: true, permissionKey: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, publicSchemaName: true, refTableId: true, schemaId: true, scope: true, storeTableId: true } } }) +useMerkleStoreModulesQuery({ selection: { fields: { apiName: true, capabilityKey: true, commitTableId: true, createdAt: true, databaseId: true, entityField: true, functionPrefix: true, id: true, objectTableId: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, publicSchemaName: true, refTableId: true, schemaId: true, scope: true, storeTableId: true } } }) +useMerkleStoreModuleQuery({ id: '', selection: { fields: { apiName: true, capabilityKey: true, commitTableId: true, createdAt: true, databaseId: true, entityField: true, functionPrefix: true, id: true, objectTableId: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, publicSchemaName: true, refTableId: true, schemaId: true, scope: true, storeTableId: true } } }) useCreateMerkleStoreModuleMutation({ selection: { fields: { id: true } } }) useUpdateMerkleStoreModuleMutation({ selection: { fields: { id: true } } }) useDeleteMerkleStoreModuleMutation({}) @@ -20,7 +20,7 @@ useDeleteMerkleStoreModuleMutation({}) ```typescript const { data, isLoading } = useMerkleStoreModulesQuery({ - selection: { fields: { apiName: true, commitTableId: true, createdAt: true, databaseId: true, entityField: true, functionPrefix: true, id: true, objectTableId: true, permissionKey: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, publicSchemaName: true, refTableId: true, schemaId: true, scope: true, storeTableId: true } }, + selection: { fields: { apiName: true, capabilityKey: true, commitTableId: true, createdAt: true, databaseId: true, entityField: true, functionPrefix: true, id: true, objectTableId: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, publicSchemaName: true, refTableId: true, schemaId: true, scope: true, storeTableId: true } }, }); ``` @@ -30,5 +30,5 @@ const { data, isLoading } = useMerkleStoreModulesQuery({ const { mutate } = useCreateMerkleStoreModuleMutation({ selection: { fields: { id: true } }, }); -mutate({ apiName: '', commitTableId: '', databaseId: '', entityField: '', functionPrefix: '', objectTableId: '', permissionKey: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', publicSchemaName: '', refTableId: '', schemaId: '', scope: '', storeTableId: '' }); +mutate({ apiName: '', capabilityKey: '', commitTableId: '', databaseId: '', entityField: '', functionPrefix: '', objectTableId: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', publicSchemaName: '', refTableId: '', schemaId: '', scope: '', storeTableId: '' }); ``` diff --git a/.agents/skills/hooks-modules/references/namespace-module.md b/.agents/skills/hooks-modules/references/namespace-module.md index 78c2af01e3..ff069b196f 100644 --- a/.agents/skills/hooks-modules/references/namespace-module.md +++ b/.agents/skills/hooks-modules/references/namespace-module.md @@ -7,8 +7,8 @@ React Query hooks for NamespaceModule data operations ## Usage ```typescript -useNamespaceModulesQuery({ selection: { fields: { apiName: true, databaseId: true, defaultPermissions: true, entityField: true, entityTableId: true, id: true, namespaceEventsTableId: true, namespaceEventsTableName: true, namespacesTableId: true, namespacesTableName: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provisions: true, publicSchemaName: true, schemaId: true, scope: true } } }) -useNamespaceModuleQuery({ id: '', selection: { fields: { apiName: true, databaseId: true, defaultPermissions: true, entityField: true, entityTableId: true, id: true, namespaceEventsTableId: true, namespaceEventsTableName: true, namespacesTableId: true, namespacesTableName: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provisions: true, publicSchemaName: true, schemaId: true, scope: true } } }) +useNamespaceModulesQuery({ selection: { fields: { apiName: true, databaseId: true, defaultCapabilities: true, entityField: true, entityTableId: true, id: true, namespaceEventsTableId: true, namespaceEventsTableName: true, namespacesTableId: true, namespacesTableName: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provisions: true, publicSchemaName: true, schemaId: true, scope: true } } }) +useNamespaceModuleQuery({ id: '', selection: { fields: { apiName: true, databaseId: true, defaultCapabilities: true, entityField: true, entityTableId: true, id: true, namespaceEventsTableId: true, namespaceEventsTableName: true, namespacesTableId: true, namespacesTableName: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provisions: true, publicSchemaName: true, schemaId: true, scope: true } } }) useCreateNamespaceModuleMutation({ selection: { fields: { id: true } } }) useUpdateNamespaceModuleMutation({ selection: { fields: { id: true } } }) useDeleteNamespaceModuleMutation({}) @@ -20,7 +20,7 @@ useDeleteNamespaceModuleMutation({}) ```typescript const { data, isLoading } = useNamespaceModulesQuery({ - selection: { fields: { apiName: true, databaseId: true, defaultPermissions: true, entityField: true, entityTableId: true, id: true, namespaceEventsTableId: true, namespaceEventsTableName: true, namespacesTableId: true, namespacesTableName: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provisions: true, publicSchemaName: true, schemaId: true, scope: true } }, + selection: { fields: { apiName: true, databaseId: true, defaultCapabilities: true, entityField: true, entityTableId: true, id: true, namespaceEventsTableId: true, namespaceEventsTableName: true, namespacesTableId: true, namespacesTableName: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provisions: true, publicSchemaName: true, schemaId: true, scope: true } }, }); ``` @@ -30,5 +30,5 @@ const { data, isLoading } = useNamespaceModulesQuery({ const { mutate } = useCreateNamespaceModuleMutation({ selection: { fields: { id: true } }, }); -mutate({ apiName: '', databaseId: '', defaultPermissions: '', entityField: '', entityTableId: '', namespaceEventsTableId: '', namespaceEventsTableName: '', namespacesTableId: '', namespacesTableName: '', policies: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', provisions: '', publicSchemaName: '', schemaId: '', scope: '' }); +mutate({ apiName: '', databaseId: '', defaultCapabilities: '', entityField: '', entityTableId: '', namespaceEventsTableId: '', namespaceEventsTableName: '', namespacesTableId: '', namespacesTableName: '', policies: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', provisions: '', publicSchemaName: '', schemaId: '', scope: '' }); ``` diff --git a/.agents/skills/hooks-modules/references/notifications-module.md b/.agents/skills/hooks-modules/references/notifications-module.md index 398e1b5f83..b10678bcfb 100644 --- a/.agents/skills/hooks-modules/references/notifications-module.md +++ b/.agents/skills/hooks-modules/references/notifications-module.md @@ -7,8 +7,8 @@ React Query hooks for NotificationsModule data operations ## Usage ```typescript -useNotificationsModulesQuery({ selection: { fields: { apiName: true, channelsTableId: true, databaseId: true, defaultPermissions: true, deliveryLogTableId: true, entityField: true, hasChannels: true, hasDigestMetadata: true, hasPreferences: true, hasSettingsExtension: true, hasSubscriptions: true, id: true, notificationsTableId: true, organizationSettingsTableId: true, ownerTableId: true, preferencesTableId: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, publicSchemaName: true, readStateTableId: true, schemaId: true, suppressionsTableId: true, userSettingsTableId: true } } }) -useNotificationsModuleQuery({ id: '', selection: { fields: { apiName: true, channelsTableId: true, databaseId: true, defaultPermissions: true, deliveryLogTableId: true, entityField: true, hasChannels: true, hasDigestMetadata: true, hasPreferences: true, hasSettingsExtension: true, hasSubscriptions: true, id: true, notificationsTableId: true, organizationSettingsTableId: true, ownerTableId: true, preferencesTableId: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, publicSchemaName: true, readStateTableId: true, schemaId: true, suppressionsTableId: true, userSettingsTableId: true } } }) +useNotificationsModulesQuery({ selection: { fields: { apiName: true, channelsTableId: true, databaseId: true, defaultCapabilities: true, deliveryLogTableId: true, entityField: true, hasChannels: true, hasDigestMetadata: true, hasPreferences: true, hasSettingsExtension: true, hasSubscriptions: true, id: true, notificationsTableId: true, organizationSettingsTableId: true, ownerTableId: true, preferencesTableId: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, publicSchemaName: true, readStateTableId: true, schemaId: true, suppressionsTableId: true, userSettingsTableId: true } } }) +useNotificationsModuleQuery({ id: '', selection: { fields: { apiName: true, channelsTableId: true, databaseId: true, defaultCapabilities: true, deliveryLogTableId: true, entityField: true, hasChannels: true, hasDigestMetadata: true, hasPreferences: true, hasSettingsExtension: true, hasSubscriptions: true, id: true, notificationsTableId: true, organizationSettingsTableId: true, ownerTableId: true, preferencesTableId: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, publicSchemaName: true, readStateTableId: true, schemaId: true, suppressionsTableId: true, userSettingsTableId: true } } }) useCreateNotificationsModuleMutation({ selection: { fields: { id: true } } }) useUpdateNotificationsModuleMutation({ selection: { fields: { id: true } } }) useDeleteNotificationsModuleMutation({}) @@ -20,7 +20,7 @@ useDeleteNotificationsModuleMutation({}) ```typescript const { data, isLoading } = useNotificationsModulesQuery({ - selection: { fields: { apiName: true, channelsTableId: true, databaseId: true, defaultPermissions: true, deliveryLogTableId: true, entityField: true, hasChannels: true, hasDigestMetadata: true, hasPreferences: true, hasSettingsExtension: true, hasSubscriptions: true, id: true, notificationsTableId: true, organizationSettingsTableId: true, ownerTableId: true, preferencesTableId: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, publicSchemaName: true, readStateTableId: true, schemaId: true, suppressionsTableId: true, userSettingsTableId: true } }, + selection: { fields: { apiName: true, channelsTableId: true, databaseId: true, defaultCapabilities: true, deliveryLogTableId: true, entityField: true, hasChannels: true, hasDigestMetadata: true, hasPreferences: true, hasSettingsExtension: true, hasSubscriptions: true, id: true, notificationsTableId: true, organizationSettingsTableId: true, ownerTableId: true, preferencesTableId: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, publicSchemaName: true, readStateTableId: true, schemaId: true, suppressionsTableId: true, userSettingsTableId: true } }, }); ``` @@ -30,5 +30,5 @@ const { data, isLoading } = useNotificationsModulesQuery({ const { mutate } = useCreateNotificationsModuleMutation({ selection: { fields: { id: true } }, }); -mutate({ apiName: '', channelsTableId: '', databaseId: '', defaultPermissions: '', deliveryLogTableId: '', entityField: '', hasChannels: '', hasDigestMetadata: '', hasPreferences: '', hasSettingsExtension: '', hasSubscriptions: '', notificationsTableId: '', organizationSettingsTableId: '', ownerTableId: '', preferencesTableId: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', publicSchemaName: '', readStateTableId: '', schemaId: '', suppressionsTableId: '', userSettingsTableId: '' }); +mutate({ apiName: '', channelsTableId: '', databaseId: '', defaultCapabilities: '', deliveryLogTableId: '', entityField: '', hasChannels: '', hasDigestMetadata: '', hasPreferences: '', hasSettingsExtension: '', hasSubscriptions: '', notificationsTableId: '', organizationSettingsTableId: '', ownerTableId: '', preferencesTableId: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', publicSchemaName: '', readStateTableId: '', schemaId: '', suppressionsTableId: '', userSettingsTableId: '' }); ``` diff --git a/.agents/skills/hooks-modules/references/oauth-requests-module.md b/.agents/skills/hooks-modules/references/oauth-requests-module.md new file mode 100644 index 0000000000..7ece9a978b --- /dev/null +++ b/.agents/skills/hooks-modules/references/oauth-requests-module.md @@ -0,0 +1,39 @@ +# oauthRequestsModule + + + +Config row for the oauth_requests_module, which provisions the in-flight half of an SSO + sign-in: the OAuth authorization requests table (state + PKCE code_verifier) and the + pending identity links table (a verified identity parked under a single-use ticket), + both private, plus the five SECURITY DEFINER procedures that are their only surface. + Sibling of identity_providers_module (durable provider configuration) rather than part + of it: this is ephemeral, purged flow state with its own retention. + +## Usage + +```typescript +useOauthRequestsModulesQuery({ selection: { fields: { databaseId: true, entityField: true, entityTableId: true, id: true, oauthAuthorizationRequestsTableId: true, oauthAuthorizationRequestsTableName: true, pendingIdentityLinksTableId: true, pendingIdentityLinksTableName: true, prefix: true, privateSchemaId: true, privateSchemaName: true, scope: true } } }) +useOauthRequestsModuleQuery({ id: '', selection: { fields: { databaseId: true, entityField: true, entityTableId: true, id: true, oauthAuthorizationRequestsTableId: true, oauthAuthorizationRequestsTableName: true, pendingIdentityLinksTableId: true, pendingIdentityLinksTableName: true, prefix: true, privateSchemaId: true, privateSchemaName: true, scope: true } } }) +useCreateOauthRequestsModuleMutation({ selection: { fields: { id: true } } }) +useUpdateOauthRequestsModuleMutation({ selection: { fields: { id: true } } }) +useDeleteOauthRequestsModuleMutation({}) +``` + +## Examples + +### List all oauthRequestsModules + +```typescript +const { data, isLoading } = useOauthRequestsModulesQuery({ + selection: { fields: { databaseId: true, entityField: true, entityTableId: true, id: true, oauthAuthorizationRequestsTableId: true, oauthAuthorizationRequestsTableName: true, pendingIdentityLinksTableId: true, pendingIdentityLinksTableName: true, prefix: true, privateSchemaId: true, privateSchemaName: true, scope: true } }, +}); +``` + +### Create a oauthRequestsModule + +```typescript +const { mutate } = useCreateOauthRequestsModuleMutation({ + selection: { fields: { id: true } }, +}); +mutate({ databaseId: '', entityField: '', entityTableId: '', oauthAuthorizationRequestsTableId: '', oauthAuthorizationRequestsTableName: '', pendingIdentityLinksTableId: '', pendingIdentityLinksTableName: '', prefix: '', privateSchemaId: '', privateSchemaName: '', scope: '' }); +``` diff --git a/.agents/skills/hooks-modules/references/profiles-module.md b/.agents/skills/hooks-modules/references/profiles-module.md index 8d093b528d..25d4780042 100644 --- a/.agents/skills/hooks-modules/references/profiles-module.md +++ b/.agents/skills/hooks-modules/references/profiles-module.md @@ -7,8 +7,8 @@ React Query hooks for ProfilesModule data operations ## Usage ```typescript -useProfilesModulesQuery({ selection: { fields: { actorTableId: true, apiName: true, databaseId: true, entityField: true, entityTableId: true, id: true, membershipsTableId: true, permissionsTableId: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, profileDefinitionGrantsTableId: true, profileDefinitionGrantsTableName: true, profileGrantsTableId: true, profileGrantsTableName: true, profilePermissionsTableId: true, profilePermissionsTableName: true, profileTemplatesTableId: true, profileTemplatesTableName: true, publicSchemaName: true, schemaId: true, scope: true, tableId: true, tableName: true } } }) -useProfilesModuleQuery({ id: '', selection: { fields: { actorTableId: true, apiName: true, databaseId: true, entityField: true, entityTableId: true, id: true, membershipsTableId: true, permissionsTableId: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, profileDefinitionGrantsTableId: true, profileDefinitionGrantsTableName: true, profileGrantsTableId: true, profileGrantsTableName: true, profilePermissionsTableId: true, profilePermissionsTableName: true, profileTemplatesTableId: true, profileTemplatesTableName: true, publicSchemaName: true, schemaId: true, scope: true, tableId: true, tableName: true } } }) +useProfilesModulesQuery({ selection: { fields: { actorTableId: true, apiName: true, capabilitiesTableId: true, databaseId: true, entityField: true, entityTableId: true, id: true, membershipProfilesTableId: true, membershipProfilesTableName: true, membershipsTableId: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, profileCapabilitiesTableId: true, profileCapabilitiesTableName: true, profileDefinitionGrantsTableId: true, profileDefinitionGrantsTableName: true, profileGrantsTableId: true, profileGrantsTableName: true, profileTemplatesTableId: true, profileTemplatesTableName: true, publicSchemaName: true, schemaId: true, scope: true, tableId: true, tableName: true } } }) +useProfilesModuleQuery({ id: '', selection: { fields: { actorTableId: true, apiName: true, capabilitiesTableId: true, databaseId: true, entityField: true, entityTableId: true, id: true, membershipProfilesTableId: true, membershipProfilesTableName: true, membershipsTableId: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, profileCapabilitiesTableId: true, profileCapabilitiesTableName: true, profileDefinitionGrantsTableId: true, profileDefinitionGrantsTableName: true, profileGrantsTableId: true, profileGrantsTableName: true, profileTemplatesTableId: true, profileTemplatesTableName: true, publicSchemaName: true, schemaId: true, scope: true, tableId: true, tableName: true } } }) useCreateProfilesModuleMutation({ selection: { fields: { id: true } } }) useUpdateProfilesModuleMutation({ selection: { fields: { id: true } } }) useDeleteProfilesModuleMutation({}) @@ -20,7 +20,7 @@ useDeleteProfilesModuleMutation({}) ```typescript const { data, isLoading } = useProfilesModulesQuery({ - selection: { fields: { actorTableId: true, apiName: true, databaseId: true, entityField: true, entityTableId: true, id: true, membershipsTableId: true, permissionsTableId: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, profileDefinitionGrantsTableId: true, profileDefinitionGrantsTableName: true, profileGrantsTableId: true, profileGrantsTableName: true, profilePermissionsTableId: true, profilePermissionsTableName: true, profileTemplatesTableId: true, profileTemplatesTableName: true, publicSchemaName: true, schemaId: true, scope: true, tableId: true, tableName: true } }, + selection: { fields: { actorTableId: true, apiName: true, capabilitiesTableId: true, databaseId: true, entityField: true, entityTableId: true, id: true, membershipProfilesTableId: true, membershipProfilesTableName: true, membershipsTableId: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, profileCapabilitiesTableId: true, profileCapabilitiesTableName: true, profileDefinitionGrantsTableId: true, profileDefinitionGrantsTableName: true, profileGrantsTableId: true, profileGrantsTableName: true, profileTemplatesTableId: true, profileTemplatesTableName: true, publicSchemaName: true, schemaId: true, scope: true, tableId: true, tableName: true } }, }); ``` @@ -30,5 +30,5 @@ const { data, isLoading } = useProfilesModulesQuery({ const { mutate } = useCreateProfilesModuleMutation({ selection: { fields: { id: true } }, }); -mutate({ actorTableId: '', apiName: '', databaseId: '', entityField: '', entityTableId: '', membershipsTableId: '', permissionsTableId: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', profileDefinitionGrantsTableId: '', profileDefinitionGrantsTableName: '', profileGrantsTableId: '', profileGrantsTableName: '', profilePermissionsTableId: '', profilePermissionsTableName: '', profileTemplatesTableId: '', profileTemplatesTableName: '', publicSchemaName: '', schemaId: '', scope: '', tableId: '', tableName: '' }); +mutate({ actorTableId: '', apiName: '', capabilitiesTableId: '', databaseId: '', entityField: '', entityTableId: '', membershipProfilesTableId: '', membershipProfilesTableName: '', membershipsTableId: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', profileCapabilitiesTableId: '', profileCapabilitiesTableName: '', profileDefinitionGrantsTableId: '', profileDefinitionGrantsTableName: '', profileGrantsTableId: '', profileGrantsTableName: '', profileTemplatesTableId: '', profileTemplatesTableName: '', publicSchemaName: '', schemaId: '', scope: '', tableId: '', tableName: '' }); ``` diff --git a/.agents/skills/hooks-modules/references/rate-limit-meters-module.md b/.agents/skills/hooks-modules/references/rate-limit-meters-module.md index c693c4392d..9816ffaf48 100644 --- a/.agents/skills/hooks-modules/references/rate-limit-meters-module.md +++ b/.agents/skills/hooks-modules/references/rate-limit-meters-module.md @@ -7,8 +7,8 @@ React Query hooks for RateLimitMetersModule data operations ## Usage ```typescript -useRateLimitMetersModulesQuery({ selection: { fields: { apiName: true, checkRateLimitFunction: true, databaseId: true, defaultPermissions: true, id: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, publicSchemaName: true, rateLimitOverridesTableId: true, rateLimitOverridesTableName: true, rateLimitStateTableId: true, rateLimitStateTableName: true, rateWindowLimitsTableId: true, rateWindowLimitsTableName: true, schemaId: true } } }) -useRateLimitMetersModuleQuery({ id: '', selection: { fields: { apiName: true, checkRateLimitFunction: true, databaseId: true, defaultPermissions: true, id: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, publicSchemaName: true, rateLimitOverridesTableId: true, rateLimitOverridesTableName: true, rateLimitStateTableId: true, rateLimitStateTableName: true, rateWindowLimitsTableId: true, rateWindowLimitsTableName: true, schemaId: true } } }) +useRateLimitMetersModulesQuery({ selection: { fields: { apiName: true, checkRateLimitFunction: true, databaseId: true, defaultCapabilities: true, id: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, publicSchemaName: true, rateLimitOverridesTableId: true, rateLimitOverridesTableName: true, rateLimitStateTableId: true, rateLimitStateTableName: true, rateWindowLimitsTableId: true, rateWindowLimitsTableName: true, schemaId: true } } }) +useRateLimitMetersModuleQuery({ id: '', selection: { fields: { apiName: true, checkRateLimitFunction: true, databaseId: true, defaultCapabilities: true, id: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, publicSchemaName: true, rateLimitOverridesTableId: true, rateLimitOverridesTableName: true, rateLimitStateTableId: true, rateLimitStateTableName: true, rateWindowLimitsTableId: true, rateWindowLimitsTableName: true, schemaId: true } } }) useCreateRateLimitMetersModuleMutation({ selection: { fields: { id: true } } }) useUpdateRateLimitMetersModuleMutation({ selection: { fields: { id: true } } }) useDeleteRateLimitMetersModuleMutation({}) @@ -20,7 +20,7 @@ useDeleteRateLimitMetersModuleMutation({}) ```typescript const { data, isLoading } = useRateLimitMetersModulesQuery({ - selection: { fields: { apiName: true, checkRateLimitFunction: true, databaseId: true, defaultPermissions: true, id: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, publicSchemaName: true, rateLimitOverridesTableId: true, rateLimitOverridesTableName: true, rateLimitStateTableId: true, rateLimitStateTableName: true, rateWindowLimitsTableId: true, rateWindowLimitsTableName: true, schemaId: true } }, + selection: { fields: { apiName: true, checkRateLimitFunction: true, databaseId: true, defaultCapabilities: true, id: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, publicSchemaName: true, rateLimitOverridesTableId: true, rateLimitOverridesTableName: true, rateLimitStateTableId: true, rateLimitStateTableName: true, rateWindowLimitsTableId: true, rateWindowLimitsTableName: true, schemaId: true } }, }); ``` @@ -30,5 +30,5 @@ const { data, isLoading } = useRateLimitMetersModulesQuery({ const { mutate } = useCreateRateLimitMetersModuleMutation({ selection: { fields: { id: true } }, }); -mutate({ apiName: '', checkRateLimitFunction: '', databaseId: '', defaultPermissions: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', publicSchemaName: '', rateLimitOverridesTableId: '', rateLimitOverridesTableName: '', rateLimitStateTableId: '', rateLimitStateTableName: '', rateWindowLimitsTableId: '', rateWindowLimitsTableName: '', schemaId: '' }); +mutate({ apiName: '', checkRateLimitFunction: '', databaseId: '', defaultCapabilities: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', publicSchemaName: '', rateLimitOverridesTableId: '', rateLimitOverridesTableName: '', rateLimitStateTableId: '', rateLimitStateTableName: '', rateWindowLimitsTableId: '', rateWindowLimitsTableName: '', schemaId: '' }); ``` diff --git a/.agents/skills/hooks-modules/references/resource-module.md b/.agents/skills/hooks-modules/references/resource-module.md index 988e6f91fc..2167354cb6 100644 --- a/.agents/skills/hooks-modules/references/resource-module.md +++ b/.agents/skills/hooks-modules/references/resource-module.md @@ -7,8 +7,8 @@ React Query hooks for ResourceModule data operations ## Usage ```typescript -useResourceModulesQuery({ selection: { fields: { apiName: true, databaseId: true, defaultPermissions: true, entityField: true, entityTableId: true, id: true, installationStoreName: true, merkleStoreModuleId: true, namespaceModuleId: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provisions: true, publicSchemaName: true, requirementsStateViewName: true, resolvedRequirementsViewName: true, resourceBillingRollupFunction: true, resourceDefinitionsTableId: true, resourceDefinitionsTableName: true, resourceEventsTableId: true, resourceEventsTableName: true, resourceInstallationsTableId: true, resourceInstallationsTableName: true, resourceStatusChecksTableId: true, resourceStatusChecksTableName: true, resourceUsageLogTableId: true, resourceUsageLogTableName: true, resourceUsageSummaryTableId: true, resourceUsageSummaryTableName: true, resourcesTableId: true, resourcesTableName: true, rollupResourceUsageSummaryFunction: true, schemaId: true, scope: true } } }) -useResourceModuleQuery({ id: '', selection: { fields: { apiName: true, databaseId: true, defaultPermissions: true, entityField: true, entityTableId: true, id: true, installationStoreName: true, merkleStoreModuleId: true, namespaceModuleId: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provisions: true, publicSchemaName: true, requirementsStateViewName: true, resolvedRequirementsViewName: true, resourceBillingRollupFunction: true, resourceDefinitionsTableId: true, resourceDefinitionsTableName: true, resourceEventsTableId: true, resourceEventsTableName: true, resourceInstallationsTableId: true, resourceInstallationsTableName: true, resourceStatusChecksTableId: true, resourceStatusChecksTableName: true, resourceUsageLogTableId: true, resourceUsageLogTableName: true, resourceUsageSummaryTableId: true, resourceUsageSummaryTableName: true, resourcesTableId: true, resourcesTableName: true, rollupResourceUsageSummaryFunction: true, schemaId: true, scope: true } } }) +useResourceModulesQuery({ selection: { fields: { apiName: true, databaseId: true, defaultCapabilities: true, entityField: true, entityTableId: true, id: true, installationStoreName: true, merkleStoreModuleId: true, namespaceModuleId: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provisions: true, publicSchemaName: true, requirementsStateViewName: true, resolvedRequirementsViewName: true, resourceBillingRollupFunction: true, resourceDefinitionsTableId: true, resourceDefinitionsTableName: true, resourceEventsTableId: true, resourceEventsTableName: true, resourceInstallationsTableId: true, resourceInstallationsTableName: true, resourceStatusChecksTableId: true, resourceStatusChecksTableName: true, resourceUsageLogTableId: true, resourceUsageLogTableName: true, resourceUsageSummaryTableId: true, resourceUsageSummaryTableName: true, resourcesTableId: true, resourcesTableName: true, rollupResourceUsageSummaryFunction: true, schemaId: true, scope: true } } }) +useResourceModuleQuery({ id: '', selection: { fields: { apiName: true, databaseId: true, defaultCapabilities: true, entityField: true, entityTableId: true, id: true, installationStoreName: true, merkleStoreModuleId: true, namespaceModuleId: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provisions: true, publicSchemaName: true, requirementsStateViewName: true, resolvedRequirementsViewName: true, resourceBillingRollupFunction: true, resourceDefinitionsTableId: true, resourceDefinitionsTableName: true, resourceEventsTableId: true, resourceEventsTableName: true, resourceInstallationsTableId: true, resourceInstallationsTableName: true, resourceStatusChecksTableId: true, resourceStatusChecksTableName: true, resourceUsageLogTableId: true, resourceUsageLogTableName: true, resourceUsageSummaryTableId: true, resourceUsageSummaryTableName: true, resourcesTableId: true, resourcesTableName: true, rollupResourceUsageSummaryFunction: true, schemaId: true, scope: true } } }) useCreateResourceModuleMutation({ selection: { fields: { id: true } } }) useUpdateResourceModuleMutation({ selection: { fields: { id: true } } }) useDeleteResourceModuleMutation({}) @@ -20,7 +20,7 @@ useDeleteResourceModuleMutation({}) ```typescript const { data, isLoading } = useResourceModulesQuery({ - selection: { fields: { apiName: true, databaseId: true, defaultPermissions: true, entityField: true, entityTableId: true, id: true, installationStoreName: true, merkleStoreModuleId: true, namespaceModuleId: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provisions: true, publicSchemaName: true, requirementsStateViewName: true, resolvedRequirementsViewName: true, resourceBillingRollupFunction: true, resourceDefinitionsTableId: true, resourceDefinitionsTableName: true, resourceEventsTableId: true, resourceEventsTableName: true, resourceInstallationsTableId: true, resourceInstallationsTableName: true, resourceStatusChecksTableId: true, resourceStatusChecksTableName: true, resourceUsageLogTableId: true, resourceUsageLogTableName: true, resourceUsageSummaryTableId: true, resourceUsageSummaryTableName: true, resourcesTableId: true, resourcesTableName: true, rollupResourceUsageSummaryFunction: true, schemaId: true, scope: true } }, + selection: { fields: { apiName: true, databaseId: true, defaultCapabilities: true, entityField: true, entityTableId: true, id: true, installationStoreName: true, merkleStoreModuleId: true, namespaceModuleId: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provisions: true, publicSchemaName: true, requirementsStateViewName: true, resolvedRequirementsViewName: true, resourceBillingRollupFunction: true, resourceDefinitionsTableId: true, resourceDefinitionsTableName: true, resourceEventsTableId: true, resourceEventsTableName: true, resourceInstallationsTableId: true, resourceInstallationsTableName: true, resourceStatusChecksTableId: true, resourceStatusChecksTableName: true, resourceUsageLogTableId: true, resourceUsageLogTableName: true, resourceUsageSummaryTableId: true, resourceUsageSummaryTableName: true, resourcesTableId: true, resourcesTableName: true, rollupResourceUsageSummaryFunction: true, schemaId: true, scope: true } }, }); ``` @@ -30,5 +30,5 @@ const { data, isLoading } = useResourceModulesQuery({ const { mutate } = useCreateResourceModuleMutation({ selection: { fields: { id: true } }, }); -mutate({ apiName: '', databaseId: '', defaultPermissions: '', entityField: '', entityTableId: '', installationStoreName: '', merkleStoreModuleId: '', namespaceModuleId: '', policies: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', provisions: '', publicSchemaName: '', requirementsStateViewName: '', resolvedRequirementsViewName: '', resourceBillingRollupFunction: '', resourceDefinitionsTableId: '', resourceDefinitionsTableName: '', resourceEventsTableId: '', resourceEventsTableName: '', resourceInstallationsTableId: '', resourceInstallationsTableName: '', resourceStatusChecksTableId: '', resourceStatusChecksTableName: '', resourceUsageLogTableId: '', resourceUsageLogTableName: '', resourceUsageSummaryTableId: '', resourceUsageSummaryTableName: '', resourcesTableId: '', resourcesTableName: '', rollupResourceUsageSummaryFunction: '', schemaId: '', scope: '' }); +mutate({ apiName: '', databaseId: '', defaultCapabilities: '', entityField: '', entityTableId: '', installationStoreName: '', merkleStoreModuleId: '', namespaceModuleId: '', policies: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', provisions: '', publicSchemaName: '', requirementsStateViewName: '', resolvedRequirementsViewName: '', resourceBillingRollupFunction: '', resourceDefinitionsTableId: '', resourceDefinitionsTableName: '', resourceEventsTableId: '', resourceEventsTableName: '', resourceInstallationsTableId: '', resourceInstallationsTableName: '', resourceStatusChecksTableId: '', resourceStatusChecksTableName: '', resourceUsageLogTableId: '', resourceUsageLogTableName: '', resourceUsageSummaryTableId: '', resourceUsageSummaryTableName: '', resourcesTableId: '', resourcesTableName: '', rollupResourceUsageSummaryFunction: '', schemaId: '', scope: '' }); ``` diff --git a/.agents/skills/hooks-modules/references/route-module.md b/.agents/skills/hooks-modules/references/route-module.md index 9d8b50490f..31ff546f1b 100644 --- a/.agents/skills/hooks-modules/references/route-module.md +++ b/.agents/skills/hooks-modules/references/route-module.md @@ -7,8 +7,8 @@ React Query hooks for RouteModule data operations ## Usage ```typescript -useRouteModulesQuery({ selection: { fields: { apiName: true, catalogModuleId: true, databaseId: true, defaultPermissions: true, domainModuleId: true, entityField: true, entityTableId: true, hostnameBindingsTableId: true, hostnameBindingsTableName: true, id: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provisions: true, publicSchemaName: true, resolverFunctionName: true, routeBindingsTableId: true, routeBindingsTableName: true, routesTableId: true, routesTableName: true, schemaId: true, scope: true } } }) -useRouteModuleQuery({ id: '', selection: { fields: { apiName: true, catalogModuleId: true, databaseId: true, defaultPermissions: true, domainModuleId: true, entityField: true, entityTableId: true, hostnameBindingsTableId: true, hostnameBindingsTableName: true, id: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provisions: true, publicSchemaName: true, resolverFunctionName: true, routeBindingsTableId: true, routeBindingsTableName: true, routesTableId: true, routesTableName: true, schemaId: true, scope: true } } }) +useRouteModulesQuery({ selection: { fields: { apiName: true, appLinksFunctionName: true, catalogModuleId: true, databaseId: true, deepLinkFunctionName: true, defaultCapabilities: true, domainModuleId: true, entityField: true, entityTableId: true, hostnameBindingsTableId: true, hostnameBindingsTableName: true, id: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provisions: true, publicSchemaName: true, resolverFunctionName: true, routeBindingsTableId: true, routeBindingsTableName: true, routesTableId: true, routesTableName: true, schemaId: true, scope: true } } }) +useRouteModuleQuery({ id: '', selection: { fields: { apiName: true, appLinksFunctionName: true, catalogModuleId: true, databaseId: true, deepLinkFunctionName: true, defaultCapabilities: true, domainModuleId: true, entityField: true, entityTableId: true, hostnameBindingsTableId: true, hostnameBindingsTableName: true, id: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provisions: true, publicSchemaName: true, resolverFunctionName: true, routeBindingsTableId: true, routeBindingsTableName: true, routesTableId: true, routesTableName: true, schemaId: true, scope: true } } }) useCreateRouteModuleMutation({ selection: { fields: { id: true } } }) useUpdateRouteModuleMutation({ selection: { fields: { id: true } } }) useDeleteRouteModuleMutation({}) @@ -20,7 +20,7 @@ useDeleteRouteModuleMutation({}) ```typescript const { data, isLoading } = useRouteModulesQuery({ - selection: { fields: { apiName: true, catalogModuleId: true, databaseId: true, defaultPermissions: true, domainModuleId: true, entityField: true, entityTableId: true, hostnameBindingsTableId: true, hostnameBindingsTableName: true, id: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provisions: true, publicSchemaName: true, resolverFunctionName: true, routeBindingsTableId: true, routeBindingsTableName: true, routesTableId: true, routesTableName: true, schemaId: true, scope: true } }, + selection: { fields: { apiName: true, appLinksFunctionName: true, catalogModuleId: true, databaseId: true, deepLinkFunctionName: true, defaultCapabilities: true, domainModuleId: true, entityField: true, entityTableId: true, hostnameBindingsTableId: true, hostnameBindingsTableName: true, id: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provisions: true, publicSchemaName: true, resolverFunctionName: true, routeBindingsTableId: true, routeBindingsTableName: true, routesTableId: true, routesTableName: true, schemaId: true, scope: true } }, }); ``` @@ -30,5 +30,5 @@ const { data, isLoading } = useRouteModulesQuery({ const { mutate } = useCreateRouteModuleMutation({ selection: { fields: { id: true } }, }); -mutate({ apiName: '', catalogModuleId: '', databaseId: '', defaultPermissions: '', domainModuleId: '', entityField: '', entityTableId: '', hostnameBindingsTableId: '', hostnameBindingsTableName: '', policies: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', provisions: '', publicSchemaName: '', resolverFunctionName: '', routeBindingsTableId: '', routeBindingsTableName: '', routesTableId: '', routesTableName: '', schemaId: '', scope: '' }); +mutate({ apiName: '', appLinksFunctionName: '', catalogModuleId: '', databaseId: '', deepLinkFunctionName: '', defaultCapabilities: '', domainModuleId: '', entityField: '', entityTableId: '', hostnameBindingsTableId: '', hostnameBindingsTableName: '', policies: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', provisions: '', publicSchemaName: '', resolverFunctionName: '', routeBindingsTableId: '', routeBindingsTableName: '', routesTableId: '', routesTableName: '', schemaId: '', scope: '' }); ``` diff --git a/.agents/skills/hooks-modules/references/scope-types-module.md b/.agents/skills/hooks-modules/references/scope-types-module.md new file mode 100644 index 0000000000..d304a8fe50 --- /dev/null +++ b/.agents/skills/hooks-modules/references/scope-types-module.md @@ -0,0 +1,34 @@ +# scopeTypesModule + + + +React Query hooks for ScopeTypesModule data operations + +## Usage + +```typescript +useScopeTypesModulesQuery({ selection: { fields: { databaseId: true, id: true, privateSchemaName: true, schemaId: true, scopeTypesTableId: true } } }) +useScopeTypesModuleQuery({ id: '', selection: { fields: { databaseId: true, id: true, privateSchemaName: true, schemaId: true, scopeTypesTableId: true } } }) +useCreateScopeTypesModuleMutation({ selection: { fields: { id: true } } }) +useUpdateScopeTypesModuleMutation({ selection: { fields: { id: true } } }) +useDeleteScopeTypesModuleMutation({}) +``` + +## Examples + +### List all scopeTypesModules + +```typescript +const { data, isLoading } = useScopeTypesModulesQuery({ + selection: { fields: { databaseId: true, id: true, privateSchemaName: true, schemaId: true, scopeTypesTableId: true } }, +}); +``` + +### Create a scopeTypesModule + +```typescript +const { mutate } = useCreateScopeTypesModuleMutation({ + selection: { fields: { id: true } }, +}); +mutate({ databaseId: '', privateSchemaName: '', schemaId: '', scopeTypesTableId: '' }); +``` diff --git a/.agents/skills/hooks-modules/references/site-surface-module.md b/.agents/skills/hooks-modules/references/site-surface-module.md index a9ffcf7f48..550f573f83 100644 --- a/.agents/skills/hooks-modules/references/site-surface-module.md +++ b/.agents/skills/hooks-modules/references/site-surface-module.md @@ -7,8 +7,8 @@ React Query hooks for SiteSurfaceModule data operations ## Usage ```typescript -useSiteSurfaceModulesQuery({ selection: { fields: { apiName: true, catalogModuleId: true, databaseId: true, defaultPermissions: true, entityField: true, entityTableId: true, id: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provisions: true, publicSchemaName: true, schemaId: true, scope: true, siteAppLinksTableId: true, siteAppLinksTableName: true, siteDeepLinksTableId: true, siteDeepLinksTableName: true, siteErrorPagesTableId: true, siteErrorPagesTableName: true, siteMetadataTableId: true, siteMetadataTableName: true, siteModulesTableId: true, siteModulesTableName: true, siteThemesTableId: true, siteThemesTableName: true, siteWebConfigTableId: true, siteWebConfigTableName: true, sitesTableId: true, sitesTableName: true } } }) -useSiteSurfaceModuleQuery({ id: '', selection: { fields: { apiName: true, catalogModuleId: true, databaseId: true, defaultPermissions: true, entityField: true, entityTableId: true, id: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provisions: true, publicSchemaName: true, schemaId: true, scope: true, siteAppLinksTableId: true, siteAppLinksTableName: true, siteDeepLinksTableId: true, siteDeepLinksTableName: true, siteErrorPagesTableId: true, siteErrorPagesTableName: true, siteMetadataTableId: true, siteMetadataTableName: true, siteModulesTableId: true, siteModulesTableName: true, siteThemesTableId: true, siteThemesTableName: true, siteWebConfigTableId: true, siteWebConfigTableName: true, sitesTableId: true, sitesTableName: true } } }) +useSiteSurfaceModulesQuery({ selection: { fields: { apiName: true, catalogModuleId: true, databaseId: true, defaultCapabilities: true, entityField: true, entityTableId: true, id: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provisions: true, publicSchemaName: true, schemaId: true, scope: true, siteAppLinksTableId: true, siteAppLinksTableName: true, siteDeepLinksTableId: true, siteDeepLinksTableName: true, siteErrorPagesTableId: true, siteErrorPagesTableName: true, siteMetadataTableId: true, siteMetadataTableName: true, siteModulesTableId: true, siteModulesTableName: true, siteThemesTableId: true, siteThemesTableName: true, siteWebConfigTableId: true, siteWebConfigTableName: true, sitesTableId: true, sitesTableName: true } } }) +useSiteSurfaceModuleQuery({ id: '', selection: { fields: { apiName: true, catalogModuleId: true, databaseId: true, defaultCapabilities: true, entityField: true, entityTableId: true, id: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provisions: true, publicSchemaName: true, schemaId: true, scope: true, siteAppLinksTableId: true, siteAppLinksTableName: true, siteDeepLinksTableId: true, siteDeepLinksTableName: true, siteErrorPagesTableId: true, siteErrorPagesTableName: true, siteMetadataTableId: true, siteMetadataTableName: true, siteModulesTableId: true, siteModulesTableName: true, siteThemesTableId: true, siteThemesTableName: true, siteWebConfigTableId: true, siteWebConfigTableName: true, sitesTableId: true, sitesTableName: true } } }) useCreateSiteSurfaceModuleMutation({ selection: { fields: { id: true } } }) useUpdateSiteSurfaceModuleMutation({ selection: { fields: { id: true } } }) useDeleteSiteSurfaceModuleMutation({}) @@ -20,7 +20,7 @@ useDeleteSiteSurfaceModuleMutation({}) ```typescript const { data, isLoading } = useSiteSurfaceModulesQuery({ - selection: { fields: { apiName: true, catalogModuleId: true, databaseId: true, defaultPermissions: true, entityField: true, entityTableId: true, id: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provisions: true, publicSchemaName: true, schemaId: true, scope: true, siteAppLinksTableId: true, siteAppLinksTableName: true, siteDeepLinksTableId: true, siteDeepLinksTableName: true, siteErrorPagesTableId: true, siteErrorPagesTableName: true, siteMetadataTableId: true, siteMetadataTableName: true, siteModulesTableId: true, siteModulesTableName: true, siteThemesTableId: true, siteThemesTableName: true, siteWebConfigTableId: true, siteWebConfigTableName: true, sitesTableId: true, sitesTableName: true } }, + selection: { fields: { apiName: true, catalogModuleId: true, databaseId: true, defaultCapabilities: true, entityField: true, entityTableId: true, id: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provisions: true, publicSchemaName: true, schemaId: true, scope: true, siteAppLinksTableId: true, siteAppLinksTableName: true, siteDeepLinksTableId: true, siteDeepLinksTableName: true, siteErrorPagesTableId: true, siteErrorPagesTableName: true, siteMetadataTableId: true, siteMetadataTableName: true, siteModulesTableId: true, siteModulesTableName: true, siteThemesTableId: true, siteThemesTableName: true, siteWebConfigTableId: true, siteWebConfigTableName: true, sitesTableId: true, sitesTableName: true } }, }); ``` @@ -30,5 +30,5 @@ const { data, isLoading } = useSiteSurfaceModulesQuery({ const { mutate } = useCreateSiteSurfaceModuleMutation({ selection: { fields: { id: true } }, }); -mutate({ apiName: '', catalogModuleId: '', databaseId: '', defaultPermissions: '', entityField: '', entityTableId: '', policies: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', provisions: '', publicSchemaName: '', schemaId: '', scope: '', siteAppLinksTableId: '', siteAppLinksTableName: '', siteDeepLinksTableId: '', siteDeepLinksTableName: '', siteErrorPagesTableId: '', siteErrorPagesTableName: '', siteMetadataTableId: '', siteMetadataTableName: '', siteModulesTableId: '', siteModulesTableName: '', siteThemesTableId: '', siteThemesTableName: '', siteWebConfigTableId: '', siteWebConfigTableName: '', sitesTableId: '', sitesTableName: '' }); +mutate({ apiName: '', catalogModuleId: '', databaseId: '', defaultCapabilities: '', entityField: '', entityTableId: '', policies: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', provisions: '', publicSchemaName: '', schemaId: '', scope: '', siteAppLinksTableId: '', siteAppLinksTableName: '', siteDeepLinksTableId: '', siteDeepLinksTableName: '', siteErrorPagesTableId: '', siteErrorPagesTableName: '', siteMetadataTableId: '', siteMetadataTableName: '', siteModulesTableId: '', siteModulesTableName: '', siteThemesTableId: '', siteThemesTableName: '', siteWebConfigTableId: '', siteWebConfigTableName: '', sitesTableId: '', sitesTableName: '' }); ``` diff --git a/.agents/skills/hooks-modules/references/storage-module.md b/.agents/skills/hooks-modules/references/storage-module.md index 33b61e261c..75564c3bb8 100644 --- a/.agents/skills/hooks-modules/references/storage-module.md +++ b/.agents/skills/hooks-modules/references/storage-module.md @@ -7,8 +7,8 @@ React Query hooks for StorageModule data operations ## Usage ```typescript -useStorageModulesQuery({ selection: { fields: { allowedOrigins: true, apiName: true, bucketsTableId: true, bucketsTableName: true, cacheTtlSeconds: true, catalogModuleId: true, confirmUploadDelay: true, databaseId: true, defaultMaxFileSize: true, defaultPermissions: true, downloadUrlExpirySeconds: true, endpoint: true, entityField: true, entityTableId: true, fileEventsTableId: true, filesTableId: true, filesTableName: true, hasAuditLog: true, hasConfirmUpload: true, hasContentHash: true, hasCustomKeys: true, hasPathShares: true, hasVersioning: true, id: true, maxBulkFiles: true, maxBulkTotalSize: true, maxFilenameLength: true, pathSharesTableId: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provider: true, provisions: true, publicSchemaName: true, publicUrlPrefix: true, restrictReads: true, schemaId: true, scope: true, uploadUrlExpirySeconds: true } } }) -useStorageModuleQuery({ id: '', selection: { fields: { allowedOrigins: true, apiName: true, bucketsTableId: true, bucketsTableName: true, cacheTtlSeconds: true, catalogModuleId: true, confirmUploadDelay: true, databaseId: true, defaultMaxFileSize: true, defaultPermissions: true, downloadUrlExpirySeconds: true, endpoint: true, entityField: true, entityTableId: true, fileEventsTableId: true, filesTableId: true, filesTableName: true, hasAuditLog: true, hasConfirmUpload: true, hasContentHash: true, hasCustomKeys: true, hasPathShares: true, hasVersioning: true, id: true, maxBulkFiles: true, maxBulkTotalSize: true, maxFilenameLength: true, pathSharesTableId: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provider: true, provisions: true, publicSchemaName: true, publicUrlPrefix: true, restrictReads: true, schemaId: true, scope: true, uploadUrlExpirySeconds: true } } }) +useStorageModulesQuery({ selection: { fields: { allowedOrigins: true, apiName: true, bucketsTableId: true, bucketsTableName: true, cacheTtlSeconds: true, catalogModuleId: true, confirmUploadDelay: true, databaseId: true, defaultCapabilities: true, defaultMaxFileSize: true, downloadUrlExpirySeconds: true, endpoint: true, entityField: true, entityTableId: true, fileEventsTableId: true, filesTableId: true, filesTableName: true, hasAuditLog: true, hasConfirmUpload: true, hasContentHash: true, hasCustomKeys: true, hasPathShares: true, hasVersioning: true, id: true, maxBulkFiles: true, maxBulkTotalSize: true, maxFilenameLength: true, pathSharesTableId: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provider: true, provisions: true, publicSchemaName: true, publicUrlPrefix: true, restrictReads: true, schemaId: true, scope: true, uploadUrlExpirySeconds: true } } }) +useStorageModuleQuery({ id: '', selection: { fields: { allowedOrigins: true, apiName: true, bucketsTableId: true, bucketsTableName: true, cacheTtlSeconds: true, catalogModuleId: true, confirmUploadDelay: true, databaseId: true, defaultCapabilities: true, defaultMaxFileSize: true, downloadUrlExpirySeconds: true, endpoint: true, entityField: true, entityTableId: true, fileEventsTableId: true, filesTableId: true, filesTableName: true, hasAuditLog: true, hasConfirmUpload: true, hasContentHash: true, hasCustomKeys: true, hasPathShares: true, hasVersioning: true, id: true, maxBulkFiles: true, maxBulkTotalSize: true, maxFilenameLength: true, pathSharesTableId: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provider: true, provisions: true, publicSchemaName: true, publicUrlPrefix: true, restrictReads: true, schemaId: true, scope: true, uploadUrlExpirySeconds: true } } }) useCreateStorageModuleMutation({ selection: { fields: { id: true } } }) useUpdateStorageModuleMutation({ selection: { fields: { id: true } } }) useDeleteStorageModuleMutation({}) @@ -20,7 +20,7 @@ useDeleteStorageModuleMutation({}) ```typescript const { data, isLoading } = useStorageModulesQuery({ - selection: { fields: { allowedOrigins: true, apiName: true, bucketsTableId: true, bucketsTableName: true, cacheTtlSeconds: true, catalogModuleId: true, confirmUploadDelay: true, databaseId: true, defaultMaxFileSize: true, defaultPermissions: true, downloadUrlExpirySeconds: true, endpoint: true, entityField: true, entityTableId: true, fileEventsTableId: true, filesTableId: true, filesTableName: true, hasAuditLog: true, hasConfirmUpload: true, hasContentHash: true, hasCustomKeys: true, hasPathShares: true, hasVersioning: true, id: true, maxBulkFiles: true, maxBulkTotalSize: true, maxFilenameLength: true, pathSharesTableId: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provider: true, provisions: true, publicSchemaName: true, publicUrlPrefix: true, restrictReads: true, schemaId: true, scope: true, uploadUrlExpirySeconds: true } }, + selection: { fields: { allowedOrigins: true, apiName: true, bucketsTableId: true, bucketsTableName: true, cacheTtlSeconds: true, catalogModuleId: true, confirmUploadDelay: true, databaseId: true, defaultCapabilities: true, defaultMaxFileSize: true, downloadUrlExpirySeconds: true, endpoint: true, entityField: true, entityTableId: true, fileEventsTableId: true, filesTableId: true, filesTableName: true, hasAuditLog: true, hasConfirmUpload: true, hasContentHash: true, hasCustomKeys: true, hasPathShares: true, hasVersioning: true, id: true, maxBulkFiles: true, maxBulkTotalSize: true, maxFilenameLength: true, pathSharesTableId: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provider: true, provisions: true, publicSchemaName: true, publicUrlPrefix: true, restrictReads: true, schemaId: true, scope: true, uploadUrlExpirySeconds: true } }, }); ``` @@ -30,5 +30,5 @@ const { data, isLoading } = useStorageModulesQuery({ const { mutate } = useCreateStorageModuleMutation({ selection: { fields: { id: true } }, }); -mutate({ allowedOrigins: '', apiName: '', bucketsTableId: '', bucketsTableName: '', cacheTtlSeconds: '', catalogModuleId: '', confirmUploadDelay: '', databaseId: '', defaultMaxFileSize: '', defaultPermissions: '', downloadUrlExpirySeconds: '', endpoint: '', entityField: '', entityTableId: '', fileEventsTableId: '', filesTableId: '', filesTableName: '', hasAuditLog: '', hasConfirmUpload: '', hasContentHash: '', hasCustomKeys: '', hasPathShares: '', hasVersioning: '', maxBulkFiles: '', maxBulkTotalSize: '', maxFilenameLength: '', pathSharesTableId: '', policies: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', provider: '', provisions: '', publicSchemaName: '', publicUrlPrefix: '', restrictReads: '', schemaId: '', scope: '', uploadUrlExpirySeconds: '' }); +mutate({ allowedOrigins: '', apiName: '', bucketsTableId: '', bucketsTableName: '', cacheTtlSeconds: '', catalogModuleId: '', confirmUploadDelay: '', databaseId: '', defaultCapabilities: '', defaultMaxFileSize: '', downloadUrlExpirySeconds: '', endpoint: '', entityField: '', entityTableId: '', fileEventsTableId: '', filesTableId: '', filesTableName: '', hasAuditLog: '', hasConfirmUpload: '', hasContentHash: '', hasCustomKeys: '', hasPathShares: '', hasVersioning: '', maxBulkFiles: '', maxBulkTotalSize: '', maxFilenameLength: '', pathSharesTableId: '', policies: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', provider: '', provisions: '', publicSchemaName: '', publicUrlPrefix: '', restrictReads: '', schemaId: '', scope: '', uploadUrlExpirySeconds: '' }); ``` diff --git a/.agents/skills/hooks-modules/references/user-settings-security-module.md b/.agents/skills/hooks-modules/references/user-settings-security-module.md new file mode 100644 index 0000000000..ccb40f16ce --- /dev/null +++ b/.agents/skills/hooks-modules/references/user-settings-security-module.md @@ -0,0 +1,34 @@ +# userSettingsSecurityModule + + + +React Query hooks for UserSettingsSecurityModule data operations + +## Usage + +```typescript +useUserSettingsSecurityModulesQuery({ selection: { fields: { apiName: true, databaseId: true, id: true, ownerTableId: true, schemaId: true, tableId: true, tableName: true } } }) +useUserSettingsSecurityModuleQuery({ id: '', selection: { fields: { apiName: true, databaseId: true, id: true, ownerTableId: true, schemaId: true, tableId: true, tableName: true } } }) +useCreateUserSettingsSecurityModuleMutation({ selection: { fields: { id: true } } }) +useUpdateUserSettingsSecurityModuleMutation({ selection: { fields: { id: true } } }) +useDeleteUserSettingsSecurityModuleMutation({}) +``` + +## Examples + +### List all userSettingsSecurityModules + +```typescript +const { data, isLoading } = useUserSettingsSecurityModulesQuery({ + selection: { fields: { apiName: true, databaseId: true, id: true, ownerTableId: true, schemaId: true, tableId: true, tableName: true } }, +}); +``` + +### Create a userSettingsSecurityModule + +```typescript +const { mutate } = useCreateUserSettingsSecurityModuleMutation({ + selection: { fields: { id: true } }, +}); +mutate({ apiName: '', databaseId: '', ownerTableId: '', schemaId: '', tableId: '', tableName: '' }); +``` diff --git a/.agents/skills/hooks-modules/references/webhook-module.md b/.agents/skills/hooks-modules/references/webhook-module.md index a6d14aab16..a1f287a12f 100644 --- a/.agents/skills/hooks-modules/references/webhook-module.md +++ b/.agents/skills/hooks-modules/references/webhook-module.md @@ -7,8 +7,8 @@ React Query hooks for WebhookModule data operations ## Usage ```typescript -useWebhookModulesQuery({ selection: { fields: { apiName: true, databaseId: true, defaultPermissions: true, entityField: true, entityTableId: true, functionInvocationModuleId: true, functionModuleId: true, id: true, infraSecretsModuleId: true, namespaceModuleId: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provisions: true, publicSchemaName: true, schemaId: true, scope: true, webhookEndpointsTableId: true, webhookEndpointsTableName: true, webhookEventsTableId: true, webhookEventsTableName: true } } }) -useWebhookModuleQuery({ id: '', selection: { fields: { apiName: true, databaseId: true, defaultPermissions: true, entityField: true, entityTableId: true, functionInvocationModuleId: true, functionModuleId: true, id: true, infraSecretsModuleId: true, namespaceModuleId: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provisions: true, publicSchemaName: true, schemaId: true, scope: true, webhookEndpointsTableId: true, webhookEndpointsTableName: true, webhookEventsTableId: true, webhookEventsTableName: true } } }) +useWebhookModulesQuery({ selection: { fields: { apiName: true, databaseId: true, defaultCapabilities: true, entityField: true, entityTableId: true, functionInvocationModuleId: true, functionModuleId: true, id: true, infraSecretsModuleId: true, namespaceModuleId: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provisions: true, publicSchemaName: true, schemaId: true, scope: true, webhookEndpointsTableId: true, webhookEndpointsTableName: true, webhookEventsTableId: true, webhookEventsTableName: true } } }) +useWebhookModuleQuery({ id: '', selection: { fields: { apiName: true, databaseId: true, defaultCapabilities: true, entityField: true, entityTableId: true, functionInvocationModuleId: true, functionModuleId: true, id: true, infraSecretsModuleId: true, namespaceModuleId: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provisions: true, publicSchemaName: true, schemaId: true, scope: true, webhookEndpointsTableId: true, webhookEndpointsTableName: true, webhookEventsTableId: true, webhookEventsTableName: true } } }) useCreateWebhookModuleMutation({ selection: { fields: { id: true } } }) useUpdateWebhookModuleMutation({ selection: { fields: { id: true } } }) useDeleteWebhookModuleMutation({}) @@ -20,7 +20,7 @@ useDeleteWebhookModuleMutation({}) ```typescript const { data, isLoading } = useWebhookModulesQuery({ - selection: { fields: { apiName: true, databaseId: true, defaultPermissions: true, entityField: true, entityTableId: true, functionInvocationModuleId: true, functionModuleId: true, id: true, infraSecretsModuleId: true, namespaceModuleId: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provisions: true, publicSchemaName: true, schemaId: true, scope: true, webhookEndpointsTableId: true, webhookEndpointsTableName: true, webhookEventsTableId: true, webhookEventsTableName: true } }, + selection: { fields: { apiName: true, databaseId: true, defaultCapabilities: true, entityField: true, entityTableId: true, functionInvocationModuleId: true, functionModuleId: true, id: true, infraSecretsModuleId: true, namespaceModuleId: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provisions: true, publicSchemaName: true, schemaId: true, scope: true, webhookEndpointsTableId: true, webhookEndpointsTableName: true, webhookEventsTableId: true, webhookEventsTableName: true } }, }); ``` @@ -30,5 +30,5 @@ const { data, isLoading } = useWebhookModulesQuery({ const { mutate } = useCreateWebhookModuleMutation({ selection: { fields: { id: true } }, }); -mutate({ apiName: '', databaseId: '', defaultPermissions: '', entityField: '', entityTableId: '', functionInvocationModuleId: '', functionModuleId: '', infraSecretsModuleId: '', namespaceModuleId: '', policies: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', provisions: '', publicSchemaName: '', schemaId: '', scope: '', webhookEndpointsTableId: '', webhookEndpointsTableName: '', webhookEventsTableId: '', webhookEventsTableName: '' }); +mutate({ apiName: '', databaseId: '', defaultCapabilities: '', entityField: '', entityTableId: '', functionInvocationModuleId: '', functionModuleId: '', infraSecretsModuleId: '', namespaceModuleId: '', policies: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', provisions: '', publicSchemaName: '', schemaId: '', scope: '', webhookEndpointsTableId: '', webhookEndpointsTableName: '', webhookEventsTableId: '', webhookEventsTableName: '' }); ``` diff --git a/.agents/skills/hooks-objects/SKILL.md b/.agents/skills/hooks-objects/SKILL.md index bbe72773f3..bb0063deed 100644 --- a/.agents/skills/hooks-objects/SKILL.md +++ b/.agents/skills/hooks-objects/SKILL.md @@ -1,13 +1,13 @@ --- name: hooks-objects -description: React Query hooks for the objects API — provides typed query and mutation hooks for 5 tables and 4 custom operations +description: React Query hooks for the objects API — provides typed query and mutation hooks for 5 tables and 7 custom operations --- # hooks-objects -React Query hooks for the objects API — provides typed query and mutation hooks for 5 tables and 4 custom operations +React Query hooks for the objects API — provides typed query and mutation hooks for 5 tables and 7 custom operations ## Usage @@ -45,5 +45,8 @@ See the `references/` directory for detailed per-entity API documentation: - [store](references/store.md) - [init-empty-repo](references/init-empty-repo.md) - [insert-node-at-path](references/insert-node-at-path.md) +- [insert-nodes-at-paths](references/insert-nodes-at-paths.md) - [provision-bucket](references/provision-bucket.md) +- [set-and-commit](references/set-and-commit.md) - [set-data-at-path](references/set-data-at-path.md) +- [set-many-and-commit](references/set-many-and-commit.md) diff --git a/.agents/skills/hooks-objects/references/insert-nodes-at-paths.md b/.agents/skills/hooks-objects/references/insert-nodes-at-paths.md new file mode 100644 index 0000000000..d7185a48ac --- /dev/null +++ b/.agents/skills/hooks-objects/references/insert-nodes-at-paths.md @@ -0,0 +1,20 @@ +# insertNodesAtPaths + + + +React Query mutation hook for insertNodesAtPaths + +## Usage + +```typescript +const { mutate } = useInsertNodesAtPathsMutation(); mutate({ input: '' }); +``` + +## Examples + +### Use useInsertNodesAtPathsMutation + +```typescript +const { mutate, isLoading } = useInsertNodesAtPathsMutation(); +mutate({ input: '' }); +``` diff --git a/.agents/skills/hooks-objects/references/set-many-and-commit.md b/.agents/skills/hooks-objects/references/set-many-and-commit.md new file mode 100644 index 0000000000..7329c10396 --- /dev/null +++ b/.agents/skills/hooks-objects/references/set-many-and-commit.md @@ -0,0 +1,20 @@ +# setManyAndCommit + + + +React Query mutation hook for setManyAndCommit + +## Usage + +```typescript +const { mutate } = useSetManyAndCommitMutation(); mutate({ input: { entries: '', message: '', refname: '', sId: '', storeId: '' } }); +``` + +## Examples + +### Use useSetManyAndCommitMutation + +```typescript +const { mutate, isLoading } = useSetManyAndCommitMutation(); +mutate({ input: { entries: '', message: '', refname: '', sId: '', storeId: '' } }); +``` diff --git a/.agents/skills/hooks-usage/SKILL.md b/.agents/skills/hooks-usage/SKILL.md index 241555ae28..98e5769e91 100644 --- a/.agents/skills/hooks-usage/SKILL.md +++ b/.agents/skills/hooks-usage/SKILL.md @@ -1,13 +1,13 @@ --- name: hooks-usage -description: React Query hooks for the usage API — provides typed query and mutation hooks for 18 tables and 5 custom operations +description: React Query hooks for the usage API — provides typed query and mutation hooks for 18 tables and 7 custom operations --- # hooks-usage -React Query hooks for the usage API — provides typed query and mutation hooks for 18 tables and 5 custom operations +React Query hooks for the usage API — provides typed query and mutation hooks for 18 tables and 7 custom operations ## Usage @@ -56,6 +56,8 @@ See the `references/` directory for detailed per-entity API documentation: - [org-limit-default](references/org-limit-default.md) - [org-limit-event](references/org-limit-event.md) - [org-limit-warning](references/org-limit-warning.md) +- [capture-app-limit-defaults](references/capture-app-limit-defaults.md) +- [capture-org-limit-defaults](references/capture-org-limit-defaults.md) - [provision-bucket](references/provision-bucket.md) - [seed-app-limit-caps-defaults](references/seed-app-limit-caps-defaults.md) - [seed-app-limit-defaults](references/seed-app-limit-defaults.md) diff --git a/.agents/skills/hooks-usage/references/app-limit-credit-code.md b/.agents/skills/hooks-usage/references/app-limit-credit-code.md index 58c5cb8cc5..91b96717bb 100644 --- a/.agents/skills/hooks-usage/references/app-limit-credit-code.md +++ b/.agents/skills/hooks-usage/references/app-limit-credit-code.md @@ -2,7 +2,7 @@ -Redeemable credit codes managed by admins with the add_credits permission +Redeemable credit codes managed by admins with the add_credits capability ## Usage diff --git a/.agents/skills/hooks-usage/references/capture-app-limit-defaults.md b/.agents/skills/hooks-usage/references/capture-app-limit-defaults.md new file mode 100644 index 0000000000..2262b458c5 --- /dev/null +++ b/.agents/skills/hooks-usage/references/capture-app-limit-defaults.md @@ -0,0 +1,19 @@ +# captureAppLimitDefaults + + + +React Query query hook for captureAppLimitDefaults + +## Usage + +```typescript +useCaptureAppLimitDefaultsQuery() +``` + +## Examples + +### Use useCaptureAppLimitDefaultsQuery + +```typescript +const { data, isLoading } = useCaptureAppLimitDefaultsQuery(); +``` diff --git a/.agents/skills/hooks-usage/references/capture-org-limit-defaults.md b/.agents/skills/hooks-usage/references/capture-org-limit-defaults.md new file mode 100644 index 0000000000..dd2b075f1c --- /dev/null +++ b/.agents/skills/hooks-usage/references/capture-org-limit-defaults.md @@ -0,0 +1,19 @@ +# captureOrgLimitDefaults + + + +React Query query hook for captureOrgLimitDefaults + +## Usage + +```typescript +useCaptureOrgLimitDefaultsQuery() +``` + +## Examples + +### Use useCaptureOrgLimitDefaultsQuery + +```typescript +const { data, isLoading } = useCaptureOrgLimitDefaultsQuery(); +``` diff --git a/.agents/skills/orm-admin/SKILL.md b/.agents/skills/orm-admin/SKILL.md index 2d7f2b08e6..11350e9871 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 30 tables and 12 custom operations +description: ORM client for the admin API — provides typed CRUD operations for 26 tables and 4 custom operations --- # orm-admin -ORM client for the admin API — provides typed CRUD operations for 30 tables and 12 custom operations +ORM client for the admin API — provides typed CRUD operations for 26 tables and 4 custom operations ## Usage @@ -15,7 +15,7 @@ ORM client for the admin API — provides typed CRUD operations for 30 tables an // Import the ORM client import { db } from './orm'; -// Available models: appAdminGrant, appClaimedInvite, appGrant, appInvite, appMembership, appMembershipDefault, appOwnerGrant, appPermission, ... +// Available models: appAdminGrant, appCapabilityDefaultCapability, appCapabilityDefaultGrant, appClaimedInvite, appGrant, appInvite, appMembership, appMembershipDefault, ... db..findMany({ select: { id: true } }).execute() db..findOne({ id: '', select: { id: true } }).execute() db..create({ data: { ... }, select: { id: true } }).execute() @@ -38,18 +38,18 @@ const items = await db.appAdminGrant.findMany({ See the `references/` directory for detailed per-entity API documentation: - [app-admin-grant](references/app-admin-grant.md) +- [app-capability-default-capability](references/app-capability-default-capability.md) +- [app-capability-default-grant](references/app-capability-default-grant.md) - [app-claimed-invite](references/app-claimed-invite.md) - [app-grant](references/app-grant.md) - [app-invite](references/app-invite.md) - [app-membership](references/app-membership.md) - [app-membership-default](references/app-membership-default.md) - [app-owner-grant](references/app-owner-grant.md) -- [app-permission](references/app-permission.md) -- [app-permission-default](references/app-permission-default.md) -- [app-permission-default-grant](references/app-permission-default-grant.md) -- [app-permission-default-permission](references/app-permission-default-permission.md) - [membership-type](references/membership-type.md) - [org-admin-grant](references/org-admin-grant.md) +- [org-capability-default-capability](references/org-capability-default-capability.md) +- [org-capability-default-grant](references/org-capability-default-grant.md) - [org-chart-edge](references/org-chart-edge.md) - [org-chart-edge-grant](references/org-chart-edge-grant.md) - [org-claimed-invite](references/org-claimed-invite.md) @@ -63,19 +63,7 @@ See the `references/` directory for detailed per-entity API documentation: - [org-membership-default](references/org-membership-default.md) - [org-membership-setting](references/org-membership-setting.md) - [org-owner-grant](references/org-owner-grant.md) -- [org-permission](references/org-permission.md) -- [org-permission-default](references/org-permission-default.md) -- [org-permission-default-grant](references/org-permission-default-grant.md) -- [org-permission-default-permission](references/org-permission-default-permission.md) -- [app-permissions-get-by-mask](references/app-permissions-get-by-mask.md) -- [app-permissions-get-mask](references/app-permissions-get-mask.md) -- [app-permissions-get-mask-by-names](references/app-permissions-get-mask-by-names.md) -- [app-permissions-get-padded-mask](references/app-permissions-get-padded-mask.md) - [org-is-manager-of](references/org-is-manager-of.md) -- [org-permissions-get-by-mask](references/org-permissions-get-by-mask.md) -- [org-permissions-get-mask](references/org-permissions-get-mask.md) -- [org-permissions-get-mask-by-names](references/org-permissions-get-mask-by-names.md) -- [org-permissions-get-padded-mask](references/org-permissions-get-padded-mask.md) - [provision-bucket](references/provision-bucket.md) - [submit-app-invite-code](references/submit-app-invite-code.md) - [submit-org-invite-code](references/submit-org-invite-code.md) diff --git a/.agents/skills/orm-admin/references/app-capability-default-capability.md b/.agents/skills/orm-admin/references/app-capability-default-capability.md new file mode 100644 index 0000000000..1354f47ae3 --- /dev/null +++ b/.agents/skills/orm-admin/references/app-capability-default-capability.md @@ -0,0 +1,34 @@ +# appCapabilityDefaultCapability + + + +Join table linking capability defaults to individual capabilities; recompute trigger rebuilds the defaults bitmask + +## Usage + +```typescript +db.appCapabilityDefaultCapability.findMany({ select: { id: true } }).execute() +db.appCapabilityDefaultCapability.findOne({ id: '', select: { id: true } }).execute() +db.appCapabilityDefaultCapability.create({ data: { capabilityId: '' }, select: { id: true } }).execute() +db.appCapabilityDefaultCapability.update({ where: { id: '' }, data: { capabilityId: '' }, select: { id: true } }).execute() +db.appCapabilityDefaultCapability.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all appCapabilityDefaultCapability records + +```typescript +const items = await db.appCapabilityDefaultCapability.findMany({ + select: { id: true, capabilityId: true } +}).execute(); +``` + +### Create a appCapabilityDefaultCapability + +```typescript +const item = await db.appCapabilityDefaultCapability.create({ + data: { capabilityId: '' }, + select: { id: true } +}).execute(); +``` diff --git a/.agents/skills/orm-admin/references/app-capability-default-grant.md b/.agents/skills/orm-admin/references/app-capability-default-grant.md new file mode 100644 index 0000000000..30ba84b9c6 --- /dev/null +++ b/.agents/skills/orm-admin/references/app-capability-default-grant.md @@ -0,0 +1,34 @@ +# appCapabilityDefaultGrant + + + +Audit log of capability additions and removals from the defaults bitmask + +## Usage + +```typescript +db.appCapabilityDefaultGrant.findMany({ select: { id: true } }).execute() +db.appCapabilityDefaultGrant.findOne({ id: '', select: { id: true } }).execute() +db.appCapabilityDefaultGrant.create({ data: { capabilityId: '', grantorId: '', isGrant: '' }, select: { id: true } }).execute() +db.appCapabilityDefaultGrant.update({ where: { id: '' }, data: { capabilityId: '' }, select: { id: true } }).execute() +db.appCapabilityDefaultGrant.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all appCapabilityDefaultGrant records + +```typescript +const items = await db.appCapabilityDefaultGrant.findMany({ + select: { id: true, capabilityId: true } +}).execute(); +``` + +### Create a appCapabilityDefaultGrant + +```typescript +const item = await db.appCapabilityDefaultGrant.create({ + data: { capabilityId: '', grantorId: '', isGrant: '' }, + select: { id: true } +}).execute(); +``` diff --git a/.agents/skills/orm-admin/references/app-grant.md b/.agents/skills/orm-admin/references/app-grant.md index 531fb02203..9ed8dd742c 100644 --- a/.agents/skills/orm-admin/references/app-grant.md +++ b/.agents/skills/orm-admin/references/app-grant.md @@ -2,14 +2,14 @@ -Records of individual permission grants and revocations for members via bitmask +Records of individual capability grants and revocations for members via bitmask ## Usage ```typescript db.appGrant.findMany({ select: { id: true } }).execute() db.appGrant.findOne({ id: '', select: { id: true } }).execute() -db.appGrant.create({ data: { actorId: '', grantorId: '', isGrant: '', permissions: '' }, select: { id: true } }).execute() +db.appGrant.create({ data: { actorId: '', capabilities: '', grantorId: '', isGrant: '' }, select: { id: true } }).execute() db.appGrant.update({ where: { id: '' }, data: { actorId: '' }, select: { id: true } }).execute() db.appGrant.delete({ where: { id: '' } }).execute() ``` @@ -28,7 +28,7 @@ const items = await db.appGrant.findMany({ ```typescript const item = await db.appGrant.create({ - data: { actorId: '', grantorId: '', isGrant: '', permissions: '' }, + data: { actorId: '', capabilities: '', grantorId: '', isGrant: '' }, select: { id: true } }).execute(); ``` diff --git a/.agents/skills/orm-admin/references/app-membership.md b/.agents/skills/orm-admin/references/app-membership.md index f6e58c7020..9718d02e1b 100644 --- a/.agents/skills/orm-admin/references/app-membership.md +++ b/.agents/skills/orm-admin/references/app-membership.md @@ -2,14 +2,14 @@ -Tracks membership records linking actors to entities with permission bitmasks, ownership, and admin status +Tracks membership records linking actors to entities with capability bitmasks, ownership, and admin status ## Usage ```typescript db.appMembership.findMany({ select: { id: true } }).execute() db.appMembership.findOne({ id: '', select: { id: true } }).execute() -db.appMembership.create({ data: { actorId: '', createdBy: '', granted: '', isActive: '', isAdmin: '', isApproved: '', isBanned: '', isDisabled: '', isOwner: '', isVerified: '', permissions: '', profileId: '', updatedBy: '' }, select: { id: true } }).execute() +db.appMembership.create({ data: { actorId: '', capabilities: '', createdBy: '', granted: '', isActive: '', isAdmin: '', isApproved: '', isBanned: '', isDisabled: '', isOwner: '', isVerified: '', profileId: '', updatedBy: '' }, select: { id: true } }).execute() db.appMembership.update({ where: { id: '' }, data: { actorId: '' }, select: { id: true } }).execute() db.appMembership.delete({ where: { id: '' } }).execute() ``` @@ -28,7 +28,7 @@ const items = await db.appMembership.findMany({ ```typescript const item = await db.appMembership.create({ - data: { actorId: '', createdBy: '', granted: '', isActive: '', isAdmin: '', isApproved: '', isBanned: '', isDisabled: '', isOwner: '', isVerified: '', permissions: '', profileId: '', updatedBy: '' }, + data: { actorId: '', capabilities: '', createdBy: '', granted: '', isActive: '', isAdmin: '', isApproved: '', isBanned: '', isDisabled: '', isOwner: '', isVerified: '', profileId: '', updatedBy: '' }, select: { id: true } }).execute(); ``` diff --git a/.agents/skills/orm-admin/references/org-capability-default-capability.md b/.agents/skills/orm-admin/references/org-capability-default-capability.md new file mode 100644 index 0000000000..fdaf446fda --- /dev/null +++ b/.agents/skills/orm-admin/references/org-capability-default-capability.md @@ -0,0 +1,34 @@ +# orgCapabilityDefaultCapability + + + +Join table linking capability defaults to individual capabilities; recompute trigger rebuilds the defaults bitmask + +## Usage + +```typescript +db.orgCapabilityDefaultCapability.findMany({ select: { id: true } }).execute() +db.orgCapabilityDefaultCapability.findOne({ id: '', select: { id: true } }).execute() +db.orgCapabilityDefaultCapability.create({ data: { capabilityId: '', entityId: '' }, select: { id: true } }).execute() +db.orgCapabilityDefaultCapability.update({ where: { id: '' }, data: { capabilityId: '' }, select: { id: true } }).execute() +db.orgCapabilityDefaultCapability.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all orgCapabilityDefaultCapability records + +```typescript +const items = await db.orgCapabilityDefaultCapability.findMany({ + select: { id: true, capabilityId: true } +}).execute(); +``` + +### Create a orgCapabilityDefaultCapability + +```typescript +const item = await db.orgCapabilityDefaultCapability.create({ + data: { capabilityId: '', entityId: '' }, + select: { id: true } +}).execute(); +``` diff --git a/.agents/skills/orm-admin/references/org-capability-default-grant.md b/.agents/skills/orm-admin/references/org-capability-default-grant.md new file mode 100644 index 0000000000..fe5075f112 --- /dev/null +++ b/.agents/skills/orm-admin/references/org-capability-default-grant.md @@ -0,0 +1,34 @@ +# orgCapabilityDefaultGrant + + + +Audit log of capability additions and removals from the defaults bitmask + +## Usage + +```typescript +db.orgCapabilityDefaultGrant.findMany({ select: { id: true } }).execute() +db.orgCapabilityDefaultGrant.findOne({ id: '', select: { id: true } }).execute() +db.orgCapabilityDefaultGrant.create({ data: { capabilityId: '', entityId: '', grantorId: '', isGrant: '' }, select: { id: true } }).execute() +db.orgCapabilityDefaultGrant.update({ where: { id: '' }, data: { capabilityId: '' }, select: { id: true } }).execute() +db.orgCapabilityDefaultGrant.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all orgCapabilityDefaultGrant records + +```typescript +const items = await db.orgCapabilityDefaultGrant.findMany({ + select: { id: true, capabilityId: true } +}).execute(); +``` + +### Create a orgCapabilityDefaultGrant + +```typescript +const item = await db.orgCapabilityDefaultGrant.create({ + data: { capabilityId: '', entityId: '', grantorId: '', isGrant: '' }, + select: { id: true } +}).execute(); +``` diff --git a/.agents/skills/orm-admin/references/org-grant.md b/.agents/skills/orm-admin/references/org-grant.md index a54da209fc..9e0f48c18d 100644 --- a/.agents/skills/orm-admin/references/org-grant.md +++ b/.agents/skills/orm-admin/references/org-grant.md @@ -2,14 +2,14 @@ -Records of individual permission grants and revocations for members via bitmask +Records of individual capability grants and revocations for members via bitmask ## Usage ```typescript db.orgGrant.findMany({ select: { id: true } }).execute() db.orgGrant.findOne({ id: '', select: { id: true } }).execute() -db.orgGrant.create({ data: { actorId: '', entityId: '', grantorId: '', isGrant: '', permissions: '' }, select: { id: true } }).execute() +db.orgGrant.create({ data: { actorId: '', capabilities: '', entityId: '', grantorId: '', isGrant: '' }, select: { id: true } }).execute() db.orgGrant.update({ where: { id: '' }, data: { actorId: '' }, select: { id: true } }).execute() db.orgGrant.delete({ where: { id: '' } }).execute() ``` @@ -28,7 +28,7 @@ const items = await db.orgGrant.findMany({ ```typescript const item = await db.orgGrant.create({ - data: { actorId: '', entityId: '', grantorId: '', isGrant: '', permissions: '' }, + data: { actorId: '', capabilities: '', entityId: '', grantorId: '', isGrant: '' }, select: { id: true } }).execute(); ``` diff --git a/.agents/skills/orm-admin/references/org-membership.md b/.agents/skills/orm-admin/references/org-membership.md index be25eb145b..02700b46bf 100644 --- a/.agents/skills/orm-admin/references/org-membership.md +++ b/.agents/skills/orm-admin/references/org-membership.md @@ -2,14 +2,14 @@ -Tracks membership records linking actors to entities with permission bitmasks, ownership, and admin status +Tracks membership records linking actors to entities with capability bitmasks, ownership, and admin status ## Usage ```typescript db.orgMembership.findMany({ select: { id: true } }).execute() db.orgMembership.findOne({ id: '', select: { id: true } }).execute() -db.orgMembership.create({ data: { actorId: '', createdBy: '', entityId: '', granted: '', isActive: '', isAdmin: '', isApproved: '', isBanned: '', isDisabled: '', isExternal: '', isOwner: '', isReadOnly: '', permissions: '', profileId: '', updatedBy: '' }, select: { id: true } }).execute() +db.orgMembership.create({ data: { actorId: '', capabilities: '', createdBy: '', entityId: '', granted: '', isActive: '', isAdmin: '', isApproved: '', isBanned: '', isDisabled: '', isExternal: '', isOwner: '', isReadOnly: '', profileId: '', updatedBy: '' }, select: { id: true } }).execute() db.orgMembership.update({ where: { id: '' }, data: { actorId: '' }, select: { id: true } }).execute() db.orgMembership.delete({ where: { id: '' } }).execute() ``` @@ -28,7 +28,7 @@ const items = await db.orgMembership.findMany({ ```typescript const item = await db.orgMembership.create({ - data: { actorId: '', createdBy: '', entityId: '', granted: '', isActive: '', isAdmin: '', isApproved: '', isBanned: '', isDisabled: '', isExternal: '', isOwner: '', isReadOnly: '', permissions: '', profileId: '', updatedBy: '' }, + data: { actorId: '', capabilities: '', createdBy: '', entityId: '', granted: '', isActive: '', isAdmin: '', isApproved: '', isBanned: '', isDisabled: '', isExternal: '', isOwner: '', isReadOnly: '', profileId: '', updatedBy: '' }, select: { id: true } }).execute(); ``` diff --git a/.agents/skills/orm-api/SKILL.md b/.agents/skills/orm-api/SKILL.md index 058ac6134e..ee5c3f46bf 100644 --- a/.agents/skills/orm-api/SKILL.md +++ b/.agents/skills/orm-api/SKILL.md @@ -1,13 +1,13 @@ --- name: orm-api -description: ORM client for the api API — provides typed CRUD operations for 80 tables and 17 custom operations +description: ORM client for the api API — provides typed CRUD operations for 86 tables and 17 custom operations --- # orm-api -ORM client for the api API — provides typed CRUD operations for 80 tables and 17 custom operations +ORM client for the api API — provides typed CRUD operations for 86 tables and 17 custom operations ## Usage @@ -15,7 +15,7 @@ ORM client for the api API — provides typed CRUD operations for 80 tables and // Import the ORM client import { db } from './orm'; -// Available models: apiSchema, apiSetting, apis, astMigration, checkConstraint, compositeType, corsSetting, database, ... +// Available models: api, apiSchema, apiSetting, astMigration, checkConstraint, compositeType, corsSetting, database, ... db..findMany({ select: { id: true } }).execute() db..findOne({ id: '', select: { id: true } }).execute() db..create({ data: { ... }, select: { id: true } }).execute() @@ -28,7 +28,7 @@ db..delete({ where: { id: '' } }).execute() ### Query records ```typescript -const items = await db.apiSchema.findMany({ +const items = await db.api.findMany({ select: { id: true } }).execute(); ``` @@ -37,9 +37,9 @@ const items = await db.apiSchema.findMany({ See the `references/` directory for detailed per-entity API documentation: +- [api](references/api.md) - [api-schema](references/api-schema.md) - [api-setting](references/api-setting.md) -- [apis](references/apis.md) - [ast-migration](references/ast-migration.md) - [check-constraint](references/check-constraint.md) - [composite-type](references/composite-type.md) @@ -53,6 +53,9 @@ See the `references/` directory for detailed per-entity API documentation: - [domain-event](references/domain-event.md) - [domain-type](references/domain-type.md) - [domain-verification](references/domain-verification.md) +- [email-identity](references/email-identity.md) +- [email-provider-account](references/email-provider-account.md) +- [email-site-identity](references/email-site-identity.md) - [embedding-chunk](references/embedding-chunk.md) - [enum](references/enum.md) - [exclusion-constraint](references/exclusion-constraint.md) @@ -69,13 +72,16 @@ See the `references/` directory for detailed per-entity API documentation: - [node-type-registry](references/node-type-registry.md) - [page](references/page.md) - [partition](references/partition.md) +- [platform-api](references/platform-api.md) - [platform-api-schema](references/platform-api-schema.md) - [platform-api-setting](references/platform-api-setting.md) -- [platform-apis](references/platform-apis.md) - [platform-cors-setting](references/platform-cors-setting.md) - [platform-domain](references/platform-domain.md) - [platform-domain-event](references/platform-domain-event.md) - [platform-domain-verification](references/platform-domain-verification.md) +- [platform-email-identity](references/platform-email-identity.md) +- [platform-email-provider-account](references/platform-email-provider-account.md) +- [platform-email-site-identity](references/platform-email-site-identity.md) - [platform-managed-domain](references/platform-managed-domain.md) - [platform-page](references/platform-page.md) - [platform-site-app-link](references/platform-site-app-link.md) diff --git a/.agents/skills/orm-api/references/email-identity.md b/.agents/skills/orm-api/references/email-identity.md new file mode 100644 index 0000000000..677c88caf4 --- /dev/null +++ b/.agents/skills/orm-api/references/email-identity.md @@ -0,0 +1,34 @@ +# emailIdentity + + + +Outbound sender identity: the from/reply-to/support addresses a tenant sends as, and the provider account the mail leaves through + +## Usage + +```typescript +db.emailIdentity.findMany({ select: { id: true } }).execute() +db.emailIdentity.findOne({ id: '', select: { id: true } }).execute() +db.emailIdentity.create({ data: { databaseId: '', fromAddress: '', fromName: '', isActive: '', isDefault: '', name: '', providerAccountId: '', replyToAddress: '', supportAddress: '', transportMode: '' }, select: { id: true } }).execute() +db.emailIdentity.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() +db.emailIdentity.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all emailIdentity records + +```typescript +const items = await db.emailIdentity.findMany({ + select: { id: true, databaseId: true } +}).execute(); +``` + +### Create a emailIdentity + +```typescript +const item = await db.emailIdentity.create({ + data: { databaseId: '', fromAddress: '', fromName: '', isActive: '', isDefault: '', name: '', providerAccountId: '', replyToAddress: '', supportAddress: '', transportMode: '' }, + select: { id: true } +}).execute(); +``` diff --git a/.agents/skills/orm-api/references/email-provider-account.md b/.agents/skills/orm-api/references/email-provider-account.md new file mode 100644 index 0000000000..90061a5248 --- /dev/null +++ b/.agents/skills/orm-api/references/email-provider-account.md @@ -0,0 +1,34 @@ +# emailProviderAccount + + + +A tenant's configured account at an email provider: provider slug, endpoint coordinates, and the NAME of the secret holding its credentials (never the credential itself) + +## Usage + +```typescript +db.emailProviderAccount.findMany({ select: { id: true } }).execute() +db.emailProviderAccount.findOne({ id: '', select: { id: true } }).execute() +db.emailProviderAccount.create({ data: { apiBaseUrl: '', credentialsSecretName: '', databaseId: '', isActive: '', name: '', provider: '', providerAccountName: '', region: '', smtpHost: '', smtpPort: '', smtpSecure: '', smtpUser: '', webhookSigningSecretName: '' }, select: { id: true } }).execute() +db.emailProviderAccount.update({ where: { id: '' }, data: { apiBaseUrl: '' }, select: { id: true } }).execute() +db.emailProviderAccount.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all emailProviderAccount records + +```typescript +const items = await db.emailProviderAccount.findMany({ + select: { id: true, apiBaseUrl: true } +}).execute(); +``` + +### Create a emailProviderAccount + +```typescript +const item = await db.emailProviderAccount.create({ + data: { apiBaseUrl: '', credentialsSecretName: '', databaseId: '', isActive: '', name: '', provider: '', providerAccountName: '', region: '', smtpHost: '', smtpPort: '', smtpSecure: '', smtpUser: '', webhookSigningSecretName: '' }, + select: { id: true } +}).execute(); +``` diff --git a/.agents/skills/orm-api/references/email-site-identity.md b/.agents/skills/orm-api/references/email-site-identity.md new file mode 100644 index 0000000000..c7e35877a5 --- /dev/null +++ b/.agents/skills/orm-api/references/email-site-identity.md @@ -0,0 +1,34 @@ +# emailSiteIdentity + + + +Binds a site to the identity it sends as. Unique on site_id: one identity per site, but many sites may share an identity. + +## Usage + +```typescript +db.emailSiteIdentity.findMany({ select: { id: true } }).execute() +db.emailSiteIdentity.findOne({ id: '', select: { id: true } }).execute() +db.emailSiteIdentity.create({ data: { databaseId: '', emailIdentityId: '', siteId: '' }, select: { id: true } }).execute() +db.emailSiteIdentity.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() +db.emailSiteIdentity.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all emailSiteIdentity records + +```typescript +const items = await db.emailSiteIdentity.findMany({ + select: { id: true, databaseId: true } +}).execute(); +``` + +### Create a emailSiteIdentity + +```typescript +const item = await db.emailSiteIdentity.create({ + data: { databaseId: '', emailIdentityId: '', siteId: '' }, + select: { id: true } +}).execute(); +``` diff --git a/.agents/skills/orm-api/references/platform-email-identity.md b/.agents/skills/orm-api/references/platform-email-identity.md new file mode 100644 index 0000000000..de12725a8b --- /dev/null +++ b/.agents/skills/orm-api/references/platform-email-identity.md @@ -0,0 +1,34 @@ +# platformEmailIdentity + + + +Outbound sender identity: the from/reply-to/support addresses a tenant sends as, and the provider account the mail leaves through + +## Usage + +```typescript +db.platformEmailIdentity.findMany({ select: { id: true } }).execute() +db.platformEmailIdentity.findOne({ id: '', select: { id: true } }).execute() +db.platformEmailIdentity.create({ data: { fromAddress: '', fromName: '', isActive: '', isDefault: '', name: '', providerAccountId: '', replyToAddress: '', supportAddress: '', transportMode: '' }, select: { id: true } }).execute() +db.platformEmailIdentity.update({ where: { id: '' }, data: { fromAddress: '' }, select: { id: true } }).execute() +db.platformEmailIdentity.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all platformEmailIdentity records + +```typescript +const items = await db.platformEmailIdentity.findMany({ + select: { id: true, fromAddress: true } +}).execute(); +``` + +### Create a platformEmailIdentity + +```typescript +const item = await db.platformEmailIdentity.create({ + data: { fromAddress: '', fromName: '', isActive: '', isDefault: '', name: '', providerAccountId: '', replyToAddress: '', supportAddress: '', transportMode: '' }, + select: { id: true } +}).execute(); +``` diff --git a/.agents/skills/orm-api/references/platform-email-provider-account.md b/.agents/skills/orm-api/references/platform-email-provider-account.md new file mode 100644 index 0000000000..b20f47f543 --- /dev/null +++ b/.agents/skills/orm-api/references/platform-email-provider-account.md @@ -0,0 +1,34 @@ +# platformEmailProviderAccount + + + +A tenant's configured account at an email provider: provider slug, endpoint coordinates, and the NAME of the secret holding its credentials (never the credential itself) + +## Usage + +```typescript +db.platformEmailProviderAccount.findMany({ select: { id: true } }).execute() +db.platformEmailProviderAccount.findOne({ id: '', select: { id: true } }).execute() +db.platformEmailProviderAccount.create({ data: { apiBaseUrl: '', credentialsSecretName: '', isActive: '', name: '', provider: '', providerAccountName: '', region: '', smtpHost: '', smtpPort: '', smtpSecure: '', smtpUser: '', webhookSigningSecretName: '' }, select: { id: true } }).execute() +db.platformEmailProviderAccount.update({ where: { id: '' }, data: { apiBaseUrl: '' }, select: { id: true } }).execute() +db.platformEmailProviderAccount.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all platformEmailProviderAccount records + +```typescript +const items = await db.platformEmailProviderAccount.findMany({ + select: { id: true, apiBaseUrl: true } +}).execute(); +``` + +### Create a platformEmailProviderAccount + +```typescript +const item = await db.platformEmailProviderAccount.create({ + data: { apiBaseUrl: '', credentialsSecretName: '', isActive: '', name: '', provider: '', providerAccountName: '', region: '', smtpHost: '', smtpPort: '', smtpSecure: '', smtpUser: '', webhookSigningSecretName: '' }, + select: { id: true } +}).execute(); +``` diff --git a/.agents/skills/orm-api/references/platform-email-site-identity.md b/.agents/skills/orm-api/references/platform-email-site-identity.md new file mode 100644 index 0000000000..e6ece12432 --- /dev/null +++ b/.agents/skills/orm-api/references/platform-email-site-identity.md @@ -0,0 +1,34 @@ +# platformEmailSiteIdentity + + + +Binds a site to the identity it sends as. Unique on site_id: one identity per site, but many sites may share an identity. + +## Usage + +```typescript +db.platformEmailSiteIdentity.findMany({ select: { id: true } }).execute() +db.platformEmailSiteIdentity.findOne({ id: '', select: { id: true } }).execute() +db.platformEmailSiteIdentity.create({ data: { emailIdentityId: '', siteId: '' }, select: { id: true } }).execute() +db.platformEmailSiteIdentity.update({ where: { id: '' }, data: { emailIdentityId: '' }, select: { id: true } }).execute() +db.platformEmailSiteIdentity.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all platformEmailSiteIdentity records + +```typescript +const items = await db.platformEmailSiteIdentity.findMany({ + select: { id: true, emailIdentityId: true } +}).execute(); +``` + +### Create a platformEmailSiteIdentity + +```typescript +const item = await db.platformEmailSiteIdentity.create({ + data: { emailIdentityId: '', siteId: '' }, + select: { id: true } +}).execute(); +``` diff --git a/.agents/skills/orm-auth/SKILL.md b/.agents/skills/orm-auth/SKILL.md index c8e9e97a1f..130c35a603 100644 --- a/.agents/skills/orm-auth/SKILL.md +++ b/.agents/skills/orm-auth/SKILL.md @@ -1,13 +1,13 @@ --- name: orm-auth -description: ORM client for the auth API — provides typed CRUD operations for 13 tables and 35 custom operations +description: ORM client for the auth API — provides typed CRUD operations for 13 tables and 37 custom operations --- # orm-auth -ORM client for the auth API — provides typed CRUD operations for 13 tables and 35 custom operations +ORM client for the auth API — provides typed CRUD operations for 13 tables and 37 custom operations ## Usage @@ -78,9 +78,11 @@ See the `references/` directory for detailed per-entity API documentation: - [set-password](references/set-password.md) - [sign-in](references/sign-in.md) - [sign-in-cross-origin](references/sign-in-cross-origin.md) +- [sign-in-magic-link](references/sign-in-magic-link.md) - [sign-in-sms-otp](references/sign-in-sms-otp.md) - [sign-out](references/sign-out.md) - [sign-up](references/sign-up.md) +- [sign-up-magic-link](references/sign-up-magic-link.md) - [sign-up-sms](references/sign-up-sms.md) - [verify-email](references/verify-email.md) - [verify-password](references/verify-password.md) diff --git a/.agents/skills/orm-auth/references/principal-scope-override.md b/.agents/skills/orm-auth/references/principal-scope-override.md index 1be7a26bca..3763ab214c 100644 --- a/.agents/skills/orm-auth/references/principal-scope-override.md +++ b/.agents/skills/orm-auth/references/principal-scope-override.md @@ -2,7 +2,7 @@ -Per-scope permission overrides for principals. No row = full access; row exists = apply restrictions. +Per-scope capability overrides for principals. No row = full access; row exists = apply restrictions. ## Usage diff --git a/.agents/skills/orm-auth/references/sign-in-magic-link.md b/.agents/skills/orm-auth/references/sign-in-magic-link.md new file mode 100644 index 0000000000..9945e184e6 --- /dev/null +++ b/.agents/skills/orm-auth/references/sign-in-magic-link.md @@ -0,0 +1,19 @@ +# signInMagicLink + + + +Execute the signInMagicLink mutation + +## Usage + +```typescript +db.mutation.signInMagicLink({ input: { credentialKind: '', deviceToken: '', rememberMe: '', token: '' } }).execute() +``` + +## Examples + +### Run signInMagicLink + +```typescript +const result = await db.mutation.signInMagicLink({ input: { credentialKind: '', deviceToken: '', rememberMe: '', token: '' } }).execute(); +``` diff --git a/.agents/skills/orm-auth/references/sign-up-magic-link.md b/.agents/skills/orm-auth/references/sign-up-magic-link.md new file mode 100644 index 0000000000..f965ff86ea --- /dev/null +++ b/.agents/skills/orm-auth/references/sign-up-magic-link.md @@ -0,0 +1,19 @@ +# signUpMagicLink + + + +Execute the signUpMagicLink mutation + +## Usage + +```typescript +db.mutation.signUpMagicLink({ input: { credentialKind: '', deviceToken: '', rememberMe: '', token: '' } }).execute() +``` + +## Examples + +### Run signUpMagicLink + +```typescript +const result = await db.mutation.signUpMagicLink({ input: { credentialKind: '', deviceToken: '', rememberMe: '', token: '' } }).execute(); +``` diff --git a/.agents/skills/orm-compute/SKILL.md b/.agents/skills/orm-compute/SKILL.md index c16969bcf4..2958f34c3a 100644 --- a/.agents/skills/orm-compute/SKILL.md +++ b/.agents/skills/orm-compute/SKILL.md @@ -1,13 +1,13 @@ --- name: orm-compute -description: ORM client for the compute API — provides typed CRUD operations for 69 tables and 29 custom operations +description: ORM client for the compute API — provides typed CRUD operations for 70 tables and 38 custom operations --- # orm-compute -ORM client for the compute API — provides typed CRUD operations for 69 tables and 29 custom operations +ORM client for the compute API — provides typed CRUD operations for 70 tables and 38 custom operations ## Usage @@ -15,7 +15,7 @@ ORM client for the compute API — provides typed CRUD operations for 69 tables // Import the ORM client import { db } from './orm'; -// Available models: dbPreset, functionApiBinding, functionCapabilityBinding, functionDefinition, functionDeployment, functionDeploymentEvent, functionExecutionLog, functionGraphCommit, ... +// Available models: contentPreset, dbPreset, functionApiBinding, functionCapabilityBinding, functionDefinition, functionDeployment, functionDeploymentEvent, functionExecutionLog, ... db..findMany({ select: { id: true } }).execute() db..findOne({ id: '', select: { id: true } }).execute() db..create({ data: { ... }, select: { id: true } }).execute() @@ -28,7 +28,7 @@ db..delete({ where: { id: '' } }).execute() ### Query records ```typescript -const items = await db.dbPreset.findMany({ +const items = await db.contentPreset.findMany({ select: { id: true } }).execute(); ``` @@ -37,6 +37,7 @@ const items = await db.dbPreset.findMany({ See the `references/` directory for detailed per-entity API documentation: +- [content-preset](references/content-preset.md) - [db-preset](references/db-preset.md) - [function-api-binding](references/function-api-binding.md) - [function-capability-binding](references/function-capability-binding.md) @@ -116,12 +117,19 @@ See the `references/` directory for detailed per-entity API documentation: - [import-graph-json](references/import-graph-json.md) - [infra-init-empty-repo](references/infra-init-empty-repo.md) - [infra-insert-node-at-path](references/infra-insert-node-at-path.md) +- [infra-insert-nodes-at-paths](references/infra-insert-nodes-at-paths.md) +- [infra-set-and-commit](references/infra-set-and-commit.md) - [infra-set-data-at-path](references/infra-set-data-at-path.md) +- [infra-set-many-and-commit](references/infra-set-many-and-commit.md) - [init-empty-repo](references/init-empty-repo.md) - [insert-node-at-path](references/insert-node-at-path.md) +- [insert-nodes-at-paths](references/insert-nodes-at-paths.md) - [platform-infra-init-empty-repo](references/platform-infra-init-empty-repo.md) - [platform-infra-insert-node-at-path](references/platform-infra-insert-node-at-path.md) +- [platform-infra-insert-nodes-at-paths](references/platform-infra-insert-nodes-at-paths.md) +- [platform-infra-set-and-commit](references/platform-infra-set-and-commit.md) - [platform-infra-set-data-at-path](references/platform-infra-set-data-at-path.md) +- [platform-infra-set-many-and-commit](references/platform-infra-set-many-and-commit.md) - [platform-resource-installations-install](references/platform-resource-installations-install.md) - [platform-resource-installations-rollback](references/platform-resource-installations-rollback.md) - [platform-resource-installations-uninstall](references/platform-resource-installations-uninstall.md) @@ -132,6 +140,8 @@ See the `references/` directory for detailed per-entity API documentation: - [resource-installations-uninstall](references/resource-installations-uninstall.md) - [resource-installations-upgrade](references/resource-installations-upgrade.md) - [save-graph](references/save-graph.md) +- [set-and-commit](references/set-and-commit.md) - [set-data-at-path](references/set-data-at-path.md) +- [set-many-and-commit](references/set-many-and-commit.md) - [start-execution](references/start-execution.md) - [validate-function-graph](references/validate-function-graph.md) diff --git a/.agents/skills/orm-compute/references/content-preset.md b/.agents/skills/orm-compute/references/content-preset.md new file mode 100644 index 0000000000..a578d21e7f --- /dev/null +++ b/.agents/skills/orm-compute/references/content-preset.md @@ -0,0 +1,34 @@ +# contentPreset + + + +Seed-content preset catalog (limit defaults, trust ladders, ...) — merkle-versioned head over the infra store + +## Usage + +```typescript +db.contentPreset.findMany({ select: { id: true } }).execute() +db.contentPreset.findOne({ id: '', select: { id: true } }).execute() +db.contentPreset.create({ data: { active: '', commitId: '', definition: '', description: '', kind: '', label: '', slug: '', storeId: '' }, select: { id: true } }).execute() +db.contentPreset.update({ where: { id: '' }, data: { active: '' }, select: { id: true } }).execute() +db.contentPreset.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all contentPreset records + +```typescript +const items = await db.contentPreset.findMany({ + select: { id: true, active: true } +}).execute(); +``` + +### Create a contentPreset + +```typescript +const item = await db.contentPreset.create({ + data: { active: '', commitId: '', definition: '', description: '', kind: '', label: '', slug: '', storeId: '' }, + select: { id: true } +}).execute(); +``` diff --git a/.agents/skills/orm-compute/references/function-definition.md b/.agents/skills/orm-compute/references/function-definition.md index eba02866b7..f79b1115bd 100644 --- a/.agents/skills/orm-compute/references/function-definition.md +++ b/.agents/skills/orm-compute/references/function-definition.md @@ -9,7 +9,7 @@ Function definitions — registered cloud functions with routing, queue, and ret ```typescript db.functionDefinition.findMany({ select: { id: true } }).execute() db.functionDefinition.findOne({ id: '', select: { id: true } }).execute() -db.functionDefinition.create({ data: { accessChannels: '', category: '', concurrency: '', cpuLimitMillicores: '', cpuRequestMillicores: '', databaseId: '', description: '', fnCategory: '', functionColumns: '', graphId: '', icon: '', image: '', inputs: '', integrations: '', isPublished: '', maxAttempts: '', memoryLimitBytes: '', memoryRequestBytes: '', moduleTable: '', name: '', outputs: '', payloadArgs: '', priority: '', props: '', protected: '', publishedAt: '', queueName: '', requiredBuckets: '', requiredConfigs: '', requiredModels: '', requiredSecrets: '', resources: '', runtime: '', scaleMax: '', scaleMin: '', targetFunction: '', targetSchema: '', taskIdentifier: '', timeoutSeconds: '', volatile: '' }, select: { id: true } }).execute() +db.functionDefinition.create({ data: { accessChannels: '', category: '', concurrency: '', cpuLimitMillicores: '', cpuRequestMillicores: '', databaseId: '', description: '', fnCategory: '', functionColumns: '', graphId: '', icon: '', image: '', inputs: '', integrations: '', isPublished: '', maxAttempts: '', memoryLimitBytes: '', memoryRequestBytes: '', moduleTable: '', name: '', outputs: '', payloadArgs: '', priority: '', props: '', protected: '', publishedAt: '', queueName: '', requiredBuckets: '', requiredConfigs: '', requiredModels: '', requiredModules: '', requiredSecrets: '', resources: '', runtime: '', scaleMax: '', scaleMin: '', targetFunction: '', targetSchema: '', taskIdentifier: '', timeoutSeconds: '', volatile: '' }, select: { id: true } }).execute() db.functionDefinition.update({ where: { id: '' }, data: { accessChannels: '' }, select: { id: true } }).execute() db.functionDefinition.delete({ where: { id: '' } }).execute() ``` @@ -28,7 +28,7 @@ const items = await db.functionDefinition.findMany({ ```typescript const item = await db.functionDefinition.create({ - data: { accessChannels: '', category: '', concurrency: '', cpuLimitMillicores: '', cpuRequestMillicores: '', databaseId: '', description: '', fnCategory: '', functionColumns: '', graphId: '', icon: '', image: '', inputs: '', integrations: '', isPublished: '', maxAttempts: '', memoryLimitBytes: '', memoryRequestBytes: '', moduleTable: '', name: '', outputs: '', payloadArgs: '', priority: '', props: '', protected: '', publishedAt: '', queueName: '', requiredBuckets: '', requiredConfigs: '', requiredModels: '', requiredSecrets: '', resources: '', runtime: '', scaleMax: '', scaleMin: '', targetFunction: '', targetSchema: '', taskIdentifier: '', timeoutSeconds: '', volatile: '' }, + data: { accessChannels: '', category: '', concurrency: '', cpuLimitMillicores: '', cpuRequestMillicores: '', databaseId: '', description: '', fnCategory: '', functionColumns: '', graphId: '', icon: '', image: '', inputs: '', integrations: '', isPublished: '', maxAttempts: '', memoryLimitBytes: '', memoryRequestBytes: '', moduleTable: '', name: '', outputs: '', payloadArgs: '', priority: '', props: '', protected: '', publishedAt: '', queueName: '', requiredBuckets: '', requiredConfigs: '', requiredModels: '', requiredModules: '', requiredSecrets: '', resources: '', runtime: '', scaleMax: '', scaleMin: '', targetFunction: '', targetSchema: '', taskIdentifier: '', timeoutSeconds: '', volatile: '' }, select: { id: true } }).execute(); ``` diff --git a/.agents/skills/orm-compute/references/function-deployment.md b/.agents/skills/orm-compute/references/function-deployment.md index 8509eae494..d5261c1276 100644 --- a/.agents/skills/orm-compute/references/function-deployment.md +++ b/.agents/skills/orm-compute/references/function-deployment.md @@ -9,7 +9,7 @@ Function deployment bindings — ties a handler image to a namespace for Knative ```typescript db.functionDeployment.findMany({ select: { id: true } }).execute() db.functionDeployment.findOne({ id: '', select: { id: true } }).execute() -db.functionDeployment.create({ data: { annotations: '', concurrency: '', databaseId: '', errorCount: '', handlerName: '', image: '', imageVersion: '', labels: '', lastError: '', lastErrorAt: '', namespaceId: '', resources: '', revision: '', scaleMax: '', scaleMin: '', serviceName: '', serviceUrl: '', status: '', timeoutSeconds: '' }, select: { id: true } }).execute() +db.functionDeployment.create({ data: { annotations: '', concurrency: '', databaseId: '', errorCount: '', handlerName: '', image: '', imageVersion: '', labels: '', lastError: '', lastErrorAt: '', namespaceId: '', realm: '', resources: '', revision: '', scaleMax: '', scaleMin: '', serviceName: '', serviceUrl: '', status: '', timeoutSeconds: '' }, select: { id: true } }).execute() db.functionDeployment.update({ where: { id: '' }, data: { annotations: '' }, select: { id: true } }).execute() db.functionDeployment.delete({ where: { id: '' } }).execute() ``` @@ -28,7 +28,7 @@ const items = await db.functionDeployment.findMany({ ```typescript const item = await db.functionDeployment.create({ - data: { annotations: '', concurrency: '', databaseId: '', errorCount: '', handlerName: '', image: '', imageVersion: '', labels: '', lastError: '', lastErrorAt: '', namespaceId: '', resources: '', revision: '', scaleMax: '', scaleMin: '', serviceName: '', serviceUrl: '', status: '', timeoutSeconds: '' }, + data: { annotations: '', concurrency: '', databaseId: '', errorCount: '', handlerName: '', image: '', imageVersion: '', labels: '', lastError: '', lastErrorAt: '', namespaceId: '', realm: '', resources: '', revision: '', scaleMax: '', scaleMin: '', serviceName: '', serviceUrl: '', status: '', timeoutSeconds: '' }, select: { id: true } }).execute(); ``` diff --git a/.agents/skills/orm-compute/references/infra-insert-nodes-at-paths.md b/.agents/skills/orm-compute/references/infra-insert-nodes-at-paths.md new file mode 100644 index 0000000000..3a6a112c6a --- /dev/null +++ b/.agents/skills/orm-compute/references/infra-insert-nodes-at-paths.md @@ -0,0 +1,19 @@ +# infraInsertNodesAtPaths + + + +Execute the infraInsertNodesAtPaths mutation + +## Usage + +```typescript +db.mutation.infraInsertNodesAtPaths({ input: '' }).execute() +``` + +## Examples + +### Run infraInsertNodesAtPaths + +```typescript +const result = await db.mutation.infraInsertNodesAtPaths({ input: '' }).execute(); +``` diff --git a/.agents/skills/orm-compute/references/infra-set-and-commit.md b/.agents/skills/orm-compute/references/infra-set-and-commit.md new file mode 100644 index 0000000000..1cafda087d --- /dev/null +++ b/.agents/skills/orm-compute/references/infra-set-and-commit.md @@ -0,0 +1,19 @@ +# infraSetAndCommit + + + +Execute the infraSetAndCommit mutation + +## Usage + +```typescript +db.mutation.infraSetAndCommit({ input: '' }).execute() +``` + +## Examples + +### Run infraSetAndCommit + +```typescript +const result = await db.mutation.infraSetAndCommit({ input: '' }).execute(); +``` diff --git a/.agents/skills/orm-compute/references/infra-set-many-and-commit.md b/.agents/skills/orm-compute/references/infra-set-many-and-commit.md new file mode 100644 index 0000000000..2232a8908d --- /dev/null +++ b/.agents/skills/orm-compute/references/infra-set-many-and-commit.md @@ -0,0 +1,19 @@ +# infraSetManyAndCommit + + + +Execute the infraSetManyAndCommit mutation + +## Usage + +```typescript +db.mutation.infraSetManyAndCommit({ input: { entries: '', message: '', refname: '', sId: '', storeId: '' } }).execute() +``` + +## Examples + +### Run infraSetManyAndCommit + +```typescript +const result = await db.mutation.infraSetManyAndCommit({ input: { entries: '', message: '', refname: '', sId: '', storeId: '' } }).execute(); +``` diff --git a/.agents/skills/orm-compute/references/insert-nodes-at-paths.md b/.agents/skills/orm-compute/references/insert-nodes-at-paths.md new file mode 100644 index 0000000000..92134612a9 --- /dev/null +++ b/.agents/skills/orm-compute/references/insert-nodes-at-paths.md @@ -0,0 +1,19 @@ +# insertNodesAtPaths + + + +Execute the insertNodesAtPaths mutation + +## Usage + +```typescript +db.mutation.insertNodesAtPaths({ input: '' }).execute() +``` + +## Examples + +### Run insertNodesAtPaths + +```typescript +const result = await db.mutation.insertNodesAtPaths({ input: '' }).execute(); +``` diff --git a/.agents/skills/orm-compute/references/platform-function-definition.md b/.agents/skills/orm-compute/references/platform-function-definition.md index 25c601cbdd..262f1d1ab0 100644 --- a/.agents/skills/orm-compute/references/platform-function-definition.md +++ b/.agents/skills/orm-compute/references/platform-function-definition.md @@ -9,7 +9,7 @@ Function definitions — registered cloud functions with routing, queue, and ret ```typescript db.platformFunctionDefinition.findMany({ select: { id: true } }).execute() db.platformFunctionDefinition.findOne({ id: '', select: { id: true } }).execute() -db.platformFunctionDefinition.create({ data: { accessChannels: '', billable: '', category: '', concurrency: '', cpuLimitMillicores: '', cpuRequestMillicores: '', description: '', fnCategory: '', functionColumns: '', graphId: '', icon: '', image: '', inputs: '', integrations: '', isPublished: '', maxAttempts: '', memoryLimitBytes: '', memoryRequestBytes: '', moduleTable: '', name: '', outputs: '', payloadArgs: '', priority: '', props: '', protected: '', publishedAt: '', queueName: '', requiredBuckets: '', requiredConfigs: '', requiredModels: '', requiredSecrets: '', resources: '', runtime: '', scaleMax: '', scaleMin: '', system: '', targetFunction: '', targetSchema: '', taskIdentifier: '', timeoutSeconds: '', volatile: '' }, select: { id: true } }).execute() +db.platformFunctionDefinition.create({ data: { accessChannels: '', billable: '', category: '', concurrency: '', cpuLimitMillicores: '', cpuRequestMillicores: '', description: '', fnCategory: '', functionColumns: '', graphId: '', icon: '', image: '', inputs: '', integrations: '', isPublished: '', maxAttempts: '', memoryLimitBytes: '', memoryRequestBytes: '', moduleTable: '', name: '', outputs: '', payloadArgs: '', priority: '', props: '', protected: '', publishedAt: '', queueName: '', requiredBuckets: '', requiredConfigs: '', requiredModels: '', requiredModules: '', requiredSecrets: '', resources: '', runtime: '', scaleMax: '', scaleMin: '', system: '', targetFunction: '', targetSchema: '', taskIdentifier: '', timeoutSeconds: '', volatile: '' }, select: { id: true } }).execute() db.platformFunctionDefinition.update({ where: { id: '' }, data: { accessChannels: '' }, select: { id: true } }).execute() db.platformFunctionDefinition.delete({ where: { id: '' } }).execute() ``` @@ -28,7 +28,7 @@ const items = await db.platformFunctionDefinition.findMany({ ```typescript const item = await db.platformFunctionDefinition.create({ - data: { accessChannels: '', billable: '', category: '', concurrency: '', cpuLimitMillicores: '', cpuRequestMillicores: '', description: '', fnCategory: '', functionColumns: '', graphId: '', icon: '', image: '', inputs: '', integrations: '', isPublished: '', maxAttempts: '', memoryLimitBytes: '', memoryRequestBytes: '', moduleTable: '', name: '', outputs: '', payloadArgs: '', priority: '', props: '', protected: '', publishedAt: '', queueName: '', requiredBuckets: '', requiredConfigs: '', requiredModels: '', requiredSecrets: '', resources: '', runtime: '', scaleMax: '', scaleMin: '', system: '', targetFunction: '', targetSchema: '', taskIdentifier: '', timeoutSeconds: '', volatile: '' }, + data: { accessChannels: '', billable: '', category: '', concurrency: '', cpuLimitMillicores: '', cpuRequestMillicores: '', description: '', fnCategory: '', functionColumns: '', graphId: '', icon: '', image: '', inputs: '', integrations: '', isPublished: '', maxAttempts: '', memoryLimitBytes: '', memoryRequestBytes: '', moduleTable: '', name: '', outputs: '', payloadArgs: '', priority: '', props: '', protected: '', publishedAt: '', queueName: '', requiredBuckets: '', requiredConfigs: '', requiredModels: '', requiredModules: '', requiredSecrets: '', resources: '', runtime: '', scaleMax: '', scaleMin: '', system: '', targetFunction: '', targetSchema: '', taskIdentifier: '', timeoutSeconds: '', volatile: '' }, select: { id: true } }).execute(); ``` diff --git a/.agents/skills/orm-compute/references/platform-function-deployment.md b/.agents/skills/orm-compute/references/platform-function-deployment.md index b0fc8d4fa4..e0a3b7df4b 100644 --- a/.agents/skills/orm-compute/references/platform-function-deployment.md +++ b/.agents/skills/orm-compute/references/platform-function-deployment.md @@ -9,7 +9,7 @@ Function deployment bindings — ties a handler image to a namespace for Knative ```typescript db.platformFunctionDeployment.findMany({ select: { id: true } }).execute() db.platformFunctionDeployment.findOne({ id: '', select: { id: true } }).execute() -db.platformFunctionDeployment.create({ data: { annotations: '', concurrency: '', errorCount: '', handlerName: '', image: '', imageVersion: '', labels: '', lastError: '', lastErrorAt: '', namespaceId: '', resources: '', revision: '', scaleMax: '', scaleMin: '', serviceName: '', serviceUrl: '', status: '', timeoutSeconds: '' }, select: { id: true } }).execute() +db.platformFunctionDeployment.create({ data: { annotations: '', concurrency: '', errorCount: '', handlerName: '', image: '', imageVersion: '', labels: '', lastError: '', lastErrorAt: '', namespaceId: '', realm: '', resources: '', revision: '', scaleMax: '', scaleMin: '', serviceName: '', serviceUrl: '', status: '', timeoutSeconds: '' }, select: { id: true } }).execute() db.platformFunctionDeployment.update({ where: { id: '' }, data: { annotations: '' }, select: { id: true } }).execute() db.platformFunctionDeployment.delete({ where: { id: '' } }).execute() ``` @@ -28,7 +28,7 @@ const items = await db.platformFunctionDeployment.findMany({ ```typescript const item = await db.platformFunctionDeployment.create({ - data: { annotations: '', concurrency: '', errorCount: '', handlerName: '', image: '', imageVersion: '', labels: '', lastError: '', lastErrorAt: '', namespaceId: '', resources: '', revision: '', scaleMax: '', scaleMin: '', serviceName: '', serviceUrl: '', status: '', timeoutSeconds: '' }, + data: { annotations: '', concurrency: '', errorCount: '', handlerName: '', image: '', imageVersion: '', labels: '', lastError: '', lastErrorAt: '', namespaceId: '', realm: '', resources: '', revision: '', scaleMax: '', scaleMin: '', serviceName: '', serviceUrl: '', status: '', timeoutSeconds: '' }, select: { id: true } }).execute(); ``` diff --git a/.agents/skills/orm-compute/references/platform-infra-insert-nodes-at-paths.md b/.agents/skills/orm-compute/references/platform-infra-insert-nodes-at-paths.md new file mode 100644 index 0000000000..432256cae1 --- /dev/null +++ b/.agents/skills/orm-compute/references/platform-infra-insert-nodes-at-paths.md @@ -0,0 +1,19 @@ +# platformInfraInsertNodesAtPaths + + + +Execute the platformInfraInsertNodesAtPaths mutation + +## Usage + +```typescript +db.mutation.platformInfraInsertNodesAtPaths({ input: '' }).execute() +``` + +## Examples + +### Run platformInfraInsertNodesAtPaths + +```typescript +const result = await db.mutation.platformInfraInsertNodesAtPaths({ input: '' }).execute(); +``` diff --git a/.agents/skills/orm-compute/references/platform-infra-set-and-commit.md b/.agents/skills/orm-compute/references/platform-infra-set-and-commit.md new file mode 100644 index 0000000000..044f7b74aa --- /dev/null +++ b/.agents/skills/orm-compute/references/platform-infra-set-and-commit.md @@ -0,0 +1,19 @@ +# platformInfraSetAndCommit + + + +Execute the platformInfraSetAndCommit mutation + +## Usage + +```typescript +db.mutation.platformInfraSetAndCommit({ input: '' }).execute() +``` + +## Examples + +### Run platformInfraSetAndCommit + +```typescript +const result = await db.mutation.platformInfraSetAndCommit({ input: '' }).execute(); +``` diff --git a/.agents/skills/orm-compute/references/platform-infra-set-many-and-commit.md b/.agents/skills/orm-compute/references/platform-infra-set-many-and-commit.md new file mode 100644 index 0000000000..a08d77f2f1 --- /dev/null +++ b/.agents/skills/orm-compute/references/platform-infra-set-many-and-commit.md @@ -0,0 +1,19 @@ +# platformInfraSetManyAndCommit + + + +Execute the platformInfraSetManyAndCommit mutation + +## Usage + +```typescript +db.mutation.platformInfraSetManyAndCommit({ input: { entries: '', message: '', refname: '', sId: '', storeId: '' } }).execute() +``` + +## Examples + +### Run platformInfraSetManyAndCommit + +```typescript +const result = await db.mutation.platformInfraSetManyAndCommit({ input: { entries: '', message: '', refname: '', sId: '', storeId: '' } }).execute(); +``` diff --git a/.agents/skills/orm-compute/references/set-and-commit.md b/.agents/skills/orm-compute/references/set-and-commit.md new file mode 100644 index 0000000000..ad6df17886 --- /dev/null +++ b/.agents/skills/orm-compute/references/set-and-commit.md @@ -0,0 +1,19 @@ +# setAndCommit + + + +Execute the setAndCommit mutation + +## Usage + +```typescript +db.mutation.setAndCommit({ input: '' }).execute() +``` + +## Examples + +### Run setAndCommit + +```typescript +const result = await db.mutation.setAndCommit({ input: '' }).execute(); +``` diff --git a/.agents/skills/orm-compute/references/set-many-and-commit.md b/.agents/skills/orm-compute/references/set-many-and-commit.md new file mode 100644 index 0000000000..95526566ce --- /dev/null +++ b/.agents/skills/orm-compute/references/set-many-and-commit.md @@ -0,0 +1,19 @@ +# setManyAndCommit + + + +Execute the setManyAndCommit mutation + +## Usage + +```typescript +db.mutation.setManyAndCommit({ input: { entries: '', message: '', refname: '', sId: '', storeId: '' } }).execute() +``` + +## Examples + +### Run setManyAndCommit + +```typescript +const result = await db.mutation.setManyAndCommit({ input: { entries: '', message: '', refname: '', sId: '', storeId: '' } }).execute(); +``` diff --git a/.agents/skills/orm-infra/SKILL.md b/.agents/skills/orm-infra/SKILL.md index ba4a612899..f2f2ff50ba 100644 --- a/.agents/skills/orm-infra/SKILL.md +++ b/.agents/skills/orm-infra/SKILL.md @@ -1,13 +1,13 @@ --- name: orm-infra -description: ORM client for the infra API — provides typed CRUD operations for 10 tables and 4 custom operations +description: ORM client for the infra API — provides typed CRUD operations for 11 tables and 7 custom operations --- # orm-infra -ORM client for the infra API — provides typed CRUD operations for 10 tables and 4 custom operations +ORM client for the infra API — provides typed CRUD operations for 11 tables and 7 custom operations ## Usage @@ -15,7 +15,7 @@ ORM client for the infra API — provides typed CRUD operations for 10 tables an // Import the ORM client import { db } from './orm'; -// Available models: dbPreset, namespace, namespaceEvent, platformInfraCommit, platformInfraGetAllTreeNodesRecord, platformInfraObject, platformInfraRef, platformInfraStore, ... +// Available models: contentPreset, dbPreset, namespace, namespaceEvent, platformInfraCommit, platformInfraGetAllTreeNodesRecord, platformInfraObject, platformInfraRef, ... db..findMany({ select: { id: true } }).execute() db..findOne({ id: '', select: { id: true } }).execute() db..create({ data: { ... }, select: { id: true } }).execute() @@ -28,7 +28,7 @@ db..delete({ where: { id: '' } }).execute() ### Query records ```typescript -const items = await db.dbPreset.findMany({ +const items = await db.contentPreset.findMany({ select: { id: true } }).execute(); ``` @@ -37,6 +37,7 @@ const items = await db.dbPreset.findMany({ See the `references/` directory for detailed per-entity API documentation: +- [content-preset](references/content-preset.md) - [db-preset](references/db-preset.md) - [namespace](references/namespace.md) - [namespace-event](references/namespace-event.md) @@ -49,5 +50,8 @@ See the `references/` directory for detailed per-entity API documentation: - [platform-namespace-event](references/platform-namespace-event.md) - [platform-infra-init-empty-repo](references/platform-infra-init-empty-repo.md) - [platform-infra-insert-node-at-path](references/platform-infra-insert-node-at-path.md) +- [platform-infra-insert-nodes-at-paths](references/platform-infra-insert-nodes-at-paths.md) +- [platform-infra-set-and-commit](references/platform-infra-set-and-commit.md) - [platform-infra-set-data-at-path](references/platform-infra-set-data-at-path.md) +- [platform-infra-set-many-and-commit](references/platform-infra-set-many-and-commit.md) - [provision-bucket](references/provision-bucket.md) diff --git a/.agents/skills/orm-infra/references/content-preset.md b/.agents/skills/orm-infra/references/content-preset.md new file mode 100644 index 0000000000..a578d21e7f --- /dev/null +++ b/.agents/skills/orm-infra/references/content-preset.md @@ -0,0 +1,34 @@ +# contentPreset + + + +Seed-content preset catalog (limit defaults, trust ladders, ...) — merkle-versioned head over the infra store + +## Usage + +```typescript +db.contentPreset.findMany({ select: { id: true } }).execute() +db.contentPreset.findOne({ id: '', select: { id: true } }).execute() +db.contentPreset.create({ data: { active: '', commitId: '', definition: '', description: '', kind: '', label: '', slug: '', storeId: '' }, select: { id: true } }).execute() +db.contentPreset.update({ where: { id: '' }, data: { active: '' }, select: { id: true } }).execute() +db.contentPreset.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all contentPreset records + +```typescript +const items = await db.contentPreset.findMany({ + select: { id: true, active: true } +}).execute(); +``` + +### Create a contentPreset + +```typescript +const item = await db.contentPreset.create({ + data: { active: '', commitId: '', definition: '', description: '', kind: '', label: '', slug: '', storeId: '' }, + select: { id: true } +}).execute(); +``` diff --git a/.agents/skills/orm-infra/references/platform-infra-insert-nodes-at-paths.md b/.agents/skills/orm-infra/references/platform-infra-insert-nodes-at-paths.md new file mode 100644 index 0000000000..432256cae1 --- /dev/null +++ b/.agents/skills/orm-infra/references/platform-infra-insert-nodes-at-paths.md @@ -0,0 +1,19 @@ +# platformInfraInsertNodesAtPaths + + + +Execute the platformInfraInsertNodesAtPaths mutation + +## Usage + +```typescript +db.mutation.platformInfraInsertNodesAtPaths({ input: '' }).execute() +``` + +## Examples + +### Run platformInfraInsertNodesAtPaths + +```typescript +const result = await db.mutation.platformInfraInsertNodesAtPaths({ input: '' }).execute(); +``` diff --git a/.agents/skills/orm-infra/references/platform-infra-set-and-commit.md b/.agents/skills/orm-infra/references/platform-infra-set-and-commit.md new file mode 100644 index 0000000000..044f7b74aa --- /dev/null +++ b/.agents/skills/orm-infra/references/platform-infra-set-and-commit.md @@ -0,0 +1,19 @@ +# platformInfraSetAndCommit + + + +Execute the platformInfraSetAndCommit mutation + +## Usage + +```typescript +db.mutation.platformInfraSetAndCommit({ input: '' }).execute() +``` + +## Examples + +### Run platformInfraSetAndCommit + +```typescript +const result = await db.mutation.platformInfraSetAndCommit({ input: '' }).execute(); +``` diff --git a/.agents/skills/orm-infra/references/platform-infra-set-many-and-commit.md b/.agents/skills/orm-infra/references/platform-infra-set-many-and-commit.md new file mode 100644 index 0000000000..a08d77f2f1 --- /dev/null +++ b/.agents/skills/orm-infra/references/platform-infra-set-many-and-commit.md @@ -0,0 +1,19 @@ +# platformInfraSetManyAndCommit + + + +Execute the platformInfraSetManyAndCommit mutation + +## Usage + +```typescript +db.mutation.platformInfraSetManyAndCommit({ input: { entries: '', message: '', refname: '', sId: '', storeId: '' } }).execute() +``` + +## Examples + +### Run platformInfraSetManyAndCommit + +```typescript +const result = await db.mutation.platformInfraSetManyAndCommit({ input: { entries: '', message: '', refname: '', sId: '', storeId: '' } }).execute(); +``` diff --git a/.agents/skills/orm-modules/SKILL.md b/.agents/skills/orm-modules/SKILL.md index 4bada56dd8..748b992fa5 100644 --- a/.agents/skills/orm-modules/SKILL.md +++ b/.agents/skills/orm-modules/SKILL.md @@ -1,13 +1,13 @@ --- name: orm-modules -description: ORM client for the modules API — provides typed CRUD operations for 76 tables and 12 custom operations +description: ORM client for the modules API — provides typed CRUD operations for 83 tables and 3 custom operations --- # orm-modules -ORM client for the modules API — provides typed CRUD operations for 76 tables and 12 custom operations +ORM client for the modules API — provides typed CRUD operations for 83 tables and 3 custom operations ## Usage @@ -45,12 +45,15 @@ See the `references/` directory for detailed per-entity API documentation: - [blueprint](references/blueprint.md) - [blueprint-construction](references/blueprint-construction.md) - [blueprint-template](references/blueprint-template.md) +- [capabilities-module](references/capabilities-module.md) - [catalog-module](references/catalog-module.md) - [compute-log-module](references/compute-log-module.md) - [config-secrets-user-module](references/config-secrets-user-module.md) - [connected-accounts-module](references/connected-accounts-module.md) +- [content-preset-module](references/content-preset-module.md) - [crypto-addresses-module](references/crypto-addresses-module.md) - [crypto-auth-module](references/crypto-auth-module.md) +- [data-capabilities-field](references/data-capabilities-field.md) - [database-provision-module](references/database-provision-module.md) - [database-settings-module](references/database-settings-module.md) - [db-pool-config](references/db-pool-config.md) @@ -61,9 +64,11 @@ See the `references/` directory for detailed per-entity API documentation: - [denormalized-table-field](references/denormalized-table-field.md) - [devices-module](references/devices-module.md) - [domain-module](references/domain-module.md) +- [email-sender-module](references/email-sender-module.md) - [emails-module](references/emails-module.md) - [entity-type-provision](references/entity-type-provision.md) - [events-module](references/events-module.md) +- [file-ref-field](references/file-ref-field.md) - [function-deployment-module](references/function-deployment-module.md) - [function-invocation-module](references/function-invocation-module.md) - [function-module](references/function-module.md) @@ -85,8 +90,8 @@ See the `references/` directory for detailed per-entity API documentation: - [merkle-store-module](references/merkle-store-module.md) - [namespace-module](references/namespace-module.md) - [notifications-module](references/notifications-module.md) +- [oauth-requests-module](references/oauth-requests-module.md) - [pages-module](references/pages-module.md) -- [permissions-module](references/permissions-module.md) - [phone-numbers-module](references/phone-numbers-module.md) - [plans-module](references/plans-module.md) - [principal-auth-module](references/principal-auth-module.md) @@ -98,6 +103,7 @@ See the `references/` directory for detailed per-entity API documentation: - [resource-module](references/resource-module.md) - [rls-module](references/rls-module.md) - [route-module](references/route-module.md) +- [scope-types-module](references/scope-types-module.md) - [secure-table-provision](references/secure-table-provision.md) - [session-secrets-module](references/session-secrets-module.md) - [sessions-module](references/sessions-module.md) @@ -108,20 +114,12 @@ See the `references/` directory for detailed per-entity API documentation: - [user-auth-module](references/user-auth-module.md) - [user-credentials-module](references/user-credentials-module.md) - [user-settings-module](references/user-settings-module.md) +- [user-settings-security-module](references/user-settings-security-module.md) - [user-state-module](references/user-state-module.md) - [users-module](references/users-module.md) - [webauthn-auth-module](references/webauthn-auth-module.md) - [webauthn-credentials-module](references/webauthn-credentials-module.md) - [webhook-module](references/webhook-module.md) -- [resolve-blueprint-field](references/resolve-blueprint-field.md) -- [resolve-blueprint-table](references/resolve-blueprint-table.md) - [construct-blueprint](references/construct-blueprint.md) - [copy-template-to-blueprint](references/copy-template-to-blueprint.md) - [provision-bucket](references/provision-bucket.md) -- [provision-check-constraint](references/provision-check-constraint.md) -- [provision-full-text-search](references/provision-full-text-search.md) -- [provision-index](references/provision-index.md) -- [provision-relation](references/provision-relation.md) -- [provision-spatial-relation](references/provision-spatial-relation.md) -- [provision-table](references/provision-table.md) -- [provision-unique-constraint](references/provision-unique-constraint.md) diff --git a/.agents/skills/orm-modules/references/agent-module.md b/.agents/skills/orm-modules/references/agent-module.md index f7caea2b3d..d8d9f9dfb8 100644 --- a/.agents/skills/orm-modules/references/agent-module.md +++ b/.agents/skills/orm-modules/references/agent-module.md @@ -9,7 +9,7 @@ ORM operations for AgentModule records ```typescript db.agentModule.findMany({ select: { id: true } }).execute() db.agentModule.findOne({ id: '', select: { id: true } }).execute() -db.agentModule.create({ data: { agentTableId: '', agentTableName: '', apiName: '', databaseId: '', defaultPermissions: '', entityField: '', entityTableId: '', hasAgents: '', hasPlans: '', hasResources: '', messageTableId: '', messageTableName: '', personaTableId: '', personaTableName: '', planTableId: '', planTableName: '', policies: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', promptsTableId: '', promptsTableName: '', provisions: '', publicSchemaName: '', resourceTableId: '', resourceTableName: '', resources: '', schemaId: '', scope: '', shared: '', taskTableId: '', taskTableName: '', threadTableId: '', threadTableName: '' }, select: { id: true } }).execute() +db.agentModule.create({ data: { agentTableId: '', agentTableName: '', apiName: '', databaseId: '', defaultCapabilities: '', entityField: '', entityTableId: '', hasAgents: '', hasPlans: '', hasResources: '', messageTableId: '', messageTableName: '', personaTableId: '', personaTableName: '', planTableId: '', planTableName: '', policies: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', promptsTableId: '', promptsTableName: '', provisions: '', publicSchemaName: '', resourceTableId: '', resourceTableName: '', resources: '', schemaId: '', scope: '', shared: '', taskTableId: '', taskTableName: '', threadTableId: '', threadTableName: '' }, select: { id: true } }).execute() db.agentModule.update({ where: { id: '' }, data: { agentTableId: '' }, select: { id: true } }).execute() db.agentModule.delete({ where: { id: '' } }).execute() ``` @@ -28,7 +28,7 @@ const items = await db.agentModule.findMany({ ```typescript const item = await db.agentModule.create({ - data: { agentTableId: '', agentTableName: '', apiName: '', databaseId: '', defaultPermissions: '', entityField: '', entityTableId: '', hasAgents: '', hasPlans: '', hasResources: '', messageTableId: '', messageTableName: '', personaTableId: '', personaTableName: '', planTableId: '', planTableName: '', policies: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', promptsTableId: '', promptsTableName: '', provisions: '', publicSchemaName: '', resourceTableId: '', resourceTableName: '', resources: '', schemaId: '', scope: '', shared: '', taskTableId: '', taskTableName: '', threadTableId: '', threadTableName: '' }, + data: { agentTableId: '', agentTableName: '', apiName: '', databaseId: '', defaultCapabilities: '', entityField: '', entityTableId: '', hasAgents: '', hasPlans: '', hasResources: '', messageTableId: '', messageTableName: '', personaTableId: '', personaTableName: '', planTableId: '', planTableName: '', policies: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', promptsTableId: '', promptsTableName: '', provisions: '', publicSchemaName: '', resourceTableId: '', resourceTableName: '', resources: '', schemaId: '', scope: '', shared: '', taskTableId: '', taskTableName: '', threadTableId: '', threadTableName: '' }, select: { id: true } }).execute(); ``` diff --git a/.agents/skills/orm-modules/references/api-surface-module.md b/.agents/skills/orm-modules/references/api-surface-module.md index 4e20c4cee6..ae2b9a7e7b 100644 --- a/.agents/skills/orm-modules/references/api-surface-module.md +++ b/.agents/skills/orm-modules/references/api-surface-module.md @@ -9,7 +9,7 @@ ORM operations for ApiSurfaceModule records ```typescript db.apiSurfaceModule.findMany({ select: { id: true } }).execute() db.apiSurfaceModule.findOne({ id: '', select: { id: true } }).execute() -db.apiSurfaceModule.create({ data: { apiName: '', apiSchemasTableId: '', apiSchemasTableName: '', apiSettingsTableId: '', apiSettingsTableName: '', apisTableId: '', apisTableName: '', catalogModuleId: '', corsSettingsTableId: '', corsSettingsTableName: '', databaseId: '', defaultPermissions: '', entityField: '', entityTableId: '', policies: '', prefix: '', privateApiName: '', provisions: '', publicSchemaName: '', schemaId: '', scope: '' }, select: { id: true } }).execute() +db.apiSurfaceModule.create({ data: { apiName: '', apiSchemasTableId: '', apiSchemasTableName: '', apiSettingsTableId: '', apiSettingsTableName: '', apisTableId: '', apisTableName: '', catalogModuleId: '', corsSettingsTableId: '', corsSettingsTableName: '', databaseId: '', defaultCapabilities: '', entityField: '', entityTableId: '', policies: '', prefix: '', privateApiName: '', provisions: '', publicSchemaName: '', schemaId: '', scope: '' }, select: { id: true } }).execute() db.apiSurfaceModule.update({ where: { id: '' }, data: { apiName: '' }, select: { id: true } }).execute() db.apiSurfaceModule.delete({ where: { id: '' } }).execute() ``` @@ -28,7 +28,7 @@ const items = await db.apiSurfaceModule.findMany({ ```typescript const item = await db.apiSurfaceModule.create({ - data: { apiName: '', apiSchemasTableId: '', apiSchemasTableName: '', apiSettingsTableId: '', apiSettingsTableName: '', apisTableId: '', apisTableName: '', catalogModuleId: '', corsSettingsTableId: '', corsSettingsTableName: '', databaseId: '', defaultPermissions: '', entityField: '', entityTableId: '', policies: '', prefix: '', privateApiName: '', provisions: '', publicSchemaName: '', schemaId: '', scope: '' }, + data: { apiName: '', apiSchemasTableId: '', apiSchemasTableName: '', apiSettingsTableId: '', apiSettingsTableName: '', apisTableId: '', apisTableName: '', catalogModuleId: '', corsSettingsTableId: '', corsSettingsTableName: '', databaseId: '', defaultCapabilities: '', entityField: '', entityTableId: '', policies: '', prefix: '', privateApiName: '', provisions: '', publicSchemaName: '', schemaId: '', scope: '' }, select: { id: true } }).execute(); ``` diff --git a/.agents/skills/orm-modules/references/app-module.md b/.agents/skills/orm-modules/references/app-module.md index 2d2b18dddd..a7c13cf531 100644 --- a/.agents/skills/orm-modules/references/app-module.md +++ b/.agents/skills/orm-modules/references/app-module.md @@ -9,7 +9,7 @@ ORM operations for AppModule records ```typescript db.appModule.findMany({ select: { id: true } }).execute() db.appModule.findOne({ id: '', select: { id: true } }).execute() -db.appModule.create({ data: { apiName: '', appComponentsTableId: '', appComponentsTableName: '', appsTableId: '', appsTableName: '', catalogModuleId: '', databaseId: '', defaultPermissions: '', entityField: '', entityTableId: '', policies: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', provisions: '', publicSchemaName: '', schemaId: '', scope: '' }, select: { id: true } }).execute() +db.appModule.create({ data: { apiName: '', appComponentsTableId: '', appComponentsTableName: '', appsTableId: '', appsTableName: '', catalogModuleId: '', databaseId: '', defaultCapabilities: '', entityField: '', entityTableId: '', policies: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', provisions: '', publicSchemaName: '', schemaId: '', scope: '' }, select: { id: true } }).execute() db.appModule.update({ where: { id: '' }, data: { apiName: '' }, select: { id: true } }).execute() db.appModule.delete({ where: { id: '' } }).execute() ``` @@ -28,7 +28,7 @@ const items = await db.appModule.findMany({ ```typescript const item = await db.appModule.create({ - data: { apiName: '', appComponentsTableId: '', appComponentsTableName: '', appsTableId: '', appsTableName: '', catalogModuleId: '', databaseId: '', defaultPermissions: '', entityField: '', entityTableId: '', policies: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', provisions: '', publicSchemaName: '', schemaId: '', scope: '' }, + data: { apiName: '', appComponentsTableId: '', appComponentsTableName: '', appsTableId: '', appsTableName: '', catalogModuleId: '', databaseId: '', defaultCapabilities: '', entityField: '', entityTableId: '', policies: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', provisions: '', publicSchemaName: '', schemaId: '', scope: '' }, select: { id: true } }).execute(); ``` diff --git a/.agents/skills/orm-modules/references/billing-module.md b/.agents/skills/orm-modules/references/billing-module.md index 77d3cdaa4c..70fc8de6bc 100644 --- a/.agents/skills/orm-modules/references/billing-module.md +++ b/.agents/skills/orm-modules/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: { apiName: '', balancesTableId: '', balancesTableName: '', databaseId: '', defaultMeterCatalog: '', defaultPermissions: '', ledgerTableId: '', ledgerTableName: '', meterCreditsTableId: '', meterCreditsTableName: '', meterDefaultsTableId: '', meterDefaultsTableName: '', meterSourcesTableId: '', meterSourcesTableName: '', metersTableId: '', metersTableName: '', planSubscriptionsTableId: '', planSubscriptionsTableName: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', publicSchemaName: '', recordUsageFunction: '', rollupUsageSummaryFunction: '', schemaId: '', sweepExpiredSubscriptionsFunction: '' }, select: { id: true } }).execute() +db.billingModule.create({ data: { apiName: '', balancesTableId: '', balancesTableName: '', databaseId: '', defaultCapabilities: '', defaultMeterCatalog: '', ledgerTableId: '', ledgerTableName: '', meterCreditsTableId: '', meterCreditsTableName: '', meterDefaultsTableId: '', meterDefaultsTableName: '', meterSourcesTableId: '', meterSourcesTableName: '', metersTableId: '', metersTableName: '', planSubscriptionsTableId: '', planSubscriptionsTableName: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', publicSchemaName: '', recordUsageFunction: '', rollupUsageSummaryFunction: '', schemaId: '', sweepExpiredSubscriptionsFunction: '' }, select: { id: true } }).execute() db.billingModule.update({ where: { id: '' }, data: { apiName: '' }, 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: { apiName: '', balancesTableId: '', balancesTableName: '', databaseId: '', defaultMeterCatalog: '', defaultPermissions: '', ledgerTableId: '', ledgerTableName: '', meterCreditsTableId: '', meterCreditsTableName: '', meterDefaultsTableId: '', meterDefaultsTableName: '', meterSourcesTableId: '', meterSourcesTableName: '', metersTableId: '', metersTableName: '', planSubscriptionsTableId: '', planSubscriptionsTableName: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', publicSchemaName: '', recordUsageFunction: '', rollupUsageSummaryFunction: '', schemaId: '', sweepExpiredSubscriptionsFunction: '' }, + data: { apiName: '', balancesTableId: '', balancesTableName: '', databaseId: '', defaultCapabilities: '', defaultMeterCatalog: '', ledgerTableId: '', ledgerTableName: '', meterCreditsTableId: '', meterCreditsTableName: '', meterDefaultsTableId: '', meterDefaultsTableName: '', meterSourcesTableId: '', meterSourcesTableName: '', metersTableId: '', metersTableName: '', planSubscriptionsTableId: '', planSubscriptionsTableName: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', publicSchemaName: '', recordUsageFunction: '', rollupUsageSummaryFunction: '', schemaId: '', sweepExpiredSubscriptionsFunction: '' }, select: { id: true } }).execute(); ``` diff --git a/.agents/skills/orm-modules/references/billing-provider-module.md b/.agents/skills/orm-modules/references/billing-provider-module.md index 6f8cea981b..182cc6f6a5 100644 --- a/.agents/skills/orm-modules/references/billing-provider-module.md +++ b/.agents/skills/orm-modules/references/billing-provider-module.md @@ -9,7 +9,7 @@ ORM operations for BillingProviderModule records ```typescript db.billingProviderModule.findMany({ select: { id: true } }).execute() db.billingProviderModule.findOne({ id: '', select: { id: true } }).execute() -db.billingProviderModule.create({ data: { apiName: '', billingCustomersTableId: '', billingCustomersTableName: '', billingPricesTableId: '', billingPricesTableName: '', billingProductsTableId: '', billingProductsTableName: '', billingSubscriptionsTableId: '', billingSubscriptionsTableName: '', billingWebhookEventsTableId: '', billingWebhookEventsTableName: '', databaseId: '', prefix: '', pricesTableId: '', privateApiName: '', privateSchemaId: '', processBillingEventFunction: '', productsTableId: '', provider: '', schemaId: '', subscriptionsTableId: '' }, select: { id: true } }).execute() +db.billingProviderModule.create({ data: { apiName: '', billingCustomersTableId: '', billingCustomersTableName: '', billingInvoicesTableId: '', billingInvoicesTableName: '', billingPricesTableId: '', billingPricesTableName: '', billingProductsTableId: '', billingProductsTableName: '', billingRefundsTableId: '', billingRefundsTableName: '', billingSubscriptionsTableId: '', billingSubscriptionsTableName: '', billingWebhookEventsTableId: '', billingWebhookEventsTableName: '', databaseId: '', listPendingUsageSyncFunction: '', markUsageSyncedFunction: '', prefix: '', pricesTableId: '', privateApiName: '', privateSchemaId: '', processBillingEventFunction: '', productsTableId: '', provider: '', recordRefundFunction: '', schemaId: '', subscriptionsTableId: '', upsertInvoiceFunction: '' }, select: { id: true } }).execute() db.billingProviderModule.update({ where: { id: '' }, data: { apiName: '' }, select: { id: true } }).execute() db.billingProviderModule.delete({ where: { id: '' } }).execute() ``` @@ -28,7 +28,7 @@ const items = await db.billingProviderModule.findMany({ ```typescript const item = await db.billingProviderModule.create({ - data: { apiName: '', billingCustomersTableId: '', billingCustomersTableName: '', billingPricesTableId: '', billingPricesTableName: '', billingProductsTableId: '', billingProductsTableName: '', billingSubscriptionsTableId: '', billingSubscriptionsTableName: '', billingWebhookEventsTableId: '', billingWebhookEventsTableName: '', databaseId: '', prefix: '', pricesTableId: '', privateApiName: '', privateSchemaId: '', processBillingEventFunction: '', productsTableId: '', provider: '', schemaId: '', subscriptionsTableId: '' }, + data: { apiName: '', billingCustomersTableId: '', billingCustomersTableName: '', billingInvoicesTableId: '', billingInvoicesTableName: '', billingPricesTableId: '', billingPricesTableName: '', billingProductsTableId: '', billingProductsTableName: '', billingRefundsTableId: '', billingRefundsTableName: '', billingSubscriptionsTableId: '', billingSubscriptionsTableName: '', billingWebhookEventsTableId: '', billingWebhookEventsTableName: '', databaseId: '', listPendingUsageSyncFunction: '', markUsageSyncedFunction: '', prefix: '', pricesTableId: '', privateApiName: '', privateSchemaId: '', processBillingEventFunction: '', productsTableId: '', provider: '', recordRefundFunction: '', schemaId: '', subscriptionsTableId: '', upsertInvoiceFunction: '' }, select: { id: true } }).execute(); ``` diff --git a/.agents/skills/orm-modules/references/capabilities-module.md b/.agents/skills/orm-modules/references/capabilities-module.md new file mode 100644 index 0000000000..ec40d26f73 --- /dev/null +++ b/.agents/skills/orm-modules/references/capabilities-module.md @@ -0,0 +1,34 @@ +# capabilitiesModule + + + +ORM operations for CapabilitiesModule records + +## Usage + +```typescript +db.capabilitiesModule.findMany({ select: { id: true } }).execute() +db.capabilitiesModule.findOne({ id: '', select: { id: true } }).execute() +db.capabilitiesModule.create({ data: { actorTableId: '', apiName: '', bitlen: '', databaseId: '', defaultTableId: '', defaultTableName: '', entityField: '', entityTableId: '', getByMask: '', getMask: '', getMaskByName: '', getPaddedMask: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', publicSchemaName: '', schemaId: '', scope: '', tableId: '', tableName: '' }, select: { id: true } }).execute() +db.capabilitiesModule.update({ where: { id: '' }, data: { actorTableId: '' }, select: { id: true } }).execute() +db.capabilitiesModule.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all capabilitiesModule records + +```typescript +const items = await db.capabilitiesModule.findMany({ + select: { id: true, actorTableId: true } +}).execute(); +``` + +### Create a capabilitiesModule + +```typescript +const item = await db.capabilitiesModule.create({ + data: { actorTableId: '', apiName: '', bitlen: '', databaseId: '', defaultTableId: '', defaultTableName: '', entityField: '', entityTableId: '', getByMask: '', getMask: '', getMaskByName: '', getPaddedMask: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', publicSchemaName: '', schemaId: '', scope: '', tableId: '', tableName: '' }, + select: { id: true } +}).execute(); +``` diff --git a/.agents/skills/orm-modules/references/catalog-module.md b/.agents/skills/orm-modules/references/catalog-module.md index c40261ac97..7598944390 100644 --- a/.agents/skills/orm-modules/references/catalog-module.md +++ b/.agents/skills/orm-modules/references/catalog-module.md @@ -9,7 +9,7 @@ ORM operations for CatalogModule records ```typescript db.catalogModule.findMany({ select: { id: true } }).execute() db.catalogModule.findOne({ id: '', select: { id: true } }).execute() -db.catalogModule.create({ data: { apiName: '', apisTableId: '', apisTableName: '', appsTableId: '', appsTableName: '', bucketsTableId: '', bucketsTableName: '', databaseId: '', defaultPermissions: '', domainsTableId: '', domainsTableName: '', entityTableId: '', functionsTableId: '', functionsTableName: '', namespacesTableId: '', namespacesTableName: '', policies: '', privateApiName: '', provisions: '', publicSchemaName: '', resourceDefinitionsTableId: '', resourceDefinitionsTableName: '', resourceInstallationsTableId: '', resourceInstallationsTableName: '', resourcesTableId: '', resourcesTableName: '', schemaId: '', scope: '', sitesAppLinksTableId: '', sitesAppLinksTableName: '', sitesDeepLinksTableId: '', sitesDeepLinksTableName: '', sitesErrorPagesTableId: '', sitesErrorPagesTableName: '', sitesTableId: '', sitesTableName: '', sitesWebConfigTableId: '', sitesWebConfigTableName: '' }, select: { id: true } }).execute() +db.catalogModule.create({ data: { apiName: '', apisTableId: '', apisTableName: '', appsTableId: '', appsTableName: '', bindingsTableId: '', bindingsTableName: '', bucketsTableId: '', bucketsTableName: '', databaseId: '', defaultCapabilities: '', domainsTableId: '', domainsTableName: '', entityTableId: '', functionsTableId: '', functionsTableName: '', namespacesTableId: '', namespacesTableName: '', policies: '', privateApiName: '', provisions: '', publicSchemaName: '', resourceDefinitionsTableId: '', resourceDefinitionsTableName: '', resourceInstallationsTableId: '', resourceInstallationsTableName: '', resourcesTableId: '', resourcesTableName: '', schemaId: '', scope: '', sitesAppLinksTableId: '', sitesAppLinksTableName: '', sitesDeepLinksTableId: '', sitesDeepLinksTableName: '', sitesErrorPagesTableId: '', sitesErrorPagesTableName: '', sitesTableId: '', sitesTableName: '', sitesWebConfigTableId: '', sitesWebConfigTableName: '' }, select: { id: true } }).execute() db.catalogModule.update({ where: { id: '' }, data: { apiName: '' }, select: { id: true } }).execute() db.catalogModule.delete({ where: { id: '' } }).execute() ``` @@ -28,7 +28,7 @@ const items = await db.catalogModule.findMany({ ```typescript const item = await db.catalogModule.create({ - data: { apiName: '', apisTableId: '', apisTableName: '', appsTableId: '', appsTableName: '', bucketsTableId: '', bucketsTableName: '', databaseId: '', defaultPermissions: '', domainsTableId: '', domainsTableName: '', entityTableId: '', functionsTableId: '', functionsTableName: '', namespacesTableId: '', namespacesTableName: '', policies: '', privateApiName: '', provisions: '', publicSchemaName: '', resourceDefinitionsTableId: '', resourceDefinitionsTableName: '', resourceInstallationsTableId: '', resourceInstallationsTableName: '', resourcesTableId: '', resourcesTableName: '', schemaId: '', scope: '', sitesAppLinksTableId: '', sitesAppLinksTableName: '', sitesDeepLinksTableId: '', sitesDeepLinksTableName: '', sitesErrorPagesTableId: '', sitesErrorPagesTableName: '', sitesTableId: '', sitesTableName: '', sitesWebConfigTableId: '', sitesWebConfigTableName: '' }, + data: { apiName: '', apisTableId: '', apisTableName: '', appsTableId: '', appsTableName: '', bindingsTableId: '', bindingsTableName: '', bucketsTableId: '', bucketsTableName: '', databaseId: '', defaultCapabilities: '', domainsTableId: '', domainsTableName: '', entityTableId: '', functionsTableId: '', functionsTableName: '', namespacesTableId: '', namespacesTableName: '', policies: '', privateApiName: '', provisions: '', publicSchemaName: '', resourceDefinitionsTableId: '', resourceDefinitionsTableName: '', resourceInstallationsTableId: '', resourceInstallationsTableName: '', resourcesTableId: '', resourcesTableName: '', schemaId: '', scope: '', sitesAppLinksTableId: '', sitesAppLinksTableName: '', sitesDeepLinksTableId: '', sitesDeepLinksTableName: '', sitesErrorPagesTableId: '', sitesErrorPagesTableName: '', sitesTableId: '', sitesTableName: '', sitesWebConfigTableId: '', sitesWebConfigTableName: '' }, select: { id: true } }).execute(); ``` diff --git a/.agents/skills/orm-modules/references/content-preset-module.md b/.agents/skills/orm-modules/references/content-preset-module.md new file mode 100644 index 0000000000..0050c7b567 --- /dev/null +++ b/.agents/skills/orm-modules/references/content-preset-module.md @@ -0,0 +1,34 @@ +# contentPresetModule + + + +ORM operations for ContentPresetModule records + +## Usage + +```typescript +db.contentPresetModule.findMany({ select: { id: true } }).execute() +db.contentPresetModule.findOne({ id: '', select: { id: true } }).execute() +db.contentPresetModule.create({ data: { apiName: '', contentPresetsTableId: '', databaseId: '', entityTableId: '', merkleStoreModuleId: '', policies: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', provisions: '', publicSchemaId: '', publicSchemaName: '', scope: '', storeName: '' }, select: { id: true } }).execute() +db.contentPresetModule.update({ where: { id: '' }, data: { apiName: '' }, select: { id: true } }).execute() +db.contentPresetModule.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all contentPresetModule records + +```typescript +const items = await db.contentPresetModule.findMany({ + select: { id: true, apiName: true } +}).execute(); +``` + +### Create a contentPresetModule + +```typescript +const item = await db.contentPresetModule.create({ + data: { apiName: '', contentPresetsTableId: '', databaseId: '', entityTableId: '', merkleStoreModuleId: '', policies: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', provisions: '', publicSchemaId: '', publicSchemaName: '', scope: '', storeName: '' }, + select: { id: true } +}).execute(); +``` diff --git a/.agents/skills/orm-modules/references/data-capabilities-field.md b/.agents/skills/orm-modules/references/data-capabilities-field.md new file mode 100644 index 0000000000..3405558cfc --- /dev/null +++ b/.agents/skills/orm-modules/references/data-capabilities-field.md @@ -0,0 +1,34 @@ +# dataCapabilitiesField + + + +ORM operations for DataCapabilitiesField records + +## Usage + +```typescript +db.dataCapabilitiesField.findMany({ select: { id: true } }).execute() +db.dataCapabilitiesField.findOne({ id: '', select: { id: true } }).execute() +db.dataCapabilitiesField.create({ data: { capabilitiesModuleId: '', databaseId: '', fieldId: '', fromFieldId: '', mappingFieldId: '', mappingKeyFieldId: '', mappingTableId: '', mode: '', subsetGuard: '', tableId: '' }, select: { id: true } }).execute() +db.dataCapabilitiesField.update({ where: { id: '' }, data: { capabilitiesModuleId: '' }, select: { id: true } }).execute() +db.dataCapabilitiesField.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all dataCapabilitiesField records + +```typescript +const items = await db.dataCapabilitiesField.findMany({ + select: { id: true, capabilitiesModuleId: true } +}).execute(); +``` + +### Create a dataCapabilitiesField + +```typescript +const item = await db.dataCapabilitiesField.create({ + data: { capabilitiesModuleId: '', databaseId: '', fieldId: '', fromFieldId: '', mappingFieldId: '', mappingKeyFieldId: '', mappingTableId: '', mode: '', subsetGuard: '', tableId: '' }, + select: { id: true } +}).execute(); +``` diff --git a/.agents/skills/orm-modules/references/database-settings-module.md b/.agents/skills/orm-modules/references/database-settings-module.md index 192fa0b0ee..aeb475fde3 100644 --- a/.agents/skills/orm-modules/references/database-settings-module.md +++ b/.agents/skills/orm-modules/references/database-settings-module.md @@ -9,7 +9,7 @@ ORM operations for DatabaseSettingsModule records ```typescript db.databaseSettingsModule.findMany({ select: { id: true } }).execute() db.databaseSettingsModule.findOne({ id: '', select: { id: true } }).execute() -db.databaseSettingsModule.create({ data: { apiName: '', databaseId: '', databaseSettingsTableId: '', databaseSettingsTableName: '', defaultPermissions: '', entityField: '', entityTableId: '', policies: '', prefix: '', privateApiName: '', provisions: '', pubkeySettingsTableId: '', pubkeySettingsTableName: '', publicSchemaName: '', rlsSettingsTableId: '', rlsSettingsTableName: '', schemaId: '', scope: '', webauthnSettingsTableId: '', webauthnSettingsTableName: '' }, select: { id: true } }).execute() +db.databaseSettingsModule.create({ data: { apiName: '', databaseId: '', databaseSettingsTableId: '', databaseSettingsTableName: '', defaultCapabilities: '', entityField: '', entityTableId: '', policies: '', prefix: '', privateApiName: '', provisions: '', pubkeySettingsTableId: '', pubkeySettingsTableName: '', publicSchemaName: '', rlsSettingsTableId: '', rlsSettingsTableName: '', schemaId: '', scope: '', webauthnSettingsTableId: '', webauthnSettingsTableName: '' }, select: { id: true } }).execute() db.databaseSettingsModule.update({ where: { id: '' }, data: { apiName: '' }, select: { id: true } }).execute() db.databaseSettingsModule.delete({ where: { id: '' } }).execute() ``` @@ -28,7 +28,7 @@ const items = await db.databaseSettingsModule.findMany({ ```typescript const item = await db.databaseSettingsModule.create({ - data: { apiName: '', databaseId: '', databaseSettingsTableId: '', databaseSettingsTableName: '', defaultPermissions: '', entityField: '', entityTableId: '', policies: '', prefix: '', privateApiName: '', provisions: '', pubkeySettingsTableId: '', pubkeySettingsTableName: '', publicSchemaName: '', rlsSettingsTableId: '', rlsSettingsTableName: '', schemaId: '', scope: '', webauthnSettingsTableId: '', webauthnSettingsTableName: '' }, + data: { apiName: '', databaseId: '', databaseSettingsTableId: '', databaseSettingsTableName: '', defaultCapabilities: '', entityField: '', entityTableId: '', policies: '', prefix: '', privateApiName: '', provisions: '', pubkeySettingsTableId: '', pubkeySettingsTableName: '', publicSchemaName: '', rlsSettingsTableId: '', rlsSettingsTableName: '', schemaId: '', scope: '', webauthnSettingsTableId: '', webauthnSettingsTableName: '' }, select: { id: true } }).execute(); ``` diff --git a/.agents/skills/orm-modules/references/db-usage-module.md b/.agents/skills/orm-modules/references/db-usage-module.md index b5319dfd0e..aeb0ddb80d 100644 --- a/.agents/skills/orm-modules/references/db-usage-module.md +++ b/.agents/skills/orm-modules/references/db-usage-module.md @@ -9,7 +9,7 @@ ORM operations for DbUsageModule records ```typescript db.dbUsageModule.findMany({ select: { id: true } }).execute() db.dbUsageModule.findOne({ id: '', select: { id: true } }).execute() -db.dbUsageModule.create({ data: { apiName: '', collectDbQueryStatsFunction: '', collectDbTableStatsFunction: '', databaseId: '', defaultPermissions: '', entityField: '', interval: '', prefix: '', premake: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', publicSchemaName: '', queryStatsLogTableId: '', queryStatsLogTableName: '', queryStatsSummaryTableId: '', queryStatsSummaryTableName: '', retention: '', rollupDbQueryStatsUsageSummaryFunction: '', rollupDbTableStatsUsageSummaryFunction: '', schemaId: '', scope: '', tableStatsLogTableId: '', tableStatsLogTableName: '', tableStatsSummaryTableId: '', tableStatsSummaryTableName: '' }, select: { id: true } }).execute() +db.dbUsageModule.create({ data: { apiName: '', collectDbQueryStatsFunction: '', collectDbTableStatsFunction: '', databaseId: '', defaultCapabilities: '', entityField: '', interval: '', prefix: '', premake: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', publicSchemaName: '', queryStatsLogTableId: '', queryStatsLogTableName: '', queryStatsSummaryTableId: '', queryStatsSummaryTableName: '', retention: '', rollupDbQueryStatsUsageSummaryFunction: '', rollupDbTableStatsUsageSummaryFunction: '', schemaId: '', scope: '', tableStatsLogTableId: '', tableStatsLogTableName: '', tableStatsSummaryTableId: '', tableStatsSummaryTableName: '' }, select: { id: true } }).execute() db.dbUsageModule.update({ where: { id: '' }, data: { apiName: '' }, select: { id: true } }).execute() db.dbUsageModule.delete({ where: { id: '' } }).execute() ``` @@ -28,7 +28,7 @@ const items = await db.dbUsageModule.findMany({ ```typescript const item = await db.dbUsageModule.create({ - data: { apiName: '', collectDbQueryStatsFunction: '', collectDbTableStatsFunction: '', databaseId: '', defaultPermissions: '', entityField: '', interval: '', prefix: '', premake: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', publicSchemaName: '', queryStatsLogTableId: '', queryStatsLogTableName: '', queryStatsSummaryTableId: '', queryStatsSummaryTableName: '', retention: '', rollupDbQueryStatsUsageSummaryFunction: '', rollupDbTableStatsUsageSummaryFunction: '', schemaId: '', scope: '', tableStatsLogTableId: '', tableStatsLogTableName: '', tableStatsSummaryTableId: '', tableStatsSummaryTableName: '' }, + data: { apiName: '', collectDbQueryStatsFunction: '', collectDbTableStatsFunction: '', databaseId: '', defaultCapabilities: '', entityField: '', interval: '', prefix: '', premake: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', publicSchemaName: '', queryStatsLogTableId: '', queryStatsLogTableName: '', queryStatsSummaryTableId: '', queryStatsSummaryTableName: '', retention: '', rollupDbQueryStatsUsageSummaryFunction: '', rollupDbTableStatsUsageSummaryFunction: '', schemaId: '', scope: '', tableStatsLogTableId: '', tableStatsLogTableName: '', tableStatsSummaryTableId: '', tableStatsSummaryTableName: '' }, select: { id: true } }).execute(); ``` diff --git a/.agents/skills/orm-modules/references/domain-module.md b/.agents/skills/orm-modules/references/domain-module.md index 2c18fa046f..894c368280 100644 --- a/.agents/skills/orm-modules/references/domain-module.md +++ b/.agents/skills/orm-modules/references/domain-module.md @@ -9,7 +9,7 @@ ORM operations for DomainModule records ```typescript db.domainModule.findMany({ select: { id: true } }).execute() db.domainModule.findOne({ id: '', select: { id: true } }).execute() -db.domainModule.create({ data: { apiName: '', catalogModuleId: '', databaseId: '', defaultPermissions: '', domainEventsTableId: '', domainEventsTableName: '', domainVerificationsTableId: '', domainVerificationsTableName: '', domainsTableId: '', domainsTableName: '', entityField: '', entityTableId: '', managedDomainsTableId: '', managedDomainsTableName: '', policies: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', provisions: '', publicSchemaName: '', schemaId: '', scope: '' }, select: { id: true } }).execute() +db.domainModule.create({ data: { apiName: '', catalogModuleId: '', databaseId: '', defaultCapabilities: '', domainEventsTableId: '', domainEventsTableName: '', domainVerificationsTableId: '', domainVerificationsTableName: '', domainsTableId: '', domainsTableName: '', entityField: '', entityTableId: '', managedDomainsTableId: '', managedDomainsTableName: '', policies: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', provisions: '', publicSchemaName: '', schemaId: '', scope: '' }, select: { id: true } }).execute() db.domainModule.update({ where: { id: '' }, data: { apiName: '' }, select: { id: true } }).execute() db.domainModule.delete({ where: { id: '' } }).execute() ``` @@ -28,7 +28,7 @@ const items = await db.domainModule.findMany({ ```typescript const item = await db.domainModule.create({ - data: { apiName: '', catalogModuleId: '', databaseId: '', defaultPermissions: '', domainEventsTableId: '', domainEventsTableName: '', domainVerificationsTableId: '', domainVerificationsTableName: '', domainsTableId: '', domainsTableName: '', entityField: '', entityTableId: '', managedDomainsTableId: '', managedDomainsTableName: '', policies: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', provisions: '', publicSchemaName: '', schemaId: '', scope: '' }, + data: { apiName: '', catalogModuleId: '', databaseId: '', defaultCapabilities: '', domainEventsTableId: '', domainEventsTableName: '', domainVerificationsTableId: '', domainVerificationsTableName: '', domainsTableId: '', domainsTableName: '', entityField: '', entityTableId: '', managedDomainsTableId: '', managedDomainsTableName: '', policies: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', provisions: '', publicSchemaName: '', schemaId: '', scope: '' }, select: { id: true } }).execute(); ``` diff --git a/.agents/skills/orm-modules/references/email-sender-module.md b/.agents/skills/orm-modules/references/email-sender-module.md new file mode 100644 index 0000000000..330eb035cd --- /dev/null +++ b/.agents/skills/orm-modules/references/email-sender-module.md @@ -0,0 +1,34 @@ +# emailSenderModule + + + +ORM operations for EmailSenderModule records + +## Usage + +```typescript +db.emailSenderModule.findMany({ select: { id: true } }).execute() +db.emailSenderModule.findOne({ id: '', select: { id: true } }).execute() +db.emailSenderModule.create({ data: { apiName: '', databaseId: '', defaultCapabilities: '', emailIdentitiesTableId: '', emailIdentitiesTableName: '', emailProviderAccountsTableId: '', emailProviderAccountsTableName: '', emailSiteIdentitiesTableId: '', emailSiteIdentitiesTableName: '', entityField: '', entityTableId: '', policies: '', prefix: '', privateApiName: '', provisions: '', publicSchemaName: '', schemaId: '', scope: '', siteSurfaceModuleId: '' }, select: { id: true } }).execute() +db.emailSenderModule.update({ where: { id: '' }, data: { apiName: '' }, select: { id: true } }).execute() +db.emailSenderModule.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all emailSenderModule records + +```typescript +const items = await db.emailSenderModule.findMany({ + select: { id: true, apiName: true } +}).execute(); +``` + +### Create a emailSenderModule + +```typescript +const item = await db.emailSenderModule.create({ + data: { apiName: '', databaseId: '', defaultCapabilities: '', emailIdentitiesTableId: '', emailIdentitiesTableName: '', emailProviderAccountsTableId: '', emailProviderAccountsTableName: '', emailSiteIdentitiesTableId: '', emailSiteIdentitiesTableName: '', entityField: '', entityTableId: '', policies: '', prefix: '', privateApiName: '', provisions: '', publicSchemaName: '', schemaId: '', scope: '', siteSurfaceModuleId: '' }, + select: { id: true } +}).execute(); +``` diff --git a/.agents/skills/orm-modules/references/entity-type-provision.md b/.agents/skills/orm-modules/references/entity-type-provision.md index 984eb8a365..320ee57233 100644 --- a/.agents/skills/orm-modules/references/entity-type-provision.md +++ b/.agents/skills/orm-modules/references/entity-type-provision.md @@ -3,7 +3,7 @@ Provisions a new membership entity type. Each INSERT creates an entity table, registers a membership type, - and installs the required modules (permissions, memberships, limits) plus optional modules (profiles, levels, invites). + and installs the required modules (capabilities, memberships, limits) plus optional modules (profiles, levels, invites). Uses provision_membership_table() internally. Graceful: duplicate (database_id, prefix) pairs are silently skipped via the unique constraint (use INSERT ... ON CONFLICT DO NOTHING). Policy behavior: by default the five entity-table RLS policies are applied (gated by is_visible). diff --git a/.agents/skills/orm-modules/references/events-module.md b/.agents/skills/orm-modules/references/events-module.md index b819f53a02..a8fc9d3b2e 100644 --- a/.agents/skills/orm-modules/references/events-module.md +++ b/.agents/skills/orm-modules/references/events-module.md @@ -9,7 +9,7 @@ ORM operations for EventsModule records ```typescript db.eventsModule.findMany({ select: { id: true } }).execute() db.eventsModule.findOne({ id: '', select: { id: true } }).execute() -db.eventsModule.create({ data: { achievementRewardsTableId: '', achievementRewardsTableName: '', actorTableId: '', apiName: '', databaseId: '', defaultPermissions: '', entityField: '', entityTableId: '', eventAggregatesTableId: '', eventAggregatesTableName: '', eventTypesTableId: '', eventTypesTableName: '', eventsTableId: '', eventsTableName: '', grantAchievement: '', interval: '', levelAchieved: '', levelGrantsTableId: '', levelGrantsTableName: '', levelRequirementsTableId: '', levelRequirementsTableName: '', levelsTableId: '', levelsTableName: '', prefix: '', premake: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', publicSchemaName: '', recordEvent: '', removeEvent: '', retention: '', schemaId: '', scope: '', stepsRequired: '', tgAchievementReward: '', tgCheckAchievements: '', tgEvent: '', tgEventBool: '', tgEventToggle: '', tgEventToggleBool: '', tgUpdateAggregates: '', upsertAggregate: '' }, select: { id: true } }).execute() +db.eventsModule.create({ data: { achievementRewardsTableId: '', achievementRewardsTableName: '', actorTableId: '', apiName: '', databaseId: '', defaultCapabilities: '', entityField: '', entityTableId: '', eventAggregatesTableId: '', eventAggregatesTableName: '', eventTypesTableId: '', eventTypesTableName: '', eventsTableId: '', eventsTableName: '', expireGrants: '', grantAchievement: '', interval: '', levelAchieved: '', levelGrantsTableId: '', levelGrantsTableName: '', levelRequirementsTableId: '', levelRequirementsTableName: '', levelsTableId: '', levelsTableName: '', prefix: '', premake: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', publicSchemaName: '', recomputeCapabilities: '', recordEvent: '', removeEvent: '', retention: '', revokeAchievement: '', schemaId: '', scope: '', stepsRequired: '', tgAchievementReward: '', tgCheckAchievements: '', tgEvent: '', tgEventBool: '', tgEventToggle: '', tgEventToggleBool: '', tgLevelGrantSync: '', tgUpdateAggregates: '', trustLadder: '', upsertAggregate: '' }, select: { id: true } }).execute() db.eventsModule.update({ where: { id: '' }, data: { achievementRewardsTableId: '' }, select: { id: true } }).execute() db.eventsModule.delete({ where: { id: '' } }).execute() ``` @@ -28,7 +28,7 @@ const items = await db.eventsModule.findMany({ ```typescript const item = await db.eventsModule.create({ - data: { achievementRewardsTableId: '', achievementRewardsTableName: '', actorTableId: '', apiName: '', databaseId: '', defaultPermissions: '', entityField: '', entityTableId: '', eventAggregatesTableId: '', eventAggregatesTableName: '', eventTypesTableId: '', eventTypesTableName: '', eventsTableId: '', eventsTableName: '', grantAchievement: '', interval: '', levelAchieved: '', levelGrantsTableId: '', levelGrantsTableName: '', levelRequirementsTableId: '', levelRequirementsTableName: '', levelsTableId: '', levelsTableName: '', prefix: '', premake: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', publicSchemaName: '', recordEvent: '', removeEvent: '', retention: '', schemaId: '', scope: '', stepsRequired: '', tgAchievementReward: '', tgCheckAchievements: '', tgEvent: '', tgEventBool: '', tgEventToggle: '', tgEventToggleBool: '', tgUpdateAggregates: '', upsertAggregate: '' }, + data: { achievementRewardsTableId: '', achievementRewardsTableName: '', actorTableId: '', apiName: '', databaseId: '', defaultCapabilities: '', entityField: '', entityTableId: '', eventAggregatesTableId: '', eventAggregatesTableName: '', eventTypesTableId: '', eventTypesTableName: '', eventsTableId: '', eventsTableName: '', expireGrants: '', grantAchievement: '', interval: '', levelAchieved: '', levelGrantsTableId: '', levelGrantsTableName: '', levelRequirementsTableId: '', levelRequirementsTableName: '', levelsTableId: '', levelsTableName: '', prefix: '', premake: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', publicSchemaName: '', recomputeCapabilities: '', recordEvent: '', removeEvent: '', retention: '', revokeAchievement: '', schemaId: '', scope: '', stepsRequired: '', tgAchievementReward: '', tgCheckAchievements: '', tgEvent: '', tgEventBool: '', tgEventToggle: '', tgEventToggleBool: '', tgLevelGrantSync: '', tgUpdateAggregates: '', trustLadder: '', upsertAggregate: '' }, select: { id: true } }).execute(); ``` diff --git a/.agents/skills/orm-modules/references/file-ref-field.md b/.agents/skills/orm-modules/references/file-ref-field.md new file mode 100644 index 0000000000..f8022ec482 --- /dev/null +++ b/.agents/skills/orm-modules/references/file-ref-field.md @@ -0,0 +1,34 @@ +# fileRefField + + + +ORM operations for FileRefField records + +## Usage + +```typescript +db.fileRefField.findMany({ select: { id: true } }).execute() +db.fileRefField.findOne({ id: '', select: { id: true } }).execute() +db.fileRefField.create({ data: { bucketKey: '', bucketTags: '', databaseId: '', enforceFk: '', fieldId: '', isPublic: '', storageModuleId: '', tableId: '' }, select: { id: true } }).execute() +db.fileRefField.update({ where: { id: '' }, data: { bucketKey: '' }, select: { id: true } }).execute() +db.fileRefField.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all fileRefField records + +```typescript +const items = await db.fileRefField.findMany({ + select: { id: true, bucketKey: true } +}).execute(); +``` + +### Create a fileRefField + +```typescript +const item = await db.fileRefField.create({ + data: { bucketKey: '', bucketTags: '', databaseId: '', enforceFk: '', fieldId: '', isPublic: '', storageModuleId: '', tableId: '' }, + select: { id: true } +}).execute(); +``` diff --git a/.agents/skills/orm-modules/references/function-deployment-module.md b/.agents/skills/orm-modules/references/function-deployment-module.md index 604cef565a..fb6b473214 100644 --- a/.agents/skills/orm-modules/references/function-deployment-module.md +++ b/.agents/skills/orm-modules/references/function-deployment-module.md @@ -9,7 +9,7 @@ ORM operations for FunctionDeploymentModule records ```typescript db.functionDeploymentModule.findMany({ select: { id: true } }).execute() db.functionDeploymentModule.findOne({ id: '', select: { id: true } }).execute() -db.functionDeploymentModule.create({ data: { apiName: '', databaseId: '', defaultPermissions: '', deploymentEventsTableId: '', deploymentEventsTableName: '', deploymentsTableId: '', deploymentsTableName: '', entityField: '', entityTableId: '', functionModuleId: '', namespaceModuleId: '', policies: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', provisions: '', publicSchemaName: '', schemaId: '', scope: '' }, select: { id: true } }).execute() +db.functionDeploymentModule.create({ data: { apiName: '', databaseId: '', defaultCapabilities: '', deploymentEventsTableId: '', deploymentEventsTableName: '', deploymentsTableId: '', deploymentsTableName: '', entityField: '', entityTableId: '', functionModuleId: '', namespaceModuleId: '', policies: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', provisions: '', publicSchemaName: '', schemaId: '', scope: '' }, select: { id: true } }).execute() db.functionDeploymentModule.update({ where: { id: '' }, data: { apiName: '' }, select: { id: true } }).execute() db.functionDeploymentModule.delete({ where: { id: '' } }).execute() ``` @@ -28,7 +28,7 @@ const items = await db.functionDeploymentModule.findMany({ ```typescript const item = await db.functionDeploymentModule.create({ - data: { apiName: '', databaseId: '', defaultPermissions: '', deploymentEventsTableId: '', deploymentEventsTableName: '', deploymentsTableId: '', deploymentsTableName: '', entityField: '', entityTableId: '', functionModuleId: '', namespaceModuleId: '', policies: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', provisions: '', publicSchemaName: '', schemaId: '', scope: '' }, + data: { apiName: '', databaseId: '', defaultCapabilities: '', deploymentEventsTableId: '', deploymentEventsTableName: '', deploymentsTableId: '', deploymentsTableName: '', entityField: '', entityTableId: '', functionModuleId: '', namespaceModuleId: '', policies: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', provisions: '', publicSchemaName: '', schemaId: '', scope: '' }, select: { id: true } }).execute(); ``` diff --git a/.agents/skills/orm-modules/references/function-invocation-module.md b/.agents/skills/orm-modules/references/function-invocation-module.md index 39c9f0925e..8717e63043 100644 --- a/.agents/skills/orm-modules/references/function-invocation-module.md +++ b/.agents/skills/orm-modules/references/function-invocation-module.md @@ -9,7 +9,7 @@ ORM operations for FunctionInvocationModule records ```typescript db.functionInvocationModule.findMany({ select: { id: true } }).execute() db.functionInvocationModule.findOne({ id: '', select: { id: true } }).execute() -db.functionInvocationModule.create({ data: { apiName: '', attemptsTableId: '', attemptsTableName: '', databaseId: '', defaultPermissions: '', entityField: '', entityTableId: '', executionLogsTableId: '', executionLogsTableName: '', invocationsTableId: '', invocationsTableName: '', policies: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', provisions: '', publicSchemaName: '', schemaId: '', scope: '' }, select: { id: true } }).execute() +db.functionInvocationModule.create({ data: { apiName: '', attemptsTableId: '', attemptsTableName: '', databaseId: '', defaultCapabilities: '', entityField: '', entityTableId: '', executionLogsTableId: '', executionLogsTableName: '', invocationsTableId: '', invocationsTableName: '', policies: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', provisions: '', publicSchemaName: '', schemaId: '', scope: '' }, select: { id: true } }).execute() db.functionInvocationModule.update({ where: { id: '' }, data: { apiName: '' }, select: { id: true } }).execute() db.functionInvocationModule.delete({ where: { id: '' } }).execute() ``` @@ -28,7 +28,7 @@ const items = await db.functionInvocationModule.findMany({ ```typescript const item = await db.functionInvocationModule.create({ - data: { apiName: '', attemptsTableId: '', attemptsTableName: '', databaseId: '', defaultPermissions: '', entityField: '', entityTableId: '', executionLogsTableId: '', executionLogsTableName: '', invocationsTableId: '', invocationsTableName: '', policies: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', provisions: '', publicSchemaName: '', schemaId: '', scope: '' }, + data: { apiName: '', attemptsTableId: '', attemptsTableName: '', databaseId: '', defaultCapabilities: '', entityField: '', entityTableId: '', executionLogsTableId: '', executionLogsTableName: '', invocationsTableId: '', invocationsTableName: '', policies: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', provisions: '', publicSchemaName: '', schemaId: '', scope: '' }, select: { id: true } }).execute(); ``` diff --git a/.agents/skills/orm-modules/references/function-module.md b/.agents/skills/orm-modules/references/function-module.md index bcf0eaa17d..8eda284faa 100644 --- a/.agents/skills/orm-modules/references/function-module.md +++ b/.agents/skills/orm-modules/references/function-module.md @@ -9,7 +9,7 @@ ORM operations for FunctionModule records ```typescript db.functionModule.findMany({ select: { id: true } }).execute() db.functionModule.findOne({ id: '', select: { id: true } }).execute() -db.functionModule.create({ data: { apiName: '', bindingsTableId: '', bindingsTableName: '', capabilityBindingsTableId: '', databaseId: '', defaultPermissions: '', definitionsTableId: '', definitionsTableName: '', entityField: '', entityTableId: '', hasCron: '', policies: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', provisions: '', publicSchemaName: '', schedulesTableId: '', schemaId: '', scope: '' }, select: { id: true } }).execute() +db.functionModule.create({ data: { apiName: '', bindingsTableId: '', bindingsTableName: '', capabilityBindingsTableId: '', databaseId: '', defaultCapabilities: '', definitionsTableId: '', definitionsTableName: '', entityField: '', entityTableId: '', hasCron: '', policies: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', provisions: '', publicSchemaName: '', schedulesTableId: '', schemaId: '', scope: '' }, select: { id: true } }).execute() db.functionModule.update({ where: { id: '' }, data: { apiName: '' }, select: { id: true } }).execute() db.functionModule.delete({ where: { id: '' } }).execute() ``` @@ -28,7 +28,7 @@ const items = await db.functionModule.findMany({ ```typescript const item = await db.functionModule.create({ - data: { apiName: '', bindingsTableId: '', bindingsTableName: '', capabilityBindingsTableId: '', databaseId: '', defaultPermissions: '', definitionsTableId: '', definitionsTableName: '', entityField: '', entityTableId: '', hasCron: '', policies: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', provisions: '', publicSchemaName: '', schedulesTableId: '', schemaId: '', scope: '' }, + data: { apiName: '', bindingsTableId: '', bindingsTableName: '', capabilityBindingsTableId: '', databaseId: '', defaultCapabilities: '', definitionsTableId: '', definitionsTableName: '', entityField: '', entityTableId: '', hasCron: '', policies: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', provisions: '', publicSchemaName: '', schedulesTableId: '', schemaId: '', scope: '' }, select: { id: true } }).execute(); ``` diff --git a/.agents/skills/orm-modules/references/graph-execution-module.md b/.agents/skills/orm-modules/references/graph-execution-module.md index e1840f0074..f4e4cfe227 100644 --- a/.agents/skills/orm-modules/references/graph-execution-module.md +++ b/.agents/skills/orm-modules/references/graph-execution-module.md @@ -9,7 +9,7 @@ ORM operations for GraphExecutionModule records ```typescript db.graphExecutionModule.findMany({ select: { id: true } }).execute() db.graphExecutionModule.findOne({ id: '', select: { id: true } }).execute() -db.graphExecutionModule.create({ data: { apiName: '', databaseId: '', defaultPermissions: '', entityField: '', entityTableId: '', executionsTableId: '', executionsTableName: '', graphModuleId: '', nodeStatesTableId: '', nodeStatesTableName: '', outputsTableId: '', outputsTableName: '', policies: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', provisions: '', publicSchemaName: '', schemaId: '', scope: '' }, select: { id: true } }).execute() +db.graphExecutionModule.create({ data: { apiName: '', databaseId: '', defaultCapabilities: '', entityField: '', entityTableId: '', executionsTableId: '', executionsTableName: '', graphModuleId: '', nodeStatesTableId: '', nodeStatesTableName: '', outputsTableId: '', outputsTableName: '', policies: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', provisions: '', publicSchemaName: '', schemaId: '', scope: '' }, select: { id: true } }).execute() db.graphExecutionModule.update({ where: { id: '' }, data: { apiName: '' }, select: { id: true } }).execute() db.graphExecutionModule.delete({ where: { id: '' } }).execute() ``` @@ -28,7 +28,7 @@ const items = await db.graphExecutionModule.findMany({ ```typescript const item = await db.graphExecutionModule.create({ - data: { apiName: '', databaseId: '', defaultPermissions: '', entityField: '', entityTableId: '', executionsTableId: '', executionsTableName: '', graphModuleId: '', nodeStatesTableId: '', nodeStatesTableName: '', outputsTableId: '', outputsTableName: '', policies: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', provisions: '', publicSchemaName: '', schemaId: '', scope: '' }, + data: { apiName: '', databaseId: '', defaultCapabilities: '', entityField: '', entityTableId: '', executionsTableId: '', executionsTableName: '', graphModuleId: '', nodeStatesTableId: '', nodeStatesTableName: '', outputsTableId: '', outputsTableName: '', policies: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', provisions: '', publicSchemaName: '', schemaId: '', scope: '' }, select: { id: true } }).execute(); ``` diff --git a/.agents/skills/orm-modules/references/graph-module.md b/.agents/skills/orm-modules/references/graph-module.md index 78fd3a116d..b207f2f405 100644 --- a/.agents/skills/orm-modules/references/graph-module.md +++ b/.agents/skills/orm-modules/references/graph-module.md @@ -9,7 +9,7 @@ ORM operations for GraphModule records ```typescript db.graphModule.findMany({ select: { id: true } }).execute() db.graphModule.findOne({ id: '', select: { id: true } }).execute() -db.graphModule.create({ data: { apiName: '', databaseId: '', defaultPermissions: '', entityField: '', entityTableId: '', graphsTableId: '', merkleStoreModuleId: '', policies: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', provisions: '', publicSchemaId: '', publicSchemaName: '', scope: '' }, select: { id: true } }).execute() +db.graphModule.create({ data: { apiName: '', databaseId: '', defaultCapabilities: '', entityField: '', entityTableId: '', graphsTableId: '', merkleStoreModuleId: '', policies: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', provisions: '', publicSchemaId: '', publicSchemaName: '', scope: '' }, select: { id: true } }).execute() db.graphModule.update({ where: { id: '' }, data: { apiName: '' }, select: { id: true } }).execute() db.graphModule.delete({ where: { id: '' } }).execute() ``` @@ -28,7 +28,7 @@ const items = await db.graphModule.findMany({ ```typescript const item = await db.graphModule.create({ - data: { apiName: '', databaseId: '', defaultPermissions: '', entityField: '', entityTableId: '', graphsTableId: '', merkleStoreModuleId: '', policies: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', provisions: '', publicSchemaId: '', publicSchemaName: '', scope: '' }, + data: { apiName: '', databaseId: '', defaultCapabilities: '', entityField: '', entityTableId: '', graphsTableId: '', merkleStoreModuleId: '', policies: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', provisions: '', publicSchemaId: '', publicSchemaName: '', scope: '' }, select: { id: true } }).execute(); ``` diff --git a/.agents/skills/orm-modules/references/hierarchy-module.md b/.agents/skills/orm-modules/references/hierarchy-module.md index ca88709f98..b849506981 100644 --- a/.agents/skills/orm-modules/references/hierarchy-module.md +++ b/.agents/skills/orm-modules/references/hierarchy-module.md @@ -9,7 +9,7 @@ ORM operations for HierarchyModule records ```typescript db.hierarchyModule.findMany({ select: { id: true } }).execute() db.hierarchyModule.findOne({ id: '', select: { id: true } }).execute() -db.hierarchyModule.create({ data: { chartEdgeGrantsTableId: '', chartEdgeGrantsTableName: '', chartEdgesTableId: '', chartEdgesTableName: '', databaseId: '', defaultPermissions: '', entityField: '', entityTableId: '', getManagersFunction: '', getSubordinatesFunction: '', hierarchySprtTableId: '', hierarchySprtTableName: '', isManagerOfFunction: '', prefix: '', privateSchemaId: '', privateSchemaName: '', rebuildHierarchyFunction: '', schemaId: '', scope: '', sprtTableName: '', usersTableId: '' }, select: { id: true } }).execute() +db.hierarchyModule.create({ data: { chartEdgeGrantsTableId: '', chartEdgeGrantsTableName: '', chartEdgesTableId: '', chartEdgesTableName: '', databaseId: '', defaultCapabilities: '', entityField: '', entityTableId: '', getManagersFunction: '', getSubordinatesFunction: '', hierarchySprtTableId: '', hierarchySprtTableName: '', isManagerOfFunction: '', prefix: '', privateSchemaId: '', privateSchemaName: '', rebuildHierarchyFunction: '', schemaId: '', scope: '', sprtTableName: '', usersTableId: '' }, select: { id: true } }).execute() db.hierarchyModule.update({ where: { id: '' }, data: { chartEdgeGrantsTableId: '' }, select: { id: true } }).execute() db.hierarchyModule.delete({ where: { id: '' } }).execute() ``` @@ -28,7 +28,7 @@ const items = await db.hierarchyModule.findMany({ ```typescript const item = await db.hierarchyModule.create({ - data: { chartEdgeGrantsTableId: '', chartEdgeGrantsTableName: '', chartEdgesTableId: '', chartEdgesTableName: '', databaseId: '', defaultPermissions: '', entityField: '', entityTableId: '', getManagersFunction: '', getSubordinatesFunction: '', hierarchySprtTableId: '', hierarchySprtTableName: '', isManagerOfFunction: '', prefix: '', privateSchemaId: '', privateSchemaName: '', rebuildHierarchyFunction: '', schemaId: '', scope: '', sprtTableName: '', usersTableId: '' }, + data: { chartEdgeGrantsTableId: '', chartEdgeGrantsTableName: '', chartEdgesTableId: '', chartEdgesTableName: '', databaseId: '', defaultCapabilities: '', entityField: '', entityTableId: '', getManagersFunction: '', getSubordinatesFunction: '', hierarchySprtTableId: '', hierarchySprtTableName: '', isManagerOfFunction: '', prefix: '', privateSchemaId: '', privateSchemaName: '', rebuildHierarchyFunction: '', schemaId: '', scope: '', sprtTableName: '', usersTableId: '' }, select: { id: true } }).execute(); ``` diff --git a/.agents/skills/orm-modules/references/http-route-module.md b/.agents/skills/orm-modules/references/http-route-module.md index db1c197564..6bc6ff95b3 100644 --- a/.agents/skills/orm-modules/references/http-route-module.md +++ b/.agents/skills/orm-modules/references/http-route-module.md @@ -9,7 +9,7 @@ ORM operations for HttpRouteModule records ```typescript db.httpRouteModule.findMany({ select: { id: true } }).execute() db.httpRouteModule.findOne({ id: '', select: { id: true } }).execute() -db.httpRouteModule.create({ data: { apiName: '', databaseId: '', defaultPermissions: '', entityField: '', entityTableId: '', functionModuleId: '', httpRoutesTableId: '', httpRoutesTableName: '', policies: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', provisions: '', publicSchemaName: '', resolverFunctionName: '', resourceModuleId: '', schemaId: '', scope: '', storageModuleId: '' }, select: { id: true } }).execute() +db.httpRouteModule.create({ data: { apiName: '', databaseId: '', defaultCapabilities: '', entityField: '', entityTableId: '', functionModuleId: '', httpRoutesTableId: '', httpRoutesTableName: '', policies: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', provisions: '', publicSchemaName: '', resolverFunctionName: '', resourceModuleId: '', schemaId: '', scope: '', storageModuleId: '' }, select: { id: true } }).execute() db.httpRouteModule.update({ where: { id: '' }, data: { apiName: '' }, select: { id: true } }).execute() db.httpRouteModule.delete({ where: { id: '' } }).execute() ``` @@ -28,7 +28,7 @@ const items = await db.httpRouteModule.findMany({ ```typescript const item = await db.httpRouteModule.create({ - data: { apiName: '', databaseId: '', defaultPermissions: '', entityField: '', entityTableId: '', functionModuleId: '', httpRoutesTableId: '', httpRoutesTableName: '', policies: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', provisions: '', publicSchemaName: '', resolverFunctionName: '', resourceModuleId: '', schemaId: '', scope: '', storageModuleId: '' }, + data: { apiName: '', databaseId: '', defaultCapabilities: '', entityField: '', entityTableId: '', functionModuleId: '', httpRoutesTableId: '', httpRoutesTableName: '', policies: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', provisions: '', publicSchemaName: '', resolverFunctionName: '', resourceModuleId: '', schemaId: '', scope: '', storageModuleId: '' }, select: { id: true } }).execute(); ``` diff --git a/.agents/skills/orm-modules/references/limits-module.md b/.agents/skills/orm-modules/references/limits-module.md index 4de56ffc79..f40a4d03d8 100644 --- a/.agents/skills/orm-modules/references/limits-module.md +++ b/.agents/skills/orm-modules/references/limits-module.md @@ -9,7 +9,7 @@ ORM operations for LimitsModule records ```typescript db.limitsModule.findMany({ select: { id: true } }).execute() db.limitsModule.findOne({ id: '', select: { id: true } }).execute() -db.limitsModule.create({ data: { actorTableId: '', aggregateTableId: '', apiName: '', capCheckTrigger: '', creditCodeItemsTableId: '', creditCodesTableId: '', creditRedemptionsTableId: '', databaseId: '', defaultTableId: '', defaultTableName: '', entityField: '', entityTableId: '', eventsTableId: '', limitAggregateCheckSoftFunction: '', limitCapsDefaultsTableId: '', limitCapsTableId: '', limitCheckFunction: '', limitCheckSoftFunction: '', limitCreditsTableId: '', limitDecrementFunction: '', limitDecrementTrigger: '', limitIncrementFunction: '', limitIncrementTrigger: '', limitUpdateTrigger: '', limitWarningStateTableId: '', limitWarningsTableId: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', publicSchemaName: '', resolveCapFunction: '', schemaId: '', scope: '', tableId: '', tableName: '' }, select: { id: true } }).execute() +db.limitsModule.create({ data: { actorTableId: '', aggregateTableId: '', apiName: '', capCheckTrigger: '', creditCodeItemsTableId: '', creditCodesTableId: '', creditRedemptionsTableId: '', databaseId: '', defaultTableId: '', defaultTableName: '', entityField: '', entityTableId: '', eventsTableId: '', limitAggregateCheckSoftFunction: '', limitCapsDefaultsTableId: '', limitCapsTableId: '', limitCheckFunction: '', limitCheckSoftFunction: '', limitCreditsTableId: '', limitDecrementFunction: '', limitDecrementTrigger: '', limitDefaults: '', limitIncrementFunction: '', limitIncrementTrigger: '', limitUpdateTrigger: '', limitWarningStateTableId: '', limitWarningsTableId: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', publicSchemaName: '', resolveCapFunction: '', schemaId: '', scope: '', tableId: '', tableName: '' }, select: { id: true } }).execute() db.limitsModule.update({ where: { id: '' }, data: { actorTableId: '' }, select: { id: true } }).execute() db.limitsModule.delete({ where: { id: '' } }).execute() ``` @@ -28,7 +28,7 @@ const items = await db.limitsModule.findMany({ ```typescript const item = await db.limitsModule.create({ - data: { actorTableId: '', aggregateTableId: '', apiName: '', capCheckTrigger: '', creditCodeItemsTableId: '', creditCodesTableId: '', creditRedemptionsTableId: '', databaseId: '', defaultTableId: '', defaultTableName: '', entityField: '', entityTableId: '', eventsTableId: '', limitAggregateCheckSoftFunction: '', limitCapsDefaultsTableId: '', limitCapsTableId: '', limitCheckFunction: '', limitCheckSoftFunction: '', limitCreditsTableId: '', limitDecrementFunction: '', limitDecrementTrigger: '', limitIncrementFunction: '', limitIncrementTrigger: '', limitUpdateTrigger: '', limitWarningStateTableId: '', limitWarningsTableId: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', publicSchemaName: '', resolveCapFunction: '', schemaId: '', scope: '', tableId: '', tableName: '' }, + data: { actorTableId: '', aggregateTableId: '', apiName: '', capCheckTrigger: '', creditCodeItemsTableId: '', creditCodesTableId: '', creditRedemptionsTableId: '', databaseId: '', defaultTableId: '', defaultTableName: '', entityField: '', entityTableId: '', eventsTableId: '', limitAggregateCheckSoftFunction: '', limitCapsDefaultsTableId: '', limitCapsTableId: '', limitCheckFunction: '', limitCheckSoftFunction: '', limitCreditsTableId: '', limitDecrementFunction: '', limitDecrementTrigger: '', limitDefaults: '', limitIncrementFunction: '', limitIncrementTrigger: '', limitUpdateTrigger: '', limitWarningStateTableId: '', limitWarningsTableId: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', publicSchemaName: '', resolveCapFunction: '', schemaId: '', scope: '', tableId: '', tableName: '' }, select: { id: true } }).execute(); ``` diff --git a/.agents/skills/orm-modules/references/memberships-module.md b/.agents/skills/orm-modules/references/memberships-module.md index 7e4741f36d..6104cde1ce 100644 --- a/.agents/skills/orm-modules/references/memberships-module.md +++ b/.agents/skills/orm-modules/references/memberships-module.md @@ -9,7 +9,7 @@ ORM operations for MembershipsModule records ```typescript db.membershipsModule.findMany({ select: { id: true } }).execute() db.membershipsModule.findOne({ id: '', select: { id: true } }).execute() -db.membershipsModule.create({ data: { actorMaskCheck: '', actorPermCheck: '', actorTableId: '', adminGrantsTableId: '', adminGrantsTableName: '', apiName: '', databaseId: '', defaultLimitsTableId: '', defaultPermissionsTableId: '', entityField: '', entityIdsByMask: '', entityIdsByPerm: '', entityIdsFunction: '', entityTableId: '', entityTableOwnerId: '', getOrgFn: '', grantsTableId: '', grantsTableName: '', limitsTableId: '', memberProfilesTableId: '', membersTableId: '', membersTableName: '', membershipDefaultsTableId: '', membershipDefaultsTableName: '', membershipSettingsTableId: '', membershipSettingsTableName: '', membershipsTableId: '', membershipsTableName: '', ownerGrantsTableId: '', ownerGrantsTableName: '', permissionDefaultGrantsTableId: '', permissionDefaultPermissionsTableId: '', permissionsTableId: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', publicSchemaName: '', schemaId: '', scope: '', sprtTableId: '' }, select: { id: true } }).execute() +db.membershipsModule.create({ data: { actorMaskCheck: '', actorPermCheck: '', actorTableId: '', adminGrantsTableId: '', adminGrantsTableName: '', apiName: '', capabilitiesTableId: '', capabilityDefaultCapabilitiesTableId: '', capabilityDefaultGrantsTableId: '', databaseId: '', defaultCapabilitiesTableId: '', defaultLimitsTableId: '', entityField: '', entityIdsByMask: '', entityIdsByPerm: '', entityIdsFunction: '', entityTableId: '', entityTableOwnerId: '', getOrgFn: '', grantsTableId: '', grantsTableName: '', limitsTableId: '', memberProfilesTableId: '', membersTableId: '', membersTableName: '', membershipDefaultsTableId: '', membershipDefaultsTableName: '', membershipSettingsTableId: '', membershipSettingsTableName: '', membershipsTableId: '', membershipsTableName: '', ownerGrantsTableId: '', ownerGrantsTableName: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', publicSchemaName: '', schemaId: '', scope: '', sprtTableId: '' }, select: { id: true } }).execute() db.membershipsModule.update({ where: { id: '' }, data: { actorMaskCheck: '' }, select: { id: true } }).execute() db.membershipsModule.delete({ where: { id: '' } }).execute() ``` @@ -28,7 +28,7 @@ const items = await db.membershipsModule.findMany({ ```typescript const item = await db.membershipsModule.create({ - data: { actorMaskCheck: '', actorPermCheck: '', actorTableId: '', adminGrantsTableId: '', adminGrantsTableName: '', apiName: '', databaseId: '', defaultLimitsTableId: '', defaultPermissionsTableId: '', entityField: '', entityIdsByMask: '', entityIdsByPerm: '', entityIdsFunction: '', entityTableId: '', entityTableOwnerId: '', getOrgFn: '', grantsTableId: '', grantsTableName: '', limitsTableId: '', memberProfilesTableId: '', membersTableId: '', membersTableName: '', membershipDefaultsTableId: '', membershipDefaultsTableName: '', membershipSettingsTableId: '', membershipSettingsTableName: '', membershipsTableId: '', membershipsTableName: '', ownerGrantsTableId: '', ownerGrantsTableName: '', permissionDefaultGrantsTableId: '', permissionDefaultPermissionsTableId: '', permissionsTableId: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', publicSchemaName: '', schemaId: '', scope: '', sprtTableId: '' }, + data: { actorMaskCheck: '', actorPermCheck: '', actorTableId: '', adminGrantsTableId: '', adminGrantsTableName: '', apiName: '', capabilitiesTableId: '', capabilityDefaultCapabilitiesTableId: '', capabilityDefaultGrantsTableId: '', databaseId: '', defaultCapabilitiesTableId: '', defaultLimitsTableId: '', entityField: '', entityIdsByMask: '', entityIdsByPerm: '', entityIdsFunction: '', entityTableId: '', entityTableOwnerId: '', getOrgFn: '', grantsTableId: '', grantsTableName: '', limitsTableId: '', memberProfilesTableId: '', membersTableId: '', membersTableName: '', membershipDefaultsTableId: '', membershipDefaultsTableName: '', membershipSettingsTableId: '', membershipSettingsTableName: '', membershipsTableId: '', membershipsTableName: '', ownerGrantsTableId: '', ownerGrantsTableName: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', publicSchemaName: '', schemaId: '', scope: '', sprtTableId: '' }, select: { id: true } }).execute(); ``` diff --git a/.agents/skills/orm-modules/references/merkle-store-module.md b/.agents/skills/orm-modules/references/merkle-store-module.md index f84b319610..c8d8f1dc76 100644 --- a/.agents/skills/orm-modules/references/merkle-store-module.md +++ b/.agents/skills/orm-modules/references/merkle-store-module.md @@ -9,7 +9,7 @@ ORM operations for MerkleStoreModule records ```typescript db.merkleStoreModule.findMany({ select: { id: true } }).execute() db.merkleStoreModule.findOne({ id: '', select: { id: true } }).execute() -db.merkleStoreModule.create({ data: { apiName: '', commitTableId: '', databaseId: '', entityField: '', functionPrefix: '', objectTableId: '', permissionKey: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', publicSchemaName: '', refTableId: '', schemaId: '', scope: '', storeTableId: '' }, select: { id: true } }).execute() +db.merkleStoreModule.create({ data: { apiName: '', capabilityKey: '', commitTableId: '', databaseId: '', entityField: '', functionPrefix: '', objectTableId: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', publicSchemaName: '', refTableId: '', schemaId: '', scope: '', storeTableId: '' }, select: { id: true } }).execute() db.merkleStoreModule.update({ where: { id: '' }, data: { apiName: '' }, select: { id: true } }).execute() db.merkleStoreModule.delete({ where: { id: '' } }).execute() ``` @@ -28,7 +28,7 @@ const items = await db.merkleStoreModule.findMany({ ```typescript const item = await db.merkleStoreModule.create({ - data: { apiName: '', commitTableId: '', databaseId: '', entityField: '', functionPrefix: '', objectTableId: '', permissionKey: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', publicSchemaName: '', refTableId: '', schemaId: '', scope: '', storeTableId: '' }, + data: { apiName: '', capabilityKey: '', commitTableId: '', databaseId: '', entityField: '', functionPrefix: '', objectTableId: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', publicSchemaName: '', refTableId: '', schemaId: '', scope: '', storeTableId: '' }, select: { id: true } }).execute(); ``` diff --git a/.agents/skills/orm-modules/references/namespace-module.md b/.agents/skills/orm-modules/references/namespace-module.md index c0b7b8bf20..d60cea3e93 100644 --- a/.agents/skills/orm-modules/references/namespace-module.md +++ b/.agents/skills/orm-modules/references/namespace-module.md @@ -9,7 +9,7 @@ ORM operations for NamespaceModule records ```typescript db.namespaceModule.findMany({ select: { id: true } }).execute() db.namespaceModule.findOne({ id: '', select: { id: true } }).execute() -db.namespaceModule.create({ data: { apiName: '', databaseId: '', defaultPermissions: '', entityField: '', entityTableId: '', namespaceEventsTableId: '', namespaceEventsTableName: '', namespacesTableId: '', namespacesTableName: '', policies: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', provisions: '', publicSchemaName: '', schemaId: '', scope: '' }, select: { id: true } }).execute() +db.namespaceModule.create({ data: { apiName: '', databaseId: '', defaultCapabilities: '', entityField: '', entityTableId: '', namespaceEventsTableId: '', namespaceEventsTableName: '', namespacesTableId: '', namespacesTableName: '', policies: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', provisions: '', publicSchemaName: '', schemaId: '', scope: '' }, select: { id: true } }).execute() db.namespaceModule.update({ where: { id: '' }, data: { apiName: '' }, select: { id: true } }).execute() db.namespaceModule.delete({ where: { id: '' } }).execute() ``` @@ -28,7 +28,7 @@ const items = await db.namespaceModule.findMany({ ```typescript const item = await db.namespaceModule.create({ - data: { apiName: '', databaseId: '', defaultPermissions: '', entityField: '', entityTableId: '', namespaceEventsTableId: '', namespaceEventsTableName: '', namespacesTableId: '', namespacesTableName: '', policies: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', provisions: '', publicSchemaName: '', schemaId: '', scope: '' }, + data: { apiName: '', databaseId: '', defaultCapabilities: '', entityField: '', entityTableId: '', namespaceEventsTableId: '', namespaceEventsTableName: '', namespacesTableId: '', namespacesTableName: '', policies: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', provisions: '', publicSchemaName: '', schemaId: '', scope: '' }, select: { id: true } }).execute(); ``` diff --git a/.agents/skills/orm-modules/references/notifications-module.md b/.agents/skills/orm-modules/references/notifications-module.md index e0a1a4b0cd..e04e9d0f7f 100644 --- a/.agents/skills/orm-modules/references/notifications-module.md +++ b/.agents/skills/orm-modules/references/notifications-module.md @@ -9,7 +9,7 @@ ORM operations for NotificationsModule records ```typescript db.notificationsModule.findMany({ select: { id: true } }).execute() db.notificationsModule.findOne({ id: '', select: { id: true } }).execute() -db.notificationsModule.create({ data: { apiName: '', channelsTableId: '', databaseId: '', defaultPermissions: '', deliveryLogTableId: '', entityField: '', hasChannels: '', hasDigestMetadata: '', hasPreferences: '', hasSettingsExtension: '', hasSubscriptions: '', notificationsTableId: '', organizationSettingsTableId: '', ownerTableId: '', preferencesTableId: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', publicSchemaName: '', readStateTableId: '', schemaId: '', suppressionsTableId: '', userSettingsTableId: '' }, select: { id: true } }).execute() +db.notificationsModule.create({ data: { apiName: '', channelsTableId: '', databaseId: '', defaultCapabilities: '', deliveryLogTableId: '', entityField: '', hasChannels: '', hasDigestMetadata: '', hasPreferences: '', hasSettingsExtension: '', hasSubscriptions: '', notificationsTableId: '', organizationSettingsTableId: '', ownerTableId: '', preferencesTableId: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', publicSchemaName: '', readStateTableId: '', schemaId: '', suppressionsTableId: '', userSettingsTableId: '' }, select: { id: true } }).execute() db.notificationsModule.update({ where: { id: '' }, data: { apiName: '' }, select: { id: true } }).execute() db.notificationsModule.delete({ where: { id: '' } }).execute() ``` @@ -28,7 +28,7 @@ const items = await db.notificationsModule.findMany({ ```typescript const item = await db.notificationsModule.create({ - data: { apiName: '', channelsTableId: '', databaseId: '', defaultPermissions: '', deliveryLogTableId: '', entityField: '', hasChannels: '', hasDigestMetadata: '', hasPreferences: '', hasSettingsExtension: '', hasSubscriptions: '', notificationsTableId: '', organizationSettingsTableId: '', ownerTableId: '', preferencesTableId: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', publicSchemaName: '', readStateTableId: '', schemaId: '', suppressionsTableId: '', userSettingsTableId: '' }, + data: { apiName: '', channelsTableId: '', databaseId: '', defaultCapabilities: '', deliveryLogTableId: '', entityField: '', hasChannels: '', hasDigestMetadata: '', hasPreferences: '', hasSettingsExtension: '', hasSubscriptions: '', notificationsTableId: '', organizationSettingsTableId: '', ownerTableId: '', preferencesTableId: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', publicSchemaName: '', readStateTableId: '', schemaId: '', suppressionsTableId: '', userSettingsTableId: '' }, select: { id: true } }).execute(); ``` diff --git a/.agents/skills/orm-modules/references/oauth-requests-module.md b/.agents/skills/orm-modules/references/oauth-requests-module.md new file mode 100644 index 0000000000..918dea9a90 --- /dev/null +++ b/.agents/skills/orm-modules/references/oauth-requests-module.md @@ -0,0 +1,39 @@ +# oauthRequestsModule + + + +Config row for the oauth_requests_module, which provisions the in-flight half of an SSO + sign-in: the OAuth authorization requests table (state + PKCE code_verifier) and the + pending identity links table (a verified identity parked under a single-use ticket), + both private, plus the five SECURITY DEFINER procedures that are their only surface. + Sibling of identity_providers_module (durable provider configuration) rather than part + of it: this is ephemeral, purged flow state with its own retention. + +## Usage + +```typescript +db.oauthRequestsModule.findMany({ select: { id: true } }).execute() +db.oauthRequestsModule.findOne({ id: '', select: { id: true } }).execute() +db.oauthRequestsModule.create({ data: { databaseId: '', entityField: '', entityTableId: '', oauthAuthorizationRequestsTableId: '', oauthAuthorizationRequestsTableName: '', pendingIdentityLinksTableId: '', pendingIdentityLinksTableName: '', prefix: '', privateSchemaId: '', privateSchemaName: '', scope: '' }, select: { id: true } }).execute() +db.oauthRequestsModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() +db.oauthRequestsModule.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all oauthRequestsModule records + +```typescript +const items = await db.oauthRequestsModule.findMany({ + select: { id: true, databaseId: true } +}).execute(); +``` + +### Create a oauthRequestsModule + +```typescript +const item = await db.oauthRequestsModule.create({ + data: { databaseId: '', entityField: '', entityTableId: '', oauthAuthorizationRequestsTableId: '', oauthAuthorizationRequestsTableName: '', pendingIdentityLinksTableId: '', pendingIdentityLinksTableName: '', prefix: '', privateSchemaId: '', privateSchemaName: '', scope: '' }, + select: { id: true } +}).execute(); +``` diff --git a/.agents/skills/orm-modules/references/profiles-module.md b/.agents/skills/orm-modules/references/profiles-module.md index 4d966c613d..c742b40f58 100644 --- a/.agents/skills/orm-modules/references/profiles-module.md +++ b/.agents/skills/orm-modules/references/profiles-module.md @@ -9,7 +9,7 @@ ORM operations for ProfilesModule records ```typescript db.profilesModule.findMany({ select: { id: true } }).execute() db.profilesModule.findOne({ id: '', select: { id: true } }).execute() -db.profilesModule.create({ data: { actorTableId: '', apiName: '', databaseId: '', entityField: '', entityTableId: '', membershipsTableId: '', permissionsTableId: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', profileDefinitionGrantsTableId: '', profileDefinitionGrantsTableName: '', profileGrantsTableId: '', profileGrantsTableName: '', profilePermissionsTableId: '', profilePermissionsTableName: '', profileTemplatesTableId: '', profileTemplatesTableName: '', publicSchemaName: '', schemaId: '', scope: '', tableId: '', tableName: '' }, select: { id: true } }).execute() +db.profilesModule.create({ data: { actorTableId: '', apiName: '', capabilitiesTableId: '', databaseId: '', entityField: '', entityTableId: '', membershipProfilesTableId: '', membershipProfilesTableName: '', membershipsTableId: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', profileCapabilitiesTableId: '', profileCapabilitiesTableName: '', profileDefinitionGrantsTableId: '', profileDefinitionGrantsTableName: '', profileGrantsTableId: '', profileGrantsTableName: '', profileTemplatesTableId: '', profileTemplatesTableName: '', publicSchemaName: '', schemaId: '', scope: '', tableId: '', tableName: '' }, select: { id: true } }).execute() db.profilesModule.update({ where: { id: '' }, data: { actorTableId: '' }, select: { id: true } }).execute() db.profilesModule.delete({ where: { id: '' } }).execute() ``` @@ -28,7 +28,7 @@ const items = await db.profilesModule.findMany({ ```typescript const item = await db.profilesModule.create({ - data: { actorTableId: '', apiName: '', databaseId: '', entityField: '', entityTableId: '', membershipsTableId: '', permissionsTableId: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', profileDefinitionGrantsTableId: '', profileDefinitionGrantsTableName: '', profileGrantsTableId: '', profileGrantsTableName: '', profilePermissionsTableId: '', profilePermissionsTableName: '', profileTemplatesTableId: '', profileTemplatesTableName: '', publicSchemaName: '', schemaId: '', scope: '', tableId: '', tableName: '' }, + data: { actorTableId: '', apiName: '', capabilitiesTableId: '', databaseId: '', entityField: '', entityTableId: '', membershipProfilesTableId: '', membershipProfilesTableName: '', membershipsTableId: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', profileCapabilitiesTableId: '', profileCapabilitiesTableName: '', profileDefinitionGrantsTableId: '', profileDefinitionGrantsTableName: '', profileGrantsTableId: '', profileGrantsTableName: '', profileTemplatesTableId: '', profileTemplatesTableName: '', publicSchemaName: '', schemaId: '', scope: '', tableId: '', tableName: '' }, select: { id: true } }).execute(); ``` diff --git a/.agents/skills/orm-modules/references/rate-limit-meters-module.md b/.agents/skills/orm-modules/references/rate-limit-meters-module.md index 298df88543..3f2e4baede 100644 --- a/.agents/skills/orm-modules/references/rate-limit-meters-module.md +++ b/.agents/skills/orm-modules/references/rate-limit-meters-module.md @@ -9,7 +9,7 @@ ORM operations for RateLimitMetersModule records ```typescript db.rateLimitMetersModule.findMany({ select: { id: true } }).execute() db.rateLimitMetersModule.findOne({ id: '', select: { id: true } }).execute() -db.rateLimitMetersModule.create({ data: { apiName: '', checkRateLimitFunction: '', databaseId: '', defaultPermissions: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', publicSchemaName: '', rateLimitOverridesTableId: '', rateLimitOverridesTableName: '', rateLimitStateTableId: '', rateLimitStateTableName: '', rateWindowLimitsTableId: '', rateWindowLimitsTableName: '', schemaId: '' }, select: { id: true } }).execute() +db.rateLimitMetersModule.create({ data: { apiName: '', checkRateLimitFunction: '', databaseId: '', defaultCapabilities: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', publicSchemaName: '', rateLimitOverridesTableId: '', rateLimitOverridesTableName: '', rateLimitStateTableId: '', rateLimitStateTableName: '', rateWindowLimitsTableId: '', rateWindowLimitsTableName: '', schemaId: '' }, select: { id: true } }).execute() db.rateLimitMetersModule.update({ where: { id: '' }, data: { apiName: '' }, select: { id: true } }).execute() db.rateLimitMetersModule.delete({ where: { id: '' } }).execute() ``` @@ -28,7 +28,7 @@ const items = await db.rateLimitMetersModule.findMany({ ```typescript const item = await db.rateLimitMetersModule.create({ - data: { apiName: '', checkRateLimitFunction: '', databaseId: '', defaultPermissions: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', publicSchemaName: '', rateLimitOverridesTableId: '', rateLimitOverridesTableName: '', rateLimitStateTableId: '', rateLimitStateTableName: '', rateWindowLimitsTableId: '', rateWindowLimitsTableName: '', schemaId: '' }, + data: { apiName: '', checkRateLimitFunction: '', databaseId: '', defaultCapabilities: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', publicSchemaName: '', rateLimitOverridesTableId: '', rateLimitOverridesTableName: '', rateLimitStateTableId: '', rateLimitStateTableName: '', rateWindowLimitsTableId: '', rateWindowLimitsTableName: '', schemaId: '' }, select: { id: true } }).execute(); ``` diff --git a/.agents/skills/orm-modules/references/resource-module.md b/.agents/skills/orm-modules/references/resource-module.md index 5365a89421..07aac1a301 100644 --- a/.agents/skills/orm-modules/references/resource-module.md +++ b/.agents/skills/orm-modules/references/resource-module.md @@ -9,7 +9,7 @@ ORM operations for ResourceModule records ```typescript db.resourceModule.findMany({ select: { id: true } }).execute() db.resourceModule.findOne({ id: '', select: { id: true } }).execute() -db.resourceModule.create({ data: { apiName: '', databaseId: '', defaultPermissions: '', entityField: '', entityTableId: '', installationStoreName: '', merkleStoreModuleId: '', namespaceModuleId: '', policies: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', provisions: '', publicSchemaName: '', requirementsStateViewName: '', resolvedRequirementsViewName: '', resourceBillingRollupFunction: '', resourceDefinitionsTableId: '', resourceDefinitionsTableName: '', resourceEventsTableId: '', resourceEventsTableName: '', resourceInstallationsTableId: '', resourceInstallationsTableName: '', resourceStatusChecksTableId: '', resourceStatusChecksTableName: '', resourceUsageLogTableId: '', resourceUsageLogTableName: '', resourceUsageSummaryTableId: '', resourceUsageSummaryTableName: '', resourcesTableId: '', resourcesTableName: '', rollupResourceUsageSummaryFunction: '', schemaId: '', scope: '' }, select: { id: true } }).execute() +db.resourceModule.create({ data: { apiName: '', databaseId: '', defaultCapabilities: '', entityField: '', entityTableId: '', installationStoreName: '', merkleStoreModuleId: '', namespaceModuleId: '', policies: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', provisions: '', publicSchemaName: '', requirementsStateViewName: '', resolvedRequirementsViewName: '', resourceBillingRollupFunction: '', resourceDefinitionsTableId: '', resourceDefinitionsTableName: '', resourceEventsTableId: '', resourceEventsTableName: '', resourceInstallationsTableId: '', resourceInstallationsTableName: '', resourceStatusChecksTableId: '', resourceStatusChecksTableName: '', resourceUsageLogTableId: '', resourceUsageLogTableName: '', resourceUsageSummaryTableId: '', resourceUsageSummaryTableName: '', resourcesTableId: '', resourcesTableName: '', rollupResourceUsageSummaryFunction: '', schemaId: '', scope: '' }, select: { id: true } }).execute() db.resourceModule.update({ where: { id: '' }, data: { apiName: '' }, select: { id: true } }).execute() db.resourceModule.delete({ where: { id: '' } }).execute() ``` @@ -28,7 +28,7 @@ const items = await db.resourceModule.findMany({ ```typescript const item = await db.resourceModule.create({ - data: { apiName: '', databaseId: '', defaultPermissions: '', entityField: '', entityTableId: '', installationStoreName: '', merkleStoreModuleId: '', namespaceModuleId: '', policies: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', provisions: '', publicSchemaName: '', requirementsStateViewName: '', resolvedRequirementsViewName: '', resourceBillingRollupFunction: '', resourceDefinitionsTableId: '', resourceDefinitionsTableName: '', resourceEventsTableId: '', resourceEventsTableName: '', resourceInstallationsTableId: '', resourceInstallationsTableName: '', resourceStatusChecksTableId: '', resourceStatusChecksTableName: '', resourceUsageLogTableId: '', resourceUsageLogTableName: '', resourceUsageSummaryTableId: '', resourceUsageSummaryTableName: '', resourcesTableId: '', resourcesTableName: '', rollupResourceUsageSummaryFunction: '', schemaId: '', scope: '' }, + data: { apiName: '', databaseId: '', defaultCapabilities: '', entityField: '', entityTableId: '', installationStoreName: '', merkleStoreModuleId: '', namespaceModuleId: '', policies: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', provisions: '', publicSchemaName: '', requirementsStateViewName: '', resolvedRequirementsViewName: '', resourceBillingRollupFunction: '', resourceDefinitionsTableId: '', resourceDefinitionsTableName: '', resourceEventsTableId: '', resourceEventsTableName: '', resourceInstallationsTableId: '', resourceInstallationsTableName: '', resourceStatusChecksTableId: '', resourceStatusChecksTableName: '', resourceUsageLogTableId: '', resourceUsageLogTableName: '', resourceUsageSummaryTableId: '', resourceUsageSummaryTableName: '', resourcesTableId: '', resourcesTableName: '', rollupResourceUsageSummaryFunction: '', schemaId: '', scope: '' }, select: { id: true } }).execute(); ``` diff --git a/.agents/skills/orm-modules/references/route-module.md b/.agents/skills/orm-modules/references/route-module.md index 7d7fc877a5..7585795be9 100644 --- a/.agents/skills/orm-modules/references/route-module.md +++ b/.agents/skills/orm-modules/references/route-module.md @@ -9,7 +9,7 @@ ORM operations for RouteModule records ```typescript db.routeModule.findMany({ select: { id: true } }).execute() db.routeModule.findOne({ id: '', select: { id: true } }).execute() -db.routeModule.create({ data: { apiName: '', catalogModuleId: '', databaseId: '', defaultPermissions: '', domainModuleId: '', entityField: '', entityTableId: '', hostnameBindingsTableId: '', hostnameBindingsTableName: '', policies: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', provisions: '', publicSchemaName: '', resolverFunctionName: '', routeBindingsTableId: '', routeBindingsTableName: '', routesTableId: '', routesTableName: '', schemaId: '', scope: '' }, select: { id: true } }).execute() +db.routeModule.create({ data: { apiName: '', appLinksFunctionName: '', catalogModuleId: '', databaseId: '', deepLinkFunctionName: '', defaultCapabilities: '', domainModuleId: '', entityField: '', entityTableId: '', hostnameBindingsTableId: '', hostnameBindingsTableName: '', policies: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', provisions: '', publicSchemaName: '', resolverFunctionName: '', routeBindingsTableId: '', routeBindingsTableName: '', routesTableId: '', routesTableName: '', schemaId: '', scope: '' }, select: { id: true } }).execute() db.routeModule.update({ where: { id: '' }, data: { apiName: '' }, select: { id: true } }).execute() db.routeModule.delete({ where: { id: '' } }).execute() ``` @@ -28,7 +28,7 @@ const items = await db.routeModule.findMany({ ```typescript const item = await db.routeModule.create({ - data: { apiName: '', catalogModuleId: '', databaseId: '', defaultPermissions: '', domainModuleId: '', entityField: '', entityTableId: '', hostnameBindingsTableId: '', hostnameBindingsTableName: '', policies: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', provisions: '', publicSchemaName: '', resolverFunctionName: '', routeBindingsTableId: '', routeBindingsTableName: '', routesTableId: '', routesTableName: '', schemaId: '', scope: '' }, + data: { apiName: '', appLinksFunctionName: '', catalogModuleId: '', databaseId: '', deepLinkFunctionName: '', defaultCapabilities: '', domainModuleId: '', entityField: '', entityTableId: '', hostnameBindingsTableId: '', hostnameBindingsTableName: '', policies: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', provisions: '', publicSchemaName: '', resolverFunctionName: '', routeBindingsTableId: '', routeBindingsTableName: '', routesTableId: '', routesTableName: '', schemaId: '', scope: '' }, select: { id: true } }).execute(); ``` diff --git a/.agents/skills/orm-modules/references/scope-types-module.md b/.agents/skills/orm-modules/references/scope-types-module.md new file mode 100644 index 0000000000..8c5eae3c16 --- /dev/null +++ b/.agents/skills/orm-modules/references/scope-types-module.md @@ -0,0 +1,34 @@ +# scopeTypesModule + + + +ORM operations for ScopeTypesModule records + +## Usage + +```typescript +db.scopeTypesModule.findMany({ select: { id: true } }).execute() +db.scopeTypesModule.findOne({ id: '', select: { id: true } }).execute() +db.scopeTypesModule.create({ data: { databaseId: '', privateSchemaName: '', schemaId: '', scopeTypesTableId: '' }, select: { id: true } }).execute() +db.scopeTypesModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() +db.scopeTypesModule.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all scopeTypesModule records + +```typescript +const items = await db.scopeTypesModule.findMany({ + select: { id: true, databaseId: true } +}).execute(); +``` + +### Create a scopeTypesModule + +```typescript +const item = await db.scopeTypesModule.create({ + data: { databaseId: '', privateSchemaName: '', schemaId: '', scopeTypesTableId: '' }, + select: { id: true } +}).execute(); +``` diff --git a/.agents/skills/orm-modules/references/site-surface-module.md b/.agents/skills/orm-modules/references/site-surface-module.md index 31993ce186..509fc9a4f9 100644 --- a/.agents/skills/orm-modules/references/site-surface-module.md +++ b/.agents/skills/orm-modules/references/site-surface-module.md @@ -9,7 +9,7 @@ ORM operations for SiteSurfaceModule records ```typescript db.siteSurfaceModule.findMany({ select: { id: true } }).execute() db.siteSurfaceModule.findOne({ id: '', select: { id: true } }).execute() -db.siteSurfaceModule.create({ data: { apiName: '', catalogModuleId: '', databaseId: '', defaultPermissions: '', entityField: '', entityTableId: '', policies: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', provisions: '', publicSchemaName: '', schemaId: '', scope: '', siteAppLinksTableId: '', siteAppLinksTableName: '', siteDeepLinksTableId: '', siteDeepLinksTableName: '', siteErrorPagesTableId: '', siteErrorPagesTableName: '', siteMetadataTableId: '', siteMetadataTableName: '', siteModulesTableId: '', siteModulesTableName: '', siteThemesTableId: '', siteThemesTableName: '', siteWebConfigTableId: '', siteWebConfigTableName: '', sitesTableId: '', sitesTableName: '' }, select: { id: true } }).execute() +db.siteSurfaceModule.create({ data: { apiName: '', catalogModuleId: '', databaseId: '', defaultCapabilities: '', entityField: '', entityTableId: '', policies: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', provisions: '', publicSchemaName: '', schemaId: '', scope: '', siteAppLinksTableId: '', siteAppLinksTableName: '', siteDeepLinksTableId: '', siteDeepLinksTableName: '', siteErrorPagesTableId: '', siteErrorPagesTableName: '', siteMetadataTableId: '', siteMetadataTableName: '', siteModulesTableId: '', siteModulesTableName: '', siteThemesTableId: '', siteThemesTableName: '', siteWebConfigTableId: '', siteWebConfigTableName: '', sitesTableId: '', sitesTableName: '' }, select: { id: true } }).execute() db.siteSurfaceModule.update({ where: { id: '' }, data: { apiName: '' }, select: { id: true } }).execute() db.siteSurfaceModule.delete({ where: { id: '' } }).execute() ``` @@ -28,7 +28,7 @@ const items = await db.siteSurfaceModule.findMany({ ```typescript const item = await db.siteSurfaceModule.create({ - data: { apiName: '', catalogModuleId: '', databaseId: '', defaultPermissions: '', entityField: '', entityTableId: '', policies: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', provisions: '', publicSchemaName: '', schemaId: '', scope: '', siteAppLinksTableId: '', siteAppLinksTableName: '', siteDeepLinksTableId: '', siteDeepLinksTableName: '', siteErrorPagesTableId: '', siteErrorPagesTableName: '', siteMetadataTableId: '', siteMetadataTableName: '', siteModulesTableId: '', siteModulesTableName: '', siteThemesTableId: '', siteThemesTableName: '', siteWebConfigTableId: '', siteWebConfigTableName: '', sitesTableId: '', sitesTableName: '' }, + data: { apiName: '', catalogModuleId: '', databaseId: '', defaultCapabilities: '', entityField: '', entityTableId: '', policies: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', provisions: '', publicSchemaName: '', schemaId: '', scope: '', siteAppLinksTableId: '', siteAppLinksTableName: '', siteDeepLinksTableId: '', siteDeepLinksTableName: '', siteErrorPagesTableId: '', siteErrorPagesTableName: '', siteMetadataTableId: '', siteMetadataTableName: '', siteModulesTableId: '', siteModulesTableName: '', siteThemesTableId: '', siteThemesTableName: '', siteWebConfigTableId: '', siteWebConfigTableName: '', sitesTableId: '', sitesTableName: '' }, select: { id: true } }).execute(); ``` diff --git a/.agents/skills/orm-modules/references/storage-module.md b/.agents/skills/orm-modules/references/storage-module.md index 34f2d44868..f7ae315ba0 100644 --- a/.agents/skills/orm-modules/references/storage-module.md +++ b/.agents/skills/orm-modules/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: { allowedOrigins: '', apiName: '', bucketsTableId: '', bucketsTableName: '', cacheTtlSeconds: '', catalogModuleId: '', confirmUploadDelay: '', databaseId: '', defaultMaxFileSize: '', defaultPermissions: '', downloadUrlExpirySeconds: '', endpoint: '', entityField: '', entityTableId: '', fileEventsTableId: '', filesTableId: '', filesTableName: '', hasAuditLog: '', hasConfirmUpload: '', hasContentHash: '', hasCustomKeys: '', hasPathShares: '', hasVersioning: '', maxBulkFiles: '', maxBulkTotalSize: '', maxFilenameLength: '', pathSharesTableId: '', policies: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', provider: '', provisions: '', publicSchemaName: '', publicUrlPrefix: '', restrictReads: '', schemaId: '', scope: '', uploadUrlExpirySeconds: '' }, select: { id: true } }).execute() +db.storageModule.create({ data: { allowedOrigins: '', apiName: '', bucketsTableId: '', bucketsTableName: '', cacheTtlSeconds: '', catalogModuleId: '', confirmUploadDelay: '', databaseId: '', defaultCapabilities: '', defaultMaxFileSize: '', downloadUrlExpirySeconds: '', endpoint: '', entityField: '', entityTableId: '', fileEventsTableId: '', filesTableId: '', filesTableName: '', hasAuditLog: '', hasConfirmUpload: '', hasContentHash: '', hasCustomKeys: '', hasPathShares: '', hasVersioning: '', maxBulkFiles: '', maxBulkTotalSize: '', maxFilenameLength: '', pathSharesTableId: '', policies: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', provider: '', provisions: '', publicSchemaName: '', publicUrlPrefix: '', restrictReads: '', schemaId: '', scope: '', uploadUrlExpirySeconds: '' }, select: { id: true } }).execute() db.storageModule.update({ where: { id: '' }, data: { allowedOrigins: '' }, 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: { allowedOrigins: '', apiName: '', bucketsTableId: '', bucketsTableName: '', cacheTtlSeconds: '', catalogModuleId: '', confirmUploadDelay: '', databaseId: '', defaultMaxFileSize: '', defaultPermissions: '', downloadUrlExpirySeconds: '', endpoint: '', entityField: '', entityTableId: '', fileEventsTableId: '', filesTableId: '', filesTableName: '', hasAuditLog: '', hasConfirmUpload: '', hasContentHash: '', hasCustomKeys: '', hasPathShares: '', hasVersioning: '', maxBulkFiles: '', maxBulkTotalSize: '', maxFilenameLength: '', pathSharesTableId: '', policies: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', provider: '', provisions: '', publicSchemaName: '', publicUrlPrefix: '', restrictReads: '', schemaId: '', scope: '', uploadUrlExpirySeconds: '' }, + data: { allowedOrigins: '', apiName: '', bucketsTableId: '', bucketsTableName: '', cacheTtlSeconds: '', catalogModuleId: '', confirmUploadDelay: '', databaseId: '', defaultCapabilities: '', defaultMaxFileSize: '', downloadUrlExpirySeconds: '', endpoint: '', entityField: '', entityTableId: '', fileEventsTableId: '', filesTableId: '', filesTableName: '', hasAuditLog: '', hasConfirmUpload: '', hasContentHash: '', hasCustomKeys: '', hasPathShares: '', hasVersioning: '', maxBulkFiles: '', maxBulkTotalSize: '', maxFilenameLength: '', pathSharesTableId: '', policies: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', provider: '', provisions: '', publicSchemaName: '', publicUrlPrefix: '', restrictReads: '', schemaId: '', scope: '', uploadUrlExpirySeconds: '' }, select: { id: true } }).execute(); ``` diff --git a/.agents/skills/orm-modules/references/user-settings-security-module.md b/.agents/skills/orm-modules/references/user-settings-security-module.md new file mode 100644 index 0000000000..756b0ebea9 --- /dev/null +++ b/.agents/skills/orm-modules/references/user-settings-security-module.md @@ -0,0 +1,34 @@ +# userSettingsSecurityModule + + + +ORM operations for UserSettingsSecurityModule records + +## Usage + +```typescript +db.userSettingsSecurityModule.findMany({ select: { id: true } }).execute() +db.userSettingsSecurityModule.findOne({ id: '', select: { id: true } }).execute() +db.userSettingsSecurityModule.create({ data: { apiName: '', databaseId: '', ownerTableId: '', schemaId: '', tableId: '', tableName: '' }, select: { id: true } }).execute() +db.userSettingsSecurityModule.update({ where: { id: '' }, data: { apiName: '' }, select: { id: true } }).execute() +db.userSettingsSecurityModule.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all userSettingsSecurityModule records + +```typescript +const items = await db.userSettingsSecurityModule.findMany({ + select: { id: true, apiName: true } +}).execute(); +``` + +### Create a userSettingsSecurityModule + +```typescript +const item = await db.userSettingsSecurityModule.create({ + data: { apiName: '', databaseId: '', ownerTableId: '', schemaId: '', tableId: '', tableName: '' }, + select: { id: true } +}).execute(); +``` diff --git a/.agents/skills/orm-modules/references/webhook-module.md b/.agents/skills/orm-modules/references/webhook-module.md index 347828cd70..d31773a6cd 100644 --- a/.agents/skills/orm-modules/references/webhook-module.md +++ b/.agents/skills/orm-modules/references/webhook-module.md @@ -9,7 +9,7 @@ ORM operations for WebhookModule records ```typescript db.webhookModule.findMany({ select: { id: true } }).execute() db.webhookModule.findOne({ id: '', select: { id: true } }).execute() -db.webhookModule.create({ data: { apiName: '', databaseId: '', defaultPermissions: '', entityField: '', entityTableId: '', functionInvocationModuleId: '', functionModuleId: '', infraSecretsModuleId: '', namespaceModuleId: '', policies: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', provisions: '', publicSchemaName: '', schemaId: '', scope: '', webhookEndpointsTableId: '', webhookEndpointsTableName: '', webhookEventsTableId: '', webhookEventsTableName: '' }, select: { id: true } }).execute() +db.webhookModule.create({ data: { apiName: '', databaseId: '', defaultCapabilities: '', entityField: '', entityTableId: '', functionInvocationModuleId: '', functionModuleId: '', infraSecretsModuleId: '', namespaceModuleId: '', policies: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', provisions: '', publicSchemaName: '', schemaId: '', scope: '', webhookEndpointsTableId: '', webhookEndpointsTableName: '', webhookEventsTableId: '', webhookEventsTableName: '' }, select: { id: true } }).execute() db.webhookModule.update({ where: { id: '' }, data: { apiName: '' }, select: { id: true } }).execute() db.webhookModule.delete({ where: { id: '' } }).execute() ``` @@ -28,7 +28,7 @@ const items = await db.webhookModule.findMany({ ```typescript const item = await db.webhookModule.create({ - data: { apiName: '', databaseId: '', defaultPermissions: '', entityField: '', entityTableId: '', functionInvocationModuleId: '', functionModuleId: '', infraSecretsModuleId: '', namespaceModuleId: '', policies: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', provisions: '', publicSchemaName: '', schemaId: '', scope: '', webhookEndpointsTableId: '', webhookEndpointsTableName: '', webhookEventsTableId: '', webhookEventsTableName: '' }, + data: { apiName: '', databaseId: '', defaultCapabilities: '', entityField: '', entityTableId: '', functionInvocationModuleId: '', functionModuleId: '', infraSecretsModuleId: '', namespaceModuleId: '', policies: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', provisions: '', publicSchemaName: '', schemaId: '', scope: '', webhookEndpointsTableId: '', webhookEndpointsTableName: '', webhookEventsTableId: '', webhookEventsTableName: '' }, select: { id: true } }).execute(); ``` diff --git a/.agents/skills/orm-objects/SKILL.md b/.agents/skills/orm-objects/SKILL.md index d6cb3ea25b..8ff749a58f 100644 --- a/.agents/skills/orm-objects/SKILL.md +++ b/.agents/skills/orm-objects/SKILL.md @@ -1,13 +1,13 @@ --- name: orm-objects -description: ORM client for the objects API — provides typed CRUD operations for 5 tables and 4 custom operations +description: ORM client for the objects API — provides typed CRUD operations for 5 tables and 7 custom operations --- # orm-objects -ORM client for the objects API — provides typed CRUD operations for 5 tables and 4 custom operations +ORM client for the objects API — provides typed CRUD operations for 5 tables and 7 custom operations ## Usage @@ -44,5 +44,8 @@ See the `references/` directory for detailed per-entity API documentation: - [store](references/store.md) - [init-empty-repo](references/init-empty-repo.md) - [insert-node-at-path](references/insert-node-at-path.md) +- [insert-nodes-at-paths](references/insert-nodes-at-paths.md) - [provision-bucket](references/provision-bucket.md) +- [set-and-commit](references/set-and-commit.md) - [set-data-at-path](references/set-data-at-path.md) +- [set-many-and-commit](references/set-many-and-commit.md) diff --git a/.agents/skills/orm-objects/references/insert-nodes-at-paths.md b/.agents/skills/orm-objects/references/insert-nodes-at-paths.md new file mode 100644 index 0000000000..92134612a9 --- /dev/null +++ b/.agents/skills/orm-objects/references/insert-nodes-at-paths.md @@ -0,0 +1,19 @@ +# insertNodesAtPaths + + + +Execute the insertNodesAtPaths mutation + +## Usage + +```typescript +db.mutation.insertNodesAtPaths({ input: '' }).execute() +``` + +## Examples + +### Run insertNodesAtPaths + +```typescript +const result = await db.mutation.insertNodesAtPaths({ input: '' }).execute(); +``` diff --git a/.agents/skills/orm-objects/references/set-many-and-commit.md b/.agents/skills/orm-objects/references/set-many-and-commit.md new file mode 100644 index 0000000000..95526566ce --- /dev/null +++ b/.agents/skills/orm-objects/references/set-many-and-commit.md @@ -0,0 +1,19 @@ +# setManyAndCommit + + + +Execute the setManyAndCommit mutation + +## Usage + +```typescript +db.mutation.setManyAndCommit({ input: { entries: '', message: '', refname: '', sId: '', storeId: '' } }).execute() +``` + +## Examples + +### Run setManyAndCommit + +```typescript +const result = await db.mutation.setManyAndCommit({ input: { entries: '', message: '', refname: '', sId: '', storeId: '' } }).execute(); +``` diff --git a/.agents/skills/orm-usage/SKILL.md b/.agents/skills/orm-usage/SKILL.md index 100c4259a1..bde2f2d7de 100644 --- a/.agents/skills/orm-usage/SKILL.md +++ b/.agents/skills/orm-usage/SKILL.md @@ -1,13 +1,13 @@ --- name: orm-usage -description: ORM client for the usage API — provides typed CRUD operations for 18 tables and 5 custom operations +description: ORM client for the usage API — provides typed CRUD operations for 18 tables and 7 custom operations --- # orm-usage -ORM client for the usage API — provides typed CRUD operations for 18 tables and 5 custom operations +ORM client for the usage API — provides typed CRUD operations for 18 tables and 7 custom operations ## Usage @@ -55,6 +55,8 @@ See the `references/` directory for detailed per-entity API documentation: - [org-limit-default](references/org-limit-default.md) - [org-limit-event](references/org-limit-event.md) - [org-limit-warning](references/org-limit-warning.md) +- [capture-app-limit-defaults](references/capture-app-limit-defaults.md) +- [capture-org-limit-defaults](references/capture-org-limit-defaults.md) - [provision-bucket](references/provision-bucket.md) - [seed-app-limit-caps-defaults](references/seed-app-limit-caps-defaults.md) - [seed-app-limit-defaults](references/seed-app-limit-defaults.md) diff --git a/.agents/skills/orm-usage/references/app-limit-credit-code.md b/.agents/skills/orm-usage/references/app-limit-credit-code.md index 26cb69fb9f..71087ba067 100644 --- a/.agents/skills/orm-usage/references/app-limit-credit-code.md +++ b/.agents/skills/orm-usage/references/app-limit-credit-code.md @@ -2,7 +2,7 @@ -Redeemable credit codes managed by admins with the add_credits permission +Redeemable credit codes managed by admins with the add_credits capability ## Usage diff --git a/.agents/skills/orm-usage/references/capture-app-limit-defaults.md b/.agents/skills/orm-usage/references/capture-app-limit-defaults.md new file mode 100644 index 0000000000..420fcadd04 --- /dev/null +++ b/.agents/skills/orm-usage/references/capture-app-limit-defaults.md @@ -0,0 +1,19 @@ +# captureAppLimitDefaults + + + +Execute the captureAppLimitDefaults query + +## Usage + +```typescript +db.query.captureAppLimitDefaults().execute() +``` + +## Examples + +### Run captureAppLimitDefaults + +```typescript +const result = await db.query.captureAppLimitDefaults().execute(); +``` diff --git a/.agents/skills/orm-usage/references/capture-org-limit-defaults.md b/.agents/skills/orm-usage/references/capture-org-limit-defaults.md new file mode 100644 index 0000000000..b6dddc4e3f --- /dev/null +++ b/.agents/skills/orm-usage/references/capture-org-limit-defaults.md @@ -0,0 +1,19 @@ +# captureOrgLimitDefaults + + + +Execute the captureOrgLimitDefaults query + +## Usage + +```typescript +db.query.captureOrgLimitDefaults().execute() +``` + +## Examples + +### Run captureOrgLimitDefaults + +```typescript +const result = await db.query.captureOrgLimitDefaults().execute(); +``` diff --git a/pgpm/export/src/meta-export-tables.json b/pgpm/export/src/meta-export-tables.json index 1119a642ff..8e1c96fab6 100644 --- a/pgpm/export/src/meta-export-tables.json +++ b/pgpm/export/src/meta-export-tables.json @@ -146,6 +146,11 @@ "schema": "metaschema_modules_public", "table": "billing_provider_module" }, + { + "key": "capabilities_module", + "schema": "metaschema_modules_public", + "table": "capabilities_module" + }, { "key": "catalog_module", "schema": "metaschema_modules_public", @@ -282,9 +287,9 @@ "table": "notifications_module" }, { - "key": "permissions_module", + "key": "oauth_requests_module", "schema": "metaschema_modules_public", - "table": "permissions_module" + "table": "oauth_requests_module" }, { "key": "phone_numbers_module", @@ -381,6 +386,11 @@ "schema": "metaschema_modules_public", "table": "user_settings_module" }, + { + "key": "user_settings_security_module", + "schema": "metaschema_modules_public", + "table": "user_settings_security_module" + }, { "key": "user_state_module", "schema": "metaschema_modules_public", @@ -456,6 +466,16 @@ "schema": "metaschema_modules_public", "table": "app_module" }, + { + "key": "content_preset_module", + "schema": "metaschema_modules_public", + "table": "content_preset_module" + }, + { + "key": "data_capabilities_field", + "schema": "metaschema_modules_public", + "table": "data_capabilities_field" + }, { "key": "db_preset_module", "schema": "metaschema_modules_public", @@ -471,6 +491,11 @@ "schema": "metaschema_modules_public", "table": "domain_module" }, + { + "key": "file_ref_field", + "schema": "metaschema_modules_public", + "table": "file_ref_field" + }, { "key": "function_deployment_module", "schema": "metaschema_modules_public", @@ -501,6 +526,11 @@ "schema": "metaschema_modules_public", "table": "webhook_module" }, + { + "key": "email_sender_module", + "schema": "metaschema_modules_public", + "table": "email_sender_module" + }, { "key": "graph_execution_module", "schema": "metaschema_modules_public", @@ -561,6 +591,21 @@ "schema": "routing_public", "table": "domains" }, + { + "key": "email_identities", + "schema": "routing_public", + "table": "email_identities" + }, + { + "key": "email_provider_accounts", + "schema": "routing_public", + "table": "email_provider_accounts" + }, + { + "key": "email_site_identities", + "schema": "routing_public", + "table": "email_site_identities" + }, { "key": "http_routes", "schema": "routing_public", @@ -791,6 +836,9 @@ "created_at", "updated_at" ], + "metaschema_modules_public.content_preset_module": [ + "created_at" + ], "metaschema_modules_public.db_preset_module": [ "created_at" ], @@ -937,6 +985,18 @@ "created_at", "updated_at" ], + "routing_public.email_identities": [ + "created_at", + "updated_at" + ], + "routing_public.email_provider_accounts": [ + "created_at", + "updated_at" + ], + "routing_public.email_site_identities": [ + "created_at", + "updated_at" + ], "routing_public.http_routes": [ "created_at", "updated_at" diff --git a/sdk/constructive-cli/src/admin/README.md b/sdk/constructive-cli/src/admin/README.md index 656c4cf338..e81e591456 100644 --- a/sdk/constructive-cli/src/admin/README.md +++ b/sdk/constructive-cli/src/admin/README.md @@ -8,8 +8,8 @@ ## Overview -- **Tables:** 30 -- **Custom queries:** 9 +- **Tables:** 26 +- **Custom queries:** 1 - **Custom mutations:** 3 **Generators:** ORM, CLI diff --git a/sdk/constructive-cli/src/admin/cli/README.md b/sdk/constructive-cli/src/admin/cli/README.md index 1d9c5628a6..26f69391d7 100644 --- a/sdk/constructive-cli/src/admin/cli/README.md +++ b/sdk/constructive-cli/src/admin/cli/README.md @@ -27,18 +27,18 @@ csdk auth set-token | `auth` | Manage authentication tokens | | `config` | Manage config key-value store (per-context) | | `app-admin-grant` | appAdminGrant CRUD operations | +| `app-capability-default-capability` | appCapabilityDefaultCapability CRUD operations | +| `app-capability-default-grant` | appCapabilityDefaultGrant CRUD operations | | `app-claimed-invite` | appClaimedInvite CRUD operations | | `app-grant` | appGrant CRUD operations | | `app-invite` | appInvite CRUD operations | | `app-membership` | appMembership CRUD operations | | `app-membership-default` | appMembershipDefault CRUD operations | | `app-owner-grant` | appOwnerGrant CRUD operations | -| `app-permission` | appPermission CRUD operations | -| `app-permission-default` | appPermissionDefault CRUD operations | -| `app-permission-default-grant` | appPermissionDefaultGrant CRUD operations | -| `app-permission-default-permission` | appPermissionDefaultPermission CRUD operations | | `membership-type` | membershipType CRUD operations | | `org-admin-grant` | orgAdminGrant CRUD operations | +| `org-capability-default-capability` | orgCapabilityDefaultCapability CRUD operations | +| `org-capability-default-grant` | orgCapabilityDefaultGrant CRUD operations | | `org-chart-edge` | orgChartEdge CRUD operations | | `org-chart-edge-grant` | orgChartEdgeGrant CRUD operations | | `org-claimed-invite` | orgClaimedInvite CRUD operations | @@ -52,19 +52,7 @@ csdk auth set-token | `org-membership-default` | orgMembershipDefault CRUD operations | | `org-membership-setting` | orgMembershipSetting CRUD operations | | `org-owner-grant` | orgOwnerGrant CRUD operations | -| `org-permission` | orgPermission CRUD operations | -| `org-permission-default` | orgPermissionDefault CRUD operations | -| `org-permission-default-grant` | orgPermissionDefaultGrant CRUD operations | -| `org-permission-default-permission` | orgPermissionDefaultPermission CRUD operations | -| `app-permissions-get-by-mask` | Reads and enables pagination through a set of `AppPermission`. | -| `app-permissions-get-mask` | appPermissionsGetMask | -| `app-permissions-get-mask-by-names` | appPermissionsGetMaskByNames | -| `app-permissions-get-padded-mask` | appPermissionsGetPaddedMask | | `org-is-manager-of` | orgIsManagerOf | -| `org-permissions-get-by-mask` | Reads and enables pagination through a set of `OrgPermission`. | -| `org-permissions-get-mask` | orgPermissionsGetMask | -| `org-permissions-get-mask-by-names` | orgPermissionsGetMaskByNames | -| `org-permissions-get-padded-mask` | orgPermissionsGetPaddedMask | | `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, @@ -139,6 +127,57 @@ CRUD operations for AppAdminGrant records. **Optional create fields (backend defaults):** `actorId`, `grantorId`, `isGrant` +### `app-capability-default-capability` + +CRUD operations for AppCapabilityDefaultCapability records. + +| Subcommand | Description | +|------------|-------------| +| `list` | List all appCapabilityDefaultCapability records | +| `find-first` | Find first matching appCapabilityDefaultCapability record | +| `get` | Get a appCapabilityDefaultCapability by id | +| `create` | Create a new appCapabilityDefaultCapability | +| `update` | Update an existing appCapabilityDefaultCapability | +| `delete` | Delete a appCapabilityDefaultCapability | + +**Fields:** + +| Field | Type | +|-------|------| +| `capabilityId` | UUID | +| `createdAt` | Datetime | +| `id` | UUID | +| `updatedAt` | Datetime | + +**Required create fields:** `capabilityId` + +### `app-capability-default-grant` + +CRUD operations for AppCapabilityDefaultGrant records. + +| Subcommand | Description | +|------------|-------------| +| `list` | List all appCapabilityDefaultGrant records | +| `find-first` | Find first matching appCapabilityDefaultGrant record | +| `get` | Get a appCapabilityDefaultGrant by id | +| `create` | Create a new appCapabilityDefaultGrant | +| `update` | Update an existing appCapabilityDefaultGrant | +| `delete` | Delete a appCapabilityDefaultGrant | + +**Fields:** + +| Field | Type | +|-------|------| +| `capabilityId` | UUID | +| `createdAt` | Datetime | +| `grantorId` | UUID | +| `id` | UUID | +| `isGrant` | Boolean | +| `updatedAt` | Datetime | + +**Required create fields:** `capabilityId` +**Optional create fields (backend defaults):** `grantorId`, `isGrant` + ### `app-claimed-invite` CRUD operations for AppClaimedInvite records. @@ -183,14 +222,14 @@ CRUD operations for AppGrant records. | Field | Type | |-------|------| | `actorId` | UUID | +| `capabilities` | BitString | | `createdAt` | Datetime | | `grantorId` | UUID | | `id` | UUID | | `isGrant` | Boolean | -| `permissions` | BitString | | `updatedAt` | Datetime | -**Optional create fields (backend defaults):** `actorId`, `grantorId`, `isGrant`, `permissions` +**Optional create fields (backend defaults):** `actorId`, `capabilities`, `grantorId`, `isGrant` ### `app-invite` @@ -245,6 +284,7 @@ CRUD operations for AppMembership records. | Field | Type | |-------|------| | `actorId` | UUID | +| `capabilities` | BitString | | `createdAt` | Datetime | | `createdBy` | UUID | | `granted` | BitString | @@ -256,13 +296,12 @@ CRUD operations for AppMembership records. | `isDisabled` | Boolean | | `isOwner` | Boolean | | `isVerified` | Boolean | -| `permissions` | BitString | | `profileId` | UUID | | `updatedAt` | Datetime | | `updatedBy` | UUID | **Required create fields:** `actorId` -**Optional create fields (backend defaults):** `createdBy`, `granted`, `isActive`, `isAdmin`, `isApproved`, `isBanned`, `isDisabled`, `isOwner`, `isVerified`, `permissions`, `profileId`, `updatedBy` +**Optional create fields (backend defaults):** `capabilities`, `createdBy`, `granted`, `isActive`, `isAdmin`, `isApproved`, `isBanned`, `isDisabled`, `isOwner`, `isVerified`, `profileId`, `updatedBy` ### `app-membership-default` @@ -317,149 +356,104 @@ CRUD operations for AppOwnerGrant records. **Optional create fields (backend defaults):** `actorId`, `grantorId`, `isGrant` -### `app-permission` +### `membership-type` -CRUD operations for AppPermission records. +CRUD operations for MembershipType records. | Subcommand | Description | |------------|-------------| -| `list` | List all appPermission records | -| `find-first` | Find first matching appPermission record | -| `get` | Get a appPermission by id | -| `create` | Create a new appPermission | -| `update` | Update an existing appPermission | -| `delete` | Delete a appPermission | +| `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 | |-------|------| -| `bitnum` | Int | -| `bitstr` | BitString | | `description` | String | -| `id` | UUID | +| `hasUsersTableEntry` | Boolean | +| `id` | Int | | `name` | String | +| `parentMembershipType` | Int | +| `scope` | String | -**Optional create fields (backend defaults):** `bitnum`, `bitstr`, `description`, `name` - -### `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` +**Required create fields:** `description`, `name`, `scope` +**Optional create fields (backend defaults):** `hasUsersTableEntry`, `parentMembershipType` -### `app-permission-default-grant` +### `org-admin-grant` -CRUD operations for AppPermissionDefaultGrant records. +CRUD operations for OrgAdminGrant records. | Subcommand | Description | |------------|-------------| -| `list` | List all appPermissionDefaultGrant records | -| `find-first` | Find first matching appPermissionDefaultGrant record | -| `get` | Get a appPermissionDefaultGrant by id | -| `create` | Create a new appPermissionDefaultGrant | -| `update` | Update an existing appPermissionDefaultGrant | -| `delete` | Delete a appPermissionDefaultGrant | +| `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:** | Field | Type | |-------|------| +| `actorId` | UUID | | `createdAt` | Datetime | +| `entityId` | UUID | | `grantorId` | UUID | | `id` | UUID | | `isGrant` | Boolean | -| `permissionId` | UUID | | `updatedAt` | Datetime | -**Required create fields:** `permissionId` -**Optional create fields (backend defaults):** `grantorId`, `isGrant` +**Required create fields:** `entityId` +**Optional create fields (backend defaults):** `actorId`, `grantorId`, `isGrant` -### `app-permission-default-permission` +### `org-capability-default-capability` -CRUD operations for AppPermissionDefaultPermission records. +CRUD operations for OrgCapabilityDefaultCapability records. | Subcommand | Description | |------------|-------------| -| `list` | List all appPermissionDefaultPermission records | -| `find-first` | Find first matching appPermissionDefaultPermission record | -| `get` | Get a appPermissionDefaultPermission by id | -| `create` | Create a new appPermissionDefaultPermission | -| `update` | Update an existing appPermissionDefaultPermission | -| `delete` | Delete a appPermissionDefaultPermission | +| `list` | List all orgCapabilityDefaultCapability records | +| `find-first` | Find first matching orgCapabilityDefaultCapability record | +| `get` | Get a orgCapabilityDefaultCapability by id | +| `create` | Create a new orgCapabilityDefaultCapability | +| `update` | Update an existing orgCapabilityDefaultCapability | +| `delete` | Delete a orgCapabilityDefaultCapability | **Fields:** | Field | Type | |-------|------| +| `capabilityId` | UUID | | `createdAt` | Datetime | +| `entityId` | UUID | | `id` | UUID | -| `permissionId` | UUID | | `updatedAt` | Datetime | -**Required create fields:** `permissionId` +**Required create fields:** `capabilityId`, `entityId` -### `membership-type` +### `org-capability-default-grant` -CRUD operations for MembershipType records. +CRUD operations for OrgCapabilityDefaultGrant 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 orgCapabilityDefaultGrant records | +| `find-first` | Find first matching orgCapabilityDefaultGrant record | +| `get` | Get a orgCapabilityDefaultGrant by id | +| `create` | Create a new orgCapabilityDefaultGrant | +| `update` | Update an existing orgCapabilityDefaultGrant | +| `delete` | Delete a orgCapabilityDefaultGrant | **Fields:** | Field | Type | |-------|------| -| `description` | String | -| `hasUsersTableEntry` | Boolean | -| `id` | Int | -| `name` | String | -| `parentMembershipType` | Int | -| `scope` | String | - -**Required create fields:** `description`, `name`, `scope` -**Optional create fields (backend defaults):** `hasUsersTableEntry`, `parentMembershipType` - -### `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:** - -| Field | Type | -|-------|------| -| `actorId` | UUID | +| `capabilityId` | UUID | | `createdAt` | Datetime | | `entityId` | UUID | | `grantorId` | UUID | @@ -467,8 +461,8 @@ CRUD operations for OrgAdminGrant records. | `isGrant` | Boolean | | `updatedAt` | Datetime | -**Required create fields:** `entityId` -**Optional create fields (backend defaults):** `actorId`, `grantorId`, `isGrant` +**Required create fields:** `capabilityId`, `entityId` +**Optional create fields (backend defaults):** `grantorId`, `isGrant` ### `org-chart-edge` @@ -619,16 +613,16 @@ CRUD operations for OrgGrant records. | Field | Type | |-------|------| | `actorId` | UUID | +| `capabilities` | BitString | | `createdAt` | Datetime | | `entityId` | UUID | | `grantorId` | UUID | | `id` | UUID | | `isGrant` | Boolean | -| `permissions` | BitString | | `updatedAt` | Datetime | **Required create fields:** `entityId` -**Optional create fields (backend defaults):** `actorId`, `grantorId`, `isGrant`, `permissions` +**Optional create fields (backend defaults):** `actorId`, `capabilities`, `grantorId`, `isGrant` ### `org-invite` @@ -744,6 +738,7 @@ CRUD operations for OrgMembership records. | Field | Type | |-------|------| | `actorId` | UUID | +| `capabilities` | BitString | | `createdAt` | Datetime | | `createdBy` | UUID | | `entityId` | UUID | @@ -757,13 +752,12 @@ CRUD operations for OrgMembership records. | `isExternal` | Boolean | | `isOwner` | Boolean | | `isReadOnly` | Boolean | -| `permissions` | BitString | | `profileId` | UUID | | `updatedAt` | Datetime | | `updatedBy` | UUID | **Required create fields:** `actorId`, `entityId` -**Optional create fields (backend defaults):** `createdBy`, `granted`, `isActive`, `isAdmin`, `isApproved`, `isBanned`, `isDisabled`, `isExternal`, `isOwner`, `isReadOnly`, `permissions`, `profileId`, `updatedBy` +**Optional create fields (backend defaults):** `capabilities`, `createdBy`, `granted`, `isActive`, `isAdmin`, `isApproved`, `isBanned`, `isDisabled`, `isExternal`, `isOwner`, `isReadOnly`, `profileId`, `updatedBy` ### `org-membership-default` @@ -856,157 +850,8 @@ CRUD operations for OrgOwnerGrant records. **Required create fields:** `entityId` **Optional create fields (backend defaults):** `actorId`, `grantorId`, `isGrant` -### `org-permission` - -CRUD operations for OrgPermission records. - -| Subcommand | Description | -|------------|-------------| -| `list` | List all orgPermission records | -| `find-first` | Find first matching orgPermission record | -| `get` | Get a orgPermission by id | -| `create` | Create a new orgPermission | -| `update` | Update an existing orgPermission | -| `delete` | Delete a orgPermission | - -**Fields:** - -| Field | Type | -|-------|------| -| `bitnum` | Int | -| `bitstr` | BitString | -| `description` | String | -| `id` | UUID | -| `name` | String | - -**Optional create fields (backend defaults):** `bitnum`, `bitstr`, `description`, `name` - -### `org-permission-default` - -CRUD operations for OrgPermissionDefault records. - -| Subcommand | Description | -|------------|-------------| -| `list` | List all orgPermissionDefault records | -| `find-first` | Find first matching orgPermissionDefault record | -| `get` | Get a orgPermissionDefault by id | -| `create` | Create a new orgPermissionDefault | -| `update` | Update an existing orgPermissionDefault | -| `delete` | Delete a orgPermissionDefault | - -**Fields:** - -| Field | Type | -|-------|------| -| `entityId` | UUID | -| `id` | UUID | -| `permissions` | BitString | - -**Required create fields:** `entityId` -**Optional create fields (backend defaults):** `permissions` - -### `org-permission-default-grant` - -CRUD operations for OrgPermissionDefaultGrant records. - -| Subcommand | Description | -|------------|-------------| -| `list` | List all orgPermissionDefaultGrant records | -| `find-first` | Find first matching orgPermissionDefaultGrant record | -| `get` | Get a orgPermissionDefaultGrant by id | -| `create` | Create a new orgPermissionDefaultGrant | -| `update` | Update an existing orgPermissionDefaultGrant | -| `delete` | Delete a orgPermissionDefaultGrant | - -**Fields:** - -| Field | Type | -|-------|------| -| `createdAt` | Datetime | -| `entityId` | UUID | -| `grantorId` | UUID | -| `id` | UUID | -| `isGrant` | Boolean | -| `permissionId` | UUID | -| `updatedAt` | Datetime | - -**Required create fields:** `entityId`, `permissionId` -**Optional create fields (backend defaults):** `grantorId`, `isGrant` - -### `org-permission-default-permission` - -CRUD operations for OrgPermissionDefaultPermission records. - -| Subcommand | Description | -|------------|-------------| -| `list` | List all orgPermissionDefaultPermission records | -| `find-first` | Find first matching orgPermissionDefaultPermission record | -| `get` | Get a orgPermissionDefaultPermission by id | -| `create` | Create a new orgPermissionDefaultPermission | -| `update` | Update an existing orgPermissionDefaultPermission | -| `delete` | Delete a orgPermissionDefaultPermission | - -**Fields:** - -| Field | Type | -|-------|------| -| `createdAt` | Datetime | -| `entityId` | UUID | -| `id` | UUID | -| `permissionId` | UUID | -| `updatedAt` | Datetime | - -**Required create fields:** `entityId`, `permissionId` - ## Custom Operations -### `app-permissions-get-by-mask` - -Reads and enables pagination through a set of `AppPermission`. - -- **Type:** query -- **Arguments:** - - | Argument | Type | - |----------|------| - | `--after` | Cursor | - | `--first` | Int | - | `--mask` | BitString | - | `--offset` | Int | - -### `app-permissions-get-mask` - -appPermissionsGetMask - -- **Type:** query -- **Arguments:** - - | Argument | Type | - |----------|------| - | `--ids` | UUID | - -### `app-permissions-get-mask-by-names` - -appPermissionsGetMaskByNames - -- **Type:** query -- **Arguments:** - - | Argument | Type | - |----------|------| - | `--names` | String | - -### `app-permissions-get-padded-mask` - -appPermissionsGetPaddedMask - -- **Type:** query -- **Arguments:** - - | Argument | Type | - |----------|------| - | `--mask` | BitString | - ### `org-is-manager-of` orgIsManagerOf @@ -1021,53 +866,6 @@ orgIsManagerOf | `--targetEntityId` | UUID | | `--userId` | UUID | -### `org-permissions-get-by-mask` - -Reads and enables pagination through a set of `OrgPermission`. - -- **Type:** query -- **Arguments:** - - | Argument | Type | - |----------|------| - | `--after` | Cursor | - | `--first` | Int | - | `--mask` | BitString | - | `--offset` | Int | - -### `org-permissions-get-mask` - -orgPermissionsGetMask - -- **Type:** query -- **Arguments:** - - | Argument | Type | - |----------|------| - | `--ids` | UUID | - -### `org-permissions-get-mask-by-names` - -orgPermissionsGetMaskByNames - -- **Type:** query -- **Arguments:** - - | Argument | Type | - |----------|------| - | `--names` | String | - -### `org-permissions-get-padded-mask` - -orgPermissionsGetPaddedMask - -- **Type:** query -- **Arguments:** - - | Argument | Type | - |----------|------| - | `--mask` | BitString | - ### `provision-bucket` Provision an S3 bucket for a logical bucket in the database. diff --git a/sdk/constructive-cli/src/admin/cli/commands.ts b/sdk/constructive-cli/src/admin/cli/commands.ts index f0e6c21289..39f253e6e4 100644 --- a/sdk/constructive-cli/src/admin/cli/commands.ts +++ b/sdk/constructive-cli/src/admin/cli/commands.ts @@ -7,18 +7,18 @@ import { CLIOptions, Inquirerer, extractFirst } from 'inquirerer'; import contextCmd from './commands/context'; import authCmd from './commands/auth'; import appAdminGrantCmd from './commands/app-admin-grant'; +import appCapabilityDefaultCapabilityCmd from './commands/app-capability-default-capability'; +import appCapabilityDefaultGrantCmd from './commands/app-capability-default-grant'; import appClaimedInviteCmd from './commands/app-claimed-invite'; import appGrantCmd from './commands/app-grant'; import appInviteCmd from './commands/app-invite'; import appMembershipCmd from './commands/app-membership'; import appMembershipDefaultCmd from './commands/app-membership-default'; import appOwnerGrantCmd from './commands/app-owner-grant'; -import appPermissionCmd from './commands/app-permission'; -import appPermissionDefaultCmd from './commands/app-permission-default'; -import appPermissionDefaultGrantCmd from './commands/app-permission-default-grant'; -import appPermissionDefaultPermissionCmd from './commands/app-permission-default-permission'; import membershipTypeCmd from './commands/membership-type'; import orgAdminGrantCmd from './commands/org-admin-grant'; +import orgCapabilityDefaultCapabilityCmd from './commands/org-capability-default-capability'; +import orgCapabilityDefaultGrantCmd from './commands/org-capability-default-grant'; import orgChartEdgeCmd from './commands/org-chart-edge'; import orgChartEdgeGrantCmd from './commands/org-chart-edge-grant'; import orgClaimedInviteCmd from './commands/org-claimed-invite'; @@ -32,19 +32,7 @@ import orgMembershipCmd from './commands/org-membership'; import orgMembershipDefaultCmd from './commands/org-membership-default'; import orgMembershipSettingCmd from './commands/org-membership-setting'; import orgOwnerGrantCmd from './commands/org-owner-grant'; -import orgPermissionCmd from './commands/org-permission'; -import orgPermissionDefaultCmd from './commands/org-permission-default'; -import orgPermissionDefaultGrantCmd from './commands/org-permission-default-grant'; -import orgPermissionDefaultPermissionCmd from './commands/org-permission-default-permission'; -import appPermissionsGetByMaskCmd from './commands/app-permissions-get-by-mask'; -import appPermissionsGetMaskCmd from './commands/app-permissions-get-mask'; -import appPermissionsGetMaskByNamesCmd from './commands/app-permissions-get-mask-by-names'; -import appPermissionsGetPaddedMaskCmd from './commands/app-permissions-get-padded-mask'; import orgIsManagerOfCmd from './commands/org-is-manager-of'; -import orgPermissionsGetByMaskCmd from './commands/org-permissions-get-by-mask'; -import orgPermissionsGetMaskCmd from './commands/org-permissions-get-mask'; -import orgPermissionsGetMaskByNamesCmd from './commands/org-permissions-get-mask-by-names'; -import orgPermissionsGetPaddedMaskCmd from './commands/org-permissions-get-padded-mask'; import provisionBucketCmd from './commands/provision-bucket'; import submitAppInviteCodeCmd from './commands/submit-app-invite-code'; import submitOrgInviteCodeCmd from './commands/submit-org-invite-code'; @@ -59,18 +47,18 @@ const createCommandMap: () => Record< context: contextCmd, auth: authCmd, 'app-admin-grant': appAdminGrantCmd, + 'app-capability-default-capability': appCapabilityDefaultCapabilityCmd, + 'app-capability-default-grant': appCapabilityDefaultGrantCmd, 'app-claimed-invite': appClaimedInviteCmd, 'app-grant': appGrantCmd, 'app-invite': appInviteCmd, 'app-membership': appMembershipCmd, 'app-membership-default': appMembershipDefaultCmd, 'app-owner-grant': appOwnerGrantCmd, - 'app-permission': appPermissionCmd, - 'app-permission-default': appPermissionDefaultCmd, - 'app-permission-default-grant': appPermissionDefaultGrantCmd, - 'app-permission-default-permission': appPermissionDefaultPermissionCmd, 'membership-type': membershipTypeCmd, 'org-admin-grant': orgAdminGrantCmd, + 'org-capability-default-capability': orgCapabilityDefaultCapabilityCmd, + 'org-capability-default-grant': orgCapabilityDefaultGrantCmd, 'org-chart-edge': orgChartEdgeCmd, 'org-chart-edge-grant': orgChartEdgeGrantCmd, 'org-claimed-invite': orgClaimedInviteCmd, @@ -84,25 +72,13 @@ const createCommandMap: () => Record< 'org-membership-default': orgMembershipDefaultCmd, 'org-membership-setting': orgMembershipSettingCmd, 'org-owner-grant': orgOwnerGrantCmd, - 'org-permission': orgPermissionCmd, - 'org-permission-default': orgPermissionDefaultCmd, - 'org-permission-default-grant': orgPermissionDefaultGrantCmd, - 'org-permission-default-permission': orgPermissionDefaultPermissionCmd, - 'app-permissions-get-by-mask': appPermissionsGetByMaskCmd, - 'app-permissions-get-mask': appPermissionsGetMaskCmd, - 'app-permissions-get-mask-by-names': appPermissionsGetMaskByNamesCmd, - 'app-permissions-get-padded-mask': appPermissionsGetPaddedMaskCmd, 'org-is-manager-of': orgIsManagerOfCmd, - 'org-permissions-get-by-mask': orgPermissionsGetByMaskCmd, - 'org-permissions-get-mask': orgPermissionsGetMaskCmd, - 'org-permissions-get-mask-by-names': orgPermissionsGetMaskByNamesCmd, - 'org-permissions-get-padded-mask': orgPermissionsGetPaddedMaskCmd, 'provision-bucket': provisionBucketCmd, 'submit-app-invite-code': submitAppInviteCodeCmd, 'submit-org-invite-code': submitOrgInviteCodeCmd, }); const usage = - '\ncsdk \n\nCommands:\n context Manage API contexts\n auth Manage authentication\n app-admin-grant appAdminGrant CRUD operations\n app-claimed-invite appClaimedInvite CRUD operations\n app-grant appGrant CRUD operations\n app-invite appInvite CRUD operations\n app-membership appMembership CRUD operations\n app-membership-default appMembershipDefault CRUD operations\n app-owner-grant appOwnerGrant CRUD operations\n app-permission appPermission CRUD operations\n app-permission-default appPermissionDefault CRUD operations\n app-permission-default-grant appPermissionDefaultGrant CRUD operations\n app-permission-default-permission appPermissionDefaultPermission CRUD operations\n membership-type membershipType CRUD operations\n org-admin-grant orgAdminGrant CRUD operations\n org-chart-edge orgChartEdge CRUD operations\n org-chart-edge-grant orgChartEdgeGrant CRUD operations\n org-claimed-invite orgClaimedInvite CRUD operations\n org-get-managers-record orgGetManagersRecord CRUD operations\n org-get-subordinates-record orgGetSubordinatesRecord CRUD operations\n org-grant orgGrant CRUD operations\n org-invite orgInvite CRUD operations\n org-member orgMember CRUD operations\n org-member-profile orgMemberProfile CRUD operations\n org-membership orgMembership CRUD operations\n org-membership-default orgMembershipDefault CRUD operations\n org-membership-setting orgMembershipSetting CRUD operations\n org-owner-grant orgOwnerGrant CRUD operations\n org-permission orgPermission CRUD operations\n org-permission-default orgPermissionDefault CRUD operations\n org-permission-default-grant orgPermissionDefaultGrant CRUD operations\n org-permission-default-permission orgPermissionDefaultPermission CRUD operations\n app-permissions-get-by-mask Reads and enables pagination through a set of `AppPermission`.\n app-permissions-get-mask appPermissionsGetMask\n app-permissions-get-mask-by-names appPermissionsGetMaskByNames\n app-permissions-get-padded-mask appPermissionsGetPaddedMask\n org-is-manager-of orgIsManagerOf\n org-permissions-get-by-mask Reads and enables pagination through a set of `OrgPermission`.\n org-permissions-get-mask orgPermissionsGetMask\n org-permissions-get-mask-by-names orgPermissionsGetMaskByNames\n org-permissions-get-padded-mask orgPermissionsGetPaddedMask\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 submit-app-invite-code submitAppInviteCode\n submit-org-invite-code submitOrgInviteCode\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 app-admin-grant appAdminGrant CRUD operations\n app-capability-default-capability appCapabilityDefaultCapability CRUD operations\n app-capability-default-grant appCapabilityDefaultGrant CRUD operations\n app-claimed-invite appClaimedInvite CRUD operations\n app-grant appGrant CRUD operations\n app-invite appInvite CRUD operations\n app-membership appMembership CRUD operations\n app-membership-default appMembershipDefault CRUD operations\n app-owner-grant appOwnerGrant CRUD operations\n membership-type membershipType CRUD operations\n org-admin-grant orgAdminGrant CRUD operations\n org-capability-default-capability orgCapabilityDefaultCapability CRUD operations\n org-capability-default-grant orgCapabilityDefaultGrant CRUD operations\n org-chart-edge orgChartEdge CRUD operations\n org-chart-edge-grant orgChartEdgeGrant CRUD operations\n org-claimed-invite orgClaimedInvite CRUD operations\n org-get-managers-record orgGetManagersRecord CRUD operations\n org-get-subordinates-record orgGetSubordinatesRecord CRUD operations\n org-grant orgGrant CRUD operations\n org-invite orgInvite CRUD operations\n org-member orgMember CRUD operations\n org-member-profile orgMemberProfile CRUD operations\n org-membership orgMembership CRUD operations\n org-membership-default orgMembershipDefault CRUD operations\n org-membership-setting orgMembershipSetting CRUD operations\n org-owner-grant orgOwnerGrant CRUD operations\n org-is-manager-of orgIsManagerOf\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 submit-app-invite-code submitAppInviteCode\n submit-org-invite-code submitOrgInviteCode\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-permission-default-permission.ts b/sdk/constructive-cli/src/admin/cli/commands/app-capability-default-capability.ts similarity index 77% rename from sdk/constructive-cli/src/admin/cli/commands/app-permission-default-permission.ts rename to sdk/constructive-cli/src/admin/cli/commands/app-capability-default-capability.ts index 56917d715e..3903517b27 100644 --- a/sdk/constructive-cli/src/admin/cli/commands/app-permission-default-permission.ts +++ b/sdk/constructive-cli/src/admin/cli/commands/app-capability-default-capability.ts @@ -1,5 +1,5 @@ /** - * CLI commands for AppPermissionDefaultPermission + * CLI commands for AppCapabilityDefaultCapability * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -8,21 +8,21 @@ import { getClient } from '../executor'; import { coerceAnswers, parseFindFirstArgs, parseFindManyArgs, stripUndefined } from '../utils'; import type { FieldSchema } from '../utils'; import type { - CreateAppPermissionDefaultPermissionInput, - AppPermissionDefaultPermissionPatch, - AppPermissionDefaultPermissionSelect, - AppPermissionDefaultPermissionFilter, - AppPermissionDefaultPermissionOrderBy, + CreateAppCapabilityDefaultCapabilityInput, + AppCapabilityDefaultCapabilityPatch, + AppCapabilityDefaultCapabilitySelect, + AppCapabilityDefaultCapabilityFilter, + AppCapabilityDefaultCapabilityOrderBy, } from '../../orm/input-types'; import type { FindManyArgs, FindFirstArgs } from '../../orm/select-types'; const fieldSchema: FieldSchema = { + capabilityId: 'uuid', createdAt: 'string', id: 'uuid', - permissionId: 'uuid', updatedAt: 'string', }; const usage = - '\napp-permission-default-permission \n\nCommands:\n list List appPermissionDefaultPermission records\n find-first Find first matching appPermissionDefaultPermission record\n get Get a appPermissionDefaultPermission by ID\n create Create a new appPermissionDefaultPermission\n update Update an existing appPermissionDefaultPermission\n delete Delete a appPermissionDefaultPermission\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-capability-default-capability \n\nCommands:\n list List appCapabilityDefaultCapability records\n find-first Find first matching appCapabilityDefaultCapability record\n get Get a appCapabilityDefaultCapability by ID\n create Create a new appCapabilityDefaultCapability\n update Update an existing appCapabilityDefaultCapability\n delete Delete a appCapabilityDefaultCapability\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, @@ -72,22 +72,22 @@ async function handleTableSubcommand( async function handleList(argv: Partial>, _prompter: Inquirerer) { try { const defaultSelect = { + capabilityId: true, createdAt: true, id: true, - permissionId: true, updatedAt: true, }; const findManyArgs = parseFindManyArgs< FindManyArgs< - AppPermissionDefaultPermissionSelect, - AppPermissionDefaultPermissionFilter, - AppPermissionDefaultPermissionOrderBy + AppCapabilityDefaultCapabilitySelect, + AppCapabilityDefaultCapabilityFilter, + AppCapabilityDefaultCapabilityOrderBy > & { - select: AppPermissionDefaultPermissionSelect; + select: AppCapabilityDefaultCapabilitySelect; } >(argv, defaultSelect); const client = getClient(); - const result = await client.appPermissionDefaultPermission.findMany(findManyArgs).execute(); + const result = await client.appCapabilityDefaultCapability.findMany(findManyArgs).execute(); console.log(JSON.stringify(result, null, 2)); } catch (error) { console.error('Failed to list records.'); @@ -100,22 +100,22 @@ async function handleList(argv: Partial>, _prompter: Inq async function handleFindFirst(argv: Partial>, _prompter: Inquirerer) { try { const defaultSelect = { + capabilityId: true, createdAt: true, id: true, - permissionId: true, updatedAt: true, }; const findFirstArgs = parseFindFirstArgs< FindFirstArgs< - AppPermissionDefaultPermissionSelect, - AppPermissionDefaultPermissionFilter, - AppPermissionDefaultPermissionOrderBy + AppCapabilityDefaultCapabilitySelect, + AppCapabilityDefaultCapabilityFilter, + AppCapabilityDefaultCapabilityOrderBy > & { - select: AppPermissionDefaultPermissionSelect; + select: AppCapabilityDefaultCapabilitySelect; } >(argv, defaultSelect); const client = getClient(); - const result = await client.appPermissionDefaultPermission.findFirst(findFirstArgs).execute(); + const result = await client.appCapabilityDefaultCapability.findFirst(findFirstArgs).execute(); console.log(JSON.stringify(result, null, 2)); } catch (error) { console.error('Failed to find record.'); @@ -136,13 +136,13 @@ async function handleGet(argv: Partial>, prompter: Inqui }, ]); const client = getClient(); - const result = await client.appPermissionDefaultPermission + const result = await client.appCapabilityDefaultCapability .findOne({ id: answers.id as string, select: { + capabilityId: true, createdAt: true, id: true, - permissionId: true, updatedAt: true, }, }) @@ -161,8 +161,8 @@ async function handleCreate(argv: Partial>, prompter: In const rawAnswers = await prompter.prompt(argv, [ { type: 'text', - name: 'permissionId', - message: 'permissionId', + name: 'capabilityId', + message: 'capabilityId', required: true, }, ]); @@ -170,17 +170,17 @@ async function handleCreate(argv: Partial>, prompter: In const cleanedData = stripUndefined( answers, fieldSchema - ) as CreateAppPermissionDefaultPermissionInput['appPermissionDefaultPermission']; + ) as CreateAppCapabilityDefaultCapabilityInput['appCapabilityDefaultCapability']; const client = getClient(); - const result = await client.appPermissionDefaultPermission + const result = await client.appCapabilityDefaultCapability .create({ data: { - permissionId: cleanedData.permissionId, + capabilityId: cleanedData.capabilityId, }, select: { + capabilityId: true, createdAt: true, id: true, - permissionId: true, updatedAt: true, }, }) @@ -205,26 +205,26 @@ async function handleUpdate(argv: Partial>, prompter: In }, { type: 'text', - name: 'permissionId', - message: 'permissionId', + name: 'capabilityId', + message: 'capabilityId', required: false, }, ]); const answers = coerceAnswers(rawAnswers, fieldSchema); - const cleanedData = stripUndefined(answers, fieldSchema) as AppPermissionDefaultPermissionPatch; + const cleanedData = stripUndefined(answers, fieldSchema) as AppCapabilityDefaultCapabilityPatch; const client = getClient(); - const result = await client.appPermissionDefaultPermission + const result = await client.appCapabilityDefaultCapability .update({ where: { id: answers.id as string, }, data: { - permissionId: cleanedData.permissionId, + capabilityId: cleanedData.capabilityId, }, select: { + capabilityId: true, createdAt: true, id: true, - permissionId: true, updatedAt: true, }, }) @@ -250,7 +250,7 @@ async function handleDelete(argv: Partial>, prompter: In ]); const answers = coerceAnswers(rawAnswers, fieldSchema); const client = getClient(); - const result = await client.appPermissionDefaultPermission + const result = await client.appCapabilityDefaultCapability .delete({ where: { id: answers.id as string, diff --git a/sdk/constructive-cli/src/admin/cli/commands/app-permission-default-grant.ts b/sdk/constructive-cli/src/admin/cli/commands/app-capability-default-grant.ts similarity index 81% rename from sdk/constructive-cli/src/admin/cli/commands/app-permission-default-grant.ts rename to sdk/constructive-cli/src/admin/cli/commands/app-capability-default-grant.ts index dbe5909dd1..41aeff7316 100644 --- a/sdk/constructive-cli/src/admin/cli/commands/app-permission-default-grant.ts +++ b/sdk/constructive-cli/src/admin/cli/commands/app-capability-default-grant.ts @@ -1,5 +1,5 @@ /** - * CLI commands for AppPermissionDefaultGrant + * CLI commands for AppCapabilityDefaultGrant * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -8,23 +8,23 @@ import { getClient } from '../executor'; import { coerceAnswers, parseFindFirstArgs, parseFindManyArgs, stripUndefined } from '../utils'; import type { FieldSchema } from '../utils'; import type { - CreateAppPermissionDefaultGrantInput, - AppPermissionDefaultGrantPatch, - AppPermissionDefaultGrantSelect, - AppPermissionDefaultGrantFilter, - AppPermissionDefaultGrantOrderBy, + CreateAppCapabilityDefaultGrantInput, + AppCapabilityDefaultGrantPatch, + AppCapabilityDefaultGrantSelect, + AppCapabilityDefaultGrantFilter, + AppCapabilityDefaultGrantOrderBy, } from '../../orm/input-types'; import type { FindManyArgs, FindFirstArgs } from '../../orm/select-types'; const fieldSchema: FieldSchema = { + capabilityId: 'uuid', createdAt: 'string', grantorId: 'uuid', id: 'uuid', isGrant: 'boolean', - permissionId: 'uuid', updatedAt: 'string', }; const usage = - '\napp-permission-default-grant \n\nCommands:\n list List appPermissionDefaultGrant records\n find-first Find first matching appPermissionDefaultGrant record\n get Get a appPermissionDefaultGrant by ID\n create Create a new appPermissionDefaultGrant\n update Update an existing appPermissionDefaultGrant\n delete Delete a appPermissionDefaultGrant\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-capability-default-grant \n\nCommands:\n list List appCapabilityDefaultGrant records\n find-first Find first matching appCapabilityDefaultGrant record\n get Get a appCapabilityDefaultGrant by ID\n create Create a new appCapabilityDefaultGrant\n update Update an existing appCapabilityDefaultGrant\n delete Delete a appCapabilityDefaultGrant\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,24 +74,24 @@ async function handleTableSubcommand( async function handleList(argv: Partial>, _prompter: Inquirerer) { try { const defaultSelect = { + capabilityId: true, createdAt: true, grantorId: true, id: true, isGrant: true, - permissionId: true, updatedAt: true, }; const findManyArgs = parseFindManyArgs< FindManyArgs< - AppPermissionDefaultGrantSelect, - AppPermissionDefaultGrantFilter, - AppPermissionDefaultGrantOrderBy + AppCapabilityDefaultGrantSelect, + AppCapabilityDefaultGrantFilter, + AppCapabilityDefaultGrantOrderBy > & { - select: AppPermissionDefaultGrantSelect; + select: AppCapabilityDefaultGrantSelect; } >(argv, defaultSelect); const client = getClient(); - const result = await client.appPermissionDefaultGrant.findMany(findManyArgs).execute(); + const result = await client.appCapabilityDefaultGrant.findMany(findManyArgs).execute(); console.log(JSON.stringify(result, null, 2)); } catch (error) { console.error('Failed to list records.'); @@ -104,24 +104,24 @@ async function handleList(argv: Partial>, _prompter: Inq async function handleFindFirst(argv: Partial>, _prompter: Inquirerer) { try { const defaultSelect = { + capabilityId: true, createdAt: true, grantorId: true, id: true, isGrant: true, - permissionId: true, updatedAt: true, }; const findFirstArgs = parseFindFirstArgs< FindFirstArgs< - AppPermissionDefaultGrantSelect, - AppPermissionDefaultGrantFilter, - AppPermissionDefaultGrantOrderBy + AppCapabilityDefaultGrantSelect, + AppCapabilityDefaultGrantFilter, + AppCapabilityDefaultGrantOrderBy > & { - select: AppPermissionDefaultGrantSelect; + select: AppCapabilityDefaultGrantSelect; } >(argv, defaultSelect); const client = getClient(); - const result = await client.appPermissionDefaultGrant.findFirst(findFirstArgs).execute(); + const result = await client.appCapabilityDefaultGrant.findFirst(findFirstArgs).execute(); console.log(JSON.stringify(result, null, 2)); } catch (error) { console.error('Failed to find record.'); @@ -142,15 +142,15 @@ async function handleGet(argv: Partial>, prompter: Inqui }, ]); const client = getClient(); - const result = await client.appPermissionDefaultGrant + const result = await client.appCapabilityDefaultGrant .findOne({ id: answers.id as string, select: { + capabilityId: true, createdAt: true, grantorId: true, id: true, isGrant: true, - permissionId: true, updatedAt: true, }, }) @@ -167,6 +167,12 @@ async function handleGet(argv: Partial>, prompter: Inqui async function handleCreate(argv: Partial>, prompter: Inquirerer) { try { const rawAnswers = await prompter.prompt(argv, [ + { + type: 'text', + name: 'capabilityId', + message: 'capabilityId', + required: true, + }, { type: 'text', name: 'grantorId', @@ -181,32 +187,26 @@ async function handleCreate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, - { - type: 'text', - name: 'permissionId', - message: 'permissionId', - required: true, - }, ]); const answers = coerceAnswers(rawAnswers, fieldSchema); const cleanedData = stripUndefined( answers, fieldSchema - ) as CreateAppPermissionDefaultGrantInput['appPermissionDefaultGrant']; + ) as CreateAppCapabilityDefaultGrantInput['appCapabilityDefaultGrant']; const client = getClient(); - const result = await client.appPermissionDefaultGrant + const result = await client.appCapabilityDefaultGrant .create({ data: { + capabilityId: cleanedData.capabilityId, grantorId: cleanedData.grantorId, isGrant: cleanedData.isGrant, - permissionId: cleanedData.permissionId, }, select: { + capabilityId: true, createdAt: true, grantorId: true, id: true, isGrant: true, - permissionId: true, updatedAt: true, }, }) @@ -229,6 +229,12 @@ async function handleUpdate(argv: Partial>, prompter: In message: 'id', required: true, }, + { + type: 'text', + name: 'capabilityId', + message: 'capabilityId', + required: false, + }, { type: 'text', name: 'grantorId', @@ -243,32 +249,26 @@ async function handleUpdate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, - { - type: 'text', - name: 'permissionId', - message: 'permissionId', - required: false, - }, ]); const answers = coerceAnswers(rawAnswers, fieldSchema); - const cleanedData = stripUndefined(answers, fieldSchema) as AppPermissionDefaultGrantPatch; + const cleanedData = stripUndefined(answers, fieldSchema) as AppCapabilityDefaultGrantPatch; const client = getClient(); - const result = await client.appPermissionDefaultGrant + const result = await client.appCapabilityDefaultGrant .update({ where: { id: answers.id as string, }, data: { + capabilityId: cleanedData.capabilityId, grantorId: cleanedData.grantorId, isGrant: cleanedData.isGrant, - permissionId: cleanedData.permissionId, }, select: { + capabilityId: true, createdAt: true, grantorId: true, id: true, isGrant: true, - permissionId: true, updatedAt: true, }, }) @@ -294,7 +294,7 @@ async function handleDelete(argv: Partial>, prompter: In ]); const answers = coerceAnswers(rawAnswers, fieldSchema); const client = getClient(); - const result = await client.appPermissionDefaultGrant + const result = await client.appCapabilityDefaultGrant .delete({ where: { id: answers.id as string, diff --git a/sdk/constructive-cli/src/admin/cli/commands/app-grant.ts b/sdk/constructive-cli/src/admin/cli/commands/app-grant.ts index 54f8c0205d..13c2cc1299 100644 --- a/sdk/constructive-cli/src/admin/cli/commands/app-grant.ts +++ b/sdk/constructive-cli/src/admin/cli/commands/app-grant.ts @@ -17,11 +17,11 @@ import type { import type { FindManyArgs, FindFirstArgs } from '../../orm/select-types'; const fieldSchema: FieldSchema = { actorId: 'uuid', + capabilities: 'string', createdAt: 'string', grantorId: 'uuid', id: 'uuid', isGrant: 'boolean', - permissions: 'string', updatedAt: 'string', }; const usage = @@ -76,11 +76,11 @@ async function handleList(argv: Partial>, _prompter: Inq try { const defaultSelect = { actorId: true, + capabilities: true, createdAt: true, grantorId: true, id: true, isGrant: true, - permissions: true, updatedAt: true, }; const findManyArgs = parseFindManyArgs< @@ -103,11 +103,11 @@ async function handleFindFirst(argv: Partial>, _prompter try { const defaultSelect = { actorId: true, + capabilities: true, createdAt: true, grantorId: true, id: true, isGrant: true, - permissions: true, updatedAt: true, }; const findFirstArgs = parseFindFirstArgs< @@ -142,11 +142,11 @@ async function handleGet(argv: Partial>, prompter: Inqui id: answers.id as string, select: { actorId: true, + capabilities: true, createdAt: true, grantorId: true, id: true, isGrant: true, - permissions: true, updatedAt: true, }, }) @@ -170,6 +170,13 @@ async function handleCreate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'text', + name: 'capabilities', + message: 'capabilities', + required: false, + skipPrompt: true, + }, { type: 'text', name: 'grantorId', @@ -184,13 +191,6 @@ async function handleCreate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, - { - type: 'text', - name: 'permissions', - message: 'permissions', - required: false, - skipPrompt: true, - }, ]); const answers = coerceAnswers(rawAnswers, fieldSchema); const cleanedData = stripUndefined(answers, fieldSchema) as CreateAppGrantInput['appGrant']; @@ -199,17 +199,17 @@ async function handleCreate(argv: Partial>, prompter: In .create({ data: { actorId: cleanedData.actorId, + capabilities: cleanedData.capabilities, grantorId: cleanedData.grantorId, isGrant: cleanedData.isGrant, - permissions: cleanedData.permissions, }, select: { actorId: true, + capabilities: true, createdAt: true, grantorId: true, id: true, isGrant: true, - permissions: true, updatedAt: true, }, }) @@ -239,6 +239,13 @@ async function handleUpdate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'text', + name: 'capabilities', + message: 'capabilities', + required: false, + skipPrompt: true, + }, { type: 'text', name: 'grantorId', @@ -253,13 +260,6 @@ async function handleUpdate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, - { - type: 'text', - name: 'permissions', - message: 'permissions', - required: false, - skipPrompt: true, - }, ]); const answers = coerceAnswers(rawAnswers, fieldSchema); const cleanedData = stripUndefined(answers, fieldSchema) as AppGrantPatch; @@ -271,17 +271,17 @@ async function handleUpdate(argv: Partial>, prompter: In }, data: { actorId: cleanedData.actorId, + capabilities: cleanedData.capabilities, grantorId: cleanedData.grantorId, isGrant: cleanedData.isGrant, - permissions: cleanedData.permissions, }, select: { actorId: true, + capabilities: true, createdAt: true, grantorId: true, id: true, isGrant: true, - permissions: true, updatedAt: true, }, }) diff --git a/sdk/constructive-cli/src/admin/cli/commands/app-membership.ts b/sdk/constructive-cli/src/admin/cli/commands/app-membership.ts index bc461db4c8..188bc50a36 100644 --- a/sdk/constructive-cli/src/admin/cli/commands/app-membership.ts +++ b/sdk/constructive-cli/src/admin/cli/commands/app-membership.ts @@ -17,6 +17,7 @@ import type { import type { FindManyArgs, FindFirstArgs } from '../../orm/select-types'; const fieldSchema: FieldSchema = { actorId: 'uuid', + capabilities: 'string', createdAt: 'string', createdBy: 'uuid', granted: 'string', @@ -28,7 +29,6 @@ const fieldSchema: FieldSchema = { isDisabled: 'boolean', isOwner: 'boolean', isVerified: 'boolean', - permissions: 'string', profileId: 'uuid', updatedAt: 'string', updatedBy: 'uuid', @@ -85,6 +85,7 @@ async function handleList(argv: Partial>, _prompter: Inq try { const defaultSelect = { actorId: true, + capabilities: true, createdAt: true, createdBy: true, granted: true, @@ -96,7 +97,6 @@ async function handleList(argv: Partial>, _prompter: Inq isDisabled: true, isOwner: true, isVerified: true, - permissions: true, profileId: true, updatedAt: true, updatedBy: true, @@ -121,6 +121,7 @@ async function handleFindFirst(argv: Partial>, _prompter try { const defaultSelect = { actorId: true, + capabilities: true, createdAt: true, createdBy: true, granted: true, @@ -132,7 +133,6 @@ async function handleFindFirst(argv: Partial>, _prompter isDisabled: true, isOwner: true, isVerified: true, - permissions: true, profileId: true, updatedAt: true, updatedBy: true, @@ -169,6 +169,7 @@ async function handleGet(argv: Partial>, prompter: Inqui id: answers.id as string, select: { actorId: true, + capabilities: true, createdAt: true, createdBy: true, granted: true, @@ -180,7 +181,6 @@ async function handleGet(argv: Partial>, prompter: Inqui isDisabled: true, isOwner: true, isVerified: true, - permissions: true, profileId: true, updatedAt: true, updatedBy: true, @@ -205,6 +205,13 @@ async function handleCreate(argv: Partial>, prompter: In message: 'actorId', required: true, }, + { + type: 'text', + name: 'capabilities', + message: 'capabilities', + required: false, + skipPrompt: true, + }, { type: 'text', name: 'createdBy', @@ -268,13 +275,6 @@ async function handleCreate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, - { - type: 'text', - name: 'permissions', - message: 'permissions', - required: false, - skipPrompt: true, - }, { type: 'text', name: 'profileId', @@ -300,6 +300,7 @@ async function handleCreate(argv: Partial>, prompter: In .create({ data: { actorId: cleanedData.actorId, + capabilities: cleanedData.capabilities, createdBy: cleanedData.createdBy, granted: cleanedData.granted, isActive: cleanedData.isActive, @@ -309,12 +310,12 @@ async function handleCreate(argv: Partial>, prompter: In isDisabled: cleanedData.isDisabled, isOwner: cleanedData.isOwner, isVerified: cleanedData.isVerified, - permissions: cleanedData.permissions, profileId: cleanedData.profileId, updatedBy: cleanedData.updatedBy, }, select: { actorId: true, + capabilities: true, createdAt: true, createdBy: true, granted: true, @@ -326,7 +327,6 @@ async function handleCreate(argv: Partial>, prompter: In isDisabled: true, isOwner: true, isVerified: true, - permissions: true, profileId: true, updatedAt: true, updatedBy: true, @@ -357,6 +357,13 @@ async function handleUpdate(argv: Partial>, prompter: In message: 'actorId', required: false, }, + { + type: 'text', + name: 'capabilities', + message: 'capabilities', + required: false, + skipPrompt: true, + }, { type: 'text', name: 'createdBy', @@ -420,13 +427,6 @@ async function handleUpdate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, - { - type: 'text', - name: 'permissions', - message: 'permissions', - required: false, - skipPrompt: true, - }, { type: 'text', name: 'profileId', @@ -452,6 +452,7 @@ async function handleUpdate(argv: Partial>, prompter: In }, data: { actorId: cleanedData.actorId, + capabilities: cleanedData.capabilities, createdBy: cleanedData.createdBy, granted: cleanedData.granted, isActive: cleanedData.isActive, @@ -461,12 +462,12 @@ async function handleUpdate(argv: Partial>, prompter: In isDisabled: cleanedData.isDisabled, isOwner: cleanedData.isOwner, isVerified: cleanedData.isVerified, - permissions: cleanedData.permissions, profileId: cleanedData.profileId, updatedBy: cleanedData.updatedBy, }, select: { actorId: true, + capabilities: true, createdAt: true, createdBy: true, granted: true, @@ -478,7 +479,6 @@ async function handleUpdate(argv: Partial>, prompter: In isDisabled: true, isOwner: true, isVerified: true, - permissions: true, profileId: true, updatedAt: true, updatedBy: true, diff --git a/sdk/constructive-cli/src/admin/cli/commands/app-permission-default.ts b/sdk/constructive-cli/src/admin/cli/commands/app-permission-default.ts deleted file mode 100644 index 3a03ac6c82..0000000000 --- a/sdk/constructive-cli/src/admin/cli/commands/app-permission-default.ts +++ /dev/null @@ -1,261 +0,0 @@ -/** - * CLI commands for AppPermissionDefault - * @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 { - CreateAppPermissionDefaultInput, - AppPermissionDefaultPatch, - AppPermissionDefaultSelect, - AppPermissionDefaultFilter, - AppPermissionDefaultOrderBy, -} from '../../orm/input-types'; -import type { FindManyArgs, FindFirstArgs } from '../../orm/select-types'; -const fieldSchema: FieldSchema = { - id: 'uuid', - permissions: 'string', -}; -const usage = - '\napp-permission-default \n\nCommands:\n list List appPermissionDefault records\n find-first Find first matching appPermissionDefault record\n get Get a appPermissionDefault by ID\n create Create a new appPermissionDefault\n update Update an existing appPermissionDefault\n delete Delete a appPermissionDefault\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, - permissions: true, - }; - const findManyArgs = parseFindManyArgs< - FindManyArgs< - AppPermissionDefaultSelect, - AppPermissionDefaultFilter, - AppPermissionDefaultOrderBy - > & { - select: AppPermissionDefaultSelect; - } - >(argv, defaultSelect); - const client = getClient(); - const result = await client.appPermissionDefault.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, - permissions: true, - }; - const findFirstArgs = parseFindFirstArgs< - FindFirstArgs< - AppPermissionDefaultSelect, - AppPermissionDefaultFilter, - AppPermissionDefaultOrderBy - > & { - select: AppPermissionDefaultSelect; - } - >(argv, defaultSelect); - const client = getClient(); - const result = await client.appPermissionDefault.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.appPermissionDefault - .findOne({ - id: answers.id as string, - select: { - id: true, - permissions: 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: 'permissions', - message: 'permissions', - required: false, - skipPrompt: true, - }, - ]); - const answers = coerceAnswers(rawAnswers, fieldSchema); - const cleanedData = stripUndefined( - answers, - fieldSchema - ) as CreateAppPermissionDefaultInput['appPermissionDefault']; - const client = getClient(); - const result = await client.appPermissionDefault - .create({ - data: { - permissions: cleanedData.permissions, - }, - select: { - id: true, - permissions: 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: 'permissions', - message: 'permissions', - required: false, - skipPrompt: true, - }, - ]); - const answers = coerceAnswers(rawAnswers, fieldSchema); - const cleanedData = stripUndefined(answers, fieldSchema) as AppPermissionDefaultPatch; - const client = getClient(); - const result = await client.appPermissionDefault - .update({ - where: { - id: answers.id as string, - }, - data: { - permissions: cleanedData.permissions, - }, - select: { - id: true, - permissions: 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.appPermissionDefault - .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/app-permissions-get-by-mask.ts b/sdk/constructive-cli/src/admin/cli/commands/app-permissions-get-by-mask.ts deleted file mode 100644 index 0cc520e391..0000000000 --- a/sdk/constructive-cli/src/admin/cli/commands/app-permissions-get-by-mask.ts +++ /dev/null @@ -1,66 +0,0 @@ -/** - * CLI command for query appPermissionsGetByMask - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ -import { CLIOptions, Inquirerer } from 'inquirerer'; -import { getClient } from '../executor'; -import { buildSelectFromPaths } from '../utils'; -import type { AppPermissionsGetByMaskVariables } from '../../orm/query'; -import type { AppPermissionConnectionSelect } from '../../orm/input-types'; -export default async ( - argv: Partial>, - prompter: Inquirerer, - _options: CLIOptions -) => { - try { - if (argv.help || argv.h) { - console.log( - 'app-permissions-get-by-mask - Reads and enables pagination through a set of `AppPermission`.\n\nUsage: app-permissions-get-by-mask [OPTIONS]\n' - ); - process.exit(0); - } - const answers = await prompter.prompt(argv, [ - { - type: 'text', - name: 'after', - message: 'Read all values in the set after (below) this cursor.', - }, - { - type: 'text', - name: 'first', - message: 'Only read the first `n` values of the set.', - }, - { - type: 'text', - name: 'mask', - message: 'mask', - }, - { - type: 'text', - name: 'offset', - message: - 'Skip the first `n` values from our `after` cursor, an alternative to cursor\nbased pagination. May not be used with `last`.', - }, - ]); - const client = getClient(); - const selectFields = buildSelectFromPaths((argv.select as string) ?? ''); - const result = await client.query - .appPermissionsGetByMask( - answers as unknown as AppPermissionsGetByMaskVariables, - { - select: selectFields, - } as unknown as { - select: AppPermissionConnectionSelect; - } - ) - .execute(); - console.log(JSON.stringify(result, null, 2)); - } catch (error) { - console.error('Failed: appPermissionsGetByMask'); - if (error instanceof Error) { - console.error(error.message); - } - process.exit(1); - } -}; diff --git a/sdk/constructive-cli/src/admin/cli/commands/app-permissions-get-mask-by-names.ts b/sdk/constructive-cli/src/admin/cli/commands/app-permissions-get-mask-by-names.ts deleted file mode 100644 index 2b9494ddda..0000000000 --- a/sdk/constructive-cli/src/admin/cli/commands/app-permissions-get-mask-by-names.ts +++ /dev/null @@ -1,40 +0,0 @@ -/** - * CLI command for query appPermissionsGetMaskByNames - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ -import { CLIOptions, Inquirerer } from 'inquirerer'; -import { getClient } from '../executor'; -import type { AppPermissionsGetMaskByNamesVariables } from '../../orm/query'; -export default async ( - argv: Partial>, - prompter: Inquirerer, - _options: CLIOptions -) => { - try { - if (argv.help || argv.h) { - console.log( - 'app-permissions-get-mask-by-names - appPermissionsGetMaskByNames\n\nUsage: app-permissions-get-mask-by-names [OPTIONS]\n' - ); - process.exit(0); - } - const answers = await prompter.prompt(argv, [ - { - type: 'text', - name: 'names', - message: 'names', - }, - ]); - const client = getClient(); - const result = await client.query - .appPermissionsGetMaskByNames(answers as unknown as AppPermissionsGetMaskByNamesVariables) - .execute(); - console.log(JSON.stringify(result, null, 2)); - } catch (error) { - console.error('Failed: appPermissionsGetMaskByNames'); - if (error instanceof Error) { - console.error(error.message); - } - process.exit(1); - } -}; diff --git a/sdk/constructive-cli/src/admin/cli/commands/app-permissions-get-padded-mask.ts b/sdk/constructive-cli/src/admin/cli/commands/app-permissions-get-padded-mask.ts deleted file mode 100644 index afa2fbc4c7..0000000000 --- a/sdk/constructive-cli/src/admin/cli/commands/app-permissions-get-padded-mask.ts +++ /dev/null @@ -1,40 +0,0 @@ -/** - * CLI command for query appPermissionsGetPaddedMask - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ -import { CLIOptions, Inquirerer } from 'inquirerer'; -import { getClient } from '../executor'; -import type { AppPermissionsGetPaddedMaskVariables } from '../../orm/query'; -export default async ( - argv: Partial>, - prompter: Inquirerer, - _options: CLIOptions -) => { - try { - if (argv.help || argv.h) { - console.log( - 'app-permissions-get-padded-mask - appPermissionsGetPaddedMask\n\nUsage: app-permissions-get-padded-mask [OPTIONS]\n' - ); - process.exit(0); - } - const answers = await prompter.prompt(argv, [ - { - type: 'text', - name: 'mask', - message: 'mask', - }, - ]); - const client = getClient(); - const result = await client.query - .appPermissionsGetPaddedMask(answers as unknown as AppPermissionsGetPaddedMaskVariables) - .execute(); - console.log(JSON.stringify(result, null, 2)); - } catch (error) { - console.error('Failed: appPermissionsGetPaddedMask'); - if (error instanceof Error) { - console.error(error.message); - } - process.exit(1); - } -}; diff --git a/sdk/constructive-cli/src/admin/cli/commands/org-permission-default-permission.ts b/sdk/constructive-cli/src/admin/cli/commands/org-capability-default-capability.ts similarity index 78% rename from sdk/constructive-cli/src/admin/cli/commands/org-permission-default-permission.ts rename to sdk/constructive-cli/src/admin/cli/commands/org-capability-default-capability.ts index 0b1653abf0..26ba9f6823 100644 --- a/sdk/constructive-cli/src/admin/cli/commands/org-permission-default-permission.ts +++ b/sdk/constructive-cli/src/admin/cli/commands/org-capability-default-capability.ts @@ -1,5 +1,5 @@ /** - * CLI commands for OrgPermissionDefaultPermission + * CLI commands for OrgCapabilityDefaultCapability * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -8,22 +8,22 @@ import { getClient } from '../executor'; import { coerceAnswers, parseFindFirstArgs, parseFindManyArgs, stripUndefined } from '../utils'; import type { FieldSchema } from '../utils'; import type { - CreateOrgPermissionDefaultPermissionInput, - OrgPermissionDefaultPermissionPatch, - OrgPermissionDefaultPermissionSelect, - OrgPermissionDefaultPermissionFilter, - OrgPermissionDefaultPermissionOrderBy, + CreateOrgCapabilityDefaultCapabilityInput, + OrgCapabilityDefaultCapabilityPatch, + OrgCapabilityDefaultCapabilitySelect, + OrgCapabilityDefaultCapabilityFilter, + OrgCapabilityDefaultCapabilityOrderBy, } from '../../orm/input-types'; import type { FindManyArgs, FindFirstArgs } from '../../orm/select-types'; const fieldSchema: FieldSchema = { + capabilityId: 'uuid', createdAt: 'string', entityId: 'uuid', id: 'uuid', - permissionId: 'uuid', updatedAt: 'string', }; const usage = - '\norg-permission-default-permission \n\nCommands:\n list List orgPermissionDefaultPermission records\n find-first Find first matching orgPermissionDefaultPermission record\n get Get a orgPermissionDefaultPermission by ID\n create Create a new orgPermissionDefaultPermission\n update Update an existing orgPermissionDefaultPermission\n delete Delete a orgPermissionDefaultPermission\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-capability-default-capability \n\nCommands:\n list List orgCapabilityDefaultCapability records\n find-first Find first matching orgCapabilityDefaultCapability record\n get Get a orgCapabilityDefaultCapability by ID\n create Create a new orgCapabilityDefaultCapability\n update Update an existing orgCapabilityDefaultCapability\n delete Delete a orgCapabilityDefaultCapability\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, @@ -73,23 +73,23 @@ async function handleTableSubcommand( async function handleList(argv: Partial>, _prompter: Inquirerer) { try { const defaultSelect = { + capabilityId: true, createdAt: true, entityId: true, id: true, - permissionId: true, updatedAt: true, }; const findManyArgs = parseFindManyArgs< FindManyArgs< - OrgPermissionDefaultPermissionSelect, - OrgPermissionDefaultPermissionFilter, - OrgPermissionDefaultPermissionOrderBy + OrgCapabilityDefaultCapabilitySelect, + OrgCapabilityDefaultCapabilityFilter, + OrgCapabilityDefaultCapabilityOrderBy > & { - select: OrgPermissionDefaultPermissionSelect; + select: OrgCapabilityDefaultCapabilitySelect; } >(argv, defaultSelect); const client = getClient(); - const result = await client.orgPermissionDefaultPermission.findMany(findManyArgs).execute(); + const result = await client.orgCapabilityDefaultCapability.findMany(findManyArgs).execute(); console.log(JSON.stringify(result, null, 2)); } catch (error) { console.error('Failed to list records.'); @@ -102,23 +102,23 @@ async function handleList(argv: Partial>, _prompter: Inq async function handleFindFirst(argv: Partial>, _prompter: Inquirerer) { try { const defaultSelect = { + capabilityId: true, createdAt: true, entityId: true, id: true, - permissionId: true, updatedAt: true, }; const findFirstArgs = parseFindFirstArgs< FindFirstArgs< - OrgPermissionDefaultPermissionSelect, - OrgPermissionDefaultPermissionFilter, - OrgPermissionDefaultPermissionOrderBy + OrgCapabilityDefaultCapabilitySelect, + OrgCapabilityDefaultCapabilityFilter, + OrgCapabilityDefaultCapabilityOrderBy > & { - select: OrgPermissionDefaultPermissionSelect; + select: OrgCapabilityDefaultCapabilitySelect; } >(argv, defaultSelect); const client = getClient(); - const result = await client.orgPermissionDefaultPermission.findFirst(findFirstArgs).execute(); + const result = await client.orgCapabilityDefaultCapability.findFirst(findFirstArgs).execute(); console.log(JSON.stringify(result, null, 2)); } catch (error) { console.error('Failed to find record.'); @@ -139,14 +139,14 @@ async function handleGet(argv: Partial>, prompter: Inqui }, ]); const client = getClient(); - const result = await client.orgPermissionDefaultPermission + const result = await client.orgCapabilityDefaultCapability .findOne({ id: answers.id as string, select: { + capabilityId: true, createdAt: true, entityId: true, id: true, - permissionId: true, updatedAt: true, }, }) @@ -165,14 +165,14 @@ async function handleCreate(argv: Partial>, prompter: In const rawAnswers = await prompter.prompt(argv, [ { type: 'text', - name: 'entityId', - message: 'entityId', + name: 'capabilityId', + message: 'capabilityId', required: true, }, { type: 'text', - name: 'permissionId', - message: 'permissionId', + name: 'entityId', + message: 'entityId', required: true, }, ]); @@ -180,19 +180,19 @@ async function handleCreate(argv: Partial>, prompter: In const cleanedData = stripUndefined( answers, fieldSchema - ) as CreateOrgPermissionDefaultPermissionInput['orgPermissionDefaultPermission']; + ) as CreateOrgCapabilityDefaultCapabilityInput['orgCapabilityDefaultCapability']; const client = getClient(); - const result = await client.orgPermissionDefaultPermission + const result = await client.orgCapabilityDefaultCapability .create({ data: { + capabilityId: cleanedData.capabilityId, entityId: cleanedData.entityId, - permissionId: cleanedData.permissionId, }, select: { + capabilityId: true, createdAt: true, entityId: true, id: true, - permissionId: true, updatedAt: true, }, }) @@ -217,34 +217,34 @@ async function handleUpdate(argv: Partial>, prompter: In }, { type: 'text', - name: 'entityId', - message: 'entityId', + name: 'capabilityId', + message: 'capabilityId', required: false, }, { type: 'text', - name: 'permissionId', - message: 'permissionId', + name: 'entityId', + message: 'entityId', required: false, }, ]); const answers = coerceAnswers(rawAnswers, fieldSchema); - const cleanedData = stripUndefined(answers, fieldSchema) as OrgPermissionDefaultPermissionPatch; + const cleanedData = stripUndefined(answers, fieldSchema) as OrgCapabilityDefaultCapabilityPatch; const client = getClient(); - const result = await client.orgPermissionDefaultPermission + const result = await client.orgCapabilityDefaultCapability .update({ where: { id: answers.id as string, }, data: { + capabilityId: cleanedData.capabilityId, entityId: cleanedData.entityId, - permissionId: cleanedData.permissionId, }, select: { + capabilityId: true, createdAt: true, entityId: true, id: true, - permissionId: true, updatedAt: true, }, }) @@ -270,7 +270,7 @@ async function handleDelete(argv: Partial>, prompter: In ]); const answers = coerceAnswers(rawAnswers, fieldSchema); const client = getClient(); - const result = await client.orgPermissionDefaultPermission + const result = await client.orgCapabilityDefaultCapability .delete({ where: { id: answers.id as string, diff --git a/sdk/constructive-cli/src/admin/cli/commands/org-permission-default-grant.ts b/sdk/constructive-cli/src/admin/cli/commands/org-capability-default-grant.ts similarity index 82% rename from sdk/constructive-cli/src/admin/cli/commands/org-permission-default-grant.ts rename to sdk/constructive-cli/src/admin/cli/commands/org-capability-default-grant.ts index 179b90d112..c99f62f2fb 100644 --- a/sdk/constructive-cli/src/admin/cli/commands/org-permission-default-grant.ts +++ b/sdk/constructive-cli/src/admin/cli/commands/org-capability-default-grant.ts @@ -1,5 +1,5 @@ /** - * CLI commands for OrgPermissionDefaultGrant + * CLI commands for OrgCapabilityDefaultGrant * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -8,24 +8,24 @@ import { getClient } from '../executor'; import { coerceAnswers, parseFindFirstArgs, parseFindManyArgs, stripUndefined } from '../utils'; import type { FieldSchema } from '../utils'; import type { - CreateOrgPermissionDefaultGrantInput, - OrgPermissionDefaultGrantPatch, - OrgPermissionDefaultGrantSelect, - OrgPermissionDefaultGrantFilter, - OrgPermissionDefaultGrantOrderBy, + CreateOrgCapabilityDefaultGrantInput, + OrgCapabilityDefaultGrantPatch, + OrgCapabilityDefaultGrantSelect, + OrgCapabilityDefaultGrantFilter, + OrgCapabilityDefaultGrantOrderBy, } from '../../orm/input-types'; import type { FindManyArgs, FindFirstArgs } from '../../orm/select-types'; const fieldSchema: FieldSchema = { + capabilityId: 'uuid', createdAt: 'string', entityId: 'uuid', grantorId: 'uuid', id: 'uuid', isGrant: 'boolean', - permissionId: 'uuid', updatedAt: 'string', }; const usage = - '\norg-permission-default-grant \n\nCommands:\n list List orgPermissionDefaultGrant records\n find-first Find first matching orgPermissionDefaultGrant record\n get Get a orgPermissionDefaultGrant by ID\n create Create a new orgPermissionDefaultGrant\n update Update an existing orgPermissionDefaultGrant\n delete Delete a orgPermissionDefaultGrant\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-capability-default-grant \n\nCommands:\n list List orgCapabilityDefaultGrant records\n find-first Find first matching orgCapabilityDefaultGrant record\n get Get a orgCapabilityDefaultGrant by ID\n create Create a new orgCapabilityDefaultGrant\n update Update an existing orgCapabilityDefaultGrant\n delete Delete a orgCapabilityDefaultGrant\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, @@ -75,25 +75,25 @@ async function handleTableSubcommand( async function handleList(argv: Partial>, _prompter: Inquirerer) { try { const defaultSelect = { + capabilityId: true, createdAt: true, entityId: true, grantorId: true, id: true, isGrant: true, - permissionId: true, updatedAt: true, }; const findManyArgs = parseFindManyArgs< FindManyArgs< - OrgPermissionDefaultGrantSelect, - OrgPermissionDefaultGrantFilter, - OrgPermissionDefaultGrantOrderBy + OrgCapabilityDefaultGrantSelect, + OrgCapabilityDefaultGrantFilter, + OrgCapabilityDefaultGrantOrderBy > & { - select: OrgPermissionDefaultGrantSelect; + select: OrgCapabilityDefaultGrantSelect; } >(argv, defaultSelect); const client = getClient(); - const result = await client.orgPermissionDefaultGrant.findMany(findManyArgs).execute(); + const result = await client.orgCapabilityDefaultGrant.findMany(findManyArgs).execute(); console.log(JSON.stringify(result, null, 2)); } catch (error) { console.error('Failed to list records.'); @@ -106,25 +106,25 @@ async function handleList(argv: Partial>, _prompter: Inq async function handleFindFirst(argv: Partial>, _prompter: Inquirerer) { try { const defaultSelect = { + capabilityId: true, createdAt: true, entityId: true, grantorId: true, id: true, isGrant: true, - permissionId: true, updatedAt: true, }; const findFirstArgs = parseFindFirstArgs< FindFirstArgs< - OrgPermissionDefaultGrantSelect, - OrgPermissionDefaultGrantFilter, - OrgPermissionDefaultGrantOrderBy + OrgCapabilityDefaultGrantSelect, + OrgCapabilityDefaultGrantFilter, + OrgCapabilityDefaultGrantOrderBy > & { - select: OrgPermissionDefaultGrantSelect; + select: OrgCapabilityDefaultGrantSelect; } >(argv, defaultSelect); const client = getClient(); - const result = await client.orgPermissionDefaultGrant.findFirst(findFirstArgs).execute(); + const result = await client.orgCapabilityDefaultGrant.findFirst(findFirstArgs).execute(); console.log(JSON.stringify(result, null, 2)); } catch (error) { console.error('Failed to find record.'); @@ -145,16 +145,16 @@ async function handleGet(argv: Partial>, prompter: Inqui }, ]); const client = getClient(); - const result = await client.orgPermissionDefaultGrant + const result = await client.orgCapabilityDefaultGrant .findOne({ id: answers.id as string, select: { + capabilityId: true, createdAt: true, entityId: true, grantorId: true, id: true, isGrant: true, - permissionId: true, updatedAt: true, }, }) @@ -171,6 +171,12 @@ async function handleGet(argv: Partial>, prompter: Inqui async function handleCreate(argv: Partial>, prompter: Inquirerer) { try { const rawAnswers = await prompter.prompt(argv, [ + { + type: 'text', + name: 'capabilityId', + message: 'capabilityId', + required: true, + }, { type: 'text', name: 'entityId', @@ -191,34 +197,28 @@ async function handleCreate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, - { - type: 'text', - name: 'permissionId', - message: 'permissionId', - required: true, - }, ]); const answers = coerceAnswers(rawAnswers, fieldSchema); const cleanedData = stripUndefined( answers, fieldSchema - ) as CreateOrgPermissionDefaultGrantInput['orgPermissionDefaultGrant']; + ) as CreateOrgCapabilityDefaultGrantInput['orgCapabilityDefaultGrant']; const client = getClient(); - const result = await client.orgPermissionDefaultGrant + const result = await client.orgCapabilityDefaultGrant .create({ data: { + capabilityId: cleanedData.capabilityId, entityId: cleanedData.entityId, grantorId: cleanedData.grantorId, isGrant: cleanedData.isGrant, - permissionId: cleanedData.permissionId, }, select: { + capabilityId: true, createdAt: true, entityId: true, grantorId: true, id: true, isGrant: true, - permissionId: true, updatedAt: true, }, }) @@ -241,6 +241,12 @@ async function handleUpdate(argv: Partial>, prompter: In message: 'id', required: true, }, + { + type: 'text', + name: 'capabilityId', + message: 'capabilityId', + required: false, + }, { type: 'text', name: 'entityId', @@ -261,34 +267,28 @@ async function handleUpdate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, - { - type: 'text', - name: 'permissionId', - message: 'permissionId', - required: false, - }, ]); const answers = coerceAnswers(rawAnswers, fieldSchema); - const cleanedData = stripUndefined(answers, fieldSchema) as OrgPermissionDefaultGrantPatch; + const cleanedData = stripUndefined(answers, fieldSchema) as OrgCapabilityDefaultGrantPatch; const client = getClient(); - const result = await client.orgPermissionDefaultGrant + const result = await client.orgCapabilityDefaultGrant .update({ where: { id: answers.id as string, }, data: { + capabilityId: cleanedData.capabilityId, entityId: cleanedData.entityId, grantorId: cleanedData.grantorId, isGrant: cleanedData.isGrant, - permissionId: cleanedData.permissionId, }, select: { + capabilityId: true, createdAt: true, entityId: true, grantorId: true, id: true, isGrant: true, - permissionId: true, updatedAt: true, }, }) @@ -314,7 +314,7 @@ async function handleDelete(argv: Partial>, prompter: In ]); const answers = coerceAnswers(rawAnswers, fieldSchema); const client = getClient(); - const result = await client.orgPermissionDefaultGrant + const result = await client.orgCapabilityDefaultGrant .delete({ where: { id: answers.id as string, diff --git a/sdk/constructive-cli/src/admin/cli/commands/org-grant.ts b/sdk/constructive-cli/src/admin/cli/commands/org-grant.ts index ff31324db6..cbf3203be2 100644 --- a/sdk/constructive-cli/src/admin/cli/commands/org-grant.ts +++ b/sdk/constructive-cli/src/admin/cli/commands/org-grant.ts @@ -17,12 +17,12 @@ import type { import type { FindManyArgs, FindFirstArgs } from '../../orm/select-types'; const fieldSchema: FieldSchema = { actorId: 'uuid', + capabilities: 'string', createdAt: 'string', entityId: 'uuid', grantorId: 'uuid', id: 'uuid', isGrant: 'boolean', - permissions: 'string', updatedAt: 'string', }; const usage = @@ -77,12 +77,12 @@ async function handleList(argv: Partial>, _prompter: Inq try { const defaultSelect = { actorId: true, + capabilities: true, createdAt: true, entityId: true, grantorId: true, id: true, isGrant: true, - permissions: true, updatedAt: true, }; const findManyArgs = parseFindManyArgs< @@ -105,12 +105,12 @@ async function handleFindFirst(argv: Partial>, _prompter try { const defaultSelect = { actorId: true, + capabilities: true, createdAt: true, entityId: true, grantorId: true, id: true, isGrant: true, - permissions: true, updatedAt: true, }; const findFirstArgs = parseFindFirstArgs< @@ -145,12 +145,12 @@ async function handleGet(argv: Partial>, prompter: Inqui id: answers.id as string, select: { actorId: true, + capabilities: true, createdAt: true, entityId: true, grantorId: true, id: true, isGrant: true, - permissions: true, updatedAt: true, }, }) @@ -174,6 +174,13 @@ async function handleCreate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'text', + name: 'capabilities', + message: 'capabilities', + required: false, + skipPrompt: true, + }, { type: 'text', name: 'entityId', @@ -194,13 +201,6 @@ async function handleCreate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, - { - type: 'text', - name: 'permissions', - message: 'permissions', - required: false, - skipPrompt: true, - }, ]); const answers = coerceAnswers(rawAnswers, fieldSchema); const cleanedData = stripUndefined(answers, fieldSchema) as CreateOrgGrantInput['orgGrant']; @@ -209,19 +209,19 @@ async function handleCreate(argv: Partial>, prompter: In .create({ data: { actorId: cleanedData.actorId, + capabilities: cleanedData.capabilities, entityId: cleanedData.entityId, grantorId: cleanedData.grantorId, isGrant: cleanedData.isGrant, - permissions: cleanedData.permissions, }, select: { actorId: true, + capabilities: true, createdAt: true, entityId: true, grantorId: true, id: true, isGrant: true, - permissions: true, updatedAt: true, }, }) @@ -251,6 +251,13 @@ async function handleUpdate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'text', + name: 'capabilities', + message: 'capabilities', + required: false, + skipPrompt: true, + }, { type: 'text', name: 'entityId', @@ -271,13 +278,6 @@ async function handleUpdate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, - { - type: 'text', - name: 'permissions', - message: 'permissions', - required: false, - skipPrompt: true, - }, ]); const answers = coerceAnswers(rawAnswers, fieldSchema); const cleanedData = stripUndefined(answers, fieldSchema) as OrgGrantPatch; @@ -289,19 +289,19 @@ async function handleUpdate(argv: Partial>, prompter: In }, data: { actorId: cleanedData.actorId, + capabilities: cleanedData.capabilities, entityId: cleanedData.entityId, grantorId: cleanedData.grantorId, isGrant: cleanedData.isGrant, - permissions: cleanedData.permissions, }, select: { actorId: true, + capabilities: true, createdAt: true, entityId: true, grantorId: true, id: true, isGrant: true, - permissions: true, updatedAt: true, }, }) diff --git a/sdk/constructive-cli/src/admin/cli/commands/org-membership.ts b/sdk/constructive-cli/src/admin/cli/commands/org-membership.ts index 930f805b1a..7cf3ede0c7 100644 --- a/sdk/constructive-cli/src/admin/cli/commands/org-membership.ts +++ b/sdk/constructive-cli/src/admin/cli/commands/org-membership.ts @@ -17,6 +17,7 @@ import type { import type { FindManyArgs, FindFirstArgs } from '../../orm/select-types'; const fieldSchema: FieldSchema = { actorId: 'uuid', + capabilities: 'string', createdAt: 'string', createdBy: 'uuid', entityId: 'uuid', @@ -30,7 +31,6 @@ const fieldSchema: FieldSchema = { isExternal: 'boolean', isOwner: 'boolean', isReadOnly: 'boolean', - permissions: 'string', profileId: 'uuid', updatedAt: 'string', updatedBy: 'uuid', @@ -87,6 +87,7 @@ async function handleList(argv: Partial>, _prompter: Inq try { const defaultSelect = { actorId: true, + capabilities: true, createdAt: true, createdBy: true, entityId: true, @@ -100,7 +101,6 @@ async function handleList(argv: Partial>, _prompter: Inq isExternal: true, isOwner: true, isReadOnly: true, - permissions: true, profileId: true, updatedAt: true, updatedBy: true, @@ -125,6 +125,7 @@ async function handleFindFirst(argv: Partial>, _prompter try { const defaultSelect = { actorId: true, + capabilities: true, createdAt: true, createdBy: true, entityId: true, @@ -138,7 +139,6 @@ async function handleFindFirst(argv: Partial>, _prompter isExternal: true, isOwner: true, isReadOnly: true, - permissions: true, profileId: true, updatedAt: true, updatedBy: true, @@ -175,6 +175,7 @@ async function handleGet(argv: Partial>, prompter: Inqui id: answers.id as string, select: { actorId: true, + capabilities: true, createdAt: true, createdBy: true, entityId: true, @@ -188,7 +189,6 @@ async function handleGet(argv: Partial>, prompter: Inqui isExternal: true, isOwner: true, isReadOnly: true, - permissions: true, profileId: true, updatedAt: true, updatedBy: true, @@ -213,6 +213,13 @@ async function handleCreate(argv: Partial>, prompter: In message: 'actorId', required: true, }, + { + type: 'text', + name: 'capabilities', + message: 'capabilities', + required: false, + skipPrompt: true, + }, { type: 'text', name: 'createdBy', @@ -289,13 +296,6 @@ async function handleCreate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, - { - type: 'text', - name: 'permissions', - message: 'permissions', - required: false, - skipPrompt: true, - }, { type: 'text', name: 'profileId', @@ -321,6 +321,7 @@ async function handleCreate(argv: Partial>, prompter: In .create({ data: { actorId: cleanedData.actorId, + capabilities: cleanedData.capabilities, createdBy: cleanedData.createdBy, entityId: cleanedData.entityId, granted: cleanedData.granted, @@ -332,12 +333,12 @@ async function handleCreate(argv: Partial>, prompter: In isExternal: cleanedData.isExternal, isOwner: cleanedData.isOwner, isReadOnly: cleanedData.isReadOnly, - permissions: cleanedData.permissions, profileId: cleanedData.profileId, updatedBy: cleanedData.updatedBy, }, select: { actorId: true, + capabilities: true, createdAt: true, createdBy: true, entityId: true, @@ -351,7 +352,6 @@ async function handleCreate(argv: Partial>, prompter: In isExternal: true, isOwner: true, isReadOnly: true, - permissions: true, profileId: true, updatedAt: true, updatedBy: true, @@ -382,6 +382,13 @@ async function handleUpdate(argv: Partial>, prompter: In message: 'actorId', required: false, }, + { + type: 'text', + name: 'capabilities', + message: 'capabilities', + required: false, + skipPrompt: true, + }, { type: 'text', name: 'createdBy', @@ -458,13 +465,6 @@ async function handleUpdate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, - { - type: 'text', - name: 'permissions', - message: 'permissions', - required: false, - skipPrompt: true, - }, { type: 'text', name: 'profileId', @@ -490,6 +490,7 @@ async function handleUpdate(argv: Partial>, prompter: In }, data: { actorId: cleanedData.actorId, + capabilities: cleanedData.capabilities, createdBy: cleanedData.createdBy, entityId: cleanedData.entityId, granted: cleanedData.granted, @@ -501,12 +502,12 @@ async function handleUpdate(argv: Partial>, prompter: In isExternal: cleanedData.isExternal, isOwner: cleanedData.isOwner, isReadOnly: cleanedData.isReadOnly, - permissions: cleanedData.permissions, profileId: cleanedData.profileId, updatedBy: cleanedData.updatedBy, }, select: { actorId: true, + capabilities: true, createdAt: true, createdBy: true, entityId: true, @@ -520,7 +521,6 @@ async function handleUpdate(argv: Partial>, prompter: In isExternal: true, isOwner: true, isReadOnly: true, - permissions: true, profileId: true, updatedAt: true, updatedBy: true, diff --git a/sdk/constructive-cli/src/admin/cli/commands/org-permissions-get-by-mask.ts b/sdk/constructive-cli/src/admin/cli/commands/org-permissions-get-by-mask.ts deleted file mode 100644 index c91c50e552..0000000000 --- a/sdk/constructive-cli/src/admin/cli/commands/org-permissions-get-by-mask.ts +++ /dev/null @@ -1,66 +0,0 @@ -/** - * CLI command for query orgPermissionsGetByMask - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ -import { CLIOptions, Inquirerer } from 'inquirerer'; -import { getClient } from '../executor'; -import { buildSelectFromPaths } from '../utils'; -import type { OrgPermissionsGetByMaskVariables } from '../../orm/query'; -import type { OrgPermissionConnectionSelect } from '../../orm/input-types'; -export default async ( - argv: Partial>, - prompter: Inquirerer, - _options: CLIOptions -) => { - try { - if (argv.help || argv.h) { - console.log( - 'org-permissions-get-by-mask - Reads and enables pagination through a set of `OrgPermission`.\n\nUsage: org-permissions-get-by-mask [OPTIONS]\n' - ); - process.exit(0); - } - const answers = await prompter.prompt(argv, [ - { - type: 'text', - name: 'after', - message: 'Read all values in the set after (below) this cursor.', - }, - { - type: 'text', - name: 'first', - message: 'Only read the first `n` values of the set.', - }, - { - type: 'text', - name: 'mask', - message: 'mask', - }, - { - type: 'text', - name: 'offset', - message: - 'Skip the first `n` values from our `after` cursor, an alternative to cursor\nbased pagination. May not be used with `last`.', - }, - ]); - const client = getClient(); - const selectFields = buildSelectFromPaths((argv.select as string) ?? ''); - const result = await client.query - .orgPermissionsGetByMask( - answers as unknown as OrgPermissionsGetByMaskVariables, - { - select: selectFields, - } as unknown as { - select: OrgPermissionConnectionSelect; - } - ) - .execute(); - console.log(JSON.stringify(result, null, 2)); - } catch (error) { - console.error('Failed: orgPermissionsGetByMask'); - if (error instanceof Error) { - console.error(error.message); - } - process.exit(1); - } -}; diff --git a/sdk/constructive-cli/src/admin/cli/commands/org-permissions-get-mask-by-names.ts b/sdk/constructive-cli/src/admin/cli/commands/org-permissions-get-mask-by-names.ts deleted file mode 100644 index 643b680962..0000000000 --- a/sdk/constructive-cli/src/admin/cli/commands/org-permissions-get-mask-by-names.ts +++ /dev/null @@ -1,40 +0,0 @@ -/** - * CLI command for query orgPermissionsGetMaskByNames - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ -import { CLIOptions, Inquirerer } from 'inquirerer'; -import { getClient } from '../executor'; -import type { OrgPermissionsGetMaskByNamesVariables } from '../../orm/query'; -export default async ( - argv: Partial>, - prompter: Inquirerer, - _options: CLIOptions -) => { - try { - if (argv.help || argv.h) { - console.log( - 'org-permissions-get-mask-by-names - orgPermissionsGetMaskByNames\n\nUsage: org-permissions-get-mask-by-names [OPTIONS]\n' - ); - process.exit(0); - } - const answers = await prompter.prompt(argv, [ - { - type: 'text', - name: 'names', - message: 'names', - }, - ]); - const client = getClient(); - const result = await client.query - .orgPermissionsGetMaskByNames(answers as unknown as OrgPermissionsGetMaskByNamesVariables) - .execute(); - console.log(JSON.stringify(result, null, 2)); - } catch (error) { - console.error('Failed: orgPermissionsGetMaskByNames'); - if (error instanceof Error) { - console.error(error.message); - } - process.exit(1); - } -}; diff --git a/sdk/constructive-cli/src/admin/cli/commands/org-permissions-get-padded-mask.ts b/sdk/constructive-cli/src/admin/cli/commands/org-permissions-get-padded-mask.ts deleted file mode 100644 index 1963857d28..0000000000 --- a/sdk/constructive-cli/src/admin/cli/commands/org-permissions-get-padded-mask.ts +++ /dev/null @@ -1,40 +0,0 @@ -/** - * CLI command for query orgPermissionsGetPaddedMask - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ -import { CLIOptions, Inquirerer } from 'inquirerer'; -import { getClient } from '../executor'; -import type { OrgPermissionsGetPaddedMaskVariables } from '../../orm/query'; -export default async ( - argv: Partial>, - prompter: Inquirerer, - _options: CLIOptions -) => { - try { - if (argv.help || argv.h) { - console.log( - 'org-permissions-get-padded-mask - orgPermissionsGetPaddedMask\n\nUsage: org-permissions-get-padded-mask [OPTIONS]\n' - ); - process.exit(0); - } - const answers = await prompter.prompt(argv, [ - { - type: 'text', - name: 'mask', - message: 'mask', - }, - ]); - const client = getClient(); - const result = await client.query - .orgPermissionsGetPaddedMask(answers as unknown as OrgPermissionsGetPaddedMaskVariables) - .execute(); - console.log(JSON.stringify(result, null, 2)); - } catch (error) { - console.error('Failed: orgPermissionsGetPaddedMask'); - 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 c5a36159a7..29954ce8ff 100644 --- a/sdk/constructive-cli/src/admin/orm/README.md +++ b/sdk/constructive-cli/src/admin/orm/README.md @@ -22,18 +22,18 @@ const db = createClient({ | Model | Operations | |-------|------------| | `appAdminGrant` | findMany, findOne, create, update, delete | +| `appCapabilityDefaultCapability` | findMany, findOne, create, update, delete | +| `appCapabilityDefaultGrant` | findMany, findOne, create, update, delete | | `appClaimedInvite` | findMany, findOne, create, update, delete | | `appGrant` | findMany, findOne, create, update, delete | | `appInvite` | findMany, findOne, create, update, delete | | `appMembership` | findMany, findOne, create, update, delete | | `appMembershipDefault` | findMany, findOne, create, update, delete | | `appOwnerGrant` | findMany, findOne, create, update, delete | -| `appPermission` | findMany, findOne, create, update, delete | -| `appPermissionDefault` | findMany, findOne, create, update, delete | -| `appPermissionDefaultGrant` | findMany, findOne, create, update, delete | -| `appPermissionDefaultPermission` | findMany, findOne, create, update, delete | | `membershipType` | findMany, findOne, create, update, delete | | `orgAdminGrant` | findMany, findOne, create, update, delete | +| `orgCapabilityDefaultCapability` | findMany, findOne, create, update, delete | +| `orgCapabilityDefaultGrant` | findMany, findOne, create, update, delete | | `orgChartEdge` | findMany, findOne, create, update, delete | | `orgChartEdgeGrant` | findMany, findOne, create, update, delete | | `orgClaimedInvite` | findMany, findOne, create, update, delete | @@ -47,10 +47,6 @@ const db = createClient({ | `orgMembershipDefault` | findMany, findOne, create, update, delete | | `orgMembershipSetting` | findMany, findOne, create, update, delete | | `orgOwnerGrant` | findMany, findOne, create, update, delete | -| `orgPermission` | findMany, findOne, create, update, delete | -| `orgPermissionDefault` | findMany, findOne, create, update, delete | -| `orgPermissionDefaultGrant` | findMany, findOne, create, update, delete | -| `orgPermissionDefaultPermission` | findMany, findOne, create, update, delete | ## Table Operations @@ -88,6 +84,72 @@ const updated = await db.appAdminGrant.update({ where: { id: '' }, data: { const deleted = await db.appAdminGrant.delete({ where: { id: '' } }).execute(); ``` +### `db.appCapabilityDefaultCapability` + +CRUD operations for AppCapabilityDefaultCapability records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `capabilityId` | UUID | Yes | +| `createdAt` | Datetime | No | +| `id` | UUID | No | +| `updatedAt` | Datetime | No | + +**Operations:** + +```typescript +// List all appCapabilityDefaultCapability records +const items = await db.appCapabilityDefaultCapability.findMany({ select: { capabilityId: true, createdAt: true, id: true, updatedAt: true } }).execute(); + +// Get one by id +const item = await db.appCapabilityDefaultCapability.findOne({ id: '', select: { capabilityId: true, createdAt: true, id: true, updatedAt: true } }).execute(); + +// Create +const created = await db.appCapabilityDefaultCapability.create({ data: { capabilityId: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.appCapabilityDefaultCapability.update({ where: { id: '' }, data: { capabilityId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.appCapabilityDefaultCapability.delete({ where: { id: '' } }).execute(); +``` + +### `db.appCapabilityDefaultGrant` + +CRUD operations for AppCapabilityDefaultGrant records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `capabilityId` | UUID | Yes | +| `createdAt` | Datetime | No | +| `grantorId` | UUID | Yes | +| `id` | UUID | No | +| `isGrant` | Boolean | Yes | +| `updatedAt` | Datetime | No | + +**Operations:** + +```typescript +// List all appCapabilityDefaultGrant records +const items = await db.appCapabilityDefaultGrant.findMany({ select: { capabilityId: true, createdAt: true, grantorId: true, id: true, isGrant: true, updatedAt: true } }).execute(); + +// Get one by id +const item = await db.appCapabilityDefaultGrant.findOne({ id: '', select: { capabilityId: true, createdAt: true, grantorId: true, id: true, isGrant: true, updatedAt: true } }).execute(); + +// Create +const created = await db.appCapabilityDefaultGrant.create({ data: { capabilityId: '', grantorId: '', isGrant: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.appCapabilityDefaultGrant.update({ where: { id: '' }, data: { capabilityId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.appCapabilityDefaultGrant.delete({ where: { id: '' } }).execute(); +``` + ### `db.appClaimedInvite` CRUD operations for AppClaimedInvite records. @@ -131,24 +193,24 @@ CRUD operations for AppGrant records. | Field | Type | Editable | |-------|------|----------| | `actorId` | UUID | Yes | +| `capabilities` | BitString | Yes | | `createdAt` | Datetime | No | | `grantorId` | UUID | Yes | | `id` | UUID | No | | `isGrant` | Boolean | Yes | -| `permissions` | BitString | Yes | | `updatedAt` | Datetime | No | **Operations:** ```typescript // List all appGrant records -const items = await db.appGrant.findMany({ select: { actorId: true, createdAt: true, grantorId: true, id: true, isGrant: true, permissions: true, updatedAt: true } }).execute(); +const items = await db.appGrant.findMany({ select: { actorId: true, capabilities: true, createdAt: true, grantorId: true, id: true, isGrant: true, updatedAt: true } }).execute(); // Get one by id -const item = await db.appGrant.findOne({ id: '', select: { actorId: true, createdAt: true, grantorId: true, id: true, isGrant: true, permissions: true, updatedAt: true } }).execute(); +const item = await db.appGrant.findOne({ id: '', select: { actorId: true, capabilities: true, createdAt: true, grantorId: true, id: true, isGrant: true, updatedAt: true } }).execute(); // Create -const created = await db.appGrant.create({ data: { actorId: '', grantorId: '', isGrant: '', permissions: '' }, select: { id: true } }).execute(); +const created = await db.appGrant.create({ data: { actorId: '', capabilities: '', grantorId: '', isGrant: '' }, select: { id: true } }).execute(); // Update const updated = await db.appGrant.update({ where: { id: '' }, data: { actorId: '' }, select: { id: true } }).execute(); @@ -209,6 +271,7 @@ CRUD operations for AppMembership records. | Field | Type | Editable | |-------|------|----------| | `actorId` | UUID | Yes | +| `capabilities` | BitString | Yes | | `createdAt` | Datetime | No | | `createdBy` | UUID | Yes | | `granted` | BitString | Yes | @@ -220,7 +283,6 @@ CRUD operations for AppMembership records. | `isDisabled` | Boolean | Yes | | `isOwner` | Boolean | Yes | | `isVerified` | Boolean | Yes | -| `permissions` | BitString | Yes | | `profileId` | UUID | Yes | | `updatedAt` | Datetime | No | | `updatedBy` | UUID | Yes | @@ -229,13 +291,13 @@ CRUD operations for AppMembership records. ```typescript // List all appMembership records -const items = await db.appMembership.findMany({ select: { actorId: true, createdAt: true, createdBy: true, granted: true, id: true, isActive: true, isAdmin: true, isApproved: true, isBanned: true, isDisabled: true, isOwner: true, isVerified: true, permissions: true, profileId: true, updatedAt: true, updatedBy: true } }).execute(); +const items = await db.appMembership.findMany({ select: { actorId: true, capabilities: true, createdAt: true, createdBy: true, granted: true, id: true, isActive: true, isAdmin: true, isApproved: true, isBanned: true, isDisabled: true, isOwner: true, isVerified: true, profileId: true, updatedAt: true, updatedBy: true } }).execute(); // Get one by id -const item = await db.appMembership.findOne({ id: '', select: { actorId: true, createdAt: true, createdBy: true, granted: true, id: true, isActive: true, isAdmin: true, isApproved: true, isBanned: true, isDisabled: true, isOwner: true, isVerified: true, permissions: true, profileId: true, updatedAt: true, updatedBy: true } }).execute(); +const item = await db.appMembership.findOne({ id: '', select: { actorId: true, capabilities: true, createdAt: true, createdBy: true, granted: true, id: true, isActive: true, isAdmin: true, isApproved: true, isBanned: true, isDisabled: true, isOwner: true, isVerified: true, profileId: true, updatedAt: true, updatedBy: true } }).execute(); // Create -const created = await db.appMembership.create({ data: { actorId: '', createdBy: '', granted: '', isActive: '', isAdmin: '', isApproved: '', isBanned: '', isDisabled: '', isOwner: '', isVerified: '', permissions: '', profileId: '', updatedBy: '' }, select: { id: true } }).execute(); +const created = await db.appMembership.create({ data: { actorId: '', capabilities: '', createdBy: '', granted: '', isActive: '', isAdmin: '', isApproved: '', isBanned: '', isDisabled: '', isOwner: '', isVerified: '', profileId: '', updatedBy: '' }, select: { id: true } }).execute(); // Update const updated = await db.appMembership.update({ where: { id: '' }, data: { actorId: '' }, select: { id: true } }).execute(); @@ -313,178 +375,117 @@ const updated = await db.appOwnerGrant.update({ where: { id: '' }, data: { const deleted = await db.appOwnerGrant.delete({ where: { id: '' } }).execute(); ``` -### `db.appPermission` +### `db.membershipType` -CRUD operations for AppPermission records. +CRUD operations for MembershipType records. **Fields:** | Field | Type | Editable | |-------|------|----------| -| `bitnum` | Int | Yes | -| `bitstr` | BitString | Yes | | `description` | String | Yes | -| `id` | UUID | No | +| `hasUsersTableEntry` | Boolean | Yes | +| `id` | Int | No | | `name` | String | Yes | +| `parentMembershipType` | Int | Yes | +| `scope` | String | Yes | **Operations:** ```typescript -// List all appPermission records -const items = await db.appPermission.findMany({ select: { bitnum: true, bitstr: true, description: true, id: true, name: true } }).execute(); - -// Get one by id -const item = await db.appPermission.findOne({ id: '', select: { bitnum: true, bitstr: true, description: true, id: true, name: true } }).execute(); - -// Create -const created = await db.appPermission.create({ data: { bitnum: '', bitstr: '', description: '', name: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.appPermission.update({ where: { id: '' }, data: { bitnum: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.appPermission.delete({ where: { id: '' } }).execute(); -``` - -### `db.appPermissionDefault` - -CRUD operations for AppPermissionDefault records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `permissions` | BitString | Yes | - -**Operations:** - -```typescript -// List all appPermissionDefault records -const items = await db.appPermissionDefault.findMany({ select: { id: true, permissions: true } }).execute(); +// List all membershipType records +const items = await db.membershipType.findMany({ select: { description: true, hasUsersTableEntry: true, id: true, name: true, parentMembershipType: true, scope: true } }).execute(); // Get one by id -const item = await db.appPermissionDefault.findOne({ id: '', select: { id: true, permissions: true } }).execute(); +const item = await db.membershipType.findOne({ id: '', select: { description: true, hasUsersTableEntry: true, id: true, name: true, parentMembershipType: true, scope: true } }).execute(); // Create -const created = await db.appPermissionDefault.create({ data: { permissions: '' }, select: { id: true } }).execute(); +const created = await db.membershipType.create({ data: { description: '', hasUsersTableEntry: '', name: '', parentMembershipType: '', scope: '' }, select: { id: true } }).execute(); // Update -const updated = await db.appPermissionDefault.update({ where: { id: '' }, data: { permissions: '' }, select: { id: true } }).execute(); +const updated = await db.membershipType.update({ where: { id: '' }, data: { description: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.appPermissionDefault.delete({ where: { id: '' } }).execute(); +const deleted = await db.membershipType.delete({ where: { id: '' } }).execute(); ``` -### `db.appPermissionDefaultGrant` +### `db.orgAdminGrant` -CRUD operations for AppPermissionDefaultGrant records. +CRUD operations for OrgAdminGrant records. **Fields:** | Field | Type | Editable | |-------|------|----------| +| `actorId` | UUID | Yes | | `createdAt` | Datetime | No | +| `entityId` | UUID | Yes | | `grantorId` | UUID | Yes | | `id` | UUID | No | | `isGrant` | Boolean | Yes | -| `permissionId` | UUID | Yes | | `updatedAt` | Datetime | No | **Operations:** ```typescript -// List all appPermissionDefaultGrant records -const items = await db.appPermissionDefaultGrant.findMany({ select: { createdAt: true, grantorId: true, id: true, isGrant: true, permissionId: true, updatedAt: true } }).execute(); +// List all orgAdminGrant records +const items = await db.orgAdminGrant.findMany({ select: { actorId: true, createdAt: true, entityId: true, grantorId: true, id: true, isGrant: true, updatedAt: true } }).execute(); // Get one by id -const item = await db.appPermissionDefaultGrant.findOne({ id: '', select: { createdAt: true, grantorId: true, id: true, isGrant: true, permissionId: true, updatedAt: true } }).execute(); +const item = await db.orgAdminGrant.findOne({ id: '', select: { actorId: true, createdAt: true, entityId: true, grantorId: true, id: true, isGrant: true, updatedAt: true } }).execute(); // Create -const created = await db.appPermissionDefaultGrant.create({ data: { grantorId: '', isGrant: '', permissionId: '' }, select: { id: true } }).execute(); +const created = await db.orgAdminGrant.create({ data: { actorId: '', entityId: '', grantorId: '', isGrant: '' }, select: { id: true } }).execute(); // Update -const updated = await db.appPermissionDefaultGrant.update({ where: { id: '' }, data: { grantorId: '' }, select: { id: true } }).execute(); +const updated = await db.orgAdminGrant.update({ where: { id: '' }, data: { actorId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.appPermissionDefaultGrant.delete({ where: { id: '' } }).execute(); +const deleted = await db.orgAdminGrant.delete({ where: { id: '' } }).execute(); ``` -### `db.appPermissionDefaultPermission` +### `db.orgCapabilityDefaultCapability` -CRUD operations for AppPermissionDefaultPermission records. +CRUD operations for OrgCapabilityDefaultCapability records. **Fields:** | Field | Type | Editable | |-------|------|----------| +| `capabilityId` | UUID | Yes | | `createdAt` | Datetime | No | +| `entityId` | UUID | Yes | | `id` | UUID | No | -| `permissionId` | UUID | Yes | | `updatedAt` | Datetime | No | **Operations:** ```typescript -// List all appPermissionDefaultPermission records -const items = await db.appPermissionDefaultPermission.findMany({ select: { createdAt: true, id: true, permissionId: true, updatedAt: true } }).execute(); - -// Get one by id -const item = await db.appPermissionDefaultPermission.findOne({ id: '', select: { createdAt: true, id: true, permissionId: true, updatedAt: true } }).execute(); - -// Create -const created = await db.appPermissionDefaultPermission.create({ data: { permissionId: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.appPermissionDefaultPermission.update({ where: { id: '' }, data: { permissionId: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.appPermissionDefaultPermission.delete({ where: { id: '' } }).execute(); -``` - -### `db.membershipType` - -CRUD operations for MembershipType records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `description` | String | Yes | -| `hasUsersTableEntry` | Boolean | Yes | -| `id` | Int | No | -| `name` | String | Yes | -| `parentMembershipType` | Int | Yes | -| `scope` | String | Yes | - -**Operations:** - -```typescript -// List all membershipType records -const items = await db.membershipType.findMany({ select: { description: true, hasUsersTableEntry: true, id: true, name: true, parentMembershipType: true, scope: true } }).execute(); +// List all orgCapabilityDefaultCapability records +const items = await db.orgCapabilityDefaultCapability.findMany({ select: { capabilityId: true, createdAt: true, entityId: true, id: true, updatedAt: true } }).execute(); // Get one by id -const item = await db.membershipType.findOne({ id: '', select: { description: true, hasUsersTableEntry: true, id: true, name: true, parentMembershipType: true, scope: true } }).execute(); +const item = await db.orgCapabilityDefaultCapability.findOne({ id: '', select: { capabilityId: true, createdAt: true, entityId: true, id: true, updatedAt: true } }).execute(); // Create -const created = await db.membershipType.create({ data: { description: '', hasUsersTableEntry: '', name: '', parentMembershipType: '', scope: '' }, select: { id: true } }).execute(); +const created = await db.orgCapabilityDefaultCapability.create({ data: { capabilityId: '', entityId: '' }, select: { id: true } }).execute(); // Update -const updated = await db.membershipType.update({ where: { id: '' }, data: { description: '' }, select: { id: true } }).execute(); +const updated = await db.orgCapabilityDefaultCapability.update({ where: { id: '' }, data: { capabilityId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.membershipType.delete({ where: { id: '' } }).execute(); +const deleted = await db.orgCapabilityDefaultCapability.delete({ where: { id: '' } }).execute(); ``` -### `db.orgAdminGrant` +### `db.orgCapabilityDefaultGrant` -CRUD operations for OrgAdminGrant records. +CRUD operations for OrgCapabilityDefaultGrant records. **Fields:** | Field | Type | Editable | |-------|------|----------| -| `actorId` | UUID | Yes | +| `capabilityId` | UUID | Yes | | `createdAt` | Datetime | No | | `entityId` | UUID | Yes | | `grantorId` | UUID | Yes | @@ -495,20 +496,20 @@ CRUD operations for OrgAdminGrant records. **Operations:** ```typescript -// List all orgAdminGrant records -const items = await db.orgAdminGrant.findMany({ select: { actorId: true, createdAt: true, entityId: true, grantorId: true, id: true, isGrant: true, updatedAt: true } }).execute(); +// List all orgCapabilityDefaultGrant records +const items = await db.orgCapabilityDefaultGrant.findMany({ select: { capabilityId: true, createdAt: true, entityId: true, grantorId: true, id: true, isGrant: true, updatedAt: true } }).execute(); // Get one by id -const item = await db.orgAdminGrant.findOne({ id: '', select: { actorId: true, createdAt: true, entityId: true, grantorId: true, id: true, isGrant: true, updatedAt: true } }).execute(); +const item = await db.orgCapabilityDefaultGrant.findOne({ id: '', select: { capabilityId: true, createdAt: true, entityId: true, grantorId: true, id: true, isGrant: true, updatedAt: true } }).execute(); // Create -const created = await db.orgAdminGrant.create({ data: { actorId: '', entityId: '', grantorId: '', isGrant: '' }, select: { id: true } }).execute(); +const created = await db.orgCapabilityDefaultGrant.create({ data: { capabilityId: '', entityId: '', grantorId: '', isGrant: '' }, select: { id: true } }).execute(); // Update -const updated = await db.orgAdminGrant.update({ where: { id: '' }, data: { actorId: '' }, select: { id: true } }).execute(); +const updated = await db.orgCapabilityDefaultGrant.update({ where: { id: '' }, data: { capabilityId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.orgAdminGrant.delete({ where: { id: '' } }).execute(); +const deleted = await db.orgCapabilityDefaultGrant.delete({ where: { id: '' } }).execute(); ``` ### `db.orgChartEdge` @@ -688,25 +689,25 @@ CRUD operations for OrgGrant records. | Field | Type | Editable | |-------|------|----------| | `actorId` | UUID | Yes | +| `capabilities` | BitString | Yes | | `createdAt` | Datetime | No | | `entityId` | UUID | Yes | | `grantorId` | UUID | Yes | | `id` | UUID | No | | `isGrant` | Boolean | Yes | -| `permissions` | BitString | Yes | | `updatedAt` | Datetime | No | **Operations:** ```typescript // List all orgGrant records -const items = await db.orgGrant.findMany({ select: { actorId: true, createdAt: true, entityId: true, grantorId: true, id: true, isGrant: true, permissions: true, updatedAt: true } }).execute(); +const items = await db.orgGrant.findMany({ select: { actorId: true, capabilities: true, createdAt: true, entityId: true, grantorId: true, id: true, isGrant: true, updatedAt: true } }).execute(); // Get one by id -const item = await db.orgGrant.findOne({ id: '', select: { actorId: true, createdAt: true, entityId: true, grantorId: true, id: true, isGrant: true, permissions: true, updatedAt: true } }).execute(); +const item = await db.orgGrant.findOne({ id: '', select: { actorId: true, capabilities: true, createdAt: true, entityId: true, grantorId: true, id: true, isGrant: true, updatedAt: true } }).execute(); // Create -const created = await db.orgGrant.create({ data: { actorId: '', entityId: '', grantorId: '', isGrant: '', permissions: '' }, select: { id: true } }).execute(); +const created = await db.orgGrant.create({ data: { actorId: '', capabilities: '', entityId: '', grantorId: '', isGrant: '' }, select: { id: true } }).execute(); // Update const updated = await db.orgGrant.update({ where: { id: '' }, data: { actorId: '' }, select: { id: true } }).execute(); @@ -841,6 +842,7 @@ CRUD operations for OrgMembership records. | Field | Type | Editable | |-------|------|----------| | `actorId` | UUID | Yes | +| `capabilities` | BitString | Yes | | `createdAt` | Datetime | No | | `createdBy` | UUID | Yes | | `entityId` | UUID | Yes | @@ -854,7 +856,6 @@ CRUD operations for OrgMembership records. | `isExternal` | Boolean | Yes | | `isOwner` | Boolean | Yes | | `isReadOnly` | Boolean | Yes | -| `permissions` | BitString | Yes | | `profileId` | UUID | Yes | | `updatedAt` | Datetime | No | | `updatedBy` | UUID | Yes | @@ -863,13 +864,13 @@ CRUD operations for OrgMembership records. ```typescript // List all orgMembership records -const items = await db.orgMembership.findMany({ select: { actorId: true, createdAt: true, createdBy: true, entityId: true, granted: true, id: true, isActive: true, isAdmin: true, isApproved: true, isBanned: true, isDisabled: true, isExternal: true, isOwner: true, isReadOnly: true, permissions: true, profileId: true, updatedAt: true, updatedBy: true } }).execute(); +const items = await db.orgMembership.findMany({ select: { actorId: true, capabilities: true, createdAt: true, createdBy: true, entityId: true, granted: true, id: true, isActive: true, isAdmin: true, isApproved: true, isBanned: true, isDisabled: true, isExternal: true, isOwner: true, isReadOnly: true, profileId: true, updatedAt: true, updatedBy: true } }).execute(); // Get one by id -const item = await db.orgMembership.findOne({ id: '', select: { actorId: true, createdAt: true, createdBy: true, entityId: true, granted: true, id: true, isActive: true, isAdmin: true, isApproved: true, isBanned: true, isDisabled: true, isExternal: true, isOwner: true, isReadOnly: true, permissions: true, profileId: true, updatedAt: true, updatedBy: true } }).execute(); +const item = await db.orgMembership.findOne({ id: '', select: { actorId: true, capabilities: true, createdAt: true, createdBy: true, entityId: true, granted: true, id: true, isActive: true, isAdmin: true, isApproved: true, isBanned: true, isDisabled: true, isExternal: true, isOwner: true, isReadOnly: true, profileId: true, updatedAt: true, updatedBy: true } }).execute(); // Create -const created = await db.orgMembership.create({ data: { actorId: '', createdBy: '', entityId: '', granted: '', isActive: '', isAdmin: '', isApproved: '', isBanned: '', isDisabled: '', isExternal: '', isOwner: '', isReadOnly: '', permissions: '', profileId: '', updatedBy: '' }, select: { id: true } }).execute(); +const created = await db.orgMembership.create({ data: { actorId: '', capabilities: '', createdBy: '', entityId: '', granted: '', isActive: '', isAdmin: '', isApproved: '', isBanned: '', isDisabled: '', isExternal: '', isOwner: '', isReadOnly: '', profileId: '', updatedBy: '' }, select: { id: true } }).execute(); // Update const updated = await db.orgMembership.update({ where: { id: '' }, data: { actorId: '' }, select: { id: true } }).execute(); @@ -990,203 +991,8 @@ const updated = await db.orgOwnerGrant.update({ where: { id: '' }, data: { const deleted = await db.orgOwnerGrant.delete({ where: { id: '' } }).execute(); ``` -### `db.orgPermission` - -CRUD operations for OrgPermission records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `bitnum` | Int | Yes | -| `bitstr` | BitString | Yes | -| `description` | String | Yes | -| `id` | UUID | No | -| `name` | String | Yes | - -**Operations:** - -```typescript -// List all orgPermission records -const items = await db.orgPermission.findMany({ select: { bitnum: true, bitstr: true, description: true, id: true, name: true } }).execute(); - -// Get one by id -const item = await db.orgPermission.findOne({ id: '', select: { bitnum: true, bitstr: true, description: true, id: true, name: true } }).execute(); - -// Create -const created = await db.orgPermission.create({ data: { bitnum: '', bitstr: '', description: '', name: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.orgPermission.update({ where: { id: '' }, data: { bitnum: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.orgPermission.delete({ where: { id: '' } }).execute(); -``` - -### `db.orgPermissionDefault` - -CRUD operations for OrgPermissionDefault records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `entityId` | UUID | Yes | -| `id` | UUID | No | -| `permissions` | BitString | Yes | - -**Operations:** - -```typescript -// List all orgPermissionDefault records -const items = await db.orgPermissionDefault.findMany({ select: { entityId: true, id: true, permissions: true } }).execute(); - -// Get one by id -const item = await db.orgPermissionDefault.findOne({ id: '', select: { entityId: true, id: true, permissions: true } }).execute(); - -// Create -const created = await db.orgPermissionDefault.create({ data: { entityId: '', permissions: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.orgPermissionDefault.update({ where: { id: '' }, data: { entityId: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.orgPermissionDefault.delete({ where: { id: '' } }).execute(); -``` - -### `db.orgPermissionDefaultGrant` - -CRUD operations for OrgPermissionDefaultGrant records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `createdAt` | Datetime | No | -| `entityId` | UUID | Yes | -| `grantorId` | UUID | Yes | -| `id` | UUID | No | -| `isGrant` | Boolean | Yes | -| `permissionId` | UUID | Yes | -| `updatedAt` | Datetime | No | - -**Operations:** - -```typescript -// List all orgPermissionDefaultGrant records -const items = await db.orgPermissionDefaultGrant.findMany({ select: { createdAt: true, entityId: true, grantorId: true, id: true, isGrant: true, permissionId: true, updatedAt: true } }).execute(); - -// Get one by id -const item = await db.orgPermissionDefaultGrant.findOne({ id: '', select: { createdAt: true, entityId: true, grantorId: true, id: true, isGrant: true, permissionId: true, updatedAt: true } }).execute(); - -// Create -const created = await db.orgPermissionDefaultGrant.create({ data: { entityId: '', grantorId: '', isGrant: '', permissionId: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.orgPermissionDefaultGrant.update({ where: { id: '' }, data: { entityId: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.orgPermissionDefaultGrant.delete({ where: { id: '' } }).execute(); -``` - -### `db.orgPermissionDefaultPermission` - -CRUD operations for OrgPermissionDefaultPermission records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `createdAt` | Datetime | No | -| `entityId` | UUID | Yes | -| `id` | UUID | No | -| `permissionId` | UUID | Yes | -| `updatedAt` | Datetime | No | - -**Operations:** - -```typescript -// List all orgPermissionDefaultPermission records -const items = await db.orgPermissionDefaultPermission.findMany({ select: { createdAt: true, entityId: true, id: true, permissionId: true, updatedAt: true } }).execute(); - -// Get one by id -const item = await db.orgPermissionDefaultPermission.findOne({ id: '', select: { createdAt: true, entityId: true, id: true, permissionId: true, updatedAt: true } }).execute(); - -// Create -const created = await db.orgPermissionDefaultPermission.create({ data: { entityId: '', permissionId: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.orgPermissionDefaultPermission.update({ where: { id: '' }, data: { entityId: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.orgPermissionDefaultPermission.delete({ where: { id: '' } }).execute(); -``` - ## Custom Operations -### `db.query.appPermissionsGetByMask` - -Reads and enables pagination through a set of `AppPermission`. - -- **Type:** query -- **Arguments:** - - | Argument | Type | - |----------|------| - | `after` | Cursor | - | `first` | Int | - | `mask` | BitString | - | `offset` | Int | - -```typescript -const result = await db.query.appPermissionsGetByMask({ after: '', first: '', mask: '', offset: '' }).execute(); -``` - -### `db.query.appPermissionsGetMask` - -appPermissionsGetMask - -- **Type:** query -- **Arguments:** - - | Argument | Type | - |----------|------| - | `ids` | [UUID] | - -```typescript -const result = await db.query.appPermissionsGetMask({ ids: '' }).execute(); -``` - -### `db.query.appPermissionsGetMaskByNames` - -appPermissionsGetMaskByNames - -- **Type:** query -- **Arguments:** - - | Argument | Type | - |----------|------| - | `names` | [String] | - -```typescript -const result = await db.query.appPermissionsGetMaskByNames({ names: '' }).execute(); -``` - -### `db.query.appPermissionsGetPaddedMask` - -appPermissionsGetPaddedMask - -- **Type:** query -- **Arguments:** - - | Argument | Type | - |----------|------| - | `mask` | BitString | - -```typescript -const result = await db.query.appPermissionsGetPaddedMask({ mask: '' }).execute(); -``` - ### `db.query.orgIsManagerOf` orgIsManagerOf @@ -1205,69 +1011,6 @@ orgIsManagerOf const result = await db.query.orgIsManagerOf({ managerId: '', maxDepth: '', targetEntityId: '', userId: '' }).execute(); ``` -### `db.query.orgPermissionsGetByMask` - -Reads and enables pagination through a set of `OrgPermission`. - -- **Type:** query -- **Arguments:** - - | Argument | Type | - |----------|------| - | `after` | Cursor | - | `first` | Int | - | `mask` | BitString | - | `offset` | Int | - -```typescript -const result = await db.query.orgPermissionsGetByMask({ after: '', first: '', mask: '', offset: '' }).execute(); -``` - -### `db.query.orgPermissionsGetMask` - -orgPermissionsGetMask - -- **Type:** query -- **Arguments:** - - | Argument | Type | - |----------|------| - | `ids` | [UUID] | - -```typescript -const result = await db.query.orgPermissionsGetMask({ ids: '' }).execute(); -``` - -### `db.query.orgPermissionsGetMaskByNames` - -orgPermissionsGetMaskByNames - -- **Type:** query -- **Arguments:** - - | Argument | Type | - |----------|------| - | `names` | [String] | - -```typescript -const result = await db.query.orgPermissionsGetMaskByNames({ names: '' }).execute(); -``` - -### `db.query.orgPermissionsGetPaddedMask` - -orgPermissionsGetPaddedMask - -- **Type:** query -- **Arguments:** - - | Argument | Type | - |----------|------| - | `mask` | BitString | - -```typescript -const result = await db.query.orgPermissionsGetPaddedMask({ mask: '' }).execute(); -``` - ### `db.mutation.provisionBucket` Provision an S3 bucket for a logical bucket in the database. diff --git a/sdk/constructive-cli/src/admin/orm/index.ts b/sdk/constructive-cli/src/admin/orm/index.ts index 5a87e5498e..91f3ff0c09 100644 --- a/sdk/constructive-cli/src/admin/orm/index.ts +++ b/sdk/constructive-cli/src/admin/orm/index.ts @@ -6,18 +6,18 @@ import { OrmClient } from './client'; import type { OrmClientConfig } from './client'; import { AppAdminGrantModel } from './models/appAdminGrant'; +import { AppCapabilityDefaultCapabilityModel } from './models/appCapabilityDefaultCapability'; +import { AppCapabilityDefaultGrantModel } from './models/appCapabilityDefaultGrant'; import { AppClaimedInviteModel } from './models/appClaimedInvite'; import { AppGrantModel } from './models/appGrant'; import { AppInviteModel } from './models/appInvite'; import { AppMembershipModel } from './models/appMembership'; import { AppMembershipDefaultModel } from './models/appMembershipDefault'; import { AppOwnerGrantModel } from './models/appOwnerGrant'; -import { AppPermissionModel } from './models/appPermission'; -import { AppPermissionDefaultModel } from './models/appPermissionDefault'; -import { AppPermissionDefaultGrantModel } from './models/appPermissionDefaultGrant'; -import { AppPermissionDefaultPermissionModel } from './models/appPermissionDefaultPermission'; import { MembershipTypeModel } from './models/membershipType'; import { OrgAdminGrantModel } from './models/orgAdminGrant'; +import { OrgCapabilityDefaultCapabilityModel } from './models/orgCapabilityDefaultCapability'; +import { OrgCapabilityDefaultGrantModel } from './models/orgCapabilityDefaultGrant'; import { OrgChartEdgeModel } from './models/orgChartEdge'; import { OrgChartEdgeGrantModel } from './models/orgChartEdgeGrant'; import { OrgClaimedInviteModel } from './models/orgClaimedInvite'; @@ -31,10 +31,6 @@ import { OrgMembershipModel } from './models/orgMembership'; import { OrgMembershipDefaultModel } from './models/orgMembershipDefault'; import { OrgMembershipSettingModel } from './models/orgMembershipSetting'; import { OrgOwnerGrantModel } from './models/orgOwnerGrant'; -import { OrgPermissionModel } from './models/orgPermission'; -import { OrgPermissionDefaultModel } from './models/orgPermissionDefault'; -import { OrgPermissionDefaultGrantModel } from './models/orgPermissionDefaultGrant'; -import { OrgPermissionDefaultPermissionModel } from './models/orgPermissionDefaultPermission'; import { createQueryOperations } from './query'; import { createMutationOperations } from './mutation'; export type { OrmClientConfig, QueryResult, GraphQLError, GraphQLAdapter } from './client'; @@ -71,18 +67,18 @@ export function createClient(config: OrmClientConfig) { const client = new OrmClient(config); return { appAdminGrant: new AppAdminGrantModel(client), + appCapabilityDefaultCapability: new AppCapabilityDefaultCapabilityModel(client), + appCapabilityDefaultGrant: new AppCapabilityDefaultGrantModel(client), appClaimedInvite: new AppClaimedInviteModel(client), appGrant: new AppGrantModel(client), appInvite: new AppInviteModel(client), appMembership: new AppMembershipModel(client), appMembershipDefault: new AppMembershipDefaultModel(client), appOwnerGrant: new AppOwnerGrantModel(client), - appPermission: new AppPermissionModel(client), - appPermissionDefault: new AppPermissionDefaultModel(client), - appPermissionDefaultGrant: new AppPermissionDefaultGrantModel(client), - appPermissionDefaultPermission: new AppPermissionDefaultPermissionModel(client), membershipType: new MembershipTypeModel(client), orgAdminGrant: new OrgAdminGrantModel(client), + orgCapabilityDefaultCapability: new OrgCapabilityDefaultCapabilityModel(client), + orgCapabilityDefaultGrant: new OrgCapabilityDefaultGrantModel(client), orgChartEdge: new OrgChartEdgeModel(client), orgChartEdgeGrant: new OrgChartEdgeGrantModel(client), orgClaimedInvite: new OrgClaimedInviteModel(client), @@ -96,10 +92,6 @@ export function createClient(config: OrmClientConfig) { orgMembershipDefault: new OrgMembershipDefaultModel(client), orgMembershipSetting: new OrgMembershipSettingModel(client), orgOwnerGrant: new OrgOwnerGrantModel(client), - orgPermission: new OrgPermissionModel(client), - orgPermissionDefault: new OrgPermissionDefaultModel(client), - orgPermissionDefaultGrant: new OrgPermissionDefaultGrantModel(client), - orgPermissionDefaultPermission: new OrgPermissionDefaultPermissionModel(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 8942c14919..25b8b53218 100644 --- a/sdk/constructive-cli/src/admin/orm/input-types.ts +++ b/sdk/constructive-cli/src/admin/orm/input-types.ts @@ -245,6 +245,25 @@ export interface AppAdminGrant { isGrant?: boolean | null; updatedAt?: string | null; } +/** Join table linking capability defaults to individual capabilities; recompute trigger rebuilds the defaults bitmask */ +export interface AppCapabilityDefaultCapability { + /** References the capability included in the defaults bundle */ + capabilityId?: string | null; + createdAt?: string | null; + id: string; + updatedAt?: string | null; +} +/** Audit log of capability additions and removals from the defaults bitmask */ +export interface AppCapabilityDefaultGrant { + /** References the capability being added to or removed from defaults */ + capabilityId?: string | null; + createdAt?: string | null; + grantorId?: string | null; + id: string; + /** True to add the capability to defaults, false to remove it */ + isGrant?: boolean | null; + updatedAt?: string | null; +} /** Records of successfully claimed invitations, linking senders to receivers */ export interface AppClaimedInvite { createdAt?: string | null; @@ -257,17 +276,17 @@ export interface AppClaimedInvite { senderId?: string | null; updatedAt?: string | null; } -/** Records of individual permission grants and revocations for members via bitmask */ +/** Records of individual capability grants and revocations for members via bitmask */ export interface AppGrant { - /** The member receiving or losing the permission grant; NULL if user was deleted */ + /** The member receiving or losing the capability grant; NULL if user was deleted */ actorId?: string | null; + /** Bitmask of capabilities being granted or revoked */ + capabilities?: string | null; createdAt?: string | null; grantorId?: string | null; id: string; - /** True to grant the permissions, false to revoke them */ + /** True to grant the capabilities, false to revoke them */ isGrant?: boolean | null; - /** Bitmask of permissions being granted or revoked */ - permissions?: string | null; updatedAt?: string | null; } /** Invitation records sent to prospective members via email, with token-based redemption and expiration */ @@ -300,13 +319,15 @@ export interface AppInvite { senderId?: string | null; updatedAt?: string | null; } -/** Tracks membership records linking actors to entities with permission bitmasks, ownership, and admin status */ +/** Tracks membership records linking actors to entities with capability bitmasks, ownership, and admin status */ export interface AppMembership { /** References the user who holds this membership */ actorId?: string | null; + /** Aggregated capability bitmask combining profile-based and directly granted capabilities */ + capabilities?: string | null; createdAt?: string | null; createdBy?: string | null; - /** Bitmask of permissions directly granted to this member (not from profiles) */ + /** Bitmask of capabilities directly granted to this member (not from profiles) */ granted?: string | null; id: string; /** Computed field indicating the membership is approved, verified, not banned, and not disabled */ @@ -323,8 +344,6 @@ export interface AppMembership { isOwner?: boolean | null; /** Whether this member has been verified (e.g. email confirmation) */ isVerified?: boolean | null; - /** Aggregated permission bitmask combining profile-based and directly granted permissions */ - permissions?: string | null; profileId?: string | null; updatedAt?: string | null; updatedBy?: string | null; @@ -352,43 +371,6 @@ export interface AppOwnerGrant { isGrant?: boolean | null; updatedAt?: string | null; } -/** Defines available permissions as named bits within a bitmask, used by the RBAC system for access control */ -export interface AppPermission { - /** Position of this permission in the bitmask (1-indexed), must be unique per permission set */ - bitnum?: number | null; - /** Pre-computed bitmask with only this permission bit set, used for bitwise OR/AND operations */ - bitstr?: string | null; - /** Human-readable description of what this permission allows */ - description?: string | null; - id: string; - /** Human-readable permission name (e.g. read, write, manage) */ - name?: string | null; -} -/** Stores the default permission bitmask assigned to new members upon joining */ -export interface AppPermissionDefault { - id: string; - /** Default permission bitmask applied to new members */ - permissions?: string | null; -} -/** Audit log of permission additions and removals from the defaults bitmask */ -export interface AppPermissionDefaultGrant { - createdAt?: string | null; - grantorId?: string | null; - id: string; - /** True to add the permission to defaults, false to remove it */ - isGrant?: boolean | null; - /** References the permission being added to or removed from defaults */ - permissionId?: string | null; - updatedAt?: string | null; -} -/** Join table linking permission defaults to individual permissions; recompute trigger rebuilds the defaults bitmask */ -export interface AppPermissionDefaultPermission { - createdAt?: string | null; - id: string; - /** References the permission included in the defaults bundle */ - permissionId?: string | null; - updatedAt?: string | null; -} /** Defines the different scopes of membership (e.g. App Member, Organization Member, Group Member) */ export interface MembershipType { /** Description of what this membership type represents */ @@ -417,6 +399,29 @@ export interface OrgAdminGrant { isGrant?: boolean | null; updatedAt?: string | null; } +/** Join table linking capability defaults to individual capabilities; recompute trigger rebuilds the defaults bitmask */ +export interface OrgCapabilityDefaultCapability { + /** References the capability included in the defaults bundle */ + capabilityId?: string | null; + createdAt?: string | null; + /** Scopes this default capability to a specific entity */ + entityId?: string | null; + id: string; + updatedAt?: string | null; +} +/** Audit log of capability additions and removals from the defaults bitmask */ +export interface OrgCapabilityDefaultGrant { + /** References the capability being added to or removed from defaults */ + capabilityId?: string | null; + createdAt?: string | null; + /** Scopes this audit entry to a specific entity */ + entityId?: string | null; + grantorId?: string | null; + id: string; + /** True to add the capability to defaults, false to remove it */ + isGrant?: boolean | null; + updatedAt?: string | null; +} /** Organizational chart edges defining parent-child reporting relationships between members within an entity */ export interface OrgChartEdge { /** User ID of the subordinate (employee) in this reporting relationship */ @@ -474,19 +479,19 @@ export interface OrgGetSubordinatesRecord { depth?: number | null; userId?: string | null; } -/** Records of individual permission grants and revocations for members via bitmask */ +/** Records of individual capability grants and revocations for members via bitmask */ export interface OrgGrant { - /** The member receiving or losing the permission grant; NULL if user was deleted */ + /** The member receiving or losing the capability grant; NULL if user was deleted */ actorId?: string | null; + /** Bitmask of capabilities being granted or revoked */ + capabilities?: string | null; createdAt?: string | null; - /** The entity (org or group) this permission grant applies to */ + /** The entity (org or group) this capability grant applies to */ entityId?: string | null; grantorId?: string | null; id: string; - /** True to grant the permissions, false to revoke them */ + /** True to grant the capabilities, false to revoke them */ isGrant?: boolean | null; - /** Bitmask of permissions being granted or revoked */ - permissions?: string | null; updatedAt?: string | null; } /** Invitation records sent to prospective members via email, with token-based redemption and expiration */ @@ -556,15 +561,17 @@ export interface OrgMemberProfile { title?: string | null; updatedAt?: string | null; } -/** Tracks membership records linking actors to entities with permission bitmasks, ownership, and admin status */ +/** Tracks membership records linking actors to entities with capability bitmasks, ownership, and admin status */ export interface OrgMembership { /** References the user who holds this membership */ actorId?: string | null; + /** Aggregated capability bitmask combining profile-based and directly granted capabilities */ + capabilities?: string | null; createdAt?: string | null; createdBy?: string | null; /** References the entity (org or group) this membership belongs to */ entityId?: string | null; - /** Bitmask of permissions directly granted to this member (not from profiles) */ + /** Bitmask of capabilities directly granted to this member (not from profiles) */ granted?: string | null; id: string; /** Computed field indicating the membership is approved, verified, not banned, and not disabled */ @@ -577,14 +584,12 @@ export interface OrgMembership { isBanned?: boolean | null; /** Whether this membership is temporarily disabled */ isDisabled?: boolean | null; - /** Whether this member is external (not a member of the parent scope). External members may have restricted permissions. */ + /** Whether this member is external (not a member of the parent scope). External members may have restricted capabilities. */ isExternal?: boolean | null; /** Whether the actor is the owner of this entity */ isOwner?: boolean | null; /** Whether this member has read-only access (blocks mutations when true) */ isReadOnly?: boolean | null; - /** Aggregated permission bitmask combining profile-based and directly granted permissions */ - permissions?: string | null; profileId?: string | null; updatedAt?: string | null; updatedBy?: string | null; @@ -618,7 +623,7 @@ export interface OrgMembershipSetting { /** References the entity these settings apply to */ entityId?: string | null; id: string; - /** Controls how profile assignment on invites is validated: strict (permission + subset check), permission_only (permission only), or subset_only (subset check only) */ + /** Controls how profile assignment on invites is validated: strict (capability + subset check), capability_only (capability only), or subset_only (subset check only) */ inviteProfileAssignmentMode?: string | 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; @@ -640,49 +645,6 @@ export interface OrgOwnerGrant { isGrant?: boolean | null; updatedAt?: string | null; } -/** Defines available permissions as named bits within a bitmask, used by the RBAC system for access control */ -export interface OrgPermission { - /** Position of this permission in the bitmask (1-indexed), must be unique per permission set */ - bitnum?: number | null; - /** Pre-computed bitmask with only this permission bit set, used for bitwise OR/AND operations */ - bitstr?: string | null; - /** Human-readable description of what this permission allows */ - description?: string | null; - id: string; - /** Human-readable permission name (e.g. read, write, manage) */ - name?: string | null; -} -/** Stores the default permission bitmask assigned to new members upon joining */ -export interface OrgPermissionDefault { - /** References the entity these default permissions apply to */ - entityId?: string | null; - id: string; - /** Default permission bitmask applied to new members */ - permissions?: string | null; -} -/** Audit log of permission additions and removals from the defaults bitmask */ -export interface OrgPermissionDefaultGrant { - createdAt?: string | null; - /** Scopes this audit entry to a specific entity */ - entityId?: string | null; - grantorId?: string | null; - id: string; - /** True to add the permission to defaults, false to remove it */ - isGrant?: boolean | null; - /** References the permission being added to or removed from defaults */ - permissionId?: string | null; - updatedAt?: string | null; -} -/** Join table linking permission defaults to individual permissions; recompute trigger rebuilds the defaults bitmask */ -export interface OrgPermissionDefaultPermission { - createdAt?: string | null; - /** Scopes this default permission to a specific entity */ - entityId?: string | null; - id: string; - /** References the permission included in the defaults bundle */ - permissionId?: string | null; - updatedAt?: string | null; -} // ============ Relation Helper Types ============ export interface ConnectionResult { nodes: T[]; @@ -697,25 +659,18 @@ export interface PageInfo { } // ============ Entity Relation Types ============ export interface AppAdminGrantRelations {} +export interface AppCapabilityDefaultCapabilityRelations {} +export interface AppCapabilityDefaultGrantRelations {} export interface AppClaimedInviteRelations {} export interface AppGrantRelations {} export interface AppInviteRelations {} export interface AppMembershipRelations {} export interface AppMembershipDefaultRelations {} export interface AppOwnerGrantRelations {} -export interface AppPermissionRelations { - appPermissionDefaultPermissionByPermissionId?: AppPermissionDefaultPermission | null; - appPermissionDefaultGrantsByPermissionId?: ConnectionResult; -} -export interface AppPermissionDefaultRelations {} -export interface AppPermissionDefaultGrantRelations { - permission?: AppPermission | null; -} -export interface AppPermissionDefaultPermissionRelations { - permission?: AppPermission | null; -} export interface MembershipTypeRelations {} export interface OrgAdminGrantRelations {} +export interface OrgCapabilityDefaultCapabilityRelations {} +export interface OrgCapabilityDefaultGrantRelations {} export interface OrgChartEdgeRelations {} export interface OrgChartEdgeGrantRelations {} export interface OrgClaimedInviteRelations {} @@ -733,19 +688,12 @@ export interface OrgMembershipRelations { export interface OrgMembershipDefaultRelations {} export interface OrgMembershipSettingRelations {} export interface OrgOwnerGrantRelations {} -export interface OrgPermissionRelations { - orgPermissionDefaultGrantsByPermissionId?: ConnectionResult; - orgPermissionDefaultPermissionsByPermissionId?: ConnectionResult; -} -export interface OrgPermissionDefaultRelations {} -export interface OrgPermissionDefaultGrantRelations { - permission?: OrgPermission | null; -} -export interface OrgPermissionDefaultPermissionRelations { - permission?: OrgPermission | null; -} // ============ Entity Types With Relations ============ export type AppAdminGrantWithRelations = AppAdminGrant & AppAdminGrantRelations; +export type AppCapabilityDefaultCapabilityWithRelations = AppCapabilityDefaultCapability & + AppCapabilityDefaultCapabilityRelations; +export type AppCapabilityDefaultGrantWithRelations = AppCapabilityDefaultGrant & + AppCapabilityDefaultGrantRelations; export type AppClaimedInviteWithRelations = AppClaimedInvite & AppClaimedInviteRelations; export type AppGrantWithRelations = AppGrant & AppGrantRelations; export type AppInviteWithRelations = AppInvite & AppInviteRelations; @@ -753,15 +701,12 @@ export type AppMembershipWithRelations = AppMembership & AppMembershipRelations; export type AppMembershipDefaultWithRelations = AppMembershipDefault & AppMembershipDefaultRelations; export type AppOwnerGrantWithRelations = AppOwnerGrant & AppOwnerGrantRelations; -export type AppPermissionWithRelations = AppPermission & AppPermissionRelations; -export type AppPermissionDefaultWithRelations = AppPermissionDefault & - AppPermissionDefaultRelations; -export type AppPermissionDefaultGrantWithRelations = AppPermissionDefaultGrant & - AppPermissionDefaultGrantRelations; -export type AppPermissionDefaultPermissionWithRelations = AppPermissionDefaultPermission & - AppPermissionDefaultPermissionRelations; export type MembershipTypeWithRelations = MembershipType & MembershipTypeRelations; export type OrgAdminGrantWithRelations = OrgAdminGrant & OrgAdminGrantRelations; +export type OrgCapabilityDefaultCapabilityWithRelations = OrgCapabilityDefaultCapability & + OrgCapabilityDefaultCapabilityRelations; +export type OrgCapabilityDefaultGrantWithRelations = OrgCapabilityDefaultGrant & + OrgCapabilityDefaultGrantRelations; export type OrgChartEdgeWithRelations = OrgChartEdge & OrgChartEdgeRelations; export type OrgChartEdgeGrantWithRelations = OrgChartEdgeGrant & OrgChartEdgeGrantRelations; export type OrgClaimedInviteWithRelations = OrgClaimedInvite & OrgClaimedInviteRelations; @@ -779,13 +724,6 @@ export type OrgMembershipDefaultWithRelations = OrgMembershipDefault & export type OrgMembershipSettingWithRelations = OrgMembershipSetting & OrgMembershipSettingRelations; export type OrgOwnerGrantWithRelations = OrgOwnerGrant & OrgOwnerGrantRelations; -export type OrgPermissionWithRelations = OrgPermission & OrgPermissionRelations; -export type OrgPermissionDefaultWithRelations = OrgPermissionDefault & - OrgPermissionDefaultRelations; -export type OrgPermissionDefaultGrantWithRelations = OrgPermissionDefaultGrant & - OrgPermissionDefaultGrantRelations; -export type OrgPermissionDefaultPermissionWithRelations = OrgPermissionDefaultPermission & - OrgPermissionDefaultPermissionRelations; // ============ Entity Select Types ============ export type AppAdminGrantSelect = { actorId?: boolean; @@ -795,6 +733,20 @@ export type AppAdminGrantSelect = { isGrant?: boolean; updatedAt?: boolean; }; +export type AppCapabilityDefaultCapabilitySelect = { + capabilityId?: boolean; + createdAt?: boolean; + id?: boolean; + updatedAt?: boolean; +}; +export type AppCapabilityDefaultGrantSelect = { + capabilityId?: boolean; + createdAt?: boolean; + grantorId?: boolean; + id?: boolean; + isGrant?: boolean; + updatedAt?: boolean; +}; export type AppClaimedInviteSelect = { createdAt?: boolean; data?: boolean; @@ -805,11 +757,11 @@ export type AppClaimedInviteSelect = { }; export type AppGrantSelect = { actorId?: boolean; + capabilities?: boolean; createdAt?: boolean; grantorId?: boolean; id?: boolean; isGrant?: boolean; - permissions?: boolean; updatedAt?: boolean; }; export type AppInviteSelect = { @@ -831,6 +783,7 @@ export type AppInviteSelect = { }; export type AppMembershipSelect = { actorId?: boolean; + capabilities?: boolean; createdAt?: boolean; createdBy?: boolean; granted?: boolean; @@ -842,7 +795,6 @@ export type AppMembershipSelect = { isDisabled?: boolean; isOwner?: boolean; isVerified?: boolean; - permissions?: boolean; profileId?: boolean; updatedAt?: boolean; updatedBy?: boolean; @@ -864,56 +816,32 @@ export type AppOwnerGrantSelect = { isGrant?: boolean; updatedAt?: boolean; }; -export type AppPermissionSelect = { - bitnum?: boolean; - bitstr?: boolean; +export type MembershipTypeSelect = { description?: boolean; + hasUsersTableEntry?: boolean; id?: boolean; name?: boolean; - appPermissionDefaultPermissionByPermissionId?: { - select: AppPermissionDefaultPermissionSelect; - }; - appPermissionDefaultGrantsByPermissionId?: { - select: AppPermissionDefaultGrantSelect; - first?: number; - filter?: AppPermissionDefaultGrantFilter; - orderBy?: AppPermissionDefaultGrantOrderBy[]; - }; -}; -export type AppPermissionDefaultSelect = { - id?: boolean; - permissions?: boolean; + parentMembershipType?: boolean; + scope?: boolean; }; -export type AppPermissionDefaultGrantSelect = { +export type OrgAdminGrantSelect = { + actorId?: boolean; createdAt?: boolean; + entityId?: boolean; grantorId?: boolean; id?: boolean; isGrant?: boolean; - permissionId?: boolean; updatedAt?: boolean; - permission?: { - select: AppPermissionSelect; - }; }; -export type AppPermissionDefaultPermissionSelect = { +export type OrgCapabilityDefaultCapabilitySelect = { + capabilityId?: boolean; createdAt?: boolean; + entityId?: boolean; id?: boolean; - permissionId?: boolean; updatedAt?: boolean; - permission?: { - select: AppPermissionSelect; - }; -}; -export type MembershipTypeSelect = { - description?: boolean; - hasUsersTableEntry?: boolean; - id?: boolean; - name?: boolean; - parentMembershipType?: boolean; - scope?: boolean; }; -export type OrgAdminGrantSelect = { - actorId?: boolean; +export type OrgCapabilityDefaultGrantSelect = { + capabilityId?: boolean; createdAt?: boolean; entityId?: boolean; grantorId?: boolean; @@ -961,12 +889,12 @@ export type OrgGetSubordinatesRecordSelect = { }; export type OrgGrantSelect = { actorId?: boolean; + capabilities?: boolean; createdAt?: boolean; entityId?: boolean; grantorId?: boolean; id?: boolean; isGrant?: boolean; - permissions?: boolean; updatedAt?: boolean; }; export type OrgInviteSelect = { @@ -1013,6 +941,7 @@ export type OrgMemberProfileSelect = { }; export type OrgMembershipSelect = { actorId?: boolean; + capabilities?: boolean; createdAt?: boolean; createdBy?: boolean; entityId?: boolean; @@ -1026,7 +955,6 @@ export type OrgMembershipSelect = { isExternal?: boolean; isOwner?: boolean; isReadOnly?: boolean; - permissions?: boolean; profileId?: boolean; updatedAt?: boolean; updatedBy?: boolean; @@ -1068,52 +996,6 @@ export type OrgOwnerGrantSelect = { isGrant?: boolean; updatedAt?: boolean; }; -export type OrgPermissionSelect = { - bitnum?: boolean; - bitstr?: boolean; - description?: boolean; - id?: boolean; - name?: boolean; - orgPermissionDefaultGrantsByPermissionId?: { - select: OrgPermissionDefaultGrantSelect; - first?: number; - filter?: OrgPermissionDefaultGrantFilter; - orderBy?: OrgPermissionDefaultGrantOrderBy[]; - }; - orgPermissionDefaultPermissionsByPermissionId?: { - select: OrgPermissionDefaultPermissionSelect; - first?: number; - filter?: OrgPermissionDefaultPermissionFilter; - orderBy?: OrgPermissionDefaultPermissionOrderBy[]; - }; -}; -export type OrgPermissionDefaultSelect = { - entityId?: boolean; - id?: boolean; - permissions?: boolean; -}; -export type OrgPermissionDefaultGrantSelect = { - createdAt?: boolean; - entityId?: boolean; - grantorId?: boolean; - id?: boolean; - isGrant?: boolean; - permissionId?: boolean; - updatedAt?: boolean; - permission?: { - select: OrgPermissionSelect; - }; -}; -export type OrgPermissionDefaultPermissionSelect = { - createdAt?: boolean; - entityId?: boolean; - id?: boolean; - permissionId?: boolean; - updatedAt?: boolean; - permission?: { - select: OrgPermissionSelect; - }; -}; // ============ Table Filter Types ============ export interface AppAdminGrantFilter { /** Filter by the object’s `actorId` field. */ @@ -1135,6 +1017,42 @@ export interface AppAdminGrantFilter { /** Filter by the object’s `updatedAt` field. */ updatedAt?: DatetimeFilter; } +export interface AppCapabilityDefaultCapabilityFilter { + /** Checks for all expressions in this list. */ + and?: AppCapabilityDefaultCapabilityFilter[]; + /** Filter by the object’s `capabilityId` field. */ + capabilityId?: UUIDFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Negates the expression. */ + not?: AppCapabilityDefaultCapabilityFilter; + /** Checks for any expressions in this list. */ + or?: AppCapabilityDefaultCapabilityFilter[]; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; +} +export interface AppCapabilityDefaultGrantFilter { + /** Checks for all expressions in this list. */ + and?: AppCapabilityDefaultGrantFilter[]; + /** Filter by the object’s `capabilityId` field. */ + capabilityId?: UUIDFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `grantorId` field. */ + grantorId?: UUIDFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `isGrant` field. */ + isGrant?: BooleanFilter; + /** Negates the expression. */ + not?: AppCapabilityDefaultGrantFilter; + /** Checks for any expressions in this list. */ + or?: AppCapabilityDefaultGrantFilter[]; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; +} export interface AppClaimedInviteFilter { /** Checks for all expressions in this list. */ and?: AppClaimedInviteFilter[]; @@ -1158,6 +1076,8 @@ export interface AppGrantFilter { actorId?: UUIDFilter; /** Checks for all expressions in this list. */ and?: AppGrantFilter[]; + /** Filter by the object’s `capabilities` field. */ + capabilities?: BitStringFilter; /** Filter by the object’s `createdAt` field. */ createdAt?: DatetimeFilter; /** Filter by the object’s `grantorId` field. */ @@ -1170,8 +1090,6 @@ export interface AppGrantFilter { not?: AppGrantFilter; /** Checks for any expressions in this list. */ or?: AppGrantFilter[]; - /** Filter by the object’s `permissions` field. */ - permissions?: BitStringFilter; /** Filter by the object’s `updatedAt` field. */ updatedAt?: DatetimeFilter; } @@ -1216,6 +1134,8 @@ export interface AppMembershipFilter { actorId?: UUIDFilter; /** Checks for all expressions in this list. */ and?: AppMembershipFilter[]; + /** Filter by the object’s `capabilities` field. */ + capabilities?: BitStringFilter; /** Filter by the object’s `createdAt` field. */ createdAt?: DatetimeFilter; /** Filter by the object’s `createdBy` field. */ @@ -1242,8 +1162,6 @@ export interface AppMembershipFilter { not?: AppMembershipFilter; /** Checks for any expressions in this list. */ or?: AppMembershipFilter[]; - /** Filter by the object’s `permissions` field. */ - permissions?: BitStringFilter; /** Filter by the object’s `profileId` field. */ profileId?: UUIDFilter; /** Filter by the object’s `updatedAt` field. */ @@ -1293,49 +1211,35 @@ export interface AppOwnerGrantFilter { /** Filter by the object’s `updatedAt` field. */ updatedAt?: DatetimeFilter; } -export interface AppPermissionFilter { +export interface MembershipTypeFilter { /** Checks for all expressions in this list. */ - and?: AppPermissionFilter[]; - /** Filter by the object’s `appPermissionDefaultGrantsByPermissionId` relation. */ - appPermissionDefaultGrantsByPermissionId?: AppPermissionToManyAppPermissionDefaultGrantFilter; - /** `appPermissionDefaultGrantsByPermissionId` exist. */ - appPermissionDefaultGrantsByPermissionIdExist?: boolean; - /** Filter by the object’s `appPermissionDefaultPermissionByPermissionId` relation. */ - appPermissionDefaultPermissionByPermissionId?: AppPermissionDefaultPermissionFilter; - /** A related `appPermissionDefaultPermissionByPermissionId` exists. */ - appPermissionDefaultPermissionByPermissionIdExists?: boolean; - /** Filter by the object’s `bitnum` field. */ - bitnum?: IntFilter; - /** Filter by the object’s `bitstr` field. */ - bitstr?: BitStringFilter; + and?: MembershipTypeFilter[]; /** Filter by the object’s `description` field. */ description?: StringFilter; + /** Filter by the object’s `hasUsersTableEntry` field. */ + hasUsersTableEntry?: BooleanFilter; /** Filter by the object’s `id` field. */ - id?: UUIDFilter; + id?: IntFilter; /** Filter by the object’s `name` field. */ name?: StringFilter; /** Negates the expression. */ - not?: AppPermissionFilter; - /** Checks for any expressions in this list. */ - or?: AppPermissionFilter[]; -} -export interface AppPermissionDefaultFilter { - /** Checks for all expressions in this list. */ - and?: AppPermissionDefaultFilter[]; - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Negates the expression. */ - not?: AppPermissionDefaultFilter; + not?: MembershipTypeFilter; /** Checks for any expressions in this list. */ - or?: AppPermissionDefaultFilter[]; - /** Filter by the object’s `permissions` field. */ - permissions?: BitStringFilter; + or?: MembershipTypeFilter[]; + /** Filter by the object’s `parentMembershipType` field. */ + parentMembershipType?: IntFilter; + /** Filter by the object’s `scope` field. */ + scope?: StringFilter; } -export interface AppPermissionDefaultGrantFilter { +export interface OrgAdminGrantFilter { + /** Filter by the object’s `actorId` field. */ + actorId?: UUIDFilter; /** Checks for all expressions in this list. */ - and?: AppPermissionDefaultGrantFilter[]; + and?: OrgAdminGrantFilter[]; /** Filter by the object’s `createdAt` field. */ createdAt?: DatetimeFilter; + /** Filter by the object’s `entityId` field. */ + entityId?: UUIDFilter; /** Filter by the object’s `grantorId` field. */ grantorId?: UUIDFilter; /** Filter by the object’s `id` field. */ @@ -1343,59 +1247,35 @@ export interface AppPermissionDefaultGrantFilter { /** Filter by the object’s `isGrant` field. */ isGrant?: BooleanFilter; /** Negates the expression. */ - not?: AppPermissionDefaultGrantFilter; + not?: OrgAdminGrantFilter; /** Checks for any expressions in this list. */ - or?: AppPermissionDefaultGrantFilter[]; - /** Filter by the object’s `permission` relation. */ - permission?: AppPermissionFilter; - /** Filter by the object’s `permissionId` field. */ - permissionId?: UUIDFilter; + or?: OrgAdminGrantFilter[]; /** Filter by the object’s `updatedAt` field. */ updatedAt?: DatetimeFilter; } -export interface AppPermissionDefaultPermissionFilter { +export interface OrgCapabilityDefaultCapabilityFilter { /** Checks for all expressions in this list. */ - and?: AppPermissionDefaultPermissionFilter[]; + and?: OrgCapabilityDefaultCapabilityFilter[]; + /** Filter by the object’s `capabilityId` field. */ + capabilityId?: UUIDFilter; /** Filter by the object’s `createdAt` field. */ createdAt?: DatetimeFilter; + /** Filter by the object’s `entityId` field. */ + entityId?: UUIDFilter; /** Filter by the object’s `id` field. */ id?: UUIDFilter; /** Negates the expression. */ - not?: AppPermissionDefaultPermissionFilter; + not?: OrgCapabilityDefaultCapabilityFilter; /** Checks for any expressions in this list. */ - or?: AppPermissionDefaultPermissionFilter[]; - /** Filter by the object’s `permission` relation. */ - permission?: AppPermissionFilter; - /** Filter by the object’s `permissionId` field. */ - permissionId?: UUIDFilter; + or?: OrgCapabilityDefaultCapabilityFilter[]; /** Filter by the object’s `updatedAt` field. */ updatedAt?: DatetimeFilter; } -export interface MembershipTypeFilter { - /** Checks for all expressions in this list. */ - and?: MembershipTypeFilter[]; - /** Filter by the object’s `description` field. */ - description?: StringFilter; - /** Filter by the object’s `hasUsersTableEntry` field. */ - hasUsersTableEntry?: BooleanFilter; - /** Filter by the object’s `id` field. */ - id?: IntFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Negates the expression. */ - not?: MembershipTypeFilter; - /** Checks for any expressions in this list. */ - or?: MembershipTypeFilter[]; - /** Filter by the object’s `parentMembershipType` field. */ - parentMembershipType?: IntFilter; - /** Filter by the object’s `scope` field. */ - scope?: StringFilter; -} -export interface OrgAdminGrantFilter { - /** Filter by the object’s `actorId` field. */ - actorId?: UUIDFilter; +export interface OrgCapabilityDefaultGrantFilter { /** Checks for all expressions in this list. */ - and?: OrgAdminGrantFilter[]; + and?: OrgCapabilityDefaultGrantFilter[]; + /** Filter by the object’s `capabilityId` field. */ + capabilityId?: UUIDFilter; /** Filter by the object’s `createdAt` field. */ createdAt?: DatetimeFilter; /** Filter by the object’s `entityId` field. */ @@ -1407,9 +1287,9 @@ export interface OrgAdminGrantFilter { /** Filter by the object’s `isGrant` field. */ isGrant?: BooleanFilter; /** Negates the expression. */ - not?: OrgAdminGrantFilter; + not?: OrgCapabilityDefaultGrantFilter; /** Checks for any expressions in this list. */ - or?: OrgAdminGrantFilter[]; + or?: OrgCapabilityDefaultGrantFilter[]; /** Filter by the object’s `updatedAt` field. */ updatedAt?: DatetimeFilter; } @@ -1502,6 +1382,8 @@ export interface OrgGrantFilter { actorId?: UUIDFilter; /** Checks for all expressions in this list. */ and?: OrgGrantFilter[]; + /** Filter by the object’s `capabilities` field. */ + capabilities?: BitStringFilter; /** Filter by the object’s `createdAt` field. */ createdAt?: DatetimeFilter; /** Filter by the object’s `entityId` field. */ @@ -1516,8 +1398,6 @@ export interface OrgGrantFilter { not?: OrgGrantFilter; /** Checks for any expressions in this list. */ or?: OrgGrantFilter[]; - /** Filter by the object’s `permissions` field. */ - permissions?: BitStringFilter; /** Filter by the object’s `updatedAt` field. */ updatedAt?: DatetimeFilter; } @@ -1616,6 +1496,8 @@ export interface OrgMembershipFilter { actorId?: UUIDFilter; /** Checks for all expressions in this list. */ and?: OrgMembershipFilter[]; + /** Filter by the object’s `capabilities` field. */ + capabilities?: BitStringFilter; /** Filter by the object’s `createdAt` field. */ createdAt?: DatetimeFilter; /** Filter by the object’s `createdBy` field. */ @@ -1650,8 +1532,6 @@ export interface OrgMembershipFilter { orgMemberProfileByMembershipId?: OrgMemberProfileFilter; /** A related `orgMemberProfileByMembershipId` exists. */ orgMemberProfileByMembershipIdExists?: boolean; - /** Filter by the object’s `permissions` field. */ - permissions?: BitStringFilter; /** Filter by the object’s `profileId` field. */ profileId?: UUIDFilter; /** Filter by the object’s `updatedAt` field. */ @@ -1739,90 +1619,6 @@ export interface OrgOwnerGrantFilter { /** Filter by the object’s `updatedAt` field. */ updatedAt?: DatetimeFilter; } -export interface OrgPermissionFilter { - /** Checks for all expressions in this list. */ - and?: OrgPermissionFilter[]; - /** 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 `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Negates the expression. */ - not?: OrgPermissionFilter; - /** Checks for any expressions in this list. */ - or?: OrgPermissionFilter[]; - /** Filter by the object’s `orgPermissionDefaultGrantsByPermissionId` relation. */ - orgPermissionDefaultGrantsByPermissionId?: OrgPermissionToManyOrgPermissionDefaultGrantFilter; - /** `orgPermissionDefaultGrantsByPermissionId` exist. */ - orgPermissionDefaultGrantsByPermissionIdExist?: boolean; - /** Filter by the object’s `orgPermissionDefaultPermissionsByPermissionId` relation. */ - orgPermissionDefaultPermissionsByPermissionId?: OrgPermissionToManyOrgPermissionDefaultPermissionFilter; - /** `orgPermissionDefaultPermissionsByPermissionId` exist. */ - orgPermissionDefaultPermissionsByPermissionIdExist?: boolean; -} -export interface OrgPermissionDefaultFilter { - /** Checks for all expressions in this list. */ - and?: OrgPermissionDefaultFilter[]; - /** Filter by the object’s `entityId` field. */ - entityId?: UUIDFilter; - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Negates the expression. */ - not?: OrgPermissionDefaultFilter; - /** Checks for any expressions in this list. */ - or?: OrgPermissionDefaultFilter[]; - /** Filter by the object’s `permissions` field. */ - permissions?: BitStringFilter; -} -export interface OrgPermissionDefaultGrantFilter { - /** Checks for all expressions in this list. */ - and?: OrgPermissionDefaultGrantFilter[]; - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; - /** Filter by the object’s `entityId` field. */ - entityId?: UUIDFilter; - /** Filter by the object’s `grantorId` field. */ - grantorId?: UUIDFilter; - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `isGrant` field. */ - isGrant?: BooleanFilter; - /** Negates the expression. */ - not?: OrgPermissionDefaultGrantFilter; - /** Checks for any expressions in this list. */ - or?: OrgPermissionDefaultGrantFilter[]; - /** Filter by the object’s `permission` relation. */ - permission?: OrgPermissionFilter; - /** Filter by the object’s `permissionId` field. */ - permissionId?: UUIDFilter; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; -} -export interface OrgPermissionDefaultPermissionFilter { - /** Checks for all expressions in this list. */ - and?: OrgPermissionDefaultPermissionFilter[]; - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; - /** Filter by the object’s `entityId` field. */ - entityId?: UUIDFilter; - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Negates the expression. */ - not?: OrgPermissionDefaultPermissionFilter; - /** Checks for any expressions in this list. */ - or?: OrgPermissionDefaultPermissionFilter[]; - /** Filter by the object’s `permission` relation. */ - permission?: OrgPermissionFilter; - /** Filter by the object’s `permissionId` field. */ - permissionId?: UUIDFilter; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; -} // ============ OrderBy Types ============ export type AppAdminGrantOrderBy = | 'ACTOR_ID_ASC' @@ -1840,25 +1636,21 @@ export type AppAdminGrantOrderBy = | 'PRIMARY_KEY_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC'; -export type AppClaimedInviteOrderBy = +export type AppCapabilityDefaultCapabilityOrderBy = + | 'CAPABILITY_ID_ASC' + | 'CAPABILITY_ID_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' - | 'DATA_ASC' - | 'DATA_DESC' | 'ID_ASC' | 'ID_DESC' | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' - | 'RECEIVER_ID_ASC' - | 'RECEIVER_ID_DESC' - | 'SENDER_ID_ASC' - | 'SENDER_ID_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC'; -export type AppGrantOrderBy = - | 'ACTOR_ID_ASC' - | 'ACTOR_ID_DESC' +export type AppCapabilityDefaultGrantOrderBy = + | 'CAPABILITY_ID_ASC' + | 'CAPABILITY_ID_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' | 'GRANTOR_ID_ASC' @@ -1868,14 +1660,46 @@ export type AppGrantOrderBy = | 'IS_GRANT_ASC' | 'IS_GRANT_DESC' | 'NATURAL' - | 'PERMISSIONS_ASC' - | 'PERMISSIONS_DESC' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC'; -export type AppInviteOrderBy = - | 'CHANNEL_ASC' +export type AppClaimedInviteOrderBy = + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'DATA_ASC' + | 'DATA_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'RECEIVER_ID_ASC' + | 'RECEIVER_ID_DESC' + | 'SENDER_ID_ASC' + | 'SENDER_ID_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC'; +export type AppGrantOrderBy = + | 'ACTOR_ID_ASC' + | 'ACTOR_ID_DESC' + | 'CAPABILITIES_ASC' + | 'CAPABILITIES_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'GRANTOR_ID_ASC' + | 'GRANTOR_ID_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'IS_GRANT_ASC' + | 'IS_GRANT_DESC' + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC'; +export type AppInviteOrderBy = + | 'CHANNEL_ASC' | 'CHANNEL_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' @@ -1911,6 +1735,8 @@ export type AppInviteOrderBy = export type AppMembershipOrderBy = | 'ACTOR_ID_ASC' | 'ACTOR_ID_DESC' + | 'CAPABILITIES_ASC' + | 'CAPABILITIES_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' | 'CREATED_BY_ASC' @@ -1934,8 +1760,6 @@ export type AppMembershipOrderBy = | 'IS_VERIFIED_ASC' | 'IS_VERIFIED_DESC' | 'NATURAL' - | 'PERMISSIONS_ASC' - | 'PERMISSIONS_DESC' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'PROFILE_ID_ASC' @@ -1978,31 +1802,29 @@ export type AppOwnerGrantOrderBy = | 'PRIMARY_KEY_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC'; -export type AppPermissionOrderBy = - | 'BITNUM_ASC' - | 'BITNUM_DESC' - | 'BITSTR_ASC' - | 'BITSTR_DESC' +export type MembershipTypeOrderBy = | 'DESCRIPTION_ASC' | 'DESCRIPTION_DESC' + | 'HAS_USERS_TABLE_ENTRY_ASC' + | 'HAS_USERS_TABLE_ENTRY_DESC' | 'ID_ASC' | 'ID_DESC' | 'NAME_ASC' | 'NAME_DESC' | 'NATURAL' + | 'PARENT_MEMBERSHIP_TYPE_ASC' + | 'PARENT_MEMBERSHIP_TYPE_DESC' | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC'; -export type AppPermissionDefaultOrderBy = - | 'ID_ASC' - | 'ID_DESC' - | 'NATURAL' - | 'PERMISSIONS_ASC' - | 'PERMISSIONS_DESC' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC'; -export type AppPermissionDefaultGrantOrderBy = + | 'PRIMARY_KEY_DESC' + | 'SCOPE_ASC' + | 'SCOPE_DESC'; +export type OrgAdminGrantOrderBy = + | 'ACTOR_ID_ASC' + | 'ACTOR_ID_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' + | 'ENTITY_ID_ASC' + | 'ENTITY_ID_DESC' | 'GRANTOR_ID_ASC' | 'GRANTOR_ID_DESC' | 'ID_ASC' @@ -2010,43 +1832,27 @@ export type AppPermissionDefaultGrantOrderBy = | 'IS_GRANT_ASC' | 'IS_GRANT_DESC' | 'NATURAL' - | 'PERMISSION_ID_ASC' - | 'PERMISSION_ID_DESC' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC'; -export type AppPermissionDefaultPermissionOrderBy = +export type OrgCapabilityDefaultCapabilityOrderBy = + | 'CAPABILITY_ID_ASC' + | 'CAPABILITY_ID_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' + | 'ENTITY_ID_ASC' + | 'ENTITY_ID_DESC' | 'ID_ASC' | 'ID_DESC' | 'NATURAL' - | 'PERMISSION_ID_ASC' - | 'PERMISSION_ID_DESC' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC'; -export type MembershipTypeOrderBy = - | 'DESCRIPTION_ASC' - | 'DESCRIPTION_DESC' - | 'HAS_USERS_TABLE_ENTRY_ASC' - | 'HAS_USERS_TABLE_ENTRY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'NAME_ASC' - | 'NAME_DESC' - | 'NATURAL' - | 'PARENT_MEMBERSHIP_TYPE_ASC' - | 'PARENT_MEMBERSHIP_TYPE_DESC' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'SCOPE_ASC' - | 'SCOPE_DESC'; -export type OrgAdminGrantOrderBy = - | 'ACTOR_ID_ASC' - | 'ACTOR_ID_DESC' +export type OrgCapabilityDefaultGrantOrderBy = + | 'CAPABILITY_ID_ASC' + | 'CAPABILITY_ID_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' | 'ENTITY_ID_ASC' @@ -2141,6 +1947,8 @@ export type OrgGetSubordinatesRecordsOrderBy = export type OrgGrantOrderBy = | 'ACTOR_ID_ASC' | 'ACTOR_ID_DESC' + | 'CAPABILITIES_ASC' + | 'CAPABILITIES_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' | 'ENTITY_ID_ASC' @@ -2152,8 +1960,6 @@ export type OrgGrantOrderBy = | 'IS_GRANT_ASC' | 'IS_GRANT_DESC' | 'NATURAL' - | 'PERMISSIONS_ASC' - | 'PERMISSIONS_DESC' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'UPDATED_AT_ASC' @@ -2239,6 +2045,8 @@ export type OrgMemberProfileOrderBy = export type OrgMembershipOrderBy = | 'ACTOR_ID_ASC' | 'ACTOR_ID_DESC' + | 'CAPABILITIES_ASC' + | 'CAPABILITIES_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' | 'CREATED_BY_ASC' @@ -2266,8 +2074,6 @@ export type OrgMembershipOrderBy = | 'IS_READ_ONLY_ASC' | 'IS_READ_ONLY_DESC' | 'NATURAL' - | 'PERMISSIONS_ASC' - | 'PERMISSIONS_DESC' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'PROFILE_ID_ASC' @@ -2344,62 +2150,6 @@ export type OrgOwnerGrantOrderBy = | 'PRIMARY_KEY_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC'; -export type OrgPermissionOrderBy = - | 'BITNUM_ASC' - | 'BITNUM_DESC' - | 'BITSTR_ASC' - | 'BITSTR_DESC' - | 'DESCRIPTION_ASC' - | 'DESCRIPTION_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'NAME_ASC' - | 'NAME_DESC' - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC'; -export type OrgPermissionDefaultOrderBy = - | 'ENTITY_ID_ASC' - | 'ENTITY_ID_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'NATURAL' - | 'PERMISSIONS_ASC' - | 'PERMISSIONS_DESC' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC'; -export type OrgPermissionDefaultGrantOrderBy = - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'ENTITY_ID_ASC' - | 'ENTITY_ID_DESC' - | 'GRANTOR_ID_ASC' - | 'GRANTOR_ID_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'IS_GRANT_ASC' - | 'IS_GRANT_DESC' - | 'NATURAL' - | 'PERMISSION_ID_ASC' - | 'PERMISSION_ID_DESC' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC'; -export type OrgPermissionDefaultPermissionOrderBy = - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'ENTITY_ID_ASC' - | 'ENTITY_ID_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'NATURAL' - | 'PERMISSION_ID_ASC' - | 'PERMISSION_ID_DESC' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC'; // ============ CRUD Input Types ============ export interface CreateAppAdminGrantInput { clientMutationId?: string; @@ -2423,6 +2173,46 @@ export interface DeleteAppAdminGrantInput { clientMutationId?: string; id: string; } +export interface CreateAppCapabilityDefaultCapabilityInput { + clientMutationId?: string; + appCapabilityDefaultCapability: { + capabilityId: string; + }; +} +export interface AppCapabilityDefaultCapabilityPatch { + capabilityId?: string | null; +} +export interface UpdateAppCapabilityDefaultCapabilityInput { + clientMutationId?: string; + id: string; + appCapabilityDefaultCapabilityPatch: AppCapabilityDefaultCapabilityPatch; +} +export interface DeleteAppCapabilityDefaultCapabilityInput { + clientMutationId?: string; + id: string; +} +export interface CreateAppCapabilityDefaultGrantInput { + clientMutationId?: string; + appCapabilityDefaultGrant: { + capabilityId: string; + grantorId?: string; + isGrant?: boolean; + }; +} +export interface AppCapabilityDefaultGrantPatch { + capabilityId?: string | null; + grantorId?: string | null; + isGrant?: boolean | null; +} +export interface UpdateAppCapabilityDefaultGrantInput { + clientMutationId?: string; + id: string; + appCapabilityDefaultGrantPatch: AppCapabilityDefaultGrantPatch; +} +export interface DeleteAppCapabilityDefaultGrantInput { + clientMutationId?: string; + id: string; +} export interface CreateAppClaimedInviteInput { clientMutationId?: string; appClaimedInvite: { @@ -2449,16 +2239,16 @@ export interface CreateAppGrantInput { clientMutationId?: string; appGrant: { actorId?: string; + capabilities?: string; grantorId?: string; isGrant?: boolean; - permissions?: string; }; } export interface AppGrantPatch { actorId?: string | null; + capabilities?: string | null; grantorId?: string | null; isGrant?: boolean | null; - permissions?: string | null; } export interface UpdateAppGrantInput { clientMutationId?: string; @@ -2513,6 +2303,7 @@ export interface CreateAppMembershipInput { clientMutationId?: string; appMembership: { actorId: string; + capabilities?: string; createdBy?: string; granted?: string; isActive?: boolean; @@ -2522,13 +2313,13 @@ export interface CreateAppMembershipInput { isDisabled?: boolean; isOwner?: boolean; isVerified?: boolean; - permissions?: string; profileId?: string; updatedBy?: string; }; } export interface AppMembershipPatch { actorId?: string | null; + capabilities?: string | null; createdBy?: string | null; granted?: string | null; isActive?: boolean | null; @@ -2538,7 +2329,6 @@ export interface AppMembershipPatch { isDisabled?: boolean | null; isOwner?: boolean | null; isVerified?: boolean | null; - permissions?: string | null; profileId?: string | null; updatedBy?: string | null; } @@ -2597,88 +2387,6 @@ export interface DeleteAppOwnerGrantInput { clientMutationId?: string; id: string; } -export interface CreateAppPermissionInput { - clientMutationId?: string; - appPermission: { - bitnum?: number; - bitstr?: string; - description?: string; - name?: string; - }; -} -export interface AppPermissionPatch { - bitnum?: number | null; - bitstr?: string | null; - description?: string | null; - name?: string | null; -} -export interface UpdateAppPermissionInput { - clientMutationId?: string; - id: string; - appPermissionPatch: AppPermissionPatch; -} -export interface DeleteAppPermissionInput { - clientMutationId?: string; - id: string; -} -export interface CreateAppPermissionDefaultInput { - clientMutationId?: string; - appPermissionDefault: { - permissions?: string; - }; -} -export interface AppPermissionDefaultPatch { - permissions?: string | null; -} -export interface UpdateAppPermissionDefaultInput { - clientMutationId?: string; - id: string; - appPermissionDefaultPatch: AppPermissionDefaultPatch; -} -export interface DeleteAppPermissionDefaultInput { - clientMutationId?: string; - id: string; -} -export interface CreateAppPermissionDefaultGrantInput { - clientMutationId?: string; - appPermissionDefaultGrant: { - grantorId?: string; - isGrant?: boolean; - permissionId: string; - }; -} -export interface AppPermissionDefaultGrantPatch { - grantorId?: string | null; - isGrant?: boolean | null; - permissionId?: string | null; -} -export interface UpdateAppPermissionDefaultGrantInput { - clientMutationId?: string; - id: string; - appPermissionDefaultGrantPatch: AppPermissionDefaultGrantPatch; -} -export interface DeleteAppPermissionDefaultGrantInput { - clientMutationId?: string; - id: string; -} -export interface CreateAppPermissionDefaultPermissionInput { - clientMutationId?: string; - appPermissionDefaultPermission: { - permissionId: string; - }; -} -export interface AppPermissionDefaultPermissionPatch { - permissionId?: string | null; -} -export interface UpdateAppPermissionDefaultPermissionInput { - clientMutationId?: string; - id: string; - appPermissionDefaultPermissionPatch: AppPermissionDefaultPermissionPatch; -} -export interface DeleteAppPermissionDefaultPermissionInput { - clientMutationId?: string; - id: string; -} export interface CreateMembershipTypeInput { clientMutationId?: string; membershipType: { @@ -2729,6 +2437,50 @@ export interface DeleteOrgAdminGrantInput { clientMutationId?: string; id: string; } +export interface CreateOrgCapabilityDefaultCapabilityInput { + clientMutationId?: string; + orgCapabilityDefaultCapability: { + capabilityId: string; + entityId: string; + }; +} +export interface OrgCapabilityDefaultCapabilityPatch { + capabilityId?: string | null; + entityId?: string | null; +} +export interface UpdateOrgCapabilityDefaultCapabilityInput { + clientMutationId?: string; + id: string; + orgCapabilityDefaultCapabilityPatch: OrgCapabilityDefaultCapabilityPatch; +} +export interface DeleteOrgCapabilityDefaultCapabilityInput { + clientMutationId?: string; + id: string; +} +export interface CreateOrgCapabilityDefaultGrantInput { + clientMutationId?: string; + orgCapabilityDefaultGrant: { + capabilityId: string; + entityId: string; + grantorId?: string; + isGrant?: boolean; + }; +} +export interface OrgCapabilityDefaultGrantPatch { + capabilityId?: string | null; + entityId?: string | null; + grantorId?: string | null; + isGrant?: boolean | null; +} +export interface UpdateOrgCapabilityDefaultGrantInput { + clientMutationId?: string; + id: string; + orgCapabilityDefaultGrantPatch: OrgCapabilityDefaultGrantPatch; +} +export interface DeleteOrgCapabilityDefaultGrantInput { + clientMutationId?: string; + id: string; +} export interface CreateOrgChartEdgeInput { clientMutationId?: string; orgChartEdge: { @@ -2853,18 +2605,18 @@ export interface CreateOrgGrantInput { clientMutationId?: string; orgGrant: { actorId?: string; + capabilities?: string; entityId: string; grantorId?: string; isGrant?: boolean; - permissions?: string; }; } export interface OrgGrantPatch { actorId?: string | null; + capabilities?: string | null; entityId?: string | null; grantorId?: string | null; isGrant?: boolean | null; - permissions?: string | null; } export interface UpdateOrgGrantInput { clientMutationId?: string; @@ -2980,6 +2732,7 @@ export interface CreateOrgMembershipInput { clientMutationId?: string; orgMembership: { actorId: string; + capabilities?: string; createdBy?: string; entityId: string; granted?: string; @@ -2991,13 +2744,13 @@ export interface CreateOrgMembershipInput { isExternal?: boolean; isOwner?: boolean; isReadOnly?: boolean; - permissions?: string; profileId?: string; updatedBy?: string; }; } export interface OrgMembershipPatch { actorId?: string | null; + capabilities?: string | null; createdBy?: string | null; entityId?: string | null; granted?: string | null; @@ -3009,7 +2762,6 @@ export interface OrgMembershipPatch { isExternal?: boolean | null; isOwner?: boolean | null; isReadOnly?: boolean | null; - permissions?: string | null; profileId?: string | null; updatedBy?: string | null; } @@ -3108,121 +2860,25 @@ export interface DeleteOrgOwnerGrantInput { clientMutationId?: string; id: string; } -export interface CreateOrgPermissionInput { - clientMutationId?: string; - orgPermission: { - bitnum?: number; - bitstr?: string; - description?: string; - name?: string; - }; -} -export interface OrgPermissionPatch { - bitnum?: number | null; - bitstr?: string | null; - description?: string | null; - name?: string | null; -} -export interface UpdateOrgPermissionInput { - clientMutationId?: string; - id: string; - orgPermissionPatch: OrgPermissionPatch; -} -export interface DeleteOrgPermissionInput { - clientMutationId?: string; - id: string; -} -export interface CreateOrgPermissionDefaultInput { - clientMutationId?: string; - orgPermissionDefault: { - entityId: string; - permissions?: string; - }; -} -export interface OrgPermissionDefaultPatch { - entityId?: string | null; - permissions?: string | null; -} -export interface UpdateOrgPermissionDefaultInput { - clientMutationId?: string; - id: string; - orgPermissionDefaultPatch: OrgPermissionDefaultPatch; +// ============ Connection Fields Map ============ +export const connectionFieldsMap = {} as Record>; +// ============ Custom Input Types (from schema) ============ +export interface ProvisionBucketInput { + /** The logical bucket key (e.g., "public", "private") */ + bucketKey: string; + /** + * Owner entity ID for entity-scoped bucket provisioning. + * Omit for app-level (database-wide) storage. + */ + ownerId?: string; } -export interface DeleteOrgPermissionDefaultInput { +export interface SubmitAppInviteCodeInput { clientMutationId?: string; - id: string; + token?: string; } -export interface CreateOrgPermissionDefaultGrantInput { +export interface SubmitOrgInviteCodeInput { clientMutationId?: string; - orgPermissionDefaultGrant: { - entityId: string; - grantorId?: string; - isGrant?: boolean; - permissionId: string; - }; -} -export interface OrgPermissionDefaultGrantPatch { - entityId?: string | null; - grantorId?: string | null; - isGrant?: boolean | null; - permissionId?: string | null; -} -export interface UpdateOrgPermissionDefaultGrantInput { - clientMutationId?: string; - id: string; - orgPermissionDefaultGrantPatch: OrgPermissionDefaultGrantPatch; -} -export interface DeleteOrgPermissionDefaultGrantInput { - clientMutationId?: string; - id: string; -} -export interface CreateOrgPermissionDefaultPermissionInput { - clientMutationId?: string; - orgPermissionDefaultPermission: { - entityId: string; - permissionId: string; - }; -} -export interface OrgPermissionDefaultPermissionPatch { - entityId?: string | null; - permissionId?: string | null; -} -export interface UpdateOrgPermissionDefaultPermissionInput { - clientMutationId?: string; - id: string; - orgPermissionDefaultPermissionPatch: OrgPermissionDefaultPermissionPatch; -} -export interface DeleteOrgPermissionDefaultPermissionInput { - clientMutationId?: string; - id: string; -} -// ============ Connection Fields Map ============ -export const connectionFieldsMap = { - AppPermission: { - appPermissionDefaultGrantsByPermissionId: 'AppPermissionDefaultGrant', - }, - OrgPermission: { - orgPermissionDefaultGrantsByPermissionId: 'OrgPermissionDefaultGrant', - orgPermissionDefaultPermissionsByPermissionId: 'OrgPermissionDefaultPermission', - }, -} as Record>; -// ============ Custom Input Types (from schema) ============ -export interface ProvisionBucketInput { - /** The logical bucket key (e.g., "public", "private") */ - bucketKey: string; - /** - * Owner entity ID for entity-scoped bucket provisioning. - * Omit for app-level (database-wide) storage. - */ - ownerId?: string; -} -export interface SubmitAppInviteCodeInput { - clientMutationId?: string; - token?: string; -} -export interface SubmitOrgInviteCodeInput { - clientMutationId?: string; - token?: string; + token?: string; } /** A filter to be used against ConstructiveInternalTypeEmail fields. All fields are combined with a logical ‘and.’ */ export interface ConstructiveInternalTypeEmailFilter { @@ -3301,15 +2957,6 @@ export interface ConstructiveInternalTypeEmailFilter { /** Starts with the specified string (case-insensitive). */ startsWithInsensitive?: ConstructiveInternalTypeEmail; } -/** A filter to be used against many `AppPermissionDefaultGrant` object types. All fields are combined with a logical ‘and.’ */ -export interface AppPermissionToManyAppPermissionDefaultGrantFilter { - /** Filters to entities where every related entity matches. */ - every?: AppPermissionDefaultGrantFilter; - /** Filters to entities where no related entity matches. */ - none?: AppPermissionDefaultGrantFilter; - /** Filters to entities where at least one related entity matches. */ - some?: AppPermissionDefaultGrantFilter; -} /** A filter to be used against ConstructiveInternalTypeImage fields. All fields are combined with a logical ‘and.’ */ export interface ConstructiveInternalTypeImageFilter { /** Contained by the specified JSON. */ @@ -3345,24 +2992,6 @@ export interface ConstructiveInternalTypeImageFilter { /** Not included in the specified list. */ notIn?: ConstructiveInternalTypeImage[]; } -/** A filter to be used against many `OrgPermissionDefaultGrant` object types. All fields are combined with a logical ‘and.’ */ -export interface OrgPermissionToManyOrgPermissionDefaultGrantFilter { - /** Filters to entities where every related entity matches. */ - every?: OrgPermissionDefaultGrantFilter; - /** Filters to entities where no related entity matches. */ - none?: OrgPermissionDefaultGrantFilter; - /** Filters to entities where at least one related entity matches. */ - some?: OrgPermissionDefaultGrantFilter; -} -/** A filter to be used against many `OrgPermissionDefaultPermission` object types. All fields are combined with a logical ‘and.’ */ -export interface OrgPermissionToManyOrgPermissionDefaultPermissionFilter { - /** Filters to entities where every related entity matches. */ - every?: OrgPermissionDefaultPermissionFilter; - /** Filters to entities where no related entity matches. */ - none?: OrgPermissionDefaultPermissionFilter; - /** Filters to entities where at least one related entity matches. */ - some?: OrgPermissionDefaultPermissionFilter; -} /** An input for mutations affecting `AppAdminGrant` */ export interface AppAdminGrantInput { /** The member receiving or losing the admin grant; NULL if user was deleted */ @@ -3374,6 +3003,25 @@ export interface AppAdminGrantInput { isGrant?: boolean; updatedAt?: string; } +/** An input for mutations affecting `AppCapabilityDefaultCapability` */ +export interface AppCapabilityDefaultCapabilityInput { + /** References the capability included in the defaults bundle */ + capabilityId: string; + createdAt?: string; + id?: string; + updatedAt?: string; +} +/** An input for mutations affecting `AppCapabilityDefaultGrant` */ +export interface AppCapabilityDefaultGrantInput { + /** References the capability being added to or removed from defaults */ + capabilityId: string; + createdAt?: string; + grantorId?: string; + id?: string; + /** True to add the capability to defaults, false to remove it */ + isGrant?: boolean; + updatedAt?: string; +} /** An input for mutations affecting `AppClaimedInvite` */ export interface AppClaimedInviteInput { createdAt?: string; @@ -3388,15 +3036,15 @@ export interface AppClaimedInviteInput { } /** An input for mutations affecting `AppGrant` */ export interface AppGrantInput { - /** The member receiving or losing the permission grant; NULL if user was deleted */ + /** The member receiving or losing the capability grant; NULL if user was deleted */ actorId?: string; + /** Bitmask of capabilities being granted or revoked */ + capabilities?: string; createdAt?: string; grantorId?: string; id?: string; - /** True to grant the permissions, false to revoke them */ + /** True to grant the capabilities, false to revoke them */ isGrant?: boolean; - /** Bitmask of permissions being granted or revoked */ - permissions?: string; updatedAt?: string; } /** An input for mutations affecting `AppInvite` */ @@ -3433,9 +3081,11 @@ export interface AppInviteInput { export interface AppMembershipInput { /** References the user who holds this membership */ actorId: string; + /** Aggregated capability bitmask combining profile-based and directly granted capabilities */ + capabilities?: string; createdAt?: string; createdBy?: string; - /** Bitmask of permissions directly granted to this member (not from profiles) */ + /** Bitmask of capabilities directly granted to this member (not from profiles) */ granted?: string; id?: string; /** Computed field indicating the membership is approved, verified, not banned, and not disabled */ @@ -3452,8 +3102,6 @@ export interface AppMembershipInput { isOwner?: boolean; /** Whether this member has been verified (e.g. email confirmation) */ isVerified?: boolean; - /** Aggregated permission bitmask combining profile-based and directly granted permissions */ - permissions?: string; profileId?: string; updatedAt?: string; updatedBy?: string; @@ -3481,43 +3129,6 @@ export interface AppOwnerGrantInput { isGrant?: boolean; updatedAt?: string; } -/** An input for mutations affecting `AppPermission` */ -export interface AppPermissionInput { - /** 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; - id?: string; - /** Human-readable permission name (e.g. read, write, manage) */ - name?: string; -} -/** An input for mutations affecting `AppPermissionDefault` */ -export interface AppPermissionDefaultInput { - id?: string; - /** Default permission bitmask applied to new members */ - permissions?: string; -} -/** An input for mutations affecting `AppPermissionDefaultGrant` */ -export interface AppPermissionDefaultGrantInput { - createdAt?: string; - grantorId?: string; - id?: string; - /** True to add the permission to defaults, false to remove it */ - isGrant?: boolean; - /** References the permission being added to or removed from defaults */ - permissionId: string; - updatedAt?: string; -} -/** An input for mutations affecting `AppPermissionDefaultPermission` */ -export interface AppPermissionDefaultPermissionInput { - createdAt?: string; - id?: string; - /** References the permission included in the defaults bundle */ - permissionId: string; - updatedAt?: string; -} /** An input for mutations affecting `MembershipType` */ export interface MembershipTypeInput { /** Description of what this membership type represents */ @@ -3546,6 +3157,29 @@ export interface OrgAdminGrantInput { isGrant?: boolean; updatedAt?: string; } +/** An input for mutations affecting `OrgCapabilityDefaultCapability` */ +export interface OrgCapabilityDefaultCapabilityInput { + /** References the capability included in the defaults bundle */ + capabilityId: string; + createdAt?: string; + /** Scopes this default capability to a specific entity */ + entityId: string; + id?: string; + updatedAt?: string; +} +/** An input for mutations affecting `OrgCapabilityDefaultGrant` */ +export interface OrgCapabilityDefaultGrantInput { + /** References the capability being added to or removed from defaults */ + capabilityId: string; + createdAt?: string; + /** Scopes this audit entry to a specific entity */ + entityId: string; + grantorId?: string; + id?: string; + /** True to add the capability to defaults, false to remove it */ + isGrant?: boolean; + updatedAt?: string; +} /** An input for mutations affecting `OrgChartEdge` */ export interface OrgChartEdgeInput { /** User ID of the subordinate (employee) in this reporting relationship */ @@ -3597,17 +3231,17 @@ export interface OrgClaimedInviteInput { } /** An input for mutations affecting `OrgGrant` */ export interface OrgGrantInput { - /** The member receiving or losing the permission grant; NULL if user was deleted */ + /** The member receiving or losing the capability grant; NULL if user was deleted */ actorId?: string; + /** Bitmask of capabilities being granted or revoked */ + capabilities?: string; createdAt?: string; - /** The entity (org or group) this permission grant applies to */ + /** The entity (org or group) this capability grant applies to */ entityId: string; grantorId?: string; id?: string; - /** True to grant the permissions, false to revoke them */ + /** True to grant the capabilities, false to revoke them */ isGrant?: boolean; - /** Bitmask of permissions being granted or revoked */ - permissions?: string; updatedAt?: string; } /** An input for mutations affecting `OrgInvite` */ @@ -3681,11 +3315,13 @@ export interface OrgMemberProfileInput { export interface OrgMembershipInput { /** References the user who holds this membership */ actorId: string; + /** Aggregated capability bitmask combining profile-based and directly granted capabilities */ + capabilities?: string; createdAt?: string; createdBy?: string; /** References the entity (org or group) this membership belongs to */ entityId: string; - /** Bitmask of permissions directly granted to this member (not from profiles) */ + /** Bitmask of capabilities directly granted to this member (not from profiles) */ granted?: string; id?: string; /** Computed field indicating the membership is approved, verified, not banned, and not disabled */ @@ -3698,14 +3334,12 @@ export interface OrgMembershipInput { isBanned?: boolean; /** Whether this membership is temporarily disabled */ isDisabled?: boolean; - /** Whether this member is external (not a member of the parent scope). External members may have restricted permissions. */ + /** Whether this member is external (not a member of the parent scope). External members may have restricted capabilities. */ isExternal?: boolean; /** Whether the actor is the owner of this entity */ isOwner?: boolean; /** Whether this member has read-only access (blocks mutations when true) */ isReadOnly?: boolean; - /** Aggregated permission bitmask combining profile-based and directly granted permissions */ - permissions?: string; profileId?: string; updatedAt?: string; updatedBy?: string; @@ -3739,7 +3373,7 @@ export interface OrgMembershipSettingInput { /** References the entity these settings apply to */ entityId: string; id?: string; - /** Controls how profile assignment on invites is validated: strict (permission + subset check), permission_only (permission only), or subset_only (subset check only) */ + /** Controls how profile assignment on invites is validated: strict (capability + subset check), capability_only (capability only), or subset_only (subset check only) */ inviteProfileAssignmentMode?: 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; @@ -3761,432 +3395,7 @@ export interface OrgOwnerGrantInput { isGrant?: boolean; updatedAt?: string; } -/** An input for mutations affecting `OrgPermission` */ -export interface OrgPermissionInput { - /** 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; - id?: string; - /** Human-readable permission name (e.g. read, write, manage) */ - name?: string; -} -/** An input for mutations affecting `OrgPermissionDefault` */ -export interface OrgPermissionDefaultInput { - /** References the entity these default permissions apply to */ - entityId: string; - id?: string; - /** Default permission bitmask applied to new members */ - permissions?: string; -} -/** An input for mutations affecting `OrgPermissionDefaultGrant` */ -export interface OrgPermissionDefaultGrantInput { - createdAt?: string; - /** Scopes this audit entry to a specific entity */ - entityId: string; - grantorId?: string; - id?: string; - /** True to add the permission to defaults, false to remove it */ - isGrant?: boolean; - /** References the permission being added to or removed from defaults */ - permissionId: string; - updatedAt?: string; -} -/** An input for mutations affecting `OrgPermissionDefaultPermission` */ -export interface OrgPermissionDefaultPermissionInput { - createdAt?: string; - /** Scopes this default permission to a specific entity */ - entityId: string; - id?: string; - /** References the permission included in the defaults bundle */ - permissionId: string; - updatedAt?: string; -} -/** A filter to be used against `AppPermissionDefaultGrant` object types. All fields are combined with a logical ‘and.’ */ -export interface AppPermissionDefaultGrantFilter { - /** Checks for all expressions in this list. */ - and?: AppPermissionDefaultGrantFilter[]; - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; - /** Filter by the object’s `grantorId` field. */ - grantorId?: UUIDFilter; - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `isGrant` field. */ - isGrant?: BooleanFilter; - /** Negates the expression. */ - not?: AppPermissionDefaultGrantFilter; - /** Checks for any expressions in this list. */ - or?: AppPermissionDefaultGrantFilter[]; - /** Filter by the object’s `permission` relation. */ - permission?: AppPermissionFilter; - /** Filter by the object’s `permissionId` field. */ - permissionId?: UUIDFilter; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; -} -/** A filter to be used against `OrgPermissionDefaultGrant` object types. All fields are combined with a logical ‘and.’ */ -export interface OrgPermissionDefaultGrantFilter { - /** Checks for all expressions in this list. */ - and?: OrgPermissionDefaultGrantFilter[]; - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; - /** Filter by the object’s `entityId` field. */ - entityId?: UUIDFilter; - /** Filter by the object’s `grantorId` field. */ - grantorId?: UUIDFilter; - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `isGrant` field. */ - isGrant?: BooleanFilter; - /** Negates the expression. */ - not?: OrgPermissionDefaultGrantFilter; - /** Checks for any expressions in this list. */ - or?: OrgPermissionDefaultGrantFilter[]; - /** Filter by the object’s `permission` relation. */ - permission?: OrgPermissionFilter; - /** Filter by the object’s `permissionId` field. */ - permissionId?: UUIDFilter; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; -} -/** A filter to be used against `OrgPermissionDefaultPermission` object types. All fields are combined with a logical ‘and.’ */ -export interface OrgPermissionDefaultPermissionFilter { - /** Checks for all expressions in this list. */ - and?: OrgPermissionDefaultPermissionFilter[]; - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; - /** Filter by the object’s `entityId` field. */ - entityId?: UUIDFilter; - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Negates the expression. */ - not?: OrgPermissionDefaultPermissionFilter; - /** Checks for any expressions in this list. */ - or?: OrgPermissionDefaultPermissionFilter[]; - /** Filter by the object’s `permission` relation. */ - permission?: OrgPermissionFilter; - /** Filter by the object’s `permissionId` field. */ - permissionId?: UUIDFilter; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; -} -/** A filter to be used against Datetime fields. All fields are combined with a logical ‘and.’ */ -export interface DatetimeFilter { - /** Not equal to the specified value, treating null like an ordinary value. */ - distinctFrom?: string; - /** Equal to the specified value. */ - equalTo?: string; - /** Greater than the specified value. */ - greaterThan?: string; - /** Greater than or equal to the specified value. */ - greaterThanOrEqualTo?: string; - /** Included in the specified list. */ - in?: string[]; - /** Is null (if `true` is specified) or is not null (if `false` is specified). */ - isNull?: boolean; - /** Less than the specified value. */ - lessThan?: string; - /** Less than or equal to the specified value. */ - lessThanOrEqualTo?: string; - /** Equal to the specified value, treating null like an ordinary value. */ - notDistinctFrom?: string; - /** Not equal to the specified value. */ - notEqualTo?: string; - /** Not included in the specified list. */ - notIn?: string[]; -} -/** A filter to be used against UUID fields. All fields are combined with a logical ‘and.’ */ -export interface UUIDFilter { - /** Not equal to the specified value, treating null like an ordinary value. */ - distinctFrom?: string; - /** Equal to the specified value. */ - equalTo?: string; - /** Greater than the specified value. */ - greaterThan?: string; - /** Greater than or equal to the specified value. */ - greaterThanOrEqualTo?: string; - /** Included in the specified list. */ - in?: string[]; - /** Is null (if `true` is specified) or is not null (if `false` is specified). */ - isNull?: boolean; - /** Less than the specified value. */ - lessThan?: string; - /** Less than or equal to the specified value. */ - lessThanOrEqualTo?: string; - /** Equal to the specified value, treating null like an ordinary value. */ - notDistinctFrom?: string; - /** Not equal to the specified value. */ - notEqualTo?: string; - /** Not included in the specified list. */ - notIn?: string[]; -} -/** A filter to be used against Boolean fields. All fields are combined with a logical ‘and.’ */ -export interface BooleanFilter { - /** Not equal to the specified value, treating null like an ordinary value. */ - distinctFrom?: boolean; - /** Equal to the specified value. */ - equalTo?: boolean; - /** Greater than the specified value. */ - greaterThan?: boolean; - /** Greater than or equal to the specified value. */ - greaterThanOrEqualTo?: boolean; - /** Included in the specified list. */ - in?: boolean[]; - /** Is null (if `true` is specified) or is not null (if `false` is specified). */ - isNull?: boolean; - /** Less than the specified value. */ - lessThan?: boolean; - /** Less than or equal to the specified value. */ - lessThanOrEqualTo?: boolean; - /** Equal to the specified value, treating null like an ordinary value. */ - notDistinctFrom?: boolean; - /** Not equal to the specified value. */ - notEqualTo?: boolean; - /** Not included in the specified list. */ - notIn?: boolean[]; -} -/** A filter to be used against `AppPermission` object types. All fields are combined with a logical ‘and.’ */ -export interface AppPermissionFilter { - /** Checks for all expressions in this list. */ - and?: AppPermissionFilter[]; - /** Filter by the object’s `appPermissionDefaultGrantsByPermissionId` relation. */ - appPermissionDefaultGrantsByPermissionId?: AppPermissionToManyAppPermissionDefaultGrantFilter; - /** `appPermissionDefaultGrantsByPermissionId` exist. */ - appPermissionDefaultGrantsByPermissionIdExist?: boolean; - /** Filter by the object’s `appPermissionDefaultPermissionByPermissionId` relation. */ - appPermissionDefaultPermissionByPermissionId?: AppPermissionDefaultPermissionFilter; - /** A related `appPermissionDefaultPermissionByPermissionId` exists. */ - appPermissionDefaultPermissionByPermissionIdExists?: boolean; - /** 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 `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Negates the expression. */ - not?: AppPermissionFilter; - /** Checks for any expressions in this list. */ - or?: AppPermissionFilter[]; -} -/** A filter to be used against `OrgPermission` object types. All fields are combined with a logical ‘and.’ */ -export interface OrgPermissionFilter { - /** Checks for all expressions in this list. */ - and?: OrgPermissionFilter[]; - /** 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 `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Negates the expression. */ - not?: OrgPermissionFilter; - /** Checks for any expressions in this list. */ - or?: OrgPermissionFilter[]; - /** Filter by the object’s `orgPermissionDefaultGrantsByPermissionId` relation. */ - orgPermissionDefaultGrantsByPermissionId?: OrgPermissionToManyOrgPermissionDefaultGrantFilter; - /** `orgPermissionDefaultGrantsByPermissionId` exist. */ - orgPermissionDefaultGrantsByPermissionIdExist?: boolean; - /** Filter by the object’s `orgPermissionDefaultPermissionsByPermissionId` relation. */ - orgPermissionDefaultPermissionsByPermissionId?: OrgPermissionToManyOrgPermissionDefaultPermissionFilter; - /** `orgPermissionDefaultPermissionsByPermissionId` exist. */ - orgPermissionDefaultPermissionsByPermissionIdExist?: boolean; -} -/** A filter to be used against `AppPermissionDefaultPermission` object types. All fields are combined with a logical ‘and.’ */ -export interface AppPermissionDefaultPermissionFilter { - /** Checks for all expressions in this list. */ - and?: AppPermissionDefaultPermissionFilter[]; - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Negates the expression. */ - not?: AppPermissionDefaultPermissionFilter; - /** Checks for any expressions in this list. */ - or?: AppPermissionDefaultPermissionFilter[]; - /** Filter by the object’s `permission` relation. */ - permission?: AppPermissionFilter; - /** Filter by the object’s `permissionId` field. */ - permissionId?: UUIDFilter; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; -} -/** A filter to be used against Int fields. All fields are combined with a logical ‘and.’ */ -export interface IntFilter { - /** Not equal to the specified value, treating null like an ordinary value. */ - distinctFrom?: number; - /** Equal to the specified value. */ - equalTo?: number; - /** Greater than the specified value. */ - greaterThan?: number; - /** Greater than or equal to the specified value. */ - greaterThanOrEqualTo?: number; - /** Included in the specified list. */ - in?: number[]; - /** Is null (if `true` is specified) or is not null (if `false` is specified). */ - isNull?: boolean; - /** Less than the specified value. */ - lessThan?: number; - /** Less than or equal to the specified value. */ - lessThanOrEqualTo?: number; - /** Equal to the specified value, treating null like an ordinary value. */ - notDistinctFrom?: number; - /** Not equal to the specified value. */ - notEqualTo?: number; - /** Not included in the specified list. */ - notIn?: number[]; -} -/** A filter to be used against BitString fields. All fields are combined with a logical ‘and.’ */ -export interface BitStringFilter { - /** Not equal to the specified value, treating null like an ordinary value. */ - distinctFrom?: string; - /** Equal to the specified value. */ - equalTo?: string; - /** Greater than the specified value. */ - greaterThan?: string; - /** Greater than or equal to the specified value. */ - greaterThanOrEqualTo?: string; - /** Included in the specified list. */ - in?: string[]; - /** Is null (if `true` is specified) or is not null (if `false` is specified). */ - isNull?: boolean; - /** Less than the specified value. */ - lessThan?: string; - /** Less than or equal to the specified value. */ - lessThanOrEqualTo?: string; - /** Equal to the specified value, treating null like an ordinary value. */ - notDistinctFrom?: string; - /** Not equal to the specified value. */ - notEqualTo?: string; - /** Not included in the specified list. */ - notIn?: string[]; -} -/** A filter to be used against String fields. All fields are combined with a logical ‘and.’ */ -export interface StringFilter { - /** Not equal to the specified value, treating null like an ordinary value. */ - distinctFrom?: string; - /** Not equal to the specified value, treating null like an ordinary value (case-insensitive). */ - distinctFromInsensitive?: string; - /** Ends with the specified string (case-sensitive). */ - endsWith?: string; - /** Ends with the specified string (case-insensitive). */ - endsWithInsensitive?: string; - /** Equal to the specified value. */ - equalTo?: string; - /** Equal to the specified value (case-insensitive). */ - equalToInsensitive?: string; - /** Greater than the specified value. */ - greaterThan?: string; - /** Greater than the specified value (case-insensitive). */ - greaterThanInsensitive?: string; - /** Greater than or equal to the specified value. */ - greaterThanOrEqualTo?: string; - /** Greater than or equal to the specified value (case-insensitive). */ - greaterThanOrEqualToInsensitive?: string; - /** Included in the specified list. */ - in?: string[]; - /** Included in the specified list (case-insensitive). */ - inInsensitive?: string[]; - /** Contains the specified string (case-sensitive). */ - includes?: string; - /** Contains the specified string (case-insensitive). */ - includesInsensitive?: string; - /** Is null (if `true` is specified) or is not null (if `false` is specified). */ - isNull?: boolean; - /** Less than the specified value. */ - lessThan?: string; - /** Less than the specified value (case-insensitive). */ - lessThanInsensitive?: string; - /** Less than or equal to the specified value. */ - lessThanOrEqualTo?: string; - /** Less than or equal to the specified value (case-insensitive). */ - lessThanOrEqualToInsensitive?: string; - /** Matches the specified pattern (case-sensitive). An underscore (_) matches any single character; a percent sign (%) matches any sequence of zero or more characters. */ - like?: string; - /** Matches the specified pattern (case-insensitive). An underscore (_) matches any single character; a percent sign (%) matches any sequence of zero or more characters. */ - likeInsensitive?: string; - /** Equal to the specified value, treating null like an ordinary value. */ - notDistinctFrom?: string; - /** Equal to the specified value, treating null like an ordinary value (case-insensitive). */ - notDistinctFromInsensitive?: string; - /** Does not end with the specified string (case-sensitive). */ - notEndsWith?: string; - /** Does not end with the specified string (case-insensitive). */ - notEndsWithInsensitive?: string; - /** Not equal to the specified value. */ - notEqualTo?: string; - /** Not equal to the specified value (case-insensitive). */ - notEqualToInsensitive?: string; - /** Not included in the specified list. */ - notIn?: string[]; - /** Not included in the specified list (case-insensitive). */ - notInInsensitive?: string[]; - /** Does not contain the specified string (case-sensitive). */ - notIncludes?: string; - /** Does not contain the specified string (case-insensitive). */ - notIncludesInsensitive?: 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; - /** Does not match the specified pattern (case-insensitive). An underscore (_) matches any single character; a percent sign (%) matches any sequence of zero or more characters. */ - notLikeInsensitive?: string; - /** Does not start with the specified string (case-sensitive). */ - notStartsWith?: string; - /** Does not start with the specified string (case-insensitive). */ - notStartsWithInsensitive?: string; - /** Starts with the specified string (case-sensitive). */ - startsWith?: string; - /** Starts with the specified string (case-insensitive). */ - startsWithInsensitive?: string; -} -/** A connection to a list of `AppPermission` values. */ // ============ Payload/Return Types (for custom operations) ============ -export interface AppPermissionConnection { - edges: AppPermissionEdge[]; - nodes: AppPermission[]; - pageInfo: PageInfo; - totalCount: number; -} -export type AppPermissionConnectionSelect = { - edges?: { - select: AppPermissionEdgeSelect; - }; - nodes?: { - select: AppPermissionSelect; - }; - pageInfo?: { - select: PageInfoSelect; - }; - totalCount?: boolean; -}; -/** A connection to a list of `OrgPermission` values. */ -export interface OrgPermissionConnection { - edges: OrgPermissionEdge[]; - nodes: OrgPermission[]; - pageInfo: PageInfo; - totalCount: number; -} -export type OrgPermissionConnectionSelect = { - edges?: { - select: OrgPermissionEdgeSelect; - }; - nodes?: { - select: OrgPermissionSelect; - }; - pageInfo?: { - select: PageInfoSelect; - }; - totalCount?: boolean; -}; export interface ProvisionBucketPayload { /** The access type applied */ accessType: string; @@ -4255,18 +3464,108 @@ export type UpdateAppAdminGrantPayloadSelect = { }; clientMutationId?: boolean; }; -export interface DeleteAppAdminGrantPayload { - /** The `AppAdminGrant` that was deleted by this mutation. */ - appAdminGrant?: AppAdminGrant | null; - appAdminGrantEdge?: AppAdminGrantEdge | null; +export interface DeleteAppAdminGrantPayload { + /** The `AppAdminGrant` that was deleted by this mutation. */ + appAdminGrant?: AppAdminGrant | null; + appAdminGrantEdge?: AppAdminGrantEdge | null; + clientMutationId?: string | null; +} +export type DeleteAppAdminGrantPayloadSelect = { + appAdminGrant?: { + select: AppAdminGrantSelect; + }; + appAdminGrantEdge?: { + select: AppAdminGrantEdgeSelect; + }; + clientMutationId?: boolean; +}; +export interface CreateAppCapabilityDefaultCapabilityPayload { + /** The `AppCapabilityDefaultCapability` that was created by this mutation. */ + appCapabilityDefaultCapability?: AppCapabilityDefaultCapability | null; + appCapabilityDefaultCapabilityEdge?: AppCapabilityDefaultCapabilityEdge | null; + clientMutationId?: string | null; +} +export type CreateAppCapabilityDefaultCapabilityPayloadSelect = { + appCapabilityDefaultCapability?: { + select: AppCapabilityDefaultCapabilitySelect; + }; + appCapabilityDefaultCapabilityEdge?: { + select: AppCapabilityDefaultCapabilityEdgeSelect; + }; + clientMutationId?: boolean; +}; +export interface UpdateAppCapabilityDefaultCapabilityPayload { + /** The `AppCapabilityDefaultCapability` that was updated by this mutation. */ + appCapabilityDefaultCapability?: AppCapabilityDefaultCapability | null; + appCapabilityDefaultCapabilityEdge?: AppCapabilityDefaultCapabilityEdge | null; + clientMutationId?: string | null; +} +export type UpdateAppCapabilityDefaultCapabilityPayloadSelect = { + appCapabilityDefaultCapability?: { + select: AppCapabilityDefaultCapabilitySelect; + }; + appCapabilityDefaultCapabilityEdge?: { + select: AppCapabilityDefaultCapabilityEdgeSelect; + }; + clientMutationId?: boolean; +}; +export interface DeleteAppCapabilityDefaultCapabilityPayload { + /** The `AppCapabilityDefaultCapability` that was deleted by this mutation. */ + appCapabilityDefaultCapability?: AppCapabilityDefaultCapability | null; + appCapabilityDefaultCapabilityEdge?: AppCapabilityDefaultCapabilityEdge | null; + clientMutationId?: string | null; +} +export type DeleteAppCapabilityDefaultCapabilityPayloadSelect = { + appCapabilityDefaultCapability?: { + select: AppCapabilityDefaultCapabilitySelect; + }; + appCapabilityDefaultCapabilityEdge?: { + select: AppCapabilityDefaultCapabilityEdgeSelect; + }; + clientMutationId?: boolean; +}; +export interface CreateAppCapabilityDefaultGrantPayload { + /** The `AppCapabilityDefaultGrant` that was created by this mutation. */ + appCapabilityDefaultGrant?: AppCapabilityDefaultGrant | null; + appCapabilityDefaultGrantEdge?: AppCapabilityDefaultGrantEdge | null; + clientMutationId?: string | null; +} +export type CreateAppCapabilityDefaultGrantPayloadSelect = { + appCapabilityDefaultGrant?: { + select: AppCapabilityDefaultGrantSelect; + }; + appCapabilityDefaultGrantEdge?: { + select: AppCapabilityDefaultGrantEdgeSelect; + }; + clientMutationId?: boolean; +}; +export interface UpdateAppCapabilityDefaultGrantPayload { + /** The `AppCapabilityDefaultGrant` that was updated by this mutation. */ + appCapabilityDefaultGrant?: AppCapabilityDefaultGrant | null; + appCapabilityDefaultGrantEdge?: AppCapabilityDefaultGrantEdge | null; + clientMutationId?: string | null; +} +export type UpdateAppCapabilityDefaultGrantPayloadSelect = { + appCapabilityDefaultGrant?: { + select: AppCapabilityDefaultGrantSelect; + }; + appCapabilityDefaultGrantEdge?: { + select: AppCapabilityDefaultGrantEdgeSelect; + }; + clientMutationId?: boolean; +}; +export interface DeleteAppCapabilityDefaultGrantPayload { + /** The `AppCapabilityDefaultGrant` that was deleted by this mutation. */ + appCapabilityDefaultGrant?: AppCapabilityDefaultGrant | null; + appCapabilityDefaultGrantEdge?: AppCapabilityDefaultGrantEdge | null; clientMutationId?: string | null; } -export type DeleteAppAdminGrantPayloadSelect = { - appAdminGrant?: { - select: AppAdminGrantSelect; +export type DeleteAppCapabilityDefaultGrantPayloadSelect = { + appCapabilityDefaultGrant?: { + select: AppCapabilityDefaultGrantSelect; }; - appAdminGrantEdge?: { - select: AppAdminGrantEdgeSelect; + appCapabilityDefaultGrantEdge?: { + select: AppCapabilityDefaultGrantEdgeSelect; }; clientMutationId?: boolean; }; @@ -4540,186 +3839,6 @@ export type DeleteAppOwnerGrantPayloadSelect = { }; clientMutationId?: boolean; }; -export interface CreateAppPermissionPayload { - /** The `AppPermission` that was created by this mutation. */ - appPermission?: AppPermission | null; - appPermissionEdge?: AppPermissionEdge | null; - clientMutationId?: string | null; -} -export type CreateAppPermissionPayloadSelect = { - appPermission?: { - select: AppPermissionSelect; - }; - appPermissionEdge?: { - select: AppPermissionEdgeSelect; - }; - clientMutationId?: boolean; -}; -export interface UpdateAppPermissionPayload { - /** The `AppPermission` that was updated by this mutation. */ - appPermission?: AppPermission | null; - appPermissionEdge?: AppPermissionEdge | null; - clientMutationId?: string | null; -} -export type UpdateAppPermissionPayloadSelect = { - appPermission?: { - select: AppPermissionSelect; - }; - appPermissionEdge?: { - select: AppPermissionEdgeSelect; - }; - clientMutationId?: boolean; -}; -export interface DeleteAppPermissionPayload { - /** The `AppPermission` that was deleted by this mutation. */ - appPermission?: AppPermission | null; - appPermissionEdge?: AppPermissionEdge | null; - clientMutationId?: string | null; -} -export type DeleteAppPermissionPayloadSelect = { - appPermission?: { - select: AppPermissionSelect; - }; - appPermissionEdge?: { - select: AppPermissionEdgeSelect; - }; - clientMutationId?: boolean; -}; -export interface CreateAppPermissionDefaultPayload { - /** The `AppPermissionDefault` that was created by this mutation. */ - appPermissionDefault?: AppPermissionDefault | null; - appPermissionDefaultEdge?: AppPermissionDefaultEdge | null; - clientMutationId?: string | null; -} -export type CreateAppPermissionDefaultPayloadSelect = { - appPermissionDefault?: { - select: AppPermissionDefaultSelect; - }; - appPermissionDefaultEdge?: { - select: AppPermissionDefaultEdgeSelect; - }; - clientMutationId?: boolean; -}; -export interface UpdateAppPermissionDefaultPayload { - /** The `AppPermissionDefault` that was updated by this mutation. */ - appPermissionDefault?: AppPermissionDefault | null; - appPermissionDefaultEdge?: AppPermissionDefaultEdge | null; - clientMutationId?: string | null; -} -export type UpdateAppPermissionDefaultPayloadSelect = { - appPermissionDefault?: { - select: AppPermissionDefaultSelect; - }; - appPermissionDefaultEdge?: { - select: AppPermissionDefaultEdgeSelect; - }; - clientMutationId?: boolean; -}; -export interface DeleteAppPermissionDefaultPayload { - /** The `AppPermissionDefault` that was deleted by this mutation. */ - appPermissionDefault?: AppPermissionDefault | null; - appPermissionDefaultEdge?: AppPermissionDefaultEdge | null; - clientMutationId?: string | null; -} -export type DeleteAppPermissionDefaultPayloadSelect = { - appPermissionDefault?: { - select: AppPermissionDefaultSelect; - }; - appPermissionDefaultEdge?: { - select: AppPermissionDefaultEdgeSelect; - }; - clientMutationId?: boolean; -}; -export interface CreateAppPermissionDefaultGrantPayload { - /** The `AppPermissionDefaultGrant` that was created by this mutation. */ - appPermissionDefaultGrant?: AppPermissionDefaultGrant | null; - appPermissionDefaultGrantEdge?: AppPermissionDefaultGrantEdge | null; - clientMutationId?: string | null; -} -export type CreateAppPermissionDefaultGrantPayloadSelect = { - appPermissionDefaultGrant?: { - select: AppPermissionDefaultGrantSelect; - }; - appPermissionDefaultGrantEdge?: { - select: AppPermissionDefaultGrantEdgeSelect; - }; - clientMutationId?: boolean; -}; -export interface UpdateAppPermissionDefaultGrantPayload { - /** The `AppPermissionDefaultGrant` that was updated by this mutation. */ - appPermissionDefaultGrant?: AppPermissionDefaultGrant | null; - appPermissionDefaultGrantEdge?: AppPermissionDefaultGrantEdge | null; - clientMutationId?: string | null; -} -export type UpdateAppPermissionDefaultGrantPayloadSelect = { - appPermissionDefaultGrant?: { - select: AppPermissionDefaultGrantSelect; - }; - appPermissionDefaultGrantEdge?: { - select: AppPermissionDefaultGrantEdgeSelect; - }; - clientMutationId?: boolean; -}; -export interface DeleteAppPermissionDefaultGrantPayload { - /** The `AppPermissionDefaultGrant` that was deleted by this mutation. */ - appPermissionDefaultGrant?: AppPermissionDefaultGrant | null; - appPermissionDefaultGrantEdge?: AppPermissionDefaultGrantEdge | null; - clientMutationId?: string | null; -} -export type DeleteAppPermissionDefaultGrantPayloadSelect = { - appPermissionDefaultGrant?: { - select: AppPermissionDefaultGrantSelect; - }; - appPermissionDefaultGrantEdge?: { - select: AppPermissionDefaultGrantEdgeSelect; - }; - clientMutationId?: boolean; -}; -export interface CreateAppPermissionDefaultPermissionPayload { - /** The `AppPermissionDefaultPermission` that was created by this mutation. */ - appPermissionDefaultPermission?: AppPermissionDefaultPermission | null; - appPermissionDefaultPermissionEdge?: AppPermissionDefaultPermissionEdge | null; - clientMutationId?: string | null; -} -export type CreateAppPermissionDefaultPermissionPayloadSelect = { - appPermissionDefaultPermission?: { - select: AppPermissionDefaultPermissionSelect; - }; - appPermissionDefaultPermissionEdge?: { - select: AppPermissionDefaultPermissionEdgeSelect; - }; - clientMutationId?: boolean; -}; -export interface UpdateAppPermissionDefaultPermissionPayload { - /** The `AppPermissionDefaultPermission` that was updated by this mutation. */ - appPermissionDefaultPermission?: AppPermissionDefaultPermission | null; - appPermissionDefaultPermissionEdge?: AppPermissionDefaultPermissionEdge | null; - clientMutationId?: string | null; -} -export type UpdateAppPermissionDefaultPermissionPayloadSelect = { - appPermissionDefaultPermission?: { - select: AppPermissionDefaultPermissionSelect; - }; - appPermissionDefaultPermissionEdge?: { - select: AppPermissionDefaultPermissionEdgeSelect; - }; - clientMutationId?: boolean; -}; -export interface DeleteAppPermissionDefaultPermissionPayload { - /** The `AppPermissionDefaultPermission` that was deleted by this mutation. */ - appPermissionDefaultPermission?: AppPermissionDefaultPermission | null; - appPermissionDefaultPermissionEdge?: AppPermissionDefaultPermissionEdge | null; - clientMutationId?: string | null; -} -export type DeleteAppPermissionDefaultPermissionPayloadSelect = { - appPermissionDefaultPermission?: { - select: AppPermissionDefaultPermissionSelect; - }; - appPermissionDefaultPermissionEdge?: { - select: AppPermissionDefaultPermissionEdgeSelect; - }; - clientMutationId?: boolean; -}; export interface CreateMembershipTypePayload { clientMutationId?: string | null; /** The `MembershipType` that was created by this mutation. */ @@ -4810,6 +3929,96 @@ export type DeleteOrgAdminGrantPayloadSelect = { select: OrgAdminGrantEdgeSelect; }; }; +export interface CreateOrgCapabilityDefaultCapabilityPayload { + clientMutationId?: string | null; + /** The `OrgCapabilityDefaultCapability` that was created by this mutation. */ + orgCapabilityDefaultCapability?: OrgCapabilityDefaultCapability | null; + orgCapabilityDefaultCapabilityEdge?: OrgCapabilityDefaultCapabilityEdge | null; +} +export type CreateOrgCapabilityDefaultCapabilityPayloadSelect = { + clientMutationId?: boolean; + orgCapabilityDefaultCapability?: { + select: OrgCapabilityDefaultCapabilitySelect; + }; + orgCapabilityDefaultCapabilityEdge?: { + select: OrgCapabilityDefaultCapabilityEdgeSelect; + }; +}; +export interface UpdateOrgCapabilityDefaultCapabilityPayload { + clientMutationId?: string | null; + /** The `OrgCapabilityDefaultCapability` that was updated by this mutation. */ + orgCapabilityDefaultCapability?: OrgCapabilityDefaultCapability | null; + orgCapabilityDefaultCapabilityEdge?: OrgCapabilityDefaultCapabilityEdge | null; +} +export type UpdateOrgCapabilityDefaultCapabilityPayloadSelect = { + clientMutationId?: boolean; + orgCapabilityDefaultCapability?: { + select: OrgCapabilityDefaultCapabilitySelect; + }; + orgCapabilityDefaultCapabilityEdge?: { + select: OrgCapabilityDefaultCapabilityEdgeSelect; + }; +}; +export interface DeleteOrgCapabilityDefaultCapabilityPayload { + clientMutationId?: string | null; + /** The `OrgCapabilityDefaultCapability` that was deleted by this mutation. */ + orgCapabilityDefaultCapability?: OrgCapabilityDefaultCapability | null; + orgCapabilityDefaultCapabilityEdge?: OrgCapabilityDefaultCapabilityEdge | null; +} +export type DeleteOrgCapabilityDefaultCapabilityPayloadSelect = { + clientMutationId?: boolean; + orgCapabilityDefaultCapability?: { + select: OrgCapabilityDefaultCapabilitySelect; + }; + orgCapabilityDefaultCapabilityEdge?: { + select: OrgCapabilityDefaultCapabilityEdgeSelect; + }; +}; +export interface CreateOrgCapabilityDefaultGrantPayload { + clientMutationId?: string | null; + /** The `OrgCapabilityDefaultGrant` that was created by this mutation. */ + orgCapabilityDefaultGrant?: OrgCapabilityDefaultGrant | null; + orgCapabilityDefaultGrantEdge?: OrgCapabilityDefaultGrantEdge | null; +} +export type CreateOrgCapabilityDefaultGrantPayloadSelect = { + clientMutationId?: boolean; + orgCapabilityDefaultGrant?: { + select: OrgCapabilityDefaultGrantSelect; + }; + orgCapabilityDefaultGrantEdge?: { + select: OrgCapabilityDefaultGrantEdgeSelect; + }; +}; +export interface UpdateOrgCapabilityDefaultGrantPayload { + clientMutationId?: string | null; + /** The `OrgCapabilityDefaultGrant` that was updated by this mutation. */ + orgCapabilityDefaultGrant?: OrgCapabilityDefaultGrant | null; + orgCapabilityDefaultGrantEdge?: OrgCapabilityDefaultGrantEdge | null; +} +export type UpdateOrgCapabilityDefaultGrantPayloadSelect = { + clientMutationId?: boolean; + orgCapabilityDefaultGrant?: { + select: OrgCapabilityDefaultGrantSelect; + }; + orgCapabilityDefaultGrantEdge?: { + select: OrgCapabilityDefaultGrantEdgeSelect; + }; +}; +export interface DeleteOrgCapabilityDefaultGrantPayload { + clientMutationId?: string | null; + /** The `OrgCapabilityDefaultGrant` that was deleted by this mutation. */ + orgCapabilityDefaultGrant?: OrgCapabilityDefaultGrant | null; + orgCapabilityDefaultGrantEdge?: OrgCapabilityDefaultGrantEdge | null; +} +export type DeleteOrgCapabilityDefaultGrantPayloadSelect = { + clientMutationId?: boolean; + orgCapabilityDefaultGrant?: { + select: OrgCapabilityDefaultGrantSelect; + }; + orgCapabilityDefaultGrantEdge?: { + select: OrgCapabilityDefaultGrantEdgeSelect; + }; +}; export interface CreateOrgChartEdgePayload { clientMutationId?: string | null; /** The `OrgChartEdge` that was created by this mutation. */ @@ -5305,237 +4514,40 @@ export type DeleteOrgOwnerGrantPayloadSelect = { select: OrgOwnerGrantEdgeSelect; }; }; -export interface CreateOrgPermissionPayload { - clientMutationId?: string | null; - /** The `OrgPermission` that was created by this mutation. */ - orgPermission?: OrgPermission | null; - orgPermissionEdge?: OrgPermissionEdge | null; -} -export type CreateOrgPermissionPayloadSelect = { - clientMutationId?: boolean; - orgPermission?: { - select: OrgPermissionSelect; - }; - orgPermissionEdge?: { - select: OrgPermissionEdgeSelect; - }; -}; -export interface UpdateOrgPermissionPayload { - clientMutationId?: string | null; - /** The `OrgPermission` that was updated by this mutation. */ - orgPermission?: OrgPermission | null; - orgPermissionEdge?: OrgPermissionEdge | null; -} -export type UpdateOrgPermissionPayloadSelect = { - clientMutationId?: boolean; - orgPermission?: { - select: OrgPermissionSelect; - }; - orgPermissionEdge?: { - select: OrgPermissionEdgeSelect; - }; -}; -export interface DeleteOrgPermissionPayload { - clientMutationId?: string | null; - /** The `OrgPermission` that was deleted by this mutation. */ - orgPermission?: OrgPermission | null; - orgPermissionEdge?: OrgPermissionEdge | null; -} -export type DeleteOrgPermissionPayloadSelect = { - clientMutationId?: boolean; - orgPermission?: { - select: OrgPermissionSelect; - }; - orgPermissionEdge?: { - select: OrgPermissionEdgeSelect; - }; -}; -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 CreateOrgPermissionDefaultGrantPayload { - clientMutationId?: string | null; - /** The `OrgPermissionDefaultGrant` that was created by this mutation. */ - orgPermissionDefaultGrant?: OrgPermissionDefaultGrant | null; - orgPermissionDefaultGrantEdge?: OrgPermissionDefaultGrantEdge | null; -} -export type CreateOrgPermissionDefaultGrantPayloadSelect = { - clientMutationId?: boolean; - orgPermissionDefaultGrant?: { - select: OrgPermissionDefaultGrantSelect; - }; - orgPermissionDefaultGrantEdge?: { - select: OrgPermissionDefaultGrantEdgeSelect; - }; -}; -export interface UpdateOrgPermissionDefaultGrantPayload { - clientMutationId?: string | null; - /** The `OrgPermissionDefaultGrant` that was updated by this mutation. */ - orgPermissionDefaultGrant?: OrgPermissionDefaultGrant | null; - orgPermissionDefaultGrantEdge?: OrgPermissionDefaultGrantEdge | null; -} -export type UpdateOrgPermissionDefaultGrantPayloadSelect = { - clientMutationId?: boolean; - orgPermissionDefaultGrant?: { - select: OrgPermissionDefaultGrantSelect; - }; - orgPermissionDefaultGrantEdge?: { - select: OrgPermissionDefaultGrantEdgeSelect; - }; -}; -export interface DeleteOrgPermissionDefaultGrantPayload { - clientMutationId?: string | null; - /** The `OrgPermissionDefaultGrant` that was deleted by this mutation. */ - orgPermissionDefaultGrant?: OrgPermissionDefaultGrant | null; - orgPermissionDefaultGrantEdge?: OrgPermissionDefaultGrantEdge | null; -} -export type DeleteOrgPermissionDefaultGrantPayloadSelect = { - clientMutationId?: boolean; - orgPermissionDefaultGrant?: { - select: OrgPermissionDefaultGrantSelect; - }; - orgPermissionDefaultGrantEdge?: { - select: OrgPermissionDefaultGrantEdgeSelect; - }; -}; -export interface CreateOrgPermissionDefaultPermissionPayload { - clientMutationId?: string | null; - /** The `OrgPermissionDefaultPermission` that was created by this mutation. */ - orgPermissionDefaultPermission?: OrgPermissionDefaultPermission | null; - orgPermissionDefaultPermissionEdge?: OrgPermissionDefaultPermissionEdge | null; -} -export type CreateOrgPermissionDefaultPermissionPayloadSelect = { - clientMutationId?: boolean; - orgPermissionDefaultPermission?: { - select: OrgPermissionDefaultPermissionSelect; - }; - orgPermissionDefaultPermissionEdge?: { - select: OrgPermissionDefaultPermissionEdgeSelect; - }; -}; -export interface UpdateOrgPermissionDefaultPermissionPayload { - clientMutationId?: string | null; - /** The `OrgPermissionDefaultPermission` that was updated by this mutation. */ - orgPermissionDefaultPermission?: OrgPermissionDefaultPermission | null; - orgPermissionDefaultPermissionEdge?: OrgPermissionDefaultPermissionEdge | null; -} -export type UpdateOrgPermissionDefaultPermissionPayloadSelect = { - clientMutationId?: boolean; - orgPermissionDefaultPermission?: { - select: OrgPermissionDefaultPermissionSelect; - }; - orgPermissionDefaultPermissionEdge?: { - select: OrgPermissionDefaultPermissionEdgeSelect; - }; -}; -export interface DeleteOrgPermissionDefaultPermissionPayload { - clientMutationId?: string | null; - /** The `OrgPermissionDefaultPermission` that was deleted by this mutation. */ - orgPermissionDefaultPermission?: OrgPermissionDefaultPermission | null; - orgPermissionDefaultPermissionEdge?: OrgPermissionDefaultPermissionEdge | null; -} -export type DeleteOrgPermissionDefaultPermissionPayloadSelect = { - clientMutationId?: boolean; - orgPermissionDefaultPermission?: { - select: OrgPermissionDefaultPermissionSelect; - }; - orgPermissionDefaultPermissionEdge?: { - select: OrgPermissionDefaultPermissionEdgeSelect; - }; -}; -/** A `AppPermission` edge in the connection. */ -export interface AppPermissionEdge { +/** A `AppAdminGrant` edge in the connection. */ +export interface AppAdminGrantEdge { cursor?: string | null; - /** The `AppPermission` at the end of the edge. */ - node?: AppPermission | null; + /** The `AppAdminGrant` at the end of the edge. */ + node?: AppAdminGrant | null; } -export type AppPermissionEdgeSelect = { +export type AppAdminGrantEdgeSelect = { cursor?: boolean; node?: { - select: AppPermissionSelect; + select: AppAdminGrantSelect; }; }; -/** Information about pagination in a connection. */ -export interface PageInfo { - /** When paginating forwards, the cursor to continue. */ - endCursor?: string | null; - /** When paginating forwards, are there more items? */ - hasNextPage: boolean; - /** When paginating backwards, are there more items? */ - hasPreviousPage: boolean; - /** When paginating backwards, the cursor to continue. */ - startCursor?: string | null; -} -export type PageInfoSelect = { - endCursor?: boolean; - hasNextPage?: boolean; - hasPreviousPage?: boolean; - startCursor?: boolean; -}; -/** A `OrgPermission` edge in the connection. */ -export interface OrgPermissionEdge { +/** A `AppCapabilityDefaultCapability` edge in the connection. */ +export interface AppCapabilityDefaultCapabilityEdge { cursor?: string | null; - /** The `OrgPermission` at the end of the edge. */ - node?: OrgPermission | null; + /** The `AppCapabilityDefaultCapability` at the end of the edge. */ + node?: AppCapabilityDefaultCapability | null; } -export type OrgPermissionEdgeSelect = { +export type AppCapabilityDefaultCapabilityEdgeSelect = { cursor?: boolean; node?: { - select: OrgPermissionSelect; + select: AppCapabilityDefaultCapabilitySelect; }; }; -/** A `AppAdminGrant` edge in the connection. */ -export interface AppAdminGrantEdge { +/** A `AppCapabilityDefaultGrant` edge in the connection. */ +export interface AppCapabilityDefaultGrantEdge { cursor?: string | null; - /** The `AppAdminGrant` at the end of the edge. */ - node?: AppAdminGrant | null; + /** The `AppCapabilityDefaultGrant` at the end of the edge. */ + node?: AppCapabilityDefaultGrant | null; } -export type AppAdminGrantEdgeSelect = { +export type AppCapabilityDefaultGrantEdgeSelect = { cursor?: boolean; node?: { - select: AppAdminGrantSelect; + select: AppCapabilityDefaultGrantSelect; }; }; /** A `AppClaimedInvite` edge in the connection. */ @@ -5610,42 +4622,6 @@ export type AppOwnerGrantEdgeSelect = { select: AppOwnerGrantSelect; }; }; -/** A `AppPermissionDefault` edge in the connection. */ -export interface AppPermissionDefaultEdge { - cursor?: string | null; - /** The `AppPermissionDefault` at the end of the edge. */ - node?: AppPermissionDefault | null; -} -export type AppPermissionDefaultEdgeSelect = { - cursor?: boolean; - node?: { - select: AppPermissionDefaultSelect; - }; -}; -/** A `AppPermissionDefaultGrant` edge in the connection. */ -export interface AppPermissionDefaultGrantEdge { - cursor?: string | null; - /** The `AppPermissionDefaultGrant` at the end of the edge. */ - node?: AppPermissionDefaultGrant | null; -} -export type AppPermissionDefaultGrantEdgeSelect = { - cursor?: boolean; - node?: { - select: AppPermissionDefaultGrantSelect; - }; -}; -/** A `AppPermissionDefaultPermission` edge in the connection. */ -export interface AppPermissionDefaultPermissionEdge { - cursor?: string | null; - /** The `AppPermissionDefaultPermission` at the end of the edge. */ - node?: AppPermissionDefaultPermission | null; -} -export type AppPermissionDefaultPermissionEdgeSelect = { - cursor?: boolean; - node?: { - select: AppPermissionDefaultPermissionSelect; - }; -}; /** A `MembershipType` edge in the connection. */ export interface MembershipTypeEdge { cursor?: string | null; @@ -5670,6 +4646,30 @@ export type OrgAdminGrantEdgeSelect = { select: OrgAdminGrantSelect; }; }; +/** A `OrgCapabilityDefaultCapability` edge in the connection. */ +export interface OrgCapabilityDefaultCapabilityEdge { + cursor?: string | null; + /** The `OrgCapabilityDefaultCapability` at the end of the edge. */ + node?: OrgCapabilityDefaultCapability | null; +} +export type OrgCapabilityDefaultCapabilityEdgeSelect = { + cursor?: boolean; + node?: { + select: OrgCapabilityDefaultCapabilitySelect; + }; +}; +/** A `OrgCapabilityDefaultGrant` edge in the connection. */ +export interface OrgCapabilityDefaultGrantEdge { + cursor?: string | null; + /** The `OrgCapabilityDefaultGrant` at the end of the edge. */ + node?: OrgCapabilityDefaultGrant | null; +} +export type OrgCapabilityDefaultGrantEdgeSelect = { + cursor?: boolean; + node?: { + select: OrgCapabilityDefaultGrantSelect; + }; +}; /** A `OrgChartEdge` edge in the connection. */ export interface OrgChartEdgeEdge { cursor?: string | null; @@ -5802,39 +4802,3 @@ export type OrgOwnerGrantEdgeSelect = { select: OrgOwnerGrantSelect; }; }; -/** A `OrgPermissionDefault` edge in the connection. */ -export interface OrgPermissionDefaultEdge { - cursor?: string | null; - /** The `OrgPermissionDefault` at the end of the edge. */ - node?: OrgPermissionDefault | null; -} -export type OrgPermissionDefaultEdgeSelect = { - cursor?: boolean; - node?: { - select: OrgPermissionDefaultSelect; - }; -}; -/** A `OrgPermissionDefaultGrant` edge in the connection. */ -export interface OrgPermissionDefaultGrantEdge { - cursor?: string | null; - /** The `OrgPermissionDefaultGrant` at the end of the edge. */ - node?: OrgPermissionDefaultGrant | null; -} -export type OrgPermissionDefaultGrantEdgeSelect = { - cursor?: boolean; - node?: { - select: OrgPermissionDefaultGrantSelect; - }; -}; -/** A `OrgPermissionDefaultPermission` edge in the connection. */ -export interface OrgPermissionDefaultPermissionEdge { - cursor?: string | null; - /** The `OrgPermissionDefaultPermission` at the end of the edge. */ - node?: OrgPermissionDefaultPermission | null; -} -export type OrgPermissionDefaultPermissionEdgeSelect = { - cursor?: boolean; - node?: { - select: OrgPermissionDefaultPermissionSelect; - }; -}; diff --git a/sdk/constructive-cli/src/admin/orm/models/appCapabilityDefaultCapability.ts b/sdk/constructive-cli/src/admin/orm/models/appCapabilityDefaultCapability.ts new file mode 100644 index 0000000000..2f90833f58 --- /dev/null +++ b/sdk/constructive-cli/src/admin/orm/models/appCapabilityDefaultCapability.ts @@ -0,0 +1,273 @@ +/** + * AppCapabilityDefaultCapability 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 { + AppCapabilityDefaultCapability, + AppCapabilityDefaultCapabilityWithRelations, + AppCapabilityDefaultCapabilitySelect, + AppCapabilityDefaultCapabilityFilter, + AppCapabilityDefaultCapabilityOrderBy, + CreateAppCapabilityDefaultCapabilityInput, + UpdateAppCapabilityDefaultCapabilityInput, + AppCapabilityDefaultCapabilityPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class AppCapabilityDefaultCapabilityModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs< + S, + AppCapabilityDefaultCapabilityFilter, + AppCapabilityDefaultCapabilityOrderBy + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + appCapabilityDefaultCapabilities: ConnectionResult< + InferSelectResult + >; + }> { + const { document, variables } = buildFindManyDocument( + 'AppCapabilityDefaultCapability', + 'appCapabilityDefaultCapabilities', + 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, + }, + 'AppCapabilityDefaultCapabilityFilter', + 'AppCapabilityDefaultCapabilityOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'AppCapabilityDefaultCapability', + fieldName: 'appCapabilityDefaultCapabilities', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs< + S, + AppCapabilityDefaultCapabilityFilter, + AppCapabilityDefaultCapabilityOrderBy + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + appCapabilityDefaultCapability: InferSelectResult< + AppCapabilityDefaultCapabilityWithRelations, + S + > | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'AppCapabilityDefaultCapability', + 'appCapabilityDefaultCapabilities', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'AppCapabilityDefaultCapabilityFilter', + 'AppCapabilityDefaultCapabilityOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'AppCapabilityDefaultCapability', + fieldName: 'appCapabilityDefaultCapability', + document, + variables, + transform: (data: { + appCapabilityDefaultCapabilities?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + appCapabilityDefaultCapability: data.appCapabilityDefaultCapabilities?.nodes?.[0] ?? null, + }), + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + appCapabilityDefaultCapability: InferSelectResult< + AppCapabilityDefaultCapabilityWithRelations, + S + > | null; + }> { + const { document, variables } = buildFindManyDocument( + 'AppCapabilityDefaultCapability', + 'appCapabilityDefaultCapabilities', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'AppCapabilityDefaultCapabilityFilter', + 'AppCapabilityDefaultCapabilityOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'AppCapabilityDefaultCapability', + fieldName: 'appCapabilityDefaultCapability', + document, + variables, + transform: (data: { + appCapabilityDefaultCapabilities?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + appCapabilityDefaultCapability: data.appCapabilityDefaultCapabilities?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs< + S, + CreateAppCapabilityDefaultCapabilityInput['appCapabilityDefaultCapability'] + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createAppCapabilityDefaultCapability: { + appCapabilityDefaultCapability: InferSelectResult< + AppCapabilityDefaultCapabilityWithRelations, + S + >; + }; + }> { + const { document, variables } = buildCreateDocument( + 'AppCapabilityDefaultCapability', + 'createAppCapabilityDefaultCapability', + 'appCapabilityDefaultCapability', + args.select, + args.data, + 'CreateAppCapabilityDefaultCapabilityInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'AppCapabilityDefaultCapability', + fieldName: 'createAppCapabilityDefaultCapability', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + AppCapabilityDefaultCapabilityPatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateAppCapabilityDefaultCapability: { + appCapabilityDefaultCapability: InferSelectResult< + AppCapabilityDefaultCapabilityWithRelations, + S + >; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'AppCapabilityDefaultCapability', + 'updateAppCapabilityDefaultCapability', + 'appCapabilityDefaultCapability', + args.select, + args.where.id, + args.data, + 'UpdateAppCapabilityDefaultCapabilityInput', + 'id', + 'appCapabilityDefaultCapabilityPatch', + connectionFieldsMap, + undefined + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'AppCapabilityDefaultCapability', + fieldName: 'updateAppCapabilityDefaultCapability', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteAppCapabilityDefaultCapability: { + appCapabilityDefaultCapability: InferSelectResult< + AppCapabilityDefaultCapabilityWithRelations, + S + >; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'AppCapabilityDefaultCapability', + 'deleteAppCapabilityDefaultCapability', + 'appCapabilityDefaultCapability', + { + id: args.where.id, + }, + 'DeleteAppCapabilityDefaultCapabilityInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'AppCapabilityDefaultCapability', + fieldName: 'deleteAppCapabilityDefaultCapability', + document, + variables, + }); + } +} diff --git a/sdk/constructive-cli/src/admin/orm/models/appCapabilityDefaultGrant.ts b/sdk/constructive-cli/src/admin/orm/models/appCapabilityDefaultGrant.ts new file mode 100644 index 0000000000..174d579999 --- /dev/null +++ b/sdk/constructive-cli/src/admin/orm/models/appCapabilityDefaultGrant.ts @@ -0,0 +1,247 @@ +/** + * AppCapabilityDefaultGrant 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 { + AppCapabilityDefaultGrant, + AppCapabilityDefaultGrantWithRelations, + AppCapabilityDefaultGrantSelect, + AppCapabilityDefaultGrantFilter, + AppCapabilityDefaultGrantOrderBy, + CreateAppCapabilityDefaultGrantInput, + UpdateAppCapabilityDefaultGrantInput, + AppCapabilityDefaultGrantPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class AppCapabilityDefaultGrantModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + appCapabilityDefaultGrants: ConnectionResult< + InferSelectResult + >; + }> { + const { document, variables } = buildFindManyDocument( + 'AppCapabilityDefaultGrant', + 'appCapabilityDefaultGrants', + 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, + }, + 'AppCapabilityDefaultGrantFilter', + 'AppCapabilityDefaultGrantOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'AppCapabilityDefaultGrant', + fieldName: 'appCapabilityDefaultGrants', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + appCapabilityDefaultGrant: InferSelectResult | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'AppCapabilityDefaultGrant', + 'appCapabilityDefaultGrants', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'AppCapabilityDefaultGrantFilter', + 'AppCapabilityDefaultGrantOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'AppCapabilityDefaultGrant', + fieldName: 'appCapabilityDefaultGrant', + document, + variables, + transform: (data: { + appCapabilityDefaultGrants?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + appCapabilityDefaultGrant: data.appCapabilityDefaultGrants?.nodes?.[0] ?? null, + }), + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + appCapabilityDefaultGrant: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'AppCapabilityDefaultGrant', + 'appCapabilityDefaultGrants', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'AppCapabilityDefaultGrantFilter', + 'AppCapabilityDefaultGrantOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'AppCapabilityDefaultGrant', + fieldName: 'appCapabilityDefaultGrant', + document, + variables, + transform: (data: { + appCapabilityDefaultGrants?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + appCapabilityDefaultGrant: data.appCapabilityDefaultGrants?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createAppCapabilityDefaultGrant: { + appCapabilityDefaultGrant: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'AppCapabilityDefaultGrant', + 'createAppCapabilityDefaultGrant', + 'appCapabilityDefaultGrant', + args.select, + args.data, + 'CreateAppCapabilityDefaultGrantInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'AppCapabilityDefaultGrant', + fieldName: 'createAppCapabilityDefaultGrant', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + AppCapabilityDefaultGrantPatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateAppCapabilityDefaultGrant: { + appCapabilityDefaultGrant: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'AppCapabilityDefaultGrant', + 'updateAppCapabilityDefaultGrant', + 'appCapabilityDefaultGrant', + args.select, + args.where.id, + args.data, + 'UpdateAppCapabilityDefaultGrantInput', + 'id', + 'appCapabilityDefaultGrantPatch', + connectionFieldsMap, + undefined + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'AppCapabilityDefaultGrant', + fieldName: 'updateAppCapabilityDefaultGrant', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteAppCapabilityDefaultGrant: { + appCapabilityDefaultGrant: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'AppCapabilityDefaultGrant', + 'deleteAppCapabilityDefaultGrant', + 'appCapabilityDefaultGrant', + { + id: args.where.id, + }, + 'DeleteAppCapabilityDefaultGrantInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'AppCapabilityDefaultGrant', + fieldName: 'deleteAppCapabilityDefaultGrant', + document, + variables, + }); + } +} diff --git a/sdk/constructive-cli/src/admin/orm/models/appPermissionDefault.ts b/sdk/constructive-cli/src/admin/orm/models/appPermissionDefault.ts deleted file mode 100644 index c967364f31..0000000000 --- a/sdk/constructive-cli/src/admin/orm/models/appPermissionDefault.ts +++ /dev/null @@ -1,247 +0,0 @@ -/** - * AppPermissionDefault 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 { - AppPermissionDefault, - AppPermissionDefaultWithRelations, - AppPermissionDefaultSelect, - AppPermissionDefaultFilter, - AppPermissionDefaultOrderBy, - CreateAppPermissionDefaultInput, - UpdateAppPermissionDefaultInput, - AppPermissionDefaultPatch, -} from '../input-types'; -import { connectionFieldsMap } from '../input-types'; -export class AppPermissionDefaultModel { - constructor(private client: OrmClient) {} - findMany( - args: FindManyArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - appPermissionDefaults: ConnectionResult< - InferSelectResult - >; - }> { - const { document, variables } = buildFindManyDocument( - 'AppPermissionDefault', - 'appPermissionDefaults', - 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, - }, - 'AppPermissionDefaultFilter', - 'AppPermissionDefaultOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'AppPermissionDefault', - fieldName: 'appPermissionDefaults', - document, - variables, - }); - } - findFirst( - args: FindFirstArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - appPermissionDefault: InferSelectResult | null; - }> { - const { document, variables } = buildFindFirstDocument( - 'AppPermissionDefault', - 'appPermissionDefaults', - args.select, - { - where: args?.where, - orderBy: args?.orderBy as string[] | undefined, - }, - 'AppPermissionDefaultFilter', - 'AppPermissionDefaultOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'AppPermissionDefault', - fieldName: 'appPermissionDefault', - document, - variables, - transform: (data: { - appPermissionDefaults?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - appPermissionDefault: data.appPermissionDefaults?.nodes?.[0] ?? null, - }), - }); - } - findOne( - args: { - id: string; - select: S; - } & StrictSelect - ): QueryBuilder<{ - appPermissionDefault: InferSelectResult | null; - }> { - const { document, variables } = buildFindManyDocument( - 'AppPermissionDefault', - 'appPermissionDefaults', - args.select, - { - where: { - id: { - equalTo: args.id, - }, - }, - first: 1, - }, - 'AppPermissionDefaultFilter', - 'AppPermissionDefaultOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'AppPermissionDefault', - fieldName: 'appPermissionDefault', - document, - variables, - transform: (data: { - appPermissionDefaults?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - appPermissionDefault: data.appPermissionDefaults?.nodes?.[0] ?? null, - }), - }); - } - create( - args: CreateArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createAppPermissionDefault: { - appPermissionDefault: InferSelectResult; - }; - }> { - const { document, variables } = buildCreateDocument( - 'AppPermissionDefault', - 'createAppPermissionDefault', - 'appPermissionDefault', - args.select, - args.data, - 'CreateAppPermissionDefaultInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'AppPermissionDefault', - fieldName: 'createAppPermissionDefault', - document, - variables, - }); - } - update( - args: UpdateArgs< - S, - { - id: string; - }, - AppPermissionDefaultPatch - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - updateAppPermissionDefault: { - appPermissionDefault: InferSelectResult; - }; - }> { - const { document, variables } = buildUpdateByPkDocument( - 'AppPermissionDefault', - 'updateAppPermissionDefault', - 'appPermissionDefault', - args.select, - args.where.id, - args.data, - 'UpdateAppPermissionDefaultInput', - 'id', - 'appPermissionDefaultPatch', - connectionFieldsMap, - undefined - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'AppPermissionDefault', - fieldName: 'updateAppPermissionDefault', - document, - variables, - }); - } - delete( - args: DeleteArgs< - { - id: string; - }, - S - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - deleteAppPermissionDefault: { - appPermissionDefault: InferSelectResult; - }; - }> { - const { document, variables } = buildDeleteByPkDocument( - 'AppPermissionDefault', - 'deleteAppPermissionDefault', - 'appPermissionDefault', - { - id: args.where.id, - }, - 'DeleteAppPermissionDefaultInput', - args.select, - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'AppPermissionDefault', - fieldName: 'deleteAppPermissionDefault', - document, - variables, - }); - } -} diff --git a/sdk/constructive-cli/src/admin/orm/models/appPermissionDefaultGrant.ts b/sdk/constructive-cli/src/admin/orm/models/appPermissionDefaultGrant.ts deleted file mode 100644 index b6a3b10748..0000000000 --- a/sdk/constructive-cli/src/admin/orm/models/appPermissionDefaultGrant.ts +++ /dev/null @@ -1,247 +0,0 @@ -/** - * AppPermissionDefaultGrant 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 { - AppPermissionDefaultGrant, - AppPermissionDefaultGrantWithRelations, - AppPermissionDefaultGrantSelect, - AppPermissionDefaultGrantFilter, - AppPermissionDefaultGrantOrderBy, - CreateAppPermissionDefaultGrantInput, - UpdateAppPermissionDefaultGrantInput, - AppPermissionDefaultGrantPatch, -} from '../input-types'; -import { connectionFieldsMap } from '../input-types'; -export class AppPermissionDefaultGrantModel { - constructor(private client: OrmClient) {} - findMany( - args: FindManyArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - appPermissionDefaultGrants: ConnectionResult< - InferSelectResult - >; - }> { - const { document, variables } = buildFindManyDocument( - 'AppPermissionDefaultGrant', - 'appPermissionDefaultGrants', - 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, - }, - 'AppPermissionDefaultGrantFilter', - 'AppPermissionDefaultGrantOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'AppPermissionDefaultGrant', - fieldName: 'appPermissionDefaultGrants', - document, - variables, - }); - } - findFirst( - args: FindFirstArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - appPermissionDefaultGrant: InferSelectResult | null; - }> { - const { document, variables } = buildFindFirstDocument( - 'AppPermissionDefaultGrant', - 'appPermissionDefaultGrants', - args.select, - { - where: args?.where, - orderBy: args?.orderBy as string[] | undefined, - }, - 'AppPermissionDefaultGrantFilter', - 'AppPermissionDefaultGrantOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'AppPermissionDefaultGrant', - fieldName: 'appPermissionDefaultGrant', - document, - variables, - transform: (data: { - appPermissionDefaultGrants?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - appPermissionDefaultGrant: data.appPermissionDefaultGrants?.nodes?.[0] ?? null, - }), - }); - } - findOne( - args: { - id: string; - select: S; - } & StrictSelect - ): QueryBuilder<{ - appPermissionDefaultGrant: InferSelectResult | null; - }> { - const { document, variables } = buildFindManyDocument( - 'AppPermissionDefaultGrant', - 'appPermissionDefaultGrants', - args.select, - { - where: { - id: { - equalTo: args.id, - }, - }, - first: 1, - }, - 'AppPermissionDefaultGrantFilter', - 'AppPermissionDefaultGrantOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'AppPermissionDefaultGrant', - fieldName: 'appPermissionDefaultGrant', - document, - variables, - transform: (data: { - appPermissionDefaultGrants?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - appPermissionDefaultGrant: data.appPermissionDefaultGrants?.nodes?.[0] ?? null, - }), - }); - } - create( - args: CreateArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createAppPermissionDefaultGrant: { - appPermissionDefaultGrant: InferSelectResult; - }; - }> { - const { document, variables } = buildCreateDocument( - 'AppPermissionDefaultGrant', - 'createAppPermissionDefaultGrant', - 'appPermissionDefaultGrant', - args.select, - args.data, - 'CreateAppPermissionDefaultGrantInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'AppPermissionDefaultGrant', - fieldName: 'createAppPermissionDefaultGrant', - document, - variables, - }); - } - update( - args: UpdateArgs< - S, - { - id: string; - }, - AppPermissionDefaultGrantPatch - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - updateAppPermissionDefaultGrant: { - appPermissionDefaultGrant: InferSelectResult; - }; - }> { - const { document, variables } = buildUpdateByPkDocument( - 'AppPermissionDefaultGrant', - 'updateAppPermissionDefaultGrant', - 'appPermissionDefaultGrant', - args.select, - args.where.id, - args.data, - 'UpdateAppPermissionDefaultGrantInput', - 'id', - 'appPermissionDefaultGrantPatch', - connectionFieldsMap, - undefined - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'AppPermissionDefaultGrant', - fieldName: 'updateAppPermissionDefaultGrant', - document, - variables, - }); - } - delete( - args: DeleteArgs< - { - id: string; - }, - S - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - deleteAppPermissionDefaultGrant: { - appPermissionDefaultGrant: InferSelectResult; - }; - }> { - const { document, variables } = buildDeleteByPkDocument( - 'AppPermissionDefaultGrant', - 'deleteAppPermissionDefaultGrant', - 'appPermissionDefaultGrant', - { - id: args.where.id, - }, - 'DeleteAppPermissionDefaultGrantInput', - args.select, - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'AppPermissionDefaultGrant', - fieldName: 'deleteAppPermissionDefaultGrant', - document, - variables, - }); - } -} diff --git a/sdk/constructive-cli/src/admin/orm/models/appPermissionDefaultPermission.ts b/sdk/constructive-cli/src/admin/orm/models/appPermissionDefaultPermission.ts deleted file mode 100644 index 6e47d9eeec..0000000000 --- a/sdk/constructive-cli/src/admin/orm/models/appPermissionDefaultPermission.ts +++ /dev/null @@ -1,273 +0,0 @@ -/** - * AppPermissionDefaultPermission 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 { - AppPermissionDefaultPermission, - AppPermissionDefaultPermissionWithRelations, - AppPermissionDefaultPermissionSelect, - AppPermissionDefaultPermissionFilter, - AppPermissionDefaultPermissionOrderBy, - CreateAppPermissionDefaultPermissionInput, - UpdateAppPermissionDefaultPermissionInput, - AppPermissionDefaultPermissionPatch, -} from '../input-types'; -import { connectionFieldsMap } from '../input-types'; -export class AppPermissionDefaultPermissionModel { - constructor(private client: OrmClient) {} - findMany( - args: FindManyArgs< - S, - AppPermissionDefaultPermissionFilter, - AppPermissionDefaultPermissionOrderBy - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - appPermissionDefaultPermissions: ConnectionResult< - InferSelectResult - >; - }> { - const { document, variables } = buildFindManyDocument( - 'AppPermissionDefaultPermission', - 'appPermissionDefaultPermissions', - 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, - }, - 'AppPermissionDefaultPermissionFilter', - 'AppPermissionDefaultPermissionOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'AppPermissionDefaultPermission', - fieldName: 'appPermissionDefaultPermissions', - document, - variables, - }); - } - findFirst( - args: FindFirstArgs< - S, - AppPermissionDefaultPermissionFilter, - AppPermissionDefaultPermissionOrderBy - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - appPermissionDefaultPermission: InferSelectResult< - AppPermissionDefaultPermissionWithRelations, - S - > | null; - }> { - const { document, variables } = buildFindFirstDocument( - 'AppPermissionDefaultPermission', - 'appPermissionDefaultPermissions', - args.select, - { - where: args?.where, - orderBy: args?.orderBy as string[] | undefined, - }, - 'AppPermissionDefaultPermissionFilter', - 'AppPermissionDefaultPermissionOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'AppPermissionDefaultPermission', - fieldName: 'appPermissionDefaultPermission', - document, - variables, - transform: (data: { - appPermissionDefaultPermissions?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - appPermissionDefaultPermission: data.appPermissionDefaultPermissions?.nodes?.[0] ?? null, - }), - }); - } - findOne( - args: { - id: string; - select: S; - } & StrictSelect - ): QueryBuilder<{ - appPermissionDefaultPermission: InferSelectResult< - AppPermissionDefaultPermissionWithRelations, - S - > | null; - }> { - const { document, variables } = buildFindManyDocument( - 'AppPermissionDefaultPermission', - 'appPermissionDefaultPermissions', - args.select, - { - where: { - id: { - equalTo: args.id, - }, - }, - first: 1, - }, - 'AppPermissionDefaultPermissionFilter', - 'AppPermissionDefaultPermissionOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'AppPermissionDefaultPermission', - fieldName: 'appPermissionDefaultPermission', - document, - variables, - transform: (data: { - appPermissionDefaultPermissions?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - appPermissionDefaultPermission: data.appPermissionDefaultPermissions?.nodes?.[0] ?? null, - }), - }); - } - create( - args: CreateArgs< - S, - CreateAppPermissionDefaultPermissionInput['appPermissionDefaultPermission'] - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createAppPermissionDefaultPermission: { - appPermissionDefaultPermission: InferSelectResult< - AppPermissionDefaultPermissionWithRelations, - S - >; - }; - }> { - const { document, variables } = buildCreateDocument( - 'AppPermissionDefaultPermission', - 'createAppPermissionDefaultPermission', - 'appPermissionDefaultPermission', - args.select, - args.data, - 'CreateAppPermissionDefaultPermissionInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'AppPermissionDefaultPermission', - fieldName: 'createAppPermissionDefaultPermission', - document, - variables, - }); - } - update( - args: UpdateArgs< - S, - { - id: string; - }, - AppPermissionDefaultPermissionPatch - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - updateAppPermissionDefaultPermission: { - appPermissionDefaultPermission: InferSelectResult< - AppPermissionDefaultPermissionWithRelations, - S - >; - }; - }> { - const { document, variables } = buildUpdateByPkDocument( - 'AppPermissionDefaultPermission', - 'updateAppPermissionDefaultPermission', - 'appPermissionDefaultPermission', - args.select, - args.where.id, - args.data, - 'UpdateAppPermissionDefaultPermissionInput', - 'id', - 'appPermissionDefaultPermissionPatch', - connectionFieldsMap, - undefined - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'AppPermissionDefaultPermission', - fieldName: 'updateAppPermissionDefaultPermission', - document, - variables, - }); - } - delete( - args: DeleteArgs< - { - id: string; - }, - S - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - deleteAppPermissionDefaultPermission: { - appPermissionDefaultPermission: InferSelectResult< - AppPermissionDefaultPermissionWithRelations, - S - >; - }; - }> { - const { document, variables } = buildDeleteByPkDocument( - 'AppPermissionDefaultPermission', - 'deleteAppPermissionDefaultPermission', - 'appPermissionDefaultPermission', - { - id: args.where.id, - }, - 'DeleteAppPermissionDefaultPermissionInput', - args.select, - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'AppPermissionDefaultPermission', - fieldName: 'deleteAppPermissionDefaultPermission', - 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 b952c1e1d9..f14d099d6e 100644 --- a/sdk/constructive-cli/src/admin/orm/models/index.ts +++ b/sdk/constructive-cli/src/admin/orm/models/index.ts @@ -4,18 +4,18 @@ * DO NOT EDIT - changes will be overwritten */ export { AppAdminGrantModel } from './appAdminGrant'; +export { AppCapabilityDefaultCapabilityModel } from './appCapabilityDefaultCapability'; +export { AppCapabilityDefaultGrantModel } from './appCapabilityDefaultGrant'; export { AppClaimedInviteModel } from './appClaimedInvite'; export { AppGrantModel } from './appGrant'; export { AppInviteModel } from './appInvite'; export { AppMembershipModel } from './appMembership'; export { AppMembershipDefaultModel } from './appMembershipDefault'; export { AppOwnerGrantModel } from './appOwnerGrant'; -export { AppPermissionModel } from './appPermission'; -export { AppPermissionDefaultModel } from './appPermissionDefault'; -export { AppPermissionDefaultGrantModel } from './appPermissionDefaultGrant'; -export { AppPermissionDefaultPermissionModel } from './appPermissionDefaultPermission'; export { MembershipTypeModel } from './membershipType'; export { OrgAdminGrantModel } from './orgAdminGrant'; +export { OrgCapabilityDefaultCapabilityModel } from './orgCapabilityDefaultCapability'; +export { OrgCapabilityDefaultGrantModel } from './orgCapabilityDefaultGrant'; export { OrgChartEdgeModel } from './orgChartEdge'; export { OrgChartEdgeGrantModel } from './orgChartEdgeGrant'; export { OrgClaimedInviteModel } from './orgClaimedInvite'; @@ -29,7 +29,3 @@ export { OrgMembershipModel } from './orgMembership'; export { OrgMembershipDefaultModel } from './orgMembershipDefault'; export { OrgMembershipSettingModel } from './orgMembershipSetting'; export { OrgOwnerGrantModel } from './orgOwnerGrant'; -export { OrgPermissionModel } from './orgPermission'; -export { OrgPermissionDefaultModel } from './orgPermissionDefault'; -export { OrgPermissionDefaultGrantModel } from './orgPermissionDefaultGrant'; -export { OrgPermissionDefaultPermissionModel } from './orgPermissionDefaultPermission'; diff --git a/sdk/constructive-cli/src/admin/orm/models/orgCapabilityDefaultCapability.ts b/sdk/constructive-cli/src/admin/orm/models/orgCapabilityDefaultCapability.ts new file mode 100644 index 0000000000..5f902d96ac --- /dev/null +++ b/sdk/constructive-cli/src/admin/orm/models/orgCapabilityDefaultCapability.ts @@ -0,0 +1,273 @@ +/** + * OrgCapabilityDefaultCapability 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 { + OrgCapabilityDefaultCapability, + OrgCapabilityDefaultCapabilityWithRelations, + OrgCapabilityDefaultCapabilitySelect, + OrgCapabilityDefaultCapabilityFilter, + OrgCapabilityDefaultCapabilityOrderBy, + CreateOrgCapabilityDefaultCapabilityInput, + UpdateOrgCapabilityDefaultCapabilityInput, + OrgCapabilityDefaultCapabilityPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class OrgCapabilityDefaultCapabilityModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs< + S, + OrgCapabilityDefaultCapabilityFilter, + OrgCapabilityDefaultCapabilityOrderBy + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + orgCapabilityDefaultCapabilities: ConnectionResult< + InferSelectResult + >; + }> { + const { document, variables } = buildFindManyDocument( + 'OrgCapabilityDefaultCapability', + 'orgCapabilityDefaultCapabilities', + 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, + }, + 'OrgCapabilityDefaultCapabilityFilter', + 'OrgCapabilityDefaultCapabilityOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'OrgCapabilityDefaultCapability', + fieldName: 'orgCapabilityDefaultCapabilities', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs< + S, + OrgCapabilityDefaultCapabilityFilter, + OrgCapabilityDefaultCapabilityOrderBy + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + orgCapabilityDefaultCapability: InferSelectResult< + OrgCapabilityDefaultCapabilityWithRelations, + S + > | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'OrgCapabilityDefaultCapability', + 'orgCapabilityDefaultCapabilities', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'OrgCapabilityDefaultCapabilityFilter', + 'OrgCapabilityDefaultCapabilityOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'OrgCapabilityDefaultCapability', + fieldName: 'orgCapabilityDefaultCapability', + document, + variables, + transform: (data: { + orgCapabilityDefaultCapabilities?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + orgCapabilityDefaultCapability: data.orgCapabilityDefaultCapabilities?.nodes?.[0] ?? null, + }), + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + orgCapabilityDefaultCapability: InferSelectResult< + OrgCapabilityDefaultCapabilityWithRelations, + S + > | null; + }> { + const { document, variables } = buildFindManyDocument( + 'OrgCapabilityDefaultCapability', + 'orgCapabilityDefaultCapabilities', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'OrgCapabilityDefaultCapabilityFilter', + 'OrgCapabilityDefaultCapabilityOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'OrgCapabilityDefaultCapability', + fieldName: 'orgCapabilityDefaultCapability', + document, + variables, + transform: (data: { + orgCapabilityDefaultCapabilities?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + orgCapabilityDefaultCapability: data.orgCapabilityDefaultCapabilities?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs< + S, + CreateOrgCapabilityDefaultCapabilityInput['orgCapabilityDefaultCapability'] + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createOrgCapabilityDefaultCapability: { + orgCapabilityDefaultCapability: InferSelectResult< + OrgCapabilityDefaultCapabilityWithRelations, + S + >; + }; + }> { + const { document, variables } = buildCreateDocument( + 'OrgCapabilityDefaultCapability', + 'createOrgCapabilityDefaultCapability', + 'orgCapabilityDefaultCapability', + args.select, + args.data, + 'CreateOrgCapabilityDefaultCapabilityInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'OrgCapabilityDefaultCapability', + fieldName: 'createOrgCapabilityDefaultCapability', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + OrgCapabilityDefaultCapabilityPatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateOrgCapabilityDefaultCapability: { + orgCapabilityDefaultCapability: InferSelectResult< + OrgCapabilityDefaultCapabilityWithRelations, + S + >; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'OrgCapabilityDefaultCapability', + 'updateOrgCapabilityDefaultCapability', + 'orgCapabilityDefaultCapability', + args.select, + args.where.id, + args.data, + 'UpdateOrgCapabilityDefaultCapabilityInput', + 'id', + 'orgCapabilityDefaultCapabilityPatch', + connectionFieldsMap, + undefined + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'OrgCapabilityDefaultCapability', + fieldName: 'updateOrgCapabilityDefaultCapability', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteOrgCapabilityDefaultCapability: { + orgCapabilityDefaultCapability: InferSelectResult< + OrgCapabilityDefaultCapabilityWithRelations, + S + >; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'OrgCapabilityDefaultCapability', + 'deleteOrgCapabilityDefaultCapability', + 'orgCapabilityDefaultCapability', + { + id: args.where.id, + }, + 'DeleteOrgCapabilityDefaultCapabilityInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'OrgCapabilityDefaultCapability', + fieldName: 'deleteOrgCapabilityDefaultCapability', + document, + variables, + }); + } +} diff --git a/sdk/constructive-cli/src/admin/orm/models/orgCapabilityDefaultGrant.ts b/sdk/constructive-cli/src/admin/orm/models/orgCapabilityDefaultGrant.ts new file mode 100644 index 0000000000..9cce27ce2b --- /dev/null +++ b/sdk/constructive-cli/src/admin/orm/models/orgCapabilityDefaultGrant.ts @@ -0,0 +1,247 @@ +/** + * OrgCapabilityDefaultGrant 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 { + OrgCapabilityDefaultGrant, + OrgCapabilityDefaultGrantWithRelations, + OrgCapabilityDefaultGrantSelect, + OrgCapabilityDefaultGrantFilter, + OrgCapabilityDefaultGrantOrderBy, + CreateOrgCapabilityDefaultGrantInput, + UpdateOrgCapabilityDefaultGrantInput, + OrgCapabilityDefaultGrantPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class OrgCapabilityDefaultGrantModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + orgCapabilityDefaultGrants: ConnectionResult< + InferSelectResult + >; + }> { + const { document, variables } = buildFindManyDocument( + 'OrgCapabilityDefaultGrant', + 'orgCapabilityDefaultGrants', + 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, + }, + 'OrgCapabilityDefaultGrantFilter', + 'OrgCapabilityDefaultGrantOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'OrgCapabilityDefaultGrant', + fieldName: 'orgCapabilityDefaultGrants', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + orgCapabilityDefaultGrant: InferSelectResult | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'OrgCapabilityDefaultGrant', + 'orgCapabilityDefaultGrants', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'OrgCapabilityDefaultGrantFilter', + 'OrgCapabilityDefaultGrantOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'OrgCapabilityDefaultGrant', + fieldName: 'orgCapabilityDefaultGrant', + document, + variables, + transform: (data: { + orgCapabilityDefaultGrants?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + orgCapabilityDefaultGrant: data.orgCapabilityDefaultGrants?.nodes?.[0] ?? null, + }), + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + orgCapabilityDefaultGrant: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'OrgCapabilityDefaultGrant', + 'orgCapabilityDefaultGrants', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'OrgCapabilityDefaultGrantFilter', + 'OrgCapabilityDefaultGrantOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'OrgCapabilityDefaultGrant', + fieldName: 'orgCapabilityDefaultGrant', + document, + variables, + transform: (data: { + orgCapabilityDefaultGrants?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + orgCapabilityDefaultGrant: data.orgCapabilityDefaultGrants?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createOrgCapabilityDefaultGrant: { + orgCapabilityDefaultGrant: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'OrgCapabilityDefaultGrant', + 'createOrgCapabilityDefaultGrant', + 'orgCapabilityDefaultGrant', + args.select, + args.data, + 'CreateOrgCapabilityDefaultGrantInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'OrgCapabilityDefaultGrant', + fieldName: 'createOrgCapabilityDefaultGrant', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + OrgCapabilityDefaultGrantPatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateOrgCapabilityDefaultGrant: { + orgCapabilityDefaultGrant: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'OrgCapabilityDefaultGrant', + 'updateOrgCapabilityDefaultGrant', + 'orgCapabilityDefaultGrant', + args.select, + args.where.id, + args.data, + 'UpdateOrgCapabilityDefaultGrantInput', + 'id', + 'orgCapabilityDefaultGrantPatch', + connectionFieldsMap, + undefined + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'OrgCapabilityDefaultGrant', + fieldName: 'updateOrgCapabilityDefaultGrant', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteOrgCapabilityDefaultGrant: { + orgCapabilityDefaultGrant: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'OrgCapabilityDefaultGrant', + 'deleteOrgCapabilityDefaultGrant', + 'orgCapabilityDefaultGrant', + { + id: args.where.id, + }, + 'DeleteOrgCapabilityDefaultGrantInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'OrgCapabilityDefaultGrant', + fieldName: 'deleteOrgCapabilityDefaultGrant', + document, + variables, + }); + } +} diff --git a/sdk/constructive-cli/src/admin/orm/models/orgPermissionDefault.ts b/sdk/constructive-cli/src/admin/orm/models/orgPermissionDefault.ts deleted file mode 100644 index 20ed957d15..0000000000 --- a/sdk/constructive-cli/src/admin/orm/models/orgPermissionDefault.ts +++ /dev/null @@ -1,247 +0,0 @@ -/** - * OrgPermissionDefault 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 { - OrgPermissionDefault, - OrgPermissionDefaultWithRelations, - OrgPermissionDefaultSelect, - OrgPermissionDefaultFilter, - OrgPermissionDefaultOrderBy, - CreateOrgPermissionDefaultInput, - UpdateOrgPermissionDefaultInput, - OrgPermissionDefaultPatch, -} from '../input-types'; -import { connectionFieldsMap } from '../input-types'; -export class OrgPermissionDefaultModel { - constructor(private client: OrmClient) {} - findMany( - args: FindManyArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - orgPermissionDefaults: ConnectionResult< - InferSelectResult - >; - }> { - const { document, variables } = buildFindManyDocument( - 'OrgPermissionDefault', - 'orgPermissionDefaults', - 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, - }, - 'OrgPermissionDefaultFilter', - 'OrgPermissionDefaultOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'OrgPermissionDefault', - fieldName: 'orgPermissionDefaults', - document, - variables, - }); - } - findFirst( - args: FindFirstArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - orgPermissionDefault: InferSelectResult | null; - }> { - const { document, variables } = buildFindFirstDocument( - 'OrgPermissionDefault', - 'orgPermissionDefaults', - args.select, - { - where: args?.where, - orderBy: args?.orderBy as string[] | undefined, - }, - 'OrgPermissionDefaultFilter', - 'OrgPermissionDefaultOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'OrgPermissionDefault', - fieldName: 'orgPermissionDefault', - document, - variables, - transform: (data: { - orgPermissionDefaults?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - orgPermissionDefault: data.orgPermissionDefaults?.nodes?.[0] ?? null, - }), - }); - } - findOne( - args: { - id: string; - select: S; - } & StrictSelect - ): QueryBuilder<{ - orgPermissionDefault: InferSelectResult | null; - }> { - const { document, variables } = buildFindManyDocument( - 'OrgPermissionDefault', - 'orgPermissionDefaults', - args.select, - { - where: { - id: { - equalTo: args.id, - }, - }, - first: 1, - }, - 'OrgPermissionDefaultFilter', - 'OrgPermissionDefaultOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'OrgPermissionDefault', - fieldName: 'orgPermissionDefault', - document, - variables, - transform: (data: { - orgPermissionDefaults?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - orgPermissionDefault: data.orgPermissionDefaults?.nodes?.[0] ?? null, - }), - }); - } - create( - args: CreateArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createOrgPermissionDefault: { - orgPermissionDefault: InferSelectResult; - }; - }> { - const { document, variables } = buildCreateDocument( - 'OrgPermissionDefault', - 'createOrgPermissionDefault', - 'orgPermissionDefault', - args.select, - args.data, - 'CreateOrgPermissionDefaultInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'OrgPermissionDefault', - fieldName: 'createOrgPermissionDefault', - document, - variables, - }); - } - update( - args: UpdateArgs< - S, - { - id: string; - }, - OrgPermissionDefaultPatch - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - updateOrgPermissionDefault: { - orgPermissionDefault: InferSelectResult; - }; - }> { - const { document, variables } = buildUpdateByPkDocument( - 'OrgPermissionDefault', - 'updateOrgPermissionDefault', - 'orgPermissionDefault', - args.select, - args.where.id, - args.data, - 'UpdateOrgPermissionDefaultInput', - 'id', - 'orgPermissionDefaultPatch', - connectionFieldsMap, - undefined - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'OrgPermissionDefault', - fieldName: 'updateOrgPermissionDefault', - document, - variables, - }); - } - delete( - args: DeleteArgs< - { - id: string; - }, - S - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - deleteOrgPermissionDefault: { - orgPermissionDefault: InferSelectResult; - }; - }> { - const { document, variables } = buildDeleteByPkDocument( - 'OrgPermissionDefault', - 'deleteOrgPermissionDefault', - 'orgPermissionDefault', - { - id: args.where.id, - }, - 'DeleteOrgPermissionDefaultInput', - args.select, - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'OrgPermissionDefault', - fieldName: 'deleteOrgPermissionDefault', - document, - variables, - }); - } -} diff --git a/sdk/constructive-cli/src/admin/orm/models/orgPermissionDefaultGrant.ts b/sdk/constructive-cli/src/admin/orm/models/orgPermissionDefaultGrant.ts deleted file mode 100644 index 07d5976acb..0000000000 --- a/sdk/constructive-cli/src/admin/orm/models/orgPermissionDefaultGrant.ts +++ /dev/null @@ -1,247 +0,0 @@ -/** - * OrgPermissionDefaultGrant 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 { - OrgPermissionDefaultGrant, - OrgPermissionDefaultGrantWithRelations, - OrgPermissionDefaultGrantSelect, - OrgPermissionDefaultGrantFilter, - OrgPermissionDefaultGrantOrderBy, - CreateOrgPermissionDefaultGrantInput, - UpdateOrgPermissionDefaultGrantInput, - OrgPermissionDefaultGrantPatch, -} from '../input-types'; -import { connectionFieldsMap } from '../input-types'; -export class OrgPermissionDefaultGrantModel { - constructor(private client: OrmClient) {} - findMany( - args: FindManyArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - orgPermissionDefaultGrants: ConnectionResult< - InferSelectResult - >; - }> { - const { document, variables } = buildFindManyDocument( - 'OrgPermissionDefaultGrant', - 'orgPermissionDefaultGrants', - 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, - }, - 'OrgPermissionDefaultGrantFilter', - 'OrgPermissionDefaultGrantOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'OrgPermissionDefaultGrant', - fieldName: 'orgPermissionDefaultGrants', - document, - variables, - }); - } - findFirst( - args: FindFirstArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - orgPermissionDefaultGrant: InferSelectResult | null; - }> { - const { document, variables } = buildFindFirstDocument( - 'OrgPermissionDefaultGrant', - 'orgPermissionDefaultGrants', - args.select, - { - where: args?.where, - orderBy: args?.orderBy as string[] | undefined, - }, - 'OrgPermissionDefaultGrantFilter', - 'OrgPermissionDefaultGrantOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'OrgPermissionDefaultGrant', - fieldName: 'orgPermissionDefaultGrant', - document, - variables, - transform: (data: { - orgPermissionDefaultGrants?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - orgPermissionDefaultGrant: data.orgPermissionDefaultGrants?.nodes?.[0] ?? null, - }), - }); - } - findOne( - args: { - id: string; - select: S; - } & StrictSelect - ): QueryBuilder<{ - orgPermissionDefaultGrant: InferSelectResult | null; - }> { - const { document, variables } = buildFindManyDocument( - 'OrgPermissionDefaultGrant', - 'orgPermissionDefaultGrants', - args.select, - { - where: { - id: { - equalTo: args.id, - }, - }, - first: 1, - }, - 'OrgPermissionDefaultGrantFilter', - 'OrgPermissionDefaultGrantOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'OrgPermissionDefaultGrant', - fieldName: 'orgPermissionDefaultGrant', - document, - variables, - transform: (data: { - orgPermissionDefaultGrants?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - orgPermissionDefaultGrant: data.orgPermissionDefaultGrants?.nodes?.[0] ?? null, - }), - }); - } - create( - args: CreateArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createOrgPermissionDefaultGrant: { - orgPermissionDefaultGrant: InferSelectResult; - }; - }> { - const { document, variables } = buildCreateDocument( - 'OrgPermissionDefaultGrant', - 'createOrgPermissionDefaultGrant', - 'orgPermissionDefaultGrant', - args.select, - args.data, - 'CreateOrgPermissionDefaultGrantInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'OrgPermissionDefaultGrant', - fieldName: 'createOrgPermissionDefaultGrant', - document, - variables, - }); - } - update( - args: UpdateArgs< - S, - { - id: string; - }, - OrgPermissionDefaultGrantPatch - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - updateOrgPermissionDefaultGrant: { - orgPermissionDefaultGrant: InferSelectResult; - }; - }> { - const { document, variables } = buildUpdateByPkDocument( - 'OrgPermissionDefaultGrant', - 'updateOrgPermissionDefaultGrant', - 'orgPermissionDefaultGrant', - args.select, - args.where.id, - args.data, - 'UpdateOrgPermissionDefaultGrantInput', - 'id', - 'orgPermissionDefaultGrantPatch', - connectionFieldsMap, - undefined - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'OrgPermissionDefaultGrant', - fieldName: 'updateOrgPermissionDefaultGrant', - document, - variables, - }); - } - delete( - args: DeleteArgs< - { - id: string; - }, - S - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - deleteOrgPermissionDefaultGrant: { - orgPermissionDefaultGrant: InferSelectResult; - }; - }> { - const { document, variables } = buildDeleteByPkDocument( - 'OrgPermissionDefaultGrant', - 'deleteOrgPermissionDefaultGrant', - 'orgPermissionDefaultGrant', - { - id: args.where.id, - }, - 'DeleteOrgPermissionDefaultGrantInput', - args.select, - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'OrgPermissionDefaultGrant', - fieldName: 'deleteOrgPermissionDefaultGrant', - document, - variables, - }); - } -} diff --git a/sdk/constructive-cli/src/admin/orm/models/orgPermissionDefaultPermission.ts b/sdk/constructive-cli/src/admin/orm/models/orgPermissionDefaultPermission.ts deleted file mode 100644 index 3339ceaeca..0000000000 --- a/sdk/constructive-cli/src/admin/orm/models/orgPermissionDefaultPermission.ts +++ /dev/null @@ -1,273 +0,0 @@ -/** - * OrgPermissionDefaultPermission 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 { - OrgPermissionDefaultPermission, - OrgPermissionDefaultPermissionWithRelations, - OrgPermissionDefaultPermissionSelect, - OrgPermissionDefaultPermissionFilter, - OrgPermissionDefaultPermissionOrderBy, - CreateOrgPermissionDefaultPermissionInput, - UpdateOrgPermissionDefaultPermissionInput, - OrgPermissionDefaultPermissionPatch, -} from '../input-types'; -import { connectionFieldsMap } from '../input-types'; -export class OrgPermissionDefaultPermissionModel { - constructor(private client: OrmClient) {} - findMany( - args: FindManyArgs< - S, - OrgPermissionDefaultPermissionFilter, - OrgPermissionDefaultPermissionOrderBy - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - orgPermissionDefaultPermissions: ConnectionResult< - InferSelectResult - >; - }> { - const { document, variables } = buildFindManyDocument( - 'OrgPermissionDefaultPermission', - 'orgPermissionDefaultPermissions', - 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, - }, - 'OrgPermissionDefaultPermissionFilter', - 'OrgPermissionDefaultPermissionOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'OrgPermissionDefaultPermission', - fieldName: 'orgPermissionDefaultPermissions', - document, - variables, - }); - } - findFirst( - args: FindFirstArgs< - S, - OrgPermissionDefaultPermissionFilter, - OrgPermissionDefaultPermissionOrderBy - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - orgPermissionDefaultPermission: InferSelectResult< - OrgPermissionDefaultPermissionWithRelations, - S - > | null; - }> { - const { document, variables } = buildFindFirstDocument( - 'OrgPermissionDefaultPermission', - 'orgPermissionDefaultPermissions', - args.select, - { - where: args?.where, - orderBy: args?.orderBy as string[] | undefined, - }, - 'OrgPermissionDefaultPermissionFilter', - 'OrgPermissionDefaultPermissionOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'OrgPermissionDefaultPermission', - fieldName: 'orgPermissionDefaultPermission', - document, - variables, - transform: (data: { - orgPermissionDefaultPermissions?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - orgPermissionDefaultPermission: data.orgPermissionDefaultPermissions?.nodes?.[0] ?? null, - }), - }); - } - findOne( - args: { - id: string; - select: S; - } & StrictSelect - ): QueryBuilder<{ - orgPermissionDefaultPermission: InferSelectResult< - OrgPermissionDefaultPermissionWithRelations, - S - > | null; - }> { - const { document, variables } = buildFindManyDocument( - 'OrgPermissionDefaultPermission', - 'orgPermissionDefaultPermissions', - args.select, - { - where: { - id: { - equalTo: args.id, - }, - }, - first: 1, - }, - 'OrgPermissionDefaultPermissionFilter', - 'OrgPermissionDefaultPermissionOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'OrgPermissionDefaultPermission', - fieldName: 'orgPermissionDefaultPermission', - document, - variables, - transform: (data: { - orgPermissionDefaultPermissions?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - orgPermissionDefaultPermission: data.orgPermissionDefaultPermissions?.nodes?.[0] ?? null, - }), - }); - } - create( - args: CreateArgs< - S, - CreateOrgPermissionDefaultPermissionInput['orgPermissionDefaultPermission'] - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createOrgPermissionDefaultPermission: { - orgPermissionDefaultPermission: InferSelectResult< - OrgPermissionDefaultPermissionWithRelations, - S - >; - }; - }> { - const { document, variables } = buildCreateDocument( - 'OrgPermissionDefaultPermission', - 'createOrgPermissionDefaultPermission', - 'orgPermissionDefaultPermission', - args.select, - args.data, - 'CreateOrgPermissionDefaultPermissionInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'OrgPermissionDefaultPermission', - fieldName: 'createOrgPermissionDefaultPermission', - document, - variables, - }); - } - update( - args: UpdateArgs< - S, - { - id: string; - }, - OrgPermissionDefaultPermissionPatch - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - updateOrgPermissionDefaultPermission: { - orgPermissionDefaultPermission: InferSelectResult< - OrgPermissionDefaultPermissionWithRelations, - S - >; - }; - }> { - const { document, variables } = buildUpdateByPkDocument( - 'OrgPermissionDefaultPermission', - 'updateOrgPermissionDefaultPermission', - 'orgPermissionDefaultPermission', - args.select, - args.where.id, - args.data, - 'UpdateOrgPermissionDefaultPermissionInput', - 'id', - 'orgPermissionDefaultPermissionPatch', - connectionFieldsMap, - undefined - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'OrgPermissionDefaultPermission', - fieldName: 'updateOrgPermissionDefaultPermission', - document, - variables, - }); - } - delete( - args: DeleteArgs< - { - id: string; - }, - S - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - deleteOrgPermissionDefaultPermission: { - orgPermissionDefaultPermission: InferSelectResult< - OrgPermissionDefaultPermissionWithRelations, - S - >; - }; - }> { - const { document, variables } = buildDeleteByPkDocument( - 'OrgPermissionDefaultPermission', - 'deleteOrgPermissionDefaultPermission', - 'orgPermissionDefaultPermission', - { - id: args.where.id, - }, - 'DeleteOrgPermissionDefaultPermissionInput', - args.select, - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'OrgPermissionDefaultPermission', - fieldName: 'deleteOrgPermissionDefaultPermission', - document, - variables, - }); - } -} diff --git a/sdk/constructive-cli/src/admin/orm/query/index.ts b/sdk/constructive-cli/src/admin/orm/query/index.ts index 6d5f48130e..0e78db2c2c 100644 --- a/sdk/constructive-cli/src/admin/orm/query/index.ts +++ b/sdk/constructive-cli/src/admin/orm/query/index.ts @@ -6,186 +6,15 @@ import { OrmClient } from '../client'; import { QueryBuilder, buildCustomDocument } from '../query-builder'; import type { InferSelectResult, StrictSelect } from '../select-types'; -import type { AppPermissionConnection, OrgPermissionConnection } from '../input-types'; import { connectionFieldsMap } from '../input-types'; -export interface AppPermissionsGetByMaskVariables { - /** Read all values in the set after (below) this cursor. */ - after?: string; - /** Only read the first `n` values of the set. */ - first?: number; - mask?: string; - /** - * Skip the first `n` values from our `after` cursor, an alternative to cursor - * based pagination. May not be used with `last`. - */ - offset?: number; -} -export interface AppPermissionsGetMaskVariables { - ids?: string[]; -} -export interface AppPermissionsGetMaskByNamesVariables { - names?: string[]; -} -export interface AppPermissionsGetPaddedMaskVariables { - mask?: string; -} export interface OrgIsManagerOfVariables { managerId?: string; maxDepth?: number; targetEntityId?: string; userId?: string; } -export interface OrgPermissionsGetByMaskVariables { - /** Read all values in the set after (below) this cursor. */ - after?: string; - /** Only read the first `n` values of the set. */ - first?: number; - mask?: string; - /** - * Skip the first `n` values from our `after` cursor, an alternative to cursor - * based pagination. May not be used with `last`. - */ - offset?: number; -} -export interface OrgPermissionsGetMaskVariables { - ids?: string[]; -} -export interface OrgPermissionsGetMaskByNamesVariables { - names?: string[]; -} -export interface OrgPermissionsGetPaddedMaskVariables { - mask?: string; -} export function createQueryOperations(client: OrmClient) { return { - appPermissionsGetByMask: ( - args: AppPermissionsGetByMaskVariables, - options?: { - select?: Record; - } - ) => - new QueryBuilder<{ - appPermissionsGetByMask: AppPermissionConnection | null; - }>({ - client, - operation: 'query', - operationName: 'AppPermissionsGetByMask', - fieldName: 'appPermissionsGetByMask', - ...buildCustomDocument( - 'query', - 'AppPermissionsGetByMask', - 'appPermissionsGetByMask', - options?.select, - args, - [ - { - name: 'after', - type: 'Cursor', - }, - { - name: 'first', - type: 'Int', - }, - { - name: 'mask', - type: 'BitString', - }, - { - name: 'offset', - type: 'Int', - }, - ], - connectionFieldsMap, - undefined - ), - }), - appPermissionsGetMask: ( - args: AppPermissionsGetMaskVariables, - options?: { - select?: Record; - } - ) => - new QueryBuilder<{ - appPermissionsGetMask: string | null; - }>({ - client, - operation: 'query', - operationName: 'AppPermissionsGetMask', - fieldName: 'appPermissionsGetMask', - ...buildCustomDocument( - 'query', - 'AppPermissionsGetMask', - 'appPermissionsGetMask', - options?.select, - args, - [ - { - name: 'ids', - type: '[UUID]', - }, - ], - connectionFieldsMap, - undefined - ), - }), - appPermissionsGetMaskByNames: ( - args: AppPermissionsGetMaskByNamesVariables, - options?: { - select?: Record; - } - ) => - new QueryBuilder<{ - appPermissionsGetMaskByNames: string | null; - }>({ - client, - operation: 'query', - operationName: 'AppPermissionsGetMaskByNames', - fieldName: 'appPermissionsGetMaskByNames', - ...buildCustomDocument( - 'query', - 'AppPermissionsGetMaskByNames', - 'appPermissionsGetMaskByNames', - options?.select, - args, - [ - { - name: 'names', - type: '[String]', - }, - ], - connectionFieldsMap, - undefined - ), - }), - appPermissionsGetPaddedMask: ( - args: AppPermissionsGetPaddedMaskVariables, - options?: { - select?: Record; - } - ) => - new QueryBuilder<{ - appPermissionsGetPaddedMask: string | null; - }>({ - client, - operation: 'query', - operationName: 'AppPermissionsGetPaddedMask', - fieldName: 'appPermissionsGetPaddedMask', - ...buildCustomDocument( - 'query', - 'AppPermissionsGetPaddedMask', - 'appPermissionsGetPaddedMask', - options?.select, - args, - [ - { - name: 'mask', - type: 'BitString', - }, - ], - connectionFieldsMap, - undefined - ), - }), orgIsManagerOf: ( args: OrgIsManagerOfVariables, options?: { @@ -227,133 +56,5 @@ export function createQueryOperations(client: OrmClient) { undefined ), }), - orgPermissionsGetByMask: ( - args: OrgPermissionsGetByMaskVariables, - options?: { - select?: Record; - } - ) => - new QueryBuilder<{ - orgPermissionsGetByMask: OrgPermissionConnection | null; - }>({ - client, - operation: 'query', - operationName: 'OrgPermissionsGetByMask', - fieldName: 'orgPermissionsGetByMask', - ...buildCustomDocument( - 'query', - 'OrgPermissionsGetByMask', - 'orgPermissionsGetByMask', - options?.select, - args, - [ - { - name: 'after', - type: 'Cursor', - }, - { - name: 'first', - type: 'Int', - }, - { - name: 'mask', - type: 'BitString', - }, - { - name: 'offset', - type: 'Int', - }, - ], - connectionFieldsMap, - undefined - ), - }), - orgPermissionsGetMask: ( - args: OrgPermissionsGetMaskVariables, - options?: { - select?: Record; - } - ) => - new QueryBuilder<{ - orgPermissionsGetMask: string | null; - }>({ - client, - operation: 'query', - operationName: 'OrgPermissionsGetMask', - fieldName: 'orgPermissionsGetMask', - ...buildCustomDocument( - 'query', - 'OrgPermissionsGetMask', - 'orgPermissionsGetMask', - options?.select, - args, - [ - { - name: 'ids', - type: '[UUID]', - }, - ], - connectionFieldsMap, - undefined - ), - }), - orgPermissionsGetMaskByNames: ( - args: OrgPermissionsGetMaskByNamesVariables, - options?: { - select?: Record; - } - ) => - new QueryBuilder<{ - orgPermissionsGetMaskByNames: string | null; - }>({ - client, - operation: 'query', - operationName: 'OrgPermissionsGetMaskByNames', - fieldName: 'orgPermissionsGetMaskByNames', - ...buildCustomDocument( - 'query', - 'OrgPermissionsGetMaskByNames', - 'orgPermissionsGetMaskByNames', - options?.select, - args, - [ - { - name: 'names', - type: '[String]', - }, - ], - connectionFieldsMap, - undefined - ), - }), - orgPermissionsGetPaddedMask: ( - args: OrgPermissionsGetPaddedMaskVariables, - options?: { - select?: Record; - } - ) => - new QueryBuilder<{ - orgPermissionsGetPaddedMask: string | null; - }>({ - client, - operation: 'query', - operationName: 'OrgPermissionsGetPaddedMask', - fieldName: 'orgPermissionsGetPaddedMask', - ...buildCustomDocument( - 'query', - 'OrgPermissionsGetPaddedMask', - 'orgPermissionsGetPaddedMask', - options?.select, - args, - [ - { - name: 'mask', - type: 'BitString', - }, - ], - connectionFieldsMap, - undefined - ), - }), }; } diff --git a/sdk/constructive-cli/src/api/README.md b/sdk/constructive-cli/src/api/README.md index d1a734b651..fa263f0344 100644 --- a/sdk/constructive-cli/src/api/README.md +++ b/sdk/constructive-cli/src/api/README.md @@ -8,7 +8,7 @@ ## Overview -- **Tables:** 80 +- **Tables:** 86 - **Custom queries:** 6 - **Custom mutations:** 11 diff --git a/sdk/constructive-cli/src/api/cli/README.md b/sdk/constructive-cli/src/api/cli/README.md index af6fa9bbc9..edc5e63203 100644 --- a/sdk/constructive-cli/src/api/cli/README.md +++ b/sdk/constructive-cli/src/api/cli/README.md @@ -26,9 +26,9 @@ csdk auth set-token | `context` | Manage API contexts (endpoints) | | `auth` | Manage authentication tokens | | `config` | Manage config key-value store (per-context) | +| `api` | api CRUD operations | | `api-schema` | apiSchema CRUD operations | | `api-setting` | apiSetting CRUD operations | -| `apis` | apis CRUD operations | | `ast-migration` | astMigration CRUD operations | | `check-constraint` | checkConstraint CRUD operations | | `composite-type` | compositeType CRUD operations | @@ -42,6 +42,9 @@ csdk auth set-token | `domain-event` | domainEvent CRUD operations | | `domain-type` | domainType CRUD operations | | `domain-verification` | domainVerification CRUD operations | +| `email-identity` | emailIdentity CRUD operations | +| `email-provider-account` | emailProviderAccount CRUD operations | +| `email-site-identity` | emailSiteIdentity CRUD operations | | `embedding-chunk` | embeddingChunk CRUD operations | | `enum` | enum CRUD operations | | `exclusion-constraint` | exclusionConstraint CRUD operations | @@ -58,13 +61,16 @@ csdk auth set-token | `node-type-registry` | nodeTypeRegistry CRUD operations | | `page` | page CRUD operations | | `partition` | partition CRUD operations | +| `platform-api` | platformApi CRUD operations | | `platform-api-schema` | platformApiSchema CRUD operations | | `platform-api-setting` | platformApiSetting CRUD operations | -| `platform-apis` | platformApis CRUD operations | | `platform-cors-setting` | platformCorsSetting CRUD operations | | `platform-domain` | platformDomain CRUD operations | | `platform-domain-event` | platformDomainEvent CRUD operations | | `platform-domain-verification` | platformDomainVerification CRUD operations | +| `platform-email-identity` | platformEmailIdentity CRUD operations | +| `platform-email-provider-account` | platformEmailProviderAccount CRUD operations | +| `platform-email-site-identity` | platformEmailSiteIdentity CRUD operations | | `platform-managed-domain` | platformManagedDomain CRUD operations | | `platform-page` | platformPage CRUD operations | | `platform-site-app-link` | platformSiteAppLink CRUD operations | @@ -174,6 +180,37 @@ Variables are scoped to the active context and stored at `~/.csdk/config/`. ## Table Commands +### `api` + +CRUD operations for Api records. + +| Subcommand | Description | +|------------|-------------| +| `list` | List all api records | +| `find-first` | Find first matching api record | +| `get` | Get a api by id | +| `create` | Create a new api | +| `update` | Update an existing api | +| `delete` | Delete a api | + +**Fields:** + +| Field | Type | +|-------|------| +| `anonRole` | String | +| `config` | JSON | +| `createdAt` | Datetime | +| `databaseId` | UUID | +| `dbname` | String | +| `id` | UUID | +| `isPublished` | Boolean | +| `name` | String | +| `roleName` | String | +| `updatedAt` | Datetime | + +**Required create fields:** `databaseId`, `name` +**Optional create fields (backend defaults):** `anonRole`, `config`, `dbname`, `isPublished`, `roleName` + ### `api-schema` CRUD operations for ApiSchema records. @@ -240,37 +277,6 @@ CRUD operations for ApiSetting records. **Required create fields:** `apiId`, `databaseId` **Optional create fields (backend defaults):** `enableAggregates`, `enableBulk`, `enableConnectionFilter`, `enableDirectUploads`, `enableI18N`, `enableLlm`, `enableLtree`, `enableManyToMany`, `enablePostgis`, `enablePresignedUploads`, `enableRealtime`, `enableSearch`, `options`, `statementTimeoutMs` -### `apis` - -CRUD operations for Apis records. - -| Subcommand | Description | -|------------|-------------| -| `list` | List all apis records | -| `find-first` | Find first matching apis record | -| `get` | Get a apis by id | -| `create` | Create a new apis | -| `update` | Update an existing apis | -| `delete` | Delete a apis | - -**Fields:** - -| Field | Type | -|-------|------| -| `anonRole` | String | -| `config` | JSON | -| `createdAt` | Datetime | -| `databaseId` | UUID | -| `dbname` | String | -| `id` | UUID | -| `isPublished` | Boolean | -| `name` | String | -| `roleName` | String | -| `updatedAt` | Datetime | - -**Required create fields:** `databaseId`, `name` -**Optional create fields (backend defaults):** `anonRole`, `config`, `dbname`, `isPublished`, `roleName` - ### `ast-migration` CRUD operations for AstMigration records. @@ -698,6 +704,103 @@ CRUD operations for DomainVerification records. **Required create fields:** `databaseId`, `method` **Optional create fields (backend defaults):** `attempts`, `domainId`, `error`, `expiresAt`, `lastCheckedAt`, `managedDomainId`, `recordName`, `recordType`, `recordValue`, `status`, `verifiedAt` +### `email-identity` + +CRUD operations for EmailIdentity records. + +| Subcommand | Description | +|------------|-------------| +| `list` | List all emailIdentity records | +| `find-first` | Find first matching emailIdentity record | +| `get` | Get a emailIdentity by id | +| `create` | Create a new emailIdentity | +| `update` | Update an existing emailIdentity | +| `delete` | Delete a emailIdentity | + +**Fields:** + +| Field | Type | +|-------|------| +| `createdAt` | Datetime | +| `databaseId` | UUID | +| `fromAddress` | String | +| `fromName` | String | +| `id` | UUID | +| `isActive` | Boolean | +| `isDefault` | Boolean | +| `name` | String | +| `providerAccountId` | UUID | +| `replyToAddress` | String | +| `supportAddress` | String | +| `transportMode` | String | +| `updatedAt` | Datetime | + +**Required create fields:** `databaseId`, `fromAddress`, `name` +**Optional create fields (backend defaults):** `fromName`, `isActive`, `isDefault`, `providerAccountId`, `replyToAddress`, `supportAddress`, `transportMode` + +### `email-provider-account` + +CRUD operations for EmailProviderAccount records. + +| Subcommand | Description | +|------------|-------------| +| `list` | List all emailProviderAccount records | +| `find-first` | Find first matching emailProviderAccount record | +| `get` | Get a emailProviderAccount by id | +| `create` | Create a new emailProviderAccount | +| `update` | Update an existing emailProviderAccount | +| `delete` | Delete a emailProviderAccount | + +**Fields:** + +| Field | Type | +|-------|------| +| `apiBaseUrl` | String | +| `createdAt` | Datetime | +| `credentialsSecretName` | String | +| `databaseId` | UUID | +| `id` | UUID | +| `isActive` | Boolean | +| `name` | String | +| `provider` | String | +| `providerAccountName` | String | +| `region` | String | +| `smtpHost` | String | +| `smtpPort` | Int | +| `smtpSecure` | Boolean | +| `smtpUser` | String | +| `updatedAt` | Datetime | +| `webhookSigningSecretName` | String | + +**Required create fields:** `credentialsSecretName`, `databaseId`, `name`, `provider` +**Optional create fields (backend defaults):** `apiBaseUrl`, `isActive`, `providerAccountName`, `region`, `smtpHost`, `smtpPort`, `smtpSecure`, `smtpUser`, `webhookSigningSecretName` + +### `email-site-identity` + +CRUD operations for EmailSiteIdentity records. + +| Subcommand | Description | +|------------|-------------| +| `list` | List all emailSiteIdentity records | +| `find-first` | Find first matching emailSiteIdentity record | +| `get` | Get a emailSiteIdentity by id | +| `create` | Create a new emailSiteIdentity | +| `update` | Update an existing emailSiteIdentity | +| `delete` | Delete a emailSiteIdentity | + +**Fields:** + +| Field | Type | +|-------|------| +| `createdAt` | Datetime | +| `databaseId` | UUID | +| `emailIdentityId` | UUID | +| `id` | UUID | +| `siteId` | UUID | +| `updatedAt` | Datetime | + +**Required create fields:** `databaseId`, `emailIdentityId`, `siteId` + ### `embedding-chunk` CRUD operations for EmbeddingChunk records. @@ -1236,6 +1339,36 @@ CRUD operations for Partition records. **Required create fields:** `databaseId`, `partitionKeyId`, `strategy`, `tableId` **Optional create fields (backend defaults):** `interval`, `isParented`, `namingPattern`, `premake`, `retention`, `retentionKeepTable` +### `platform-api` + +CRUD operations for PlatformApi records. + +| Subcommand | Description | +|------------|-------------| +| `list` | List all platformApi records | +| `find-first` | Find first matching platformApi record | +| `get` | Get a platformApi by id | +| `create` | Create a new platformApi | +| `update` | Update an existing platformApi | +| `delete` | Delete a platformApi | + +**Fields:** + +| Field | Type | +|-------|------| +| `anonRole` | String | +| `config` | JSON | +| `createdAt` | Datetime | +| `dbname` | String | +| `id` | UUID | +| `isPublished` | Boolean | +| `name` | String | +| `roleName` | String | +| `updatedAt` | Datetime | + +**Required create fields:** `name` +**Optional create fields (backend defaults):** `anonRole`, `config`, `dbname`, `isPublished`, `roleName` + ### `platform-api-schema` CRUD operations for PlatformApiSchema records. @@ -1300,36 +1433,6 @@ CRUD operations for PlatformApiSetting records. **Required create fields:** `apiId` **Optional create fields (backend defaults):** `enableAggregates`, `enableBulk`, `enableConnectionFilter`, `enableDirectUploads`, `enableI18N`, `enableLlm`, `enableLtree`, `enableManyToMany`, `enablePostgis`, `enablePresignedUploads`, `enableRealtime`, `enableSearch`, `options`, `statementTimeoutMs` -### `platform-apis` - -CRUD operations for PlatformApis records. - -| Subcommand | Description | -|------------|-------------| -| `list` | List all platformApis records | -| `find-first` | Find first matching platformApis record | -| `get` | Get a platformApis by id | -| `create` | Create a new platformApis | -| `update` | Update an existing platformApis | -| `delete` | Delete a platformApis | - -**Fields:** - -| Field | Type | -|-------|------| -| `anonRole` | String | -| `config` | JSON | -| `createdAt` | Datetime | -| `dbname` | String | -| `id` | UUID | -| `isPublished` | Boolean | -| `name` | String | -| `roleName` | String | -| `updatedAt` | Datetime | - -**Required create fields:** `name` -**Optional create fields (backend defaults):** `anonRole`, `config`, `dbname`, `isPublished`, `roleName` - ### `platform-cors-setting` CRUD operations for PlatformCorsSetting records. @@ -1457,6 +1560,100 @@ CRUD operations for PlatformDomainVerification records. **Required create fields:** `method` **Optional create fields (backend defaults):** `attempts`, `domainId`, `error`, `expiresAt`, `lastCheckedAt`, `managedDomainId`, `recordName`, `recordType`, `recordValue`, `status`, `verifiedAt` +### `platform-email-identity` + +CRUD operations for PlatformEmailIdentity records. + +| Subcommand | Description | +|------------|-------------| +| `list` | List all platformEmailIdentity records | +| `find-first` | Find first matching platformEmailIdentity record | +| `get` | Get a platformEmailIdentity by id | +| `create` | Create a new platformEmailIdentity | +| `update` | Update an existing platformEmailIdentity | +| `delete` | Delete a platformEmailIdentity | + +**Fields:** + +| Field | Type | +|-------|------| +| `createdAt` | Datetime | +| `fromAddress` | String | +| `fromName` | String | +| `id` | UUID | +| `isActive` | Boolean | +| `isDefault` | Boolean | +| `name` | String | +| `providerAccountId` | UUID | +| `replyToAddress` | String | +| `supportAddress` | String | +| `transportMode` | String | +| `updatedAt` | Datetime | + +**Required create fields:** `fromAddress`, `name` +**Optional create fields (backend defaults):** `fromName`, `isActive`, `isDefault`, `providerAccountId`, `replyToAddress`, `supportAddress`, `transportMode` + +### `platform-email-provider-account` + +CRUD operations for PlatformEmailProviderAccount records. + +| Subcommand | Description | +|------------|-------------| +| `list` | List all platformEmailProviderAccount records | +| `find-first` | Find first matching platformEmailProviderAccount record | +| `get` | Get a platformEmailProviderAccount by id | +| `create` | Create a new platformEmailProviderAccount | +| `update` | Update an existing platformEmailProviderAccount | +| `delete` | Delete a platformEmailProviderAccount | + +**Fields:** + +| Field | Type | +|-------|------| +| `apiBaseUrl` | String | +| `createdAt` | Datetime | +| `credentialsSecretName` | String | +| `id` | UUID | +| `isActive` | Boolean | +| `name` | String | +| `provider` | String | +| `providerAccountName` | String | +| `region` | String | +| `smtpHost` | String | +| `smtpPort` | Int | +| `smtpSecure` | Boolean | +| `smtpUser` | String | +| `updatedAt` | Datetime | +| `webhookSigningSecretName` | String | + +**Required create fields:** `credentialsSecretName`, `name`, `provider` +**Optional create fields (backend defaults):** `apiBaseUrl`, `isActive`, `providerAccountName`, `region`, `smtpHost`, `smtpPort`, `smtpSecure`, `smtpUser`, `webhookSigningSecretName` + +### `platform-email-site-identity` + +CRUD operations for PlatformEmailSiteIdentity records. + +| Subcommand | Description | +|------------|-------------| +| `list` | List all platformEmailSiteIdentity records | +| `find-first` | Find first matching platformEmailSiteIdentity record | +| `get` | Get a platformEmailSiteIdentity by id | +| `create` | Create a new platformEmailSiteIdentity | +| `update` | Update an existing platformEmailSiteIdentity | +| `delete` | Delete a platformEmailSiteIdentity | + +**Fields:** + +| Field | Type | +|-------|------| +| `createdAt` | Datetime | +| `emailIdentityId` | UUID | +| `id` | UUID | +| `siteId` | UUID | +| `updatedAt` | Datetime | + +**Required create fields:** `emailIdentityId`, `siteId` + ### `platform-managed-domain` CRUD operations for PlatformManagedDomain records. diff --git a/sdk/constructive-cli/src/api/cli/commands.ts b/sdk/constructive-cli/src/api/cli/commands.ts index d66aadcf71..71e67f2b49 100644 --- a/sdk/constructive-cli/src/api/cli/commands.ts +++ b/sdk/constructive-cli/src/api/cli/commands.ts @@ -6,9 +6,9 @@ import { CLIOptions, Inquirerer, extractFirst } from 'inquirerer'; import contextCmd from './commands/context'; import authCmd from './commands/auth'; +import apiCmd from './commands/api'; import apiSchemaCmd from './commands/api-schema'; import apiSettingCmd from './commands/api-setting'; -import apisCmd from './commands/apis'; import astMigrationCmd from './commands/ast-migration'; import checkConstraintCmd from './commands/check-constraint'; import compositeTypeCmd from './commands/composite-type'; @@ -22,6 +22,9 @@ import domainCmd from './commands/domain'; import domainEventCmd from './commands/domain-event'; import domainTypeCmd from './commands/domain-type'; import domainVerificationCmd from './commands/domain-verification'; +import emailIdentityCmd from './commands/email-identity'; +import emailProviderAccountCmd from './commands/email-provider-account'; +import emailSiteIdentityCmd from './commands/email-site-identity'; import embeddingChunkCmd from './commands/embedding-chunk'; import enumCmd from './commands/enum'; import exclusionConstraintCmd from './commands/exclusion-constraint'; @@ -38,13 +41,16 @@ import managedDomainCmd from './commands/managed-domain'; import nodeTypeRegistryCmd from './commands/node-type-registry'; import pageCmd from './commands/page'; import partitionCmd from './commands/partition'; +import platformApiCmd from './commands/platform-api'; import platformApiSchemaCmd from './commands/platform-api-schema'; import platformApiSettingCmd from './commands/platform-api-setting'; -import platformApisCmd from './commands/platform-apis'; import platformCorsSettingCmd from './commands/platform-cors-setting'; import platformDomainCmd from './commands/platform-domain'; import platformDomainEventCmd from './commands/platform-domain-event'; import platformDomainVerificationCmd from './commands/platform-domain-verification'; +import platformEmailIdentityCmd from './commands/platform-email-identity'; +import platformEmailProviderAccountCmd from './commands/platform-email-provider-account'; +import platformEmailSiteIdentityCmd from './commands/platform-email-site-identity'; import platformManagedDomainCmd from './commands/platform-managed-domain'; import platformPageCmd from './commands/platform-page'; import platformSiteAppLinkCmd from './commands/platform-site-app-link'; @@ -113,9 +119,9 @@ const createCommandMap: () => Record< > = () => ({ context: contextCmd, auth: authCmd, + api: apiCmd, 'api-schema': apiSchemaCmd, 'api-setting': apiSettingCmd, - apis: apisCmd, 'ast-migration': astMigrationCmd, 'check-constraint': checkConstraintCmd, 'composite-type': compositeTypeCmd, @@ -129,6 +135,9 @@ const createCommandMap: () => Record< 'domain-event': domainEventCmd, 'domain-type': domainTypeCmd, 'domain-verification': domainVerificationCmd, + 'email-identity': emailIdentityCmd, + 'email-provider-account': emailProviderAccountCmd, + 'email-site-identity': emailSiteIdentityCmd, 'embedding-chunk': embeddingChunkCmd, enum: enumCmd, 'exclusion-constraint': exclusionConstraintCmd, @@ -145,13 +154,16 @@ const createCommandMap: () => Record< 'node-type-registry': nodeTypeRegistryCmd, page: pageCmd, partition: partitionCmd, + 'platform-api': platformApiCmd, 'platform-api-schema': platformApiSchemaCmd, 'platform-api-setting': platformApiSettingCmd, - 'platform-apis': platformApisCmd, 'platform-cors-setting': platformCorsSettingCmd, 'platform-domain': platformDomainCmd, 'platform-domain-event': platformDomainEventCmd, 'platform-domain-verification': platformDomainVerificationCmd, + 'platform-email-identity': platformEmailIdentityCmd, + 'platform-email-provider-account': platformEmailProviderAccountCmd, + 'platform-email-site-identity': platformEmailSiteIdentityCmd, 'platform-managed-domain': platformManagedDomainCmd, 'platform-page': platformPageCmd, 'platform-site-app-link': platformSiteAppLinkCmd, @@ -212,7 +224,7 @@ const createCommandMap: () => Record< 'sites-provision-static-site': sitesProvisionStaticSiteCmd, }); const usage = - "\ncsdk \n\nCommands:\n context Manage API contexts\n auth Manage authentication\n api-schema apiSchema CRUD operations\n api-setting apiSetting CRUD operations\n apis apis CRUD operations\n ast-migration astMigration CRUD operations\n check-constraint checkConstraint CRUD operations\n composite-type compositeType CRUD operations\n cors-setting corsSetting CRUD operations\n database database CRUD operations\n database-setting databaseSetting CRUD operations\n database-transfer databaseTransfer CRUD operations\n default-privilege defaultPrivilege CRUD operations\n derive derive CRUD operations\n domain domain CRUD operations\n domain-event domainEvent CRUD operations\n domain-type domainType CRUD operations\n domain-verification domainVerification CRUD operations\n embedding-chunk embeddingChunk CRUD operations\n enum enum CRUD operations\n exclusion-constraint exclusionConstraint CRUD operations\n field-behavior fieldBehavior CRUD operations\n field field CRUD operations\n foreign-key-constraint-behavior foreignKeyConstraintBehavior CRUD operations\n foreign-key-constraint foreignKeyConstraint CRUD operations\n full-text-search fullTextSearch CRUD operations\n function function CRUD operations\n hostname-binding hostnameBinding CRUD operations\n http-route httpRoute CRUD operations\n index index CRUD operations\n managed-domain managedDomain CRUD operations\n node-type-registry nodeTypeRegistry CRUD operations\n page page CRUD operations\n partition partition CRUD operations\n platform-api-schema platformApiSchema CRUD operations\n platform-api-setting platformApiSetting CRUD operations\n platform-apis platformApis CRUD operations\n platform-cors-setting platformCorsSetting CRUD operations\n platform-domain platformDomain CRUD operations\n platform-domain-event platformDomainEvent CRUD operations\n platform-domain-verification platformDomainVerification CRUD operations\n platform-managed-domain platformManagedDomain CRUD operations\n platform-page platformPage CRUD operations\n platform-site-app-link platformSiteAppLink CRUD operations\n platform-site platformSite CRUD operations\n platform-site-deep-link platformSiteDeepLink CRUD operations\n platform-site-error-page platformSiteErrorPage CRUD operations\n platform-site-metadatum platformSiteMetadatum CRUD operations\n platform-site-module platformSiteModule CRUD operations\n platform-site-theme platformSiteTheme CRUD operations\n platform-site-web-config platformSiteWebConfig CRUD operations\n policy policy CRUD operations\n primary-key-constraint primaryKeyConstraint CRUD operations\n pubkey-setting pubkeySetting CRUD operations\n rls-setting rlsSetting CRUD operations\n route-binding routeBinding CRUD operations\n route route CRUD operations\n schema schema CRUD operations\n schema-grant schemaGrant CRUD operations\n site-app-link siteAppLink CRUD operations\n site site CRUD operations\n site-deep-link siteDeepLink CRUD operations\n site-error-page siteErrorPage CRUD operations\n site-metadatum siteMetadatum CRUD operations\n site-module siteModule CRUD operations\n site-theme siteTheme CRUD operations\n site-web-config siteWebConfig CRUD operations\n spatial-relation spatialRelation CRUD operations\n sql-action sqlAction CRUD operations\n table-behavior tableBehavior CRUD operations\n table table CRUD operations\n table-grant tableGrant CRUD operations\n trigger trigger CRUD operations\n trigger-function triggerFunction CRUD operations\n unique-constraint-behavior uniqueConstraintBehavior CRUD operations\n unique-constraint uniqueConstraint CRUD operations\n view-behavior viewBehavior CRUD operations\n view view CRUD operations\n view-grant viewGrant CRUD operations\n view-rule viewRule CRUD operations\n view-table viewTable CRUD operations\n webauthn-setting webauthnSetting CRUD operations\n api-schema-names apiSchemaNames\n apply-registry-defaults applyRegistryDefaults\n resolve-deep-link resolveDeepLink\n resolve-http-route resolveHttpRoute\n resolve-route resolveRoute\n resolve-site-app-links resolveSiteAppLinks\n accept-database-transfer acceptDatabaseTransfer\n apply-rls applyRls\n cancel-database-transfer cancelDatabaseTransfer\n domains-assign-subdomain domainsAssignSubdomain\n platform-domains-assign-subdomain platformDomainsAssignSubdomain\n platform-sites-provision-static-site platformSitesProvisionStaticSite\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 reject-database-transfer rejectDatabaseTransfer\n request-database Requests a database and returns a ticket (database_provision_module row) to poll.\n\nPass exactly one of preset_slug or modules. The pool, presets, and owner bootstrap are private implementation details: a warm pool hit fulfills the ticket immediately (fulfilled_at set, deferred owner bootstrap), otherwise the database is cold-provisioned asynchronously with exactly the requested modules. Poll the ticket until status = 'completed'; it then carries database_id and fulfilled_at.\n\nExample usage:\n SELECT * FROM metaschema_public.request_database('my_app', 'example.com', preset_slug := 'full');\n SELECT * FROM metaschema_public.request_database('my_app', 'example.com', modules := '[\"users_module\", \"emails_module\"]'::jsonb);\n set-field-order setFieldOrder\n sites-provision-static-site sitesProvisionStaticSite\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 api api CRUD operations\n api-schema apiSchema CRUD operations\n api-setting apiSetting CRUD operations\n ast-migration astMigration CRUD operations\n check-constraint checkConstraint CRUD operations\n composite-type compositeType CRUD operations\n cors-setting corsSetting CRUD operations\n database database CRUD operations\n database-setting databaseSetting CRUD operations\n database-transfer databaseTransfer CRUD operations\n default-privilege defaultPrivilege CRUD operations\n derive derive CRUD operations\n domain domain CRUD operations\n domain-event domainEvent CRUD operations\n domain-type domainType CRUD operations\n domain-verification domainVerification CRUD operations\n email-identity emailIdentity CRUD operations\n email-provider-account emailProviderAccount CRUD operations\n email-site-identity emailSiteIdentity CRUD operations\n embedding-chunk embeddingChunk CRUD operations\n enum enum CRUD operations\n exclusion-constraint exclusionConstraint CRUD operations\n field-behavior fieldBehavior CRUD operations\n field field CRUD operations\n foreign-key-constraint-behavior foreignKeyConstraintBehavior CRUD operations\n foreign-key-constraint foreignKeyConstraint CRUD operations\n full-text-search fullTextSearch CRUD operations\n function function CRUD operations\n hostname-binding hostnameBinding CRUD operations\n http-route httpRoute CRUD operations\n index index CRUD operations\n managed-domain managedDomain CRUD operations\n node-type-registry nodeTypeRegistry CRUD operations\n page page CRUD operations\n partition partition CRUD operations\n platform-api platformApi CRUD operations\n platform-api-schema platformApiSchema CRUD operations\n platform-api-setting platformApiSetting CRUD operations\n platform-cors-setting platformCorsSetting CRUD operations\n platform-domain platformDomain CRUD operations\n platform-domain-event platformDomainEvent CRUD operations\n platform-domain-verification platformDomainVerification CRUD operations\n platform-email-identity platformEmailIdentity CRUD operations\n platform-email-provider-account platformEmailProviderAccount CRUD operations\n platform-email-site-identity platformEmailSiteIdentity CRUD operations\n platform-managed-domain platformManagedDomain CRUD operations\n platform-page platformPage CRUD operations\n platform-site-app-link platformSiteAppLink CRUD operations\n platform-site platformSite CRUD operations\n platform-site-deep-link platformSiteDeepLink CRUD operations\n platform-site-error-page platformSiteErrorPage CRUD operations\n platform-site-metadatum platformSiteMetadatum CRUD operations\n platform-site-module platformSiteModule CRUD operations\n platform-site-theme platformSiteTheme CRUD operations\n platform-site-web-config platformSiteWebConfig CRUD operations\n policy policy CRUD operations\n primary-key-constraint primaryKeyConstraint CRUD operations\n pubkey-setting pubkeySetting CRUD operations\n rls-setting rlsSetting CRUD operations\n route-binding routeBinding CRUD operations\n route route CRUD operations\n schema schema CRUD operations\n schema-grant schemaGrant CRUD operations\n site-app-link siteAppLink CRUD operations\n site site CRUD operations\n site-deep-link siteDeepLink CRUD operations\n site-error-page siteErrorPage CRUD operations\n site-metadatum siteMetadatum CRUD operations\n site-module siteModule CRUD operations\n site-theme siteTheme CRUD operations\n site-web-config siteWebConfig CRUD operations\n spatial-relation spatialRelation CRUD operations\n sql-action sqlAction CRUD operations\n table-behavior tableBehavior CRUD operations\n table table CRUD operations\n table-grant tableGrant CRUD operations\n trigger trigger CRUD operations\n trigger-function triggerFunction CRUD operations\n unique-constraint-behavior uniqueConstraintBehavior CRUD operations\n unique-constraint uniqueConstraint CRUD operations\n view-behavior viewBehavior CRUD operations\n view view CRUD operations\n view-grant viewGrant CRUD operations\n view-rule viewRule CRUD operations\n view-table viewTable CRUD operations\n webauthn-setting webauthnSetting CRUD operations\n api-schema-names apiSchemaNames\n apply-registry-defaults applyRegistryDefaults\n resolve-deep-link resolveDeepLink\n resolve-http-route resolveHttpRoute\n resolve-route resolveRoute\n resolve-site-app-links resolveSiteAppLinks\n accept-database-transfer acceptDatabaseTransfer\n apply-rls applyRls\n cancel-database-transfer cancelDatabaseTransfer\n domains-assign-subdomain domainsAssignSubdomain\n platform-domains-assign-subdomain platformDomainsAssignSubdomain\n platform-sites-provision-static-site platformSitesProvisionStaticSite\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 reject-database-transfer rejectDatabaseTransfer\n request-database Requests a database and returns a ticket (database_provision_module row) to poll.\n\nPass exactly one of preset_slug or modules. The pool, presets, and owner bootstrap are private implementation details: a warm pool hit fulfills the ticket immediately (fulfilled_at set, deferred owner bootstrap), otherwise the database is cold-provisioned asynchronously with exactly the requested modules. Poll the ticket until status = 'completed'; it then carries database_id and fulfilled_at.\n\nExample usage:\n SELECT * FROM metaschema_public.request_database('my_app', 'example.com', preset_slug := 'full');\n SELECT * FROM metaschema_public.request_database('my_app', 'example.com', modules := '[\"users_module\", \"emails_module\"]'::jsonb);\n set-field-order setFieldOrder\n sites-provision-static-site sitesProvisionStaticSite\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/api/cli/commands/platform-apis.ts b/sdk/constructive-cli/src/api/cli/commands/api.ts similarity index 87% rename from sdk/constructive-cli/src/api/cli/commands/platform-apis.ts rename to sdk/constructive-cli/src/api/cli/commands/api.ts index ebe15c4b82..d7efd0643c 100644 --- a/sdk/constructive-cli/src/api/cli/commands/platform-apis.ts +++ b/sdk/constructive-cli/src/api/cli/commands/api.ts @@ -1,5 +1,5 @@ /** - * CLI commands for PlatformApis + * CLI commands for Api * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -8,17 +8,18 @@ import { getClient } from '../executor'; import { coerceAnswers, parseFindFirstArgs, parseFindManyArgs, stripUndefined } from '../utils'; import type { FieldSchema } from '../utils'; import type { - CreatePlatformApisInput, - PlatformApisPatch, - PlatformApisSelect, - PlatformApisFilter, - PlatformApisOrderBy, + CreateApiInput, + ApiPatch, + ApiSelect, + ApiFilter, + ApiOrderBy, } from '../../orm/input-types'; import type { FindManyArgs, FindFirstArgs } from '../../orm/select-types'; const fieldSchema: FieldSchema = { anonRole: 'string', config: 'json', createdAt: 'string', + databaseId: 'uuid', dbname: 'string', id: 'uuid', isPublished: 'boolean', @@ -27,7 +28,7 @@ const fieldSchema: FieldSchema = { updatedAt: 'string', }; const usage = - '\nplatform-apis \n\nCommands:\n list List platformApis records\n find-first Find first matching platformApis record\n get Get a platformApis by ID\n create Create a new platformApis\n update Update an existing platformApis\n delete Delete a platformApis\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'; + '\napi \n\nCommands:\n list List api records\n find-first Find first matching api record\n get Get a api by ID\n create Create a new api\n update Update an existing api\n delete Delete a api\n\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, @@ -80,6 +81,7 @@ async function handleList(argv: Partial>, _prompter: Inq anonRole: true, config: true, createdAt: true, + databaseId: true, dbname: true, id: true, isPublished: true, @@ -88,12 +90,12 @@ async function handleList(argv: Partial>, _prompter: Inq updatedAt: true, }; const findManyArgs = parseFindManyArgs< - FindManyArgs & { - select: PlatformApisSelect; + FindManyArgs & { + select: ApiSelect; } >(argv, defaultSelect); const client = getClient(); - const result = await client.platformApis.findMany(findManyArgs).execute(); + const result = await client.api.findMany(findManyArgs).execute(); console.log(JSON.stringify(result, null, 2)); } catch (error) { console.error('Failed to list records.'); @@ -109,6 +111,7 @@ async function handleFindFirst(argv: Partial>, _prompter anonRole: true, config: true, createdAt: true, + databaseId: true, dbname: true, id: true, isPublished: true, @@ -117,12 +120,12 @@ async function handleFindFirst(argv: Partial>, _prompter updatedAt: true, }; const findFirstArgs = parseFindFirstArgs< - FindFirstArgs & { - select: PlatformApisSelect; + FindFirstArgs & { + select: ApiSelect; } >(argv, defaultSelect); const client = getClient(); - const result = await client.platformApis.findFirst(findFirstArgs).execute(); + const result = await client.api.findFirst(findFirstArgs).execute(); console.log(JSON.stringify(result, null, 2)); } catch (error) { console.error('Failed to find record.'); @@ -143,13 +146,14 @@ async function handleGet(argv: Partial>, prompter: Inqui }, ]); const client = getClient(); - const result = await client.platformApis + const result = await client.api .findOne({ id: answers.id as string, select: { anonRole: true, config: true, createdAt: true, + databaseId: true, dbname: true, id: true, isPublished: true, @@ -185,6 +189,12 @@ async function handleCreate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'text', + name: 'databaseId', + message: 'databaseId', + required: true, + }, { type: 'text', name: 'dbname', @@ -214,16 +224,14 @@ async function handleCreate(argv: Partial>, prompter: In }, ]); const answers = coerceAnswers(rawAnswers, fieldSchema); - const cleanedData = stripUndefined( - answers, - fieldSchema - ) as CreatePlatformApisInput['platformApis']; + const cleanedData = stripUndefined(answers, fieldSchema) as CreateApiInput['api']; const client = getClient(); - const result = await client.platformApis + const result = await client.api .create({ data: { anonRole: cleanedData.anonRole, config: cleanedData.config, + databaseId: cleanedData.databaseId, dbname: cleanedData.dbname, isPublished: cleanedData.isPublished, name: cleanedData.name, @@ -233,6 +241,7 @@ async function handleCreate(argv: Partial>, prompter: In anonRole: true, config: true, createdAt: true, + databaseId: true, dbname: true, id: true, isPublished: true, @@ -274,6 +283,12 @@ async function handleUpdate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'text', + name: 'databaseId', + message: 'databaseId', + required: false, + }, { type: 'text', name: 'dbname', @@ -303,9 +318,9 @@ async function handleUpdate(argv: Partial>, prompter: In }, ]); const answers = coerceAnswers(rawAnswers, fieldSchema); - const cleanedData = stripUndefined(answers, fieldSchema) as PlatformApisPatch; + const cleanedData = stripUndefined(answers, fieldSchema) as ApiPatch; const client = getClient(); - const result = await client.platformApis + const result = await client.api .update({ where: { id: answers.id as string, @@ -313,6 +328,7 @@ async function handleUpdate(argv: Partial>, prompter: In data: { anonRole: cleanedData.anonRole, config: cleanedData.config, + databaseId: cleanedData.databaseId, dbname: cleanedData.dbname, isPublished: cleanedData.isPublished, name: cleanedData.name, @@ -322,6 +338,7 @@ async function handleUpdate(argv: Partial>, prompter: In anonRole: true, config: true, createdAt: true, + databaseId: true, dbname: true, id: true, isPublished: true, @@ -352,7 +369,7 @@ async function handleDelete(argv: Partial>, prompter: In ]); const answers = coerceAnswers(rawAnswers, fieldSchema); const client = getClient(); - const result = await client.platformApis + const result = await client.api .delete({ where: { id: answers.id as string, diff --git a/sdk/constructive-cli/src/api/cli/commands/email-identity.ts b/sdk/constructive-cli/src/api/cli/commands/email-identity.ts new file mode 100644 index 0000000000..52fbf958df --- /dev/null +++ b/sdk/constructive-cli/src/api/cli/commands/email-identity.ts @@ -0,0 +1,457 @@ +/** + * CLI commands for EmailIdentity + * @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 { + CreateEmailIdentityInput, + EmailIdentityPatch, + EmailIdentitySelect, + EmailIdentityFilter, + EmailIdentityOrderBy, +} from '../../orm/input-types'; +import type { FindManyArgs, FindFirstArgs } from '../../orm/select-types'; +const fieldSchema: FieldSchema = { + createdAt: 'string', + databaseId: 'uuid', + fromAddress: 'string', + fromName: 'string', + id: 'uuid', + isActive: 'boolean', + isDefault: 'boolean', + name: 'string', + providerAccountId: 'uuid', + replyToAddress: 'string', + supportAddress: 'string', + transportMode: 'string', + updatedAt: 'string', +}; +const usage = + '\nemail-identity \n\nCommands:\n list List emailIdentity records\n find-first Find first matching emailIdentity record\n get Get a emailIdentity by ID\n create Create a new emailIdentity\n update Update an existing emailIdentity\n delete Delete a emailIdentity\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 = { + createdAt: true, + databaseId: true, + fromAddress: true, + fromName: true, + id: true, + isActive: true, + isDefault: true, + name: true, + providerAccountId: true, + replyToAddress: true, + supportAddress: true, + transportMode: true, + updatedAt: true, + }; + const findManyArgs = parseFindManyArgs< + FindManyArgs & { + select: EmailIdentitySelect; + } + >(argv, defaultSelect); + const client = getClient(); + const result = await client.emailIdentity.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 = { + createdAt: true, + databaseId: true, + fromAddress: true, + fromName: true, + id: true, + isActive: true, + isDefault: true, + name: true, + providerAccountId: true, + replyToAddress: true, + supportAddress: true, + transportMode: true, + updatedAt: true, + }; + const findFirstArgs = parseFindFirstArgs< + FindFirstArgs & { + select: EmailIdentitySelect; + } + >(argv, defaultSelect); + const client = getClient(); + const result = await client.emailIdentity.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.emailIdentity + .findOne({ + id: answers.id as string, + select: { + createdAt: true, + databaseId: true, + fromAddress: true, + fromName: true, + id: true, + isActive: true, + isDefault: true, + name: true, + providerAccountId: true, + replyToAddress: true, + supportAddress: true, + transportMode: true, + updatedAt: true, + }, + }) + .execute(); + console.log(JSON.stringify(result, null, 2)); + } catch (error) { + console.error('Record not found.'); + if (error instanceof Error) { + console.error(error.message); + } + process.exit(1); + } +} +async function handleCreate(argv: Partial>, prompter: Inquirerer) { + try { + const rawAnswers = await prompter.prompt(argv, [ + { + type: 'text', + name: 'databaseId', + message: 'databaseId', + required: true, + }, + { + type: 'text', + name: 'fromAddress', + message: 'fromAddress', + required: true, + }, + { + type: 'text', + name: 'fromName', + message: 'fromName', + required: false, + skipPrompt: true, + }, + { + type: 'boolean', + name: 'isActive', + message: 'isActive', + required: false, + skipPrompt: true, + }, + { + type: 'boolean', + name: 'isDefault', + message: 'isDefault', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'name', + message: 'name', + required: true, + }, + { + type: 'text', + name: 'providerAccountId', + message: 'providerAccountId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'replyToAddress', + message: 'replyToAddress', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'supportAddress', + message: 'supportAddress', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'transportMode', + message: 'transportMode', + required: false, + skipPrompt: true, + }, + ]); + const answers = coerceAnswers(rawAnswers, fieldSchema); + const cleanedData = stripUndefined( + answers, + fieldSchema + ) as CreateEmailIdentityInput['emailIdentity']; + const client = getClient(); + const result = await client.emailIdentity + .create({ + data: { + databaseId: cleanedData.databaseId, + fromAddress: cleanedData.fromAddress, + fromName: cleanedData.fromName, + isActive: cleanedData.isActive, + isDefault: cleanedData.isDefault, + name: cleanedData.name, + providerAccountId: cleanedData.providerAccountId, + replyToAddress: cleanedData.replyToAddress, + supportAddress: cleanedData.supportAddress, + transportMode: cleanedData.transportMode, + }, + select: { + createdAt: true, + databaseId: true, + fromAddress: true, + fromName: true, + id: true, + isActive: true, + isDefault: true, + name: true, + providerAccountId: true, + replyToAddress: true, + supportAddress: true, + transportMode: true, + updatedAt: true, + }, + }) + .execute(); + console.log(JSON.stringify(result, null, 2)); + } catch (error) { + console.error('Failed to create record.'); + if (error instanceof Error) { + console.error(error.message); + } + process.exit(1); + } +} +async function handleUpdate(argv: Partial>, prompter: Inquirerer) { + try { + const rawAnswers = await prompter.prompt(argv, [ + { + type: 'text', + name: 'id', + message: 'id', + required: true, + }, + { + type: 'text', + name: 'databaseId', + message: 'databaseId', + required: false, + }, + { + type: 'text', + name: 'fromAddress', + message: 'fromAddress', + required: false, + }, + { + type: 'text', + name: 'fromName', + message: 'fromName', + required: false, + skipPrompt: true, + }, + { + type: 'boolean', + name: 'isActive', + message: 'isActive', + required: false, + skipPrompt: true, + }, + { + type: 'boolean', + name: 'isDefault', + message: 'isDefault', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'name', + message: 'name', + required: false, + }, + { + type: 'text', + name: 'providerAccountId', + message: 'providerAccountId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'replyToAddress', + message: 'replyToAddress', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'supportAddress', + message: 'supportAddress', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'transportMode', + message: 'transportMode', + required: false, + skipPrompt: true, + }, + ]); + const answers = coerceAnswers(rawAnswers, fieldSchema); + const cleanedData = stripUndefined(answers, fieldSchema) as EmailIdentityPatch; + const client = getClient(); + const result = await client.emailIdentity + .update({ + where: { + id: answers.id as string, + }, + data: { + databaseId: cleanedData.databaseId, + fromAddress: cleanedData.fromAddress, + fromName: cleanedData.fromName, + isActive: cleanedData.isActive, + isDefault: cleanedData.isDefault, + name: cleanedData.name, + providerAccountId: cleanedData.providerAccountId, + replyToAddress: cleanedData.replyToAddress, + supportAddress: cleanedData.supportAddress, + transportMode: cleanedData.transportMode, + }, + select: { + createdAt: true, + databaseId: true, + fromAddress: true, + fromName: true, + id: true, + isActive: true, + isDefault: true, + name: true, + providerAccountId: true, + replyToAddress: true, + supportAddress: true, + transportMode: true, + updatedAt: true, + }, + }) + .execute(); + console.log(JSON.stringify(result, null, 2)); + } catch (error) { + console.error('Failed to update record.'); + if (error instanceof Error) { + console.error(error.message); + } + process.exit(1); + } +} +async function handleDelete(argv: Partial>, prompter: Inquirerer) { + try { + const rawAnswers = await prompter.prompt(argv, [ + { + type: 'text', + name: 'id', + message: 'id', + required: true, + }, + ]); + const answers = coerceAnswers(rawAnswers, fieldSchema); + const client = getClient(); + const result = await client.emailIdentity + .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/api/cli/commands/email-provider-account.ts b/sdk/constructive-cli/src/api/cli/commands/email-provider-account.ts new file mode 100644 index 0000000000..27d7f5ccd0 --- /dev/null +++ b/sdk/constructive-cli/src/api/cli/commands/email-provider-account.ts @@ -0,0 +1,529 @@ +/** + * CLI commands for EmailProviderAccount + * @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 { + CreateEmailProviderAccountInput, + EmailProviderAccountPatch, + EmailProviderAccountSelect, + EmailProviderAccountFilter, + EmailProviderAccountOrderBy, +} from '../../orm/input-types'; +import type { FindManyArgs, FindFirstArgs } from '../../orm/select-types'; +const fieldSchema: FieldSchema = { + apiBaseUrl: 'string', + createdAt: 'string', + credentialsSecretName: 'string', + databaseId: 'uuid', + id: 'uuid', + isActive: 'boolean', + name: 'string', + provider: 'string', + providerAccountName: 'string', + region: 'string', + smtpHost: 'string', + smtpPort: 'int', + smtpSecure: 'boolean', + smtpUser: 'string', + updatedAt: 'string', + webhookSigningSecretName: 'string', +}; +const usage = + '\nemail-provider-account \n\nCommands:\n list List emailProviderAccount records\n find-first Find first matching emailProviderAccount record\n get Get a emailProviderAccount by ID\n create Create a new emailProviderAccount\n update Update an existing emailProviderAccount\n delete Delete a emailProviderAccount\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 = { + apiBaseUrl: true, + createdAt: true, + credentialsSecretName: true, + databaseId: true, + id: true, + isActive: true, + name: true, + provider: true, + providerAccountName: true, + region: true, + smtpHost: true, + smtpPort: true, + smtpSecure: true, + smtpUser: true, + updatedAt: true, + webhookSigningSecretName: true, + }; + const findManyArgs = parseFindManyArgs< + FindManyArgs< + EmailProviderAccountSelect, + EmailProviderAccountFilter, + EmailProviderAccountOrderBy + > & { + select: EmailProviderAccountSelect; + } + >(argv, defaultSelect); + const client = getClient(); + const result = await client.emailProviderAccount.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 = { + apiBaseUrl: true, + createdAt: true, + credentialsSecretName: true, + databaseId: true, + id: true, + isActive: true, + name: true, + provider: true, + providerAccountName: true, + region: true, + smtpHost: true, + smtpPort: true, + smtpSecure: true, + smtpUser: true, + updatedAt: true, + webhookSigningSecretName: true, + }; + const findFirstArgs = parseFindFirstArgs< + FindFirstArgs< + EmailProviderAccountSelect, + EmailProviderAccountFilter, + EmailProviderAccountOrderBy + > & { + select: EmailProviderAccountSelect; + } + >(argv, defaultSelect); + const client = getClient(); + const result = await client.emailProviderAccount.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.emailProviderAccount + .findOne({ + id: answers.id as string, + select: { + apiBaseUrl: true, + createdAt: true, + credentialsSecretName: true, + databaseId: true, + id: true, + isActive: true, + name: true, + provider: true, + providerAccountName: true, + region: true, + smtpHost: true, + smtpPort: true, + smtpSecure: true, + smtpUser: true, + updatedAt: true, + webhookSigningSecretName: 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: 'apiBaseUrl', + message: 'apiBaseUrl', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'credentialsSecretName', + message: 'credentialsSecretName', + required: true, + }, + { + type: 'text', + name: 'databaseId', + message: 'databaseId', + required: true, + }, + { + type: 'boolean', + name: 'isActive', + message: 'isActive', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'name', + message: 'name', + required: true, + }, + { + type: 'text', + name: 'provider', + message: 'provider', + required: true, + }, + { + type: 'text', + name: 'providerAccountName', + message: 'providerAccountName', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'region', + message: 'region', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'smtpHost', + message: 'smtpHost', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'smtpPort', + message: 'smtpPort', + required: false, + skipPrompt: true, + }, + { + type: 'boolean', + name: 'smtpSecure', + message: 'smtpSecure', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'smtpUser', + message: 'smtpUser', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'webhookSigningSecretName', + message: 'webhookSigningSecretName', + required: false, + skipPrompt: true, + }, + ]); + const answers = coerceAnswers(rawAnswers, fieldSchema); + const cleanedData = stripUndefined( + answers, + fieldSchema + ) as CreateEmailProviderAccountInput['emailProviderAccount']; + const client = getClient(); + const result = await client.emailProviderAccount + .create({ + data: { + apiBaseUrl: cleanedData.apiBaseUrl, + credentialsSecretName: cleanedData.credentialsSecretName, + databaseId: cleanedData.databaseId, + isActive: cleanedData.isActive, + name: cleanedData.name, + provider: cleanedData.provider, + providerAccountName: cleanedData.providerAccountName, + region: cleanedData.region, + smtpHost: cleanedData.smtpHost, + smtpPort: cleanedData.smtpPort, + smtpSecure: cleanedData.smtpSecure, + smtpUser: cleanedData.smtpUser, + webhookSigningSecretName: cleanedData.webhookSigningSecretName, + }, + select: { + apiBaseUrl: true, + createdAt: true, + credentialsSecretName: true, + databaseId: true, + id: true, + isActive: true, + name: true, + provider: true, + providerAccountName: true, + region: true, + smtpHost: true, + smtpPort: true, + smtpSecure: true, + smtpUser: true, + updatedAt: true, + webhookSigningSecretName: 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: 'apiBaseUrl', + message: 'apiBaseUrl', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'credentialsSecretName', + message: 'credentialsSecretName', + required: false, + }, + { + type: 'text', + name: 'databaseId', + message: 'databaseId', + required: false, + }, + { + type: 'boolean', + name: 'isActive', + message: 'isActive', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'name', + message: 'name', + required: false, + }, + { + type: 'text', + name: 'provider', + message: 'provider', + required: false, + }, + { + type: 'text', + name: 'providerAccountName', + message: 'providerAccountName', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'region', + message: 'region', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'smtpHost', + message: 'smtpHost', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'smtpPort', + message: 'smtpPort', + required: false, + skipPrompt: true, + }, + { + type: 'boolean', + name: 'smtpSecure', + message: 'smtpSecure', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'smtpUser', + message: 'smtpUser', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'webhookSigningSecretName', + message: 'webhookSigningSecretName', + required: false, + skipPrompt: true, + }, + ]); + const answers = coerceAnswers(rawAnswers, fieldSchema); + const cleanedData = stripUndefined(answers, fieldSchema) as EmailProviderAccountPatch; + const client = getClient(); + const result = await client.emailProviderAccount + .update({ + where: { + id: answers.id as string, + }, + data: { + apiBaseUrl: cleanedData.apiBaseUrl, + credentialsSecretName: cleanedData.credentialsSecretName, + databaseId: cleanedData.databaseId, + isActive: cleanedData.isActive, + name: cleanedData.name, + provider: cleanedData.provider, + providerAccountName: cleanedData.providerAccountName, + region: cleanedData.region, + smtpHost: cleanedData.smtpHost, + smtpPort: cleanedData.smtpPort, + smtpSecure: cleanedData.smtpSecure, + smtpUser: cleanedData.smtpUser, + webhookSigningSecretName: cleanedData.webhookSigningSecretName, + }, + select: { + apiBaseUrl: true, + createdAt: true, + credentialsSecretName: true, + databaseId: true, + id: true, + isActive: true, + name: true, + provider: true, + providerAccountName: true, + region: true, + smtpHost: true, + smtpPort: true, + smtpSecure: true, + smtpUser: true, + updatedAt: true, + webhookSigningSecretName: 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.emailProviderAccount + .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-permission-default.ts b/sdk/constructive-cli/src/api/cli/commands/email-site-identity.ts similarity index 60% rename from sdk/constructive-cli/src/admin/cli/commands/org-permission-default.ts rename to sdk/constructive-cli/src/api/cli/commands/email-site-identity.ts index b0856d28e3..51bfe46394 100644 --- a/sdk/constructive-cli/src/admin/cli/commands/org-permission-default.ts +++ b/sdk/constructive-cli/src/api/cli/commands/email-site-identity.ts @@ -1,5 +1,5 @@ /** - * CLI commands for OrgPermissionDefault + * CLI commands for EmailSiteIdentity * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -8,20 +8,23 @@ import { getClient } from '../executor'; import { coerceAnswers, parseFindFirstArgs, parseFindManyArgs, stripUndefined } from '../utils'; import type { FieldSchema } from '../utils'; import type { - CreateOrgPermissionDefaultInput, - OrgPermissionDefaultPatch, - OrgPermissionDefaultSelect, - OrgPermissionDefaultFilter, - OrgPermissionDefaultOrderBy, + CreateEmailSiteIdentityInput, + EmailSiteIdentityPatch, + EmailSiteIdentitySelect, + EmailSiteIdentityFilter, + EmailSiteIdentityOrderBy, } from '../../orm/input-types'; import type { FindManyArgs, FindFirstArgs } from '../../orm/select-types'; const fieldSchema: FieldSchema = { - entityId: 'uuid', + createdAt: 'string', + databaseId: 'uuid', + emailIdentityId: 'uuid', id: 'uuid', - permissions: 'string', + siteId: 'uuid', + updatedAt: 'string', }; const usage = - '\norg-permission-default \n\nCommands:\n list List orgPermissionDefault records\n find-first Find first matching orgPermissionDefault record\n get Get a orgPermissionDefault by ID\n create Create a new orgPermissionDefault\n update Update an existing orgPermissionDefault\n delete Delete a orgPermissionDefault\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'; + '\nemail-site-identity \n\nCommands:\n list List emailSiteIdentity records\n find-first Find first matching emailSiteIdentity record\n get Get a emailSiteIdentity by ID\n create Create a new emailSiteIdentity\n update Update an existing emailSiteIdentity\n delete Delete a emailSiteIdentity\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, @@ -71,21 +74,20 @@ async function handleTableSubcommand( async function handleList(argv: Partial>, _prompter: Inquirerer) { try { const defaultSelect = { - entityId: true, + createdAt: true, + databaseId: true, + emailIdentityId: true, id: true, - permissions: true, + siteId: true, + updatedAt: true, }; const findManyArgs = parseFindManyArgs< - FindManyArgs< - OrgPermissionDefaultSelect, - OrgPermissionDefaultFilter, - OrgPermissionDefaultOrderBy - > & { - select: OrgPermissionDefaultSelect; + FindManyArgs & { + select: EmailSiteIdentitySelect; } >(argv, defaultSelect); const client = getClient(); - const result = await client.orgPermissionDefault.findMany(findManyArgs).execute(); + const result = await client.emailSiteIdentity.findMany(findManyArgs).execute(); console.log(JSON.stringify(result, null, 2)); } catch (error) { console.error('Failed to list records.'); @@ -98,21 +100,20 @@ async function handleList(argv: Partial>, _prompter: Inq async function handleFindFirst(argv: Partial>, _prompter: Inquirerer) { try { const defaultSelect = { - entityId: true, + createdAt: true, + databaseId: true, + emailIdentityId: true, id: true, - permissions: true, + siteId: true, + updatedAt: true, }; const findFirstArgs = parseFindFirstArgs< - FindFirstArgs< - OrgPermissionDefaultSelect, - OrgPermissionDefaultFilter, - OrgPermissionDefaultOrderBy - > & { - select: OrgPermissionDefaultSelect; + FindFirstArgs & { + select: EmailSiteIdentitySelect; } >(argv, defaultSelect); const client = getClient(); - const result = await client.orgPermissionDefault.findFirst(findFirstArgs).execute(); + const result = await client.emailSiteIdentity.findFirst(findFirstArgs).execute(); console.log(JSON.stringify(result, null, 2)); } catch (error) { console.error('Failed to find record.'); @@ -133,13 +134,16 @@ async function handleGet(argv: Partial>, prompter: Inqui }, ]); const client = getClient(); - const result = await client.orgPermissionDefault + const result = await client.emailSiteIdentity .findOne({ id: answers.id as string, select: { - entityId: true, + createdAt: true, + databaseId: true, + emailIdentityId: true, id: true, - permissions: true, + siteId: true, + updatedAt: true, }, }) .execute(); @@ -157,34 +161,43 @@ async function handleCreate(argv: Partial>, prompter: In const rawAnswers = await prompter.prompt(argv, [ { type: 'text', - name: 'entityId', - message: 'entityId', + name: 'databaseId', + message: 'databaseId', required: true, }, { type: 'text', - name: 'permissions', - message: 'permissions', - required: false, - skipPrompt: true, + name: 'emailIdentityId', + message: 'emailIdentityId', + required: true, + }, + { + type: 'text', + name: 'siteId', + message: 'siteId', + required: true, }, ]); const answers = coerceAnswers(rawAnswers, fieldSchema); const cleanedData = stripUndefined( answers, fieldSchema - ) as CreateOrgPermissionDefaultInput['orgPermissionDefault']; + ) as CreateEmailSiteIdentityInput['emailSiteIdentity']; const client = getClient(); - const result = await client.orgPermissionDefault + const result = await client.emailSiteIdentity .create({ data: { - entityId: cleanedData.entityId, - permissions: cleanedData.permissions, + databaseId: cleanedData.databaseId, + emailIdentityId: cleanedData.emailIdentityId, + siteId: cleanedData.siteId, }, select: { - entityId: true, + createdAt: true, + databaseId: true, + emailIdentityId: true, id: true, - permissions: true, + siteId: true, + updatedAt: true, }, }) .execute(); @@ -208,34 +221,43 @@ async function handleUpdate(argv: Partial>, prompter: In }, { type: 'text', - name: 'entityId', - message: 'entityId', + name: 'databaseId', + message: 'databaseId', + required: false, + }, + { + type: 'text', + name: 'emailIdentityId', + message: 'emailIdentityId', required: false, }, { type: 'text', - name: 'permissions', - message: 'permissions', + name: 'siteId', + message: 'siteId', required: false, - skipPrompt: true, }, ]); const answers = coerceAnswers(rawAnswers, fieldSchema); - const cleanedData = stripUndefined(answers, fieldSchema) as OrgPermissionDefaultPatch; + const cleanedData = stripUndefined(answers, fieldSchema) as EmailSiteIdentityPatch; const client = getClient(); - const result = await client.orgPermissionDefault + const result = await client.emailSiteIdentity .update({ where: { id: answers.id as string, }, data: { - entityId: cleanedData.entityId, - permissions: cleanedData.permissions, + databaseId: cleanedData.databaseId, + emailIdentityId: cleanedData.emailIdentityId, + siteId: cleanedData.siteId, }, select: { - entityId: true, + createdAt: true, + databaseId: true, + emailIdentityId: true, id: true, - permissions: true, + siteId: true, + updatedAt: true, }, }) .execute(); @@ -260,7 +282,7 @@ async function handleDelete(argv: Partial>, prompter: In ]); const answers = coerceAnswers(rawAnswers, fieldSchema); const client = getClient(); - const result = await client.orgPermissionDefault + const result = await client.emailSiteIdentity .delete({ where: { id: answers.id as string, diff --git a/sdk/constructive-cli/src/api/cli/commands/apis.ts b/sdk/constructive-cli/src/api/cli/commands/platform-api.ts similarity index 78% rename from sdk/constructive-cli/src/api/cli/commands/apis.ts rename to sdk/constructive-cli/src/api/cli/commands/platform-api.ts index aadb994945..6338ed05c9 100644 --- a/sdk/constructive-cli/src/api/cli/commands/apis.ts +++ b/sdk/constructive-cli/src/api/cli/commands/platform-api.ts @@ -1,5 +1,5 @@ /** - * CLI commands for Apis + * CLI commands for PlatformApi * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -8,18 +8,17 @@ import { getClient } from '../executor'; import { coerceAnswers, parseFindFirstArgs, parseFindManyArgs, stripUndefined } from '../utils'; import type { FieldSchema } from '../utils'; import type { - CreateApisInput, - ApisPatch, - ApisSelect, - ApisFilter, - ApisOrderBy, + CreatePlatformApiInput, + PlatformApiPatch, + PlatformApiSelect, + PlatformApiFilter, + PlatformApiOrderBy, } from '../../orm/input-types'; import type { FindManyArgs, FindFirstArgs } from '../../orm/select-types'; const fieldSchema: FieldSchema = { anonRole: 'string', config: 'json', createdAt: 'string', - databaseId: 'uuid', dbname: 'string', id: 'uuid', isPublished: 'boolean', @@ -28,7 +27,7 @@ const fieldSchema: FieldSchema = { updatedAt: 'string', }; const usage = - '\napis \n\nCommands:\n list List apis records\n find-first Find first matching apis record\n get Get a apis by ID\n create Create a new apis\n update Update an existing apis\n delete Delete a apis\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'; + '\nplatform-api \n\nCommands:\n list List platformApi records\n find-first Find first matching platformApi record\n get Get a platformApi by ID\n create Create a new platformApi\n update Update an existing platformApi\n delete Delete a platformApi\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,7 +80,6 @@ async function handleList(argv: Partial>, _prompter: Inq anonRole: true, config: true, createdAt: true, - databaseId: true, dbname: true, id: true, isPublished: true, @@ -90,12 +88,12 @@ async function handleList(argv: Partial>, _prompter: Inq updatedAt: true, }; const findManyArgs = parseFindManyArgs< - FindManyArgs & { - select: ApisSelect; + FindManyArgs & { + select: PlatformApiSelect; } >(argv, defaultSelect); const client = getClient(); - const result = await client.apis.findMany(findManyArgs).execute(); + const result = await client.platformApi.findMany(findManyArgs).execute(); console.log(JSON.stringify(result, null, 2)); } catch (error) { console.error('Failed to list records.'); @@ -111,7 +109,6 @@ async function handleFindFirst(argv: Partial>, _prompter anonRole: true, config: true, createdAt: true, - databaseId: true, dbname: true, id: true, isPublished: true, @@ -120,12 +117,12 @@ async function handleFindFirst(argv: Partial>, _prompter updatedAt: true, }; const findFirstArgs = parseFindFirstArgs< - FindFirstArgs & { - select: ApisSelect; + FindFirstArgs & { + select: PlatformApiSelect; } >(argv, defaultSelect); const client = getClient(); - const result = await client.apis.findFirst(findFirstArgs).execute(); + const result = await client.platformApi.findFirst(findFirstArgs).execute(); console.log(JSON.stringify(result, null, 2)); } catch (error) { console.error('Failed to find record.'); @@ -146,14 +143,13 @@ async function handleGet(argv: Partial>, prompter: Inqui }, ]); const client = getClient(); - const result = await client.apis + const result = await client.platformApi .findOne({ id: answers.id as string, select: { anonRole: true, config: true, createdAt: true, - databaseId: true, dbname: true, id: true, isPublished: true, @@ -189,12 +185,6 @@ async function handleCreate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, - { - type: 'text', - name: 'databaseId', - message: 'databaseId', - required: true, - }, { type: 'text', name: 'dbname', @@ -224,14 +214,16 @@ async function handleCreate(argv: Partial>, prompter: In }, ]); const answers = coerceAnswers(rawAnswers, fieldSchema); - const cleanedData = stripUndefined(answers, fieldSchema) as CreateApisInput['apis']; + const cleanedData = stripUndefined( + answers, + fieldSchema + ) as CreatePlatformApiInput['platformApi']; const client = getClient(); - const result = await client.apis + const result = await client.platformApi .create({ data: { anonRole: cleanedData.anonRole, config: cleanedData.config, - databaseId: cleanedData.databaseId, dbname: cleanedData.dbname, isPublished: cleanedData.isPublished, name: cleanedData.name, @@ -241,7 +233,6 @@ async function handleCreate(argv: Partial>, prompter: In anonRole: true, config: true, createdAt: true, - databaseId: true, dbname: true, id: true, isPublished: true, @@ -283,12 +274,6 @@ async function handleUpdate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, - { - type: 'text', - name: 'databaseId', - message: 'databaseId', - required: false, - }, { type: 'text', name: 'dbname', @@ -318,9 +303,9 @@ async function handleUpdate(argv: Partial>, prompter: In }, ]); const answers = coerceAnswers(rawAnswers, fieldSchema); - const cleanedData = stripUndefined(answers, fieldSchema) as ApisPatch; + const cleanedData = stripUndefined(answers, fieldSchema) as PlatformApiPatch; const client = getClient(); - const result = await client.apis + const result = await client.platformApi .update({ where: { id: answers.id as string, @@ -328,7 +313,6 @@ async function handleUpdate(argv: Partial>, prompter: In data: { anonRole: cleanedData.anonRole, config: cleanedData.config, - databaseId: cleanedData.databaseId, dbname: cleanedData.dbname, isPublished: cleanedData.isPublished, name: cleanedData.name, @@ -338,7 +322,6 @@ async function handleUpdate(argv: Partial>, prompter: In anonRole: true, config: true, createdAt: true, - databaseId: true, dbname: true, id: true, isPublished: true, @@ -369,7 +352,7 @@ async function handleDelete(argv: Partial>, prompter: In ]); const answers = coerceAnswers(rawAnswers, fieldSchema); const client = getClient(); - const result = await client.apis + const result = await client.platformApi .delete({ where: { id: answers.id as string, diff --git a/sdk/constructive-cli/src/api/cli/commands/platform-email-identity.ts b/sdk/constructive-cli/src/api/cli/commands/platform-email-identity.ts new file mode 100644 index 0000000000..7f021fe512 --- /dev/null +++ b/sdk/constructive-cli/src/api/cli/commands/platform-email-identity.ts @@ -0,0 +1,445 @@ +/** + * CLI commands for PlatformEmailIdentity + * @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 { + CreatePlatformEmailIdentityInput, + PlatformEmailIdentityPatch, + PlatformEmailIdentitySelect, + PlatformEmailIdentityFilter, + PlatformEmailIdentityOrderBy, +} from '../../orm/input-types'; +import type { FindManyArgs, FindFirstArgs } from '../../orm/select-types'; +const fieldSchema: FieldSchema = { + createdAt: 'string', + fromAddress: 'string', + fromName: 'string', + id: 'uuid', + isActive: 'boolean', + isDefault: 'boolean', + name: 'string', + providerAccountId: 'uuid', + replyToAddress: 'string', + supportAddress: 'string', + transportMode: 'string', + updatedAt: 'string', +}; +const usage = + '\nplatform-email-identity \n\nCommands:\n list List platformEmailIdentity records\n find-first Find first matching platformEmailIdentity record\n get Get a platformEmailIdentity by ID\n create Create a new platformEmailIdentity\n update Update an existing platformEmailIdentity\n delete Delete a platformEmailIdentity\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 = { + createdAt: true, + fromAddress: true, + fromName: true, + id: true, + isActive: true, + isDefault: true, + name: true, + providerAccountId: true, + replyToAddress: true, + supportAddress: true, + transportMode: true, + updatedAt: true, + }; + const findManyArgs = parseFindManyArgs< + FindManyArgs< + PlatformEmailIdentitySelect, + PlatformEmailIdentityFilter, + PlatformEmailIdentityOrderBy + > & { + select: PlatformEmailIdentitySelect; + } + >(argv, defaultSelect); + const client = getClient(); + const result = await client.platformEmailIdentity.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 = { + createdAt: true, + fromAddress: true, + fromName: true, + id: true, + isActive: true, + isDefault: true, + name: true, + providerAccountId: true, + replyToAddress: true, + supportAddress: true, + transportMode: true, + updatedAt: true, + }; + const findFirstArgs = parseFindFirstArgs< + FindFirstArgs< + PlatformEmailIdentitySelect, + PlatformEmailIdentityFilter, + PlatformEmailIdentityOrderBy + > & { + select: PlatformEmailIdentitySelect; + } + >(argv, defaultSelect); + const client = getClient(); + const result = await client.platformEmailIdentity.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.platformEmailIdentity + .findOne({ + id: answers.id as string, + select: { + createdAt: true, + fromAddress: true, + fromName: true, + id: true, + isActive: true, + isDefault: true, + name: true, + providerAccountId: true, + replyToAddress: true, + supportAddress: true, + transportMode: true, + updatedAt: true, + }, + }) + .execute(); + console.log(JSON.stringify(result, null, 2)); + } catch (error) { + console.error('Record not found.'); + if (error instanceof Error) { + console.error(error.message); + } + process.exit(1); + } +} +async function handleCreate(argv: Partial>, prompter: Inquirerer) { + try { + const rawAnswers = await prompter.prompt(argv, [ + { + type: 'text', + name: 'fromAddress', + message: 'fromAddress', + required: true, + }, + { + type: 'text', + name: 'fromName', + message: 'fromName', + required: false, + skipPrompt: true, + }, + { + type: 'boolean', + name: 'isActive', + message: 'isActive', + required: false, + skipPrompt: true, + }, + { + type: 'boolean', + name: 'isDefault', + message: 'isDefault', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'name', + message: 'name', + required: true, + }, + { + type: 'text', + name: 'providerAccountId', + message: 'providerAccountId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'replyToAddress', + message: 'replyToAddress', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'supportAddress', + message: 'supportAddress', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'transportMode', + message: 'transportMode', + required: false, + skipPrompt: true, + }, + ]); + const answers = coerceAnswers(rawAnswers, fieldSchema); + const cleanedData = stripUndefined( + answers, + fieldSchema + ) as CreatePlatformEmailIdentityInput['platformEmailIdentity']; + const client = getClient(); + const result = await client.platformEmailIdentity + .create({ + data: { + fromAddress: cleanedData.fromAddress, + fromName: cleanedData.fromName, + isActive: cleanedData.isActive, + isDefault: cleanedData.isDefault, + name: cleanedData.name, + providerAccountId: cleanedData.providerAccountId, + replyToAddress: cleanedData.replyToAddress, + supportAddress: cleanedData.supportAddress, + transportMode: cleanedData.transportMode, + }, + select: { + createdAt: true, + fromAddress: true, + fromName: true, + id: true, + isActive: true, + isDefault: true, + name: true, + providerAccountId: true, + replyToAddress: true, + supportAddress: true, + transportMode: true, + updatedAt: true, + }, + }) + .execute(); + console.log(JSON.stringify(result, null, 2)); + } catch (error) { + console.error('Failed to create record.'); + if (error instanceof Error) { + console.error(error.message); + } + process.exit(1); + } +} +async function handleUpdate(argv: Partial>, prompter: Inquirerer) { + try { + const rawAnswers = await prompter.prompt(argv, [ + { + type: 'text', + name: 'id', + message: 'id', + required: true, + }, + { + type: 'text', + name: 'fromAddress', + message: 'fromAddress', + required: false, + }, + { + type: 'text', + name: 'fromName', + message: 'fromName', + required: false, + skipPrompt: true, + }, + { + type: 'boolean', + name: 'isActive', + message: 'isActive', + required: false, + skipPrompt: true, + }, + { + type: 'boolean', + name: 'isDefault', + message: 'isDefault', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'name', + message: 'name', + required: false, + }, + { + type: 'text', + name: 'providerAccountId', + message: 'providerAccountId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'replyToAddress', + message: 'replyToAddress', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'supportAddress', + message: 'supportAddress', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'transportMode', + message: 'transportMode', + required: false, + skipPrompt: true, + }, + ]); + const answers = coerceAnswers(rawAnswers, fieldSchema); + const cleanedData = stripUndefined(answers, fieldSchema) as PlatformEmailIdentityPatch; + const client = getClient(); + const result = await client.platformEmailIdentity + .update({ + where: { + id: answers.id as string, + }, + data: { + fromAddress: cleanedData.fromAddress, + fromName: cleanedData.fromName, + isActive: cleanedData.isActive, + isDefault: cleanedData.isDefault, + name: cleanedData.name, + providerAccountId: cleanedData.providerAccountId, + replyToAddress: cleanedData.replyToAddress, + supportAddress: cleanedData.supportAddress, + transportMode: cleanedData.transportMode, + }, + select: { + createdAt: true, + fromAddress: true, + fromName: true, + id: true, + isActive: true, + isDefault: true, + name: true, + providerAccountId: true, + replyToAddress: true, + supportAddress: true, + transportMode: true, + updatedAt: true, + }, + }) + .execute(); + console.log(JSON.stringify(result, null, 2)); + } catch (error) { + console.error('Failed to update record.'); + if (error instanceof Error) { + console.error(error.message); + } + process.exit(1); + } +} +async function handleDelete(argv: Partial>, prompter: Inquirerer) { + try { + const rawAnswers = await prompter.prompt(argv, [ + { + type: 'text', + name: 'id', + message: 'id', + required: true, + }, + ]); + const answers = coerceAnswers(rawAnswers, fieldSchema); + const client = getClient(); + const result = await client.platformEmailIdentity + .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/api/cli/commands/platform-email-provider-account.ts b/sdk/constructive-cli/src/api/cli/commands/platform-email-provider-account.ts new file mode 100644 index 0000000000..3faa9e0713 --- /dev/null +++ b/sdk/constructive-cli/src/api/cli/commands/platform-email-provider-account.ts @@ -0,0 +1,509 @@ +/** + * CLI commands for PlatformEmailProviderAccount + * @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 { + CreatePlatformEmailProviderAccountInput, + PlatformEmailProviderAccountPatch, + PlatformEmailProviderAccountSelect, + PlatformEmailProviderAccountFilter, + PlatformEmailProviderAccountOrderBy, +} from '../../orm/input-types'; +import type { FindManyArgs, FindFirstArgs } from '../../orm/select-types'; +const fieldSchema: FieldSchema = { + apiBaseUrl: 'string', + createdAt: 'string', + credentialsSecretName: 'string', + id: 'uuid', + isActive: 'boolean', + name: 'string', + provider: 'string', + providerAccountName: 'string', + region: 'string', + smtpHost: 'string', + smtpPort: 'int', + smtpSecure: 'boolean', + smtpUser: 'string', + updatedAt: 'string', + webhookSigningSecretName: 'string', +}; +const usage = + '\nplatform-email-provider-account \n\nCommands:\n list List platformEmailProviderAccount records\n find-first Find first matching platformEmailProviderAccount record\n get Get a platformEmailProviderAccount by ID\n create Create a new platformEmailProviderAccount\n update Update an existing platformEmailProviderAccount\n delete Delete a platformEmailProviderAccount\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 = { + apiBaseUrl: true, + createdAt: true, + credentialsSecretName: true, + id: true, + isActive: true, + name: true, + provider: true, + providerAccountName: true, + region: true, + smtpHost: true, + smtpPort: true, + smtpSecure: true, + smtpUser: true, + updatedAt: true, + webhookSigningSecretName: true, + }; + const findManyArgs = parseFindManyArgs< + FindManyArgs< + PlatformEmailProviderAccountSelect, + PlatformEmailProviderAccountFilter, + PlatformEmailProviderAccountOrderBy + > & { + select: PlatformEmailProviderAccountSelect; + } + >(argv, defaultSelect); + const client = getClient(); + const result = await client.platformEmailProviderAccount.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 = { + apiBaseUrl: true, + createdAt: true, + credentialsSecretName: true, + id: true, + isActive: true, + name: true, + provider: true, + providerAccountName: true, + region: true, + smtpHost: true, + smtpPort: true, + smtpSecure: true, + smtpUser: true, + updatedAt: true, + webhookSigningSecretName: true, + }; + const findFirstArgs = parseFindFirstArgs< + FindFirstArgs< + PlatformEmailProviderAccountSelect, + PlatformEmailProviderAccountFilter, + PlatformEmailProviderAccountOrderBy + > & { + select: PlatformEmailProviderAccountSelect; + } + >(argv, defaultSelect); + const client = getClient(); + const result = await client.platformEmailProviderAccount.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.platformEmailProviderAccount + .findOne({ + id: answers.id as string, + select: { + apiBaseUrl: true, + createdAt: true, + credentialsSecretName: true, + id: true, + isActive: true, + name: true, + provider: true, + providerAccountName: true, + region: true, + smtpHost: true, + smtpPort: true, + smtpSecure: true, + smtpUser: true, + updatedAt: true, + webhookSigningSecretName: 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: 'apiBaseUrl', + message: 'apiBaseUrl', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'credentialsSecretName', + message: 'credentialsSecretName', + required: true, + }, + { + type: 'boolean', + name: 'isActive', + message: 'isActive', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'name', + message: 'name', + required: true, + }, + { + type: 'text', + name: 'provider', + message: 'provider', + required: true, + }, + { + type: 'text', + name: 'providerAccountName', + message: 'providerAccountName', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'region', + message: 'region', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'smtpHost', + message: 'smtpHost', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'smtpPort', + message: 'smtpPort', + required: false, + skipPrompt: true, + }, + { + type: 'boolean', + name: 'smtpSecure', + message: 'smtpSecure', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'smtpUser', + message: 'smtpUser', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'webhookSigningSecretName', + message: 'webhookSigningSecretName', + required: false, + skipPrompt: true, + }, + ]); + const answers = coerceAnswers(rawAnswers, fieldSchema); + const cleanedData = stripUndefined( + answers, + fieldSchema + ) as CreatePlatformEmailProviderAccountInput['platformEmailProviderAccount']; + const client = getClient(); + const result = await client.platformEmailProviderAccount + .create({ + data: { + apiBaseUrl: cleanedData.apiBaseUrl, + credentialsSecretName: cleanedData.credentialsSecretName, + isActive: cleanedData.isActive, + name: cleanedData.name, + provider: cleanedData.provider, + providerAccountName: cleanedData.providerAccountName, + region: cleanedData.region, + smtpHost: cleanedData.smtpHost, + smtpPort: cleanedData.smtpPort, + smtpSecure: cleanedData.smtpSecure, + smtpUser: cleanedData.smtpUser, + webhookSigningSecretName: cleanedData.webhookSigningSecretName, + }, + select: { + apiBaseUrl: true, + createdAt: true, + credentialsSecretName: true, + id: true, + isActive: true, + name: true, + provider: true, + providerAccountName: true, + region: true, + smtpHost: true, + smtpPort: true, + smtpSecure: true, + smtpUser: true, + updatedAt: true, + webhookSigningSecretName: 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: 'apiBaseUrl', + message: 'apiBaseUrl', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'credentialsSecretName', + message: 'credentialsSecretName', + required: false, + }, + { + type: 'boolean', + name: 'isActive', + message: 'isActive', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'name', + message: 'name', + required: false, + }, + { + type: 'text', + name: 'provider', + message: 'provider', + required: false, + }, + { + type: 'text', + name: 'providerAccountName', + message: 'providerAccountName', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'region', + message: 'region', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'smtpHost', + message: 'smtpHost', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'smtpPort', + message: 'smtpPort', + required: false, + skipPrompt: true, + }, + { + type: 'boolean', + name: 'smtpSecure', + message: 'smtpSecure', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'smtpUser', + message: 'smtpUser', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'webhookSigningSecretName', + message: 'webhookSigningSecretName', + required: false, + skipPrompt: true, + }, + ]); + const answers = coerceAnswers(rawAnswers, fieldSchema); + const cleanedData = stripUndefined(answers, fieldSchema) as PlatformEmailProviderAccountPatch; + const client = getClient(); + const result = await client.platformEmailProviderAccount + .update({ + where: { + id: answers.id as string, + }, + data: { + apiBaseUrl: cleanedData.apiBaseUrl, + credentialsSecretName: cleanedData.credentialsSecretName, + isActive: cleanedData.isActive, + name: cleanedData.name, + provider: cleanedData.provider, + providerAccountName: cleanedData.providerAccountName, + region: cleanedData.region, + smtpHost: cleanedData.smtpHost, + smtpPort: cleanedData.smtpPort, + smtpSecure: cleanedData.smtpSecure, + smtpUser: cleanedData.smtpUser, + webhookSigningSecretName: cleanedData.webhookSigningSecretName, + }, + select: { + apiBaseUrl: true, + createdAt: true, + credentialsSecretName: true, + id: true, + isActive: true, + name: true, + provider: true, + providerAccountName: true, + region: true, + smtpHost: true, + smtpPort: true, + smtpSecure: true, + smtpUser: true, + updatedAt: true, + webhookSigningSecretName: 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.platformEmailProviderAccount + .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/api/cli/commands/platform-email-site-identity.ts b/sdk/constructive-cli/src/api/cli/commands/platform-email-site-identity.ts new file mode 100644 index 0000000000..124e4f05db --- /dev/null +++ b/sdk/constructive-cli/src/api/cli/commands/platform-email-site-identity.ts @@ -0,0 +1,291 @@ +/** + * CLI commands for PlatformEmailSiteIdentity + * @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 { + CreatePlatformEmailSiteIdentityInput, + PlatformEmailSiteIdentityPatch, + PlatformEmailSiteIdentitySelect, + PlatformEmailSiteIdentityFilter, + PlatformEmailSiteIdentityOrderBy, +} from '../../orm/input-types'; +import type { FindManyArgs, FindFirstArgs } from '../../orm/select-types'; +const fieldSchema: FieldSchema = { + createdAt: 'string', + emailIdentityId: 'uuid', + id: 'uuid', + siteId: 'uuid', + updatedAt: 'string', +}; +const usage = + '\nplatform-email-site-identity \n\nCommands:\n list List platformEmailSiteIdentity records\n find-first Find first matching platformEmailSiteIdentity record\n get Get a platformEmailSiteIdentity by ID\n create Create a new platformEmailSiteIdentity\n update Update an existing platformEmailSiteIdentity\n delete Delete a platformEmailSiteIdentity\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 = { + createdAt: true, + emailIdentityId: true, + id: true, + siteId: true, + updatedAt: true, + }; + const findManyArgs = parseFindManyArgs< + FindManyArgs< + PlatformEmailSiteIdentitySelect, + PlatformEmailSiteIdentityFilter, + PlatformEmailSiteIdentityOrderBy + > & { + select: PlatformEmailSiteIdentitySelect; + } + >(argv, defaultSelect); + const client = getClient(); + const result = await client.platformEmailSiteIdentity.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 = { + createdAt: true, + emailIdentityId: true, + id: true, + siteId: true, + updatedAt: true, + }; + const findFirstArgs = parseFindFirstArgs< + FindFirstArgs< + PlatformEmailSiteIdentitySelect, + PlatformEmailSiteIdentityFilter, + PlatformEmailSiteIdentityOrderBy + > & { + select: PlatformEmailSiteIdentitySelect; + } + >(argv, defaultSelect); + const client = getClient(); + const result = await client.platformEmailSiteIdentity.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.platformEmailSiteIdentity + .findOne({ + id: answers.id as string, + select: { + createdAt: true, + emailIdentityId: true, + id: true, + siteId: true, + updatedAt: true, + }, + }) + .execute(); + console.log(JSON.stringify(result, null, 2)); + } catch (error) { + console.error('Record not found.'); + if (error instanceof Error) { + console.error(error.message); + } + process.exit(1); + } +} +async function handleCreate(argv: Partial>, prompter: Inquirerer) { + try { + const rawAnswers = await prompter.prompt(argv, [ + { + type: 'text', + name: 'emailIdentityId', + message: 'emailIdentityId', + required: true, + }, + { + type: 'text', + name: 'siteId', + message: 'siteId', + required: true, + }, + ]); + const answers = coerceAnswers(rawAnswers, fieldSchema); + const cleanedData = stripUndefined( + answers, + fieldSchema + ) as CreatePlatformEmailSiteIdentityInput['platformEmailSiteIdentity']; + const client = getClient(); + const result = await client.platformEmailSiteIdentity + .create({ + data: { + emailIdentityId: cleanedData.emailIdentityId, + siteId: cleanedData.siteId, + }, + select: { + createdAt: true, + emailIdentityId: true, + id: true, + siteId: true, + updatedAt: true, + }, + }) + .execute(); + console.log(JSON.stringify(result, null, 2)); + } catch (error) { + console.error('Failed to create record.'); + if (error instanceof Error) { + console.error(error.message); + } + process.exit(1); + } +} +async function handleUpdate(argv: Partial>, prompter: Inquirerer) { + try { + const rawAnswers = await prompter.prompt(argv, [ + { + type: 'text', + name: 'id', + message: 'id', + required: true, + }, + { + type: 'text', + name: 'emailIdentityId', + message: 'emailIdentityId', + required: false, + }, + { + type: 'text', + name: 'siteId', + message: 'siteId', + required: false, + }, + ]); + const answers = coerceAnswers(rawAnswers, fieldSchema); + const cleanedData = stripUndefined(answers, fieldSchema) as PlatformEmailSiteIdentityPatch; + const client = getClient(); + const result = await client.platformEmailSiteIdentity + .update({ + where: { + id: answers.id as string, + }, + data: { + emailIdentityId: cleanedData.emailIdentityId, + siteId: cleanedData.siteId, + }, + select: { + createdAt: true, + emailIdentityId: true, + id: true, + siteId: true, + updatedAt: true, + }, + }) + .execute(); + console.log(JSON.stringify(result, null, 2)); + } catch (error) { + console.error('Failed to update record.'); + if (error instanceof Error) { + console.error(error.message); + } + process.exit(1); + } +} +async function handleDelete(argv: Partial>, prompter: Inquirerer) { + try { + const rawAnswers = await prompter.prompt(argv, [ + { + type: 'text', + name: 'id', + message: 'id', + required: true, + }, + ]); + const answers = coerceAnswers(rawAnswers, fieldSchema); + const client = getClient(); + const result = await client.platformEmailSiteIdentity + .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/api/orm/README.md b/sdk/constructive-cli/src/api/orm/README.md index 485932a4b7..d9d708a558 100644 --- a/sdk/constructive-cli/src/api/orm/README.md +++ b/sdk/constructive-cli/src/api/orm/README.md @@ -21,9 +21,9 @@ const db = createClient({ | Model | Operations | |-------|------------| +| `api` | findMany, findOne, create, update, delete | | `apiSchema` | findMany, findOne, create, update, delete | | `apiSetting` | findMany, findOne, create, update, delete | -| `apis` | findMany, findOne, create, update, delete | | `astMigration` | findMany, findOne, create, update, delete | | `checkConstraint` | findMany, findOne, create, update, delete | | `compositeType` | findMany, findOne, create, update, delete | @@ -37,6 +37,9 @@ const db = createClient({ | `domainEvent` | findMany, findOne, create, update, delete | | `domainType` | findMany, findOne, create, update, delete | | `domainVerification` | findMany, findOne, create, update, delete | +| `emailIdentity` | findMany, findOne, create, update, delete | +| `emailProviderAccount` | findMany, findOne, create, update, delete | +| `emailSiteIdentity` | findMany, findOne, create, update, delete | | `embeddingChunk` | findMany, findOne, create, update, delete | | `enum` | findMany, findOne, create, update, delete | | `exclusionConstraint` | findMany, findOne, create, update, delete | @@ -53,13 +56,16 @@ const db = createClient({ | `nodeTypeRegistry` | findMany, findOne, create, update, delete | | `page` | findMany, findOne, create, update, delete | | `partition` | findMany, findOne, create, update, delete | +| `platformApi` | findMany, findOne, create, update, delete | | `platformApiSchema` | findMany, findOne, create, update, delete | | `platformApiSetting` | findMany, findOne, create, update, delete | -| `platformApis` | findMany, findOne, create, update, delete | | `platformCorsSetting` | findMany, findOne, create, update, delete | | `platformDomain` | findMany, findOne, create, update, delete | | `platformDomainEvent` | findMany, findOne, create, update, delete | | `platformDomainVerification` | findMany, findOne, create, update, delete | +| `platformEmailIdentity` | findMany, findOne, create, update, delete | +| `platformEmailProviderAccount` | findMany, findOne, create, update, delete | +| `platformEmailSiteIdentity` | findMany, findOne, create, update, delete | | `platformManagedDomain` | findMany, findOne, create, update, delete | | `platformPage` | findMany, findOne, create, update, delete | | `platformSiteAppLink` | findMany, findOne, create, update, delete | @@ -104,6 +110,44 @@ const db = createClient({ ## Table Operations +### `db.api` + +CRUD operations for Api records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `anonRole` | String | Yes | +| `config` | JSON | Yes | +| `createdAt` | Datetime | No | +| `databaseId` | UUID | Yes | +| `dbname` | String | Yes | +| `id` | UUID | No | +| `isPublished` | Boolean | Yes | +| `name` | String | Yes | +| `roleName` | String | Yes | +| `updatedAt` | Datetime | No | + +**Operations:** + +```typescript +// List all api records +const items = await db.api.findMany({ select: { anonRole: true, config: true, createdAt: true, databaseId: true, dbname: true, id: true, isPublished: true, name: true, roleName: true, updatedAt: true } }).execute(); + +// Get one by id +const item = await db.api.findOne({ id: '', select: { anonRole: true, config: true, createdAt: true, databaseId: true, dbname: true, id: true, isPublished: true, name: true, roleName: true, updatedAt: true } }).execute(); + +// Create +const created = await db.api.create({ data: { anonRole: '', config: '', databaseId: '', dbname: '', isPublished: '', name: '', roleName: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.api.update({ where: { id: '' }, data: { anonRole: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.api.delete({ where: { id: '' } }).execute(); +``` + ### `db.apiSchema` CRUD operations for ApiSchema records. @@ -185,44 +229,6 @@ const updated = await db.apiSetting.update({ where: { id: '' }, data: { ap const deleted = await db.apiSetting.delete({ where: { id: '' } }).execute(); ``` -### `db.apis` - -CRUD operations for Apis records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `anonRole` | String | Yes | -| `config` | JSON | Yes | -| `createdAt` | Datetime | No | -| `databaseId` | UUID | Yes | -| `dbname` | String | Yes | -| `id` | UUID | No | -| `isPublished` | Boolean | Yes | -| `name` | String | Yes | -| `roleName` | String | Yes | -| `updatedAt` | Datetime | No | - -**Operations:** - -```typescript -// List all apis records -const items = await db.apis.findMany({ select: { anonRole: true, config: true, createdAt: true, databaseId: true, dbname: true, id: true, isPublished: true, name: true, roleName: true, updatedAt: true } }).execute(); - -// Get one by id -const item = await db.apis.findOne({ id: '', select: { anonRole: true, config: true, createdAt: true, databaseId: true, dbname: true, id: true, isPublished: true, name: true, roleName: true, updatedAt: true } }).execute(); - -// Create -const created = await db.apis.create({ data: { anonRole: '', config: '', databaseId: '', dbname: '', isPublished: '', name: '', roleName: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.apis.update({ where: { id: '' }, data: { anonRole: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.apis.delete({ where: { id: '' } }).execute(); -``` - ### `db.astMigration` CRUD operations for AstMigration records. @@ -743,6 +749,125 @@ const updated = await db.domainVerification.update({ where: { id: '' }, da const deleted = await db.domainVerification.delete({ where: { id: '' } }).execute(); ``` +### `db.emailIdentity` + +CRUD operations for EmailIdentity records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `createdAt` | Datetime | No | +| `databaseId` | UUID | Yes | +| `fromAddress` | String | Yes | +| `fromName` | String | Yes | +| `id` | UUID | No | +| `isActive` | Boolean | Yes | +| `isDefault` | Boolean | Yes | +| `name` | String | Yes | +| `providerAccountId` | UUID | Yes | +| `replyToAddress` | String | Yes | +| `supportAddress` | String | Yes | +| `transportMode` | String | Yes | +| `updatedAt` | Datetime | No | + +**Operations:** + +```typescript +// List all emailIdentity records +const items = await db.emailIdentity.findMany({ select: { createdAt: true, databaseId: true, fromAddress: true, fromName: true, id: true, isActive: true, isDefault: true, name: true, providerAccountId: true, replyToAddress: true, supportAddress: true, transportMode: true, updatedAt: true } }).execute(); + +// Get one by id +const item = await db.emailIdentity.findOne({ id: '', select: { createdAt: true, databaseId: true, fromAddress: true, fromName: true, id: true, isActive: true, isDefault: true, name: true, providerAccountId: true, replyToAddress: true, supportAddress: true, transportMode: true, updatedAt: true } }).execute(); + +// Create +const created = await db.emailIdentity.create({ data: { databaseId: '', fromAddress: '', fromName: '', isActive: '', isDefault: '', name: '', providerAccountId: '', replyToAddress: '', supportAddress: '', transportMode: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.emailIdentity.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.emailIdentity.delete({ where: { id: '' } }).execute(); +``` + +### `db.emailProviderAccount` + +CRUD operations for EmailProviderAccount records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `apiBaseUrl` | String | Yes | +| `createdAt` | Datetime | No | +| `credentialsSecretName` | String | Yes | +| `databaseId` | UUID | Yes | +| `id` | UUID | No | +| `isActive` | Boolean | Yes | +| `name` | String | Yes | +| `provider` | String | Yes | +| `providerAccountName` | String | Yes | +| `region` | String | Yes | +| `smtpHost` | String | Yes | +| `smtpPort` | Int | Yes | +| `smtpSecure` | Boolean | Yes | +| `smtpUser` | String | Yes | +| `updatedAt` | Datetime | No | +| `webhookSigningSecretName` | String | Yes | + +**Operations:** + +```typescript +// List all emailProviderAccount records +const items = await db.emailProviderAccount.findMany({ select: { apiBaseUrl: true, createdAt: true, credentialsSecretName: true, databaseId: true, id: true, isActive: true, name: true, provider: true, providerAccountName: true, region: true, smtpHost: true, smtpPort: true, smtpSecure: true, smtpUser: true, updatedAt: true, webhookSigningSecretName: true } }).execute(); + +// Get one by id +const item = await db.emailProviderAccount.findOne({ id: '', select: { apiBaseUrl: true, createdAt: true, credentialsSecretName: true, databaseId: true, id: true, isActive: true, name: true, provider: true, providerAccountName: true, region: true, smtpHost: true, smtpPort: true, smtpSecure: true, smtpUser: true, updatedAt: true, webhookSigningSecretName: true } }).execute(); + +// Create +const created = await db.emailProviderAccount.create({ data: { apiBaseUrl: '', credentialsSecretName: '', databaseId: '', isActive: '', name: '', provider: '', providerAccountName: '', region: '', smtpHost: '', smtpPort: '', smtpSecure: '', smtpUser: '', webhookSigningSecretName: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.emailProviderAccount.update({ where: { id: '' }, data: { apiBaseUrl: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.emailProviderAccount.delete({ where: { id: '' } }).execute(); +``` + +### `db.emailSiteIdentity` + +CRUD operations for EmailSiteIdentity records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `createdAt` | Datetime | No | +| `databaseId` | UUID | Yes | +| `emailIdentityId` | UUID | Yes | +| `id` | UUID | No | +| `siteId` | UUID | Yes | +| `updatedAt` | Datetime | No | + +**Operations:** + +```typescript +// List all emailSiteIdentity records +const items = await db.emailSiteIdentity.findMany({ select: { createdAt: true, databaseId: true, emailIdentityId: true, id: true, siteId: true, updatedAt: true } }).execute(); + +// Get one by id +const item = await db.emailSiteIdentity.findOne({ id: '', select: { createdAt: true, databaseId: true, emailIdentityId: true, id: true, siteId: true, updatedAt: true } }).execute(); + +// Create +const created = await db.emailSiteIdentity.create({ data: { databaseId: '', emailIdentityId: '', siteId: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.emailSiteIdentity.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.emailSiteIdentity.delete({ where: { id: '' } }).execute(); +``` + ### `db.embeddingChunk` CRUD operations for EmbeddingChunk records. @@ -1394,6 +1519,43 @@ const updated = await db.partition.update({ where: { id: '' }, data: { dat const deleted = await db.partition.delete({ where: { id: '' } }).execute(); ``` +### `db.platformApi` + +CRUD operations for PlatformApi records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `anonRole` | String | Yes | +| `config` | JSON | Yes | +| `createdAt` | Datetime | No | +| `dbname` | String | Yes | +| `id` | UUID | No | +| `isPublished` | Boolean | Yes | +| `name` | String | Yes | +| `roleName` | String | Yes | +| `updatedAt` | Datetime | No | + +**Operations:** + +```typescript +// List all platformApi records +const items = await db.platformApi.findMany({ select: { anonRole: true, config: true, createdAt: true, dbname: true, id: true, isPublished: true, name: true, roleName: true, updatedAt: true } }).execute(); + +// Get one by id +const item = await db.platformApi.findOne({ id: '', select: { anonRole: true, config: true, createdAt: true, dbname: true, id: true, isPublished: true, name: true, roleName: true, updatedAt: true } }).execute(); + +// Create +const created = await db.platformApi.create({ data: { anonRole: '', config: '', dbname: '', isPublished: '', name: '', roleName: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.platformApi.update({ where: { id: '' }, data: { anonRole: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.platformApi.delete({ where: { id: '' } }).execute(); +``` + ### `db.platformApiSchema` CRUD operations for PlatformApiSchema records. @@ -1473,43 +1635,6 @@ const updated = await db.platformApiSetting.update({ where: { id: '' }, da const deleted = await db.platformApiSetting.delete({ where: { id: '' } }).execute(); ``` -### `db.platformApis` - -CRUD operations for PlatformApis records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `anonRole` | String | Yes | -| `config` | JSON | Yes | -| `createdAt` | Datetime | No | -| `dbname` | String | Yes | -| `id` | UUID | No | -| `isPublished` | Boolean | Yes | -| `name` | String | Yes | -| `roleName` | String | Yes | -| `updatedAt` | Datetime | No | - -**Operations:** - -```typescript -// List all platformApis records -const items = await db.platformApis.findMany({ select: { anonRole: true, config: true, createdAt: true, dbname: true, id: true, isPublished: true, name: true, roleName: true, updatedAt: true } }).execute(); - -// Get one by id -const item = await db.platformApis.findOne({ id: '', select: { anonRole: true, config: true, createdAt: true, dbname: true, id: true, isPublished: true, name: true, roleName: true, updatedAt: true } }).execute(); - -// Create -const created = await db.platformApis.create({ data: { anonRole: '', config: '', dbname: '', isPublished: '', name: '', roleName: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.platformApis.update({ where: { id: '' }, data: { anonRole: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.platformApis.delete({ where: { id: '' } }).execute(); -``` - ### `db.platformCorsSetting` CRUD operations for PlatformCorsSetting records. @@ -1666,6 +1791,122 @@ const updated = await db.platformDomainVerification.update({ where: { id: '' } }).execute(); ``` +### `db.platformEmailIdentity` + +CRUD operations for PlatformEmailIdentity records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `createdAt` | Datetime | No | +| `fromAddress` | String | Yes | +| `fromName` | String | Yes | +| `id` | UUID | No | +| `isActive` | Boolean | Yes | +| `isDefault` | Boolean | Yes | +| `name` | String | Yes | +| `providerAccountId` | UUID | Yes | +| `replyToAddress` | String | Yes | +| `supportAddress` | String | Yes | +| `transportMode` | String | Yes | +| `updatedAt` | Datetime | No | + +**Operations:** + +```typescript +// List all platformEmailIdentity records +const items = await db.platformEmailIdentity.findMany({ select: { createdAt: true, fromAddress: true, fromName: true, id: true, isActive: true, isDefault: true, name: true, providerAccountId: true, replyToAddress: true, supportAddress: true, transportMode: true, updatedAt: true } }).execute(); + +// Get one by id +const item = await db.platformEmailIdentity.findOne({ id: '', select: { createdAt: true, fromAddress: true, fromName: true, id: true, isActive: true, isDefault: true, name: true, providerAccountId: true, replyToAddress: true, supportAddress: true, transportMode: true, updatedAt: true } }).execute(); + +// Create +const created = await db.platformEmailIdentity.create({ data: { fromAddress: '', fromName: '', isActive: '', isDefault: '', name: '', providerAccountId: '', replyToAddress: '', supportAddress: '', transportMode: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.platformEmailIdentity.update({ where: { id: '' }, data: { fromAddress: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.platformEmailIdentity.delete({ where: { id: '' } }).execute(); +``` + +### `db.platformEmailProviderAccount` + +CRUD operations for PlatformEmailProviderAccount records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `apiBaseUrl` | String | Yes | +| `createdAt` | Datetime | No | +| `credentialsSecretName` | String | Yes | +| `id` | UUID | No | +| `isActive` | Boolean | Yes | +| `name` | String | Yes | +| `provider` | String | Yes | +| `providerAccountName` | String | Yes | +| `region` | String | Yes | +| `smtpHost` | String | Yes | +| `smtpPort` | Int | Yes | +| `smtpSecure` | Boolean | Yes | +| `smtpUser` | String | Yes | +| `updatedAt` | Datetime | No | +| `webhookSigningSecretName` | String | Yes | + +**Operations:** + +```typescript +// List all platformEmailProviderAccount records +const items = await db.platformEmailProviderAccount.findMany({ select: { apiBaseUrl: true, createdAt: true, credentialsSecretName: true, id: true, isActive: true, name: true, provider: true, providerAccountName: true, region: true, smtpHost: true, smtpPort: true, smtpSecure: true, smtpUser: true, updatedAt: true, webhookSigningSecretName: true } }).execute(); + +// Get one by id +const item = await db.platformEmailProviderAccount.findOne({ id: '', select: { apiBaseUrl: true, createdAt: true, credentialsSecretName: true, id: true, isActive: true, name: true, provider: true, providerAccountName: true, region: true, smtpHost: true, smtpPort: true, smtpSecure: true, smtpUser: true, updatedAt: true, webhookSigningSecretName: true } }).execute(); + +// Create +const created = await db.platformEmailProviderAccount.create({ data: { apiBaseUrl: '', credentialsSecretName: '', isActive: '', name: '', provider: '', providerAccountName: '', region: '', smtpHost: '', smtpPort: '', smtpSecure: '', smtpUser: '', webhookSigningSecretName: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.platformEmailProviderAccount.update({ where: { id: '' }, data: { apiBaseUrl: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.platformEmailProviderAccount.delete({ where: { id: '' } }).execute(); +``` + +### `db.platformEmailSiteIdentity` + +CRUD operations for PlatformEmailSiteIdentity records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `createdAt` | Datetime | No | +| `emailIdentityId` | UUID | Yes | +| `id` | UUID | No | +| `siteId` | UUID | Yes | +| `updatedAt` | Datetime | No | + +**Operations:** + +```typescript +// List all platformEmailSiteIdentity records +const items = await db.platformEmailSiteIdentity.findMany({ select: { createdAt: true, emailIdentityId: true, id: true, siteId: true, updatedAt: true } }).execute(); + +// Get one by id +const item = await db.platformEmailSiteIdentity.findOne({ id: '', select: { createdAt: true, emailIdentityId: true, id: true, siteId: true, updatedAt: true } }).execute(); + +// Create +const created = await db.platformEmailSiteIdentity.create({ data: { emailIdentityId: '', siteId: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.platformEmailSiteIdentity.update({ where: { id: '' }, data: { emailIdentityId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.platformEmailSiteIdentity.delete({ where: { id: '' } }).execute(); +``` + ### `db.platformManagedDomain` CRUD operations for PlatformManagedDomain records. diff --git a/sdk/constructive-cli/src/api/orm/index.ts b/sdk/constructive-cli/src/api/orm/index.ts index 98c5108b79..4af633de9c 100644 --- a/sdk/constructive-cli/src/api/orm/index.ts +++ b/sdk/constructive-cli/src/api/orm/index.ts @@ -5,9 +5,9 @@ */ import { OrmClient } from './client'; import type { OrmClientConfig } from './client'; +import { ApiModel } from './models/api'; import { ApiSchemaModel } from './models/apiSchema'; import { ApiSettingModel } from './models/apiSetting'; -import { ApisModel } from './models/apis'; import { AstMigrationModel } from './models/astMigration'; import { CheckConstraintModel } from './models/checkConstraint'; import { CompositeTypeModel } from './models/compositeType'; @@ -21,6 +21,9 @@ import { DomainModel } from './models/domain'; import { DomainEventModel } from './models/domainEvent'; import { DomainTypeModel } from './models/domainType'; import { DomainVerificationModel } from './models/domainVerification'; +import { EmailIdentityModel } from './models/emailIdentity'; +import { EmailProviderAccountModel } from './models/emailProviderAccount'; +import { EmailSiteIdentityModel } from './models/emailSiteIdentity'; import { EmbeddingChunkModel } from './models/embeddingChunk'; import { EnumModel } from './models/enum'; import { ExclusionConstraintModel } from './models/exclusionConstraint'; @@ -37,13 +40,16 @@ import { ManagedDomainModel } from './models/managedDomain'; import { NodeTypeRegistryModel } from './models/nodeTypeRegistry'; import { PageModel } from './models/page'; import { PartitionModel } from './models/partition'; +import { PlatformApiModel } from './models/platformApi'; import { PlatformApiSchemaModel } from './models/platformApiSchema'; import { PlatformApiSettingModel } from './models/platformApiSetting'; -import { PlatformApisModel } from './models/platformApis'; import { PlatformCorsSettingModel } from './models/platformCorsSetting'; import { PlatformDomainModel } from './models/platformDomain'; import { PlatformDomainEventModel } from './models/platformDomainEvent'; import { PlatformDomainVerificationModel } from './models/platformDomainVerification'; +import { PlatformEmailIdentityModel } from './models/platformEmailIdentity'; +import { PlatformEmailProviderAccountModel } from './models/platformEmailProviderAccount'; +import { PlatformEmailSiteIdentityModel } from './models/platformEmailSiteIdentity'; import { PlatformManagedDomainModel } from './models/platformManagedDomain'; import { PlatformPageModel } from './models/platformPage'; import { PlatformSiteAppLinkModel } from './models/platformSiteAppLink'; @@ -120,9 +126,9 @@ export { createMutationOperations } from './mutation'; export function createClient(config: OrmClientConfig) { const client = new OrmClient(config); return { + api: new ApiModel(client), apiSchema: new ApiSchemaModel(client), apiSetting: new ApiSettingModel(client), - apis: new ApisModel(client), astMigration: new AstMigrationModel(client), checkConstraint: new CheckConstraintModel(client), compositeType: new CompositeTypeModel(client), @@ -136,6 +142,9 @@ export function createClient(config: OrmClientConfig) { domainEvent: new DomainEventModel(client), domainType: new DomainTypeModel(client), domainVerification: new DomainVerificationModel(client), + emailIdentity: new EmailIdentityModel(client), + emailProviderAccount: new EmailProviderAccountModel(client), + emailSiteIdentity: new EmailSiteIdentityModel(client), embeddingChunk: new EmbeddingChunkModel(client), enum: new EnumModel(client), exclusionConstraint: new ExclusionConstraintModel(client), @@ -152,13 +161,16 @@ export function createClient(config: OrmClientConfig) { nodeTypeRegistry: new NodeTypeRegistryModel(client), page: new PageModel(client), partition: new PartitionModel(client), + platformApi: new PlatformApiModel(client), platformApiSchema: new PlatformApiSchemaModel(client), platformApiSetting: new PlatformApiSettingModel(client), - platformApis: new PlatformApisModel(client), platformCorsSetting: new PlatformCorsSettingModel(client), platformDomain: new PlatformDomainModel(client), platformDomainEvent: new PlatformDomainEventModel(client), platformDomainVerification: new PlatformDomainVerificationModel(client), + platformEmailIdentity: new PlatformEmailIdentityModel(client), + platformEmailProviderAccount: new PlatformEmailProviderAccountModel(client), + platformEmailSiteIdentity: new PlatformEmailSiteIdentityModel(client), platformManagedDomain: new PlatformManagedDomainModel(client), platformPage: new PlatformPageModel(client), platformSiteAppLink: new PlatformSiteAppLinkModel(client), diff --git a/sdk/constructive-cli/src/api/orm/input-types.ts b/sdk/constructive-cli/src/api/orm/input-types.ts index 2347f17ca6..982e890b60 100644 --- a/sdk/constructive-cli/src/api/orm/input-types.ts +++ b/sdk/constructive-cli/src/api/orm/input-types.ts @@ -232,11 +232,31 @@ export interface UUIDListFilter { } // ============ Enum Types ============ export type ApiExposureLevel = 'EXPOSABLE' | 'INTERNAL_ONLY' | 'NEVER_EXPOSE'; -export type ObjectCategory = 'APP' | 'AUTH' | 'CORE' | 'MEMBERSHIPS' | 'MODULE' | 'PERMISSIONS'; +export type ObjectCategory = 'APP' | 'AUTH' | 'CAPABILITIES' | 'CORE' | 'MEMBERSHIPS' | 'MODULE'; // ============ Custom Scalar Types ============ export type ConstructiveInternalTypeImage = unknown; -/** Join table linking API surfaces to the metaschema schemas they expose */ +/** API surfaces exposed by this scope; publication makes a surface bindable from other scopes */ // ============ Entity Types ============ +export interface Api { + /** Anonymous role the API executes as */ + anonRole?: string | null; + /** Module-specific configuration for this API surface */ + config?: Record | null; + createdAt?: string | null; + /** Database that owns this resource (database-scoped isolation) */ + databaseId?: string | null; + /** Database this API surface serves */ + dbname?: string | null; + id: string; + /** Whether other scopes may see and route to this API surface */ + isPublished?: boolean | null; + /** Owner-local API surface name */ + name?: string | null; + /** Authenticated role the API executes as */ + roleName?: string | null; + updatedAt?: string | null; +} +/** Join table linking API surfaces to the metaschema schemas they expose */ export interface ApiSchema { /** API surface that exposes this schema */ apiId?: string | null; @@ -286,26 +306,6 @@ export interface ApiSetting { statementTimeoutMs?: string | null; updatedAt?: string | null; } -/** API surfaces exposed by this scope; publication makes a surface bindable from other scopes */ -export interface Apis { - /** Anonymous role the API executes as */ - anonRole?: string | null; - /** Module-specific configuration for this API surface */ - config?: Record | null; - createdAt?: string | null; - /** Database that owns this resource (database-scoped isolation) */ - databaseId?: string | null; - /** Database this API surface serves */ - dbname?: string | null; - id: string; - /** Whether other scopes may see and route to this API surface */ - isPublished?: boolean | null; - /** Owner-local API surface name */ - name?: string | null; - /** Authenticated role the API executes as */ - roleName?: string | null; - updatedAt?: string | null; -} export interface AstMigration { actionId?: string | null; actionName?: string | null; @@ -546,6 +546,76 @@ export interface DomainVerification { /** When this challenge succeeded */ verifiedAt?: string | null; } +/** Outbound sender identity: the from/reply-to/support addresses a tenant sends as, and the provider account the mail leaves through */ +export interface EmailIdentity { + createdAt?: string | null; + /** Database that owns this resource (database-scoped isolation) */ + databaseId?: string | null; + /** Envelope/header From address, lower-case. Must be accepted by the sending account at the provider. */ + fromAddress?: string | null; + /** Display name shown beside the from address */ + fromName?: string | null; + id: string; + /** Whether this identity may be resolved for a send */ + isActive?: boolean | null; + /** The scope default identity, used when no site binding resolves. At most one per scope key. */ + isDefault?: boolean | null; + /** Operator-facing name for this identity (e.g. transactional, support) */ + name?: string | null; + /** Same-scope provider account this identity sends through. Required for transport_mode = own, NULL for platform_shared. */ + providerAccountId?: string | null; + /** Reply-To address when replies should not go to the from address */ + replyToAddress?: string | null; + /** Support address rendered in message bodies and footers */ + supportAddress?: string | null; + /** own = send through provider_account_id in this scope; platform_shared = send through the platform installation's shared account, an explicit recorded choice and never an implicit fallback */ + transportMode?: string | null; + updatedAt?: string | null; +} +/** A tenant's configured account at an email provider: provider slug, endpoint coordinates, and the NAME of the secret holding its credentials (never the credential itself) */ +export interface EmailProviderAccount { + /** Provider API base URL when it is not the provider default (e.g. Mailgun EU) */ + apiBaseUrl?: string | null; + createdAt?: string | null; + /** Name of the secret holding this account's API key or SMTP password. The value is resolved from the secret store at send time (realm = this row's id) and is never stored here. */ + credentialsSecretName?: string | null; + /** Database that owns this resource (database-scoped isolation) */ + databaseId?: string | null; + id: string; + /** Whether identities may send through this account. Disabling one row stops every identity that references it. */ + isActive?: boolean | null; + /** Operator-facing name for this account (e.g. transactional, marketing) */ + name?: string | null; + /** integration_providers.slug of the provider this account is at (mailgun, ses, postmark, smtp), matched by string not by FK */ + provider?: string | null; + /** Account identifier at the provider — the Mailgun sending domain, the SES verified identity, the Postmark server name */ + providerAccountName?: string | null; + /** Provider region for region-addressed providers (e.g. SES us-east-1) */ + region?: string | null; + /** SMTP host (provider = smtp, or a provider addressed over SMTP) */ + smtpHost?: string | null; + /** SMTP port */ + smtpPort?: number | null; + /** Whether the SMTP connection uses implicit TLS */ + smtpSecure?: boolean | null; + /** SMTP username; the password is a secret, addressed by credentials_secret_name */ + smtpUser?: string | null; + updatedAt?: string | null; + /** Name of the secret used to verify this provider's delivery/bounce webhooks. Name only; the value stays in the secret store. */ + webhookSigningSecretName?: string | null; +} +/** Binds a site to the identity it sends as. Unique on site_id: one identity per site, but many sites may share an identity. */ +export interface EmailSiteIdentity { + createdAt?: string | null; + /** Database that owns this resource (database-scoped isolation) */ + databaseId?: string | null; + /** Identity this site sends as */ + emailIdentityId?: string | null; + id: string; + /** Site whose mail is sent as the bound identity */ + siteId?: string | null; + updatedAt?: string | null; +} export interface EmbeddingChunk { chunkOverlap?: number | null; chunkSize?: number | null; @@ -821,6 +891,24 @@ export interface Partition { tableId?: string | null; updatedAt?: string | null; } +/** API surfaces exposed by this scope; publication makes a surface bindable from other scopes */ +export interface PlatformApi { + /** Anonymous role the API executes as */ + anonRole?: string | null; + /** Module-specific configuration for this API surface */ + config?: Record | null; + createdAt?: string | null; + /** Database this API surface serves */ + dbname?: string | null; + id: string; + /** Whether other scopes may see and route to this API surface */ + isPublished?: boolean | null; + /** Owner-local API surface name */ + name?: string | null; + /** Authenticated role the API executes as */ + roleName?: string | null; + updatedAt?: string | null; +} /** Join table linking API surfaces to the metaschema schemas they expose */ export interface PlatformApiSchema { /** API surface that exposes this schema */ @@ -867,24 +955,6 @@ export interface PlatformApiSetting { statementTimeoutMs?: string | null; updatedAt?: string | null; } -/** API surfaces exposed by this scope; publication makes a surface bindable from other scopes */ -export interface PlatformApis { - /** Anonymous role the API executes as */ - anonRole?: string | null; - /** Module-specific configuration for this API surface */ - config?: Record | null; - createdAt?: string | null; - /** Database this API surface serves */ - dbname?: string | null; - id: string; - /** Whether other scopes may see and route to this API surface */ - isPublished?: boolean | null; - /** Owner-local API surface name */ - name?: string | null; - /** Authenticated role the API executes as */ - roleName?: string | null; - updatedAt?: string | null; -} /** Scope-wide and per-API CORS origin configuration; NULL api_id means scope-wide default */ export interface PlatformCorsSetting { /** Array of allowed CORS origins (e.g. https://example.com) */ @@ -973,6 +1043,70 @@ export interface PlatformDomainVerification { /** When this challenge succeeded */ verifiedAt?: string | null; } +/** Outbound sender identity: the from/reply-to/support addresses a tenant sends as, and the provider account the mail leaves through */ +export interface PlatformEmailIdentity { + createdAt?: string | null; + /** Envelope/header From address, lower-case. Must be accepted by the sending account at the provider. */ + fromAddress?: string | null; + /** Display name shown beside the from address */ + fromName?: string | null; + id: string; + /** Whether this identity may be resolved for a send */ + isActive?: boolean | null; + /** The scope default identity, used when no site binding resolves. At most one per scope key. */ + isDefault?: boolean | null; + /** Operator-facing name for this identity (e.g. transactional, support) */ + name?: string | null; + /** Same-scope provider account this identity sends through. Required for transport_mode = own, NULL for platform_shared. */ + providerAccountId?: string | null; + /** Reply-To address when replies should not go to the from address */ + replyToAddress?: string | null; + /** Support address rendered in message bodies and footers */ + supportAddress?: string | null; + /** own = send through provider_account_id in this scope; platform_shared = send through the platform installation's shared account, an explicit recorded choice and never an implicit fallback */ + transportMode?: string | null; + updatedAt?: string | null; +} +/** A tenant's configured account at an email provider: provider slug, endpoint coordinates, and the NAME of the secret holding its credentials (never the credential itself) */ +export interface PlatformEmailProviderAccount { + /** Provider API base URL when it is not the provider default (e.g. Mailgun EU) */ + apiBaseUrl?: string | null; + createdAt?: string | null; + /** Name of the secret holding this account's API key or SMTP password. The value is resolved from the secret store at send time (realm = this row's id) and is never stored here. */ + credentialsSecretName?: string | null; + id: string; + /** Whether identities may send through this account. Disabling one row stops every identity that references it. */ + isActive?: boolean | null; + /** Operator-facing name for this account (e.g. transactional, marketing) */ + name?: string | null; + /** integration_providers.slug of the provider this account is at (mailgun, ses, postmark, smtp), matched by string not by FK */ + provider?: string | null; + /** Account identifier at the provider — the Mailgun sending domain, the SES verified identity, the Postmark server name */ + providerAccountName?: string | null; + /** Provider region for region-addressed providers (e.g. SES us-east-1) */ + region?: string | null; + /** SMTP host (provider = smtp, or a provider addressed over SMTP) */ + smtpHost?: string | null; + /** SMTP port */ + smtpPort?: number | null; + /** Whether the SMTP connection uses implicit TLS */ + smtpSecure?: boolean | null; + /** SMTP username; the password is a secret, addressed by credentials_secret_name */ + smtpUser?: string | null; + updatedAt?: string | null; + /** Name of the secret used to verify this provider's delivery/bounce webhooks. Name only; the value stays in the secret store. */ + webhookSigningSecretName?: string | null; +} +/** Binds a site to the identity it sends as. Unique on site_id: one identity per site, but many sites may share an identity. */ +export interface PlatformEmailSiteIdentity { + createdAt?: string | null; + /** Identity this site sends as */ + emailIdentityId?: string | null; + id: string; + /** Site whose mail is sent as the bound identity */ + siteId?: string | null; + updatedAt?: string | null; +} /** Platform-operated hostnames whose DNS and certificate lifecycle the platform drives */ export interface PlatformManagedDomain { /** Whether tenants may claim subdomains under this managed hostname */ @@ -1736,17 +1870,17 @@ export interface PageInfo { endCursor?: string | null; } // ============ Entity Relation Types ============ +export interface ApiRelations { + apiSetting?: ApiSetting | null; + apiSchemas?: ConnectionResult; + corsSettings?: ConnectionResult; +} export interface ApiSchemaRelations { - api?: Apis | null; + api?: Api | null; schema?: Schema | null; } export interface ApiSettingRelations { - api?: Apis | null; -} -export interface ApisRelations { - apiSettingByApiId?: ApiSetting | null; - apiSchemasByApiId?: ConnectionResult; - corsSettingsByApiId?: ConnectionResult; + api?: Api | null; } export interface AstMigrationRelations {} export interface CheckConstraintRelations { @@ -1758,7 +1892,7 @@ export interface CompositeTypeRelations { schema?: Schema | null; } export interface CorsSettingRelations { - api?: Apis | null; + api?: Api | null; } export interface DatabaseRelations { checkConstraints?: ConnectionResult; @@ -1828,6 +1962,17 @@ export interface DomainVerificationRelations { domain?: Domain | null; managedDomain?: ManagedDomain | null; } +export interface EmailIdentityRelations { + providerAccount?: EmailProviderAccount | null; + emailSiteIdentities?: ConnectionResult; +} +export interface EmailProviderAccountRelations { + emailIdentitiesByProviderAccountId?: ConnectionResult; +} +export interface EmailSiteIdentityRelations { + emailIdentity?: EmailIdentity | null; + site?: Site | null; +} export interface EmbeddingChunkRelations { chunksTable?: Table | null; database?: Database | null; @@ -1896,20 +2041,20 @@ export interface PartitionRelations { partitionKey?: Field | null; table?: Table | null; } +export interface PlatformApiRelations { + platformApiSettingByApiId?: PlatformApiSetting | null; + platformCorsSettingByApiId?: PlatformCorsSetting | null; + platformApiSchemasByApiId?: ConnectionResult; +} export interface PlatformApiSchemaRelations { - api?: PlatformApis | null; + api?: PlatformApi | null; schema?: Schema | null; } export interface PlatformApiSettingRelations { - api?: PlatformApis | null; -} -export interface PlatformApisRelations { - platformApiSettingByApiId?: PlatformApiSetting | null; - platformCorsSettingByApiId?: PlatformCorsSetting | null; - platformApiSchemasByApiId?: ConnectionResult; + api?: PlatformApi | null; } export interface PlatformCorsSettingRelations { - api?: PlatformApis | null; + api?: PlatformApi | null; } export interface PlatformDomainRelations { platformDomainEventsByDomainId?: ConnectionResult; @@ -1924,6 +2069,17 @@ export interface PlatformDomainVerificationRelations { domain?: PlatformDomain | null; managedDomain?: PlatformManagedDomain | null; } +export interface PlatformEmailIdentityRelations { + providerAccount?: PlatformEmailProviderAccount | null; + platformEmailSiteIdentitiesByEmailIdentityId?: ConnectionResult; +} +export interface PlatformEmailProviderAccountRelations { + platformEmailIdentitiesByProviderAccountId?: ConnectionResult; +} +export interface PlatformEmailSiteIdentityRelations { + emailIdentity?: PlatformEmailIdentity | null; + site?: PlatformSite | null; +} export interface PlatformManagedDomainRelations { platformDomainEventsByManagedDomainId?: ConnectionResult; platformDomainVerificationsByManagedDomainId?: ConnectionResult; @@ -1935,6 +2091,7 @@ export interface PlatformSiteAppLinkRelations { site?: PlatformSite | null; } export interface PlatformSiteRelations { + platformEmailSiteIdentityBySiteId?: PlatformEmailSiteIdentity | null; platformSiteMetadatumBySiteId?: PlatformSiteMetadatum | null; platformSiteWebConfigBySiteId?: PlatformSiteWebConfig | null; platformPagesBySiteId?: ConnectionResult; @@ -2014,6 +2171,7 @@ export interface SiteAppLinkRelations { site?: Site | null; } export interface SiteRelations { + emailSiteIdentity?: EmailSiteIdentity | null; siteMetadatum?: SiteMetadatum | null; siteWebConfig?: SiteWebConfig | null; pages?: ConnectionResult; @@ -2139,9 +2297,9 @@ export interface WebauthnSettingRelations { userField?: Field | null; } // ============ Entity Types With Relations ============ +export type ApiWithRelations = Api & ApiRelations; export type ApiSchemaWithRelations = ApiSchema & ApiSchemaRelations; export type ApiSettingWithRelations = ApiSetting & ApiSettingRelations; -export type ApisWithRelations = Apis & ApisRelations; export type AstMigrationWithRelations = AstMigration & AstMigrationRelations; export type CheckConstraintWithRelations = CheckConstraint & CheckConstraintRelations; export type CompositeTypeWithRelations = CompositeType & CompositeTypeRelations; @@ -2155,6 +2313,10 @@ export type DomainWithRelations = Domain & DomainRelations; export type DomainEventWithRelations = DomainEvent & DomainEventRelations; export type DomainTypeWithRelations = DomainType & DomainTypeRelations; export type DomainVerificationWithRelations = DomainVerification & DomainVerificationRelations; +export type EmailIdentityWithRelations = EmailIdentity & EmailIdentityRelations; +export type EmailProviderAccountWithRelations = EmailProviderAccount & + EmailProviderAccountRelations; +export type EmailSiteIdentityWithRelations = EmailSiteIdentity & EmailSiteIdentityRelations; export type EmbeddingChunkWithRelations = EmbeddingChunk & EmbeddingChunkRelations; export type EnumWithRelations = Enum & EnumRelations; export type ExclusionConstraintWithRelations = ExclusionConstraint & ExclusionConstraintRelations; @@ -2173,14 +2335,20 @@ export type ManagedDomainWithRelations = ManagedDomain & ManagedDomainRelations; export type NodeTypeRegistryWithRelations = NodeTypeRegistry & NodeTypeRegistryRelations; export type PageWithRelations = Page & PageRelations; export type PartitionWithRelations = Partition & PartitionRelations; +export type PlatformApiWithRelations = PlatformApi & PlatformApiRelations; export type PlatformApiSchemaWithRelations = PlatformApiSchema & PlatformApiSchemaRelations; export type PlatformApiSettingWithRelations = PlatformApiSetting & PlatformApiSettingRelations; -export type PlatformApisWithRelations = PlatformApis & PlatformApisRelations; export type PlatformCorsSettingWithRelations = PlatformCorsSetting & PlatformCorsSettingRelations; export type PlatformDomainWithRelations = PlatformDomain & PlatformDomainRelations; export type PlatformDomainEventWithRelations = PlatformDomainEvent & PlatformDomainEventRelations; export type PlatformDomainVerificationWithRelations = PlatformDomainVerification & PlatformDomainVerificationRelations; +export type PlatformEmailIdentityWithRelations = PlatformEmailIdentity & + PlatformEmailIdentityRelations; +export type PlatformEmailProviderAccountWithRelations = PlatformEmailProviderAccount & + PlatformEmailProviderAccountRelations; +export type PlatformEmailSiteIdentityWithRelations = PlatformEmailSiteIdentity & + PlatformEmailSiteIdentityRelations; export type PlatformManagedDomainWithRelations = PlatformManagedDomain & PlatformManagedDomainRelations; export type PlatformPageWithRelations = PlatformPage & PlatformPageRelations; @@ -2230,6 +2398,33 @@ export type ViewRuleWithRelations = ViewRule & ViewRuleRelations; export type ViewTableWithRelations = ViewTable & ViewTableRelations; export type WebauthnSettingWithRelations = WebauthnSetting & WebauthnSettingRelations; // ============ Entity Select Types ============ +export type ApiSelect = { + anonRole?: boolean; + config?: boolean; + createdAt?: boolean; + databaseId?: boolean; + dbname?: boolean; + id?: boolean; + isPublished?: boolean; + name?: boolean; + roleName?: boolean; + updatedAt?: boolean; + apiSetting?: { + select: ApiSettingSelect; + }; + apiSchemas?: { + select: ApiSchemaSelect; + first?: number; + filter?: ApiSchemaFilter; + orderBy?: ApiSchemaOrderBy[]; + }; + corsSettings?: { + select: CorsSettingSelect; + first?: number; + filter?: CorsSettingFilter; + orderBy?: CorsSettingOrderBy[]; + }; +}; export type ApiSchemaSelect = { apiId?: boolean; createdAt?: boolean; @@ -2238,7 +2433,7 @@ export type ApiSchemaSelect = { schemaId?: boolean; updatedAt?: boolean; api?: { - select: ApisSelect; + select: ApiSelect; }; schema?: { select: SchemaSelect; @@ -2265,34 +2460,7 @@ export type ApiSettingSelect = { statementTimeoutMs?: boolean; updatedAt?: boolean; api?: { - select: ApisSelect; - }; -}; -export type ApisSelect = { - anonRole?: boolean; - config?: boolean; - createdAt?: boolean; - databaseId?: boolean; - dbname?: boolean; - id?: boolean; - isPublished?: boolean; - name?: boolean; - roleName?: boolean; - updatedAt?: boolean; - apiSettingByApiId?: { - select: ApiSettingSelect; - }; - apiSchemasByApiId?: { - select: ApiSchemaSelect; - first?: number; - filter?: ApiSchemaFilter; - orderBy?: ApiSchemaOrderBy[]; - }; - corsSettingsByApiId?: { - select: CorsSettingSelect; - first?: number; - filter?: CorsSettingFilter; - orderBy?: CorsSettingOrderBy[]; + select: ApiSelect; }; }; export type AstMigrationSelect = { @@ -2358,7 +2526,7 @@ export type CorsSettingSelect = { id?: boolean; updatedAt?: boolean; api?: { - select: ApisSelect; + select: ApiSelect; }; }; export type DatabaseSelect = { @@ -2759,6 +2927,68 @@ export type DomainVerificationSelect = { select: ManagedDomainSelect; }; }; +export type EmailIdentitySelect = { + createdAt?: boolean; + databaseId?: boolean; + fromAddress?: boolean; + fromName?: boolean; + id?: boolean; + isActive?: boolean; + isDefault?: boolean; + name?: boolean; + providerAccountId?: boolean; + replyToAddress?: boolean; + supportAddress?: boolean; + transportMode?: boolean; + updatedAt?: boolean; + providerAccount?: { + select: EmailProviderAccountSelect; + }; + emailSiteIdentities?: { + select: EmailSiteIdentitySelect; + first?: number; + filter?: EmailSiteIdentityFilter; + orderBy?: EmailSiteIdentityOrderBy[]; + }; +}; +export type EmailProviderAccountSelect = { + apiBaseUrl?: boolean; + createdAt?: boolean; + credentialsSecretName?: boolean; + databaseId?: boolean; + id?: boolean; + isActive?: boolean; + name?: boolean; + provider?: boolean; + providerAccountName?: boolean; + region?: boolean; + smtpHost?: boolean; + smtpPort?: boolean; + smtpSecure?: boolean; + smtpUser?: boolean; + updatedAt?: boolean; + webhookSigningSecretName?: boolean; + emailIdentitiesByProviderAccountId?: { + select: EmailIdentitySelect; + first?: number; + filter?: EmailIdentityFilter; + orderBy?: EmailIdentityOrderBy[]; + }; +}; +export type EmailSiteIdentitySelect = { + createdAt?: boolean; + databaseId?: boolean; + emailIdentityId?: boolean; + id?: boolean; + siteId?: boolean; + updatedAt?: boolean; + emailIdentity?: { + select: EmailIdentitySelect; + }; + site?: { + select: SiteSelect; + }; +}; export type EmbeddingChunkSelect = { chunkOverlap?: boolean; chunkSize?: boolean; @@ -3135,6 +3365,29 @@ export type PartitionSelect = { select: TableSelect; }; }; +export type PlatformApiSelect = { + anonRole?: boolean; + config?: boolean; + createdAt?: boolean; + dbname?: boolean; + id?: boolean; + isPublished?: boolean; + name?: boolean; + roleName?: boolean; + updatedAt?: boolean; + platformApiSettingByApiId?: { + select: PlatformApiSettingSelect; + }; + platformCorsSettingByApiId?: { + select: PlatformCorsSettingSelect; + }; + platformApiSchemasByApiId?: { + select: PlatformApiSchemaSelect; + first?: number; + filter?: PlatformApiSchemaFilter; + orderBy?: PlatformApiSchemaOrderBy[]; + }; +}; export type PlatformApiSchemaSelect = { apiId?: boolean; createdAt?: boolean; @@ -3142,7 +3395,7 @@ export type PlatformApiSchemaSelect = { schemaId?: boolean; updatedAt?: boolean; api?: { - select: PlatformApisSelect; + select: PlatformApiSelect; }; schema?: { select: SchemaSelect; @@ -3168,30 +3421,7 @@ export type PlatformApiSettingSelect = { statementTimeoutMs?: boolean; updatedAt?: boolean; api?: { - select: PlatformApisSelect; - }; -}; -export type PlatformApisSelect = { - anonRole?: boolean; - config?: boolean; - createdAt?: boolean; - dbname?: boolean; - id?: boolean; - isPublished?: boolean; - name?: boolean; - roleName?: boolean; - updatedAt?: boolean; - platformApiSettingByApiId?: { - select: PlatformApiSettingSelect; - }; - platformCorsSettingByApiId?: { - select: PlatformCorsSettingSelect; - }; - platformApiSchemasByApiId?: { - select: PlatformApiSchemaSelect; - first?: number; - filter?: PlatformApiSchemaFilter; - orderBy?: PlatformApiSchemaOrderBy[]; + select: PlatformApiSelect; }; }; export type PlatformCorsSettingSelect = { @@ -3201,7 +3431,7 @@ export type PlatformCorsSettingSelect = { id?: boolean; updatedAt?: boolean; api?: { - select: PlatformApisSelect; + select: PlatformApiSelect; }; }; export type PlatformDomainSelect = { @@ -3276,6 +3506,65 @@ export type PlatformDomainVerificationSelect = { select: PlatformManagedDomainSelect; }; }; +export type PlatformEmailIdentitySelect = { + createdAt?: boolean; + fromAddress?: boolean; + fromName?: boolean; + id?: boolean; + isActive?: boolean; + isDefault?: boolean; + name?: boolean; + providerAccountId?: boolean; + replyToAddress?: boolean; + supportAddress?: boolean; + transportMode?: boolean; + updatedAt?: boolean; + providerAccount?: { + select: PlatformEmailProviderAccountSelect; + }; + platformEmailSiteIdentitiesByEmailIdentityId?: { + select: PlatformEmailSiteIdentitySelect; + first?: number; + filter?: PlatformEmailSiteIdentityFilter; + orderBy?: PlatformEmailSiteIdentityOrderBy[]; + }; +}; +export type PlatformEmailProviderAccountSelect = { + apiBaseUrl?: boolean; + createdAt?: boolean; + credentialsSecretName?: boolean; + id?: boolean; + isActive?: boolean; + name?: boolean; + provider?: boolean; + providerAccountName?: boolean; + region?: boolean; + smtpHost?: boolean; + smtpPort?: boolean; + smtpSecure?: boolean; + smtpUser?: boolean; + updatedAt?: boolean; + webhookSigningSecretName?: boolean; + platformEmailIdentitiesByProviderAccountId?: { + select: PlatformEmailIdentitySelect; + first?: number; + filter?: PlatformEmailIdentityFilter; + orderBy?: PlatformEmailIdentityOrderBy[]; + }; +}; +export type PlatformEmailSiteIdentitySelect = { + createdAt?: boolean; + emailIdentityId?: boolean; + id?: boolean; + siteId?: boolean; + updatedAt?: boolean; + emailIdentity?: { + select: PlatformEmailIdentitySelect; + }; + site?: { + select: PlatformSiteSelect; + }; +}; export type PlatformManagedDomainSelect = { allowPublicUsage?: boolean; annotations?: boolean; @@ -3344,6 +3633,9 @@ export type PlatformSiteSelect = { resourceId?: boolean; title?: boolean; updatedAt?: boolean; + platformEmailSiteIdentityBySiteId?: { + select: PlatformEmailSiteIdentitySelect; + }; platformSiteMetadatumBySiteId?: { select: PlatformSiteMetadatumSelect; }; @@ -3748,6 +4040,9 @@ export type SiteSelect = { resourceId?: boolean; title?: boolean; updatedAt?: boolean; + emailSiteIdentity?: { + select: EmailSiteIdentitySelect; + }; siteMetadatum?: { select: SiteMetadatumSelect; }; @@ -4365,11 +4660,51 @@ export type WebauthnSettingSelect = { }; }; // ============ Table Filter Types ============ +export interface ApiFilter { + /** Checks for all expressions in this list. */ + and?: ApiFilter[]; + /** Filter by the object’s `anonRole` field. */ + anonRole?: StringFilter; + /** Filter by the object’s `apiSchemas` relation. */ + apiSchemas?: ApiToManyApiSchemaFilter; + /** `apiSchemas` exist. */ + apiSchemasExist?: boolean; + /** Filter by the object’s `apiSetting` relation. */ + apiSetting?: ApiSettingFilter; + /** A related `apiSetting` exists. */ + apiSettingExists?: boolean; + /** Filter by the object’s `config` field. */ + config?: JSONFilter; + /** Filter by the object’s `corsSettings` relation. */ + corsSettings?: ApiToManyCorsSettingFilter; + /** `corsSettings` exist. */ + corsSettingsExist?: boolean; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `dbname` field. */ + dbname?: StringFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `isPublished` field. */ + isPublished?: BooleanFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Negates the expression. */ + not?: ApiFilter; + /** Checks for any expressions in this list. */ + or?: ApiFilter[]; + /** Filter by the object’s `roleName` field. */ + roleName?: StringFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; +} export interface ApiSchemaFilter { /** Checks for all expressions in this list. */ and?: ApiSchemaFilter[]; /** Filter by the object’s `api` relation. */ - api?: ApisFilter; + api?: ApiFilter; /** Filter by the object’s `apiId` field. */ apiId?: UUIDFilter; /** Filter by the object’s `createdAt` field. */ @@ -4393,7 +4728,7 @@ export interface ApiSettingFilter { /** Checks for all expressions in this list. */ and?: ApiSettingFilter[]; /** Filter by the object’s `api` relation. */ - api?: ApisFilter; + api?: ApiFilter; /** Filter by the object’s `apiId` field. */ apiId?: UUIDFilter; /** Filter by the object’s `createdAt` field. */ @@ -4437,46 +4772,6 @@ export interface ApiSettingFilter { /** Filter by the object’s `updatedAt` field. */ updatedAt?: DatetimeFilter; } -export interface ApisFilter { - /** Checks for all expressions in this list. */ - and?: ApisFilter[]; - /** Filter by the object’s `anonRole` field. */ - anonRole?: StringFilter; - /** Filter by the object’s `apiSchemasByApiId` relation. */ - apiSchemasByApiId?: ApisToManyApiSchemaFilter; - /** `apiSchemasByApiId` exist. */ - apiSchemasByApiIdExist?: boolean; - /** Filter by the object’s `apiSettingByApiId` relation. */ - apiSettingByApiId?: ApiSettingFilter; - /** A related `apiSettingByApiId` exists. */ - apiSettingByApiIdExists?: boolean; - /** Filter by the object’s `config` field. */ - config?: JSONFilter; - /** Filter by the object’s `corsSettingsByApiId` relation. */ - corsSettingsByApiId?: ApisToManyCorsSettingFilter; - /** `corsSettingsByApiId` exist. */ - corsSettingsByApiIdExist?: boolean; - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Filter by the object’s `dbname` field. */ - dbname?: StringFilter; - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `isPublished` field. */ - isPublished?: BooleanFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Negates the expression. */ - not?: ApisFilter; - /** Checks for any expressions in this list. */ - or?: ApisFilter[]; - /** Filter by the object’s `roleName` field. */ - roleName?: StringFilter; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; -} export interface AstMigrationFilter { /** Filter by the object’s `actionId` field. */ actionId?: UUIDFilter; @@ -4589,7 +4884,7 @@ export interface CorsSettingFilter { /** Checks for all expressions in this list. */ and?: CorsSettingFilter[]; /** Filter by the object’s `api` relation. */ - api?: ApisFilter; + api?: ApiFilter; /** A related `api` exists. */ apiExists?: boolean; /** Filter by the object’s `apiId` field. */ @@ -5093,6 +5388,116 @@ export interface DomainVerificationFilter { /** Filter by the object’s `verifiedAt` field. */ verifiedAt?: DatetimeFilter; } +export interface EmailIdentityFilter { + /** Checks for all expressions in this list. */ + and?: EmailIdentityFilter[]; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `emailSiteIdentities` relation. */ + emailSiteIdentities?: EmailIdentityToManyEmailSiteIdentityFilter; + /** `emailSiteIdentities` exist. */ + emailSiteIdentitiesExist?: boolean; + /** Filter by the object’s `fromAddress` field. */ + fromAddress?: StringFilter; + /** Filter by the object’s `fromName` field. */ + fromName?: StringFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `isActive` field. */ + isActive?: BooleanFilter; + /** Filter by the object’s `isDefault` field. */ + isDefault?: BooleanFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Negates the expression. */ + not?: EmailIdentityFilter; + /** Checks for any expressions in this list. */ + or?: EmailIdentityFilter[]; + /** Filter by the object’s `providerAccount` relation. */ + providerAccount?: EmailProviderAccountFilter; + /** A related `providerAccount` exists. */ + providerAccountExists?: boolean; + /** Filter by the object’s `providerAccountId` field. */ + providerAccountId?: UUIDFilter; + /** Filter by the object’s `replyToAddress` field. */ + replyToAddress?: StringFilter; + /** Filter by the object’s `supportAddress` field. */ + supportAddress?: StringFilter; + /** Filter by the object’s `transportMode` field. */ + transportMode?: StringFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; +} +export interface EmailProviderAccountFilter { + /** Checks for all expressions in this list. */ + and?: EmailProviderAccountFilter[]; + /** Filter by the object’s `apiBaseUrl` field. */ + apiBaseUrl?: StringFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `credentialsSecretName` field. */ + credentialsSecretName?: StringFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `emailIdentitiesByProviderAccountId` relation. */ + emailIdentitiesByProviderAccountId?: EmailProviderAccountToManyEmailIdentityFilter; + /** `emailIdentitiesByProviderAccountId` exist. */ + emailIdentitiesByProviderAccountIdExist?: boolean; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `isActive` field. */ + isActive?: BooleanFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Negates the expression. */ + not?: EmailProviderAccountFilter; + /** Checks for any expressions in this list. */ + or?: EmailProviderAccountFilter[]; + /** Filter by the object’s `provider` field. */ + provider?: StringFilter; + /** Filter by the object’s `providerAccountName` field. */ + providerAccountName?: StringFilter; + /** Filter by the object’s `region` field. */ + region?: StringFilter; + /** Filter by the object’s `smtpHost` field. */ + smtpHost?: StringFilter; + /** Filter by the object’s `smtpPort` field. */ + smtpPort?: IntFilter; + /** Filter by the object’s `smtpSecure` field. */ + smtpSecure?: BooleanFilter; + /** Filter by the object’s `smtpUser` field. */ + smtpUser?: StringFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `webhookSigningSecretName` field. */ + webhookSigningSecretName?: StringFilter; +} +export interface EmailSiteIdentityFilter { + /** Checks for all expressions in this list. */ + and?: EmailSiteIdentityFilter[]; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `emailIdentity` relation. */ + emailIdentity?: EmailIdentityFilter; + /** Filter by the object’s `emailIdentityId` field. */ + emailIdentityId?: UUIDFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Negates the expression. */ + not?: EmailSiteIdentityFilter; + /** Checks for any expressions in this list. */ + or?: EmailSiteIdentityFilter[]; + /** Filter by the object’s `site` relation. */ + site?: SiteFilter; + /** Filter by the object’s `siteId` field. */ + siteId?: UUIDFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; +} export interface EmbeddingChunkFilter { /** Checks for all expressions in this list. */ and?: EmbeddingChunkFilter[]; @@ -5727,11 +6132,49 @@ export interface PartitionFilter { /** Filter by the object’s `updatedAt` field. */ updatedAt?: DatetimeFilter; } +export interface PlatformApiFilter { + /** Checks for all expressions in this list. */ + and?: PlatformApiFilter[]; + /** Filter by the object’s `anonRole` field. */ + anonRole?: StringFilter; + /** Filter by the object’s `config` field. */ + config?: JSONFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `dbname` field. */ + dbname?: StringFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `isPublished` field. */ + isPublished?: BooleanFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Negates the expression. */ + not?: PlatformApiFilter; + /** Checks for any expressions in this list. */ + or?: PlatformApiFilter[]; + /** Filter by the object’s `platformApiSchemasByApiId` relation. */ + platformApiSchemasByApiId?: PlatformApiToManyPlatformApiSchemaFilter; + /** `platformApiSchemasByApiId` exist. */ + platformApiSchemasByApiIdExist?: boolean; + /** Filter by the object’s `platformApiSettingByApiId` relation. */ + platformApiSettingByApiId?: PlatformApiSettingFilter; + /** A related `platformApiSettingByApiId` exists. */ + platformApiSettingByApiIdExists?: boolean; + /** Filter by the object’s `platformCorsSettingByApiId` relation. */ + platformCorsSettingByApiId?: PlatformCorsSettingFilter; + /** A related `platformCorsSettingByApiId` exists. */ + platformCorsSettingByApiIdExists?: boolean; + /** Filter by the object’s `roleName` field. */ + roleName?: StringFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; +} export interface PlatformApiSchemaFilter { /** Checks for all expressions in this list. */ and?: PlatformApiSchemaFilter[]; /** Filter by the object’s `api` relation. */ - api?: PlatformApisFilter; + api?: PlatformApiFilter; /** Filter by the object’s `apiId` field. */ apiId?: UUIDFilter; /** Filter by the object’s `createdAt` field. */ @@ -5753,7 +6196,7 @@ export interface PlatformApiSettingFilter { /** Checks for all expressions in this list. */ and?: PlatformApiSettingFilter[]; /** Filter by the object’s `api` relation. */ - api?: PlatformApisFilter; + api?: PlatformApiFilter; /** Filter by the object’s `apiId` field. */ apiId?: UUIDFilter; /** Filter by the object’s `createdAt` field. */ @@ -5795,51 +6238,13 @@ export interface PlatformApiSettingFilter { /** Filter by the object’s `updatedAt` field. */ updatedAt?: DatetimeFilter; } -export interface PlatformApisFilter { - /** Checks for all expressions in this list. */ - and?: PlatformApisFilter[]; - /** Filter by the object’s `anonRole` field. */ - anonRole?: StringFilter; - /** Filter by the object’s `config` field. */ - config?: JSONFilter; - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; - /** Filter by the object’s `dbname` field. */ - dbname?: StringFilter; - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `isPublished` field. */ - isPublished?: BooleanFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Negates the expression. */ - not?: PlatformApisFilter; - /** Checks for any expressions in this list. */ - or?: PlatformApisFilter[]; - /** Filter by the object’s `platformApiSchemasByApiId` relation. */ - platformApiSchemasByApiId?: PlatformApisToManyPlatformApiSchemaFilter; - /** `platformApiSchemasByApiId` exist. */ - platformApiSchemasByApiIdExist?: boolean; - /** Filter by the object’s `platformApiSettingByApiId` relation. */ - platformApiSettingByApiId?: PlatformApiSettingFilter; - /** A related `platformApiSettingByApiId` exists. */ - platformApiSettingByApiIdExists?: boolean; - /** Filter by the object’s `platformCorsSettingByApiId` relation. */ - platformCorsSettingByApiId?: PlatformCorsSettingFilter; - /** A related `platformCorsSettingByApiId` exists. */ - platformCorsSettingByApiIdExists?: boolean; - /** Filter by the object’s `roleName` field. */ - roleName?: StringFilter; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; -} export interface PlatformCorsSettingFilter { /** Filter by the object’s `allowedOrigins` field. */ allowedOrigins?: StringListFilter; /** Checks for all expressions in this list. */ and?: PlatformCorsSettingFilter[]; /** Filter by the object’s `api` relation. */ - api?: PlatformApisFilter; + api?: PlatformApiFilter; /** A related `api` exists. */ apiExists?: boolean; /** Filter by the object’s `apiId` field. */ @@ -5985,6 +6390,110 @@ export interface PlatformDomainVerificationFilter { /** Filter by the object’s `verifiedAt` field. */ verifiedAt?: DatetimeFilter; } +export interface PlatformEmailIdentityFilter { + /** Checks for all expressions in this list. */ + and?: PlatformEmailIdentityFilter[]; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `fromAddress` field. */ + fromAddress?: StringFilter; + /** Filter by the object’s `fromName` field. */ + fromName?: StringFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `isActive` field. */ + isActive?: BooleanFilter; + /** Filter by the object’s `isDefault` field. */ + isDefault?: BooleanFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Negates the expression. */ + not?: PlatformEmailIdentityFilter; + /** Checks for any expressions in this list. */ + or?: PlatformEmailIdentityFilter[]; + /** Filter by the object’s `platformEmailSiteIdentitiesByEmailIdentityId` relation. */ + platformEmailSiteIdentitiesByEmailIdentityId?: PlatformEmailIdentityToManyPlatformEmailSiteIdentityFilter; + /** `platformEmailSiteIdentitiesByEmailIdentityId` exist. */ + platformEmailSiteIdentitiesByEmailIdentityIdExist?: boolean; + /** Filter by the object’s `providerAccount` relation. */ + providerAccount?: PlatformEmailProviderAccountFilter; + /** A related `providerAccount` exists. */ + providerAccountExists?: boolean; + /** Filter by the object’s `providerAccountId` field. */ + providerAccountId?: UUIDFilter; + /** Filter by the object’s `replyToAddress` field. */ + replyToAddress?: StringFilter; + /** Filter by the object’s `supportAddress` field. */ + supportAddress?: StringFilter; + /** Filter by the object’s `transportMode` field. */ + transportMode?: StringFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; +} +export interface PlatformEmailProviderAccountFilter { + /** Checks for all expressions in this list. */ + and?: PlatformEmailProviderAccountFilter[]; + /** Filter by the object’s `apiBaseUrl` field. */ + apiBaseUrl?: StringFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `credentialsSecretName` field. */ + credentialsSecretName?: StringFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `isActive` field. */ + isActive?: BooleanFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Negates the expression. */ + not?: PlatformEmailProviderAccountFilter; + /** Checks for any expressions in this list. */ + or?: PlatformEmailProviderAccountFilter[]; + /** Filter by the object’s `platformEmailIdentitiesByProviderAccountId` relation. */ + platformEmailIdentitiesByProviderAccountId?: PlatformEmailProviderAccountToManyPlatformEmailIdentityFilter; + /** `platformEmailIdentitiesByProviderAccountId` exist. */ + platformEmailIdentitiesByProviderAccountIdExist?: boolean; + /** Filter by the object’s `provider` field. */ + provider?: StringFilter; + /** Filter by the object’s `providerAccountName` field. */ + providerAccountName?: StringFilter; + /** Filter by the object’s `region` field. */ + region?: StringFilter; + /** Filter by the object’s `smtpHost` field. */ + smtpHost?: StringFilter; + /** Filter by the object’s `smtpPort` field. */ + smtpPort?: IntFilter; + /** Filter by the object’s `smtpSecure` field. */ + smtpSecure?: BooleanFilter; + /** Filter by the object’s `smtpUser` field. */ + smtpUser?: StringFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `webhookSigningSecretName` field. */ + webhookSigningSecretName?: StringFilter; +} +export interface PlatformEmailSiteIdentityFilter { + /** Checks for all expressions in this list. */ + and?: PlatformEmailSiteIdentityFilter[]; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `emailIdentity` relation. */ + emailIdentity?: PlatformEmailIdentityFilter; + /** Filter by the object’s `emailIdentityId` field. */ + emailIdentityId?: UUIDFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Negates the expression. */ + not?: PlatformEmailSiteIdentityFilter; + /** Checks for any expressions in this list. */ + or?: PlatformEmailSiteIdentityFilter[]; + /** Filter by the object’s `site` relation. */ + site?: PlatformSiteFilter; + /** Filter by the object’s `siteId` field. */ + siteId?: UUIDFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; +} export interface PlatformManagedDomainFilter { /** Filter by the object’s `allowPublicUsage` field. */ allowPublicUsage?: BooleanFilter; @@ -6108,6 +6617,10 @@ export interface PlatformSiteFilter { not?: PlatformSiteFilter; /** Checks for any expressions in this list. */ or?: PlatformSiteFilter[]; + /** Filter by the object’s `platformEmailSiteIdentityBySiteId` relation. */ + platformEmailSiteIdentityBySiteId?: PlatformEmailSiteIdentityFilter; + /** A related `platformEmailSiteIdentityBySiteId` exists. */ + platformEmailSiteIdentityBySiteIdExists?: boolean; /** Filter by the object’s `platformPagesBySiteId` relation. */ platformPagesBySiteId?: PlatformSiteToManyPlatformPageFilter; /** `platformPagesBySiteId` exist. */ @@ -6742,6 +7255,10 @@ export interface SiteFilter { databaseId?: UUIDFilter; /** Filter by the object’s `description` field. */ description?: StringFilter; + /** Filter by the object’s `emailSiteIdentity` relation. */ + emailSiteIdentity?: EmailSiteIdentityFilter; + /** A related `emailSiteIdentity` exists. */ + emailSiteIdentityExists?: boolean; /** Filter by the object’s `id` field. */ id?: UUIDFilter; /** Filter by the object’s `installationId` field. */ @@ -7642,30 +8159,54 @@ export interface WebauthnSettingFilter { userFieldId?: UUIDFilter; } // ============ OrderBy Types ============ -export type ApiSchemaOrderBy = - | 'API_ID_ASC' - | 'API_ID_DESC' +export type ApiOrderBy = + | 'ANON_ROLE_ASC' + | 'ANON_ROLE_DESC' + | 'CONFIG_ASC' + | 'CONFIG_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' + | 'DBNAME_ASC' + | 'DBNAME_DESC' | 'ID_ASC' | 'ID_DESC' + | 'IS_PUBLISHED_ASC' + | 'IS_PUBLISHED_DESC' + | 'NAME_ASC' + | 'NAME_DESC' | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' - | 'SCHEMA_ID_ASC' - | 'SCHEMA_ID_DESC' + | 'ROLE_NAME_ASC' + | 'ROLE_NAME_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC'; -export type ApiSettingOrderBy = +export type ApiSchemaOrderBy = | 'API_ID_ASC' | 'API_ID_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' - | 'ENABLE_AGGREGATES_ASC' + | 'ID_ASC' + | 'ID_DESC' + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'SCHEMA_ID_ASC' + | 'SCHEMA_ID_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC'; +export type ApiSettingOrderBy = + | 'API_ID_ASC' + | 'API_ID_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'ENABLE_AGGREGATES_ASC' | 'ENABLE_AGGREGATES_DESC' | 'ENABLE_BULK_ASC' | 'ENABLE_BULK_DESC' @@ -7700,30 +8241,6 @@ export type ApiSettingOrderBy = | 'STATEMENT_TIMEOUT_MS_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC'; -export type ApisOrderBy = - | 'ANON_ROLE_ASC' - | 'ANON_ROLE_DESC' - | 'CONFIG_ASC' - | 'CONFIG_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' - | 'DBNAME_ASC' - | 'DBNAME_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'IS_PUBLISHED_ASC' - | 'IS_PUBLISHED_DESC' - | 'NAME_ASC' - | 'NAME_DESC' - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ROLE_NAME_ASC' - | 'ROLE_NAME_DESC' - | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC'; export type AstMigrationOrderBy = | 'ACTION_ID_ASC' | 'ACTION_ID_DESC' @@ -8086,6 +8603,88 @@ export type DomainVerificationOrderBy = | 'UPDATED_AT_DESC' | 'VERIFIED_AT_ASC' | 'VERIFIED_AT_DESC'; +export type EmailIdentityOrderBy = + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'FROM_ADDRESS_ASC' + | 'FROM_ADDRESS_DESC' + | 'FROM_NAME_ASC' + | 'FROM_NAME_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'IS_ACTIVE_ASC' + | 'IS_ACTIVE_DESC' + | 'IS_DEFAULT_ASC' + | 'IS_DEFAULT_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'PROVIDER_ACCOUNT_ID_ASC' + | 'PROVIDER_ACCOUNT_ID_DESC' + | 'REPLY_TO_ADDRESS_ASC' + | 'REPLY_TO_ADDRESS_DESC' + | 'SUPPORT_ADDRESS_ASC' + | 'SUPPORT_ADDRESS_DESC' + | 'TRANSPORT_MODE_ASC' + | 'TRANSPORT_MODE_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC'; +export type EmailProviderAccountOrderBy = + | 'API_BASE_URL_ASC' + | 'API_BASE_URL_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'CREDENTIALS_SECRET_NAME_ASC' + | 'CREDENTIALS_SECRET_NAME_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'IS_ACTIVE_ASC' + | 'IS_ACTIVE_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'PROVIDER_ACCOUNT_NAME_ASC' + | 'PROVIDER_ACCOUNT_NAME_DESC' + | 'PROVIDER_ASC' + | 'PROVIDER_DESC' + | 'REGION_ASC' + | 'REGION_DESC' + | 'SMTP_HOST_ASC' + | 'SMTP_HOST_DESC' + | 'SMTP_PORT_ASC' + | 'SMTP_PORT_DESC' + | 'SMTP_SECURE_ASC' + | 'SMTP_SECURE_DESC' + | 'SMTP_USER_ASC' + | 'SMTP_USER_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC' + | 'WEBHOOK_SIGNING_SECRET_NAME_ASC' + | 'WEBHOOK_SIGNING_SECRET_NAME_DESC'; +export type EmailSiteIdentityOrderBy = + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'EMAIL_IDENTITY_ID_ASC' + | 'EMAIL_IDENTITY_ID_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'SITE_ID_ASC' + | 'SITE_ID_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC'; export type EmbeddingChunkOrderBy = | 'CHUNKING_TASK_NAME_ASC' | 'CHUNKING_TASK_NAME_DESC' @@ -8556,6 +9155,28 @@ export type PartitionOrderBy = | 'TABLE_ID_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC'; +export type PlatformApiOrderBy = + | 'ANON_ROLE_ASC' + | 'ANON_ROLE_DESC' + | 'CONFIG_ASC' + | 'CONFIG_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'DBNAME_ASC' + | 'DBNAME_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'IS_PUBLISHED_ASC' + | 'IS_PUBLISHED_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ROLE_NAME_ASC' + | 'ROLE_NAME_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC'; export type PlatformApiSchemaOrderBy = | 'API_ID_ASC' | 'API_ID_DESC' @@ -8610,28 +9231,6 @@ export type PlatformApiSettingOrderBy = | 'STATEMENT_TIMEOUT_MS_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC'; -export type PlatformApisOrderBy = - | 'ANON_ROLE_ASC' - | 'ANON_ROLE_DESC' - | 'CONFIG_ASC' - | 'CONFIG_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'DBNAME_ASC' - | 'DBNAME_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'IS_PUBLISHED_ASC' - | 'IS_PUBLISHED_DESC' - | 'NAME_ASC' - | 'NAME_DESC' - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ROLE_NAME_ASC' - | 'ROLE_NAME_DESC' - | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC'; export type PlatformCorsSettingOrderBy = | 'ALLOWED_ORIGINS_ASC' | 'ALLOWED_ORIGINS_DESC' @@ -8736,6 +9335,82 @@ export type PlatformDomainVerificationOrderBy = | 'UPDATED_AT_DESC' | 'VERIFIED_AT_ASC' | 'VERIFIED_AT_DESC'; +export type PlatformEmailIdentityOrderBy = + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'FROM_ADDRESS_ASC' + | 'FROM_ADDRESS_DESC' + | 'FROM_NAME_ASC' + | 'FROM_NAME_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'IS_ACTIVE_ASC' + | 'IS_ACTIVE_DESC' + | 'IS_DEFAULT_ASC' + | 'IS_DEFAULT_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'PROVIDER_ACCOUNT_ID_ASC' + | 'PROVIDER_ACCOUNT_ID_DESC' + | 'REPLY_TO_ADDRESS_ASC' + | 'REPLY_TO_ADDRESS_DESC' + | 'SUPPORT_ADDRESS_ASC' + | 'SUPPORT_ADDRESS_DESC' + | 'TRANSPORT_MODE_ASC' + | 'TRANSPORT_MODE_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC'; +export type PlatformEmailProviderAccountOrderBy = + | 'API_BASE_URL_ASC' + | 'API_BASE_URL_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'CREDENTIALS_SECRET_NAME_ASC' + | 'CREDENTIALS_SECRET_NAME_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'IS_ACTIVE_ASC' + | 'IS_ACTIVE_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'PROVIDER_ACCOUNT_NAME_ASC' + | 'PROVIDER_ACCOUNT_NAME_DESC' + | 'PROVIDER_ASC' + | 'PROVIDER_DESC' + | 'REGION_ASC' + | 'REGION_DESC' + | 'SMTP_HOST_ASC' + | 'SMTP_HOST_DESC' + | 'SMTP_PORT_ASC' + | 'SMTP_PORT_DESC' + | 'SMTP_SECURE_ASC' + | 'SMTP_SECURE_DESC' + | 'SMTP_USER_ASC' + | 'SMTP_USER_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC' + | 'WEBHOOK_SIGNING_SECRET_NAME_ASC' + | 'WEBHOOK_SIGNING_SECRET_NAME_DESC'; +export type PlatformEmailSiteIdentityOrderBy = + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'EMAIL_IDENTITY_ID_ASC' + | 'EMAIL_IDENTITY_ID_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'SITE_ID_ASC' + | 'SITE_ID_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC'; export type PlatformManagedDomainOrderBy = | 'ALLOW_PUBLIC_USAGE_ASC' | 'ALLOW_PUBLIC_USAGE_DESC' @@ -9801,6 +10476,36 @@ export type WebauthnSettingOrderBy = | 'USER_FIELD_ID_ASC' | 'USER_FIELD_ID_DESC'; // ============ CRUD Input Types ============ +export interface CreateApiInput { + clientMutationId?: string; + api: { + anonRole?: string; + config?: Record; + databaseId: string; + dbname?: string; + isPublished?: boolean; + name: string; + roleName?: string; + }; +} +export interface ApiPatch { + anonRole?: string | null; + config?: Record | null; + databaseId?: string | null; + dbname?: string | null; + isPublished?: boolean | null; + name?: string | null; + roleName?: string | null; +} +export interface UpdateApiInput { + clientMutationId?: string; + id: string; + apiPatch: ApiPatch; +} +export interface DeleteApiInput { + clientMutationId?: string; + id: string; +} export interface CreateApiSchemaInput { clientMutationId?: string; apiSchema: { @@ -9871,36 +10576,6 @@ export interface DeleteApiSettingInput { clientMutationId?: string; id: string; } -export interface CreateApisInput { - clientMutationId?: string; - apis: { - anonRole?: string; - config?: Record; - databaseId: string; - dbname?: string; - isPublished?: boolean; - name: string; - roleName?: string; - }; -} -export interface ApisPatch { - anonRole?: string | null; - config?: Record | null; - databaseId?: string | null; - dbname?: string | null; - isPublished?: boolean | null; - name?: string | null; - roleName?: string | null; -} -export interface UpdateApisInput { - clientMutationId?: string; - id: string; - apisPatch: ApisPatch; -} -export interface DeleteApisInput { - clientMutationId?: string; - id: string; -} export interface CreateAstMigrationInput { clientMutationId?: string; astMigration: { @@ -10357,6 +11032,106 @@ export interface DeleteDomainVerificationInput { clientMutationId?: string; id: string; } +export interface CreateEmailIdentityInput { + clientMutationId?: string; + emailIdentity: { + databaseId: string; + fromAddress: string; + fromName?: string; + isActive?: boolean; + isDefault?: boolean; + name: string; + providerAccountId?: string; + replyToAddress?: string; + supportAddress?: string; + transportMode?: string; + }; +} +export interface EmailIdentityPatch { + databaseId?: string | null; + fromAddress?: string | null; + fromName?: string | null; + isActive?: boolean | null; + isDefault?: boolean | null; + name?: string | null; + providerAccountId?: string | null; + replyToAddress?: string | null; + supportAddress?: string | null; + transportMode?: string | null; +} +export interface UpdateEmailIdentityInput { + clientMutationId?: string; + id: string; + emailIdentityPatch: EmailIdentityPatch; +} +export interface DeleteEmailIdentityInput { + clientMutationId?: string; + id: string; +} +export interface CreateEmailProviderAccountInput { + clientMutationId?: string; + emailProviderAccount: { + apiBaseUrl?: string; + credentialsSecretName: string; + databaseId: string; + isActive?: boolean; + name: string; + provider: string; + providerAccountName?: string; + region?: string; + smtpHost?: string; + smtpPort?: number; + smtpSecure?: boolean; + smtpUser?: string; + webhookSigningSecretName?: string; + }; +} +export interface EmailProviderAccountPatch { + apiBaseUrl?: string | null; + credentialsSecretName?: string | null; + databaseId?: string | null; + isActive?: boolean | null; + name?: string | null; + provider?: string | null; + providerAccountName?: string | null; + region?: string | null; + smtpHost?: string | null; + smtpPort?: number | null; + smtpSecure?: boolean | null; + smtpUser?: string | null; + webhookSigningSecretName?: string | null; +} +export interface UpdateEmailProviderAccountInput { + clientMutationId?: string; + id: string; + emailProviderAccountPatch: EmailProviderAccountPatch; +} +export interface DeleteEmailProviderAccountInput { + clientMutationId?: string; + id: string; +} +export interface CreateEmailSiteIdentityInput { + clientMutationId?: string; + emailSiteIdentity: { + databaseId: string; + emailIdentityId: string; + siteId: string; + }; +} +export interface EmailSiteIdentityPatch { + databaseId?: string | null; + emailIdentityId?: string | null; + siteId?: string | null; +} +export interface UpdateEmailSiteIdentityInput { + clientMutationId?: string; + id: string; + emailSiteIdentityPatch: EmailSiteIdentityPatch; +} +export interface DeleteEmailSiteIdentityInput { + clientMutationId?: string; + id: string; +} export interface CreateEmbeddingChunkInput { clientMutationId?: string; embeddingChunk: { @@ -10939,10 +11714,38 @@ export interface DeletePartitionInput { clientMutationId?: string; id: string; } -export interface CreatePlatformApiSchemaInput { +export interface CreatePlatformApiInput { clientMutationId?: string; - platformApiSchema: { - apiId: string; + platformApi: { + anonRole?: string; + config?: Record; + dbname?: string; + isPublished?: boolean; + name: string; + roleName?: string; + }; +} +export interface PlatformApiPatch { + anonRole?: string | null; + config?: Record | null; + dbname?: string | null; + isPublished?: boolean | null; + name?: string | null; + roleName?: string | null; +} +export interface UpdatePlatformApiInput { + clientMutationId?: string; + id: string; + platformApiPatch: PlatformApiPatch; +} +export interface DeletePlatformApiInput { + clientMutationId?: string; + id: string; +} +export interface CreatePlatformApiSchemaInput { + clientMutationId?: string; + platformApiSchema: { + apiId: string; schemaId: string; }; } @@ -11005,34 +11808,6 @@ export interface DeletePlatformApiSettingInput { clientMutationId?: string; id: string; } -export interface CreatePlatformApisInput { - clientMutationId?: string; - platformApis: { - anonRole?: string; - config?: Record; - dbname?: string; - isPublished?: boolean; - name: string; - roleName?: string; - }; -} -export interface PlatformApisPatch { - anonRole?: string | null; - config?: Record | null; - dbname?: string | null; - isPublished?: boolean | null; - name?: string | null; - roleName?: string | null; -} -export interface UpdatePlatformApisInput { - clientMutationId?: string; - id: string; - platformApisPatch: PlatformApisPatch; -} -export interface DeletePlatformApisInput { - clientMutationId?: string; - id: string; -} export interface CreatePlatformCorsSettingInput { clientMutationId?: string; platformCorsSetting: { @@ -11161,6 +11936,100 @@ export interface DeletePlatformDomainVerificationInput { clientMutationId?: string; id: string; } +export interface CreatePlatformEmailIdentityInput { + clientMutationId?: string; + platformEmailIdentity: { + fromAddress: string; + fromName?: string; + isActive?: boolean; + isDefault?: boolean; + name: string; + providerAccountId?: string; + replyToAddress?: string; + supportAddress?: string; + transportMode?: string; + }; +} +export interface PlatformEmailIdentityPatch { + fromAddress?: string | null; + fromName?: string | null; + isActive?: boolean | null; + isDefault?: boolean | null; + name?: string | null; + providerAccountId?: string | null; + replyToAddress?: string | null; + supportAddress?: string | null; + transportMode?: string | null; +} +export interface UpdatePlatformEmailIdentityInput { + clientMutationId?: string; + id: string; + platformEmailIdentityPatch: PlatformEmailIdentityPatch; +} +export interface DeletePlatformEmailIdentityInput { + clientMutationId?: string; + id: string; +} +export interface CreatePlatformEmailProviderAccountInput { + clientMutationId?: string; + platformEmailProviderAccount: { + apiBaseUrl?: string; + credentialsSecretName: string; + isActive?: boolean; + name: string; + provider: string; + providerAccountName?: string; + region?: string; + smtpHost?: string; + smtpPort?: number; + smtpSecure?: boolean; + smtpUser?: string; + webhookSigningSecretName?: string; + }; +} +export interface PlatformEmailProviderAccountPatch { + apiBaseUrl?: string | null; + credentialsSecretName?: string | null; + isActive?: boolean | null; + name?: string | null; + provider?: string | null; + providerAccountName?: string | null; + region?: string | null; + smtpHost?: string | null; + smtpPort?: number | null; + smtpSecure?: boolean | null; + smtpUser?: string | null; + webhookSigningSecretName?: string | null; +} +export interface UpdatePlatformEmailProviderAccountInput { + clientMutationId?: string; + id: string; + platformEmailProviderAccountPatch: PlatformEmailProviderAccountPatch; +} +export interface DeletePlatformEmailProviderAccountInput { + clientMutationId?: string; + id: string; +} +export interface CreatePlatformEmailSiteIdentityInput { + clientMutationId?: string; + platformEmailSiteIdentity: { + emailIdentityId: string; + siteId: string; + }; +} +export interface PlatformEmailSiteIdentityPatch { + emailIdentityId?: string | null; + siteId?: string | null; +} +export interface UpdatePlatformEmailSiteIdentityInput { + clientMutationId?: string; + id: string; + platformEmailSiteIdentityPatch: PlatformEmailSiteIdentityPatch; +} +export interface DeletePlatformEmailSiteIdentityInput { + clientMutationId?: string; + id: string; +} export interface CreatePlatformManagedDomainInput { clientMutationId?: string; platformManagedDomain: { @@ -12503,9 +13372,9 @@ export interface DeleteWebauthnSettingInput { } // ============ Connection Fields Map ============ export const connectionFieldsMap = { - Apis: { - apiSchemasByApiId: 'ApiSchema', - corsSettingsByApiId: 'CorsSetting', + Api: { + apiSchemas: 'ApiSchema', + corsSettings: 'CorsSetting', }, Database: { checkConstraints: 'CheckConstraint', @@ -12549,6 +13418,12 @@ export const connectionFieldsMap = { httpRoutes: 'HttpRoute', routes: 'Route', }, + EmailIdentity: { + emailSiteIdentities: 'EmailSiteIdentity', + }, + EmailProviderAccount: { + emailIdentitiesByProviderAccountId: 'EmailIdentity', + }, Field: { embeddingChunksByEmbeddingFieldId: 'EmbeddingChunk', embeddingChunksByParentFkFieldId: 'EmbeddingChunk', @@ -12564,13 +13439,19 @@ export const connectionFieldsMap = { domainEvents: 'DomainEvent', domainVerifications: 'DomainVerification', }, - PlatformApis: { + PlatformApi: { platformApiSchemasByApiId: 'PlatformApiSchema', }, PlatformDomain: { platformDomainEventsByDomainId: 'PlatformDomainEvent', platformDomainVerificationsByDomainId: 'PlatformDomainVerification', }, + PlatformEmailIdentity: { + platformEmailSiteIdentitiesByEmailIdentityId: 'PlatformEmailSiteIdentity', + }, + PlatformEmailProviderAccount: { + platformEmailIdentitiesByProviderAccountId: 'PlatformEmailIdentity', + }, PlatformManagedDomain: { platformDomainEventsByManagedDomainId: 'PlatformDomainEvent', platformDomainVerificationsByManagedDomainId: 'PlatformDomainVerification', @@ -12713,7 +13594,7 @@ export interface SitesProvisionStaticSiteInput { siteConfig?: Record; } /** A filter to be used against many `ApiSchema` object types. All fields are combined with a logical ‘and.’ */ -export interface ApisToManyApiSchemaFilter { +export interface ApiToManyApiSchemaFilter { /** Filters to entities where every related entity matches. */ every?: ApiSchemaFilter; /** Filters to entities where no related entity matches. */ @@ -12722,7 +13603,7 @@ export interface ApisToManyApiSchemaFilter { some?: ApiSchemaFilter; } /** A filter to be used against many `CorsSetting` object types. All fields are combined with a logical ‘and.’ */ -export interface ApisToManyCorsSettingFilter { +export interface ApiToManyCorsSettingFilter { /** Filters to entities where every related entity matches. */ every?: CorsSettingFilter; /** Filters to entities where no related entity matches. */ @@ -13097,6 +13978,24 @@ export interface DomainToManyRouteFilter { /** Filters to entities where at least one related entity matches. */ some?: RouteFilter; } +/** A filter to be used against many `EmailSiteIdentity` object types. All fields are combined with a logical ‘and.’ */ +export interface EmailIdentityToManyEmailSiteIdentityFilter { + /** Filters to entities where every related entity matches. */ + every?: EmailSiteIdentityFilter; + /** Filters to entities where no related entity matches. */ + none?: EmailSiteIdentityFilter; + /** Filters to entities where at least one related entity matches. */ + some?: EmailSiteIdentityFilter; +} +/** A filter to be used against many `EmailIdentity` object types. All fields are combined with a logical ‘and.’ */ +export interface EmailProviderAccountToManyEmailIdentityFilter { + /** Filters to entities where every related entity matches. */ + every?: EmailIdentityFilter; + /** Filters to entities where no related entity matches. */ + none?: EmailIdentityFilter; + /** Filters to entities where at least one related entity matches. */ + some?: EmailIdentityFilter; +} /** A filter to be used against many `EmbeddingChunk` object types. All fields are combined with a logical ‘and.’ */ export interface FieldToManyEmbeddingChunkFilter { /** Filters to entities where every related entity matches. */ @@ -13161,7 +14060,7 @@ export interface ManagedDomainToManyDomainVerificationFilter { some?: DomainVerificationFilter; } /** A filter to be used against many `PlatformApiSchema` object types. All fields are combined with a logical ‘and.’ */ -export interface PlatformApisToManyPlatformApiSchemaFilter { +export interface PlatformApiToManyPlatformApiSchemaFilter { /** Filters to entities where every related entity matches. */ every?: PlatformApiSchemaFilter; /** Filters to entities where no related entity matches. */ @@ -13187,6 +14086,24 @@ export interface PlatformDomainToManyPlatformDomainVerificationFilter { /** Filters to entities where at least one related entity matches. */ some?: PlatformDomainVerificationFilter; } +/** A filter to be used against many `PlatformEmailSiteIdentity` object types. All fields are combined with a logical ‘and.’ */ +export interface PlatformEmailIdentityToManyPlatformEmailSiteIdentityFilter { + /** Filters to entities where every related entity matches. */ + every?: PlatformEmailSiteIdentityFilter; + /** Filters to entities where no related entity matches. */ + none?: PlatformEmailSiteIdentityFilter; + /** Filters to entities where at least one related entity matches. */ + some?: PlatformEmailSiteIdentityFilter; +} +/** A filter to be used against many `PlatformEmailIdentity` object types. All fields are combined with a logical ‘and.’ */ +export interface PlatformEmailProviderAccountToManyPlatformEmailIdentityFilter { + /** Filters to entities where every related entity matches. */ + every?: PlatformEmailIdentityFilter; + /** Filters to entities where no related entity matches. */ + none?: PlatformEmailIdentityFilter; + /** Filters to entities where at least one related entity matches. */ + some?: PlatformEmailIdentityFilter; +} /** A filter to be used against many `PlatformDomainEvent` object types. All fields are combined with a logical ‘and.’ */ export interface PlatformManagedDomainToManyPlatformDomainEventFilter { /** Filters to entities where every related entity matches. */ @@ -13670,6 +14587,26 @@ export interface ViewToManyViewTableFilter { /** Filters to entities where at least one related entity matches. */ some?: ViewTableFilter; } +/** An input for mutations affecting `Api` */ +export interface ApiInput { + /** Anonymous role the API executes as */ + anonRole?: string; + /** Module-specific configuration for this API surface */ + config?: Record; + createdAt?: string; + /** Database that owns this resource (database-scoped isolation) */ + databaseId: string; + /** Database this API surface serves */ + dbname?: string; + id?: string; + /** Whether other scopes may see and route to this API surface */ + isPublished?: boolean; + /** Owner-local API surface name */ + name: string; + /** Authenticated role the API executes as */ + roleName?: string; + updatedAt?: string; +} /** An input for mutations affecting `ApiSchema` */ export interface ApiSchemaInput { /** API surface that exposes this schema */ @@ -13720,26 +14657,6 @@ export interface ApiSettingInput { statementTimeoutMs?: string; updatedAt?: string; } -/** An input for mutations affecting `Apis` */ -export interface ApisInput { - /** Anonymous role the API executes as */ - anonRole?: string; - /** Module-specific configuration for this API surface */ - config?: Record; - createdAt?: string; - /** Database that owns this resource (database-scoped isolation) */ - databaseId: string; - /** Database this API surface serves */ - dbname?: string; - id?: string; - /** Whether other scopes may see and route to this API surface */ - isPublished?: boolean; - /** Owner-local API surface name */ - name: string; - /** Authenticated role the API executes as */ - roleName?: string; - updatedAt?: string; -} /** An input for mutations affecting `CheckConstraint` */ export interface CheckConstraintInput { category?: ObjectCategory; @@ -13972,6 +14889,76 @@ export interface DomainVerificationInput { /** When this challenge succeeded */ verifiedAt?: string; } +/** An input for mutations affecting `EmailIdentity` */ +export interface EmailIdentityInput { + createdAt?: string; + /** Database that owns this resource (database-scoped isolation) */ + databaseId: string; + /** Envelope/header From address, lower-case. Must be accepted by the sending account at the provider. */ + fromAddress: string; + /** Display name shown beside the from address */ + fromName?: string; + id?: string; + /** Whether this identity may be resolved for a send */ + isActive?: boolean; + /** The scope default identity, used when no site binding resolves. At most one per scope key. */ + isDefault?: boolean; + /** Operator-facing name for this identity (e.g. transactional, support) */ + name: string; + /** Same-scope provider account this identity sends through. Required for transport_mode = own, NULL for platform_shared. */ + providerAccountId?: string; + /** Reply-To address when replies should not go to the from address */ + replyToAddress?: string; + /** Support address rendered in message bodies and footers */ + supportAddress?: string; + /** own = send through provider_account_id in this scope; platform_shared = send through the platform installation's shared account, an explicit recorded choice and never an implicit fallback */ + transportMode?: string; + updatedAt?: string; +} +/** An input for mutations affecting `EmailProviderAccount` */ +export interface EmailProviderAccountInput { + /** Provider API base URL when it is not the provider default (e.g. Mailgun EU) */ + apiBaseUrl?: string; + createdAt?: string; + /** Name of the secret holding this account's API key or SMTP password. The value is resolved from the secret store at send time (realm = this row's id) and is never stored here. */ + credentialsSecretName: string; + /** Database that owns this resource (database-scoped isolation) */ + databaseId: string; + id?: string; + /** Whether identities may send through this account. Disabling one row stops every identity that references it. */ + isActive?: boolean; + /** Operator-facing name for this account (e.g. transactional, marketing) */ + name: string; + /** integration_providers.slug of the provider this account is at (mailgun, ses, postmark, smtp), matched by string not by FK */ + provider: string; + /** Account identifier at the provider — the Mailgun sending domain, the SES verified identity, the Postmark server name */ + providerAccountName?: string; + /** Provider region for region-addressed providers (e.g. SES us-east-1) */ + region?: string; + /** SMTP host (provider = smtp, or a provider addressed over SMTP) */ + smtpHost?: string; + /** SMTP port */ + smtpPort?: number; + /** Whether the SMTP connection uses implicit TLS */ + smtpSecure?: boolean; + /** SMTP username; the password is a secret, addressed by credentials_secret_name */ + smtpUser?: string; + updatedAt?: string; + /** Name of the secret used to verify this provider's delivery/bounce webhooks. Name only; the value stays in the secret store. */ + webhookSigningSecretName?: string; +} +/** An input for mutations affecting `EmailSiteIdentity` */ +export interface EmailSiteIdentityInput { + createdAt?: string; + /** Database that owns this resource (database-scoped isolation) */ + databaseId: string; + /** Identity this site sends as */ + emailIdentityId: string; + id?: string; + /** Site whose mail is sent as the bound identity */ + siteId: string; + updatedAt?: string; +} /** An input for mutations affecting `EmbeddingChunk` */ export interface EmbeddingChunkInput { chunkOverlap?: number; @@ -14259,6 +15246,24 @@ export interface PartitionInput { tableId: string; updatedAt?: string; } +/** An input for mutations affecting `PlatformApi` */ +export interface PlatformApiInput { + /** Anonymous role the API executes as */ + anonRole?: string; + /** Module-specific configuration for this API surface */ + config?: Record; + createdAt?: string; + /** Database this API surface serves */ + dbname?: string; + id?: string; + /** Whether other scopes may see and route to this API surface */ + isPublished?: boolean; + /** Owner-local API surface name */ + name: string; + /** Authenticated role the API executes as */ + roleName?: string; + updatedAt?: string; +} /** An input for mutations affecting `PlatformApiSchema` */ export interface PlatformApiSchemaInput { /** API surface that exposes this schema */ @@ -14305,24 +15310,6 @@ export interface PlatformApiSettingInput { statementTimeoutMs?: string; updatedAt?: string; } -/** An input for mutations affecting `PlatformApis` */ -export interface PlatformApisInput { - /** Anonymous role the API executes as */ - anonRole?: string; - /** Module-specific configuration for this API surface */ - config?: Record; - createdAt?: string; - /** Database this API surface serves */ - dbname?: string; - id?: string; - /** Whether other scopes may see and route to this API surface */ - isPublished?: boolean; - /** Owner-local API surface name */ - name: string; - /** Authenticated role the API executes as */ - roleName?: string; - updatedAt?: string; -} /** An input for mutations affecting `PlatformCorsSetting` */ export interface PlatformCorsSettingInput { /** Array of allowed CORS origins (e.g. https://example.com) */ @@ -14411,6 +15398,70 @@ export interface PlatformDomainVerificationInput { /** When this challenge succeeded */ verifiedAt?: string; } +/** An input for mutations affecting `PlatformEmailIdentity` */ +export interface PlatformEmailIdentityInput { + createdAt?: string; + /** Envelope/header From address, lower-case. Must be accepted by the sending account at the provider. */ + fromAddress: string; + /** Display name shown beside the from address */ + fromName?: string; + id?: string; + /** Whether this identity may be resolved for a send */ + isActive?: boolean; + /** The scope default identity, used when no site binding resolves. At most one per scope key. */ + isDefault?: boolean; + /** Operator-facing name for this identity (e.g. transactional, support) */ + name: string; + /** Same-scope provider account this identity sends through. Required for transport_mode = own, NULL for platform_shared. */ + providerAccountId?: string; + /** Reply-To address when replies should not go to the from address */ + replyToAddress?: string; + /** Support address rendered in message bodies and footers */ + supportAddress?: string; + /** own = send through provider_account_id in this scope; platform_shared = send through the platform installation's shared account, an explicit recorded choice and never an implicit fallback */ + transportMode?: string; + updatedAt?: string; +} +/** An input for mutations affecting `PlatformEmailProviderAccount` */ +export interface PlatformEmailProviderAccountInput { + /** Provider API base URL when it is not the provider default (e.g. Mailgun EU) */ + apiBaseUrl?: string; + createdAt?: string; + /** Name of the secret holding this account's API key or SMTP password. The value is resolved from the secret store at send time (realm = this row's id) and is never stored here. */ + credentialsSecretName: string; + id?: string; + /** Whether identities may send through this account. Disabling one row stops every identity that references it. */ + isActive?: boolean; + /** Operator-facing name for this account (e.g. transactional, marketing) */ + name: string; + /** integration_providers.slug of the provider this account is at (mailgun, ses, postmark, smtp), matched by string not by FK */ + provider: string; + /** Account identifier at the provider — the Mailgun sending domain, the SES verified identity, the Postmark server name */ + providerAccountName?: string; + /** Provider region for region-addressed providers (e.g. SES us-east-1) */ + region?: string; + /** SMTP host (provider = smtp, or a provider addressed over SMTP) */ + smtpHost?: string; + /** SMTP port */ + smtpPort?: number; + /** Whether the SMTP connection uses implicit TLS */ + smtpSecure?: boolean; + /** SMTP username; the password is a secret, addressed by credentials_secret_name */ + smtpUser?: string; + updatedAt?: string; + /** Name of the secret used to verify this provider's delivery/bounce webhooks. Name only; the value stays in the secret store. */ + webhookSigningSecretName?: string; +} +/** An input for mutations affecting `PlatformEmailSiteIdentity` */ +export interface PlatformEmailSiteIdentityInput { + createdAt?: string; + /** Identity this site sends as */ + emailIdentityId: string; + id?: string; + /** Site whose mail is sent as the bound identity */ + siteId: string; + updatedAt?: string; +} /** An input for mutations affecting `PlatformManagedDomain` */ export interface PlatformManagedDomainInput { /** Whether tenants may claim subdomains under this managed hostname */ @@ -15166,7 +16217,7 @@ export interface ApiSchemaFilter { /** Checks for all expressions in this list. */ and?: ApiSchemaFilter[]; /** Filter by the object’s `api` relation. */ - api?: ApisFilter; + api?: ApiFilter; /** Filter by the object’s `apiId` field. */ apiId?: UUIDFilter; /** Filter by the object’s `createdAt` field. */ @@ -15193,7 +16244,7 @@ export interface CorsSettingFilter { /** Checks for all expressions in this list. */ and?: CorsSettingFilter[]; /** Filter by the object’s `api` relation. */ - api?: ApisFilter; + api?: ApiFilter; /** A related `api` exists. */ apiExists?: boolean; /** Filter by the object’s `apiId` field. */ @@ -16847,12 +17898,80 @@ export interface RouteFilter { /** Filter by the object’s `updatedAt` field. */ updatedAt?: DatetimeFilter; } +/** A filter to be used against `EmailSiteIdentity` object types. All fields are combined with a logical ‘and.’ */ +export interface EmailSiteIdentityFilter { + /** Checks for all expressions in this list. */ + and?: EmailSiteIdentityFilter[]; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `emailIdentity` relation. */ + emailIdentity?: EmailIdentityFilter; + /** Filter by the object’s `emailIdentityId` field. */ + emailIdentityId?: UUIDFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Negates the expression. */ + not?: EmailSiteIdentityFilter; + /** Checks for any expressions in this list. */ + or?: EmailSiteIdentityFilter[]; + /** Filter by the object’s `site` relation. */ + site?: SiteFilter; + /** Filter by the object’s `siteId` field. */ + siteId?: UUIDFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; +} +/** A filter to be used against `EmailIdentity` object types. All fields are combined with a logical ‘and.’ */ +export interface EmailIdentityFilter { + /** Checks for all expressions in this list. */ + and?: EmailIdentityFilter[]; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `emailSiteIdentities` relation. */ + emailSiteIdentities?: EmailIdentityToManyEmailSiteIdentityFilter; + /** `emailSiteIdentities` exist. */ + emailSiteIdentitiesExist?: boolean; + /** Filter by the object’s `fromAddress` field. */ + fromAddress?: StringFilter; + /** Filter by the object’s `fromName` field. */ + fromName?: StringFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `isActive` field. */ + isActive?: BooleanFilter; + /** Filter by the object’s `isDefault` field. */ + isDefault?: BooleanFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Negates the expression. */ + not?: EmailIdentityFilter; + /** Checks for any expressions in this list. */ + or?: EmailIdentityFilter[]; + /** Filter by the object’s `providerAccount` relation. */ + providerAccount?: EmailProviderAccountFilter; + /** A related `providerAccount` exists. */ + providerAccountExists?: boolean; + /** Filter by the object’s `providerAccountId` field. */ + providerAccountId?: UUIDFilter; + /** Filter by the object’s `replyToAddress` field. */ + replyToAddress?: StringFilter; + /** Filter by the object’s `supportAddress` field. */ + supportAddress?: StringFilter; + /** Filter by the object’s `transportMode` field. */ + transportMode?: StringFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; +} /** A filter to be used against `PlatformApiSchema` object types. All fields are combined with a logical ‘and.’ */ export interface PlatformApiSchemaFilter { /** Checks for all expressions in this list. */ and?: PlatformApiSchemaFilter[]; /** Filter by the object’s `api` relation. */ - api?: PlatformApisFilter; + api?: PlatformApiFilter; /** Filter by the object’s `apiId` field. */ apiId?: UUIDFilter; /** Filter by the object’s `createdAt` field. */ @@ -16958,22 +18077,86 @@ export interface PlatformDomainVerificationFilter { /** Filter by the object’s `verifiedAt` field. */ verifiedAt?: DatetimeFilter; } -/** A filter to be used against `PlatformPage` object types. All fields are combined with a logical ‘and.’ */ -export interface PlatformPageFilter { +/** A filter to be used against `PlatformEmailSiteIdentity` object types. All fields are combined with a logical ‘and.’ */ +export interface PlatformEmailSiteIdentityFilter { /** Checks for all expressions in this list. */ - and?: PlatformPageFilter[]; - /** Filter by the object’s `commitId` field. */ - commitId?: UUIDFilter; - /** Filter by the object’s `content` field. */ - content?: JSONFilter; + and?: PlatformEmailSiteIdentityFilter[]; /** Filter by the object’s `createdAt` field. */ createdAt?: DatetimeFilter; + /** Filter by the object’s `emailIdentity` relation. */ + emailIdentity?: PlatformEmailIdentityFilter; + /** Filter by the object’s `emailIdentityId` field. */ + emailIdentityId?: UUIDFilter; /** Filter by the object’s `id` field. */ id?: UUIDFilter; /** Negates the expression. */ - not?: PlatformPageFilter; + not?: PlatformEmailSiteIdentityFilter; /** Checks for any expressions in this list. */ - or?: PlatformPageFilter[]; + or?: PlatformEmailSiteIdentityFilter[]; + /** Filter by the object’s `site` relation. */ + site?: PlatformSiteFilter; + /** Filter by the object’s `siteId` field. */ + siteId?: UUIDFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; +} +/** A filter to be used against `PlatformEmailIdentity` object types. All fields are combined with a logical ‘and.’ */ +export interface PlatformEmailIdentityFilter { + /** Checks for all expressions in this list. */ + and?: PlatformEmailIdentityFilter[]; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `fromAddress` field. */ + fromAddress?: StringFilter; + /** Filter by the object’s `fromName` field. */ + fromName?: StringFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `isActive` field. */ + isActive?: BooleanFilter; + /** Filter by the object’s `isDefault` field. */ + isDefault?: BooleanFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Negates the expression. */ + not?: PlatformEmailIdentityFilter; + /** Checks for any expressions in this list. */ + or?: PlatformEmailIdentityFilter[]; + /** Filter by the object’s `platformEmailSiteIdentitiesByEmailIdentityId` relation. */ + platformEmailSiteIdentitiesByEmailIdentityId?: PlatformEmailIdentityToManyPlatformEmailSiteIdentityFilter; + /** `platformEmailSiteIdentitiesByEmailIdentityId` exist. */ + platformEmailSiteIdentitiesByEmailIdentityIdExist?: boolean; + /** Filter by the object’s `providerAccount` relation. */ + providerAccount?: PlatformEmailProviderAccountFilter; + /** A related `providerAccount` exists. */ + providerAccountExists?: boolean; + /** Filter by the object’s `providerAccountId` field. */ + providerAccountId?: UUIDFilter; + /** Filter by the object’s `replyToAddress` field. */ + replyToAddress?: StringFilter; + /** Filter by the object’s `supportAddress` field. */ + supportAddress?: StringFilter; + /** Filter by the object’s `transportMode` field. */ + transportMode?: StringFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; +} +/** A filter to be used against `PlatformPage` object types. All fields are combined with a logical ‘and.’ */ +export interface PlatformPageFilter { + /** Checks for all expressions in this list. */ + and?: PlatformPageFilter[]; + /** Filter by the object’s `commitId` field. */ + commitId?: UUIDFilter; + /** Filter by the object’s `content` field. */ + content?: JSONFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Negates the expression. */ + not?: PlatformPageFilter; + /** Checks for any expressions in this list. */ + or?: PlatformPageFilter[]; /** Filter by the object’s `site` relation. */ site?: PlatformSiteFilter; /** Filter by the object’s `siteId` field. */ @@ -17302,26 +18485,26 @@ export interface SiteThemeFilter { /** Filter by the object’s `updatedAt` field. */ updatedAt?: DatetimeFilter; } -/** A filter to be used against `Apis` object types. All fields are combined with a logical ‘and.’ */ -export interface ApisFilter { +/** A filter to be used against `Api` object types. All fields are combined with a logical ‘and.’ */ +export interface ApiFilter { /** Checks for all expressions in this list. */ - and?: ApisFilter[]; + and?: ApiFilter[]; /** Filter by the object’s `anonRole` field. */ anonRole?: StringFilter; - /** Filter by the object’s `apiSchemasByApiId` relation. */ - apiSchemasByApiId?: ApisToManyApiSchemaFilter; - /** `apiSchemasByApiId` exist. */ - apiSchemasByApiIdExist?: boolean; - /** Filter by the object’s `apiSettingByApiId` relation. */ - apiSettingByApiId?: ApiSettingFilter; - /** A related `apiSettingByApiId` exists. */ - apiSettingByApiIdExists?: boolean; + /** Filter by the object’s `apiSchemas` relation. */ + apiSchemas?: ApiToManyApiSchemaFilter; + /** `apiSchemas` exist. */ + apiSchemasExist?: boolean; + /** Filter by the object’s `apiSetting` relation. */ + apiSetting?: ApiSettingFilter; + /** A related `apiSetting` exists. */ + apiSettingExists?: boolean; /** Filter by the object’s `config` field. */ config?: JSONFilter; - /** Filter by the object’s `corsSettingsByApiId` relation. */ - corsSettingsByApiId?: ApisToManyCorsSettingFilter; - /** `corsSettingsByApiId` exist. */ - corsSettingsByApiIdExist?: boolean; + /** Filter by the object’s `corsSettings` relation. */ + corsSettings?: ApiToManyCorsSettingFilter; + /** `corsSettings` exist. */ + corsSettingsExist?: boolean; /** Filter by the object’s `createdAt` field. */ createdAt?: DatetimeFilter; /** Filter by the object’s `databaseId` field. */ @@ -17335,9 +18518,9 @@ export interface ApisFilter { /** Filter by the object’s `name` field. */ name?: StringFilter; /** Negates the expression. */ - not?: ApisFilter; + not?: ApiFilter; /** Checks for any expressions in this list. */ - or?: ApisFilter[]; + or?: ApiFilter[]; /** Filter by the object’s `roleName` field. */ roleName?: StringFilter; /** Filter by the object’s `updatedAt` field. */ @@ -17917,10 +19100,126 @@ export interface ManagedDomainFilter { /** Filter by the object’s `verifiedAt` field. */ verifiedAt?: DatetimeFilter; } -/** A filter to be used against `PlatformApis` object types. All fields are combined with a logical ‘and.’ */ -export interface PlatformApisFilter { +/** A filter to be used against `Site` object types. All fields are combined with a logical ‘and.’ */ +export interface SiteFilter { + /** Filter by the object’s `activeCommitId` field. */ + activeCommitId?: UUIDFilter; /** Checks for all expressions in this list. */ - and?: PlatformApisFilter[]; + and?: SiteFilter[]; + /** Filter by the object’s `bucketId` field. */ + bucketId?: UUIDFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `description` field. */ + description?: StringFilter; + /** Filter by the object’s `emailSiteIdentity` relation. */ + emailSiteIdentity?: EmailSiteIdentityFilter; + /** A related `emailSiteIdentity` exists. */ + emailSiteIdentityExists?: boolean; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `installationId` field. */ + installationId?: UUIDFilter; + /** Filter by the object’s `installationMemberSlug` field. */ + installationMemberSlug?: StringFilter; + /** Filter by the object’s `isPublished` field. */ + isPublished?: BooleanFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Negates the expression. */ + not?: SiteFilter; + /** Checks for any expressions in this list. */ + or?: SiteFilter[]; + /** Filter by the object’s `pages` relation. */ + pages?: SiteToManyPageFilter; + /** `pages` exist. */ + pagesExist?: boolean; + /** Filter by the object’s `resourceId` field. */ + resourceId?: UUIDFilter; + /** Filter by the object’s `siteAppLinks` relation. */ + siteAppLinks?: SiteToManySiteAppLinkFilter; + /** `siteAppLinks` exist. */ + siteAppLinksExist?: boolean; + /** Filter by the object’s `siteDeepLinks` relation. */ + siteDeepLinks?: SiteToManySiteDeepLinkFilter; + /** `siteDeepLinks` exist. */ + siteDeepLinksExist?: boolean; + /** Filter by the object’s `siteErrorPages` relation. */ + siteErrorPages?: SiteToManySiteErrorPageFilter; + /** `siteErrorPages` exist. */ + siteErrorPagesExist?: boolean; + /** Filter by the object’s `siteMetadatum` relation. */ + siteMetadatum?: SiteMetadatumFilter; + /** A related `siteMetadatum` exists. */ + siteMetadatumExists?: boolean; + /** Filter by the object’s `siteModules` relation. */ + siteModules?: SiteToManySiteModuleFilter; + /** `siteModules` exist. */ + siteModulesExist?: boolean; + /** Filter by the object’s `siteThemes` relation. */ + siteThemes?: SiteToManySiteThemeFilter; + /** `siteThemes` exist. */ + siteThemesExist?: boolean; + /** Filter by the object’s `siteWebConfig` relation. */ + siteWebConfig?: SiteWebConfigFilter; + /** A related `siteWebConfig` exists. */ + siteWebConfigExists?: boolean; + /** Filter by the object’s `title` field. */ + title?: StringFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; +} +/** A filter to be used against `EmailProviderAccount` object types. All fields are combined with a logical ‘and.’ */ +export interface EmailProviderAccountFilter { + /** Checks for all expressions in this list. */ + and?: EmailProviderAccountFilter[]; + /** Filter by the object’s `apiBaseUrl` field. */ + apiBaseUrl?: StringFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `credentialsSecretName` field. */ + credentialsSecretName?: StringFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `emailIdentitiesByProviderAccountId` relation. */ + emailIdentitiesByProviderAccountId?: EmailProviderAccountToManyEmailIdentityFilter; + /** `emailIdentitiesByProviderAccountId` exist. */ + emailIdentitiesByProviderAccountIdExist?: boolean; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `isActive` field. */ + isActive?: BooleanFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Negates the expression. */ + not?: EmailProviderAccountFilter; + /** Checks for any expressions in this list. */ + or?: EmailProviderAccountFilter[]; + /** Filter by the object’s `provider` field. */ + provider?: StringFilter; + /** Filter by the object’s `providerAccountName` field. */ + providerAccountName?: StringFilter; + /** Filter by the object’s `region` field. */ + region?: StringFilter; + /** Filter by the object’s `smtpHost` field. */ + smtpHost?: StringFilter; + /** Filter by the object’s `smtpPort` field. */ + smtpPort?: IntFilter; + /** Filter by the object’s `smtpSecure` field. */ + smtpSecure?: BooleanFilter; + /** Filter by the object’s `smtpUser` field. */ + smtpUser?: StringFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `webhookSigningSecretName` field. */ + webhookSigningSecretName?: StringFilter; +} +/** A filter to be used against `PlatformApi` object types. All fields are combined with a logical ‘and.’ */ +export interface PlatformApiFilter { + /** Checks for all expressions in this list. */ + and?: PlatformApiFilter[]; /** Filter by the object’s `anonRole` field. */ anonRole?: StringFilter; /** Filter by the object’s `config` field. */ @@ -17936,11 +19235,11 @@ export interface PlatformApisFilter { /** Filter by the object’s `name` field. */ name?: StringFilter; /** Negates the expression. */ - not?: PlatformApisFilter; + not?: PlatformApiFilter; /** Checks for any expressions in this list. */ - or?: PlatformApisFilter[]; + or?: PlatformApiFilter[]; /** Filter by the object’s `platformApiSchemasByApiId` relation. */ - platformApiSchemasByApiId?: PlatformApisToManyPlatformApiSchemaFilter; + platformApiSchemasByApiId?: PlatformApiToManyPlatformApiSchemaFilter; /** `platformApiSchemasByApiId` exist. */ platformApiSchemasByApiIdExist?: boolean; /** Filter by the object’s `platformApiSettingByApiId` relation. */ @@ -18068,6 +19367,10 @@ export interface PlatformSiteFilter { not?: PlatformSiteFilter; /** Checks for any expressions in this list. */ or?: PlatformSiteFilter[]; + /** Filter by the object’s `platformEmailSiteIdentityBySiteId` relation. */ + platformEmailSiteIdentityBySiteId?: PlatformEmailSiteIdentityFilter; + /** A related `platformEmailSiteIdentityBySiteId` exists. */ + platformEmailSiteIdentityBySiteIdExists?: boolean; /** Filter by the object’s `platformPagesBySiteId` relation. */ platformPagesBySiteId?: PlatformSiteToManyPlatformPageFilter; /** `platformPagesBySiteId` exist. */ @@ -18107,79 +19410,55 @@ export interface PlatformSiteFilter { /** Filter by the object’s `updatedAt` field. */ updatedAt?: DatetimeFilter; } -/** A filter to be used against `Site` object types. All fields are combined with a logical ‘and.’ */ -export interface SiteFilter { - /** Filter by the object’s `activeCommitId` field. */ - activeCommitId?: UUIDFilter; +/** A filter to be used against `PlatformEmailProviderAccount` object types. All fields are combined with a logical ‘and.’ */ +export interface PlatformEmailProviderAccountFilter { /** Checks for all expressions in this list. */ - and?: SiteFilter[]; - /** Filter by the object’s `bucketId` field. */ - bucketId?: UUIDFilter; + and?: PlatformEmailProviderAccountFilter[]; + /** Filter by the object’s `apiBaseUrl` field. */ + apiBaseUrl?: StringFilter; /** Filter by the object’s `createdAt` field. */ createdAt?: DatetimeFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Filter by the object’s `description` field. */ - description?: StringFilter; + /** Filter by the object’s `credentialsSecretName` field. */ + credentialsSecretName?: StringFilter; /** Filter by the object’s `id` field. */ id?: UUIDFilter; - /** Filter by the object’s `installationId` field. */ - installationId?: UUIDFilter; - /** Filter by the object’s `installationMemberSlug` field. */ - installationMemberSlug?: StringFilter; - /** Filter by the object’s `isPublished` field. */ - isPublished?: BooleanFilter; + /** Filter by the object’s `isActive` field. */ + isActive?: BooleanFilter; /** Filter by the object’s `name` field. */ name?: StringFilter; /** Negates the expression. */ - not?: SiteFilter; + not?: PlatformEmailProviderAccountFilter; /** Checks for any expressions in this list. */ - or?: SiteFilter[]; - /** Filter by the object’s `pages` relation. */ - pages?: SiteToManyPageFilter; - /** `pages` exist. */ - pagesExist?: boolean; - /** Filter by the object’s `resourceId` field. */ - resourceId?: UUIDFilter; - /** Filter by the object’s `siteAppLinks` relation. */ - siteAppLinks?: SiteToManySiteAppLinkFilter; - /** `siteAppLinks` exist. */ - siteAppLinksExist?: boolean; - /** Filter by the object’s `siteDeepLinks` relation. */ - siteDeepLinks?: SiteToManySiteDeepLinkFilter; - /** `siteDeepLinks` exist. */ - siteDeepLinksExist?: boolean; - /** Filter by the object’s `siteErrorPages` relation. */ - siteErrorPages?: SiteToManySiteErrorPageFilter; - /** `siteErrorPages` exist. */ - siteErrorPagesExist?: boolean; - /** Filter by the object’s `siteMetadatum` relation. */ - siteMetadatum?: SiteMetadatumFilter; - /** A related `siteMetadatum` exists. */ - siteMetadatumExists?: boolean; - /** Filter by the object’s `siteModules` relation. */ - siteModules?: SiteToManySiteModuleFilter; - /** `siteModules` exist. */ - siteModulesExist?: boolean; - /** Filter by the object’s `siteThemes` relation. */ - siteThemes?: SiteToManySiteThemeFilter; - /** `siteThemes` exist. */ - siteThemesExist?: boolean; - /** Filter by the object’s `siteWebConfig` relation. */ - siteWebConfig?: SiteWebConfigFilter; - /** A related `siteWebConfig` exists. */ - siteWebConfigExists?: boolean; - /** Filter by the object’s `title` field. */ - title?: StringFilter; + or?: PlatformEmailProviderAccountFilter[]; + /** Filter by the object’s `platformEmailIdentitiesByProviderAccountId` relation. */ + platformEmailIdentitiesByProviderAccountId?: PlatformEmailProviderAccountToManyPlatformEmailIdentityFilter; + /** `platformEmailIdentitiesByProviderAccountId` exist. */ + platformEmailIdentitiesByProviderAccountIdExist?: boolean; + /** Filter by the object’s `provider` field. */ + provider?: StringFilter; + /** Filter by the object’s `providerAccountName` field. */ + providerAccountName?: StringFilter; + /** Filter by the object’s `region` field. */ + region?: StringFilter; + /** Filter by the object’s `smtpHost` field. */ + smtpHost?: StringFilter; + /** Filter by the object’s `smtpPort` field. */ + smtpPort?: IntFilter; + /** Filter by the object’s `smtpSecure` field. */ + smtpSecure?: BooleanFilter; + /** Filter by the object’s `smtpUser` field. */ + smtpUser?: StringFilter; /** Filter by the object’s `updatedAt` field. */ updatedAt?: DatetimeFilter; + /** Filter by the object’s `webhookSigningSecretName` field. */ + webhookSigningSecretName?: StringFilter; } /** A filter to be used against `ApiSetting` object types. All fields are combined with a logical ‘and.’ */ export interface ApiSettingFilter { /** Checks for all expressions in this list. */ and?: ApiSettingFilter[]; /** Filter by the object’s `api` relation. */ - api?: ApisFilter; + api?: ApiFilter; /** Filter by the object’s `apiId` field. */ apiId?: UUIDFilter; /** Filter by the object’s `createdAt` field. */ @@ -18223,12 +19502,82 @@ export interface ApiSettingFilter { /** Filter by the object’s `updatedAt` field. */ updatedAt?: DatetimeFilter; } +/** A filter to be used against `SiteMetadatum` object types. All fields are combined with a logical ‘and.’ */ +export interface SiteMetadatumFilter { + /** Checks for all expressions in this list. */ + and?: SiteMetadatumFilter[]; + /** Filter by the object’s `appleTouchIcon` field. */ + appleTouchIcon?: ConstructiveInternalTypeImageFilter; + /** Filter by the object’s `canonicalUrl` field. */ + canonicalUrl?: StringFilter; + /** Filter by the object’s `commitId` field. */ + commitId?: UUIDFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `description` field. */ + description?: StringFilter; + /** Filter by the object’s `favicon` field. */ + favicon?: ConstructiveInternalTypeImageFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `logo` field. */ + logo?: ConstructiveInternalTypeImageFilter; + /** Negates the expression. */ + not?: SiteMetadatumFilter; + /** Filter by the object’s `ogImage` field. */ + ogImage?: ConstructiveInternalTypeImageFilter; + /** Checks for any expressions in this list. */ + or?: SiteMetadatumFilter[]; + /** Filter by the object’s `robots` field. */ + robots?: StringFilter; + /** Filter by the object’s `site` relation. */ + site?: SiteFilter; + /** Filter by the object’s `siteId` field. */ + siteId?: UUIDFilter; + /** Filter by the object’s `storeId` field. */ + storeId?: UUIDFilter; + /** Filter by the object’s `title` field. */ + title?: StringFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; +} +/** A filter to be used against `SiteWebConfig` object types. All fields are combined with a logical ‘and.’ */ +export interface SiteWebConfigFilter { + /** Checks for all expressions in this list. */ + and?: SiteWebConfigFilter[]; + /** Filter by the object’s `cleanUrls` field. */ + cleanUrls?: BooleanFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `indexDocument` field. */ + indexDocument?: StringFilter; + /** Filter by the object’s `metadata` field. */ + metadata?: JSONFilter; + /** Negates the expression. */ + not?: SiteWebConfigFilter; + /** Checks for any expressions in this list. */ + or?: SiteWebConfigFilter[]; + /** Filter by the object’s `site` relation. */ + site?: SiteFilter; + /** Filter by the object’s `siteId` field. */ + siteId?: UUIDFilter; + /** Filter by the object’s `spaFallback` field. */ + spaFallback?: BooleanFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; +} /** A filter to be used against `PlatformApiSetting` object types. All fields are combined with a logical ‘and.’ */ export interface PlatformApiSettingFilter { /** Checks for all expressions in this list. */ and?: PlatformApiSettingFilter[]; /** Filter by the object’s `api` relation. */ - api?: PlatformApisFilter; + api?: PlatformApiFilter; /** Filter by the object’s `apiId` field. */ apiId?: UUIDFilter; /** Filter by the object’s `createdAt` field. */ @@ -18277,7 +19626,7 @@ export interface PlatformCorsSettingFilter { /** Checks for all expressions in this list. */ and?: PlatformCorsSettingFilter[]; /** Filter by the object’s `api` relation. */ - api?: PlatformApisFilter; + api?: PlatformApiFilter; /** A related `api` exists. */ apiExists?: boolean; /** Filter by the object’s `apiId` field. */ @@ -18331,85 +19680,15 @@ export interface PlatformSiteMetadatumFilter { title?: StringFilter; /** Filter by the object’s `updatedAt` field. */ updatedAt?: DatetimeFilter; -} -/** A filter to be used against `PlatformSiteWebConfig` object types. All fields are combined with a logical ‘and.’ */ -export interface PlatformSiteWebConfigFilter { - /** Checks for all expressions in this list. */ - and?: PlatformSiteWebConfigFilter[]; - /** Filter by the object’s `cleanUrls` field. */ - cleanUrls?: BooleanFilter; - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `indexDocument` field. */ - indexDocument?: StringFilter; - /** Filter by the object’s `metadata` field. */ - metadata?: JSONFilter; - /** Negates the expression. */ - not?: PlatformSiteWebConfigFilter; - /** Checks for any expressions in this list. */ - or?: PlatformSiteWebConfigFilter[]; - /** Filter by the object’s `site` relation. */ - site?: PlatformSiteFilter; - /** Filter by the object’s `siteId` field. */ - siteId?: UUIDFilter; - /** Filter by the object’s `spaFallback` field. */ - spaFallback?: BooleanFilter; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; -} -/** A filter to be used against `SiteMetadatum` object types. All fields are combined with a logical ‘and.’ */ -export interface SiteMetadatumFilter { - /** Checks for all expressions in this list. */ - and?: SiteMetadatumFilter[]; - /** Filter by the object’s `appleTouchIcon` field. */ - appleTouchIcon?: ConstructiveInternalTypeImageFilter; - /** Filter by the object’s `canonicalUrl` field. */ - canonicalUrl?: StringFilter; - /** Filter by the object’s `commitId` field. */ - commitId?: UUIDFilter; - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Filter by the object’s `description` field. */ - description?: StringFilter; - /** Filter by the object’s `favicon` field. */ - favicon?: ConstructiveInternalTypeImageFilter; - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `logo` field. */ - logo?: ConstructiveInternalTypeImageFilter; - /** Negates the expression. */ - not?: SiteMetadatumFilter; - /** Filter by the object’s `ogImage` field. */ - ogImage?: ConstructiveInternalTypeImageFilter; - /** Checks for any expressions in this list. */ - or?: SiteMetadatumFilter[]; - /** Filter by the object’s `robots` field. */ - robots?: StringFilter; - /** Filter by the object’s `site` relation. */ - site?: SiteFilter; - /** Filter by the object’s `siteId` field. */ - siteId?: UUIDFilter; - /** Filter by the object’s `storeId` field. */ - storeId?: UUIDFilter; - /** Filter by the object’s `title` field. */ - title?: StringFilter; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; -} -/** A filter to be used against `SiteWebConfig` object types. All fields are combined with a logical ‘and.’ */ -export interface SiteWebConfigFilter { +} +/** A filter to be used against `PlatformSiteWebConfig` object types. All fields are combined with a logical ‘and.’ */ +export interface PlatformSiteWebConfigFilter { /** Checks for all expressions in this list. */ - and?: SiteWebConfigFilter[]; + and?: PlatformSiteWebConfigFilter[]; /** Filter by the object’s `cleanUrls` field. */ cleanUrls?: BooleanFilter; /** Filter by the object’s `createdAt` field. */ createdAt?: DatetimeFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; /** Filter by the object’s `id` field. */ id?: UUIDFilter; /** Filter by the object’s `indexDocument` field. */ @@ -18417,11 +19696,11 @@ export interface SiteWebConfigFilter { /** Filter by the object’s `metadata` field. */ metadata?: JSONFilter; /** Negates the expression. */ - not?: SiteWebConfigFilter; + not?: PlatformSiteWebConfigFilter; /** Checks for any expressions in this list. */ - or?: SiteWebConfigFilter[]; + or?: PlatformSiteWebConfigFilter[]; /** Filter by the object’s `site` relation. */ - site?: SiteFilter; + site?: PlatformSiteFilter; /** Filter by the object’s `siteId` field. */ siteId?: UUIDFilter; /** Filter by the object’s `spaFallback` field. */ @@ -18627,6 +19906,51 @@ export type SitesProvisionStaticSitePayloadSelect = { select: PlatformRouteSelect; }; }; +export interface CreateApiPayload { + /** The `Api` that was created by this mutation. */ + api?: Api | null; + apiEdge?: ApiEdge | null; + clientMutationId?: string | null; +} +export type CreateApiPayloadSelect = { + api?: { + select: ApiSelect; + }; + apiEdge?: { + select: ApiEdgeSelect; + }; + clientMutationId?: boolean; +}; +export interface UpdateApiPayload { + /** The `Api` that was updated by this mutation. */ + api?: Api | null; + apiEdge?: ApiEdge | null; + clientMutationId?: string | null; +} +export type UpdateApiPayloadSelect = { + api?: { + select: ApiSelect; + }; + apiEdge?: { + select: ApiEdgeSelect; + }; + clientMutationId?: boolean; +}; +export interface DeleteApiPayload { + /** The `Api` that was deleted by this mutation. */ + api?: Api | null; + apiEdge?: ApiEdge | null; + clientMutationId?: string | null; +} +export type DeleteApiPayloadSelect = { + api?: { + select: ApiSelect; + }; + apiEdge?: { + select: ApiEdgeSelect; + }; + clientMutationId?: boolean; +}; export interface CreateApiSchemaPayload { /** The `ApiSchema` that was created by this mutation. */ apiSchema?: ApiSchema | null; @@ -18717,51 +20041,6 @@ export type DeleteApiSettingPayloadSelect = { }; clientMutationId?: boolean; }; -export interface CreateApisPayload { - /** The `Apis` that was created by this mutation. */ - apis?: Apis | null; - apisEdge?: ApisEdge | null; - clientMutationId?: string | null; -} -export type CreateApisPayloadSelect = { - apis?: { - select: ApisSelect; - }; - apisEdge?: { - select: ApisEdgeSelect; - }; - clientMutationId?: boolean; -}; -export interface UpdateApisPayload { - /** The `Apis` that was updated by this mutation. */ - apis?: Apis | null; - apisEdge?: ApisEdge | null; - clientMutationId?: string | null; -} -export type UpdateApisPayloadSelect = { - apis?: { - select: ApisSelect; - }; - apisEdge?: { - select: ApisEdgeSelect; - }; - clientMutationId?: boolean; -}; -export interface DeleteApisPayload { - /** The `Apis` that was deleted by this mutation. */ - apis?: Apis | null; - apisEdge?: ApisEdge | null; - clientMutationId?: string | null; -} -export type DeleteApisPayloadSelect = { - apis?: { - select: ApisSelect; - }; - apisEdge?: { - select: ApisEdgeSelect; - }; - clientMutationId?: boolean; -}; export interface CreateCheckConstraintPayload { /** The `CheckConstraint` that was created by this mutation. */ checkConstraint?: CheckConstraint | null; @@ -19302,6 +20581,141 @@ export type DeleteDomainVerificationPayloadSelect = { select: DomainVerificationEdgeSelect; }; }; +export interface CreateEmailIdentityPayload { + clientMutationId?: string | null; + /** The `EmailIdentity` that was created by this mutation. */ + emailIdentity?: EmailIdentity | null; + emailIdentityEdge?: EmailIdentityEdge | null; +} +export type CreateEmailIdentityPayloadSelect = { + clientMutationId?: boolean; + emailIdentity?: { + select: EmailIdentitySelect; + }; + emailIdentityEdge?: { + select: EmailIdentityEdgeSelect; + }; +}; +export interface UpdateEmailIdentityPayload { + clientMutationId?: string | null; + /** The `EmailIdentity` that was updated by this mutation. */ + emailIdentity?: EmailIdentity | null; + emailIdentityEdge?: EmailIdentityEdge | null; +} +export type UpdateEmailIdentityPayloadSelect = { + clientMutationId?: boolean; + emailIdentity?: { + select: EmailIdentitySelect; + }; + emailIdentityEdge?: { + select: EmailIdentityEdgeSelect; + }; +}; +export interface DeleteEmailIdentityPayload { + clientMutationId?: string | null; + /** The `EmailIdentity` that was deleted by this mutation. */ + emailIdentity?: EmailIdentity | null; + emailIdentityEdge?: EmailIdentityEdge | null; +} +export type DeleteEmailIdentityPayloadSelect = { + clientMutationId?: boolean; + emailIdentity?: { + select: EmailIdentitySelect; + }; + emailIdentityEdge?: { + select: EmailIdentityEdgeSelect; + }; +}; +export interface CreateEmailProviderAccountPayload { + clientMutationId?: string | null; + /** The `EmailProviderAccount` that was created by this mutation. */ + emailProviderAccount?: EmailProviderAccount | null; + emailProviderAccountEdge?: EmailProviderAccountEdge | null; +} +export type CreateEmailProviderAccountPayloadSelect = { + clientMutationId?: boolean; + emailProviderAccount?: { + select: EmailProviderAccountSelect; + }; + emailProviderAccountEdge?: { + select: EmailProviderAccountEdgeSelect; + }; +}; +export interface UpdateEmailProviderAccountPayload { + clientMutationId?: string | null; + /** The `EmailProviderAccount` that was updated by this mutation. */ + emailProviderAccount?: EmailProviderAccount | null; + emailProviderAccountEdge?: EmailProviderAccountEdge | null; +} +export type UpdateEmailProviderAccountPayloadSelect = { + clientMutationId?: boolean; + emailProviderAccount?: { + select: EmailProviderAccountSelect; + }; + emailProviderAccountEdge?: { + select: EmailProviderAccountEdgeSelect; + }; +}; +export interface DeleteEmailProviderAccountPayload { + clientMutationId?: string | null; + /** The `EmailProviderAccount` that was deleted by this mutation. */ + emailProviderAccount?: EmailProviderAccount | null; + emailProviderAccountEdge?: EmailProviderAccountEdge | null; +} +export type DeleteEmailProviderAccountPayloadSelect = { + clientMutationId?: boolean; + emailProviderAccount?: { + select: EmailProviderAccountSelect; + }; + emailProviderAccountEdge?: { + select: EmailProviderAccountEdgeSelect; + }; +}; +export interface CreateEmailSiteIdentityPayload { + clientMutationId?: string | null; + /** The `EmailSiteIdentity` that was created by this mutation. */ + emailSiteIdentity?: EmailSiteIdentity | null; + emailSiteIdentityEdge?: EmailSiteIdentityEdge | null; +} +export type CreateEmailSiteIdentityPayloadSelect = { + clientMutationId?: boolean; + emailSiteIdentity?: { + select: EmailSiteIdentitySelect; + }; + emailSiteIdentityEdge?: { + select: EmailSiteIdentityEdgeSelect; + }; +}; +export interface UpdateEmailSiteIdentityPayload { + clientMutationId?: string | null; + /** The `EmailSiteIdentity` that was updated by this mutation. */ + emailSiteIdentity?: EmailSiteIdentity | null; + emailSiteIdentityEdge?: EmailSiteIdentityEdge | null; +} +export type UpdateEmailSiteIdentityPayloadSelect = { + clientMutationId?: boolean; + emailSiteIdentity?: { + select: EmailSiteIdentitySelect; + }; + emailSiteIdentityEdge?: { + select: EmailSiteIdentityEdgeSelect; + }; +}; +export interface DeleteEmailSiteIdentityPayload { + clientMutationId?: string | null; + /** The `EmailSiteIdentity` that was deleted by this mutation. */ + emailSiteIdentity?: EmailSiteIdentity | null; + emailSiteIdentityEdge?: EmailSiteIdentityEdge | null; +} +export type DeleteEmailSiteIdentityPayloadSelect = { + clientMutationId?: boolean; + emailSiteIdentity?: { + select: EmailSiteIdentitySelect; + }; + emailSiteIdentityEdge?: { + select: EmailSiteIdentityEdgeSelect; + }; +}; export interface CreateEmbeddingChunkPayload { clientMutationId?: string | null; /** The `EmbeddingChunk` that was created by this mutation. */ @@ -20022,6 +21436,51 @@ export type DeletePartitionPayloadSelect = { select: PartitionEdgeSelect; }; }; +export interface CreatePlatformApiPayload { + clientMutationId?: string | null; + /** The `PlatformApi` that was created by this mutation. */ + platformApi?: PlatformApi | null; + platformApiEdge?: PlatformApiEdge | null; +} +export type CreatePlatformApiPayloadSelect = { + clientMutationId?: boolean; + platformApi?: { + select: PlatformApiSelect; + }; + platformApiEdge?: { + select: PlatformApiEdgeSelect; + }; +}; +export interface UpdatePlatformApiPayload { + clientMutationId?: string | null; + /** The `PlatformApi` that was updated by this mutation. */ + platformApi?: PlatformApi | null; + platformApiEdge?: PlatformApiEdge | null; +} +export type UpdatePlatformApiPayloadSelect = { + clientMutationId?: boolean; + platformApi?: { + select: PlatformApiSelect; + }; + platformApiEdge?: { + select: PlatformApiEdgeSelect; + }; +}; +export interface DeletePlatformApiPayload { + clientMutationId?: string | null; + /** The `PlatformApi` that was deleted by this mutation. */ + platformApi?: PlatformApi | null; + platformApiEdge?: PlatformApiEdge | null; +} +export type DeletePlatformApiPayloadSelect = { + clientMutationId?: boolean; + platformApi?: { + select: PlatformApiSelect; + }; + platformApiEdge?: { + select: PlatformApiEdgeSelect; + }; +}; export interface CreatePlatformApiSchemaPayload { clientMutationId?: string | null; /** The `PlatformApiSchema` that was created by this mutation. */ @@ -20112,51 +21571,6 @@ export type DeletePlatformApiSettingPayloadSelect = { select: PlatformApiSettingEdgeSelect; }; }; -export interface CreatePlatformApisPayload { - clientMutationId?: string | null; - /** The `PlatformApis` that was created by this mutation. */ - platformApis?: PlatformApis | null; - platformApisEdge?: PlatformApisEdge | null; -} -export type CreatePlatformApisPayloadSelect = { - clientMutationId?: boolean; - platformApis?: { - select: PlatformApisSelect; - }; - platformApisEdge?: { - select: PlatformApisEdgeSelect; - }; -}; -export interface UpdatePlatformApisPayload { - clientMutationId?: string | null; - /** The `PlatformApis` that was updated by this mutation. */ - platformApis?: PlatformApis | null; - platformApisEdge?: PlatformApisEdge | null; -} -export type UpdatePlatformApisPayloadSelect = { - clientMutationId?: boolean; - platformApis?: { - select: PlatformApisSelect; - }; - platformApisEdge?: { - select: PlatformApisEdgeSelect; - }; -}; -export interface DeletePlatformApisPayload { - clientMutationId?: string | null; - /** The `PlatformApis` that was deleted by this mutation. */ - platformApis?: PlatformApis | null; - platformApisEdge?: PlatformApisEdge | null; -} -export type DeletePlatformApisPayloadSelect = { - clientMutationId?: boolean; - platformApis?: { - select: PlatformApisSelect; - }; - platformApisEdge?: { - select: PlatformApisEdgeSelect; - }; -}; export interface CreatePlatformCorsSettingPayload { clientMutationId?: string | null; /** The `PlatformCorsSetting` that was created by this mutation. */ @@ -20337,6 +21751,141 @@ export type DeletePlatformDomainVerificationPayloadSelect = { select: PlatformDomainVerificationEdgeSelect; }; }; +export interface CreatePlatformEmailIdentityPayload { + clientMutationId?: string | null; + /** The `PlatformEmailIdentity` that was created by this mutation. */ + platformEmailIdentity?: PlatformEmailIdentity | null; + platformEmailIdentityEdge?: PlatformEmailIdentityEdge | null; +} +export type CreatePlatformEmailIdentityPayloadSelect = { + clientMutationId?: boolean; + platformEmailIdentity?: { + select: PlatformEmailIdentitySelect; + }; + platformEmailIdentityEdge?: { + select: PlatformEmailIdentityEdgeSelect; + }; +}; +export interface UpdatePlatformEmailIdentityPayload { + clientMutationId?: string | null; + /** The `PlatformEmailIdentity` that was updated by this mutation. */ + platformEmailIdentity?: PlatformEmailIdentity | null; + platformEmailIdentityEdge?: PlatformEmailIdentityEdge | null; +} +export type UpdatePlatformEmailIdentityPayloadSelect = { + clientMutationId?: boolean; + platformEmailIdentity?: { + select: PlatformEmailIdentitySelect; + }; + platformEmailIdentityEdge?: { + select: PlatformEmailIdentityEdgeSelect; + }; +}; +export interface DeletePlatformEmailIdentityPayload { + clientMutationId?: string | null; + /** The `PlatformEmailIdentity` that was deleted by this mutation. */ + platformEmailIdentity?: PlatformEmailIdentity | null; + platformEmailIdentityEdge?: PlatformEmailIdentityEdge | null; +} +export type DeletePlatformEmailIdentityPayloadSelect = { + clientMutationId?: boolean; + platformEmailIdentity?: { + select: PlatformEmailIdentitySelect; + }; + platformEmailIdentityEdge?: { + select: PlatformEmailIdentityEdgeSelect; + }; +}; +export interface CreatePlatformEmailProviderAccountPayload { + clientMutationId?: string | null; + /** The `PlatformEmailProviderAccount` that was created by this mutation. */ + platformEmailProviderAccount?: PlatformEmailProviderAccount | null; + platformEmailProviderAccountEdge?: PlatformEmailProviderAccountEdge | null; +} +export type CreatePlatformEmailProviderAccountPayloadSelect = { + clientMutationId?: boolean; + platformEmailProviderAccount?: { + select: PlatformEmailProviderAccountSelect; + }; + platformEmailProviderAccountEdge?: { + select: PlatformEmailProviderAccountEdgeSelect; + }; +}; +export interface UpdatePlatformEmailProviderAccountPayload { + clientMutationId?: string | null; + /** The `PlatformEmailProviderAccount` that was updated by this mutation. */ + platformEmailProviderAccount?: PlatformEmailProviderAccount | null; + platformEmailProviderAccountEdge?: PlatformEmailProviderAccountEdge | null; +} +export type UpdatePlatformEmailProviderAccountPayloadSelect = { + clientMutationId?: boolean; + platformEmailProviderAccount?: { + select: PlatformEmailProviderAccountSelect; + }; + platformEmailProviderAccountEdge?: { + select: PlatformEmailProviderAccountEdgeSelect; + }; +}; +export interface DeletePlatformEmailProviderAccountPayload { + clientMutationId?: string | null; + /** The `PlatformEmailProviderAccount` that was deleted by this mutation. */ + platformEmailProviderAccount?: PlatformEmailProviderAccount | null; + platformEmailProviderAccountEdge?: PlatformEmailProviderAccountEdge | null; +} +export type DeletePlatformEmailProviderAccountPayloadSelect = { + clientMutationId?: boolean; + platformEmailProviderAccount?: { + select: PlatformEmailProviderAccountSelect; + }; + platformEmailProviderAccountEdge?: { + select: PlatformEmailProviderAccountEdgeSelect; + }; +}; +export interface CreatePlatformEmailSiteIdentityPayload { + clientMutationId?: string | null; + /** The `PlatformEmailSiteIdentity` that was created by this mutation. */ + platformEmailSiteIdentity?: PlatformEmailSiteIdentity | null; + platformEmailSiteIdentityEdge?: PlatformEmailSiteIdentityEdge | null; +} +export type CreatePlatformEmailSiteIdentityPayloadSelect = { + clientMutationId?: boolean; + platformEmailSiteIdentity?: { + select: PlatformEmailSiteIdentitySelect; + }; + platformEmailSiteIdentityEdge?: { + select: PlatformEmailSiteIdentityEdgeSelect; + }; +}; +export interface UpdatePlatformEmailSiteIdentityPayload { + clientMutationId?: string | null; + /** The `PlatformEmailSiteIdentity` that was updated by this mutation. */ + platformEmailSiteIdentity?: PlatformEmailSiteIdentity | null; + platformEmailSiteIdentityEdge?: PlatformEmailSiteIdentityEdge | null; +} +export type UpdatePlatformEmailSiteIdentityPayloadSelect = { + clientMutationId?: boolean; + platformEmailSiteIdentity?: { + select: PlatformEmailSiteIdentitySelect; + }; + platformEmailSiteIdentityEdge?: { + select: PlatformEmailSiteIdentityEdgeSelect; + }; +}; +export interface DeletePlatformEmailSiteIdentityPayload { + clientMutationId?: string | null; + /** The `PlatformEmailSiteIdentity` that was deleted by this mutation. */ + platformEmailSiteIdentity?: PlatformEmailSiteIdentity | null; + platformEmailSiteIdentityEdge?: PlatformEmailSiteIdentityEdge | null; +} +export type DeletePlatformEmailSiteIdentityPayloadSelect = { + clientMutationId?: boolean; + platformEmailSiteIdentity?: { + select: PlatformEmailSiteIdentitySelect; + }; + platformEmailSiteIdentityEdge?: { + select: PlatformEmailSiteIdentityEdgeSelect; + }; +}; export interface CreatePlatformManagedDomainPayload { clientMutationId?: string | null; /** The `PlatformManagedDomain` that was created by this mutation. */ @@ -22227,7 +23776,7 @@ export interface DatabaseProvisionModule { /** Uniform billing anchor: when the request was fulfilled with a usable database (cold provision completion or warm pool claim). Platform absorbs all provisioning compute before this point */ fulfilledAt?: string | null; id: string; - /** JSONB array of modules to install. Each element is either a string ("users_module") or a [name, options] tuple (["permissions_module", {"scope": "app"}]) */ + /** JSONB array of modules to install. Each element is either a string ("users_module") or a [name, options] tuple (["capabilities_module", {"scope": "app"}]) */ modules: Record; /** Additional configuration options for provisioning */ options: Record; @@ -22262,6 +23811,18 @@ export type DatabaseProvisionModuleSelect = { subdomain?: boolean; updatedAt?: boolean; }; +/** A `Api` edge in the connection. */ +export interface ApiEdge { + cursor?: string | null; + /** The `Api` at the end of the edge. */ + node?: Api | null; +} +export type ApiEdgeSelect = { + cursor?: boolean; + node?: { + select: ApiSelect; + }; +}; /** A `ApiSchema` edge in the connection. */ export interface ApiSchemaEdge { cursor?: string | null; @@ -22286,18 +23847,6 @@ export type ApiSettingEdgeSelect = { select: ApiSettingSelect; }; }; -/** A `Apis` edge in the connection. */ -export interface ApisEdge { - cursor?: string | null; - /** The `Apis` at the end of the edge. */ - node?: Apis | null; -} -export type ApisEdgeSelect = { - cursor?: boolean; - node?: { - select: ApisSelect; - }; -}; /** A `CheckConstraint` edge in the connection. */ export interface CheckConstraintEdge { cursor?: string | null; @@ -22430,6 +23979,42 @@ export type DomainVerificationEdgeSelect = { select: DomainVerificationSelect; }; }; +/** A `EmailIdentity` edge in the connection. */ +export interface EmailIdentityEdge { + cursor?: string | null; + /** The `EmailIdentity` at the end of the edge. */ + node?: EmailIdentity | null; +} +export type EmailIdentityEdgeSelect = { + cursor?: boolean; + node?: { + select: EmailIdentitySelect; + }; +}; +/** A `EmailProviderAccount` edge in the connection. */ +export interface EmailProviderAccountEdge { + cursor?: string | null; + /** The `EmailProviderAccount` at the end of the edge. */ + node?: EmailProviderAccount | null; +} +export type EmailProviderAccountEdgeSelect = { + cursor?: boolean; + node?: { + select: EmailProviderAccountSelect; + }; +}; +/** A `EmailSiteIdentity` edge in the connection. */ +export interface EmailSiteIdentityEdge { + cursor?: string | null; + /** The `EmailSiteIdentity` at the end of the edge. */ + node?: EmailSiteIdentity | null; +} +export type EmailSiteIdentityEdgeSelect = { + cursor?: boolean; + node?: { + select: EmailSiteIdentitySelect; + }; +}; /** A `EmbeddingChunk` edge in the connection. */ export interface EmbeddingChunkEdge { cursor?: string | null; @@ -22622,6 +24207,18 @@ export type PartitionEdgeSelect = { select: PartitionSelect; }; }; +/** A `PlatformApi` edge in the connection. */ +export interface PlatformApiEdge { + cursor?: string | null; + /** The `PlatformApi` at the end of the edge. */ + node?: PlatformApi | null; +} +export type PlatformApiEdgeSelect = { + cursor?: boolean; + node?: { + select: PlatformApiSelect; + }; +}; /** A `PlatformApiSchema` edge in the connection. */ export interface PlatformApiSchemaEdge { cursor?: string | null; @@ -22646,18 +24243,6 @@ export type PlatformApiSettingEdgeSelect = { select: PlatformApiSettingSelect; }; }; -/** A `PlatformApis` edge in the connection. */ -export interface PlatformApisEdge { - cursor?: string | null; - /** The `PlatformApis` at the end of the edge. */ - node?: PlatformApis | null; -} -export type PlatformApisEdgeSelect = { - cursor?: boolean; - node?: { - select: PlatformApisSelect; - }; -}; /** A `PlatformCorsSetting` edge in the connection. */ export interface PlatformCorsSettingEdge { cursor?: string | null; @@ -22694,6 +24279,42 @@ export type PlatformDomainVerificationEdgeSelect = { select: PlatformDomainVerificationSelect; }; }; +/** A `PlatformEmailIdentity` edge in the connection. */ +export interface PlatformEmailIdentityEdge { + cursor?: string | null; + /** The `PlatformEmailIdentity` at the end of the edge. */ + node?: PlatformEmailIdentity | null; +} +export type PlatformEmailIdentityEdgeSelect = { + cursor?: boolean; + node?: { + select: PlatformEmailIdentitySelect; + }; +}; +/** A `PlatformEmailProviderAccount` edge in the connection. */ +export interface PlatformEmailProviderAccountEdge { + cursor?: string | null; + /** The `PlatformEmailProviderAccount` at the end of the edge. */ + node?: PlatformEmailProviderAccount | null; +} +export type PlatformEmailProviderAccountEdgeSelect = { + cursor?: boolean; + node?: { + select: PlatformEmailProviderAccountSelect; + }; +}; +/** A `PlatformEmailSiteIdentity` edge in the connection. */ +export interface PlatformEmailSiteIdentityEdge { + cursor?: string | null; + /** The `PlatformEmailSiteIdentity` at the end of the edge. */ + node?: PlatformEmailSiteIdentity | null; +} +export type PlatformEmailSiteIdentityEdgeSelect = { + cursor?: boolean; + node?: { + select: PlatformEmailSiteIdentitySelect; + }; +}; /** A `PlatformManagedDomain` edge in the connection. */ export interface PlatformManagedDomainEdge { cursor?: string | null; diff --git a/sdk/constructive-react/src/api/orm/models/apis.ts b/sdk/constructive-cli/src/api/orm/models/api.ts similarity index 60% rename from sdk/constructive-react/src/api/orm/models/apis.ts rename to sdk/constructive-cli/src/api/orm/models/api.ts index a62444db0f..4d60695731 100644 --- a/sdk/constructive-react/src/api/orm/models/apis.ts +++ b/sdk/constructive-cli/src/api/orm/models/api.ts @@ -1,5 +1,5 @@ /** - * Apis model for ORM client + * Api 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 { - Apis, - ApisWithRelations, - ApisSelect, - ApisFilter, - ApisOrderBy, - CreateApisInput, - UpdateApisInput, - ApisPatch, + Api, + ApiWithRelations, + ApiSelect, + ApiFilter, + ApiOrderBy, + CreateApiInput, + UpdateApiInput, + ApiPatch, } from '../input-types'; import { connectionFieldsMap } from '../input-types'; -export class ApisModel { +export class ApiModel { constructor(private client: OrmClient) {} - findMany( - args: FindManyArgs & { + findMany( + args: FindManyArgs & { select: S; - } & StrictSelect + } & StrictSelect ): QueryBuilder<{ - apises: ConnectionResult>; + apis: ConnectionResult>; }> { const { document, variables } = buildFindManyDocument( - 'Apis', - 'apises', + 'Api', + 'apis', args.select, { where: args?.where, @@ -56,65 +56,65 @@ export class ApisModel { before: args?.before, offset: args?.offset, }, - 'ApisFilter', - 'ApisOrderBy', + 'ApiFilter', + 'ApiOrderBy', connectionFieldsMap ); return new QueryBuilder({ client: this.client, operation: 'query', - operationName: 'Apis', - fieldName: 'apises', + operationName: 'Api', + fieldName: 'apis', document, variables, }); } - findFirst( - args: FindFirstArgs & { + findFirst( + args: FindFirstArgs & { select: S; - } & StrictSelect + } & StrictSelect ): QueryBuilder<{ - apis: InferSelectResult | null; + api: InferSelectResult | null; }> { const { document, variables } = buildFindFirstDocument( - 'Apis', - 'apises', + 'Api', + 'apis', args.select, { where: args?.where, orderBy: args?.orderBy as string[] | undefined, }, - 'ApisFilter', - 'ApisOrderBy', + 'ApiFilter', + 'ApiOrderBy', connectionFieldsMap ); return new QueryBuilder({ client: this.client, operation: 'query', - operationName: 'Apis', - fieldName: 'apis', + operationName: 'Api', + fieldName: 'api', document, variables, transform: (data: { - apises?: { - nodes?: InferSelectResult[]; + apis?: { + nodes?: InferSelectResult[]; }; }) => ({ - apis: data.apises?.nodes?.[0] ?? null, + api: data.apis?.nodes?.[0] ?? null, }), }); } - findOne( + findOne( args: { id: string; select: S; - } & StrictSelect + } & StrictSelect ): QueryBuilder<{ - apis: InferSelectResult | null; + api: InferSelectResult | null; }> { const { document, variables } = buildFindManyDocument( - 'Apis', - 'apises', + 'Api', + 'apis', args.select, { where: { @@ -124,91 +124,91 @@ export class ApisModel { }, first: 1, }, - 'ApisFilter', - 'ApisOrderBy', + 'ApiFilter', + 'ApiOrderBy', connectionFieldsMap ); return new QueryBuilder({ client: this.client, operation: 'query', - operationName: 'Apis', - fieldName: 'apis', + operationName: 'Api', + fieldName: 'api', document, variables, transform: (data: { - apises?: { - nodes?: InferSelectResult[]; + apis?: { + nodes?: InferSelectResult[]; }; }) => ({ - apis: data.apises?.nodes?.[0] ?? null, + api: data.apis?.nodes?.[0] ?? null, }), }); } - create( - args: CreateArgs & { + create( + args: CreateArgs & { select: S; - } & StrictSelect + } & StrictSelect ): QueryBuilder<{ - createApis: { - apis: InferSelectResult; + createApi: { + api: InferSelectResult; }; }> { const { document, variables } = buildCreateDocument( - 'Apis', - 'createApis', - 'apis', + 'Api', + 'createApi', + 'api', args.select, args.data, - 'CreateApisInput', + 'CreateApiInput', connectionFieldsMap ); return new QueryBuilder({ client: this.client, operation: 'mutation', - operationName: 'Apis', - fieldName: 'createApis', + operationName: 'Api', + fieldName: 'createApi', document, variables, }); } - update( + update( args: UpdateArgs< S, { id: string; }, - ApisPatch + ApiPatch > & { select: S; - } & StrictSelect + } & StrictSelect ): QueryBuilder<{ - updateApis: { - apis: InferSelectResult; + updateApi: { + api: InferSelectResult; }; }> { const { document, variables } = buildUpdateByPkDocument( - 'Apis', - 'updateApis', - 'apis', + 'Api', + 'updateApi', + 'api', args.select, args.where.id, args.data, - 'UpdateApisInput', + 'UpdateApiInput', 'id', - 'apisPatch', + 'apiPatch', connectionFieldsMap, undefined ); return new QueryBuilder({ client: this.client, operation: 'mutation', - operationName: 'Apis', - fieldName: 'updateApis', + operationName: 'Api', + fieldName: 'updateApi', document, variables, }); } - delete( + delete( args: DeleteArgs< { id: string; @@ -216,28 +216,28 @@ export class ApisModel { S > & { select: S; - } & StrictSelect + } & StrictSelect ): QueryBuilder<{ - deleteApis: { - apis: InferSelectResult; + deleteApi: { + api: InferSelectResult; }; }> { const { document, variables } = buildDeleteByPkDocument( - 'Apis', - 'deleteApis', - 'apis', + 'Api', + 'deleteApi', + 'api', { id: args.where.id, }, - 'DeleteApisInput', + 'DeleteApiInput', args.select, connectionFieldsMap ); return new QueryBuilder({ client: this.client, operation: 'mutation', - operationName: 'Apis', - fieldName: 'deleteApis', + operationName: 'Api', + fieldName: 'deleteApi', document, variables, }); diff --git a/sdk/constructive-cli/src/api/orm/models/emailIdentity.ts b/sdk/constructive-cli/src/api/orm/models/emailIdentity.ts new file mode 100644 index 0000000000..ac0262d9d9 --- /dev/null +++ b/sdk/constructive-cli/src/api/orm/models/emailIdentity.ts @@ -0,0 +1,245 @@ +/** + * EmailIdentity 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 { + EmailIdentity, + EmailIdentityWithRelations, + EmailIdentitySelect, + EmailIdentityFilter, + EmailIdentityOrderBy, + CreateEmailIdentityInput, + UpdateEmailIdentityInput, + EmailIdentityPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class EmailIdentityModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + emailIdentities: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'EmailIdentity', + 'emailIdentities', + 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, + }, + 'EmailIdentityFilter', + 'EmailIdentityOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'EmailIdentity', + fieldName: 'emailIdentities', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + emailIdentity: InferSelectResult | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'EmailIdentity', + 'emailIdentities', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'EmailIdentityFilter', + 'EmailIdentityOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'EmailIdentity', + fieldName: 'emailIdentity', + document, + variables, + transform: (data: { + emailIdentities?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + emailIdentity: data.emailIdentities?.nodes?.[0] ?? null, + }), + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + emailIdentity: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'EmailIdentity', + 'emailIdentities', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'EmailIdentityFilter', + 'EmailIdentityOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'EmailIdentity', + fieldName: 'emailIdentity', + document, + variables, + transform: (data: { + emailIdentities?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + emailIdentity: data.emailIdentities?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createEmailIdentity: { + emailIdentity: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'EmailIdentity', + 'createEmailIdentity', + 'emailIdentity', + args.select, + args.data, + 'CreateEmailIdentityInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'EmailIdentity', + fieldName: 'createEmailIdentity', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + EmailIdentityPatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateEmailIdentity: { + emailIdentity: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'EmailIdentity', + 'updateEmailIdentity', + 'emailIdentity', + args.select, + args.where.id, + args.data, + 'UpdateEmailIdentityInput', + 'id', + 'emailIdentityPatch', + connectionFieldsMap, + undefined + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'EmailIdentity', + fieldName: 'updateEmailIdentity', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteEmailIdentity: { + emailIdentity: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'EmailIdentity', + 'deleteEmailIdentity', + 'emailIdentity', + { + id: args.where.id, + }, + 'DeleteEmailIdentityInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'EmailIdentity', + fieldName: 'deleteEmailIdentity', + document, + variables, + }); + } +} diff --git a/sdk/constructive-cli/src/api/orm/models/emailProviderAccount.ts b/sdk/constructive-cli/src/api/orm/models/emailProviderAccount.ts new file mode 100644 index 0000000000..a720e8d015 --- /dev/null +++ b/sdk/constructive-cli/src/api/orm/models/emailProviderAccount.ts @@ -0,0 +1,247 @@ +/** + * EmailProviderAccount 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 { + EmailProviderAccount, + EmailProviderAccountWithRelations, + EmailProviderAccountSelect, + EmailProviderAccountFilter, + EmailProviderAccountOrderBy, + CreateEmailProviderAccountInput, + UpdateEmailProviderAccountInput, + EmailProviderAccountPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class EmailProviderAccountModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + emailProviderAccounts: ConnectionResult< + InferSelectResult + >; + }> { + const { document, variables } = buildFindManyDocument( + 'EmailProviderAccount', + 'emailProviderAccounts', + 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, + }, + 'EmailProviderAccountFilter', + 'EmailProviderAccountOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'EmailProviderAccount', + fieldName: 'emailProviderAccounts', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + emailProviderAccount: InferSelectResult | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'EmailProviderAccount', + 'emailProviderAccounts', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'EmailProviderAccountFilter', + 'EmailProviderAccountOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'EmailProviderAccount', + fieldName: 'emailProviderAccount', + document, + variables, + transform: (data: { + emailProviderAccounts?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + emailProviderAccount: data.emailProviderAccounts?.nodes?.[0] ?? null, + }), + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + emailProviderAccount: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'EmailProviderAccount', + 'emailProviderAccounts', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'EmailProviderAccountFilter', + 'EmailProviderAccountOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'EmailProviderAccount', + fieldName: 'emailProviderAccount', + document, + variables, + transform: (data: { + emailProviderAccounts?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + emailProviderAccount: data.emailProviderAccounts?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createEmailProviderAccount: { + emailProviderAccount: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'EmailProviderAccount', + 'createEmailProviderAccount', + 'emailProviderAccount', + args.select, + args.data, + 'CreateEmailProviderAccountInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'EmailProviderAccount', + fieldName: 'createEmailProviderAccount', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + EmailProviderAccountPatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateEmailProviderAccount: { + emailProviderAccount: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'EmailProviderAccount', + 'updateEmailProviderAccount', + 'emailProviderAccount', + args.select, + args.where.id, + args.data, + 'UpdateEmailProviderAccountInput', + 'id', + 'emailProviderAccountPatch', + connectionFieldsMap, + undefined + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'EmailProviderAccount', + fieldName: 'updateEmailProviderAccount', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteEmailProviderAccount: { + emailProviderAccount: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'EmailProviderAccount', + 'deleteEmailProviderAccount', + 'emailProviderAccount', + { + id: args.where.id, + }, + 'DeleteEmailProviderAccountInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'EmailProviderAccount', + fieldName: 'deleteEmailProviderAccount', + document, + variables, + }); + } +} diff --git a/sdk/constructive-cli/src/api/orm/models/emailSiteIdentity.ts b/sdk/constructive-cli/src/api/orm/models/emailSiteIdentity.ts new file mode 100644 index 0000000000..408d8ffa81 --- /dev/null +++ b/sdk/constructive-cli/src/api/orm/models/emailSiteIdentity.ts @@ -0,0 +1,245 @@ +/** + * EmailSiteIdentity 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 { + EmailSiteIdentity, + EmailSiteIdentityWithRelations, + EmailSiteIdentitySelect, + EmailSiteIdentityFilter, + EmailSiteIdentityOrderBy, + CreateEmailSiteIdentityInput, + UpdateEmailSiteIdentityInput, + EmailSiteIdentityPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class EmailSiteIdentityModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + emailSiteIdentities: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'EmailSiteIdentity', + 'emailSiteIdentities', + 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, + }, + 'EmailSiteIdentityFilter', + 'EmailSiteIdentityOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'EmailSiteIdentity', + fieldName: 'emailSiteIdentities', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + emailSiteIdentity: InferSelectResult | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'EmailSiteIdentity', + 'emailSiteIdentities', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'EmailSiteIdentityFilter', + 'EmailSiteIdentityOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'EmailSiteIdentity', + fieldName: 'emailSiteIdentity', + document, + variables, + transform: (data: { + emailSiteIdentities?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + emailSiteIdentity: data.emailSiteIdentities?.nodes?.[0] ?? null, + }), + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + emailSiteIdentity: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'EmailSiteIdentity', + 'emailSiteIdentities', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'EmailSiteIdentityFilter', + 'EmailSiteIdentityOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'EmailSiteIdentity', + fieldName: 'emailSiteIdentity', + document, + variables, + transform: (data: { + emailSiteIdentities?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + emailSiteIdentity: data.emailSiteIdentities?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createEmailSiteIdentity: { + emailSiteIdentity: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'EmailSiteIdentity', + 'createEmailSiteIdentity', + 'emailSiteIdentity', + args.select, + args.data, + 'CreateEmailSiteIdentityInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'EmailSiteIdentity', + fieldName: 'createEmailSiteIdentity', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + EmailSiteIdentityPatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateEmailSiteIdentity: { + emailSiteIdentity: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'EmailSiteIdentity', + 'updateEmailSiteIdentity', + 'emailSiteIdentity', + args.select, + args.where.id, + args.data, + 'UpdateEmailSiteIdentityInput', + 'id', + 'emailSiteIdentityPatch', + connectionFieldsMap, + undefined + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'EmailSiteIdentity', + fieldName: 'updateEmailSiteIdentity', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteEmailSiteIdentity: { + emailSiteIdentity: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'EmailSiteIdentity', + 'deleteEmailSiteIdentity', + 'emailSiteIdentity', + { + id: args.where.id, + }, + 'DeleteEmailSiteIdentityInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'EmailSiteIdentity', + fieldName: 'deleteEmailSiteIdentity', + document, + variables, + }); + } +} diff --git a/sdk/constructive-cli/src/api/orm/models/index.ts b/sdk/constructive-cli/src/api/orm/models/index.ts index a947c4f65f..c3370b199c 100644 --- a/sdk/constructive-cli/src/api/orm/models/index.ts +++ b/sdk/constructive-cli/src/api/orm/models/index.ts @@ -3,9 +3,9 @@ * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ +export { ApiModel } from './api'; export { ApiSchemaModel } from './apiSchema'; export { ApiSettingModel } from './apiSetting'; -export { ApisModel } from './apis'; export { AstMigrationModel } from './astMigration'; export { CheckConstraintModel } from './checkConstraint'; export { CompositeTypeModel } from './compositeType'; @@ -19,6 +19,9 @@ export { DomainModel } from './domain'; export { DomainEventModel } from './domainEvent'; export { DomainTypeModel } from './domainType'; export { DomainVerificationModel } from './domainVerification'; +export { EmailIdentityModel } from './emailIdentity'; +export { EmailProviderAccountModel } from './emailProviderAccount'; +export { EmailSiteIdentityModel } from './emailSiteIdentity'; export { EmbeddingChunkModel } from './embeddingChunk'; export { EnumModel } from './enum'; export { ExclusionConstraintModel } from './exclusionConstraint'; @@ -35,13 +38,16 @@ export { ManagedDomainModel } from './managedDomain'; export { NodeTypeRegistryModel } from './nodeTypeRegistry'; export { PageModel } from './page'; export { PartitionModel } from './partition'; +export { PlatformApiModel } from './platformApi'; export { PlatformApiSchemaModel } from './platformApiSchema'; export { PlatformApiSettingModel } from './platformApiSetting'; -export { PlatformApisModel } from './platformApis'; export { PlatformCorsSettingModel } from './platformCorsSetting'; export { PlatformDomainModel } from './platformDomain'; export { PlatformDomainEventModel } from './platformDomainEvent'; export { PlatformDomainVerificationModel } from './platformDomainVerification'; +export { PlatformEmailIdentityModel } from './platformEmailIdentity'; +export { PlatformEmailProviderAccountModel } from './platformEmailProviderAccount'; +export { PlatformEmailSiteIdentityModel } from './platformEmailSiteIdentity'; export { PlatformManagedDomainModel } from './platformManagedDomain'; export { PlatformPageModel } from './platformPage'; export { PlatformSiteAppLinkModel } from './platformSiteAppLink'; diff --git a/sdk/constructive-sdk/src/api/orm/models/platformApis.ts b/sdk/constructive-cli/src/api/orm/models/platformApi.ts similarity index 54% rename from sdk/constructive-sdk/src/api/orm/models/platformApis.ts rename to sdk/constructive-cli/src/api/orm/models/platformApi.ts index 43cd25c9d2..3eee59e6c8 100644 --- a/sdk/constructive-sdk/src/api/orm/models/platformApis.ts +++ b/sdk/constructive-cli/src/api/orm/models/platformApi.ts @@ -1,5 +1,5 @@ /** - * PlatformApis model for ORM client + * PlatformApi 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 { - PlatformApis, - PlatformApisWithRelations, - PlatformApisSelect, - PlatformApisFilter, - PlatformApisOrderBy, - CreatePlatformApisInput, - UpdatePlatformApisInput, - PlatformApisPatch, + PlatformApi, + PlatformApiWithRelations, + PlatformApiSelect, + PlatformApiFilter, + PlatformApiOrderBy, + CreatePlatformApiInput, + UpdatePlatformApiInput, + PlatformApiPatch, } from '../input-types'; import { connectionFieldsMap } from '../input-types'; -export class PlatformApisModel { +export class PlatformApiModel { constructor(private client: OrmClient) {} - findMany( - args: FindManyArgs & { + findMany( + args: FindManyArgs & { select: S; - } & StrictSelect + } & StrictSelect ): QueryBuilder<{ - platformApises: ConnectionResult>; + platformApis: ConnectionResult>; }> { const { document, variables } = buildFindManyDocument( - 'PlatformApis', - 'platformApises', + 'PlatformApi', + 'platformApis', args.select, { where: args?.where, @@ -56,65 +56,65 @@ export class PlatformApisModel { before: args?.before, offset: args?.offset, }, - 'PlatformApisFilter', - 'PlatformApisOrderBy', + 'PlatformApiFilter', + 'PlatformApiOrderBy', connectionFieldsMap ); return new QueryBuilder({ client: this.client, operation: 'query', - operationName: 'PlatformApis', - fieldName: 'platformApises', + operationName: 'PlatformApi', + fieldName: 'platformApis', document, variables, }); } - findFirst( - args: FindFirstArgs & { + findFirst( + args: FindFirstArgs & { select: S; - } & StrictSelect + } & StrictSelect ): QueryBuilder<{ - platformApis: InferSelectResult | null; + platformApi: InferSelectResult | null; }> { const { document, variables } = buildFindFirstDocument( - 'PlatformApis', - 'platformApises', + 'PlatformApi', + 'platformApis', args.select, { where: args?.where, orderBy: args?.orderBy as string[] | undefined, }, - 'PlatformApisFilter', - 'PlatformApisOrderBy', + 'PlatformApiFilter', + 'PlatformApiOrderBy', connectionFieldsMap ); return new QueryBuilder({ client: this.client, operation: 'query', - operationName: 'PlatformApis', - fieldName: 'platformApis', + operationName: 'PlatformApi', + fieldName: 'platformApi', document, variables, transform: (data: { - platformApises?: { - nodes?: InferSelectResult[]; + platformApis?: { + nodes?: InferSelectResult[]; }; }) => ({ - platformApis: data.platformApises?.nodes?.[0] ?? null, + platformApi: data.platformApis?.nodes?.[0] ?? null, }), }); } - findOne( + findOne( args: { id: string; select: S; - } & StrictSelect + } & StrictSelect ): QueryBuilder<{ - platformApis: InferSelectResult | null; + platformApi: InferSelectResult | null; }> { const { document, variables } = buildFindManyDocument( - 'PlatformApis', - 'platformApises', + 'PlatformApi', + 'platformApis', args.select, { where: { @@ -124,91 +124,91 @@ export class PlatformApisModel { }, first: 1, }, - 'PlatformApisFilter', - 'PlatformApisOrderBy', + 'PlatformApiFilter', + 'PlatformApiOrderBy', connectionFieldsMap ); return new QueryBuilder({ client: this.client, operation: 'query', - operationName: 'PlatformApis', - fieldName: 'platformApis', + operationName: 'PlatformApi', + fieldName: 'platformApi', document, variables, transform: (data: { - platformApises?: { - nodes?: InferSelectResult[]; + platformApis?: { + nodes?: InferSelectResult[]; }; }) => ({ - platformApis: data.platformApises?.nodes?.[0] ?? null, + platformApi: data.platformApis?.nodes?.[0] ?? null, }), }); } - create( - args: CreateArgs & { + create( + args: CreateArgs & { select: S; - } & StrictSelect + } & StrictSelect ): QueryBuilder<{ - createPlatformApis: { - platformApis: InferSelectResult; + createPlatformApi: { + platformApi: InferSelectResult; }; }> { const { document, variables } = buildCreateDocument( - 'PlatformApis', - 'createPlatformApis', - 'platformApis', + 'PlatformApi', + 'createPlatformApi', + 'platformApi', args.select, args.data, - 'CreatePlatformApisInput', + 'CreatePlatformApiInput', connectionFieldsMap ); return new QueryBuilder({ client: this.client, operation: 'mutation', - operationName: 'PlatformApis', - fieldName: 'createPlatformApis', + operationName: 'PlatformApi', + fieldName: 'createPlatformApi', document, variables, }); } - update( + update( args: UpdateArgs< S, { id: string; }, - PlatformApisPatch + PlatformApiPatch > & { select: S; - } & StrictSelect + } & StrictSelect ): QueryBuilder<{ - updatePlatformApis: { - platformApis: InferSelectResult; + updatePlatformApi: { + platformApi: InferSelectResult; }; }> { const { document, variables } = buildUpdateByPkDocument( - 'PlatformApis', - 'updatePlatformApis', - 'platformApis', + 'PlatformApi', + 'updatePlatformApi', + 'platformApi', args.select, args.where.id, args.data, - 'UpdatePlatformApisInput', + 'UpdatePlatformApiInput', 'id', - 'platformApisPatch', + 'platformApiPatch', connectionFieldsMap, undefined ); return new QueryBuilder({ client: this.client, operation: 'mutation', - operationName: 'PlatformApis', - fieldName: 'updatePlatformApis', + operationName: 'PlatformApi', + fieldName: 'updatePlatformApi', document, variables, }); } - delete( + delete( args: DeleteArgs< { id: string; @@ -216,28 +216,28 @@ export class PlatformApisModel { S > & { select: S; - } & StrictSelect + } & StrictSelect ): QueryBuilder<{ - deletePlatformApis: { - platformApis: InferSelectResult; + deletePlatformApi: { + platformApi: InferSelectResult; }; }> { const { document, variables } = buildDeleteByPkDocument( - 'PlatformApis', - 'deletePlatformApis', - 'platformApis', + 'PlatformApi', + 'deletePlatformApi', + 'platformApi', { id: args.where.id, }, - 'DeletePlatformApisInput', + 'DeletePlatformApiInput', args.select, connectionFieldsMap ); return new QueryBuilder({ client: this.client, operation: 'mutation', - operationName: 'PlatformApis', - fieldName: 'deletePlatformApis', + operationName: 'PlatformApi', + fieldName: 'deletePlatformApi', document, variables, }); diff --git a/sdk/constructive-cli/src/api/orm/models/platformEmailIdentity.ts b/sdk/constructive-cli/src/api/orm/models/platformEmailIdentity.ts new file mode 100644 index 0000000000..8cc262f318 --- /dev/null +++ b/sdk/constructive-cli/src/api/orm/models/platformEmailIdentity.ts @@ -0,0 +1,247 @@ +/** + * PlatformEmailIdentity 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 { + PlatformEmailIdentity, + PlatformEmailIdentityWithRelations, + PlatformEmailIdentitySelect, + PlatformEmailIdentityFilter, + PlatformEmailIdentityOrderBy, + CreatePlatformEmailIdentityInput, + UpdatePlatformEmailIdentityInput, + PlatformEmailIdentityPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class PlatformEmailIdentityModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformEmailIdentities: ConnectionResult< + InferSelectResult + >; + }> { + const { document, variables } = buildFindManyDocument( + 'PlatformEmailIdentity', + 'platformEmailIdentities', + 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, + }, + 'PlatformEmailIdentityFilter', + 'PlatformEmailIdentityOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformEmailIdentity', + fieldName: 'platformEmailIdentities', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformEmailIdentity: InferSelectResult | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'PlatformEmailIdentity', + 'platformEmailIdentities', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'PlatformEmailIdentityFilter', + 'PlatformEmailIdentityOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformEmailIdentity', + fieldName: 'platformEmailIdentity', + document, + variables, + transform: (data: { + platformEmailIdentities?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + platformEmailIdentity: data.platformEmailIdentities?.nodes?.[0] ?? null, + }), + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformEmailIdentity: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'PlatformEmailIdentity', + 'platformEmailIdentities', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'PlatformEmailIdentityFilter', + 'PlatformEmailIdentityOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformEmailIdentity', + fieldName: 'platformEmailIdentity', + document, + variables, + transform: (data: { + platformEmailIdentities?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + platformEmailIdentity: data.platformEmailIdentities?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createPlatformEmailIdentity: { + platformEmailIdentity: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'PlatformEmailIdentity', + 'createPlatformEmailIdentity', + 'platformEmailIdentity', + args.select, + args.data, + 'CreatePlatformEmailIdentityInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PlatformEmailIdentity', + fieldName: 'createPlatformEmailIdentity', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + PlatformEmailIdentityPatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updatePlatformEmailIdentity: { + platformEmailIdentity: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'PlatformEmailIdentity', + 'updatePlatformEmailIdentity', + 'platformEmailIdentity', + args.select, + args.where.id, + args.data, + 'UpdatePlatformEmailIdentityInput', + 'id', + 'platformEmailIdentityPatch', + connectionFieldsMap, + undefined + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PlatformEmailIdentity', + fieldName: 'updatePlatformEmailIdentity', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deletePlatformEmailIdentity: { + platformEmailIdentity: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'PlatformEmailIdentity', + 'deletePlatformEmailIdentity', + 'platformEmailIdentity', + { + id: args.where.id, + }, + 'DeletePlatformEmailIdentityInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PlatformEmailIdentity', + fieldName: 'deletePlatformEmailIdentity', + document, + variables, + }); + } +} diff --git a/sdk/constructive-cli/src/api/orm/models/platformEmailProviderAccount.ts b/sdk/constructive-cli/src/api/orm/models/platformEmailProviderAccount.ts new file mode 100644 index 0000000000..07c760f30b --- /dev/null +++ b/sdk/constructive-cli/src/api/orm/models/platformEmailProviderAccount.ts @@ -0,0 +1,261 @@ +/** + * PlatformEmailProviderAccount 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 { + PlatformEmailProviderAccount, + PlatformEmailProviderAccountWithRelations, + PlatformEmailProviderAccountSelect, + PlatformEmailProviderAccountFilter, + PlatformEmailProviderAccountOrderBy, + CreatePlatformEmailProviderAccountInput, + UpdatePlatformEmailProviderAccountInput, + PlatformEmailProviderAccountPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class PlatformEmailProviderAccountModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs< + S, + PlatformEmailProviderAccountFilter, + PlatformEmailProviderAccountOrderBy + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformEmailProviderAccounts: ConnectionResult< + InferSelectResult + >; + }> { + const { document, variables } = buildFindManyDocument( + 'PlatformEmailProviderAccount', + 'platformEmailProviderAccounts', + 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, + }, + 'PlatformEmailProviderAccountFilter', + 'PlatformEmailProviderAccountOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformEmailProviderAccount', + fieldName: 'platformEmailProviderAccounts', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs< + S, + PlatformEmailProviderAccountFilter, + PlatformEmailProviderAccountOrderBy + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformEmailProviderAccount: InferSelectResult< + PlatformEmailProviderAccountWithRelations, + S + > | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'PlatformEmailProviderAccount', + 'platformEmailProviderAccounts', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'PlatformEmailProviderAccountFilter', + 'PlatformEmailProviderAccountOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformEmailProviderAccount', + fieldName: 'platformEmailProviderAccount', + document, + variables, + transform: (data: { + platformEmailProviderAccounts?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + platformEmailProviderAccount: data.platformEmailProviderAccounts?.nodes?.[0] ?? null, + }), + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformEmailProviderAccount: InferSelectResult< + PlatformEmailProviderAccountWithRelations, + S + > | null; + }> { + const { document, variables } = buildFindManyDocument( + 'PlatformEmailProviderAccount', + 'platformEmailProviderAccounts', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'PlatformEmailProviderAccountFilter', + 'PlatformEmailProviderAccountOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformEmailProviderAccount', + fieldName: 'platformEmailProviderAccount', + document, + variables, + transform: (data: { + platformEmailProviderAccounts?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + platformEmailProviderAccount: data.platformEmailProviderAccounts?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createPlatformEmailProviderAccount: { + platformEmailProviderAccount: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'PlatformEmailProviderAccount', + 'createPlatformEmailProviderAccount', + 'platformEmailProviderAccount', + args.select, + args.data, + 'CreatePlatformEmailProviderAccountInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PlatformEmailProviderAccount', + fieldName: 'createPlatformEmailProviderAccount', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + PlatformEmailProviderAccountPatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updatePlatformEmailProviderAccount: { + platformEmailProviderAccount: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'PlatformEmailProviderAccount', + 'updatePlatformEmailProviderAccount', + 'platformEmailProviderAccount', + args.select, + args.where.id, + args.data, + 'UpdatePlatformEmailProviderAccountInput', + 'id', + 'platformEmailProviderAccountPatch', + connectionFieldsMap, + undefined + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PlatformEmailProviderAccount', + fieldName: 'updatePlatformEmailProviderAccount', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deletePlatformEmailProviderAccount: { + platformEmailProviderAccount: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'PlatformEmailProviderAccount', + 'deletePlatformEmailProviderAccount', + 'platformEmailProviderAccount', + { + id: args.where.id, + }, + 'DeletePlatformEmailProviderAccountInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PlatformEmailProviderAccount', + fieldName: 'deletePlatformEmailProviderAccount', + document, + variables, + }); + } +} diff --git a/sdk/constructive-cli/src/api/orm/models/platformEmailSiteIdentity.ts b/sdk/constructive-cli/src/api/orm/models/platformEmailSiteIdentity.ts new file mode 100644 index 0000000000..bc3ff67daa --- /dev/null +++ b/sdk/constructive-cli/src/api/orm/models/platformEmailSiteIdentity.ts @@ -0,0 +1,247 @@ +/** + * PlatformEmailSiteIdentity 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 { + PlatformEmailSiteIdentity, + PlatformEmailSiteIdentityWithRelations, + PlatformEmailSiteIdentitySelect, + PlatformEmailSiteIdentityFilter, + PlatformEmailSiteIdentityOrderBy, + CreatePlatformEmailSiteIdentityInput, + UpdatePlatformEmailSiteIdentityInput, + PlatformEmailSiteIdentityPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class PlatformEmailSiteIdentityModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformEmailSiteIdentities: ConnectionResult< + InferSelectResult + >; + }> { + const { document, variables } = buildFindManyDocument( + 'PlatformEmailSiteIdentity', + 'platformEmailSiteIdentities', + 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, + }, + 'PlatformEmailSiteIdentityFilter', + 'PlatformEmailSiteIdentityOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformEmailSiteIdentity', + fieldName: 'platformEmailSiteIdentities', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformEmailSiteIdentity: InferSelectResult | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'PlatformEmailSiteIdentity', + 'platformEmailSiteIdentities', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'PlatformEmailSiteIdentityFilter', + 'PlatformEmailSiteIdentityOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformEmailSiteIdentity', + fieldName: 'platformEmailSiteIdentity', + document, + variables, + transform: (data: { + platformEmailSiteIdentities?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + platformEmailSiteIdentity: data.platformEmailSiteIdentities?.nodes?.[0] ?? null, + }), + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformEmailSiteIdentity: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'PlatformEmailSiteIdentity', + 'platformEmailSiteIdentities', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'PlatformEmailSiteIdentityFilter', + 'PlatformEmailSiteIdentityOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformEmailSiteIdentity', + fieldName: 'platformEmailSiteIdentity', + document, + variables, + transform: (data: { + platformEmailSiteIdentities?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + platformEmailSiteIdentity: data.platformEmailSiteIdentities?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createPlatformEmailSiteIdentity: { + platformEmailSiteIdentity: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'PlatformEmailSiteIdentity', + 'createPlatformEmailSiteIdentity', + 'platformEmailSiteIdentity', + args.select, + args.data, + 'CreatePlatformEmailSiteIdentityInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PlatformEmailSiteIdentity', + fieldName: 'createPlatformEmailSiteIdentity', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + PlatformEmailSiteIdentityPatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updatePlatformEmailSiteIdentity: { + platformEmailSiteIdentity: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'PlatformEmailSiteIdentity', + 'updatePlatformEmailSiteIdentity', + 'platformEmailSiteIdentity', + args.select, + args.where.id, + args.data, + 'UpdatePlatformEmailSiteIdentityInput', + 'id', + 'platformEmailSiteIdentityPatch', + connectionFieldsMap, + undefined + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PlatformEmailSiteIdentity', + fieldName: 'updatePlatformEmailSiteIdentity', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deletePlatformEmailSiteIdentity: { + platformEmailSiteIdentity: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'PlatformEmailSiteIdentity', + 'deletePlatformEmailSiteIdentity', + 'platformEmailSiteIdentity', + { + id: args.where.id, + }, + 'DeletePlatformEmailSiteIdentityInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PlatformEmailSiteIdentity', + fieldName: 'deletePlatformEmailSiteIdentity', + document, + variables, + }); + } +} diff --git a/sdk/constructive-cli/src/auth/README.md b/sdk/constructive-cli/src/auth/README.md index 41c1582308..408421419b 100644 --- a/sdk/constructive-cli/src/auth/README.md +++ b/sdk/constructive-cli/src/auth/README.md @@ -10,7 +10,7 @@ - **Tables:** 13 - **Custom queries:** 5 -- **Custom mutations:** 30 +- **Custom mutations:** 32 **Generators:** ORM, CLI diff --git a/sdk/constructive-cli/src/auth/cli/README.md b/sdk/constructive-cli/src/auth/cli/README.md index b892f95f12..13b6f7fec8 100644 --- a/sdk/constructive-cli/src/auth/cli/README.md +++ b/sdk/constructive-cli/src/auth/cli/README.md @@ -70,9 +70,11 @@ and lifecycle settings. | | `set-password` | setPassword | | `sign-in` | signIn | | `sign-in-cross-origin` | signInCrossOrigin | +| `sign-in-magic-link` | signInMagicLink | | `sign-in-sms-otp` | signInSmsOtp | | `sign-out` | signOut | | `sign-up` | signUp | +| `sign-up-magic-link` | signUpMagicLink | | `sign-up-sms` | signUpSms | | `verify-email` | verifyEmail | | `verify-password` | verifyPassword | @@ -868,6 +870,21 @@ signInCrossOrigin | `--input.credentialKind` | String | | `--input.token` | String | +### `sign-in-magic-link` + +signInMagicLink + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `--input.clientMutationId` | String | + | `--input.credentialKind` | String | + | `--input.deviceToken` | String | + | `--input.rememberMe` | Boolean | + | `--input.token` | String | + ### `sign-in-sms-otp` signInSmsOtp @@ -912,6 +929,21 @@ signUp | `--input.password` | String | | `--input.rememberMe` | Boolean | +### `sign-up-magic-link` + +signUpMagicLink + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `--input.clientMutationId` | String | + | `--input.credentialKind` | String | + | `--input.deviceToken` | String | + | `--input.rememberMe` | Boolean | + | `--input.token` | String | + ### `sign-up-sms` signUpSms diff --git a/sdk/constructive-cli/src/auth/cli/commands.ts b/sdk/constructive-cli/src/auth/cli/commands.ts index dfbdf380c0..badd88f45c 100644 --- a/sdk/constructive-cli/src/auth/cli/commands.ts +++ b/sdk/constructive-cli/src/auth/cli/commands.ts @@ -47,9 +47,11 @@ import sendVerificationEmailCmd from './commands/send-verification-email'; import setPasswordCmd from './commands/set-password'; import signInCmd from './commands/sign-in'; import signInCrossOriginCmd from './commands/sign-in-cross-origin'; +import signInMagicLinkCmd from './commands/sign-in-magic-link'; import signInSmsOtpCmd from './commands/sign-in-sms-otp'; import signOutCmd from './commands/sign-out'; import signUpCmd from './commands/sign-up'; +import signUpMagicLinkCmd from './commands/sign-up-magic-link'; import signUpSmsCmd from './commands/sign-up-sms'; import verifyEmailCmd from './commands/verify-email'; import verifyPasswordCmd from './commands/verify-password'; @@ -105,16 +107,18 @@ const createCommandMap: () => Record< 'set-password': setPasswordCmd, 'sign-in': signInCmd, 'sign-in-cross-origin': signInCrossOriginCmd, + 'sign-in-magic-link': signInMagicLinkCmd, 'sign-in-sms-otp': signInSmsOtpCmd, 'sign-out': signOutCmd, 'sign-up': signUpCmd, + 'sign-up-magic-link': signUpMagicLinkCmd, 'sign-up-sms': signUpSmsCmd, 'verify-email': verifyEmailCmd, 'verify-password': verifyPasswordCmd, 'verify-totp': verifyTotpCmd, }); const usage = - '\ncsdk \n\nCommands:\n context Manage API contexts\n auth Manage authentication\n audit-log-auth auditLogAuth CRUD operations\n crypto-address cryptoAddress CRUD operations\n email email CRUD operations\n identity-provider identityProvider CRUD operations\n org-api-key-list orgApiKeyList CRUD operations\n phone-number phoneNumber CRUD operations\n principal principal CRUD operations\n principal-entity principalEntity CRUD operations\n principal-scope-override principalScopeOverride CRUD operations\n role-type roleType CRUD operations\n user-connected-account userConnectedAccount CRUD operations\n user user CRUD operations\n webauthn-credential webauthnCredential CRUD operations\n current-ip-address currentIpAddress\n current-user currentUser\n current-user-agent currentUserAgent\n current-user-id currentUserId\n require-step-up requireStepUp\n check-password checkPassword\n confirm-delete-account confirmDeleteAccount\n create-api-key createApiKey\n create-org-api-key createOrgApiKey\n create-org-principal createOrgPrincipal\n delete-org-principal deleteOrgPrincipal\n delete-principal deletePrincipal\n disconnect-account disconnectAccount\n extend-token-expires extendTokenExpires\n forgot-password forgotPassword\n link-identity linkIdentity\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 provision-new-user provisionNewUser\n request-cross-origin-token requestCrossOriginToken\n reset-password resetPassword\n revoke-api-key revokeApiKey\n revoke-org-api-key revokeOrgApiKey\n revoke-session revokeSession\n send-account-deletion-email sendAccountDeletionEmail\n send-verification-email sendVerificationEmail\n set-password setPassword\n sign-in signIn\n sign-in-cross-origin signInCrossOrigin\n sign-in-sms-otp signInSmsOtp\n sign-out signOut\n sign-up signUp\n sign-up-sms signUpSms\n verify-email verifyEmail\n verify-password verifyPassword\n verify-totp verifyTotp\n\n --help, -h Show this help message\n --version, -v Show version\n'; + '\ncsdk \n\nCommands:\n context Manage API contexts\n auth Manage authentication\n audit-log-auth auditLogAuth CRUD operations\n crypto-address cryptoAddress CRUD operations\n email email CRUD operations\n identity-provider identityProvider CRUD operations\n org-api-key-list orgApiKeyList CRUD operations\n phone-number phoneNumber CRUD operations\n principal principal CRUD operations\n principal-entity principalEntity CRUD operations\n principal-scope-override principalScopeOverride CRUD operations\n role-type roleType CRUD operations\n user-connected-account userConnectedAccount CRUD operations\n user user CRUD operations\n webauthn-credential webauthnCredential CRUD operations\n current-ip-address currentIpAddress\n current-user currentUser\n current-user-agent currentUserAgent\n current-user-id currentUserId\n require-step-up requireStepUp\n check-password checkPassword\n confirm-delete-account confirmDeleteAccount\n create-api-key createApiKey\n create-org-api-key createOrgApiKey\n create-org-principal createOrgPrincipal\n delete-org-principal deleteOrgPrincipal\n delete-principal deletePrincipal\n disconnect-account disconnectAccount\n extend-token-expires extendTokenExpires\n forgot-password forgotPassword\n link-identity linkIdentity\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 provision-new-user provisionNewUser\n request-cross-origin-token requestCrossOriginToken\n reset-password resetPassword\n revoke-api-key revokeApiKey\n revoke-org-api-key revokeOrgApiKey\n revoke-session revokeSession\n send-account-deletion-email sendAccountDeletionEmail\n send-verification-email sendVerificationEmail\n set-password setPassword\n sign-in signIn\n sign-in-cross-origin signInCrossOrigin\n sign-in-magic-link signInMagicLink\n sign-in-sms-otp signInSmsOtp\n sign-out signOut\n sign-up signUp\n sign-up-magic-link signUpMagicLink\n sign-up-sms signUpSms\n verify-email verifyEmail\n verify-password verifyPassword\n verify-totp verifyTotp\n\n --help, -h Show this help message\n --version, -v Show version\n'; export const commands = async ( argv: Partial>, prompter: Inquirerer, diff --git a/sdk/constructive-cli/src/auth/cli/commands/sign-in-magic-link.ts b/sdk/constructive-cli/src/auth/cli/commands/sign-in-magic-link.ts new file mode 100644 index 0000000000..f51c2fc91e --- /dev/null +++ b/sdk/constructive-cli/src/auth/cli/commands/sign-in-magic-link.ts @@ -0,0 +1,51 @@ +/** + * CLI command for mutation signInMagicLink + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ +import { CLIOptions, Inquirerer } from 'inquirerer'; +import { getClient } from '../executor'; +import { unflattenDotNotation, buildSelectFromPaths } from '../utils'; +import type { SignInMagicLinkVariables } from '../../orm/mutation'; +import type { SignInMagicLinkPayloadSelect } from '../../orm/input-types'; +export default async ( + argv: Partial>, + prompter: Inquirerer, + _options: CLIOptions +) => { + try { + if (argv.help || argv.h) { + console.log('sign-in-magic-link - signInMagicLink\n\nUsage: sign-in-magic-link [OPTIONS]\n'); + process.exit(0); + } + const answers = await prompter.prompt(argv, [ + { + type: 'text', + name: 'input', + message: + 'The exclusive input argument for this mutation. An object type, make sure to see documentation for this object\u2019s fields.', + required: true, + }, + ]); + const client = getClient(); + const parsedAnswers = unflattenDotNotation(answers); + const selectFields = buildSelectFromPaths((argv.select as string) ?? 'clientMutationId'); + const result = await client.mutation + .signInMagicLink( + parsedAnswers as unknown as SignInMagicLinkVariables, + { + select: selectFields, + } as unknown as { + select: SignInMagicLinkPayloadSelect; + } + ) + .execute(); + console.log(JSON.stringify(result, null, 2)); + } catch (error) { + console.error('Failed: signInMagicLink'); + if (error instanceof Error) { + console.error(error.message); + } + process.exit(1); + } +}; diff --git a/sdk/constructive-cli/src/auth/cli/commands/sign-up-magic-link.ts b/sdk/constructive-cli/src/auth/cli/commands/sign-up-magic-link.ts new file mode 100644 index 0000000000..00a35332e0 --- /dev/null +++ b/sdk/constructive-cli/src/auth/cli/commands/sign-up-magic-link.ts @@ -0,0 +1,51 @@ +/** + * CLI command for mutation signUpMagicLink + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ +import { CLIOptions, Inquirerer } from 'inquirerer'; +import { getClient } from '../executor'; +import { unflattenDotNotation, buildSelectFromPaths } from '../utils'; +import type { SignUpMagicLinkVariables } from '../../orm/mutation'; +import type { SignUpMagicLinkPayloadSelect } from '../../orm/input-types'; +export default async ( + argv: Partial>, + prompter: Inquirerer, + _options: CLIOptions +) => { + try { + if (argv.help || argv.h) { + console.log('sign-up-magic-link - signUpMagicLink\n\nUsage: sign-up-magic-link [OPTIONS]\n'); + process.exit(0); + } + const answers = await prompter.prompt(argv, [ + { + type: 'text', + name: 'input', + message: + 'The exclusive input argument for this mutation. An object type, make sure to see documentation for this object\u2019s fields.', + required: true, + }, + ]); + const client = getClient(); + const parsedAnswers = unflattenDotNotation(answers); + const selectFields = buildSelectFromPaths((argv.select as string) ?? 'clientMutationId'); + const result = await client.mutation + .signUpMagicLink( + parsedAnswers as unknown as SignUpMagicLinkVariables, + { + select: selectFields, + } as unknown as { + select: SignUpMagicLinkPayloadSelect; + } + ) + .execute(); + console.log(JSON.stringify(result, null, 2)); + } catch (error) { + console.error('Failed: signUpMagicLink'); + if (error instanceof Error) { + console.error(error.message); + } + process.exit(1); + } +}; diff --git a/sdk/constructive-cli/src/auth/orm/README.md b/sdk/constructive-cli/src/auth/orm/README.md index 79d52a6c09..1e4f99a142 100644 --- a/sdk/constructive-cli/src/auth/orm/README.md +++ b/sdk/constructive-cli/src/auth/orm/README.md @@ -921,6 +921,21 @@ signInCrossOrigin const result = await db.mutation.signInCrossOrigin({ input: { credentialKind: '', token: '' } }).execute(); ``` +### `db.mutation.signInMagicLink` + +signInMagicLink + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | SignInMagicLinkInput (required) | + +```typescript +const result = await db.mutation.signInMagicLink({ input: { credentialKind: '', deviceToken: '', rememberMe: '', token: '' } }).execute(); +``` + ### `db.mutation.signInSmsOtp` signInSmsOtp @@ -966,6 +981,21 @@ signUp const result = await db.mutation.signUp({ input: '' }).execute(); ``` +### `db.mutation.signUpMagicLink` + +signUpMagicLink + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | SignUpMagicLinkInput (required) | + +```typescript +const result = await db.mutation.signUpMagicLink({ input: { credentialKind: '', deviceToken: '', rememberMe: '', token: '' } }).execute(); +``` + ### `db.mutation.signUpSms` signUpSms diff --git a/sdk/constructive-cli/src/auth/orm/input-types.ts b/sdk/constructive-cli/src/auth/orm/input-types.ts index b59a65f3f1..f2ea8e5716 100644 --- a/sdk/constructive-cli/src/auth/orm/input-types.ts +++ b/sdk/constructive-cli/src/auth/orm/input-types.ts @@ -306,7 +306,7 @@ export interface OrgApiKeyList { } /** User phone numbers with country code, verification, and primary-number management */ export interface PhoneNumber { - /** Country calling code (e.g. +1, +44) */ + /** Country calling code the number was entered under (e.g. +1, +44). Display only: `number` already carries it, and sign-in matches `number`. */ cc?: string | null; createdAt?: string | null; id: string; @@ -316,7 +316,7 @@ export interface PhoneNumber { isVerified?: boolean | null; /** Optional user-provided label for this phone number (e.g. "Mobile", "Work"). */ name?: string | null; - /** The phone number without country code */ + /** The full number in E.164 form, country calling code included (e.g. +15551234567). This is the value SMS sign-in and MFA match, so it is unique across the table and constrained to that shape. */ number?: string | null; ownerId?: string | null; updatedAt?: string | null; @@ -351,9 +351,9 @@ export interface PrincipalEntity { principalId?: string | null; updatedAt?: string | null; } -/** Per-scope permission overrides for principals. No row = full access; row exists = apply restrictions. */ +/** Per-scope capability overrides for principals. No row = full access; row exists = apply restrictions. */ export interface PrincipalScopeOverride { - /** Optional permission mask; AND-masked with parent permissions during cascade. NULL means no extra mask. */ + /** Optional capability mask; AND-masked with parent capabilities during cascade. NULL means no extra mask. */ allowedMask?: string | null; createdAt?: string | null; id: string; @@ -1866,6 +1866,13 @@ export interface SignInCrossOriginInput { credentialKind?: string; token?: string; } +export interface SignInMagicLinkInput { + clientMutationId?: string; + credentialKind?: string; + deviceToken?: string; + rememberMe?: boolean; + token?: string; +} export interface SignInSmsOtpInput { clientMutationId?: string; code?: string; @@ -1886,6 +1893,13 @@ export interface SignUpInput { password?: string; rememberMe?: boolean; } +export interface SignUpMagicLinkInput { + clientMutationId?: string; + credentialKind?: string; + deviceToken?: string; + rememberMe?: boolean; + token?: string; +} export interface SignUpSmsInput { clientMutationId?: string; code?: string; @@ -2332,7 +2346,7 @@ export interface EmailInput { } /** An input for mutations affecting `PhoneNumber` */ export interface PhoneNumberInput { - /** Country calling code (e.g. +1, +44) */ + /** Country calling code the number was entered under (e.g. +1, +44). Display only: `number` already carries it, and sign-in matches `number`. */ cc: string; createdAt?: string; id?: string; @@ -2342,7 +2356,7 @@ export interface PhoneNumberInput { isVerified?: boolean; /** Optional user-provided label for this phone number (e.g. "Mobile", "Work"). */ name?: string; - /** The phone number without country code */ + /** The full number in E.164 form, country calling code included (e.g. +15551234567). This is the value SMS sign-in and MFA match, so it is unique across the table and constrained to that shape. */ number: string; ownerId?: string; updatedAt?: string; @@ -3271,6 +3285,16 @@ export type SignInCrossOriginPayloadSelect = { select: SignInCrossOriginRecordSelect; }; }; +export interface SignInMagicLinkPayload { + clientMutationId?: string | null; + result?: SignInMagicLinkRecord | null; +} +export type SignInMagicLinkPayloadSelect = { + clientMutationId?: boolean; + result?: { + select: SignInMagicLinkRecordSelect; + }; +}; export interface SignInSmsOtpPayload { clientMutationId?: string | null; result?: SignInSmsOtpRecord | null; @@ -3297,6 +3321,16 @@ export type SignUpPayloadSelect = { select: SignUpRecordSelect; }; }; +export interface SignUpMagicLinkPayload { + clientMutationId?: string | null; + result?: SignUpMagicLinkRecord | null; +} +export type SignUpMagicLinkPayloadSelect = { + clientMutationId?: boolean; + result?: { + select: SignUpMagicLinkRecordSelect; + }; +}; export interface SignUpSmsPayload { clientMutationId?: string | null; result?: SignUpSmsRecord | null; @@ -3765,6 +3799,16 @@ export type SignInCrossOriginRecordSelect = { totpEnabled?: boolean; userId?: boolean; }; +export interface SignInMagicLinkRecord { + accessToken?: string | null; + accessTokenExpiresAt?: string | null; + userId?: string | null; +} +export type SignInMagicLinkRecordSelect = { + accessToken?: boolean; + accessTokenExpiresAt?: boolean; + userId?: boolean; +}; export interface SignInSmsOtpRecord { accessToken?: string | null; accessTokenExpiresAt?: string | null; @@ -3791,6 +3835,16 @@ export type SignUpRecordSelect = { totpEnabled?: boolean; userId?: boolean; }; +export interface SignUpMagicLinkRecord { + accessToken?: string | null; + accessTokenExpiresAt?: string | null; + userId?: string | null; +} +export type SignUpMagicLinkRecordSelect = { + accessToken?: boolean; + accessTokenExpiresAt?: boolean; + userId?: boolean; +}; export interface SignUpSmsRecord { accessToken?: string | null; accessTokenExpiresAt?: string | null; diff --git a/sdk/constructive-cli/src/auth/orm/mutation/index.ts b/sdk/constructive-cli/src/auth/orm/mutation/index.ts index ae0973c7fb..d1531288e5 100644 --- a/sdk/constructive-cli/src/auth/orm/mutation/index.ts +++ b/sdk/constructive-cli/src/auth/orm/mutation/index.ts @@ -30,9 +30,11 @@ import type { SetPasswordInput, SignInInput, SignInCrossOriginInput, + SignInMagicLinkInput, SignInSmsOtpInput, SignOutInput, SignUpInput, + SignUpMagicLinkInput, SignUpSmsInput, VerifyEmailInput, VerifyPasswordInput, @@ -60,9 +62,11 @@ import type { SetPasswordPayload, SignInPayload, SignInCrossOriginPayload, + SignInMagicLinkPayload, SignInSmsOtpPayload, SignOutPayload, SignUpPayload, + SignUpMagicLinkPayload, SignUpSmsPayload, VerifyEmailPayload, VerifyPasswordPayload, @@ -90,9 +94,11 @@ import type { SetPasswordPayloadSelect, SignInPayloadSelect, SignInCrossOriginPayloadSelect, + SignInMagicLinkPayloadSelect, SignInSmsOtpPayloadSelect, SignOutPayloadSelect, SignUpPayloadSelect, + SignUpMagicLinkPayloadSelect, SignUpSmsPayloadSelect, VerifyEmailPayloadSelect, VerifyPasswordPayloadSelect, @@ -175,6 +181,9 @@ export interface SignInVariables { export interface SignInCrossOriginVariables { input: SignInCrossOriginInput; } +export interface SignInMagicLinkVariables { + input: SignInMagicLinkInput; +} export interface SignInSmsOtpVariables { input: SignInSmsOtpInput; } @@ -184,6 +193,9 @@ export interface SignOutVariables { export interface SignUpVariables { input: SignUpInput; } +export interface SignUpMagicLinkVariables { + input: SignUpMagicLinkInput; +} export interface SignUpSmsVariables { input: SignUpSmsInput; } @@ -865,6 +877,35 @@ export function createMutationOperations(client: OrmClient) { 'SignInCrossOriginPayload' ), }), + signInMagicLink: ( + args: SignInMagicLinkVariables, + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + signInMagicLink: InferSelectResult | null; + }>({ + client, + operation: 'mutation', + operationName: 'SignInMagicLink', + fieldName: 'signInMagicLink', + ...buildCustomDocument( + 'mutation', + 'SignInMagicLink', + 'signInMagicLink', + options.select, + args, + [ + { + name: 'input', + type: 'SignInMagicLinkInput!', + }, + ], + connectionFieldsMap, + 'SignInMagicLinkPayload' + ), + }), signInSmsOtp: ( args: SignInSmsOtpVariables, options: { @@ -952,6 +993,35 @@ export function createMutationOperations(client: OrmClient) { 'SignUpPayload' ), }), + signUpMagicLink: ( + args: SignUpMagicLinkVariables, + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + signUpMagicLink: InferSelectResult | null; + }>({ + client, + operation: 'mutation', + operationName: 'SignUpMagicLink', + fieldName: 'signUpMagicLink', + ...buildCustomDocument( + 'mutation', + 'SignUpMagicLink', + 'signUpMagicLink', + options.select, + args, + [ + { + name: 'input', + type: 'SignUpMagicLinkInput!', + }, + ], + connectionFieldsMap, + 'SignUpMagicLinkPayload' + ), + }), signUpSms: ( args: SignUpSmsVariables, options: { diff --git a/sdk/constructive-cli/src/compute/README.md b/sdk/constructive-cli/src/compute/README.md index d742ee023a..c416623c58 100644 --- a/sdk/constructive-cli/src/compute/README.md +++ b/sdk/constructive-cli/src/compute/README.md @@ -8,9 +8,9 @@ ## Overview -- **Tables:** 69 +- **Tables:** 70 - **Custom queries:** 1 -- **Custom mutations:** 28 +- **Custom mutations:** 37 **Generators:** ORM, CLI diff --git a/sdk/constructive-cli/src/compute/cli/README.md b/sdk/constructive-cli/src/compute/cli/README.md index ea957a8bd6..c89b6eb680 100644 --- a/sdk/constructive-cli/src/compute/cli/README.md +++ b/sdk/constructive-cli/src/compute/cli/README.md @@ -26,6 +26,7 @@ csdk auth set-token | `context` | Manage API contexts (endpoints) | | `auth` | Manage authentication tokens | | `config` | Manage config key-value store (per-context) | +| `content-preset` | contentPreset CRUD operations | | `db-preset` | dbPreset CRUD operations | | `function-api-binding` | functionApiBinding CRUD operations | | `function-capability-binding` | functionCapabilityBinding CRUD operations | @@ -105,12 +106,19 @@ csdk auth set-token | `import-graph-json` | importGraphJson | | `infra-init-empty-repo` | infraInitEmptyRepo | | `infra-insert-node-at-path` | infraInsertNodeAtPath | +| `infra-insert-nodes-at-paths` | infraInsertNodesAtPaths | +| `infra-set-and-commit` | infraSetAndCommit | | `infra-set-data-at-path` | infraSetDataAtPath | +| `infra-set-many-and-commit` | infraSetManyAndCommit | | `init-empty-repo` | initEmptyRepo | | `insert-node-at-path` | insertNodeAtPath | +| `insert-nodes-at-paths` | insertNodesAtPaths | | `platform-infra-init-empty-repo` | platformInfraInitEmptyRepo | | `platform-infra-insert-node-at-path` | platformInfraInsertNodeAtPath | +| `platform-infra-insert-nodes-at-paths` | platformInfraInsertNodesAtPaths | +| `platform-infra-set-and-commit` | platformInfraSetAndCommit | | `platform-infra-set-data-at-path` | platformInfraSetDataAtPath | +| `platform-infra-set-many-and-commit` | platformInfraSetManyAndCommit | | `platform-resource-installations-install` | platformResourceInstallationsInstall | | `platform-resource-installations-rollback` | platformResourceInstallationsRollback | | `platform-resource-installations-uninstall` | platformResourceInstallationsUninstall | @@ -124,7 +132,9 @@ and lifecycle settings. | | `resource-installations-uninstall` | resourceInstallationsUninstall | | `resource-installations-upgrade` | resourceInstallationsUpgrade | | `save-graph` | saveGraph | +| `set-and-commit` | setAndCommit | | `set-data-at-path` | setDataAtPath | +| `set-many-and-commit` | setManyAndCommit | | `start-execution` | startExecution | | `validate-function-graph` | validateFunctionGraph | @@ -169,6 +179,38 @@ Variables are scoped to the active context and stored at `~/.csdk/config/`. ## Table Commands +### `content-preset` + +CRUD operations for ContentPreset records. + +| Subcommand | Description | +|------------|-------------| +| `list` | List all contentPreset records | +| `find-first` | Find first matching contentPreset record | +| `get` | Get a contentPreset by id | +| `create` | Create a new contentPreset | +| `update` | Update an existing contentPreset | +| `delete` | Delete a contentPreset | + +**Fields:** + +| Field | Type | +|-------|------| +| `active` | Boolean | +| `commitId` | UUID | +| `createdAt` | Datetime | +| `definition` | JSON | +| `description` | String | +| `id` | UUID | +| `kind` | String | +| `label` | String | +| `slug` | String | +| `storeId` | UUID | +| `updatedAt` | Datetime | + +**Required create fields:** `definition`, `kind`, `slug` +**Optional create fields (backend defaults):** `active`, `commitId`, `description`, `label`, `storeId` + ### `db-preset` CRUD operations for DbPreset records. @@ -309,6 +351,7 @@ CRUD operations for FunctionDefinition records. | `requiredBuckets` | String | | `requiredConfigs` | ResourceRequirement | | `requiredModels` | String | +| `requiredModules` | String | | `requiredSecrets` | ResourceRequirement | | `resources` | JSON | | `runtime` | String | @@ -322,7 +365,7 @@ CRUD operations for FunctionDefinition records. | `volatile` | Boolean | **Required create fields:** `category`, `databaseId`, `name` -**Optional create fields (backend defaults):** `accessChannels`, `concurrency`, `description`, `fnCategory`, `functionColumns`, `graphId`, `icon`, `image`, `inputs`, `integrations`, `isPublished`, `maxAttempts`, `moduleTable`, `outputs`, `payloadArgs`, `priority`, `props`, `protected`, `publishedAt`, `queueName`, `requiredBuckets`, `requiredConfigs`, `requiredModels`, `requiredSecrets`, `resources`, `runtime`, `scaleMax`, `scaleMin`, `targetFunction`, `targetSchema`, `timeoutSeconds`, `volatile` +**Optional create fields (backend defaults):** `accessChannels`, `concurrency`, `description`, `fnCategory`, `functionColumns`, `graphId`, `icon`, `image`, `inputs`, `integrations`, `isPublished`, `maxAttempts`, `moduleTable`, `outputs`, `payloadArgs`, `priority`, `props`, `protected`, `publishedAt`, `queueName`, `requiredBuckets`, `requiredConfigs`, `requiredModels`, `requiredModules`, `requiredSecrets`, `resources`, `runtime`, `scaleMax`, `scaleMin`, `targetFunction`, `targetSchema`, `timeoutSeconds`, `volatile` ### `function-deployment` @@ -354,6 +397,7 @@ CRUD operations for FunctionDeployment records. | `lastError` | String | | `lastErrorAt` | Datetime | | `namespaceId` | UUID | +| `realm` | String | | `resources` | JSON | | `revision` | Int | | `scaleMax` | Int | @@ -365,7 +409,7 @@ CRUD operations for FunctionDeployment records. | `updatedAt` | Datetime | **Required create fields:** `databaseId`, `image`, `namespaceId` -**Optional create fields (backend defaults):** `annotations`, `concurrency`, `errorCount`, `handlerName`, `imageVersion`, `labels`, `lastError`, `lastErrorAt`, `resources`, `revision`, `scaleMax`, `scaleMin`, `serviceName`, `serviceUrl`, `status`, `timeoutSeconds` +**Optional create fields (backend defaults):** `annotations`, `concurrency`, `errorCount`, `handlerName`, `imageVersion`, `labels`, `lastError`, `lastErrorAt`, `realm`, `resources`, `revision`, `scaleMax`, `scaleMin`, `serviceName`, `serviceUrl`, `status`, `timeoutSeconds` ### `function-deployment-event` @@ -1112,6 +1156,7 @@ CRUD operations for PlatformFunctionDefinition records. | `requiredBuckets` | String | | `requiredConfigs` | ResourceRequirement | | `requiredModels` | String | +| `requiredModules` | String | | `requiredSecrets` | ResourceRequirement | | `resources` | JSON | | `runtime` | String | @@ -1126,7 +1171,7 @@ CRUD operations for PlatformFunctionDefinition records. | `volatile` | Boolean | **Required create fields:** `category`, `name` -**Optional create fields (backend defaults):** `accessChannels`, `billable`, `concurrency`, `description`, `fnCategory`, `functionColumns`, `graphId`, `icon`, `image`, `inputs`, `integrations`, `isPublished`, `maxAttempts`, `moduleTable`, `outputs`, `payloadArgs`, `priority`, `props`, `protected`, `publishedAt`, `queueName`, `requiredBuckets`, `requiredConfigs`, `requiredModels`, `requiredSecrets`, `resources`, `runtime`, `scaleMax`, `scaleMin`, `system`, `targetFunction`, `targetSchema`, `timeoutSeconds`, `volatile` +**Optional create fields (backend defaults):** `accessChannels`, `billable`, `concurrency`, `description`, `fnCategory`, `functionColumns`, `graphId`, `icon`, `image`, `inputs`, `integrations`, `isPublished`, `maxAttempts`, `moduleTable`, `outputs`, `payloadArgs`, `priority`, `props`, `protected`, `publishedAt`, `queueName`, `requiredBuckets`, `requiredConfigs`, `requiredModels`, `requiredModules`, `requiredSecrets`, `resources`, `runtime`, `scaleMax`, `scaleMin`, `system`, `targetFunction`, `targetSchema`, `timeoutSeconds`, `volatile` ### `platform-function-deployment` @@ -1157,6 +1202,7 @@ CRUD operations for PlatformFunctionDeployment records. | `lastError` | String | | `lastErrorAt` | Datetime | | `namespaceId` | UUID | +| `realm` | String | | `resources` | JSON | | `revision` | Int | | `scaleMax` | Int | @@ -1168,7 +1214,7 @@ CRUD operations for PlatformFunctionDeployment records. | `updatedAt` | Datetime | **Required create fields:** `image`, `namespaceId` -**Optional create fields (backend defaults):** `annotations`, `concurrency`, `errorCount`, `handlerName`, `imageVersion`, `labels`, `lastError`, `lastErrorAt`, `resources`, `revision`, `scaleMax`, `scaleMin`, `serviceName`, `serviceUrl`, `status`, `timeoutSeconds` +**Optional create fields (backend defaults):** `annotations`, `concurrency`, `errorCount`, `handlerName`, `imageVersion`, `labels`, `lastError`, `lastErrorAt`, `realm`, `resources`, `revision`, `scaleMax`, `scaleMin`, `serviceName`, `serviceUrl`, `status`, `timeoutSeconds` ### `platform-function-deployment-event` @@ -2641,6 +2687,42 @@ infraInsertNodeAtPath | `--input.root` | UUID | | `--input.sId` | UUID | +### `infra-insert-nodes-at-paths` + +infraInsertNodesAtPaths + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `--input.clientMutationId` | String | + | `--input.datas` | JSON | + | `--input.kidsList` | JSON | + | `--input.ktreeList` | JSON | + | `--input.paths` | JSON | + | `--input.root` | UUID | + | `--input.sId` | UUID | + +### `infra-set-and-commit` + +infraSetAndCommit + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `--input.clientMutationId` | String | + | `--input.data` | JSON | + | `--input.kids` | UUID | + | `--input.ktree` | String | + | `--input.message` | String | + | `--input.path` | String | + | `--input.refname` | String | + | `--input.sId` | UUID | + | `--input.storeId` | UUID | + ### `infra-set-data-at-path` infraSetDataAtPath @@ -2656,6 +2738,22 @@ infraSetDataAtPath | `--input.root` | UUID | | `--input.sId` | UUID | +### `infra-set-many-and-commit` + +infraSetManyAndCommit + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `--input.clientMutationId` | String | + | `--input.entries` | JSON | + | `--input.message` | String | + | `--input.refname` | String | + | `--input.sId` | UUID | + | `--input.storeId` | UUID | + ### `init-empty-repo` initEmptyRepo @@ -2686,6 +2784,23 @@ insertNodeAtPath | `--input.root` | UUID | | `--input.sId` | UUID | +### `insert-nodes-at-paths` + +insertNodesAtPaths + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `--input.clientMutationId` | String | + | `--input.datas` | JSON | + | `--input.kidsList` | JSON | + | `--input.ktreeList` | JSON | + | `--input.paths` | JSON | + | `--input.root` | UUID | + | `--input.sId` | UUID | + ### `platform-infra-init-empty-repo` platformInfraInitEmptyRepo @@ -2716,6 +2831,42 @@ platformInfraInsertNodeAtPath | `--input.root` | UUID | | `--input.sId` | UUID | +### `platform-infra-insert-nodes-at-paths` + +platformInfraInsertNodesAtPaths + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `--input.clientMutationId` | String | + | `--input.datas` | JSON | + | `--input.kidsList` | JSON | + | `--input.ktreeList` | JSON | + | `--input.paths` | JSON | + | `--input.root` | UUID | + | `--input.sId` | UUID | + +### `platform-infra-set-and-commit` + +platformInfraSetAndCommit + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `--input.clientMutationId` | String | + | `--input.data` | JSON | + | `--input.kids` | UUID | + | `--input.ktree` | String | + | `--input.message` | String | + | `--input.path` | String | + | `--input.refname` | String | + | `--input.sId` | UUID | + | `--input.storeId` | UUID | + ### `platform-infra-set-data-at-path` platformInfraSetDataAtPath @@ -2731,6 +2882,22 @@ platformInfraSetDataAtPath | `--input.root` | UUID | | `--input.sId` | UUID | +### `platform-infra-set-many-and-commit` + +platformInfraSetManyAndCommit + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `--input.clientMutationId` | String | + | `--input.entries` | JSON | + | `--input.message` | String | + | `--input.refname` | String | + | `--input.sId` | UUID | + | `--input.storeId` | UUID | + ### `platform-resource-installations-install` platformResourceInstallationsInstall @@ -2868,6 +3035,25 @@ saveGraph | `--input.message` | String | | `--input.rootHash` | UUID | +### `set-and-commit` + +setAndCommit + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `--input.clientMutationId` | String | + | `--input.data` | JSON | + | `--input.kids` | UUID | + | `--input.ktree` | String | + | `--input.message` | String | + | `--input.path` | String | + | `--input.refname` | String | + | `--input.sId` | UUID | + | `--input.storeId` | UUID | + ### `set-data-at-path` setDataAtPath @@ -2883,6 +3069,22 @@ setDataAtPath | `--input.root` | UUID | | `--input.sId` | UUID | +### `set-many-and-commit` + +setManyAndCommit + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `--input.clientMutationId` | String | + | `--input.entries` | JSON | + | `--input.message` | String | + | `--input.refname` | String | + | `--input.sId` | UUID | + | `--input.storeId` | UUID | + ### `start-execution` startExecution diff --git a/sdk/constructive-cli/src/compute/cli/commands.ts b/sdk/constructive-cli/src/compute/cli/commands.ts index 74e0a6f084..fb29ebbd3b 100644 --- a/sdk/constructive-cli/src/compute/cli/commands.ts +++ b/sdk/constructive-cli/src/compute/cli/commands.ts @@ -6,6 +6,7 @@ import { CLIOptions, Inquirerer, extractFirst } from 'inquirerer'; import contextCmd from './commands/context'; import authCmd from './commands/auth'; +import contentPresetCmd from './commands/content-preset'; import dbPresetCmd from './commands/db-preset'; import functionApiBindingCmd from './commands/function-api-binding'; import functionCapabilityBindingCmd from './commands/function-capability-binding'; @@ -85,12 +86,19 @@ import importDefinitionsCmd from './commands/import-definitions'; import importGraphJsonCmd from './commands/import-graph-json'; import infraInitEmptyRepoCmd from './commands/infra-init-empty-repo'; import infraInsertNodeAtPathCmd from './commands/infra-insert-node-at-path'; +import infraInsertNodesAtPathsCmd from './commands/infra-insert-nodes-at-paths'; +import infraSetAndCommitCmd from './commands/infra-set-and-commit'; import infraSetDataAtPathCmd from './commands/infra-set-data-at-path'; +import infraSetManyAndCommitCmd from './commands/infra-set-many-and-commit'; import initEmptyRepoCmd from './commands/init-empty-repo'; import insertNodeAtPathCmd from './commands/insert-node-at-path'; +import insertNodesAtPathsCmd from './commands/insert-nodes-at-paths'; import platformInfraInitEmptyRepoCmd from './commands/platform-infra-init-empty-repo'; import platformInfraInsertNodeAtPathCmd from './commands/platform-infra-insert-node-at-path'; +import platformInfraInsertNodesAtPathsCmd from './commands/platform-infra-insert-nodes-at-paths'; +import platformInfraSetAndCommitCmd from './commands/platform-infra-set-and-commit'; import platformInfraSetDataAtPathCmd from './commands/platform-infra-set-data-at-path'; +import platformInfraSetManyAndCommitCmd from './commands/platform-infra-set-many-and-commit'; import platformResourceInstallationsInstallCmd from './commands/platform-resource-installations-install'; import platformResourceInstallationsRollbackCmd from './commands/platform-resource-installations-rollback'; import platformResourceInstallationsUninstallCmd from './commands/platform-resource-installations-uninstall'; @@ -101,7 +109,9 @@ import resourceInstallationsRollbackCmd from './commands/resource-installations- import resourceInstallationsUninstallCmd from './commands/resource-installations-uninstall'; import resourceInstallationsUpgradeCmd from './commands/resource-installations-upgrade'; import saveGraphCmd from './commands/save-graph'; +import setAndCommitCmd from './commands/set-and-commit'; import setDataAtPathCmd from './commands/set-data-at-path'; +import setManyAndCommitCmd from './commands/set-many-and-commit'; import startExecutionCmd from './commands/start-execution'; import validateFunctionGraphCmd from './commands/validate-function-graph'; const createCommandMap: () => Record< @@ -114,6 +124,7 @@ const createCommandMap: () => Record< > = () => ({ context: contextCmd, auth: authCmd, + 'content-preset': contentPresetCmd, 'db-preset': dbPresetCmd, 'function-api-binding': functionApiBindingCmd, 'function-capability-binding': functionCapabilityBindingCmd, @@ -193,12 +204,19 @@ const createCommandMap: () => Record< 'import-graph-json': importGraphJsonCmd, 'infra-init-empty-repo': infraInitEmptyRepoCmd, 'infra-insert-node-at-path': infraInsertNodeAtPathCmd, + 'infra-insert-nodes-at-paths': infraInsertNodesAtPathsCmd, + 'infra-set-and-commit': infraSetAndCommitCmd, 'infra-set-data-at-path': infraSetDataAtPathCmd, + 'infra-set-many-and-commit': infraSetManyAndCommitCmd, 'init-empty-repo': initEmptyRepoCmd, 'insert-node-at-path': insertNodeAtPathCmd, + 'insert-nodes-at-paths': insertNodesAtPathsCmd, 'platform-infra-init-empty-repo': platformInfraInitEmptyRepoCmd, 'platform-infra-insert-node-at-path': platformInfraInsertNodeAtPathCmd, + 'platform-infra-insert-nodes-at-paths': platformInfraInsertNodesAtPathsCmd, + 'platform-infra-set-and-commit': platformInfraSetAndCommitCmd, 'platform-infra-set-data-at-path': platformInfraSetDataAtPathCmd, + 'platform-infra-set-many-and-commit': platformInfraSetManyAndCommitCmd, 'platform-resource-installations-install': platformResourceInstallationsInstallCmd, 'platform-resource-installations-rollback': platformResourceInstallationsRollbackCmd, 'platform-resource-installations-uninstall': platformResourceInstallationsUninstallCmd, @@ -209,12 +227,14 @@ const createCommandMap: () => Record< 'resource-installations-uninstall': resourceInstallationsUninstallCmd, 'resource-installations-upgrade': resourceInstallationsUpgradeCmd, 'save-graph': saveGraphCmd, + 'set-and-commit': setAndCommitCmd, 'set-data-at-path': setDataAtPathCmd, + 'set-many-and-commit': setManyAndCommitCmd, 'start-execution': startExecutionCmd, 'validate-function-graph': validateFunctionGraphCmd, }); const usage = - '\ncsdk \n\nCommands:\n context Manage API contexts\n auth Manage authentication\n db-preset dbPreset CRUD operations\n function-api-binding functionApiBinding CRUD operations\n function-capability-binding functionCapabilityBinding CRUD operations\n function-definition functionDefinition CRUD operations\n function-deployment functionDeployment CRUD operations\n function-deployment-event functionDeploymentEvent CRUD operations\n function-execution-log functionExecutionLog CRUD operations\n function-graph-commit functionGraphCommit CRUD operations\n function-graph functionGraph CRUD operations\n function-graph-execution functionGraphExecution CRUD operations\n function-graph-execution-node-state functionGraphExecutionNodeState CRUD operations\n function-graph-execution-output functionGraphExecutionOutput CRUD operations\n function-graph-object functionGraphObject CRUD operations\n function-graph-ref functionGraphRef CRUD operations\n function-graph-store functionGraphStore CRUD operations\n function-invocation-attempt functionInvocationAttempt CRUD operations\n function-invocation functionInvocation CRUD operations\n get-all-tree-nodes-record getAllTreeNodesRecord CRUD operations\n infra-commit infraCommit CRUD operations\n infra-get-all-tree-nodes-record infraGetAllTreeNodesRecord CRUD operations\n infra-object infraObject CRUD operations\n infra-ref infraRef CRUD operations\n infra-store infraStore CRUD operations\n integration-provider integrationProvider CRUD operations\n namespace namespace CRUD operations\n namespace-event namespaceEvent CRUD operations\n platform-function-api-binding platformFunctionApiBinding CRUD operations\n platform-function-capability-binding platformFunctionCapabilityBinding CRUD operations\n platform-function-definition platformFunctionDefinition CRUD operations\n platform-function-deployment platformFunctionDeployment CRUD operations\n platform-function-deployment-event platformFunctionDeploymentEvent CRUD operations\n platform-function-execution-log platformFunctionExecutionLog CRUD operations\n platform-function-invocation-attempt platformFunctionInvocationAttempt CRUD operations\n platform-function-invocation platformFunctionInvocation CRUD operations\n platform-infra-commit platformInfraCommit CRUD operations\n platform-infra-get-all-tree-nodes-record platformInfraGetAllTreeNodesRecord CRUD operations\n platform-infra-object platformInfraObject CRUD operations\n platform-infra-ref platformInfraRef CRUD operations\n platform-infra-store platformInfraStore CRUD operations\n platform-namespace platformNamespace CRUD operations\n platform-namespace-event platformNamespaceEvent CRUD operations\n platform-resource platformResource CRUD operations\n platform-resource-declared-capacity platformResourceDeclaredCapacity CRUD operations\n platform-resource-definition platformResourceDefinition CRUD operations\n platform-resource-event platformResourceEvent CRUD operations\n platform-resource-installation platformResourceInstallation CRUD operations\n platform-resource-status-check platformResourceStatusCheck CRUD operations\n platform-resource-usage-log platformResourceUsageLog CRUD operations\n platform-resource-usage-summary platformResourceUsageSummary CRUD operations\n platform-resource-utilization platformResourceUtilization CRUD operations\n platform-resources-health platformResourcesHealth CRUD operations\n platform-resources-requirements-state platformResourcesRequirementsState CRUD operations\n platform-resources-resolved-requirement platformResourcesResolvedRequirement CRUD operations\n platform-webhook-endpoint platformWebhookEndpoint CRUD operations\n platform-webhook-event platformWebhookEvent CRUD operations\n resource resource CRUD operations\n resource-declared-capacity resourceDeclaredCapacity CRUD operations\n resource-definition resourceDefinition CRUD operations\n resource-event resourceEvent CRUD operations\n resource-installation resourceInstallation CRUD operations\n resource-status-check resourceStatusCheck CRUD operations\n resource-usage-log resourceUsageLog CRUD operations\n resource-usage-summary resourceUsageSummary CRUD operations\n resource-utilization resourceUtilization CRUD operations\n resources-health resourcesHealth CRUD operations\n resources-requirements-state resourcesRequirementsState CRUD operations\n resources-resolved-requirement resourcesResolvedRequirement CRUD operations\n webhook-endpoint webhookEndpoint CRUD operations\n webhook-event webhookEvent CRUD operations\n read-function-graph readFunctionGraph\n add-edge addEdge\n add-edge-and-save addEdgeAndSave\n add-node addNode\n add-node-and-save addNodeAndSave\n copy-graph copyGraph\n import-definitions importDefinitions\n import-graph-json importGraphJson\n infra-init-empty-repo infraInitEmptyRepo\n infra-insert-node-at-path infraInsertNodeAtPath\n infra-set-data-at-path infraSetDataAtPath\n init-empty-repo initEmptyRepo\n insert-node-at-path insertNodeAtPath\n platform-infra-init-empty-repo platformInfraInitEmptyRepo\n platform-infra-insert-node-at-path platformInfraInsertNodeAtPath\n platform-infra-set-data-at-path platformInfraSetDataAtPath\n platform-resource-installations-install platformResourceInstallationsInstall\n platform-resource-installations-rollback platformResourceInstallationsRollback\n platform-resource-installations-uninstall platformResourceInstallationsUninstall\n platform-resource-installations-upgrade platformResourceInstallationsUpgrade\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 resource-installations-install resourceInstallationsInstall\n resource-installations-rollback resourceInstallationsRollback\n resource-installations-uninstall resourceInstallationsUninstall\n resource-installations-upgrade resourceInstallationsUpgrade\n save-graph saveGraph\n set-data-at-path setDataAtPath\n start-execution startExecution\n validate-function-graph validateFunctionGraph\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 content-preset contentPreset CRUD operations\n db-preset dbPreset CRUD operations\n function-api-binding functionApiBinding CRUD operations\n function-capability-binding functionCapabilityBinding CRUD operations\n function-definition functionDefinition CRUD operations\n function-deployment functionDeployment CRUD operations\n function-deployment-event functionDeploymentEvent CRUD operations\n function-execution-log functionExecutionLog CRUD operations\n function-graph-commit functionGraphCommit CRUD operations\n function-graph functionGraph CRUD operations\n function-graph-execution functionGraphExecution CRUD operations\n function-graph-execution-node-state functionGraphExecutionNodeState CRUD operations\n function-graph-execution-output functionGraphExecutionOutput CRUD operations\n function-graph-object functionGraphObject CRUD operations\n function-graph-ref functionGraphRef CRUD operations\n function-graph-store functionGraphStore CRUD operations\n function-invocation-attempt functionInvocationAttempt CRUD operations\n function-invocation functionInvocation CRUD operations\n get-all-tree-nodes-record getAllTreeNodesRecord CRUD operations\n infra-commit infraCommit CRUD operations\n infra-get-all-tree-nodes-record infraGetAllTreeNodesRecord CRUD operations\n infra-object infraObject CRUD operations\n infra-ref infraRef CRUD operations\n infra-store infraStore CRUD operations\n integration-provider integrationProvider CRUD operations\n namespace namespace CRUD operations\n namespace-event namespaceEvent CRUD operations\n platform-function-api-binding platformFunctionApiBinding CRUD operations\n platform-function-capability-binding platformFunctionCapabilityBinding CRUD operations\n platform-function-definition platformFunctionDefinition CRUD operations\n platform-function-deployment platformFunctionDeployment CRUD operations\n platform-function-deployment-event platformFunctionDeploymentEvent CRUD operations\n platform-function-execution-log platformFunctionExecutionLog CRUD operations\n platform-function-invocation-attempt platformFunctionInvocationAttempt CRUD operations\n platform-function-invocation platformFunctionInvocation CRUD operations\n platform-infra-commit platformInfraCommit CRUD operations\n platform-infra-get-all-tree-nodes-record platformInfraGetAllTreeNodesRecord CRUD operations\n platform-infra-object platformInfraObject CRUD operations\n platform-infra-ref platformInfraRef CRUD operations\n platform-infra-store platformInfraStore CRUD operations\n platform-namespace platformNamespace CRUD operations\n platform-namespace-event platformNamespaceEvent CRUD operations\n platform-resource platformResource CRUD operations\n platform-resource-declared-capacity platformResourceDeclaredCapacity CRUD operations\n platform-resource-definition platformResourceDefinition CRUD operations\n platform-resource-event platformResourceEvent CRUD operations\n platform-resource-installation platformResourceInstallation CRUD operations\n platform-resource-status-check platformResourceStatusCheck CRUD operations\n platform-resource-usage-log platformResourceUsageLog CRUD operations\n platform-resource-usage-summary platformResourceUsageSummary CRUD operations\n platform-resource-utilization platformResourceUtilization CRUD operations\n platform-resources-health platformResourcesHealth CRUD operations\n platform-resources-requirements-state platformResourcesRequirementsState CRUD operations\n platform-resources-resolved-requirement platformResourcesResolvedRequirement CRUD operations\n platform-webhook-endpoint platformWebhookEndpoint CRUD operations\n platform-webhook-event platformWebhookEvent CRUD operations\n resource resource CRUD operations\n resource-declared-capacity resourceDeclaredCapacity CRUD operations\n resource-definition resourceDefinition CRUD operations\n resource-event resourceEvent CRUD operations\n resource-installation resourceInstallation CRUD operations\n resource-status-check resourceStatusCheck CRUD operations\n resource-usage-log resourceUsageLog CRUD operations\n resource-usage-summary resourceUsageSummary CRUD operations\n resource-utilization resourceUtilization CRUD operations\n resources-health resourcesHealth CRUD operations\n resources-requirements-state resourcesRequirementsState CRUD operations\n resources-resolved-requirement resourcesResolvedRequirement CRUD operations\n webhook-endpoint webhookEndpoint CRUD operations\n webhook-event webhookEvent CRUD operations\n read-function-graph readFunctionGraph\n add-edge addEdge\n add-edge-and-save addEdgeAndSave\n add-node addNode\n add-node-and-save addNodeAndSave\n copy-graph copyGraph\n import-definitions importDefinitions\n import-graph-json importGraphJson\n infra-init-empty-repo infraInitEmptyRepo\n infra-insert-node-at-path infraInsertNodeAtPath\n infra-insert-nodes-at-paths infraInsertNodesAtPaths\n infra-set-and-commit infraSetAndCommit\n infra-set-data-at-path infraSetDataAtPath\n infra-set-many-and-commit infraSetManyAndCommit\n init-empty-repo initEmptyRepo\n insert-node-at-path insertNodeAtPath\n insert-nodes-at-paths insertNodesAtPaths\n platform-infra-init-empty-repo platformInfraInitEmptyRepo\n platform-infra-insert-node-at-path platformInfraInsertNodeAtPath\n platform-infra-insert-nodes-at-paths platformInfraInsertNodesAtPaths\n platform-infra-set-and-commit platformInfraSetAndCommit\n platform-infra-set-data-at-path platformInfraSetDataAtPath\n platform-infra-set-many-and-commit platformInfraSetManyAndCommit\n platform-resource-installations-install platformResourceInstallationsInstall\n platform-resource-installations-rollback platformResourceInstallationsRollback\n platform-resource-installations-uninstall platformResourceInstallationsUninstall\n platform-resource-installations-upgrade platformResourceInstallationsUpgrade\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 resource-installations-install resourceInstallationsInstall\n resource-installations-rollback resourceInstallationsRollback\n resource-installations-uninstall resourceInstallationsUninstall\n resource-installations-upgrade resourceInstallationsUpgrade\n save-graph saveGraph\n set-and-commit setAndCommit\n set-data-at-path setDataAtPath\n set-many-and-commit setManyAndCommit\n start-execution startExecution\n validate-function-graph validateFunctionGraph\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/org-permission.ts b/sdk/constructive-cli/src/compute/cli/commands/content-preset.ts similarity index 64% rename from sdk/constructive-cli/src/admin/cli/commands/org-permission.ts rename to sdk/constructive-cli/src/compute/cli/commands/content-preset.ts index 997efa2456..806af4a770 100644 --- a/sdk/constructive-cli/src/admin/cli/commands/org-permission.ts +++ b/sdk/constructive-cli/src/compute/cli/commands/content-preset.ts @@ -1,5 +1,5 @@ /** - * CLI commands for OrgPermission + * CLI commands for ContentPreset * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -8,22 +8,28 @@ import { getClient } from '../executor'; import { coerceAnswers, parseFindFirstArgs, parseFindManyArgs, stripUndefined } from '../utils'; import type { FieldSchema } from '../utils'; import type { - CreateOrgPermissionInput, - OrgPermissionPatch, - OrgPermissionSelect, - OrgPermissionFilter, - OrgPermissionOrderBy, + CreateContentPresetInput, + ContentPresetPatch, + ContentPresetSelect, + ContentPresetFilter, + ContentPresetOrderBy, } from '../../orm/input-types'; import type { FindManyArgs, FindFirstArgs } from '../../orm/select-types'; const fieldSchema: FieldSchema = { - bitnum: 'int', - bitstr: 'string', + active: 'boolean', + commitId: 'uuid', + createdAt: 'string', + definition: 'json', description: 'string', id: 'uuid', - name: 'string', + kind: 'string', + label: 'string', + slug: 'string', + storeId: 'uuid', + updatedAt: 'string', }; const usage = - '\norg-permission \n\nCommands:\n list List orgPermission records\n find-first Find first matching orgPermission record\n get Get a orgPermission by ID\n create Create a new orgPermission\n update Update an existing orgPermission\n delete Delete a orgPermission\n\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'; + '\ncontent-preset \n\nCommands:\n list List contentPreset records\n find-first Find first matching contentPreset record\n get Get a contentPreset by ID\n create Create a new contentPreset\n update Update an existing contentPreset\n delete Delete a contentPreset\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, @@ -73,19 +79,25 @@ async function handleTableSubcommand( async function handleList(argv: Partial>, _prompter: Inquirerer) { try { const defaultSelect = { - bitnum: true, - bitstr: true, + active: true, + commitId: true, + createdAt: true, + definition: true, description: true, id: true, - name: true, + kind: true, + label: true, + slug: true, + storeId: true, + updatedAt: true, }; const findManyArgs = parseFindManyArgs< - FindManyArgs & { - select: OrgPermissionSelect; + FindManyArgs & { + select: ContentPresetSelect; } >(argv, defaultSelect); const client = getClient(); - const result = await client.orgPermission.findMany(findManyArgs).execute(); + const result = await client.contentPreset.findMany(findManyArgs).execute(); console.log(JSON.stringify(result, null, 2)); } catch (error) { console.error('Failed to list records.'); @@ -98,19 +110,25 @@ async function handleList(argv: Partial>, _prompter: Inq async function handleFindFirst(argv: Partial>, _prompter: Inquirerer) { try { const defaultSelect = { - bitnum: true, - bitstr: true, + active: true, + commitId: true, + createdAt: true, + definition: true, description: true, id: true, - name: true, + kind: true, + label: true, + slug: true, + storeId: true, + updatedAt: true, }; const findFirstArgs = parseFindFirstArgs< - FindFirstArgs & { - select: OrgPermissionSelect; + FindFirstArgs & { + select: ContentPresetSelect; } >(argv, defaultSelect); const client = getClient(); - const result = await client.orgPermission.findFirst(findFirstArgs).execute(); + const result = await client.contentPreset.findFirst(findFirstArgs).execute(); console.log(JSON.stringify(result, null, 2)); } catch (error) { console.error('Failed to find record.'); @@ -131,15 +149,21 @@ async function handleGet(argv: Partial>, prompter: Inqui }, ]); const client = getClient(); - const result = await client.orgPermission + const result = await client.contentPreset .findOne({ id: answers.id as string, select: { - bitnum: true, - bitstr: true, + active: true, + commitId: true, + createdAt: true, + definition: true, description: true, id: true, - name: true, + kind: true, + label: true, + slug: true, + storeId: true, + updatedAt: true, }, }) .execute(); @@ -156,19 +180,25 @@ async function handleCreate(argv: Partial>, prompter: In try { const rawAnswers = await prompter.prompt(argv, [ { - type: 'text', - name: 'bitnum', - message: 'bitnum', + type: 'boolean', + name: 'active', + message: 'active', required: false, skipPrompt: true, }, { type: 'text', - name: 'bitstr', - message: 'bitstr', + name: 'commitId', + message: 'commitId', required: false, skipPrompt: true, }, + { + type: 'json', + name: 'definition', + message: 'definition', + required: true, + }, { type: 'text', name: 'description', @@ -178,8 +208,27 @@ async function handleCreate(argv: Partial>, prompter: In }, { type: 'text', - name: 'name', - message: 'name', + name: 'kind', + message: 'kind', + required: true, + }, + { + type: 'text', + name: 'label', + message: 'label', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'slug', + message: 'slug', + required: true, + }, + { + type: 'text', + name: 'storeId', + message: 'storeId', required: false, skipPrompt: true, }, @@ -188,22 +237,32 @@ async function handleCreate(argv: Partial>, prompter: In const cleanedData = stripUndefined( answers, fieldSchema - ) as CreateOrgPermissionInput['orgPermission']; + ) as CreateContentPresetInput['contentPreset']; const client = getClient(); - const result = await client.orgPermission + const result = await client.contentPreset .create({ data: { - bitnum: cleanedData.bitnum, - bitstr: cleanedData.bitstr, + active: cleanedData.active, + commitId: cleanedData.commitId, + definition: cleanedData.definition, description: cleanedData.description, - name: cleanedData.name, + kind: cleanedData.kind, + label: cleanedData.label, + slug: cleanedData.slug, + storeId: cleanedData.storeId, }, select: { - bitnum: true, - bitstr: true, + active: true, + commitId: true, + createdAt: true, + definition: true, description: true, id: true, - name: true, + kind: true, + label: true, + slug: true, + storeId: true, + updatedAt: true, }, }) .execute(); @@ -226,19 +285,25 @@ async function handleUpdate(argv: Partial>, prompter: In required: true, }, { - type: 'text', - name: 'bitnum', - message: 'bitnum', + type: 'boolean', + name: 'active', + message: 'active', required: false, skipPrompt: true, }, { type: 'text', - name: 'bitstr', - message: 'bitstr', + name: 'commitId', + message: 'commitId', required: false, skipPrompt: true, }, + { + type: 'json', + name: 'definition', + message: 'definition', + required: false, + }, { type: 'text', name: 'description', @@ -248,32 +313,61 @@ async function handleUpdate(argv: Partial>, prompter: In }, { type: 'text', - name: 'name', - message: 'name', + name: 'kind', + message: 'kind', + required: false, + }, + { + type: 'text', + name: 'label', + message: 'label', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'slug', + message: 'slug', + required: false, + }, + { + type: 'text', + name: 'storeId', + message: 'storeId', required: false, skipPrompt: true, }, ]); const answers = coerceAnswers(rawAnswers, fieldSchema); - const cleanedData = stripUndefined(answers, fieldSchema) as OrgPermissionPatch; + const cleanedData = stripUndefined(answers, fieldSchema) as ContentPresetPatch; const client = getClient(); - const result = await client.orgPermission + const result = await client.contentPreset .update({ where: { id: answers.id as string, }, data: { - bitnum: cleanedData.bitnum, - bitstr: cleanedData.bitstr, + active: cleanedData.active, + commitId: cleanedData.commitId, + definition: cleanedData.definition, description: cleanedData.description, - name: cleanedData.name, + kind: cleanedData.kind, + label: cleanedData.label, + slug: cleanedData.slug, + storeId: cleanedData.storeId, }, select: { - bitnum: true, - bitstr: true, + active: true, + commitId: true, + createdAt: true, + definition: true, description: true, id: true, - name: true, + kind: true, + label: true, + slug: true, + storeId: true, + updatedAt: true, }, }) .execute(); @@ -298,7 +392,7 @@ async function handleDelete(argv: Partial>, prompter: In ]); const answers = coerceAnswers(rawAnswers, fieldSchema); const client = getClient(); - const result = await client.orgPermission + const result = await client.contentPreset .delete({ where: { id: answers.id as string, diff --git a/sdk/constructive-cli/src/compute/cli/commands/function-definition.ts b/sdk/constructive-cli/src/compute/cli/commands/function-definition.ts index 4f44ce5afc..fb82f4dfd6 100644 --- a/sdk/constructive-cli/src/compute/cli/commands/function-definition.ts +++ b/sdk/constructive-cli/src/compute/cli/commands/function-definition.ts @@ -48,6 +48,7 @@ const fieldSchema: FieldSchema = { requiredBuckets: 'string', requiredConfigs: 'string', requiredModels: 'string', + requiredModules: 'string', requiredSecrets: 'string', resources: 'json', runtime: 'string', @@ -139,6 +140,7 @@ async function handleList(argv: Partial>, _prompter: Inq requiredBuckets: true, requiredConfigs: true, requiredModels: true, + requiredModules: true, requiredSecrets: true, resources: true, runtime: true, @@ -201,6 +203,7 @@ async function handleFindFirst(argv: Partial>, _prompter requiredBuckets: true, requiredConfigs: true, requiredModels: true, + requiredModules: true, requiredSecrets: true, resources: true, runtime: true, @@ -275,6 +278,7 @@ async function handleGet(argv: Partial>, prompter: Inqui requiredBuckets: true, requiredConfigs: true, requiredModels: true, + requiredModules: true, requiredSecrets: true, resources: true, runtime: true, @@ -479,6 +483,13 @@ async function handleCreate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'text', + name: 'requiredModules', + message: 'requiredModules', + required: false, + skipPrompt: true, + }, { type: 'text', name: 'requiredSecrets', @@ -578,6 +589,7 @@ async function handleCreate(argv: Partial>, prompter: In requiredBuckets: cleanedData.requiredBuckets, requiredConfigs: cleanedData.requiredConfigs, requiredModels: cleanedData.requiredModels, + requiredModules: cleanedData.requiredModules, requiredSecrets: cleanedData.requiredSecrets, resources: cleanedData.resources, runtime: cleanedData.runtime, @@ -617,6 +629,7 @@ async function handleCreate(argv: Partial>, prompter: In requiredBuckets: true, requiredConfigs: true, requiredModels: true, + requiredModules: true, requiredSecrets: true, resources: true, runtime: true, @@ -827,6 +840,13 @@ async function handleUpdate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'text', + name: 'requiredModules', + message: 'requiredModules', + required: false, + skipPrompt: true, + }, { type: 'text', name: 'requiredSecrets', @@ -926,6 +946,7 @@ async function handleUpdate(argv: Partial>, prompter: In requiredBuckets: cleanedData.requiredBuckets, requiredConfigs: cleanedData.requiredConfigs, requiredModels: cleanedData.requiredModels, + requiredModules: cleanedData.requiredModules, requiredSecrets: cleanedData.requiredSecrets, resources: cleanedData.resources, runtime: cleanedData.runtime, @@ -965,6 +986,7 @@ async function handleUpdate(argv: Partial>, prompter: In requiredBuckets: true, requiredConfigs: true, requiredModels: true, + requiredModules: true, requiredSecrets: true, resources: true, runtime: true, diff --git a/sdk/constructive-cli/src/compute/cli/commands/function-deployment.ts b/sdk/constructive-cli/src/compute/cli/commands/function-deployment.ts index 3bd2cf1561..ed01258b96 100644 --- a/sdk/constructive-cli/src/compute/cli/commands/function-deployment.ts +++ b/sdk/constructive-cli/src/compute/cli/commands/function-deployment.ts @@ -29,6 +29,7 @@ const fieldSchema: FieldSchema = { lastError: 'string', lastErrorAt: 'string', namespaceId: 'uuid', + realm: 'string', resources: 'json', revision: 'int', scaleMax: 'int', @@ -103,6 +104,7 @@ async function handleList(argv: Partial>, _prompter: Inq lastError: true, lastErrorAt: true, namespaceId: true, + realm: true, resources: true, revision: true, scaleMax: true, @@ -149,6 +151,7 @@ async function handleFindFirst(argv: Partial>, _prompter lastError: true, lastErrorAt: true, namespaceId: true, + realm: true, resources: true, revision: true, scaleMax: true, @@ -207,6 +210,7 @@ async function handleGet(argv: Partial>, prompter: Inqui lastError: true, lastErrorAt: true, namespaceId: true, + realm: true, resources: true, revision: true, scaleMax: true, @@ -305,6 +309,13 @@ async function handleCreate(argv: Partial>, prompter: In message: 'namespaceId', required: true, }, + { + type: 'text', + name: 'realm', + message: 'realm', + required: false, + skipPrompt: true, + }, { type: 'json', name: 'resources', @@ -382,6 +393,7 @@ async function handleCreate(argv: Partial>, prompter: In lastError: cleanedData.lastError, lastErrorAt: cleanedData.lastErrorAt, namespaceId: cleanedData.namespaceId, + realm: cleanedData.realm, resources: cleanedData.resources, revision: cleanedData.revision, scaleMax: cleanedData.scaleMax, @@ -405,6 +417,7 @@ async function handleCreate(argv: Partial>, prompter: In lastError: true, lastErrorAt: true, namespaceId: true, + realm: true, resources: true, revision: true, scaleMax: true, @@ -509,6 +522,13 @@ async function handleUpdate(argv: Partial>, prompter: In message: 'namespaceId', required: false, }, + { + type: 'text', + name: 'realm', + message: 'realm', + required: false, + skipPrompt: true, + }, { type: 'json', name: 'resources', @@ -586,6 +606,7 @@ async function handleUpdate(argv: Partial>, prompter: In lastError: cleanedData.lastError, lastErrorAt: cleanedData.lastErrorAt, namespaceId: cleanedData.namespaceId, + realm: cleanedData.realm, resources: cleanedData.resources, revision: cleanedData.revision, scaleMax: cleanedData.scaleMax, @@ -609,6 +630,7 @@ async function handleUpdate(argv: Partial>, prompter: In lastError: true, lastErrorAt: true, namespaceId: true, + realm: true, resources: true, revision: true, scaleMax: true, diff --git a/sdk/constructive-cli/src/modules/cli/commands/provision-full-text-search.ts b/sdk/constructive-cli/src/compute/cli/commands/infra-insert-nodes-at-paths.ts similarity index 64% rename from sdk/constructive-cli/src/modules/cli/commands/provision-full-text-search.ts rename to sdk/constructive-cli/src/compute/cli/commands/infra-insert-nodes-at-paths.ts index ef353f9429..ac31ecd67c 100644 --- a/sdk/constructive-cli/src/modules/cli/commands/provision-full-text-search.ts +++ b/sdk/constructive-cli/src/compute/cli/commands/infra-insert-nodes-at-paths.ts @@ -1,13 +1,13 @@ /** - * CLI command for mutation provisionFullTextSearch + * CLI command for mutation infraInsertNodesAtPaths * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ import { CLIOptions, Inquirerer } from 'inquirerer'; import { getClient } from '../executor'; import { unflattenDotNotation, buildSelectFromPaths } from '../utils'; -import type { ProvisionFullTextSearchVariables } from '../../orm/mutation'; -import type { ProvisionFullTextSearchPayloadSelect } from '../../orm/input-types'; +import type { InfraInsertNodesAtPathsVariables } from '../../orm/mutation'; +import type { InfraInsertNodesAtPathsPayloadSelect } from '../../orm/input-types'; export default async ( argv: Partial>, prompter: Inquirerer, @@ -16,7 +16,7 @@ export default async ( try { if (argv.help || argv.h) { console.log( - '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\nUsage: provision-full-text-search [OPTIONS]\n' + 'infra-insert-nodes-at-paths - infraInsertNodesAtPaths\n\nUsage: infra-insert-nodes-at-paths [OPTIONS]\n' ); process.exit(0); } @@ -33,18 +33,18 @@ export default async ( const parsedAnswers = unflattenDotNotation(answers); const selectFields = buildSelectFromPaths((argv.select as string) ?? 'clientMutationId'); const result = await client.mutation - .provisionFullTextSearch( - parsedAnswers as unknown as ProvisionFullTextSearchVariables, + .infraInsertNodesAtPaths( + parsedAnswers as unknown as InfraInsertNodesAtPathsVariables, { select: selectFields, } as unknown as { - select: ProvisionFullTextSearchPayloadSelect; + select: InfraInsertNodesAtPathsPayloadSelect; } ) .execute(); console.log(JSON.stringify(result, null, 2)); } catch (error) { - console.error('Failed: provisionFullTextSearch'); + console.error('Failed: infraInsertNodesAtPaths'); if (error instanceof Error) { console.error(error.message); } diff --git a/sdk/constructive-cli/src/modules/cli/commands/provision-index.ts b/sdk/constructive-cli/src/compute/cli/commands/infra-set-and-commit.ts similarity index 62% rename from sdk/constructive-cli/src/modules/cli/commands/provision-index.ts rename to sdk/constructive-cli/src/compute/cli/commands/infra-set-and-commit.ts index 76ad632afa..8a96f988da 100644 --- a/sdk/constructive-cli/src/modules/cli/commands/provision-index.ts +++ b/sdk/constructive-cli/src/compute/cli/commands/infra-set-and-commit.ts @@ -1,13 +1,13 @@ /** - * CLI command for mutation provisionIndex + * CLI command for mutation infraSetAndCommit * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ import { CLIOptions, Inquirerer } from 'inquirerer'; import { getClient } from '../executor'; import { unflattenDotNotation, buildSelectFromPaths } from '../utils'; -import type { ProvisionIndexVariables } from '../../orm/mutation'; -import type { ProvisionIndexPayloadSelect } from '../../orm/input-types'; +import type { InfraSetAndCommitVariables } from '../../orm/mutation'; +import type { InfraSetAndCommitPayloadSelect } from '../../orm/input-types'; export default async ( argv: Partial>, prompter: Inquirerer, @@ -16,7 +16,7 @@ export default async ( try { if (argv.help || argv.h) { console.log( - '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\nUsage: provision-index [OPTIONS]\n' + 'infra-set-and-commit - infraSetAndCommit\n\nUsage: infra-set-and-commit [OPTIONS]\n' ); process.exit(0); } @@ -33,18 +33,18 @@ export default async ( const parsedAnswers = unflattenDotNotation(answers); const selectFields = buildSelectFromPaths((argv.select as string) ?? 'clientMutationId'); const result = await client.mutation - .provisionIndex( - parsedAnswers as unknown as ProvisionIndexVariables, + .infraSetAndCommit( + parsedAnswers as unknown as InfraSetAndCommitVariables, { select: selectFields, } as unknown as { - select: ProvisionIndexPayloadSelect; + select: InfraSetAndCommitPayloadSelect; } ) .execute(); console.log(JSON.stringify(result, null, 2)); } catch (error) { - console.error('Failed: provisionIndex'); + console.error('Failed: infraSetAndCommit'); if (error instanceof Error) { console.error(error.message); } diff --git a/sdk/constructive-cli/src/modules/cli/commands/provision-table.ts b/sdk/constructive-cli/src/compute/cli/commands/infra-set-many-and-commit.ts similarity index 58% rename from sdk/constructive-cli/src/modules/cli/commands/provision-table.ts rename to sdk/constructive-cli/src/compute/cli/commands/infra-set-many-and-commit.ts index 2d0e98f46f..43af0d53ce 100644 --- a/sdk/constructive-cli/src/modules/cli/commands/provision-table.ts +++ b/sdk/constructive-cli/src/compute/cli/commands/infra-set-many-and-commit.ts @@ -1,13 +1,13 @@ /** - * CLI command for mutation provisionTable + * CLI command for mutation infraSetManyAndCommit * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ import { CLIOptions, Inquirerer } from 'inquirerer'; import { getClient } from '../executor'; import { unflattenDotNotation, buildSelectFromPaths } from '../utils'; -import type { ProvisionTableVariables } from '../../orm/mutation'; -import type { ProvisionTablePayloadSelect } from '../../orm/input-types'; +import type { InfraSetManyAndCommitVariables } from '../../orm/mutation'; +import type { InfraSetManyAndCommitPayloadSelect } from '../../orm/input-types'; export default async ( argv: Partial>, prompter: Inquirerer, @@ -16,7 +16,7 @@ export default async ( try { if (argv.help || argv.h) { console.log( - '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\nUsage: provision-table [OPTIONS]\n' + 'infra-set-many-and-commit - infraSetManyAndCommit\n\nUsage: infra-set-many-and-commit [OPTIONS]\n' ); process.exit(0); } @@ -33,18 +33,18 @@ export default async ( const parsedAnswers = unflattenDotNotation(answers); const selectFields = buildSelectFromPaths((argv.select as string) ?? 'clientMutationId'); const result = await client.mutation - .provisionTable( - parsedAnswers as unknown as ProvisionTableVariables, + .infraSetManyAndCommit( + parsedAnswers as unknown as InfraSetManyAndCommitVariables, { select: selectFields, } as unknown as { - select: ProvisionTablePayloadSelect; + select: InfraSetManyAndCommitPayloadSelect; } ) .execute(); console.log(JSON.stringify(result, null, 2)); } catch (error) { - console.error('Failed: provisionTable'); + console.error('Failed: infraSetManyAndCommit'); if (error instanceof Error) { console.error(error.message); } diff --git a/sdk/constructive-cli/src/compute/cli/commands/insert-nodes-at-paths.ts b/sdk/constructive-cli/src/compute/cli/commands/insert-nodes-at-paths.ts new file mode 100644 index 0000000000..30d2c129a1 --- /dev/null +++ b/sdk/constructive-cli/src/compute/cli/commands/insert-nodes-at-paths.ts @@ -0,0 +1,53 @@ +/** + * CLI command for mutation insertNodesAtPaths + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ +import { CLIOptions, Inquirerer } from 'inquirerer'; +import { getClient } from '../executor'; +import { unflattenDotNotation, buildSelectFromPaths } from '../utils'; +import type { InsertNodesAtPathsVariables } from '../../orm/mutation'; +import type { InsertNodesAtPathsPayloadSelect } from '../../orm/input-types'; +export default async ( + argv: Partial>, + prompter: Inquirerer, + _options: CLIOptions +) => { + try { + if (argv.help || argv.h) { + console.log( + 'insert-nodes-at-paths - insertNodesAtPaths\n\nUsage: insert-nodes-at-paths [OPTIONS]\n' + ); + process.exit(0); + } + const answers = await prompter.prompt(argv, [ + { + type: 'text', + name: 'input', + message: + 'The exclusive input argument for this mutation. An object type, make sure to see documentation for this object\u2019s fields.', + required: true, + }, + ]); + const client = getClient(); + const parsedAnswers = unflattenDotNotation(answers); + const selectFields = buildSelectFromPaths((argv.select as string) ?? 'clientMutationId'); + const result = await client.mutation + .insertNodesAtPaths( + parsedAnswers as unknown as InsertNodesAtPathsVariables, + { + select: selectFields, + } as unknown as { + select: InsertNodesAtPathsPayloadSelect; + } + ) + .execute(); + console.log(JSON.stringify(result, null, 2)); + } catch (error) { + console.error('Failed: insertNodesAtPaths'); + if (error instanceof Error) { + console.error(error.message); + } + process.exit(1); + } +}; diff --git a/sdk/constructive-cli/src/compute/cli/commands/platform-function-definition.ts b/sdk/constructive-cli/src/compute/cli/commands/platform-function-definition.ts index 66df7440ef..a30654ab95 100644 --- a/sdk/constructive-cli/src/compute/cli/commands/platform-function-definition.ts +++ b/sdk/constructive-cli/src/compute/cli/commands/platform-function-definition.ts @@ -48,6 +48,7 @@ const fieldSchema: FieldSchema = { requiredBuckets: 'string', requiredConfigs: 'string', requiredModels: 'string', + requiredModules: 'string', requiredSecrets: 'string', resources: 'json', runtime: 'string', @@ -140,6 +141,7 @@ async function handleList(argv: Partial>, _prompter: Inq requiredBuckets: true, requiredConfigs: true, requiredModels: true, + requiredModules: true, requiredSecrets: true, resources: true, runtime: true, @@ -203,6 +205,7 @@ async function handleFindFirst(argv: Partial>, _prompter requiredBuckets: true, requiredConfigs: true, requiredModels: true, + requiredModules: true, requiredSecrets: true, resources: true, runtime: true, @@ -278,6 +281,7 @@ async function handleGet(argv: Partial>, prompter: Inqui requiredBuckets: true, requiredConfigs: true, requiredModels: true, + requiredModules: true, requiredSecrets: true, resources: true, runtime: true, @@ -484,6 +488,13 @@ async function handleCreate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'text', + name: 'requiredModules', + message: 'requiredModules', + required: false, + skipPrompt: true, + }, { type: 'text', name: 'requiredSecrets', @@ -590,6 +601,7 @@ async function handleCreate(argv: Partial>, prompter: In requiredBuckets: cleanedData.requiredBuckets, requiredConfigs: cleanedData.requiredConfigs, requiredModels: cleanedData.requiredModels, + requiredModules: cleanedData.requiredModules, requiredSecrets: cleanedData.requiredSecrets, resources: cleanedData.resources, runtime: cleanedData.runtime, @@ -630,6 +642,7 @@ async function handleCreate(argv: Partial>, prompter: In requiredBuckets: true, requiredConfigs: true, requiredModels: true, + requiredModules: true, requiredSecrets: true, resources: true, runtime: true, @@ -842,6 +855,13 @@ async function handleUpdate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'text', + name: 'requiredModules', + message: 'requiredModules', + required: false, + skipPrompt: true, + }, { type: 'text', name: 'requiredSecrets', @@ -948,6 +968,7 @@ async function handleUpdate(argv: Partial>, prompter: In requiredBuckets: cleanedData.requiredBuckets, requiredConfigs: cleanedData.requiredConfigs, requiredModels: cleanedData.requiredModels, + requiredModules: cleanedData.requiredModules, requiredSecrets: cleanedData.requiredSecrets, resources: cleanedData.resources, runtime: cleanedData.runtime, @@ -988,6 +1009,7 @@ async function handleUpdate(argv: Partial>, prompter: In requiredBuckets: true, requiredConfigs: true, requiredModels: true, + requiredModules: true, requiredSecrets: true, resources: true, runtime: true, diff --git a/sdk/constructive-cli/src/compute/cli/commands/platform-function-deployment.ts b/sdk/constructive-cli/src/compute/cli/commands/platform-function-deployment.ts index 6041b82a68..5a3f02f605 100644 --- a/sdk/constructive-cli/src/compute/cli/commands/platform-function-deployment.ts +++ b/sdk/constructive-cli/src/compute/cli/commands/platform-function-deployment.ts @@ -28,6 +28,7 @@ const fieldSchema: FieldSchema = { lastError: 'string', lastErrorAt: 'string', namespaceId: 'uuid', + realm: 'string', resources: 'json', revision: 'int', scaleMax: 'int', @@ -101,6 +102,7 @@ async function handleList(argv: Partial>, _prompter: Inq lastError: true, lastErrorAt: true, namespaceId: true, + realm: true, resources: true, revision: true, scaleMax: true, @@ -146,6 +148,7 @@ async function handleFindFirst(argv: Partial>, _prompter lastError: true, lastErrorAt: true, namespaceId: true, + realm: true, resources: true, revision: true, scaleMax: true, @@ -203,6 +206,7 @@ async function handleGet(argv: Partial>, prompter: Inqui lastError: true, lastErrorAt: true, namespaceId: true, + realm: true, resources: true, revision: true, scaleMax: true, @@ -295,6 +299,13 @@ async function handleCreate(argv: Partial>, prompter: In message: 'namespaceId', required: true, }, + { + type: 'text', + name: 'realm', + message: 'realm', + required: false, + skipPrompt: true, + }, { type: 'json', name: 'resources', @@ -371,6 +382,7 @@ async function handleCreate(argv: Partial>, prompter: In lastError: cleanedData.lastError, lastErrorAt: cleanedData.lastErrorAt, namespaceId: cleanedData.namespaceId, + realm: cleanedData.realm, resources: cleanedData.resources, revision: cleanedData.revision, scaleMax: cleanedData.scaleMax, @@ -393,6 +405,7 @@ async function handleCreate(argv: Partial>, prompter: In lastError: true, lastErrorAt: true, namespaceId: true, + realm: true, resources: true, revision: true, scaleMax: true, @@ -491,6 +504,13 @@ async function handleUpdate(argv: Partial>, prompter: In message: 'namespaceId', required: false, }, + { + type: 'text', + name: 'realm', + message: 'realm', + required: false, + skipPrompt: true, + }, { type: 'json', name: 'resources', @@ -567,6 +587,7 @@ async function handleUpdate(argv: Partial>, prompter: In lastError: cleanedData.lastError, lastErrorAt: cleanedData.lastErrorAt, namespaceId: cleanedData.namespaceId, + realm: cleanedData.realm, resources: cleanedData.resources, revision: cleanedData.revision, scaleMax: cleanedData.scaleMax, @@ -589,6 +610,7 @@ async function handleUpdate(argv: Partial>, prompter: In lastError: true, lastErrorAt: true, namespaceId: true, + realm: true, resources: true, revision: true, scaleMax: true, diff --git a/sdk/constructive-cli/src/compute/cli/commands/platform-infra-insert-nodes-at-paths.ts b/sdk/constructive-cli/src/compute/cli/commands/platform-infra-insert-nodes-at-paths.ts new file mode 100644 index 0000000000..c2c3323919 --- /dev/null +++ b/sdk/constructive-cli/src/compute/cli/commands/platform-infra-insert-nodes-at-paths.ts @@ -0,0 +1,53 @@ +/** + * CLI command for mutation platformInfraInsertNodesAtPaths + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ +import { CLIOptions, Inquirerer } from 'inquirerer'; +import { getClient } from '../executor'; +import { unflattenDotNotation, buildSelectFromPaths } from '../utils'; +import type { PlatformInfraInsertNodesAtPathsVariables } from '../../orm/mutation'; +import type { PlatformInfraInsertNodesAtPathsPayloadSelect } from '../../orm/input-types'; +export default async ( + argv: Partial>, + prompter: Inquirerer, + _options: CLIOptions +) => { + try { + if (argv.help || argv.h) { + console.log( + 'platform-infra-insert-nodes-at-paths - platformInfraInsertNodesAtPaths\n\nUsage: platform-infra-insert-nodes-at-paths [OPTIONS]\n' + ); + process.exit(0); + } + const answers = await prompter.prompt(argv, [ + { + type: 'text', + name: 'input', + message: + 'The exclusive input argument for this mutation. An object type, make sure to see documentation for this object\u2019s fields.', + required: true, + }, + ]); + const client = getClient(); + const parsedAnswers = unflattenDotNotation(answers); + const selectFields = buildSelectFromPaths((argv.select as string) ?? 'clientMutationId'); + const result = await client.mutation + .platformInfraInsertNodesAtPaths( + parsedAnswers as unknown as PlatformInfraInsertNodesAtPathsVariables, + { + select: selectFields, + } as unknown as { + select: PlatformInfraInsertNodesAtPathsPayloadSelect; + } + ) + .execute(); + console.log(JSON.stringify(result, null, 2)); + } catch (error) { + console.error('Failed: platformInfraInsertNodesAtPaths'); + if (error instanceof Error) { + console.error(error.message); + } + process.exit(1); + } +}; diff --git a/sdk/constructive-cli/src/modules/cli/commands/provision-unique-constraint.ts b/sdk/constructive-cli/src/compute/cli/commands/platform-infra-set-and-commit.ts similarity index 66% rename from sdk/constructive-cli/src/modules/cli/commands/provision-unique-constraint.ts rename to sdk/constructive-cli/src/compute/cli/commands/platform-infra-set-and-commit.ts index 97caac5c74..444f633f00 100644 --- a/sdk/constructive-cli/src/modules/cli/commands/provision-unique-constraint.ts +++ b/sdk/constructive-cli/src/compute/cli/commands/platform-infra-set-and-commit.ts @@ -1,13 +1,13 @@ /** - * CLI command for mutation provisionUniqueConstraint + * CLI command for mutation platformInfraSetAndCommit * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ import { CLIOptions, Inquirerer } from 'inquirerer'; import { getClient } from '../executor'; import { unflattenDotNotation, buildSelectFromPaths } from '../utils'; -import type { ProvisionUniqueConstraintVariables } from '../../orm/mutation'; -import type { ProvisionUniqueConstraintPayloadSelect } from '../../orm/input-types'; +import type { PlatformInfraSetAndCommitVariables } from '../../orm/mutation'; +import type { PlatformInfraSetAndCommitPayloadSelect } from '../../orm/input-types'; export default async ( argv: Partial>, prompter: Inquirerer, @@ -16,7 +16,7 @@ export default async ( try { if (argv.help || argv.h) { console.log( - '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\nUsage: provision-unique-constraint [OPTIONS]\n' + 'platform-infra-set-and-commit - platformInfraSetAndCommit\n\nUsage: platform-infra-set-and-commit [OPTIONS]\n' ); process.exit(0); } @@ -33,18 +33,18 @@ export default async ( const parsedAnswers = unflattenDotNotation(answers); const selectFields = buildSelectFromPaths((argv.select as string) ?? 'clientMutationId'); const result = await client.mutation - .provisionUniqueConstraint( - parsedAnswers as unknown as ProvisionUniqueConstraintVariables, + .platformInfraSetAndCommit( + parsedAnswers as unknown as PlatformInfraSetAndCommitVariables, { select: selectFields, } as unknown as { - select: ProvisionUniqueConstraintPayloadSelect; + select: PlatformInfraSetAndCommitPayloadSelect; } ) .execute(); console.log(JSON.stringify(result, null, 2)); } catch (error) { - console.error('Failed: provisionUniqueConstraint'); + console.error('Failed: platformInfraSetAndCommit'); if (error instanceof Error) { console.error(error.message); } diff --git a/sdk/constructive-cli/src/compute/cli/commands/platform-infra-set-many-and-commit.ts b/sdk/constructive-cli/src/compute/cli/commands/platform-infra-set-many-and-commit.ts new file mode 100644 index 0000000000..1dadf0ef4f --- /dev/null +++ b/sdk/constructive-cli/src/compute/cli/commands/platform-infra-set-many-and-commit.ts @@ -0,0 +1,53 @@ +/** + * CLI command for mutation platformInfraSetManyAndCommit + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ +import { CLIOptions, Inquirerer } from 'inquirerer'; +import { getClient } from '../executor'; +import { unflattenDotNotation, buildSelectFromPaths } from '../utils'; +import type { PlatformInfraSetManyAndCommitVariables } from '../../orm/mutation'; +import type { PlatformInfraSetManyAndCommitPayloadSelect } from '../../orm/input-types'; +export default async ( + argv: Partial>, + prompter: Inquirerer, + _options: CLIOptions +) => { + try { + if (argv.help || argv.h) { + console.log( + 'platform-infra-set-many-and-commit - platformInfraSetManyAndCommit\n\nUsage: platform-infra-set-many-and-commit [OPTIONS]\n' + ); + process.exit(0); + } + const answers = await prompter.prompt(argv, [ + { + type: 'text', + name: 'input', + message: + 'The exclusive input argument for this mutation. An object type, make sure to see documentation for this object\u2019s fields.', + required: true, + }, + ]); + const client = getClient(); + const parsedAnswers = unflattenDotNotation(answers); + const selectFields = buildSelectFromPaths((argv.select as string) ?? 'clientMutationId'); + const result = await client.mutation + .platformInfraSetManyAndCommit( + parsedAnswers as unknown as PlatformInfraSetManyAndCommitVariables, + { + select: selectFields, + } as unknown as { + select: PlatformInfraSetManyAndCommitPayloadSelect; + } + ) + .execute(); + console.log(JSON.stringify(result, null, 2)); + } catch (error) { + console.error('Failed: platformInfraSetManyAndCommit'); + if (error instanceof Error) { + console.error(error.message); + } + process.exit(1); + } +}; diff --git a/sdk/constructive-cli/src/compute/cli/commands/set-and-commit.ts b/sdk/constructive-cli/src/compute/cli/commands/set-and-commit.ts new file mode 100644 index 0000000000..cb702ff301 --- /dev/null +++ b/sdk/constructive-cli/src/compute/cli/commands/set-and-commit.ts @@ -0,0 +1,51 @@ +/** + * CLI command for mutation setAndCommit + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ +import { CLIOptions, Inquirerer } from 'inquirerer'; +import { getClient } from '../executor'; +import { unflattenDotNotation, buildSelectFromPaths } from '../utils'; +import type { SetAndCommitVariables } from '../../orm/mutation'; +import type { SetAndCommitPayloadSelect } from '../../orm/input-types'; +export default async ( + argv: Partial>, + prompter: Inquirerer, + _options: CLIOptions +) => { + try { + if (argv.help || argv.h) { + console.log('set-and-commit - setAndCommit\n\nUsage: set-and-commit [OPTIONS]\n'); + process.exit(0); + } + const answers = await prompter.prompt(argv, [ + { + type: 'text', + name: 'input', + message: + 'The exclusive input argument for this mutation. An object type, make sure to see documentation for this object\u2019s fields.', + required: true, + }, + ]); + const client = getClient(); + const parsedAnswers = unflattenDotNotation(answers); + const selectFields = buildSelectFromPaths((argv.select as string) ?? 'clientMutationId'); + const result = await client.mutation + .setAndCommit( + parsedAnswers as unknown as SetAndCommitVariables, + { + select: selectFields, + } as unknown as { + select: SetAndCommitPayloadSelect; + } + ) + .execute(); + console.log(JSON.stringify(result, null, 2)); + } catch (error) { + console.error('Failed: setAndCommit'); + if (error instanceof Error) { + console.error(error.message); + } + process.exit(1); + } +}; diff --git a/sdk/constructive-cli/src/compute/cli/commands/set-many-and-commit.ts b/sdk/constructive-cli/src/compute/cli/commands/set-many-and-commit.ts new file mode 100644 index 0000000000..8b1d8dba43 --- /dev/null +++ b/sdk/constructive-cli/src/compute/cli/commands/set-many-and-commit.ts @@ -0,0 +1,53 @@ +/** + * CLI command for mutation setManyAndCommit + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ +import { CLIOptions, Inquirerer } from 'inquirerer'; +import { getClient } from '../executor'; +import { unflattenDotNotation, buildSelectFromPaths } from '../utils'; +import type { SetManyAndCommitVariables } from '../../orm/mutation'; +import type { SetManyAndCommitPayloadSelect } from '../../orm/input-types'; +export default async ( + argv: Partial>, + prompter: Inquirerer, + _options: CLIOptions +) => { + try { + if (argv.help || argv.h) { + console.log( + 'set-many-and-commit - setManyAndCommit\n\nUsage: set-many-and-commit [OPTIONS]\n' + ); + process.exit(0); + } + const answers = await prompter.prompt(argv, [ + { + type: 'text', + name: 'input', + message: + 'The exclusive input argument for this mutation. An object type, make sure to see documentation for this object\u2019s fields.', + required: true, + }, + ]); + const client = getClient(); + const parsedAnswers = unflattenDotNotation(answers); + const selectFields = buildSelectFromPaths((argv.select as string) ?? 'clientMutationId'); + const result = await client.mutation + .setManyAndCommit( + parsedAnswers as unknown as SetManyAndCommitVariables, + { + select: selectFields, + } as unknown as { + select: SetManyAndCommitPayloadSelect; + } + ) + .execute(); + console.log(JSON.stringify(result, null, 2)); + } catch (error) { + console.error('Failed: setManyAndCommit'); + if (error instanceof Error) { + console.error(error.message); + } + process.exit(1); + } +}; diff --git a/sdk/constructive-cli/src/compute/orm/README.md b/sdk/constructive-cli/src/compute/orm/README.md index d1a03c4e98..a3ab572efd 100644 --- a/sdk/constructive-cli/src/compute/orm/README.md +++ b/sdk/constructive-cli/src/compute/orm/README.md @@ -21,6 +21,7 @@ const db = createClient({ | Model | Operations | |-------|------------| +| `contentPreset` | findMany, findOne, create, update, delete | | `dbPreset` | findMany, findOne, create, update, delete | | `functionApiBinding` | findMany, findOne, create, update, delete | | `functionCapabilityBinding` | findMany, findOne, create, update, delete | @@ -93,6 +94,45 @@ const db = createClient({ ## Table Operations +### `db.contentPreset` + +CRUD operations for ContentPreset records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `active` | Boolean | Yes | +| `commitId` | UUID | Yes | +| `createdAt` | Datetime | No | +| `definition` | JSON | Yes | +| `description` | String | Yes | +| `id` | UUID | No | +| `kind` | String | Yes | +| `label` | String | Yes | +| `slug` | String | Yes | +| `storeId` | UUID | Yes | +| `updatedAt` | Datetime | No | + +**Operations:** + +```typescript +// List all contentPreset records +const items = await db.contentPreset.findMany({ select: { active: true, commitId: true, createdAt: true, definition: true, description: true, id: true, kind: true, label: true, slug: true, storeId: true, updatedAt: true } }).execute(); + +// Get one by id +const item = await db.contentPreset.findOne({ id: '', select: { active: true, commitId: true, createdAt: true, definition: true, description: true, id: true, kind: true, label: true, slug: true, storeId: true, updatedAt: true } }).execute(); + +// Create +const created = await db.contentPreset.create({ data: { active: '', commitId: '', definition: '', description: '', kind: '', label: '', slug: '', storeId: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.contentPreset.update({ where: { id: '' }, data: { active: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.contentPreset.delete({ where: { id: '' } }).execute(); +``` + ### `db.dbPreset` CRUD operations for DbPreset records. @@ -245,6 +285,7 @@ CRUD operations for FunctionDefinition records. | `requiredBuckets` | String | Yes | | `requiredConfigs` | ResourceRequirement | Yes | | `requiredModels` | String | Yes | +| `requiredModules` | String | Yes | | `requiredSecrets` | ResourceRequirement | Yes | | `resources` | JSON | Yes | | `runtime` | String | Yes | @@ -261,13 +302,13 @@ CRUD operations for FunctionDefinition records. ```typescript // List all functionDefinition records -const items = await db.functionDefinition.findMany({ select: { accessChannels: true, category: true, concurrency: true, cpuLimitMillicores: true, cpuRequestMillicores: true, createdAt: true, databaseId: true, description: true, fnCategory: true, functionColumns: true, graphId: true, icon: true, id: true, image: true, inputs: true, integrations: true, isPublished: true, maxAttempts: true, memoryLimitBytes: true, memoryRequestBytes: true, moduleTable: true, name: true, outputs: true, payloadArgs: true, priority: true, props: true, protected: true, publishedAt: true, queueName: true, requiredBuckets: true, requiredConfigs: true, requiredModels: true, requiredSecrets: true, resources: true, runtime: true, scaleMax: true, scaleMin: true, targetFunction: true, targetSchema: true, taskIdentifier: true, timeoutSeconds: true, updatedAt: true, volatile: true } }).execute(); +const items = await db.functionDefinition.findMany({ select: { accessChannels: true, category: true, concurrency: true, cpuLimitMillicores: true, cpuRequestMillicores: true, createdAt: true, databaseId: true, description: true, fnCategory: true, functionColumns: true, graphId: true, icon: true, id: true, image: true, inputs: true, integrations: true, isPublished: true, maxAttempts: true, memoryLimitBytes: true, memoryRequestBytes: true, moduleTable: true, name: true, outputs: true, payloadArgs: true, priority: true, props: true, protected: true, publishedAt: true, queueName: true, requiredBuckets: true, requiredConfigs: true, requiredModels: true, requiredModules: true, requiredSecrets: true, resources: true, runtime: true, scaleMax: true, scaleMin: true, targetFunction: true, targetSchema: true, taskIdentifier: true, timeoutSeconds: true, updatedAt: true, volatile: true } }).execute(); // Get one by id -const item = await db.functionDefinition.findOne({ id: '', select: { accessChannels: true, category: true, concurrency: true, cpuLimitMillicores: true, cpuRequestMillicores: true, createdAt: true, databaseId: true, description: true, fnCategory: true, functionColumns: true, graphId: true, icon: true, id: true, image: true, inputs: true, integrations: true, isPublished: true, maxAttempts: true, memoryLimitBytes: true, memoryRequestBytes: true, moduleTable: true, name: true, outputs: true, payloadArgs: true, priority: true, props: true, protected: true, publishedAt: true, queueName: true, requiredBuckets: true, requiredConfigs: true, requiredModels: true, requiredSecrets: true, resources: true, runtime: true, scaleMax: true, scaleMin: true, targetFunction: true, targetSchema: true, taskIdentifier: true, timeoutSeconds: true, updatedAt: true, volatile: true } }).execute(); +const item = await db.functionDefinition.findOne({ id: '', select: { accessChannels: true, category: true, concurrency: true, cpuLimitMillicores: true, cpuRequestMillicores: true, createdAt: true, databaseId: true, description: true, fnCategory: true, functionColumns: true, graphId: true, icon: true, id: true, image: true, inputs: true, integrations: true, isPublished: true, maxAttempts: true, memoryLimitBytes: true, memoryRequestBytes: true, moduleTable: true, name: true, outputs: true, payloadArgs: true, priority: true, props: true, protected: true, publishedAt: true, queueName: true, requiredBuckets: true, requiredConfigs: true, requiredModels: true, requiredModules: true, requiredSecrets: true, resources: true, runtime: true, scaleMax: true, scaleMin: true, targetFunction: true, targetSchema: true, taskIdentifier: true, timeoutSeconds: true, updatedAt: true, volatile: true } }).execute(); // Create -const created = await db.functionDefinition.create({ data: { accessChannels: '', category: '', concurrency: '', cpuLimitMillicores: '', cpuRequestMillicores: '', databaseId: '', description: '', fnCategory: '', functionColumns: '', graphId: '', icon: '', image: '', inputs: '', integrations: '', isPublished: '', maxAttempts: '', memoryLimitBytes: '', memoryRequestBytes: '', moduleTable: '', name: '', outputs: '', payloadArgs: '', priority: '', props: '', protected: '', publishedAt: '', queueName: '', requiredBuckets: '', requiredConfigs: '', requiredModels: '', requiredSecrets: '', resources: '', runtime: '', scaleMax: '', scaleMin: '', targetFunction: '', targetSchema: '', taskIdentifier: '', timeoutSeconds: '', volatile: '' }, select: { id: true } }).execute(); +const created = await db.functionDefinition.create({ data: { accessChannels: '', category: '', concurrency: '', cpuLimitMillicores: '', cpuRequestMillicores: '', databaseId: '', description: '', fnCategory: '', functionColumns: '', graphId: '', icon: '', image: '', inputs: '', integrations: '', isPublished: '', maxAttempts: '', memoryLimitBytes: '', memoryRequestBytes: '', moduleTable: '', name: '', outputs: '', payloadArgs: '', priority: '', props: '', protected: '', publishedAt: '', queueName: '', requiredBuckets: '', requiredConfigs: '', requiredModels: '', requiredModules: '', requiredSecrets: '', resources: '', runtime: '', scaleMax: '', scaleMin: '', targetFunction: '', targetSchema: '', taskIdentifier: '', timeoutSeconds: '', volatile: '' }, select: { id: true } }).execute(); // Update const updated = await db.functionDefinition.update({ where: { id: '' }, data: { accessChannels: '' }, select: { id: true } }).execute(); @@ -297,6 +338,7 @@ CRUD operations for FunctionDeployment records. | `lastError` | String | Yes | | `lastErrorAt` | Datetime | Yes | | `namespaceId` | UUID | Yes | +| `realm` | String | Yes | | `resources` | JSON | Yes | | `revision` | Int | Yes | | `scaleMax` | Int | Yes | @@ -311,13 +353,13 @@ CRUD operations for FunctionDeployment records. ```typescript // List all functionDeployment records -const items = await db.functionDeployment.findMany({ select: { annotations: true, concurrency: true, createdAt: true, databaseId: true, errorCount: true, handlerName: true, id: true, image: true, imageVersion: true, labels: true, lastError: true, lastErrorAt: true, namespaceId: true, resources: true, revision: true, scaleMax: true, scaleMin: true, serviceName: true, serviceUrl: true, status: true, timeoutSeconds: true, updatedAt: true } }).execute(); +const items = await db.functionDeployment.findMany({ select: { annotations: true, concurrency: true, createdAt: true, databaseId: true, errorCount: true, handlerName: true, id: true, image: true, imageVersion: true, labels: true, lastError: true, lastErrorAt: true, namespaceId: true, realm: true, resources: true, revision: true, scaleMax: true, scaleMin: true, serviceName: true, serviceUrl: true, status: true, timeoutSeconds: true, updatedAt: true } }).execute(); // Get one by id -const item = await db.functionDeployment.findOne({ id: '', select: { annotations: true, concurrency: true, createdAt: true, databaseId: true, errorCount: true, handlerName: true, id: true, image: true, imageVersion: true, labels: true, lastError: true, lastErrorAt: true, namespaceId: true, resources: true, revision: true, scaleMax: true, scaleMin: true, serviceName: true, serviceUrl: true, status: true, timeoutSeconds: true, updatedAt: true } }).execute(); +const item = await db.functionDeployment.findOne({ id: '', select: { annotations: true, concurrency: true, createdAt: true, databaseId: true, errorCount: true, handlerName: true, id: true, image: true, imageVersion: true, labels: true, lastError: true, lastErrorAt: true, namespaceId: true, realm: true, resources: true, revision: true, scaleMax: true, scaleMin: true, serviceName: true, serviceUrl: true, status: true, timeoutSeconds: true, updatedAt: true } }).execute(); // Create -const created = await db.functionDeployment.create({ data: { annotations: '', concurrency: '', databaseId: '', errorCount: '', handlerName: '', image: '', imageVersion: '', labels: '', lastError: '', lastErrorAt: '', namespaceId: '', resources: '', revision: '', scaleMax: '', scaleMin: '', serviceName: '', serviceUrl: '', status: '', timeoutSeconds: '' }, select: { id: true } }).execute(); +const created = await db.functionDeployment.create({ data: { annotations: '', concurrency: '', databaseId: '', errorCount: '', handlerName: '', image: '', imageVersion: '', labels: '', lastError: '', lastErrorAt: '', namespaceId: '', realm: '', resources: '', revision: '', scaleMax: '', scaleMin: '', serviceName: '', serviceUrl: '', status: '', timeoutSeconds: '' }, select: { id: true } }).execute(); // Update const updated = await db.functionDeployment.update({ where: { id: '' }, data: { annotations: '' }, select: { id: true } }).execute(); @@ -1227,6 +1269,7 @@ CRUD operations for PlatformFunctionDefinition records. | `requiredBuckets` | String | Yes | | `requiredConfigs` | ResourceRequirement | Yes | | `requiredModels` | String | Yes | +| `requiredModules` | String | Yes | | `requiredSecrets` | ResourceRequirement | Yes | | `resources` | JSON | Yes | | `runtime` | String | Yes | @@ -1244,13 +1287,13 @@ CRUD operations for PlatformFunctionDefinition records. ```typescript // List all platformFunctionDefinition records -const items = await db.platformFunctionDefinition.findMany({ select: { accessChannels: true, billable: true, category: true, concurrency: true, cpuLimitMillicores: true, cpuRequestMillicores: true, createdAt: true, description: true, fnCategory: true, functionColumns: true, graphId: true, icon: true, id: true, image: true, inputs: true, integrations: true, isPublished: true, maxAttempts: true, memoryLimitBytes: true, memoryRequestBytes: true, moduleTable: true, name: true, outputs: true, payloadArgs: true, priority: true, props: true, protected: true, publishedAt: true, queueName: true, requiredBuckets: true, requiredConfigs: true, requiredModels: true, requiredSecrets: true, resources: true, runtime: true, scaleMax: true, scaleMin: true, system: true, targetFunction: true, targetSchema: true, taskIdentifier: true, timeoutSeconds: true, updatedAt: true, volatile: true } }).execute(); +const items = await db.platformFunctionDefinition.findMany({ select: { accessChannels: true, billable: true, category: true, concurrency: true, cpuLimitMillicores: true, cpuRequestMillicores: true, createdAt: true, description: true, fnCategory: true, functionColumns: true, graphId: true, icon: true, id: true, image: true, inputs: true, integrations: true, isPublished: true, maxAttempts: true, memoryLimitBytes: true, memoryRequestBytes: true, moduleTable: true, name: true, outputs: true, payloadArgs: true, priority: true, props: true, protected: true, publishedAt: true, queueName: true, requiredBuckets: true, requiredConfigs: true, requiredModels: true, requiredModules: true, requiredSecrets: true, resources: true, runtime: true, scaleMax: true, scaleMin: true, system: true, targetFunction: true, targetSchema: true, taskIdentifier: true, timeoutSeconds: true, updatedAt: true, volatile: true } }).execute(); // Get one by id -const item = await db.platformFunctionDefinition.findOne({ id: '', select: { accessChannels: true, billable: true, category: true, concurrency: true, cpuLimitMillicores: true, cpuRequestMillicores: true, createdAt: true, description: true, fnCategory: true, functionColumns: true, graphId: true, icon: true, id: true, image: true, inputs: true, integrations: true, isPublished: true, maxAttempts: true, memoryLimitBytes: true, memoryRequestBytes: true, moduleTable: true, name: true, outputs: true, payloadArgs: true, priority: true, props: true, protected: true, publishedAt: true, queueName: true, requiredBuckets: true, requiredConfigs: true, requiredModels: true, requiredSecrets: true, resources: true, runtime: true, scaleMax: true, scaleMin: true, system: true, targetFunction: true, targetSchema: true, taskIdentifier: true, timeoutSeconds: true, updatedAt: true, volatile: true } }).execute(); +const item = await db.platformFunctionDefinition.findOne({ id: '', select: { accessChannels: true, billable: true, category: true, concurrency: true, cpuLimitMillicores: true, cpuRequestMillicores: true, createdAt: true, description: true, fnCategory: true, functionColumns: true, graphId: true, icon: true, id: true, image: true, inputs: true, integrations: true, isPublished: true, maxAttempts: true, memoryLimitBytes: true, memoryRequestBytes: true, moduleTable: true, name: true, outputs: true, payloadArgs: true, priority: true, props: true, protected: true, publishedAt: true, queueName: true, requiredBuckets: true, requiredConfigs: true, requiredModels: true, requiredModules: true, requiredSecrets: true, resources: true, runtime: true, scaleMax: true, scaleMin: true, system: true, targetFunction: true, targetSchema: true, taskIdentifier: true, timeoutSeconds: true, updatedAt: true, volatile: true } }).execute(); // Create -const created = await db.platformFunctionDefinition.create({ data: { accessChannels: '', billable: '', category: '', concurrency: '', cpuLimitMillicores: '', cpuRequestMillicores: '', description: '', fnCategory: '', functionColumns: '', graphId: '', icon: '', image: '', inputs: '', integrations: '', isPublished: '', maxAttempts: '', memoryLimitBytes: '', memoryRequestBytes: '', moduleTable: '', name: '', outputs: '', payloadArgs: '', priority: '', props: '', protected: '', publishedAt: '', queueName: '', requiredBuckets: '', requiredConfigs: '', requiredModels: '', requiredSecrets: '', resources: '', runtime: '', scaleMax: '', scaleMin: '', system: '', targetFunction: '', targetSchema: '', taskIdentifier: '', timeoutSeconds: '', volatile: '' }, select: { id: true } }).execute(); +const created = await db.platformFunctionDefinition.create({ data: { accessChannels: '', billable: '', category: '', concurrency: '', cpuLimitMillicores: '', cpuRequestMillicores: '', description: '', fnCategory: '', functionColumns: '', graphId: '', icon: '', image: '', inputs: '', integrations: '', isPublished: '', maxAttempts: '', memoryLimitBytes: '', memoryRequestBytes: '', moduleTable: '', name: '', outputs: '', payloadArgs: '', priority: '', props: '', protected: '', publishedAt: '', queueName: '', requiredBuckets: '', requiredConfigs: '', requiredModels: '', requiredModules: '', requiredSecrets: '', resources: '', runtime: '', scaleMax: '', scaleMin: '', system: '', targetFunction: '', targetSchema: '', taskIdentifier: '', timeoutSeconds: '', volatile: '' }, select: { id: true } }).execute(); // Update const updated = await db.platformFunctionDefinition.update({ where: { id: '' }, data: { accessChannels: '' }, select: { id: true } }).execute(); @@ -1279,6 +1322,7 @@ CRUD operations for PlatformFunctionDeployment records. | `lastError` | String | Yes | | `lastErrorAt` | Datetime | Yes | | `namespaceId` | UUID | Yes | +| `realm` | String | Yes | | `resources` | JSON | Yes | | `revision` | Int | Yes | | `scaleMax` | Int | Yes | @@ -1293,13 +1337,13 @@ CRUD operations for PlatformFunctionDeployment records. ```typescript // List all platformFunctionDeployment records -const items = await db.platformFunctionDeployment.findMany({ select: { annotations: true, concurrency: true, createdAt: true, errorCount: true, handlerName: true, id: true, image: true, imageVersion: true, labels: true, lastError: true, lastErrorAt: true, namespaceId: true, resources: true, revision: true, scaleMax: true, scaleMin: true, serviceName: true, serviceUrl: true, status: true, timeoutSeconds: true, updatedAt: true } }).execute(); +const items = await db.platformFunctionDeployment.findMany({ select: { annotations: true, concurrency: true, createdAt: true, errorCount: true, handlerName: true, id: true, image: true, imageVersion: true, labels: true, lastError: true, lastErrorAt: true, namespaceId: true, realm: true, resources: true, revision: true, scaleMax: true, scaleMin: true, serviceName: true, serviceUrl: true, status: true, timeoutSeconds: true, updatedAt: true } }).execute(); // Get one by id -const item = await db.platformFunctionDeployment.findOne({ id: '', select: { annotations: true, concurrency: true, createdAt: true, errorCount: true, handlerName: true, id: true, image: true, imageVersion: true, labels: true, lastError: true, lastErrorAt: true, namespaceId: true, resources: true, revision: true, scaleMax: true, scaleMin: true, serviceName: true, serviceUrl: true, status: true, timeoutSeconds: true, updatedAt: true } }).execute(); +const item = await db.platformFunctionDeployment.findOne({ id: '', select: { annotations: true, concurrency: true, createdAt: true, errorCount: true, handlerName: true, id: true, image: true, imageVersion: true, labels: true, lastError: true, lastErrorAt: true, namespaceId: true, realm: true, resources: true, revision: true, scaleMax: true, scaleMin: true, serviceName: true, serviceUrl: true, status: true, timeoutSeconds: true, updatedAt: true } }).execute(); // Create -const created = await db.platformFunctionDeployment.create({ data: { annotations: '', concurrency: '', errorCount: '', handlerName: '', image: '', imageVersion: '', labels: '', lastError: '', lastErrorAt: '', namespaceId: '', resources: '', revision: '', scaleMax: '', scaleMin: '', serviceName: '', serviceUrl: '', status: '', timeoutSeconds: '' }, select: { id: true } }).execute(); +const created = await db.platformFunctionDeployment.create({ data: { annotations: '', concurrency: '', errorCount: '', handlerName: '', image: '', imageVersion: '', labels: '', lastError: '', lastErrorAt: '', namespaceId: '', realm: '', resources: '', revision: '', scaleMax: '', scaleMin: '', serviceName: '', serviceUrl: '', status: '', timeoutSeconds: '' }, select: { id: true } }).execute(); // Update const updated = await db.platformFunctionDeployment.update({ where: { id: '' }, data: { annotations: '' }, select: { id: true } }).execute(); @@ -3053,6 +3097,36 @@ infraInsertNodeAtPath const result = await db.mutation.infraInsertNodeAtPath({ input: '' }).execute(); ``` +### `db.mutation.infraInsertNodesAtPaths` + +infraInsertNodesAtPaths + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | InfraInsertNodesAtPathsInput (required) | + +```typescript +const result = await db.mutation.infraInsertNodesAtPaths({ input: '' }).execute(); +``` + +### `db.mutation.infraSetAndCommit` + +infraSetAndCommit + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | InfraSetAndCommitInput (required) | + +```typescript +const result = await db.mutation.infraSetAndCommit({ input: '' }).execute(); +``` + ### `db.mutation.infraSetDataAtPath` infraSetDataAtPath @@ -3068,6 +3142,21 @@ infraSetDataAtPath const result = await db.mutation.infraSetDataAtPath({ input: { data: '', path: '', root: '', sId: '' } }).execute(); ``` +### `db.mutation.infraSetManyAndCommit` + +infraSetManyAndCommit + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | InfraSetManyAndCommitInput (required) | + +```typescript +const result = await db.mutation.infraSetManyAndCommit({ input: { entries: '', message: '', refname: '', sId: '', storeId: '' } }).execute(); +``` + ### `db.mutation.initEmptyRepo` initEmptyRepo @@ -3098,6 +3187,21 @@ insertNodeAtPath const result = await db.mutation.insertNodeAtPath({ input: '' }).execute(); ``` +### `db.mutation.insertNodesAtPaths` + +insertNodesAtPaths + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | InsertNodesAtPathsInput (required) | + +```typescript +const result = await db.mutation.insertNodesAtPaths({ input: '' }).execute(); +``` + ### `db.mutation.platformInfraInitEmptyRepo` platformInfraInitEmptyRepo @@ -3128,6 +3232,36 @@ platformInfraInsertNodeAtPath const result = await db.mutation.platformInfraInsertNodeAtPath({ input: '' }).execute(); ``` +### `db.mutation.platformInfraInsertNodesAtPaths` + +platformInfraInsertNodesAtPaths + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | PlatformInfraInsertNodesAtPathsInput (required) | + +```typescript +const result = await db.mutation.platformInfraInsertNodesAtPaths({ input: '' }).execute(); +``` + +### `db.mutation.platformInfraSetAndCommit` + +platformInfraSetAndCommit + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | PlatformInfraSetAndCommitInput (required) | + +```typescript +const result = await db.mutation.platformInfraSetAndCommit({ input: '' }).execute(); +``` + ### `db.mutation.platformInfraSetDataAtPath` platformInfraSetDataAtPath @@ -3143,6 +3277,21 @@ platformInfraSetDataAtPath const result = await db.mutation.platformInfraSetDataAtPath({ input: { data: '', path: '', root: '', sId: '' } }).execute(); ``` +### `db.mutation.platformInfraSetManyAndCommit` + +platformInfraSetManyAndCommit + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | PlatformInfraSetManyAndCommitInput (required) | + +```typescript +const result = await db.mutation.platformInfraSetManyAndCommit({ input: { entries: '', message: '', refname: '', sId: '', storeId: '' } }).execute(); +``` + ### `db.mutation.platformResourceInstallationsInstall` platformResourceInstallationsInstall @@ -3296,6 +3445,21 @@ saveGraph const result = await db.mutation.saveGraph({ input: { graphId: '', message: '', rootHash: '' } }).execute(); ``` +### `db.mutation.setAndCommit` + +setAndCommit + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | SetAndCommitInput (required) | + +```typescript +const result = await db.mutation.setAndCommit({ input: '' }).execute(); +``` + ### `db.mutation.setDataAtPath` setDataAtPath @@ -3311,6 +3475,21 @@ setDataAtPath const result = await db.mutation.setDataAtPath({ input: { data: '', path: '', root: '', sId: '' } }).execute(); ``` +### `db.mutation.setManyAndCommit` + +setManyAndCommit + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | SetManyAndCommitInput (required) | + +```typescript +const result = await db.mutation.setManyAndCommit({ input: { entries: '', message: '', refname: '', sId: '', storeId: '' } }).execute(); +``` + ### `db.mutation.startExecution` startExecution diff --git a/sdk/constructive-cli/src/compute/orm/index.ts b/sdk/constructive-cli/src/compute/orm/index.ts index 531cf363ab..62973ed4f2 100644 --- a/sdk/constructive-cli/src/compute/orm/index.ts +++ b/sdk/constructive-cli/src/compute/orm/index.ts @@ -5,6 +5,7 @@ */ import { OrmClient } from './client'; import type { OrmClientConfig } from './client'; +import { ContentPresetModel } from './models/contentPreset'; import { DbPresetModel } from './models/dbPreset'; import { FunctionApiBindingModel } from './models/functionApiBinding'; import { FunctionCapabilityBindingModel } from './models/functionCapabilityBinding'; @@ -109,6 +110,7 @@ export { createMutationOperations } from './mutation'; export function createClient(config: OrmClientConfig) { const client = new OrmClient(config); return { + contentPreset: new ContentPresetModel(client), dbPreset: new DbPresetModel(client), functionApiBinding: new FunctionApiBindingModel(client), functionCapabilityBinding: new FunctionCapabilityBindingModel(client), diff --git a/sdk/constructive-cli/src/compute/orm/input-types.ts b/sdk/constructive-cli/src/compute/orm/input-types.ts index a132305584..566e3f81b1 100644 --- a/sdk/constructive-cli/src/compute/orm/input-types.ts +++ b/sdk/constructive-cli/src/compute/orm/input-types.ts @@ -234,8 +234,33 @@ export interface UUIDListFilter { export type Base64EncodedBinary = unknown; export type ConstructiveInternalTypeImage = unknown; export type ResourceRequirement = unknown; -/** Database provisioning preset catalog — merkle-versioned head over the infra store */ +/** Seed-content preset catalog (limit defaults, trust ladders, ...) — merkle-versioned head over the infra store */ // ============ Entity Types ============ +export interface ContentPreset { + /** Whether this preset is selectable at provision time */ + active?: boolean | null; + /** Infra store commit for the current definition (stamped by the versioned trigger on every write) */ + commitId?: string | null; + /** Timestamp of preset creation */ + createdAt?: string | null; + /** The seed document itself, in the shape the kind's seed function takes — the readily-cached head; history lives in the infra store */ + definition?: Record | null; + /** Human-readable description of the preset */ + description?: string | null; + /** Unique preset identifier */ + id: string; + /** What the definition seeds — the module option that resolves it (limit_defaults, trust_ladder, ...) */ + kind?: string | null; + /** Human-readable preset name */ + label?: string | null; + /** Preset slug (unique per kind per scope); the preset's path in the infra tree is [content_preset, kind, slug] */ + slug?: string | null; + /** Infra Merkle store holding this preset's history (stamped by the versioned trigger) */ + storeId?: string | null; + /** Timestamp of last modification */ + updatedAt?: string | null; +} +/** Database provisioning preset catalog — merkle-versioned head over the infra store */ export interface DbPreset { /** Whether this preset is selectable for new databases */ active?: boolean | null; @@ -296,7 +321,7 @@ export interface FunctionCapabilityBinding { } /** Function definitions — registered cloud functions with routing, queue, and retry configuration */ export interface FunctionDefinition { - /** Invocation channels this function may be exposed through (api, graph, cron, sync, webhook). Internal worker dispatch is implicit and never listed. Default [] = worker only. */ + /** Invocation channels this function may be exposed through (api, graph, cron, sync, page, webhook). Internal worker dispatch is implicit and never listed. Default [] = worker only. */ accessChannels?: string[] | null; /** Function task category (e.g. email, embed, chunk, custom) */ category?: string | null; @@ -352,12 +377,14 @@ export interface FunctionDefinition { publishedAt?: string | null; /** Job queue name for serialization (e.g. email, ai, default) */ queueName?: string | null; - /** Bucket keys this function needs (e.g. uploads, exports). Empty = no bucket requirements. */ + /** Bucket keys this function needs (e.g. uploads, exports). Tenant-agnostic: each key is resolved per invocation against the tenant's buckets by {tags, type}, or by an explicit capability binding row. Empty = no bucket requirements. */ requiredBuckets?: string[] | null; /** Embedded config requirements: array of (name, required, provider) tuples. provider is the integration slug this requirement belongs to, if any. */ requiredConfigs?: ResourceRequirement[] | null; /** Inference model whitelist (e.g. gpt-4o, claude-3). Empty = no model requirements. */ requiredModels?: string[] | null; + /** Modules whose api surfaces this function calls, e.g. notifications_module. Suffix . to name which surface when a module's schemas are attached to several (capabilities_module.admin), and @ to pin the registration when a module is registered at more than one scope (limits_module@org) — usually unnecessary, since resolution walks the execution's scope chain. A value that is not a module name is read as an api name. Resolved per invocation; empty = no api requirements. */ + requiredModules?: string[] | null; /** Embedded secret requirements: array of (name, required, provider) tuples. provider is the integration slug this requirement belongs to, if any. */ requiredSecrets?: ResourceRequirement[] | null; /** Container resource requests and limits: {requests: {memory, cpu}, limits: {memory, cpu}} */ @@ -406,6 +433,8 @@ export interface FunctionDeployment { lastErrorAt?: string | null; /** Target namespace for this deployment (maps to a K8s namespace) */ namespaceId?: string | null; + /** Config/secret realm this deployment resolves required keys against. Per key, the realm-specific atom wins over the NULL-realm default. NULL = the default lane (or a runtime-query worker that fetches per-item realms on demand). */ + realm?: string | null; /** K8s resource spec override: {"requests":{"cpu":"100m","memory":"128Mi"},"limits":{...}} */ resources?: Record | null; /** Deployment revision number (incremented on each redeployment) */ @@ -911,7 +940,7 @@ export interface PlatformFunctionCapabilityBinding { } /** Function definitions — registered cloud functions with routing, queue, and retry configuration */ export interface PlatformFunctionDefinition { - /** Invocation channels this function may be exposed through (api, graph, cron, sync, webhook). Internal worker dispatch is implicit and never listed. Default [] = worker only. */ + /** Invocation channels this function may be exposed through (api, graph, cron, sync, page, webhook). Internal worker dispatch is implicit and never listed. Default [] = worker only. */ accessChannels?: string[] | null; /** Whether executions are metered through the invocation ledger and billing quota gate */ billable?: boolean | null; @@ -967,12 +996,14 @@ export interface PlatformFunctionDefinition { publishedAt?: string | null; /** Job queue name for serialization (e.g. email, ai, default) */ queueName?: string | null; - /** Bucket keys this function needs (e.g. uploads, exports). Empty = no bucket requirements. */ + /** Bucket keys this function needs (e.g. uploads, exports). Tenant-agnostic: each key is resolved per invocation against the tenant's buckets by {tags, type}, or by an explicit capability binding row. Empty = no bucket requirements. */ requiredBuckets?: string[] | null; /** Embedded config requirements: array of (name, required, provider) tuples. provider is the integration slug this requirement belongs to, if any. */ requiredConfigs?: ResourceRequirement[] | null; /** Inference model whitelist (e.g. gpt-4o, claude-3). Empty = no model requirements. */ requiredModels?: string[] | null; + /** Modules whose api surfaces this function calls, e.g. notifications_module. Suffix . to name which surface when a module's schemas are attached to several (capabilities_module.admin), and @ to pin the registration when a module is registered at more than one scope (limits_module@org) — usually unnecessary, since resolution walks the execution's scope chain. A value that is not a module name is read as an api name. Resolved per invocation; empty = no api requirements. */ + requiredModules?: string[] | null; /** Embedded secret requirements: array of (name, required, provider) tuples. provider is the integration slug this requirement belongs to, if any. */ requiredSecrets?: ResourceRequirement[] | null; /** Container resource requests and limits: {requests: {memory, cpu}, limits: {memory, cpu}} */ @@ -1021,6 +1052,8 @@ export interface PlatformFunctionDeployment { lastErrorAt?: string | null; /** Target namespace for this deployment (maps to a K8s namespace) */ namespaceId?: string | null; + /** Config/secret realm this deployment resolves required keys against. Per key, the realm-specific atom wins over the NULL-realm default. NULL = the default lane (or a runtime-query worker that fetches per-item realms on demand). */ + realm?: string | null; /** K8s resource spec override: {"requests":{"cpu":"100m","memory":"128Mi"},"limits":{...}} */ resources?: Record | null; /** Deployment revision number (incremented on each redeployment) */ @@ -1946,6 +1979,7 @@ export interface PageInfo { endCursor?: string | null; } // ============ Entity Relation Types ============ +export interface ContentPresetRelations {} export interface DbPresetRelations {} export interface FunctionApiBindingRelations { functionDefinition?: FunctionDefinition | null; @@ -2098,6 +2132,7 @@ export interface WebhookEventRelations { endpoint?: WebhookEndpoint | null; } // ============ Entity Types With Relations ============ +export type ContentPresetWithRelations = ContentPreset & ContentPresetRelations; export type DbPresetWithRelations = DbPreset & DbPresetRelations; export type FunctionApiBindingWithRelations = FunctionApiBinding & FunctionApiBindingRelations; export type FunctionCapabilityBindingWithRelations = FunctionCapabilityBinding & @@ -2205,6 +2240,19 @@ export type ResourcesResolvedRequirementWithRelations = ResourcesResolvedRequire export type WebhookEndpointWithRelations = WebhookEndpoint & WebhookEndpointRelations; export type WebhookEventWithRelations = WebhookEvent & WebhookEventRelations; // ============ Entity Select Types ============ +export type ContentPresetSelect = { + active?: boolean; + commitId?: boolean; + createdAt?: boolean; + definition?: boolean; + description?: boolean; + id?: boolean; + kind?: boolean; + label?: boolean; + slug?: boolean; + storeId?: boolean; + updatedAt?: boolean; +}; export type DbPresetSelect = { active?: boolean; commitId?: boolean; @@ -2284,6 +2332,7 @@ export type FunctionDefinitionSelect = { requiredBuckets?: boolean; requiredConfigs?: boolean; requiredModels?: boolean; + requiredModules?: boolean; requiredSecrets?: boolean; resources?: boolean; runtime?: boolean; @@ -2328,6 +2377,7 @@ export type FunctionDeploymentSelect = { lastError?: boolean; lastErrorAt?: boolean; namespaceId?: boolean; + realm?: boolean; resources?: boolean; revision?: boolean; scaleMax?: boolean; @@ -2697,6 +2747,7 @@ export type PlatformFunctionDefinitionSelect = { requiredBuckets?: boolean; requiredConfigs?: boolean; requiredModels?: boolean; + requiredModules?: boolean; requiredSecrets?: boolean; resources?: boolean; runtime?: boolean; @@ -2744,6 +2795,7 @@ export type PlatformFunctionDeploymentSelect = { lastError?: boolean; lastErrorAt?: boolean; namespaceId?: boolean; + realm?: boolean; resources?: boolean; revision?: boolean; scaleMax?: boolean; @@ -3472,6 +3524,36 @@ export type WebhookEventSelect = { }; }; // ============ Table Filter Types ============ +export interface ContentPresetFilter { + /** Filter by the object’s `active` field. */ + active?: BooleanFilter; + /** Checks for all expressions in this list. */ + and?: ContentPresetFilter[]; + /** Filter by the object’s `commitId` field. */ + commitId?: UUIDFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `definition` field. */ + definition?: JSONFilter; + /** Filter by the object’s `description` field. */ + description?: StringFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `kind` field. */ + kind?: StringFilter; + /** Filter by the object’s `label` field. */ + label?: StringFilter; + /** Negates the expression. */ + not?: ContentPresetFilter; + /** Checks for any expressions in this list. */ + or?: ContentPresetFilter[]; + /** Filter by the object’s `slug` field. */ + slug?: StringFilter; + /** Filter by the object’s `storeId` field. */ + storeId?: UUIDFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; +} export interface DbPresetFilter { /** Filter by the object’s `active` field. */ active?: BooleanFilter; @@ -3639,6 +3721,8 @@ export interface FunctionDefinitionFilter { requiredBuckets?: StringListFilter; /** Filter by the object’s `requiredModels` field. */ requiredModels?: StringListFilter; + /** Filter by the object’s `requiredModules` field. */ + requiredModules?: StringListFilter; /** Filter by the object’s `resources` field. */ resources?: JSONFilter; /** Filter by the object’s `runtime` field. */ @@ -3699,6 +3783,8 @@ export interface FunctionDeploymentFilter { not?: FunctionDeploymentFilter; /** Checks for any expressions in this list. */ or?: FunctionDeploymentFilter[]; + /** Filter by the object’s `realm` field. */ + realm?: StringFilter; /** Filter by the object’s `resources` field. */ resources?: JSONFilter; /** Filter by the object’s `revision` field. */ @@ -4451,6 +4537,8 @@ export interface PlatformFunctionDefinitionFilter { requiredBuckets?: StringListFilter; /** Filter by the object’s `requiredModels` field. */ requiredModels?: StringListFilter; + /** Filter by the object’s `requiredModules` field. */ + requiredModules?: StringListFilter; /** Filter by the object’s `resources` field. */ resources?: JSONFilter; /** Filter by the object’s `runtime` field. */ @@ -4507,6 +4595,8 @@ export interface PlatformFunctionDeploymentFilter { not?: PlatformFunctionDeploymentFilter; /** Checks for any expressions in this list. */ or?: PlatformFunctionDeploymentFilter[]; + /** Filter by the object’s `realm` field. */ + realm?: StringFilter; /** Filter by the object’s `resources` field. */ resources?: JSONFilter; /** Filter by the object’s `revision` field. */ @@ -5912,6 +6002,32 @@ export interface WebhookEventFilter { updatedAt?: DatetimeFilter; } // ============ OrderBy Types ============ +export type ContentPresetOrderBy = + | 'ACTIVE_ASC' + | 'ACTIVE_DESC' + | 'COMMIT_ID_ASC' + | 'COMMIT_ID_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'DEFINITION_ASC' + | 'DEFINITION_DESC' + | 'DESCRIPTION_ASC' + | 'DESCRIPTION_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'KIND_ASC' + | 'KIND_DESC' + | 'LABEL_ASC' + | 'LABEL_DESC' + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'SLUG_ASC' + | 'SLUG_DESC' + | 'STORE_ID_ASC' + | 'STORE_ID_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC'; export type DbPresetOrderBy = | 'ACTIVE_ASC' | 'ACTIVE_DESC' @@ -6048,6 +6164,8 @@ export type FunctionDefinitionOrderBy = | 'REQUIRED_CONFIGS_DESC' | 'REQUIRED_MODELS_ASC' | 'REQUIRED_MODELS_DESC' + | 'REQUIRED_MODULES_ASC' + | 'REQUIRED_MODULES_DESC' | 'REQUIRED_SECRETS_ASC' | 'REQUIRED_SECRETS_DESC' | 'RESOURCES_ASC' @@ -6100,6 +6218,8 @@ export type FunctionDeploymentOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' + | 'REALM_ASC' + | 'REALM_DESC' | 'RESOURCES_ASC' | 'RESOURCES_DESC' | 'REVISION_ASC' @@ -6712,6 +6832,8 @@ export type PlatformFunctionDefinitionOrderBy = | 'REQUIRED_CONFIGS_DESC' | 'REQUIRED_MODELS_ASC' | 'REQUIRED_MODELS_DESC' + | 'REQUIRED_MODULES_ASC' + | 'REQUIRED_MODULES_DESC' | 'REQUIRED_SECRETS_ASC' | 'REQUIRED_SECRETS_DESC' | 'RESOURCES_ASC' @@ -6764,6 +6886,8 @@ export type PlatformFunctionDeploymentOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' + | 'REALM_ASC' + | 'REALM_DESC' | 'RESOURCES_ASC' | 'RESOURCES_DESC' | 'REVISION_ASC' @@ -7921,6 +8045,38 @@ export type WebhookEventOrderBy = | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC'; // ============ CRUD Input Types ============ +export interface CreateContentPresetInput { + clientMutationId?: string; + contentPreset: { + active?: boolean; + commitId?: string; + definition: Record; + description?: string; + kind: string; + label?: string; + slug: string; + storeId?: string; + }; +} +export interface ContentPresetPatch { + active?: boolean | null; + commitId?: string | null; + definition?: Record | null; + description?: string | null; + kind?: string | null; + label?: string | null; + slug?: string | null; + storeId?: string | null; +} +export interface UpdateContentPresetInput { + clientMutationId?: string; + id: string; + contentPresetPatch: ContentPresetPatch; +} +export interface DeleteContentPresetInput { + clientMutationId?: string; + id: string; +} export interface CreateDbPresetInput { clientMutationId?: string; dbPreset: { @@ -8036,6 +8192,7 @@ export interface CreateFunctionDefinitionInput { requiredBuckets?: string[]; requiredConfigs?: ResourceRequirementInput[]; requiredModels?: string[]; + requiredModules?: string[]; requiredSecrets?: ResourceRequirementInput[]; resources?: Record; runtime?: string; @@ -8074,6 +8231,7 @@ export interface FunctionDefinitionPatch { requiredBuckets?: string[] | null; requiredConfigs?: ResourceRequirementInput[] | null; requiredModels?: string[] | null; + requiredModules?: string[] | null; requiredSecrets?: ResourceRequirementInput[] | null; resources?: Record | null; runtime?: string | null; @@ -8107,6 +8265,7 @@ export interface CreateFunctionDeploymentInput { lastError?: string; lastErrorAt?: string; namespaceId: string; + realm?: string; resources?: Record; revision?: number; scaleMax?: number; @@ -8129,6 +8288,7 @@ export interface FunctionDeploymentPatch { lastError?: string | null; lastErrorAt?: string | null; namespaceId?: string | null; + realm?: string | null; resources?: Record | null; revision?: number | null; scaleMax?: number | null; @@ -8895,6 +9055,7 @@ export interface CreatePlatformFunctionDefinitionInput { requiredBuckets?: string[]; requiredConfigs?: ResourceRequirementInput[]; requiredModels?: string[]; + requiredModules?: string[]; requiredSecrets?: ResourceRequirementInput[]; resources?: Record; runtime?: string; @@ -8934,6 +9095,7 @@ export interface PlatformFunctionDefinitionPatch { requiredBuckets?: string[] | null; requiredConfigs?: ResourceRequirementInput[] | null; requiredModels?: string[] | null; + requiredModules?: string[] | null; requiredSecrets?: ResourceRequirementInput[] | null; resources?: Record | null; runtime?: string | null; @@ -8967,6 +9129,7 @@ export interface CreatePlatformFunctionDeploymentInput { lastError?: string; lastErrorAt?: string; namespaceId: string; + realm?: string; resources?: Record; revision?: number; scaleMax?: number; @@ -8988,6 +9151,7 @@ export interface PlatformFunctionDeploymentPatch { lastError?: string | null; lastErrorAt?: string | null; namespaceId?: string | null; + realm?: string | null; resources?: Record | null; revision?: number | null; scaleMax?: number | null; @@ -10613,6 +10777,26 @@ export interface InfraInsertNodeAtPathInput { root?: string; sId?: string; } +export interface InfraInsertNodesAtPathsInput { + clientMutationId?: string; + datas?: Record[]; + kidsList?: Record; + ktreeList?: Record; + paths?: Record; + root?: string; + sId?: string; +} +export interface InfraSetAndCommitInput { + clientMutationId?: string; + data?: Record; + kids?: string[]; + ktree?: string[]; + message?: string; + path?: string[]; + refname?: string; + sId?: string; + storeId?: string; +} export interface InfraSetDataAtPathInput { clientMutationId?: string; data?: Record; @@ -10620,6 +10804,14 @@ export interface InfraSetDataAtPathInput { root?: string; sId?: string; } +export interface InfraSetManyAndCommitInput { + clientMutationId?: string; + entries?: Record; + message?: string; + refname?: string; + sId?: string; + storeId?: string; +} export interface InitEmptyRepoInput { clientMutationId?: string; sId?: string; @@ -10634,6 +10826,15 @@ export interface InsertNodeAtPathInput { root?: string; sId?: string; } +export interface InsertNodesAtPathsInput { + clientMutationId?: string; + datas?: Record[]; + kidsList?: Record; + ktreeList?: Record; + paths?: Record; + root?: string; + sId?: string; +} export interface PlatformInfraInitEmptyRepoInput { clientMutationId?: string; sId?: string; @@ -10648,6 +10849,26 @@ export interface PlatformInfraInsertNodeAtPathInput { root?: string; sId?: string; } +export interface PlatformInfraInsertNodesAtPathsInput { + clientMutationId?: string; + datas?: Record[]; + kidsList?: Record; + ktreeList?: Record; + paths?: Record; + root?: string; + sId?: string; +} +export interface PlatformInfraSetAndCommitInput { + clientMutationId?: string; + data?: Record; + kids?: string[]; + ktree?: string[]; + message?: string; + path?: string[]; + refname?: string; + sId?: string; + storeId?: string; +} export interface PlatformInfraSetDataAtPathInput { clientMutationId?: string; data?: Record; @@ -10655,6 +10876,14 @@ export interface PlatformInfraSetDataAtPathInput { root?: string; sId?: string; } +export interface PlatformInfraSetManyAndCommitInput { + clientMutationId?: string; + entries?: Record; + message?: string; + refname?: string; + sId?: string; + storeId?: string; +} export interface PlatformResourceInstallationsInstallInput { clientMutationId?: string; definitionIds?: string[]; @@ -10714,6 +10943,17 @@ export interface SaveGraphInput { message?: string; rootHash?: string; } +export interface SetAndCommitInput { + clientMutationId?: string; + data?: Record; + kids?: string[]; + ktree?: string[]; + message?: string; + path?: string[]; + refname?: string; + sId?: string; + storeId?: string; +} export interface SetDataAtPathInput { clientMutationId?: string; data?: Record; @@ -10721,6 +10961,14 @@ export interface SetDataAtPathInput { root?: string; sId?: string; } +export interface SetManyAndCommitInput { + clientMutationId?: string; + entries?: Record; + message?: string; + refname?: string; + sId?: string; + storeId?: string; +} export interface StartExecutionInput { clientMutationId?: string; graphId?: string; @@ -11067,6 +11315,31 @@ export interface WebhookEndpointToManyWebhookEventFilter { /** Filters to entities where at least one related entity matches. */ some?: WebhookEventFilter; } +/** An input for mutations affecting `ContentPreset` */ +export interface ContentPresetInput { + /** Whether this preset is selectable at provision time */ + active?: boolean; + /** Infra store commit for the current definition (stamped by the versioned trigger on every write) */ + commitId?: string; + /** Timestamp of preset creation */ + createdAt?: string; + /** The seed document itself, in the shape the kind's seed function takes — the readily-cached head; history lives in the infra store */ + definition: Record; + /** Human-readable description of the preset */ + description?: string; + /** Unique preset identifier */ + id?: string; + /** What the definition seeds — the module option that resolves it (limit_defaults, trust_ladder, ...) */ + kind: string; + /** Human-readable preset name */ + label?: string; + /** Preset slug (unique per kind per scope); the preset's path in the infra tree is [content_preset, kind, slug] */ + slug: string; + /** Infra Merkle store holding this preset's history (stamped by the versioned trigger) */ + storeId?: string; + /** Timestamp of last modification */ + updatedAt?: string; +} /** An input for mutations affecting `DbPreset` */ export interface DbPresetInput { /** Whether this preset is selectable for new databases */ @@ -11128,7 +11401,7 @@ export interface FunctionCapabilityBindingInput { } /** An input for mutations affecting `FunctionDefinition` */ export interface FunctionDefinitionInput { - /** Invocation channels this function may be exposed through (api, graph, cron, sync, webhook). Internal worker dispatch is implicit and never listed. Default [] = worker only. */ + /** Invocation channels this function may be exposed through (api, graph, cron, sync, page, webhook). Internal worker dispatch is implicit and never listed. Default [] = worker only. */ accessChannels?: string[]; /** Function task category (e.g. email, embed, chunk, custom) */ category: string; @@ -11176,12 +11449,14 @@ export interface FunctionDefinitionInput { publishedAt?: string; /** Job queue name for serialization (e.g. email, ai, default) */ queueName?: string; - /** Bucket keys this function needs (e.g. uploads, exports). Empty = no bucket requirements. */ + /** Bucket keys this function needs (e.g. uploads, exports). Tenant-agnostic: each key is resolved per invocation against the tenant's buckets by {tags, type}, or by an explicit capability binding row. Empty = no bucket requirements. */ requiredBuckets?: string[]; /** Embedded config requirements: array of (name, required, provider) tuples. provider is the integration slug this requirement belongs to, if any. */ requiredConfigs?: ResourceRequirementInput[]; /** Inference model whitelist (e.g. gpt-4o, claude-3). Empty = no model requirements. */ requiredModels?: string[]; + /** Modules whose api surfaces this function calls, e.g. notifications_module. Suffix . to name which surface when a module's schemas are attached to several (capabilities_module.admin), and @ to pin the registration when a module is registered at more than one scope (limits_module@org) — usually unnecessary, since resolution walks the execution's scope chain. A value that is not a module name is read as an api name. Resolved per invocation; empty = no api requirements. */ + requiredModules?: string[]; /** Embedded secret requirements: array of (name, required, provider) tuples. provider is the integration slug this requirement belongs to, if any. */ requiredSecrets?: ResourceRequirementInput[]; /** Container resource requests and limits: {requests: {memory, cpu}, limits: {memory, cpu}} */ @@ -11234,6 +11509,8 @@ export interface FunctionDeploymentInput { lastErrorAt?: string; /** Target namespace for this deployment (maps to a K8s namespace) */ namespaceId: string; + /** Config/secret realm this deployment resolves required keys against. Per key, the realm-specific atom wins over the NULL-realm default. NULL = the default lane (or a runtime-query worker that fetches per-item realms on demand). */ + realm?: string; /** K8s resource spec override: {"requests":{"cpu":"100m","memory":"128Mi"},"limits":{...}} */ resources?: Record; /** Deployment revision number (incremented on each redeployment) */ @@ -11704,7 +11981,7 @@ export interface PlatformFunctionCapabilityBindingInput { } /** An input for mutations affecting `PlatformFunctionDefinition` */ export interface PlatformFunctionDefinitionInput { - /** Invocation channels this function may be exposed through (api, graph, cron, sync, webhook). Internal worker dispatch is implicit and never listed. Default [] = worker only. */ + /** Invocation channels this function may be exposed through (api, graph, cron, sync, page, webhook). Internal worker dispatch is implicit and never listed. Default [] = worker only. */ accessChannels?: string[]; /** Whether executions are metered through the invocation ledger and billing quota gate */ billable?: boolean; @@ -11752,12 +12029,14 @@ export interface PlatformFunctionDefinitionInput { publishedAt?: string; /** Job queue name for serialization (e.g. email, ai, default) */ queueName?: string; - /** Bucket keys this function needs (e.g. uploads, exports). Empty = no bucket requirements. */ + /** Bucket keys this function needs (e.g. uploads, exports). Tenant-agnostic: each key is resolved per invocation against the tenant's buckets by {tags, type}, or by an explicit capability binding row. Empty = no bucket requirements. */ requiredBuckets?: string[]; /** Embedded config requirements: array of (name, required, provider) tuples. provider is the integration slug this requirement belongs to, if any. */ requiredConfigs?: ResourceRequirementInput[]; /** Inference model whitelist (e.g. gpt-4o, claude-3). Empty = no model requirements. */ requiredModels?: string[]; + /** Modules whose api surfaces this function calls, e.g. notifications_module. Suffix . to name which surface when a module's schemas are attached to several (capabilities_module.admin), and @ to pin the registration when a module is registered at more than one scope (limits_module@org) — usually unnecessary, since resolution walks the execution's scope chain. A value that is not a module name is read as an api name. Resolved per invocation; empty = no api requirements. */ + requiredModules?: string[]; /** Embedded secret requirements: array of (name, required, provider) tuples. provider is the integration slug this requirement belongs to, if any. */ requiredSecrets?: ResourceRequirementInput[]; /** Container resource requests and limits: {requests: {memory, cpu}, limits: {memory, cpu}} */ @@ -11804,6 +12083,8 @@ export interface PlatformFunctionDeploymentInput { lastErrorAt?: string; /** Target namespace for this deployment (maps to a K8s namespace) */ namespaceId: string; + /** Config/secret realm this deployment resolves required keys against. Per key, the realm-specific atom wins over the NULL-realm default. NULL = the default lane (or a runtime-query worker that fetches per-item realms on demand). */ + realm?: string; /** K8s resource spec override: {"requests":{"cpu":"100m","memory":"128Mi"},"limits":{...}} */ resources?: Record; /** Deployment revision number (incremented on each redeployment) */ @@ -12841,6 +13122,8 @@ export interface PlatformFunctionDefinitionFilter { requiredBuckets?: StringListFilter; /** Filter by the object’s `requiredModels` field. */ requiredModels?: StringListFilter; + /** Filter by the object’s `requiredModules` field. */ + requiredModules?: StringListFilter; /** Filter by the object’s `resources` field. */ resources?: JSONFilter; /** Filter by the object’s `runtime` field. */ @@ -12900,6 +13183,8 @@ export interface FunctionDeploymentFilter { not?: FunctionDeploymentFilter; /** Checks for any expressions in this list. */ or?: FunctionDeploymentFilter[]; + /** Filter by the object’s `realm` field. */ + realm?: StringFilter; /** Filter by the object’s `resources` field. */ resources?: JSONFilter; /** Filter by the object’s `revision` field. */ @@ -13282,6 +13567,8 @@ export interface PlatformFunctionDeploymentFilter { not?: PlatformFunctionDeploymentFilter; /** Checks for any expressions in this list. */ or?: PlatformFunctionDeploymentFilter[]; + /** Filter by the object’s `realm` field. */ + realm?: StringFilter; /** Filter by the object’s `resources` field. */ resources?: JSONFilter; /** Filter by the object’s `revision` field. */ @@ -13882,6 +14169,8 @@ export interface FunctionDefinitionFilter { requiredBuckets?: StringListFilter; /** Filter by the object’s `requiredModels` field. */ requiredModels?: StringListFilter; + /** Filter by the object’s `requiredModules` field. */ + requiredModules?: StringListFilter; /** Filter by the object’s `resources` field. */ resources?: JSONFilter; /** Filter by the object’s `runtime` field. */ @@ -14189,6 +14478,28 @@ export type InfraInsertNodeAtPathPayloadSelect = { clientMutationId?: boolean; result?: boolean; }; +export interface InfraInsertNodesAtPathsPayload { + clientMutationId?: string | null; + result?: string | null; +} +export type InfraInsertNodesAtPathsPayloadSelect = { + clientMutationId?: boolean; + result?: boolean; +}; +export interface InfraSetAndCommitPayload { + clientMutationId?: string | null; + infraCommitEdge?: InfraCommitEdge | null; + result?: InfraCommit | null; +} +export type InfraSetAndCommitPayloadSelect = { + clientMutationId?: boolean; + infraCommitEdge?: { + select: InfraCommitEdgeSelect; + }; + result?: { + select: InfraCommitSelect; + }; +}; export interface InfraSetDataAtPathPayload { clientMutationId?: string | null; result?: string | null; @@ -14197,6 +14508,20 @@ export type InfraSetDataAtPathPayloadSelect = { clientMutationId?: boolean; result?: boolean; }; +export interface InfraSetManyAndCommitPayload { + clientMutationId?: string | null; + infraCommitEdge?: InfraCommitEdge | null; + result?: InfraCommit | null; +} +export type InfraSetManyAndCommitPayloadSelect = { + clientMutationId?: boolean; + infraCommitEdge?: { + select: InfraCommitEdgeSelect; + }; + result?: { + select: InfraCommitSelect; + }; +}; export interface InitEmptyRepoPayload { clientMutationId?: string | null; } @@ -14211,6 +14536,14 @@ export type InsertNodeAtPathPayloadSelect = { clientMutationId?: boolean; result?: boolean; }; +export interface InsertNodesAtPathsPayload { + clientMutationId?: string | null; + result?: string | null; +} +export type InsertNodesAtPathsPayloadSelect = { + clientMutationId?: boolean; + result?: boolean; +}; export interface PlatformInfraInitEmptyRepoPayload { clientMutationId?: string | null; } @@ -14225,6 +14558,28 @@ export type PlatformInfraInsertNodeAtPathPayloadSelect = { clientMutationId?: boolean; result?: boolean; }; +export interface PlatformInfraInsertNodesAtPathsPayload { + clientMutationId?: string | null; + result?: string | null; +} +export type PlatformInfraInsertNodesAtPathsPayloadSelect = { + clientMutationId?: boolean; + result?: boolean; +}; +export interface PlatformInfraSetAndCommitPayload { + clientMutationId?: string | null; + platformInfraCommitEdge?: PlatformInfraCommitEdge | null; + result?: PlatformInfraCommit | null; +} +export type PlatformInfraSetAndCommitPayloadSelect = { + clientMutationId?: boolean; + platformInfraCommitEdge?: { + select: PlatformInfraCommitEdgeSelect; + }; + result?: { + select: PlatformInfraCommitSelect; + }; +}; export interface PlatformInfraSetDataAtPathPayload { clientMutationId?: string | null; result?: string | null; @@ -14233,6 +14588,20 @@ export type PlatformInfraSetDataAtPathPayloadSelect = { clientMutationId?: boolean; result?: boolean; }; +export interface PlatformInfraSetManyAndCommitPayload { + clientMutationId?: string | null; + platformInfraCommitEdge?: PlatformInfraCommitEdge | null; + result?: PlatformInfraCommit | null; +} +export type PlatformInfraSetManyAndCommitPayloadSelect = { + clientMutationId?: boolean; + platformInfraCommitEdge?: { + select: PlatformInfraCommitEdgeSelect; + }; + result?: { + select: PlatformInfraCommitSelect; + }; +}; export interface PlatformResourceInstallationsInstallPayload { clientMutationId?: string | null; result?: string | null; @@ -14315,6 +14684,20 @@ export type SaveGraphPayloadSelect = { clientMutationId?: boolean; result?: boolean; }; +export interface SetAndCommitPayload { + clientMutationId?: string | null; + functionGraphCommitEdge?: FunctionGraphCommitEdge | null; + result?: FunctionGraphCommit | null; +} +export type SetAndCommitPayloadSelect = { + clientMutationId?: boolean; + functionGraphCommitEdge?: { + select: FunctionGraphCommitEdgeSelect; + }; + result?: { + select: FunctionGraphCommitSelect; + }; +}; export interface SetDataAtPathPayload { clientMutationId?: string | null; result?: string | null; @@ -14323,6 +14706,20 @@ export type SetDataAtPathPayloadSelect = { clientMutationId?: boolean; result?: boolean; }; +export interface SetManyAndCommitPayload { + clientMutationId?: string | null; + functionGraphCommitEdge?: FunctionGraphCommitEdge | null; + result?: FunctionGraphCommit | null; +} +export type SetManyAndCommitPayloadSelect = { + clientMutationId?: boolean; + functionGraphCommitEdge?: { + select: FunctionGraphCommitEdgeSelect; + }; + result?: { + select: FunctionGraphCommitSelect; + }; +}; export interface StartExecutionPayload { clientMutationId?: string | null; result?: string | null; @@ -14339,6 +14736,51 @@ export type ValidateFunctionGraphPayloadSelect = { clientMutationId?: boolean; result?: boolean; }; +export interface CreateContentPresetPayload { + clientMutationId?: string | null; + /** The `ContentPreset` that was created by this mutation. */ + contentPreset?: ContentPreset | null; + contentPresetEdge?: ContentPresetEdge | null; +} +export type CreateContentPresetPayloadSelect = { + clientMutationId?: boolean; + contentPreset?: { + select: ContentPresetSelect; + }; + contentPresetEdge?: { + select: ContentPresetEdgeSelect; + }; +}; +export interface UpdateContentPresetPayload { + clientMutationId?: string | null; + /** The `ContentPreset` that was updated by this mutation. */ + contentPreset?: ContentPreset | null; + contentPresetEdge?: ContentPresetEdge | null; +} +export type UpdateContentPresetPayloadSelect = { + clientMutationId?: boolean; + contentPreset?: { + select: ContentPresetSelect; + }; + contentPresetEdge?: { + select: ContentPresetEdgeSelect; + }; +}; +export interface DeleteContentPresetPayload { + clientMutationId?: string | null; + /** The `ContentPreset` that was deleted by this mutation. */ + contentPreset?: ContentPreset | null; + contentPresetEdge?: ContentPresetEdge | null; +} +export type DeleteContentPresetPayloadSelect = { + clientMutationId?: boolean; + contentPreset?: { + select: ContentPresetSelect; + }; + contentPresetEdge?: { + select: ContentPresetEdgeSelect; + }; +}; export interface CreateDbPresetPayload { clientMutationId?: string | null; /** The `DbPreset` that was created by this mutation. */ @@ -16852,6 +17294,54 @@ export type DeleteWebhookEventPayloadSelect = { select: WebhookEventEdgeSelect; }; }; +/** A `InfraCommit` edge in the connection. */ +export interface InfraCommitEdge { + cursor?: string | null; + /** The `InfraCommit` at the end of the edge. */ + node?: InfraCommit | null; +} +export type InfraCommitEdgeSelect = { + cursor?: boolean; + node?: { + select: InfraCommitSelect; + }; +}; +/** A `PlatformInfraCommit` edge in the connection. */ +export interface PlatformInfraCommitEdge { + cursor?: string | null; + /** The `PlatformInfraCommit` at the end of the edge. */ + node?: PlatformInfraCommit | null; +} +export type PlatformInfraCommitEdgeSelect = { + cursor?: boolean; + node?: { + select: PlatformInfraCommitSelect; + }; +}; +/** A `FunctionGraphCommit` edge in the connection. */ +export interface FunctionGraphCommitEdge { + cursor?: string | null; + /** The `FunctionGraphCommit` at the end of the edge. */ + node?: FunctionGraphCommit | null; +} +export type FunctionGraphCommitEdgeSelect = { + cursor?: boolean; + node?: { + select: FunctionGraphCommitSelect; + }; +}; +/** A `ContentPreset` edge in the connection. */ +export interface ContentPresetEdge { + cursor?: string | null; + /** The `ContentPreset` at the end of the edge. */ + node?: ContentPreset | null; +} +export type ContentPresetEdgeSelect = { + cursor?: boolean; + node?: { + select: ContentPresetSelect; + }; +}; /** A `DbPreset` edge in the connection. */ export interface DbPresetEdge { cursor?: string | null; @@ -16936,18 +17426,6 @@ export type FunctionExecutionLogEdgeSelect = { select: FunctionExecutionLogSelect; }; }; -/** A `FunctionGraphCommit` edge in the connection. */ -export interface FunctionGraphCommitEdge { - cursor?: string | null; - /** The `FunctionGraphCommit` at the end of the edge. */ - node?: FunctionGraphCommit | null; -} -export type FunctionGraphCommitEdgeSelect = { - cursor?: boolean; - node?: { - select: FunctionGraphCommitSelect; - }; -}; /** A `FunctionGraph` edge in the connection. */ export interface FunctionGraphEdge { cursor?: string | null; @@ -17056,18 +17534,6 @@ export type FunctionInvocationEdgeSelect = { select: FunctionInvocationSelect; }; }; -/** A `InfraCommit` edge in the connection. */ -export interface InfraCommitEdge { - cursor?: string | null; - /** The `InfraCommit` at the end of the edge. */ - node?: InfraCommit | null; -} -export type InfraCommitEdgeSelect = { - cursor?: boolean; - node?: { - select: InfraCommitSelect; - }; -}; /** A `InfraObject` edge in the connection. */ export interface InfraObjectEdge { cursor?: string | null; @@ -17236,18 +17702,6 @@ export type PlatformFunctionInvocationEdgeSelect = { select: PlatformFunctionInvocationSelect; }; }; -/** A `PlatformInfraCommit` edge in the connection. */ -export interface PlatformInfraCommitEdge { - cursor?: string | null; - /** The `PlatformInfraCommit` at the end of the edge. */ - node?: PlatformInfraCommit | null; -} -export type PlatformInfraCommitEdgeSelect = { - cursor?: boolean; - node?: { - select: PlatformInfraCommitSelect; - }; -}; /** A `PlatformInfraObject` edge in the connection. */ export interface PlatformInfraObjectEdge { cursor?: string | null; diff --git a/sdk/constructive-cli/src/admin/orm/models/appPermission.ts b/sdk/constructive-cli/src/compute/orm/models/contentPreset.ts similarity index 53% rename from sdk/constructive-cli/src/admin/orm/models/appPermission.ts rename to sdk/constructive-cli/src/compute/orm/models/contentPreset.ts index efa4812398..20242ccc78 100644 --- a/sdk/constructive-cli/src/admin/orm/models/appPermission.ts +++ b/sdk/constructive-cli/src/compute/orm/models/contentPreset.ts @@ -1,5 +1,5 @@ /** - * AppPermission model for ORM client + * ContentPreset 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 { - AppPermission, - AppPermissionWithRelations, - AppPermissionSelect, - AppPermissionFilter, - AppPermissionOrderBy, - CreateAppPermissionInput, - UpdateAppPermissionInput, - AppPermissionPatch, + ContentPreset, + ContentPresetWithRelations, + ContentPresetSelect, + ContentPresetFilter, + ContentPresetOrderBy, + CreateContentPresetInput, + UpdateContentPresetInput, + ContentPresetPatch, } from '../input-types'; import { connectionFieldsMap } from '../input-types'; -export class AppPermissionModel { +export class ContentPresetModel { constructor(private client: OrmClient) {} - findMany( - args: FindManyArgs & { + findMany( + args: FindManyArgs & { select: S; - } & StrictSelect + } & StrictSelect ): QueryBuilder<{ - appPermissions: ConnectionResult>; + contentPresets: ConnectionResult>; }> { const { document, variables } = buildFindManyDocument( - 'AppPermission', - 'appPermissions', + 'ContentPreset', + 'contentPresets', args.select, { where: args?.where, @@ -56,65 +56,65 @@ export class AppPermissionModel { before: args?.before, offset: args?.offset, }, - 'AppPermissionFilter', - 'AppPermissionOrderBy', + 'ContentPresetFilter', + 'ContentPresetOrderBy', connectionFieldsMap ); return new QueryBuilder({ client: this.client, operation: 'query', - operationName: 'AppPermission', - fieldName: 'appPermissions', + operationName: 'ContentPreset', + fieldName: 'contentPresets', document, variables, }); } - findFirst( - args: FindFirstArgs & { + findFirst( + args: FindFirstArgs & { select: S; - } & StrictSelect + } & StrictSelect ): QueryBuilder<{ - appPermission: InferSelectResult | null; + contentPreset: InferSelectResult | null; }> { const { document, variables } = buildFindFirstDocument( - 'AppPermission', - 'appPermissions', + 'ContentPreset', + 'contentPresets', args.select, { where: args?.where, orderBy: args?.orderBy as string[] | undefined, }, - 'AppPermissionFilter', - 'AppPermissionOrderBy', + 'ContentPresetFilter', + 'ContentPresetOrderBy', connectionFieldsMap ); return new QueryBuilder({ client: this.client, operation: 'query', - operationName: 'AppPermission', - fieldName: 'appPermission', + operationName: 'ContentPreset', + fieldName: 'contentPreset', document, variables, transform: (data: { - appPermissions?: { - nodes?: InferSelectResult[]; + contentPresets?: { + nodes?: InferSelectResult[]; }; }) => ({ - appPermission: data.appPermissions?.nodes?.[0] ?? null, + contentPreset: data.contentPresets?.nodes?.[0] ?? null, }), }); } - findOne( + findOne( args: { id: string; select: S; - } & StrictSelect + } & StrictSelect ): QueryBuilder<{ - appPermission: InferSelectResult | null; + contentPreset: InferSelectResult | null; }> { const { document, variables } = buildFindManyDocument( - 'AppPermission', - 'appPermissions', + 'ContentPreset', + 'contentPresets', args.select, { where: { @@ -124,91 +124,91 @@ export class AppPermissionModel { }, first: 1, }, - 'AppPermissionFilter', - 'AppPermissionOrderBy', + 'ContentPresetFilter', + 'ContentPresetOrderBy', connectionFieldsMap ); return new QueryBuilder({ client: this.client, operation: 'query', - operationName: 'AppPermission', - fieldName: 'appPermission', + operationName: 'ContentPreset', + fieldName: 'contentPreset', document, variables, transform: (data: { - appPermissions?: { - nodes?: InferSelectResult[]; + contentPresets?: { + nodes?: InferSelectResult[]; }; }) => ({ - appPermission: data.appPermissions?.nodes?.[0] ?? null, + contentPreset: data.contentPresets?.nodes?.[0] ?? null, }), }); } - create( - args: CreateArgs & { + create( + args: CreateArgs & { select: S; - } & StrictSelect + } & StrictSelect ): QueryBuilder<{ - createAppPermission: { - appPermission: InferSelectResult; + createContentPreset: { + contentPreset: InferSelectResult; }; }> { const { document, variables } = buildCreateDocument( - 'AppPermission', - 'createAppPermission', - 'appPermission', + 'ContentPreset', + 'createContentPreset', + 'contentPreset', args.select, args.data, - 'CreateAppPermissionInput', + 'CreateContentPresetInput', connectionFieldsMap ); return new QueryBuilder({ client: this.client, operation: 'mutation', - operationName: 'AppPermission', - fieldName: 'createAppPermission', + operationName: 'ContentPreset', + fieldName: 'createContentPreset', document, variables, }); } - update( + update( args: UpdateArgs< S, { id: string; }, - AppPermissionPatch + ContentPresetPatch > & { select: S; - } & StrictSelect + } & StrictSelect ): QueryBuilder<{ - updateAppPermission: { - appPermission: InferSelectResult; + updateContentPreset: { + contentPreset: InferSelectResult; }; }> { const { document, variables } = buildUpdateByPkDocument( - 'AppPermission', - 'updateAppPermission', - 'appPermission', + 'ContentPreset', + 'updateContentPreset', + 'contentPreset', args.select, args.where.id, args.data, - 'UpdateAppPermissionInput', + 'UpdateContentPresetInput', 'id', - 'appPermissionPatch', + 'contentPresetPatch', connectionFieldsMap, undefined ); return new QueryBuilder({ client: this.client, operation: 'mutation', - operationName: 'AppPermission', - fieldName: 'updateAppPermission', + operationName: 'ContentPreset', + fieldName: 'updateContentPreset', document, variables, }); } - delete( + delete( args: DeleteArgs< { id: string; @@ -216,28 +216,28 @@ export class AppPermissionModel { S > & { select: S; - } & StrictSelect + } & StrictSelect ): QueryBuilder<{ - deleteAppPermission: { - appPermission: InferSelectResult; + deleteContentPreset: { + contentPreset: InferSelectResult; }; }> { const { document, variables } = buildDeleteByPkDocument( - 'AppPermission', - 'deleteAppPermission', - 'appPermission', + 'ContentPreset', + 'deleteContentPreset', + 'contentPreset', { id: args.where.id, }, - 'DeleteAppPermissionInput', + 'DeleteContentPresetInput', args.select, connectionFieldsMap ); return new QueryBuilder({ client: this.client, operation: 'mutation', - operationName: 'AppPermission', - fieldName: 'deleteAppPermission', + operationName: 'ContentPreset', + fieldName: 'deleteContentPreset', document, variables, }); diff --git a/sdk/constructive-cli/src/compute/orm/models/index.ts b/sdk/constructive-cli/src/compute/orm/models/index.ts index e2480958de..bb1916cea6 100644 --- a/sdk/constructive-cli/src/compute/orm/models/index.ts +++ b/sdk/constructive-cli/src/compute/orm/models/index.ts @@ -3,6 +3,7 @@ * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ +export { ContentPresetModel } from './contentPreset'; export { DbPresetModel } from './dbPreset'; export { FunctionApiBindingModel } from './functionApiBinding'; export { FunctionCapabilityBindingModel } from './functionCapabilityBinding'; diff --git a/sdk/constructive-cli/src/compute/orm/mutation/index.ts b/sdk/constructive-cli/src/compute/orm/mutation/index.ts index c5bc975047..948d1e8903 100644 --- a/sdk/constructive-cli/src/compute/orm/mutation/index.ts +++ b/sdk/constructive-cli/src/compute/orm/mutation/index.ts @@ -16,12 +16,19 @@ import type { ImportGraphJsonInput, InfraInitEmptyRepoInput, InfraInsertNodeAtPathInput, + InfraInsertNodesAtPathsInput, + InfraSetAndCommitInput, InfraSetDataAtPathInput, + InfraSetManyAndCommitInput, InitEmptyRepoInput, InsertNodeAtPathInput, + InsertNodesAtPathsInput, PlatformInfraInitEmptyRepoInput, PlatformInfraInsertNodeAtPathInput, + PlatformInfraInsertNodesAtPathsInput, + PlatformInfraSetAndCommitInput, PlatformInfraSetDataAtPathInput, + PlatformInfraSetManyAndCommitInput, PlatformResourceInstallationsInstallInput, PlatformResourceInstallationsRollbackInput, PlatformResourceInstallationsUninstallInput, @@ -32,7 +39,9 @@ import type { ResourceInstallationsUninstallInput, ResourceInstallationsUpgradeInput, SaveGraphInput, + SetAndCommitInput, SetDataAtPathInput, + SetManyAndCommitInput, StartExecutionInput, ValidateFunctionGraphInput, AddEdgePayload, @@ -44,12 +53,19 @@ import type { ImportGraphJsonPayload, InfraInitEmptyRepoPayload, InfraInsertNodeAtPathPayload, + InfraInsertNodesAtPathsPayload, + InfraSetAndCommitPayload, InfraSetDataAtPathPayload, + InfraSetManyAndCommitPayload, InitEmptyRepoPayload, InsertNodeAtPathPayload, + InsertNodesAtPathsPayload, PlatformInfraInitEmptyRepoPayload, PlatformInfraInsertNodeAtPathPayload, + PlatformInfraInsertNodesAtPathsPayload, + PlatformInfraSetAndCommitPayload, PlatformInfraSetDataAtPathPayload, + PlatformInfraSetManyAndCommitPayload, PlatformResourceInstallationsInstallPayload, PlatformResourceInstallationsRollbackPayload, PlatformResourceInstallationsUninstallPayload, @@ -60,7 +76,9 @@ import type { ResourceInstallationsUninstallPayload, ResourceInstallationsUpgradePayload, SaveGraphPayload, + SetAndCommitPayload, SetDataAtPathPayload, + SetManyAndCommitPayload, StartExecutionPayload, ValidateFunctionGraphPayload, AddEdgePayloadSelect, @@ -72,12 +90,19 @@ import type { ImportGraphJsonPayloadSelect, InfraInitEmptyRepoPayloadSelect, InfraInsertNodeAtPathPayloadSelect, + InfraInsertNodesAtPathsPayloadSelect, + InfraSetAndCommitPayloadSelect, InfraSetDataAtPathPayloadSelect, + InfraSetManyAndCommitPayloadSelect, InitEmptyRepoPayloadSelect, InsertNodeAtPathPayloadSelect, + InsertNodesAtPathsPayloadSelect, PlatformInfraInitEmptyRepoPayloadSelect, PlatformInfraInsertNodeAtPathPayloadSelect, + PlatformInfraInsertNodesAtPathsPayloadSelect, + PlatformInfraSetAndCommitPayloadSelect, PlatformInfraSetDataAtPathPayloadSelect, + PlatformInfraSetManyAndCommitPayloadSelect, PlatformResourceInstallationsInstallPayloadSelect, PlatformResourceInstallationsRollbackPayloadSelect, PlatformResourceInstallationsUninstallPayloadSelect, @@ -88,7 +113,9 @@ import type { ResourceInstallationsUninstallPayloadSelect, ResourceInstallationsUpgradePayloadSelect, SaveGraphPayloadSelect, + SetAndCommitPayloadSelect, SetDataAtPathPayloadSelect, + SetManyAndCommitPayloadSelect, StartExecutionPayloadSelect, ValidateFunctionGraphPayloadSelect, } from '../input-types'; @@ -120,24 +147,45 @@ export interface InfraInitEmptyRepoVariables { export interface InfraInsertNodeAtPathVariables { input: InfraInsertNodeAtPathInput; } +export interface InfraInsertNodesAtPathsVariables { + input: InfraInsertNodesAtPathsInput; +} +export interface InfraSetAndCommitVariables { + input: InfraSetAndCommitInput; +} export interface InfraSetDataAtPathVariables { input: InfraSetDataAtPathInput; } +export interface InfraSetManyAndCommitVariables { + input: InfraSetManyAndCommitInput; +} export interface InitEmptyRepoVariables { input: InitEmptyRepoInput; } export interface InsertNodeAtPathVariables { input: InsertNodeAtPathInput; } +export interface InsertNodesAtPathsVariables { + input: InsertNodesAtPathsInput; +} export interface PlatformInfraInitEmptyRepoVariables { input: PlatformInfraInitEmptyRepoInput; } export interface PlatformInfraInsertNodeAtPathVariables { input: PlatformInfraInsertNodeAtPathInput; } +export interface PlatformInfraInsertNodesAtPathsVariables { + input: PlatformInfraInsertNodesAtPathsInput; +} +export interface PlatformInfraSetAndCommitVariables { + input: PlatformInfraSetAndCommitInput; +} export interface PlatformInfraSetDataAtPathVariables { input: PlatformInfraSetDataAtPathInput; } +export interface PlatformInfraSetManyAndCommitVariables { + input: PlatformInfraSetManyAndCommitInput; +} export interface PlatformResourceInstallationsInstallVariables { input: PlatformResourceInstallationsInstallInput; } @@ -175,9 +223,15 @@ export interface ResourceInstallationsUpgradeVariables { export interface SaveGraphVariables { input: SaveGraphInput; } +export interface SetAndCommitVariables { + input: SetAndCommitInput; +} export interface SetDataAtPathVariables { input: SetDataAtPathInput; } +export interface SetManyAndCommitVariables { + input: SetManyAndCommitInput; +} export interface StartExecutionVariables { input: StartExecutionInput; } @@ -447,6 +501,64 @@ export function createMutationOperations(client: OrmClient) { 'InfraInsertNodeAtPathPayload' ), }), + infraInsertNodesAtPaths: ( + args: InfraInsertNodesAtPathsVariables, + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + infraInsertNodesAtPaths: InferSelectResult | null; + }>({ + client, + operation: 'mutation', + operationName: 'InfraInsertNodesAtPaths', + fieldName: 'infraInsertNodesAtPaths', + ...buildCustomDocument( + 'mutation', + 'InfraInsertNodesAtPaths', + 'infraInsertNodesAtPaths', + options.select, + args, + [ + { + name: 'input', + type: 'InfraInsertNodesAtPathsInput!', + }, + ], + connectionFieldsMap, + 'InfraInsertNodesAtPathsPayload' + ), + }), + infraSetAndCommit: ( + args: InfraSetAndCommitVariables, + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + infraSetAndCommit: InferSelectResult | null; + }>({ + client, + operation: 'mutation', + operationName: 'InfraSetAndCommit', + fieldName: 'infraSetAndCommit', + ...buildCustomDocument( + 'mutation', + 'InfraSetAndCommit', + 'infraSetAndCommit', + options.select, + args, + [ + { + name: 'input', + type: 'InfraSetAndCommitInput!', + }, + ], + connectionFieldsMap, + 'InfraSetAndCommitPayload' + ), + }), infraSetDataAtPath: ( args: InfraSetDataAtPathVariables, options: { @@ -476,6 +588,35 @@ export function createMutationOperations(client: OrmClient) { 'InfraSetDataAtPathPayload' ), }), + infraSetManyAndCommit: ( + args: InfraSetManyAndCommitVariables, + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + infraSetManyAndCommit: InferSelectResult | null; + }>({ + client, + operation: 'mutation', + operationName: 'InfraSetManyAndCommit', + fieldName: 'infraSetManyAndCommit', + ...buildCustomDocument( + 'mutation', + 'InfraSetManyAndCommit', + 'infraSetManyAndCommit', + options.select, + args, + [ + { + name: 'input', + type: 'InfraSetManyAndCommitInput!', + }, + ], + connectionFieldsMap, + 'InfraSetManyAndCommitPayload' + ), + }), initEmptyRepo: ( args: InitEmptyRepoVariables, options: { @@ -534,6 +675,35 @@ export function createMutationOperations(client: OrmClient) { 'InsertNodeAtPathPayload' ), }), + insertNodesAtPaths: ( + args: InsertNodesAtPathsVariables, + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + insertNodesAtPaths: InferSelectResult | null; + }>({ + client, + operation: 'mutation', + operationName: 'InsertNodesAtPaths', + fieldName: 'insertNodesAtPaths', + ...buildCustomDocument( + 'mutation', + 'InsertNodesAtPaths', + 'insertNodesAtPaths', + options.select, + args, + [ + { + name: 'input', + type: 'InsertNodesAtPathsInput!', + }, + ], + connectionFieldsMap, + 'InsertNodesAtPathsPayload' + ), + }), platformInfraInitEmptyRepo: ( args: PlatformInfraInitEmptyRepoVariables, options: { @@ -595,6 +765,67 @@ export function createMutationOperations(client: OrmClient) { 'PlatformInfraInsertNodeAtPathPayload' ), }), + platformInfraInsertNodesAtPaths: ( + args: PlatformInfraInsertNodesAtPathsVariables, + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + platformInfraInsertNodesAtPaths: InferSelectResult< + PlatformInfraInsertNodesAtPathsPayload, + S + > | null; + }>({ + client, + operation: 'mutation', + operationName: 'PlatformInfraInsertNodesAtPaths', + fieldName: 'platformInfraInsertNodesAtPaths', + ...buildCustomDocument( + 'mutation', + 'PlatformInfraInsertNodesAtPaths', + 'platformInfraInsertNodesAtPaths', + options.select, + args, + [ + { + name: 'input', + type: 'PlatformInfraInsertNodesAtPathsInput!', + }, + ], + connectionFieldsMap, + 'PlatformInfraInsertNodesAtPathsPayload' + ), + }), + platformInfraSetAndCommit: ( + args: PlatformInfraSetAndCommitVariables, + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + platformInfraSetAndCommit: InferSelectResult | null; + }>({ + client, + operation: 'mutation', + operationName: 'PlatformInfraSetAndCommit', + fieldName: 'platformInfraSetAndCommit', + ...buildCustomDocument( + 'mutation', + 'PlatformInfraSetAndCommit', + 'platformInfraSetAndCommit', + options.select, + args, + [ + { + name: 'input', + type: 'PlatformInfraSetAndCommitInput!', + }, + ], + connectionFieldsMap, + 'PlatformInfraSetAndCommitPayload' + ), + }), platformInfraSetDataAtPath: ( args: PlatformInfraSetDataAtPathVariables, options: { @@ -624,6 +855,38 @@ export function createMutationOperations(client: OrmClient) { 'PlatformInfraSetDataAtPathPayload' ), }), + platformInfraSetManyAndCommit: ( + args: PlatformInfraSetManyAndCommitVariables, + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + platformInfraSetManyAndCommit: InferSelectResult< + PlatformInfraSetManyAndCommitPayload, + S + > | null; + }>({ + client, + operation: 'mutation', + operationName: 'PlatformInfraSetManyAndCommit', + fieldName: 'platformInfraSetManyAndCommit', + ...buildCustomDocument( + 'mutation', + 'PlatformInfraSetManyAndCommit', + 'platformInfraSetManyAndCommit', + options.select, + args, + [ + { + name: 'input', + type: 'PlatformInfraSetManyAndCommitInput!', + }, + ], + connectionFieldsMap, + 'PlatformInfraSetManyAndCommitPayload' + ), + }), platformResourceInstallationsInstall: < S extends PlatformResourceInstallationsInstallPayloadSelect, >( @@ -946,6 +1209,35 @@ export function createMutationOperations(client: OrmClient) { 'SaveGraphPayload' ), }), + setAndCommit: ( + args: SetAndCommitVariables, + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + setAndCommit: InferSelectResult | null; + }>({ + client, + operation: 'mutation', + operationName: 'SetAndCommit', + fieldName: 'setAndCommit', + ...buildCustomDocument( + 'mutation', + 'SetAndCommit', + 'setAndCommit', + options.select, + args, + [ + { + name: 'input', + type: 'SetAndCommitInput!', + }, + ], + connectionFieldsMap, + 'SetAndCommitPayload' + ), + }), setDataAtPath: ( args: SetDataAtPathVariables, options: { @@ -975,6 +1267,35 @@ export function createMutationOperations(client: OrmClient) { 'SetDataAtPathPayload' ), }), + setManyAndCommit: ( + args: SetManyAndCommitVariables, + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + setManyAndCommit: InferSelectResult | null; + }>({ + client, + operation: 'mutation', + operationName: 'SetManyAndCommit', + fieldName: 'setManyAndCommit', + ...buildCustomDocument( + 'mutation', + 'SetManyAndCommit', + 'setManyAndCommit', + options.select, + args, + [ + { + name: 'input', + type: 'SetManyAndCommitInput!', + }, + ], + connectionFieldsMap, + 'SetManyAndCommitPayload' + ), + }), startExecution: ( args: StartExecutionVariables, options: { diff --git a/sdk/constructive-cli/src/infra/README.md b/sdk/constructive-cli/src/infra/README.md index ab97a0d2bf..0b1852edbb 100644 --- a/sdk/constructive-cli/src/infra/README.md +++ b/sdk/constructive-cli/src/infra/README.md @@ -8,9 +8,9 @@ ## Overview -- **Tables:** 10 +- **Tables:** 11 - **Custom queries:** 0 -- **Custom mutations:** 4 +- **Custom mutations:** 7 **Generators:** ORM, CLI diff --git a/sdk/constructive-cli/src/infra/cli/README.md b/sdk/constructive-cli/src/infra/cli/README.md index 33b764a0f1..56b6635971 100644 --- a/sdk/constructive-cli/src/infra/cli/README.md +++ b/sdk/constructive-cli/src/infra/cli/README.md @@ -26,6 +26,7 @@ csdk auth set-token | `context` | Manage API contexts (endpoints) | | `auth` | Manage authentication tokens | | `config` | Manage config key-value store (per-context) | +| `content-preset` | contentPreset CRUD operations | | `db-preset` | dbPreset CRUD operations | | `namespace` | namespace CRUD operations | | `namespace-event` | namespaceEvent CRUD operations | @@ -38,7 +39,10 @@ csdk auth set-token | `platform-namespace-event` | platformNamespaceEvent CRUD operations | | `platform-infra-init-empty-repo` | platformInfraInitEmptyRepo | | `platform-infra-insert-node-at-path` | platformInfraInsertNodeAtPath | +| `platform-infra-insert-nodes-at-paths` | platformInfraInsertNodesAtPaths | +| `platform-infra-set-and-commit` | platformInfraSetAndCommit | | `platform-infra-set-data-at-path` | platformInfraSetDataAtPath | +| `platform-infra-set-many-and-commit` | platformInfraSetManyAndCommit | | `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, @@ -85,6 +89,38 @@ Variables are scoped to the active context and stored at `~/.csdk/config/`. ## Table Commands +### `content-preset` + +CRUD operations for ContentPreset records. + +| Subcommand | Description | +|------------|-------------| +| `list` | List all contentPreset records | +| `find-first` | Find first matching contentPreset record | +| `get` | Get a contentPreset by id | +| `create` | Create a new contentPreset | +| `update` | Update an existing contentPreset | +| `delete` | Delete a contentPreset | + +**Fields:** + +| Field | Type | +|-------|------| +| `active` | Boolean | +| `commitId` | UUID | +| `createdAt` | Datetime | +| `definition` | JSON | +| `description` | String | +| `id` | UUID | +| `kind` | String | +| `label` | String | +| `slug` | String | +| `storeId` | UUID | +| `updatedAt` | Datetime | + +**Required create fields:** `definition`, `kind`, `slug` +**Optional create fields (backend defaults):** `active`, `commitId`, `description`, `label`, `storeId` + ### `db-preset` CRUD operations for DbPreset records. @@ -404,6 +440,42 @@ platformInfraInsertNodeAtPath | `--input.root` | UUID | | `--input.sId` | UUID | +### `platform-infra-insert-nodes-at-paths` + +platformInfraInsertNodesAtPaths + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `--input.clientMutationId` | String | + | `--input.datas` | JSON | + | `--input.kidsList` | JSON | + | `--input.ktreeList` | JSON | + | `--input.paths` | JSON | + | `--input.root` | UUID | + | `--input.sId` | UUID | + +### `platform-infra-set-and-commit` + +platformInfraSetAndCommit + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `--input.clientMutationId` | String | + | `--input.data` | JSON | + | `--input.kids` | UUID | + | `--input.ktree` | String | + | `--input.message` | String | + | `--input.path` | String | + | `--input.refname` | String | + | `--input.sId` | UUID | + | `--input.storeId` | UUID | + ### `platform-infra-set-data-at-path` platformInfraSetDataAtPath @@ -419,6 +491,22 @@ platformInfraSetDataAtPath | `--input.root` | UUID | | `--input.sId` | UUID | +### `platform-infra-set-many-and-commit` + +platformInfraSetManyAndCommit + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `--input.clientMutationId` | String | + | `--input.entries` | JSON | + | `--input.message` | String | + | `--input.refname` | String | + | `--input.sId` | UUID | + | `--input.storeId` | UUID | + ### `provision-bucket` Provision an S3 bucket for a logical bucket in the database. diff --git a/sdk/constructive-cli/src/infra/cli/commands.ts b/sdk/constructive-cli/src/infra/cli/commands.ts index 9b61cfeec5..a40b01b781 100644 --- a/sdk/constructive-cli/src/infra/cli/commands.ts +++ b/sdk/constructive-cli/src/infra/cli/commands.ts @@ -6,6 +6,7 @@ import { CLIOptions, Inquirerer, extractFirst } from 'inquirerer'; import contextCmd from './commands/context'; import authCmd from './commands/auth'; +import contentPresetCmd from './commands/content-preset'; import dbPresetCmd from './commands/db-preset'; import namespaceCmd from './commands/namespace'; import namespaceEventCmd from './commands/namespace-event'; @@ -18,7 +19,10 @@ import platformNamespaceCmd from './commands/platform-namespace'; import platformNamespaceEventCmd from './commands/platform-namespace-event'; import platformInfraInitEmptyRepoCmd from './commands/platform-infra-init-empty-repo'; import platformInfraInsertNodeAtPathCmd from './commands/platform-infra-insert-node-at-path'; +import platformInfraInsertNodesAtPathsCmd from './commands/platform-infra-insert-nodes-at-paths'; +import platformInfraSetAndCommitCmd from './commands/platform-infra-set-and-commit'; import platformInfraSetDataAtPathCmd from './commands/platform-infra-set-data-at-path'; +import platformInfraSetManyAndCommitCmd from './commands/platform-infra-set-many-and-commit'; import provisionBucketCmd from './commands/provision-bucket'; const createCommandMap: () => Record< string, @@ -30,6 +34,7 @@ const createCommandMap: () => Record< > = () => ({ context: contextCmd, auth: authCmd, + 'content-preset': contentPresetCmd, 'db-preset': dbPresetCmd, namespace: namespaceCmd, 'namespace-event': namespaceEventCmd, @@ -42,11 +47,14 @@ const createCommandMap: () => Record< 'platform-namespace-event': platformNamespaceEventCmd, 'platform-infra-init-empty-repo': platformInfraInitEmptyRepoCmd, 'platform-infra-insert-node-at-path': platformInfraInsertNodeAtPathCmd, + 'platform-infra-insert-nodes-at-paths': platformInfraInsertNodesAtPathsCmd, + 'platform-infra-set-and-commit': platformInfraSetAndCommitCmd, 'platform-infra-set-data-at-path': platformInfraSetDataAtPathCmd, + 'platform-infra-set-many-and-commit': platformInfraSetManyAndCommitCmd, 'provision-bucket': provisionBucketCmd, }); const usage = - '\ncsdk \n\nCommands:\n context Manage API contexts\n auth Manage authentication\n db-preset dbPreset CRUD operations\n namespace namespace CRUD operations\n namespace-event namespaceEvent CRUD operations\n platform-infra-commit platformInfraCommit CRUD operations\n platform-infra-get-all-tree-nodes-record platformInfraGetAllTreeNodesRecord CRUD operations\n platform-infra-object platformInfraObject CRUD operations\n platform-infra-ref platformInfraRef CRUD operations\n platform-infra-store platformInfraStore CRUD operations\n platform-namespace platformNamespace CRUD operations\n platform-namespace-event platformNamespaceEvent CRUD operations\n platform-infra-init-empty-repo platformInfraInitEmptyRepo\n platform-infra-insert-node-at-path platformInfraInsertNodeAtPath\n platform-infra-set-data-at-path platformInfraSetDataAtPath\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 content-preset contentPreset CRUD operations\n db-preset dbPreset CRUD operations\n namespace namespace CRUD operations\n namespace-event namespaceEvent CRUD operations\n platform-infra-commit platformInfraCommit CRUD operations\n platform-infra-get-all-tree-nodes-record platformInfraGetAllTreeNodesRecord CRUD operations\n platform-infra-object platformInfraObject CRUD operations\n platform-infra-ref platformInfraRef CRUD operations\n platform-infra-store platformInfraStore CRUD operations\n platform-namespace platformNamespace CRUD operations\n platform-namespace-event platformNamespaceEvent CRUD operations\n platform-infra-init-empty-repo platformInfraInitEmptyRepo\n platform-infra-insert-node-at-path platformInfraInsertNodeAtPath\n platform-infra-insert-nodes-at-paths platformInfraInsertNodesAtPaths\n platform-infra-set-and-commit platformInfraSetAndCommit\n platform-infra-set-data-at-path platformInfraSetDataAtPath\n platform-infra-set-many-and-commit platformInfraSetManyAndCommit\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-permission.ts b/sdk/constructive-cli/src/infra/cli/commands/content-preset.ts similarity index 64% rename from sdk/constructive-cli/src/admin/cli/commands/app-permission.ts rename to sdk/constructive-cli/src/infra/cli/commands/content-preset.ts index 75325a49b6..806af4a770 100644 --- a/sdk/constructive-cli/src/admin/cli/commands/app-permission.ts +++ b/sdk/constructive-cli/src/infra/cli/commands/content-preset.ts @@ -1,5 +1,5 @@ /** - * CLI commands for AppPermission + * CLI commands for ContentPreset * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -8,22 +8,28 @@ import { getClient } from '../executor'; import { coerceAnswers, parseFindFirstArgs, parseFindManyArgs, stripUndefined } from '../utils'; import type { FieldSchema } from '../utils'; import type { - CreateAppPermissionInput, - AppPermissionPatch, - AppPermissionSelect, - AppPermissionFilter, - AppPermissionOrderBy, + CreateContentPresetInput, + ContentPresetPatch, + ContentPresetSelect, + ContentPresetFilter, + ContentPresetOrderBy, } from '../../orm/input-types'; import type { FindManyArgs, FindFirstArgs } from '../../orm/select-types'; const fieldSchema: FieldSchema = { - bitnum: 'int', - bitstr: 'string', + active: 'boolean', + commitId: 'uuid', + createdAt: 'string', + definition: 'json', description: 'string', id: 'uuid', - name: 'string', + kind: 'string', + label: 'string', + slug: 'string', + storeId: 'uuid', + updatedAt: 'string', }; const usage = - '\napp-permission \n\nCommands:\n list List appPermission records\n find-first Find first matching appPermission record\n get Get a appPermission by ID\n create Create a new appPermission\n update Update an existing appPermission\n delete Delete a appPermission\n\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'; + '\ncontent-preset \n\nCommands:\n list List contentPreset records\n find-first Find first matching contentPreset record\n get Get a contentPreset by ID\n create Create a new contentPreset\n update Update an existing contentPreset\n delete Delete a contentPreset\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, @@ -73,19 +79,25 @@ async function handleTableSubcommand( async function handleList(argv: Partial>, _prompter: Inquirerer) { try { const defaultSelect = { - bitnum: true, - bitstr: true, + active: true, + commitId: true, + createdAt: true, + definition: true, description: true, id: true, - name: true, + kind: true, + label: true, + slug: true, + storeId: true, + updatedAt: true, }; const findManyArgs = parseFindManyArgs< - FindManyArgs & { - select: AppPermissionSelect; + FindManyArgs & { + select: ContentPresetSelect; } >(argv, defaultSelect); const client = getClient(); - const result = await client.appPermission.findMany(findManyArgs).execute(); + const result = await client.contentPreset.findMany(findManyArgs).execute(); console.log(JSON.stringify(result, null, 2)); } catch (error) { console.error('Failed to list records.'); @@ -98,19 +110,25 @@ async function handleList(argv: Partial>, _prompter: Inq async function handleFindFirst(argv: Partial>, _prompter: Inquirerer) { try { const defaultSelect = { - bitnum: true, - bitstr: true, + active: true, + commitId: true, + createdAt: true, + definition: true, description: true, id: true, - name: true, + kind: true, + label: true, + slug: true, + storeId: true, + updatedAt: true, }; const findFirstArgs = parseFindFirstArgs< - FindFirstArgs & { - select: AppPermissionSelect; + FindFirstArgs & { + select: ContentPresetSelect; } >(argv, defaultSelect); const client = getClient(); - const result = await client.appPermission.findFirst(findFirstArgs).execute(); + const result = await client.contentPreset.findFirst(findFirstArgs).execute(); console.log(JSON.stringify(result, null, 2)); } catch (error) { console.error('Failed to find record.'); @@ -131,15 +149,21 @@ async function handleGet(argv: Partial>, prompter: Inqui }, ]); const client = getClient(); - const result = await client.appPermission + const result = await client.contentPreset .findOne({ id: answers.id as string, select: { - bitnum: true, - bitstr: true, + active: true, + commitId: true, + createdAt: true, + definition: true, description: true, id: true, - name: true, + kind: true, + label: true, + slug: true, + storeId: true, + updatedAt: true, }, }) .execute(); @@ -156,19 +180,25 @@ async function handleCreate(argv: Partial>, prompter: In try { const rawAnswers = await prompter.prompt(argv, [ { - type: 'text', - name: 'bitnum', - message: 'bitnum', + type: 'boolean', + name: 'active', + message: 'active', required: false, skipPrompt: true, }, { type: 'text', - name: 'bitstr', - message: 'bitstr', + name: 'commitId', + message: 'commitId', required: false, skipPrompt: true, }, + { + type: 'json', + name: 'definition', + message: 'definition', + required: true, + }, { type: 'text', name: 'description', @@ -178,8 +208,27 @@ async function handleCreate(argv: Partial>, prompter: In }, { type: 'text', - name: 'name', - message: 'name', + name: 'kind', + message: 'kind', + required: true, + }, + { + type: 'text', + name: 'label', + message: 'label', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'slug', + message: 'slug', + required: true, + }, + { + type: 'text', + name: 'storeId', + message: 'storeId', required: false, skipPrompt: true, }, @@ -188,22 +237,32 @@ async function handleCreate(argv: Partial>, prompter: In const cleanedData = stripUndefined( answers, fieldSchema - ) as CreateAppPermissionInput['appPermission']; + ) as CreateContentPresetInput['contentPreset']; const client = getClient(); - const result = await client.appPermission + const result = await client.contentPreset .create({ data: { - bitnum: cleanedData.bitnum, - bitstr: cleanedData.bitstr, + active: cleanedData.active, + commitId: cleanedData.commitId, + definition: cleanedData.definition, description: cleanedData.description, - name: cleanedData.name, + kind: cleanedData.kind, + label: cleanedData.label, + slug: cleanedData.slug, + storeId: cleanedData.storeId, }, select: { - bitnum: true, - bitstr: true, + active: true, + commitId: true, + createdAt: true, + definition: true, description: true, id: true, - name: true, + kind: true, + label: true, + slug: true, + storeId: true, + updatedAt: true, }, }) .execute(); @@ -226,19 +285,25 @@ async function handleUpdate(argv: Partial>, prompter: In required: true, }, { - type: 'text', - name: 'bitnum', - message: 'bitnum', + type: 'boolean', + name: 'active', + message: 'active', required: false, skipPrompt: true, }, { type: 'text', - name: 'bitstr', - message: 'bitstr', + name: 'commitId', + message: 'commitId', required: false, skipPrompt: true, }, + { + type: 'json', + name: 'definition', + message: 'definition', + required: false, + }, { type: 'text', name: 'description', @@ -248,32 +313,61 @@ async function handleUpdate(argv: Partial>, prompter: In }, { type: 'text', - name: 'name', - message: 'name', + name: 'kind', + message: 'kind', + required: false, + }, + { + type: 'text', + name: 'label', + message: 'label', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'slug', + message: 'slug', + required: false, + }, + { + type: 'text', + name: 'storeId', + message: 'storeId', required: false, skipPrompt: true, }, ]); const answers = coerceAnswers(rawAnswers, fieldSchema); - const cleanedData = stripUndefined(answers, fieldSchema) as AppPermissionPatch; + const cleanedData = stripUndefined(answers, fieldSchema) as ContentPresetPatch; const client = getClient(); - const result = await client.appPermission + const result = await client.contentPreset .update({ where: { id: answers.id as string, }, data: { - bitnum: cleanedData.bitnum, - bitstr: cleanedData.bitstr, + active: cleanedData.active, + commitId: cleanedData.commitId, + definition: cleanedData.definition, description: cleanedData.description, - name: cleanedData.name, + kind: cleanedData.kind, + label: cleanedData.label, + slug: cleanedData.slug, + storeId: cleanedData.storeId, }, select: { - bitnum: true, - bitstr: true, + active: true, + commitId: true, + createdAt: true, + definition: true, description: true, id: true, - name: true, + kind: true, + label: true, + slug: true, + storeId: true, + updatedAt: true, }, }) .execute(); @@ -298,7 +392,7 @@ async function handleDelete(argv: Partial>, prompter: In ]); const answers = coerceAnswers(rawAnswers, fieldSchema); const client = getClient(); - const result = await client.appPermission + const result = await client.contentPreset .delete({ where: { id: answers.id as string, diff --git a/sdk/constructive-cli/src/infra/cli/commands/platform-infra-insert-nodes-at-paths.ts b/sdk/constructive-cli/src/infra/cli/commands/platform-infra-insert-nodes-at-paths.ts new file mode 100644 index 0000000000..c2c3323919 --- /dev/null +++ b/sdk/constructive-cli/src/infra/cli/commands/platform-infra-insert-nodes-at-paths.ts @@ -0,0 +1,53 @@ +/** + * CLI command for mutation platformInfraInsertNodesAtPaths + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ +import { CLIOptions, Inquirerer } from 'inquirerer'; +import { getClient } from '../executor'; +import { unflattenDotNotation, buildSelectFromPaths } from '../utils'; +import type { PlatformInfraInsertNodesAtPathsVariables } from '../../orm/mutation'; +import type { PlatformInfraInsertNodesAtPathsPayloadSelect } from '../../orm/input-types'; +export default async ( + argv: Partial>, + prompter: Inquirerer, + _options: CLIOptions +) => { + try { + if (argv.help || argv.h) { + console.log( + 'platform-infra-insert-nodes-at-paths - platformInfraInsertNodesAtPaths\n\nUsage: platform-infra-insert-nodes-at-paths [OPTIONS]\n' + ); + process.exit(0); + } + const answers = await prompter.prompt(argv, [ + { + type: 'text', + name: 'input', + message: + 'The exclusive input argument for this mutation. An object type, make sure to see documentation for this object\u2019s fields.', + required: true, + }, + ]); + const client = getClient(); + const parsedAnswers = unflattenDotNotation(answers); + const selectFields = buildSelectFromPaths((argv.select as string) ?? 'clientMutationId'); + const result = await client.mutation + .platformInfraInsertNodesAtPaths( + parsedAnswers as unknown as PlatformInfraInsertNodesAtPathsVariables, + { + select: selectFields, + } as unknown as { + select: PlatformInfraInsertNodesAtPathsPayloadSelect; + } + ) + .execute(); + console.log(JSON.stringify(result, null, 2)); + } catch (error) { + console.error('Failed: platformInfraInsertNodesAtPaths'); + if (error instanceof Error) { + console.error(error.message); + } + process.exit(1); + } +}; diff --git a/sdk/constructive-cli/src/infra/cli/commands/platform-infra-set-and-commit.ts b/sdk/constructive-cli/src/infra/cli/commands/platform-infra-set-and-commit.ts new file mode 100644 index 0000000000..444f633f00 --- /dev/null +++ b/sdk/constructive-cli/src/infra/cli/commands/platform-infra-set-and-commit.ts @@ -0,0 +1,53 @@ +/** + * CLI command for mutation platformInfraSetAndCommit + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ +import { CLIOptions, Inquirerer } from 'inquirerer'; +import { getClient } from '../executor'; +import { unflattenDotNotation, buildSelectFromPaths } from '../utils'; +import type { PlatformInfraSetAndCommitVariables } from '../../orm/mutation'; +import type { PlatformInfraSetAndCommitPayloadSelect } from '../../orm/input-types'; +export default async ( + argv: Partial>, + prompter: Inquirerer, + _options: CLIOptions +) => { + try { + if (argv.help || argv.h) { + console.log( + 'platform-infra-set-and-commit - platformInfraSetAndCommit\n\nUsage: platform-infra-set-and-commit [OPTIONS]\n' + ); + process.exit(0); + } + const answers = await prompter.prompt(argv, [ + { + type: 'text', + name: 'input', + message: + 'The exclusive input argument for this mutation. An object type, make sure to see documentation for this object\u2019s fields.', + required: true, + }, + ]); + const client = getClient(); + const parsedAnswers = unflattenDotNotation(answers); + const selectFields = buildSelectFromPaths((argv.select as string) ?? 'clientMutationId'); + const result = await client.mutation + .platformInfraSetAndCommit( + parsedAnswers as unknown as PlatformInfraSetAndCommitVariables, + { + select: selectFields, + } as unknown as { + select: PlatformInfraSetAndCommitPayloadSelect; + } + ) + .execute(); + console.log(JSON.stringify(result, null, 2)); + } catch (error) { + console.error('Failed: platformInfraSetAndCommit'); + if (error instanceof Error) { + console.error(error.message); + } + process.exit(1); + } +}; diff --git a/sdk/constructive-cli/src/infra/cli/commands/platform-infra-set-many-and-commit.ts b/sdk/constructive-cli/src/infra/cli/commands/platform-infra-set-many-and-commit.ts new file mode 100644 index 0000000000..1dadf0ef4f --- /dev/null +++ b/sdk/constructive-cli/src/infra/cli/commands/platform-infra-set-many-and-commit.ts @@ -0,0 +1,53 @@ +/** + * CLI command for mutation platformInfraSetManyAndCommit + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ +import { CLIOptions, Inquirerer } from 'inquirerer'; +import { getClient } from '../executor'; +import { unflattenDotNotation, buildSelectFromPaths } from '../utils'; +import type { PlatformInfraSetManyAndCommitVariables } from '../../orm/mutation'; +import type { PlatformInfraSetManyAndCommitPayloadSelect } from '../../orm/input-types'; +export default async ( + argv: Partial>, + prompter: Inquirerer, + _options: CLIOptions +) => { + try { + if (argv.help || argv.h) { + console.log( + 'platform-infra-set-many-and-commit - platformInfraSetManyAndCommit\n\nUsage: platform-infra-set-many-and-commit [OPTIONS]\n' + ); + process.exit(0); + } + const answers = await prompter.prompt(argv, [ + { + type: 'text', + name: 'input', + message: + 'The exclusive input argument for this mutation. An object type, make sure to see documentation for this object\u2019s fields.', + required: true, + }, + ]); + const client = getClient(); + const parsedAnswers = unflattenDotNotation(answers); + const selectFields = buildSelectFromPaths((argv.select as string) ?? 'clientMutationId'); + const result = await client.mutation + .platformInfraSetManyAndCommit( + parsedAnswers as unknown as PlatformInfraSetManyAndCommitVariables, + { + select: selectFields, + } as unknown as { + select: PlatformInfraSetManyAndCommitPayloadSelect; + } + ) + .execute(); + console.log(JSON.stringify(result, null, 2)); + } catch (error) { + console.error('Failed: platformInfraSetManyAndCommit'); + if (error instanceof Error) { + console.error(error.message); + } + process.exit(1); + } +}; diff --git a/sdk/constructive-cli/src/infra/orm/README.md b/sdk/constructive-cli/src/infra/orm/README.md index e303005e2f..a090f35cca 100644 --- a/sdk/constructive-cli/src/infra/orm/README.md +++ b/sdk/constructive-cli/src/infra/orm/README.md @@ -21,6 +21,7 @@ const db = createClient({ | Model | Operations | |-------|------------| +| `contentPreset` | findMany, findOne, create, update, delete | | `dbPreset` | findMany, findOne, create, update, delete | | `namespace` | findMany, findOne, create, update, delete | | `namespaceEvent` | findMany, findOne, create, update, delete | @@ -34,6 +35,45 @@ const db = createClient({ ## Table Operations +### `db.contentPreset` + +CRUD operations for ContentPreset records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `active` | Boolean | Yes | +| `commitId` | UUID | Yes | +| `createdAt` | Datetime | No | +| `definition` | JSON | Yes | +| `description` | String | Yes | +| `id` | UUID | No | +| `kind` | String | Yes | +| `label` | String | Yes | +| `slug` | String | Yes | +| `storeId` | UUID | Yes | +| `updatedAt` | Datetime | No | + +**Operations:** + +```typescript +// List all contentPreset records +const items = await db.contentPreset.findMany({ select: { active: true, commitId: true, createdAt: true, definition: true, description: true, id: true, kind: true, label: true, slug: true, storeId: true, updatedAt: true } }).execute(); + +// Get one by id +const item = await db.contentPreset.findOne({ id: '', select: { active: true, commitId: true, createdAt: true, definition: true, description: true, id: true, kind: true, label: true, slug: true, storeId: true, updatedAt: true } }).execute(); + +// Create +const created = await db.contentPreset.create({ data: { active: '', commitId: '', definition: '', description: '', kind: '', label: '', slug: '', storeId: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.contentPreset.update({ where: { id: '' }, data: { active: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.contentPreset.delete({ where: { id: '' } }).execute(); +``` + ### `db.dbPreset` CRUD operations for DbPreset records. @@ -424,6 +464,36 @@ platformInfraInsertNodeAtPath const result = await db.mutation.platformInfraInsertNodeAtPath({ input: '' }).execute(); ``` +### `db.mutation.platformInfraInsertNodesAtPaths` + +platformInfraInsertNodesAtPaths + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | PlatformInfraInsertNodesAtPathsInput (required) | + +```typescript +const result = await db.mutation.platformInfraInsertNodesAtPaths({ input: '' }).execute(); +``` + +### `db.mutation.platformInfraSetAndCommit` + +platformInfraSetAndCommit + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | PlatformInfraSetAndCommitInput (required) | + +```typescript +const result = await db.mutation.platformInfraSetAndCommit({ input: '' }).execute(); +``` + ### `db.mutation.platformInfraSetDataAtPath` platformInfraSetDataAtPath @@ -439,6 +509,21 @@ platformInfraSetDataAtPath const result = await db.mutation.platformInfraSetDataAtPath({ input: { data: '', path: '', root: '', sId: '' } }).execute(); ``` +### `db.mutation.platformInfraSetManyAndCommit` + +platformInfraSetManyAndCommit + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | PlatformInfraSetManyAndCommitInput (required) | + +```typescript +const result = await db.mutation.platformInfraSetManyAndCommit({ input: { entries: '', message: '', refname: '', sId: '', storeId: '' } }).execute(); +``` + ### `db.mutation.provisionBucket` Provision an S3 bucket for a logical bucket in the database. diff --git a/sdk/constructive-cli/src/infra/orm/index.ts b/sdk/constructive-cli/src/infra/orm/index.ts index c40f0234ec..364d28428c 100644 --- a/sdk/constructive-cli/src/infra/orm/index.ts +++ b/sdk/constructive-cli/src/infra/orm/index.ts @@ -5,6 +5,7 @@ */ import { OrmClient } from './client'; import type { OrmClientConfig } from './client'; +import { ContentPresetModel } from './models/contentPreset'; import { DbPresetModel } from './models/dbPreset'; import { NamespaceModel } from './models/namespace'; import { NamespaceEventModel } from './models/namespaceEvent'; @@ -48,6 +49,7 @@ export { createMutationOperations } from './mutation'; export function createClient(config: OrmClientConfig) { const client = new OrmClient(config); return { + contentPreset: new ContentPresetModel(client), dbPreset: new DbPresetModel(client), namespace: new NamespaceModel(client), namespaceEvent: new NamespaceEventModel(client), diff --git a/sdk/constructive-cli/src/infra/orm/input-types.ts b/sdk/constructive-cli/src/infra/orm/input-types.ts index 23e81e113d..a0d8e52f29 100644 --- a/sdk/constructive-cli/src/infra/orm/input-types.ts +++ b/sdk/constructive-cli/src/infra/orm/input-types.ts @@ -230,8 +230,33 @@ export interface UUIDListFilter { anyGreaterThan?: string; anyGreaterThanOrEqualTo?: string; } -/** Database provisioning preset catalog — merkle-versioned head over the infra store */ +/** Seed-content preset catalog (limit defaults, trust ladders, ...) — merkle-versioned head over the infra store */ // ============ Entity Types ============ +export interface ContentPreset { + /** Whether this preset is selectable at provision time */ + active?: boolean | null; + /** Infra store commit for the current definition (stamped by the versioned trigger on every write) */ + commitId?: string | null; + /** Timestamp of preset creation */ + createdAt?: string | null; + /** The seed document itself, in the shape the kind's seed function takes — the readily-cached head; history lives in the infra store */ + definition?: Record | null; + /** Human-readable description of the preset */ + description?: string | null; + /** Unique preset identifier */ + id: string; + /** What the definition seeds — the module option that resolves it (limit_defaults, trust_ladder, ...) */ + kind?: string | null; + /** Human-readable preset name */ + label?: string | null; + /** Preset slug (unique per kind per scope); the preset's path in the infra tree is [content_preset, kind, slug] */ + slug?: string | null; + /** Infra Merkle store holding this preset's history (stamped by the versioned trigger) */ + storeId?: string | null; + /** Timestamp of last modification */ + updatedAt?: string | null; +} +/** Database provisioning preset catalog — merkle-versioned head over the infra store */ export interface DbPreset { /** Whether this preset is selectable for new databases */ active?: boolean | null; @@ -421,6 +446,7 @@ export interface PageInfo { endCursor?: string | null; } // ============ Entity Relation Types ============ +export interface ContentPresetRelations {} export interface DbPresetRelations {} export interface NamespaceRelations {} export interface NamespaceEventRelations {} @@ -432,6 +458,7 @@ export interface PlatformInfraStoreRelations {} export interface PlatformNamespaceRelations {} export interface PlatformNamespaceEventRelations {} // ============ Entity Types With Relations ============ +export type ContentPresetWithRelations = ContentPreset & ContentPresetRelations; export type DbPresetWithRelations = DbPreset & DbPresetRelations; export type NamespaceWithRelations = Namespace & NamespaceRelations; export type NamespaceEventWithRelations = NamespaceEvent & NamespaceEventRelations; @@ -445,6 +472,19 @@ export type PlatformNamespaceWithRelations = PlatformNamespace & PlatformNamespa export type PlatformNamespaceEventWithRelations = PlatformNamespaceEvent & PlatformNamespaceEventRelations; // ============ Entity Select Types ============ +export type ContentPresetSelect = { + active?: boolean; + commitId?: boolean; + createdAt?: boolean; + definition?: boolean; + description?: boolean; + id?: boolean; + kind?: boolean; + label?: boolean; + slug?: boolean; + storeId?: boolean; + updatedAt?: boolean; +}; export type DbPresetSelect = { active?: boolean; commitId?: boolean; @@ -544,6 +584,36 @@ export type PlatformNamespaceEventSelect = { namespaceId?: boolean; }; // ============ Table Filter Types ============ +export interface ContentPresetFilter { + /** Filter by the object’s `active` field. */ + active?: BooleanFilter; + /** Checks for all expressions in this list. */ + and?: ContentPresetFilter[]; + /** Filter by the object’s `commitId` field. */ + commitId?: UUIDFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `definition` field. */ + definition?: JSONFilter; + /** Filter by the object’s `description` field. */ + description?: StringFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `kind` field. */ + kind?: StringFilter; + /** Filter by the object’s `label` field. */ + label?: StringFilter; + /** Negates the expression. */ + not?: ContentPresetFilter; + /** Checks for any expressions in this list. */ + or?: ContentPresetFilter[]; + /** Filter by the object’s `slug` field. */ + slug?: StringFilter; + /** Filter by the object’s `storeId` field. */ + storeId?: UUIDFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; +} export interface DbPresetFilter { /** Filter by the object’s `active` field. */ active?: BooleanFilter; @@ -776,6 +846,32 @@ export interface PlatformNamespaceEventFilter { or?: PlatformNamespaceEventFilter[]; } // ============ OrderBy Types ============ +export type ContentPresetOrderBy = + | 'ACTIVE_ASC' + | 'ACTIVE_DESC' + | 'COMMIT_ID_ASC' + | 'COMMIT_ID_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'DEFINITION_ASC' + | 'DEFINITION_DESC' + | 'DESCRIPTION_ASC' + | 'DESCRIPTION_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'KIND_ASC' + | 'KIND_DESC' + | 'LABEL_ASC' + | 'LABEL_DESC' + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'SLUG_ASC' + | 'SLUG_DESC' + | 'STORE_ID_ASC' + | 'STORE_ID_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC'; export type DbPresetOrderBy = | 'ACTIVE_ASC' | 'ACTIVE_DESC' @@ -973,6 +1069,38 @@ export type PlatformNamespaceEventOrderBy = | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC'; // ============ CRUD Input Types ============ +export interface CreateContentPresetInput { + clientMutationId?: string; + contentPreset: { + active?: boolean; + commitId?: string; + definition: Record; + description?: string; + kind: string; + label?: string; + slug: string; + storeId?: string; + }; +} +export interface ContentPresetPatch { + active?: boolean | null; + commitId?: string | null; + definition?: Record | null; + description?: string | null; + kind?: string | null; + label?: string | null; + slug?: string | null; + storeId?: string | null; +} +export interface UpdateContentPresetInput { + clientMutationId?: string; + id: string; + contentPresetPatch: ContentPresetPatch; +} +export interface DeleteContentPresetInput { + clientMutationId?: string; + id: string; +} export interface CreateDbPresetInput { clientMutationId?: string; dbPreset: { @@ -1268,6 +1396,26 @@ export interface PlatformInfraInsertNodeAtPathInput { root?: string; sId?: string; } +export interface PlatformInfraInsertNodesAtPathsInput { + clientMutationId?: string; + datas?: Record[]; + kidsList?: Record; + ktreeList?: Record; + paths?: Record; + root?: string; + sId?: string; +} +export interface PlatformInfraSetAndCommitInput { + clientMutationId?: string; + data?: Record; + kids?: string[]; + ktree?: string[]; + message?: string; + path?: string[]; + refname?: string; + sId?: string; + storeId?: string; +} export interface PlatformInfraSetDataAtPathInput { clientMutationId?: string; data?: Record; @@ -1275,6 +1423,14 @@ export interface PlatformInfraSetDataAtPathInput { root?: string; sId?: string; } +export interface PlatformInfraSetManyAndCommitInput { + clientMutationId?: string; + entries?: Record; + message?: string; + refname?: string; + sId?: string; + storeId?: string; +} export interface ProvisionBucketInput { /** The logical bucket key (e.g., "public", "private") */ bucketKey: string; @@ -1284,6 +1440,31 @@ export interface ProvisionBucketInput { */ ownerId?: string; } +/** An input for mutations affecting `ContentPreset` */ +export interface ContentPresetInput { + /** Whether this preset is selectable at provision time */ + active?: boolean; + /** Infra store commit for the current definition (stamped by the versioned trigger on every write) */ + commitId?: string; + /** Timestamp of preset creation */ + createdAt?: string; + /** The seed document itself, in the shape the kind's seed function takes — the readily-cached head; history lives in the infra store */ + definition: Record; + /** Human-readable description of the preset */ + description?: string; + /** Unique preset identifier */ + id?: string; + /** What the definition seeds — the module option that resolves it (limit_defaults, trust_ladder, ...) */ + kind: string; + /** Human-readable preset name */ + label?: string; + /** Preset slug (unique per kind per scope); the preset's path in the infra tree is [content_preset, kind, slug] */ + slug: string; + /** Infra Merkle store holding this preset's history (stamped by the versioned trigger) */ + storeId?: string; + /** Timestamp of last modification */ + updatedAt?: string; +} /** An input for mutations affecting `DbPreset` */ export interface DbPresetInput { /** Whether this preset is selectable for new databases */ @@ -1472,6 +1653,28 @@ export type PlatformInfraInsertNodeAtPathPayloadSelect = { clientMutationId?: boolean; result?: boolean; }; +export interface PlatformInfraInsertNodesAtPathsPayload { + clientMutationId?: string | null; + result?: string | null; +} +export type PlatformInfraInsertNodesAtPathsPayloadSelect = { + clientMutationId?: boolean; + result?: boolean; +}; +export interface PlatformInfraSetAndCommitPayload { + clientMutationId?: string | null; + platformInfraCommitEdge?: PlatformInfraCommitEdge | null; + result?: PlatformInfraCommit | null; +} +export type PlatformInfraSetAndCommitPayloadSelect = { + clientMutationId?: boolean; + platformInfraCommitEdge?: { + select: PlatformInfraCommitEdgeSelect; + }; + result?: { + select: PlatformInfraCommitSelect; + }; +}; export interface PlatformInfraSetDataAtPathPayload { clientMutationId?: string | null; result?: string | null; @@ -1480,6 +1683,20 @@ export type PlatformInfraSetDataAtPathPayloadSelect = { clientMutationId?: boolean; result?: boolean; }; +export interface PlatformInfraSetManyAndCommitPayload { + clientMutationId?: string | null; + platformInfraCommitEdge?: PlatformInfraCommitEdge | null; + result?: PlatformInfraCommit | null; +} +export type PlatformInfraSetManyAndCommitPayloadSelect = { + clientMutationId?: boolean; + platformInfraCommitEdge?: { + select: PlatformInfraCommitEdgeSelect; + }; + result?: { + select: PlatformInfraCommitSelect; + }; +}; export interface ProvisionBucketPayload { /** The access type applied */ accessType: string; @@ -1502,6 +1719,51 @@ export type ProvisionBucketPayloadSelect = { provider?: boolean; success?: boolean; }; +export interface CreateContentPresetPayload { + clientMutationId?: string | null; + /** The `ContentPreset` that was created by this mutation. */ + contentPreset?: ContentPreset | null; + contentPresetEdge?: ContentPresetEdge | null; +} +export type CreateContentPresetPayloadSelect = { + clientMutationId?: boolean; + contentPreset?: { + select: ContentPresetSelect; + }; + contentPresetEdge?: { + select: ContentPresetEdgeSelect; + }; +}; +export interface UpdateContentPresetPayload { + clientMutationId?: string | null; + /** The `ContentPreset` that was updated by this mutation. */ + contentPreset?: ContentPreset | null; + contentPresetEdge?: ContentPresetEdge | null; +} +export type UpdateContentPresetPayloadSelect = { + clientMutationId?: boolean; + contentPreset?: { + select: ContentPresetSelect; + }; + contentPresetEdge?: { + select: ContentPresetEdgeSelect; + }; +}; +export interface DeleteContentPresetPayload { + clientMutationId?: string | null; + /** The `ContentPreset` that was deleted by this mutation. */ + contentPreset?: ContentPreset | null; + contentPresetEdge?: ContentPresetEdge | null; +} +export type DeleteContentPresetPayloadSelect = { + clientMutationId?: boolean; + contentPreset?: { + select: ContentPresetSelect; + }; + contentPresetEdge?: { + select: ContentPresetEdgeSelect; + }; +}; export interface CreateDbPresetPayload { clientMutationId?: string | null; /** The `DbPreset` that was created by this mutation. */ @@ -1907,6 +2169,30 @@ export type DeletePlatformNamespaceEventPayloadSelect = { select: PlatformNamespaceEventEdgeSelect; }; }; +/** A `PlatformInfraCommit` edge in the connection. */ +export interface PlatformInfraCommitEdge { + cursor?: string | null; + /** The `PlatformInfraCommit` at the end of the edge. */ + node?: PlatformInfraCommit | null; +} +export type PlatformInfraCommitEdgeSelect = { + cursor?: boolean; + node?: { + select: PlatformInfraCommitSelect; + }; +}; +/** A `ContentPreset` edge in the connection. */ +export interface ContentPresetEdge { + cursor?: string | null; + /** The `ContentPreset` at the end of the edge. */ + node?: ContentPreset | null; +} +export type ContentPresetEdgeSelect = { + cursor?: boolean; + node?: { + select: ContentPresetSelect; + }; +}; /** A `DbPreset` edge in the connection. */ export interface DbPresetEdge { cursor?: string | null; @@ -1943,18 +2229,6 @@ export type NamespaceEventEdgeSelect = { select: NamespaceEventSelect; }; }; -/** A `PlatformInfraCommit` edge in the connection. */ -export interface PlatformInfraCommitEdge { - cursor?: string | null; - /** The `PlatformInfraCommit` at the end of the edge. */ - node?: PlatformInfraCommit | null; -} -export type PlatformInfraCommitEdgeSelect = { - cursor?: boolean; - node?: { - select: PlatformInfraCommitSelect; - }; -}; /** A `PlatformInfraObject` edge in the connection. */ export interface PlatformInfraObjectEdge { cursor?: string | null; diff --git a/sdk/constructive-react/src/admin/orm/models/appPermission.ts b/sdk/constructive-cli/src/infra/orm/models/contentPreset.ts similarity index 53% rename from sdk/constructive-react/src/admin/orm/models/appPermission.ts rename to sdk/constructive-cli/src/infra/orm/models/contentPreset.ts index efa4812398..20242ccc78 100644 --- a/sdk/constructive-react/src/admin/orm/models/appPermission.ts +++ b/sdk/constructive-cli/src/infra/orm/models/contentPreset.ts @@ -1,5 +1,5 @@ /** - * AppPermission model for ORM client + * ContentPreset 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 { - AppPermission, - AppPermissionWithRelations, - AppPermissionSelect, - AppPermissionFilter, - AppPermissionOrderBy, - CreateAppPermissionInput, - UpdateAppPermissionInput, - AppPermissionPatch, + ContentPreset, + ContentPresetWithRelations, + ContentPresetSelect, + ContentPresetFilter, + ContentPresetOrderBy, + CreateContentPresetInput, + UpdateContentPresetInput, + ContentPresetPatch, } from '../input-types'; import { connectionFieldsMap } from '../input-types'; -export class AppPermissionModel { +export class ContentPresetModel { constructor(private client: OrmClient) {} - findMany( - args: FindManyArgs & { + findMany( + args: FindManyArgs & { select: S; - } & StrictSelect + } & StrictSelect ): QueryBuilder<{ - appPermissions: ConnectionResult>; + contentPresets: ConnectionResult>; }> { const { document, variables } = buildFindManyDocument( - 'AppPermission', - 'appPermissions', + 'ContentPreset', + 'contentPresets', args.select, { where: args?.where, @@ -56,65 +56,65 @@ export class AppPermissionModel { before: args?.before, offset: args?.offset, }, - 'AppPermissionFilter', - 'AppPermissionOrderBy', + 'ContentPresetFilter', + 'ContentPresetOrderBy', connectionFieldsMap ); return new QueryBuilder({ client: this.client, operation: 'query', - operationName: 'AppPermission', - fieldName: 'appPermissions', + operationName: 'ContentPreset', + fieldName: 'contentPresets', document, variables, }); } - findFirst( - args: FindFirstArgs & { + findFirst( + args: FindFirstArgs & { select: S; - } & StrictSelect + } & StrictSelect ): QueryBuilder<{ - appPermission: InferSelectResult | null; + contentPreset: InferSelectResult | null; }> { const { document, variables } = buildFindFirstDocument( - 'AppPermission', - 'appPermissions', + 'ContentPreset', + 'contentPresets', args.select, { where: args?.where, orderBy: args?.orderBy as string[] | undefined, }, - 'AppPermissionFilter', - 'AppPermissionOrderBy', + 'ContentPresetFilter', + 'ContentPresetOrderBy', connectionFieldsMap ); return new QueryBuilder({ client: this.client, operation: 'query', - operationName: 'AppPermission', - fieldName: 'appPermission', + operationName: 'ContentPreset', + fieldName: 'contentPreset', document, variables, transform: (data: { - appPermissions?: { - nodes?: InferSelectResult[]; + contentPresets?: { + nodes?: InferSelectResult[]; }; }) => ({ - appPermission: data.appPermissions?.nodes?.[0] ?? null, + contentPreset: data.contentPresets?.nodes?.[0] ?? null, }), }); } - findOne( + findOne( args: { id: string; select: S; - } & StrictSelect + } & StrictSelect ): QueryBuilder<{ - appPermission: InferSelectResult | null; + contentPreset: InferSelectResult | null; }> { const { document, variables } = buildFindManyDocument( - 'AppPermission', - 'appPermissions', + 'ContentPreset', + 'contentPresets', args.select, { where: { @@ -124,91 +124,91 @@ export class AppPermissionModel { }, first: 1, }, - 'AppPermissionFilter', - 'AppPermissionOrderBy', + 'ContentPresetFilter', + 'ContentPresetOrderBy', connectionFieldsMap ); return new QueryBuilder({ client: this.client, operation: 'query', - operationName: 'AppPermission', - fieldName: 'appPermission', + operationName: 'ContentPreset', + fieldName: 'contentPreset', document, variables, transform: (data: { - appPermissions?: { - nodes?: InferSelectResult[]; + contentPresets?: { + nodes?: InferSelectResult[]; }; }) => ({ - appPermission: data.appPermissions?.nodes?.[0] ?? null, + contentPreset: data.contentPresets?.nodes?.[0] ?? null, }), }); } - create( - args: CreateArgs & { + create( + args: CreateArgs & { select: S; - } & StrictSelect + } & StrictSelect ): QueryBuilder<{ - createAppPermission: { - appPermission: InferSelectResult; + createContentPreset: { + contentPreset: InferSelectResult; }; }> { const { document, variables } = buildCreateDocument( - 'AppPermission', - 'createAppPermission', - 'appPermission', + 'ContentPreset', + 'createContentPreset', + 'contentPreset', args.select, args.data, - 'CreateAppPermissionInput', + 'CreateContentPresetInput', connectionFieldsMap ); return new QueryBuilder({ client: this.client, operation: 'mutation', - operationName: 'AppPermission', - fieldName: 'createAppPermission', + operationName: 'ContentPreset', + fieldName: 'createContentPreset', document, variables, }); } - update( + update( args: UpdateArgs< S, { id: string; }, - AppPermissionPatch + ContentPresetPatch > & { select: S; - } & StrictSelect + } & StrictSelect ): QueryBuilder<{ - updateAppPermission: { - appPermission: InferSelectResult; + updateContentPreset: { + contentPreset: InferSelectResult; }; }> { const { document, variables } = buildUpdateByPkDocument( - 'AppPermission', - 'updateAppPermission', - 'appPermission', + 'ContentPreset', + 'updateContentPreset', + 'contentPreset', args.select, args.where.id, args.data, - 'UpdateAppPermissionInput', + 'UpdateContentPresetInput', 'id', - 'appPermissionPatch', + 'contentPresetPatch', connectionFieldsMap, undefined ); return new QueryBuilder({ client: this.client, operation: 'mutation', - operationName: 'AppPermission', - fieldName: 'updateAppPermission', + operationName: 'ContentPreset', + fieldName: 'updateContentPreset', document, variables, }); } - delete( + delete( args: DeleteArgs< { id: string; @@ -216,28 +216,28 @@ export class AppPermissionModel { S > & { select: S; - } & StrictSelect + } & StrictSelect ): QueryBuilder<{ - deleteAppPermission: { - appPermission: InferSelectResult; + deleteContentPreset: { + contentPreset: InferSelectResult; }; }> { const { document, variables } = buildDeleteByPkDocument( - 'AppPermission', - 'deleteAppPermission', - 'appPermission', + 'ContentPreset', + 'deleteContentPreset', + 'contentPreset', { id: args.where.id, }, - 'DeleteAppPermissionInput', + 'DeleteContentPresetInput', args.select, connectionFieldsMap ); return new QueryBuilder({ client: this.client, operation: 'mutation', - operationName: 'AppPermission', - fieldName: 'deleteAppPermission', + operationName: 'ContentPreset', + fieldName: 'deleteContentPreset', document, variables, }); diff --git a/sdk/constructive-cli/src/infra/orm/models/index.ts b/sdk/constructive-cli/src/infra/orm/models/index.ts index 1e5132eecf..497a17ea94 100644 --- a/sdk/constructive-cli/src/infra/orm/models/index.ts +++ b/sdk/constructive-cli/src/infra/orm/models/index.ts @@ -3,6 +3,7 @@ * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ +export { ContentPresetModel } from './contentPreset'; export { DbPresetModel } from './dbPreset'; export { NamespaceModel } from './namespace'; export { NamespaceEventModel } from './namespaceEvent'; diff --git a/sdk/constructive-cli/src/infra/orm/mutation/index.ts b/sdk/constructive-cli/src/infra/orm/mutation/index.ts index f266633531..04353e5b5c 100644 --- a/sdk/constructive-cli/src/infra/orm/mutation/index.ts +++ b/sdk/constructive-cli/src/infra/orm/mutation/index.ts @@ -9,15 +9,24 @@ import type { InferSelectResult, StrictSelect } from '../select-types'; import type { PlatformInfraInitEmptyRepoInput, PlatformInfraInsertNodeAtPathInput, + PlatformInfraInsertNodesAtPathsInput, + PlatformInfraSetAndCommitInput, PlatformInfraSetDataAtPathInput, + PlatformInfraSetManyAndCommitInput, ProvisionBucketInput, PlatformInfraInitEmptyRepoPayload, PlatformInfraInsertNodeAtPathPayload, + PlatformInfraInsertNodesAtPathsPayload, + PlatformInfraSetAndCommitPayload, PlatformInfraSetDataAtPathPayload, + PlatformInfraSetManyAndCommitPayload, ProvisionBucketPayload, PlatformInfraInitEmptyRepoPayloadSelect, PlatformInfraInsertNodeAtPathPayloadSelect, + PlatformInfraInsertNodesAtPathsPayloadSelect, + PlatformInfraSetAndCommitPayloadSelect, PlatformInfraSetDataAtPathPayloadSelect, + PlatformInfraSetManyAndCommitPayloadSelect, ProvisionBucketPayloadSelect, } from '../input-types'; import { connectionFieldsMap } from '../input-types'; @@ -27,9 +36,18 @@ export interface PlatformInfraInitEmptyRepoVariables { export interface PlatformInfraInsertNodeAtPathVariables { input: PlatformInfraInsertNodeAtPathInput; } +export interface PlatformInfraInsertNodesAtPathsVariables { + input: PlatformInfraInsertNodesAtPathsInput; +} +export interface PlatformInfraSetAndCommitVariables { + input: PlatformInfraSetAndCommitInput; +} export interface PlatformInfraSetDataAtPathVariables { input: PlatformInfraSetDataAtPathInput; } +export interface PlatformInfraSetManyAndCommitVariables { + input: PlatformInfraSetManyAndCommitInput; +} /** * Variables for provisionBucket * Provision an S3 bucket for a logical bucket in the database. @@ -103,6 +121,67 @@ export function createMutationOperations(client: OrmClient) { 'PlatformInfraInsertNodeAtPathPayload' ), }), + platformInfraInsertNodesAtPaths: ( + args: PlatformInfraInsertNodesAtPathsVariables, + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + platformInfraInsertNodesAtPaths: InferSelectResult< + PlatformInfraInsertNodesAtPathsPayload, + S + > | null; + }>({ + client, + operation: 'mutation', + operationName: 'PlatformInfraInsertNodesAtPaths', + fieldName: 'platformInfraInsertNodesAtPaths', + ...buildCustomDocument( + 'mutation', + 'PlatformInfraInsertNodesAtPaths', + 'platformInfraInsertNodesAtPaths', + options.select, + args, + [ + { + name: 'input', + type: 'PlatformInfraInsertNodesAtPathsInput!', + }, + ], + connectionFieldsMap, + 'PlatformInfraInsertNodesAtPathsPayload' + ), + }), + platformInfraSetAndCommit: ( + args: PlatformInfraSetAndCommitVariables, + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + platformInfraSetAndCommit: InferSelectResult | null; + }>({ + client, + operation: 'mutation', + operationName: 'PlatformInfraSetAndCommit', + fieldName: 'platformInfraSetAndCommit', + ...buildCustomDocument( + 'mutation', + 'PlatformInfraSetAndCommit', + 'platformInfraSetAndCommit', + options.select, + args, + [ + { + name: 'input', + type: 'PlatformInfraSetAndCommitInput!', + }, + ], + connectionFieldsMap, + 'PlatformInfraSetAndCommitPayload' + ), + }), platformInfraSetDataAtPath: ( args: PlatformInfraSetDataAtPathVariables, options: { @@ -132,6 +211,38 @@ export function createMutationOperations(client: OrmClient) { 'PlatformInfraSetDataAtPathPayload' ), }), + platformInfraSetManyAndCommit: ( + args: PlatformInfraSetManyAndCommitVariables, + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + platformInfraSetManyAndCommit: InferSelectResult< + PlatformInfraSetManyAndCommitPayload, + S + > | null; + }>({ + client, + operation: 'mutation', + operationName: 'PlatformInfraSetManyAndCommit', + fieldName: 'platformInfraSetManyAndCommit', + ...buildCustomDocument( + 'mutation', + 'PlatformInfraSetManyAndCommit', + 'platformInfraSetManyAndCommit', + options.select, + args, + [ + { + name: 'input', + type: 'PlatformInfraSetManyAndCommitInput!', + }, + ], + connectionFieldsMap, + 'PlatformInfraSetManyAndCommitPayload' + ), + }), provisionBucket: ( args: ProvisionBucketVariables, options: { diff --git a/sdk/constructive-cli/src/modules/README.md b/sdk/constructive-cli/src/modules/README.md index a33b67a1e3..37a9f5ebf2 100644 --- a/sdk/constructive-cli/src/modules/README.md +++ b/sdk/constructive-cli/src/modules/README.md @@ -8,9 +8,9 @@ ## Overview -- **Tables:** 76 -- **Custom queries:** 2 -- **Custom mutations:** 10 +- **Tables:** 83 +- **Custom queries:** 0 +- **Custom mutations:** 3 **Generators:** ORM, CLI diff --git a/sdk/constructive-cli/src/modules/cli/README.md b/sdk/constructive-cli/src/modules/cli/README.md index a3a3ac1bf9..e009761ad9 100644 --- a/sdk/constructive-cli/src/modules/cli/README.md +++ b/sdk/constructive-cli/src/modules/cli/README.md @@ -34,12 +34,15 @@ csdk auth set-token | `blueprint` | blueprint CRUD operations | | `blueprint-construction` | blueprintConstruction CRUD operations | | `blueprint-template` | blueprintTemplate CRUD operations | +| `capabilities-module` | capabilitiesModule CRUD operations | | `catalog-module` | catalogModule CRUD operations | | `compute-log-module` | computeLogModule CRUD operations | | `config-secrets-user-module` | configSecretsUserModule CRUD operations | | `connected-accounts-module` | connectedAccountsModule CRUD operations | +| `content-preset-module` | contentPresetModule CRUD operations | | `crypto-addresses-module` | cryptoAddressesModule CRUD operations | | `crypto-auth-module` | cryptoAuthModule CRUD operations | +| `data-capabilities-field` | dataCapabilitiesField CRUD operations | | `database-provision-module` | databaseProvisionModule CRUD operations | | `database-settings-module` | databaseSettingsModule CRUD operations | | `db-pool-config` | dbPoolConfig CRUD operations | @@ -50,9 +53,11 @@ csdk auth set-token | `denormalized-table-field` | denormalizedTableField CRUD operations | | `devices-module` | devicesModule CRUD operations | | `domain-module` | domainModule CRUD operations | +| `email-sender-module` | emailSenderModule CRUD operations | | `emails-module` | emailsModule CRUD operations | | `entity-type-provision` | entityTypeProvision CRUD operations | | `events-module` | eventsModule CRUD operations | +| `file-ref-field` | fileRefField CRUD operations | | `function-deployment-module` | functionDeploymentModule CRUD operations | | `function-invocation-module` | functionInvocationModule CRUD operations | | `function-module` | functionModule CRUD operations | @@ -74,8 +79,8 @@ csdk auth set-token | `merkle-store-module` | merkleStoreModule CRUD operations | | `namespace-module` | namespaceModule CRUD operations | | `notifications-module` | notificationsModule CRUD operations | +| `oauth-requests-module` | oauthRequestsModule CRUD operations | | `pages-module` | pagesModule CRUD operations | -| `permissions-module` | permissionsModule CRUD operations | | `phone-numbers-module` | phoneNumbersModule CRUD operations | | `plans-module` | plansModule CRUD operations | | `principal-auth-module` | principalAuthModule CRUD operations | @@ -87,6 +92,7 @@ csdk auth set-token | `resource-module` | resourceModule CRUD operations | | `rls-module` | rlsModule CRUD operations | | `route-module` | routeModule CRUD operations | +| `scope-types-module` | scopeTypesModule CRUD operations | | `secure-table-provision` | secureTableProvision CRUD operations | | `session-secrets-module` | sessionSecretsModule CRUD operations | | `sessions-module` | sessionsModule CRUD operations | @@ -97,26 +103,18 @@ csdk auth set-token | `user-auth-module` | userAuthModule CRUD operations | | `user-credentials-module` | userCredentialsModule CRUD operations | | `user-settings-module` | userSettingsModule CRUD operations | +| `user-settings-security-module` | userSettingsSecurityModule CRUD operations | | `user-state-module` | userStateModule CRUD operations | | `users-module` | usersModule CRUD operations | | `webauthn-auth-module` | webauthnAuthModule CRUD operations | | `webauthn-credentials-module` | webauthnCredentialsModule CRUD operations | | `webhook-module` | webhookModule CRUD operations | -| `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. | -| `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. | | `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 function_module is installed, 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. | | `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-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, and lifecycle settings. | -| `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-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. | -| `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. | -| `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). | -| `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. | -| `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). | -| `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. | ## Infrastructure Commands @@ -180,7 +178,7 @@ CRUD operations for AgentModule records. | `agentTableName` | String | | `apiName` | String | | `databaseId` | UUID | -| `defaultPermissions` | String | +| `defaultCapabilities` | String | | `entityField` | String | | `entityTableId` | UUID | | `hasAgents` | Boolean | @@ -214,7 +212,7 @@ CRUD operations for AgentModule records. | `threadTableName` | String | **Required create fields:** `databaseId`, `scope` -**Optional create fields (backend defaults):** `agentTableId`, `agentTableName`, `apiName`, `defaultPermissions`, `entityField`, `entityTableId`, `hasAgents`, `hasPlans`, `hasResources`, `messageTableId`, `messageTableName`, `personaTableId`, `personaTableName`, `planTableId`, `planTableName`, `policies`, `prefix`, `privateApiName`, `privateSchemaId`, `privateSchemaName`, `promptsTableId`, `promptsTableName`, `provisions`, `publicSchemaName`, `resourceTableId`, `resourceTableName`, `resources`, `schemaId`, `shared`, `taskTableId`, `taskTableName`, `threadTableId`, `threadTableName` +**Optional create fields (backend defaults):** `agentTableId`, `agentTableName`, `apiName`, `defaultCapabilities`, `entityField`, `entityTableId`, `hasAgents`, `hasPlans`, `hasResources`, `messageTableId`, `messageTableName`, `personaTableId`, `personaTableName`, `planTableId`, `planTableName`, `policies`, `prefix`, `privateApiName`, `privateSchemaId`, `privateSchemaName`, `promptsTableId`, `promptsTableName`, `provisions`, `publicSchemaName`, `resourceTableId`, `resourceTableName`, `resources`, `schemaId`, `shared`, `taskTableId`, `taskTableName`, `threadTableId`, `threadTableName` ### `api-surface-module` @@ -244,7 +242,7 @@ CRUD operations for ApiSurfaceModule records. | `corsSettingsTableId` | UUID | | `corsSettingsTableName` | String | | `databaseId` | UUID | -| `defaultPermissions` | String | +| `defaultCapabilities` | String | | `entityField` | String | | `entityTableId` | UUID | | `id` | UUID | @@ -257,7 +255,7 @@ CRUD operations for ApiSurfaceModule records. | `scope` | String | **Required create fields:** `databaseId`, `scope` -**Optional create fields (backend defaults):** `apiName`, `apiSchemasTableId`, `apiSchemasTableName`, `apiSettingsTableId`, `apiSettingsTableName`, `apisTableId`, `apisTableName`, `catalogModuleId`, `corsSettingsTableId`, `corsSettingsTableName`, `defaultPermissions`, `entityField`, `entityTableId`, `policies`, `prefix`, `privateApiName`, `provisions`, `publicSchemaName`, `schemaId` +**Optional create fields (backend defaults):** `apiName`, `apiSchemasTableId`, `apiSchemasTableName`, `apiSettingsTableId`, `apiSettingsTableName`, `apisTableId`, `apisTableName`, `catalogModuleId`, `corsSettingsTableId`, `corsSettingsTableName`, `defaultCapabilities`, `entityField`, `entityTableId`, `policies`, `prefix`, `privateApiName`, `provisions`, `publicSchemaName`, `schemaId` ### `app-module` @@ -283,7 +281,7 @@ CRUD operations for AppModule records. | `appsTableName` | String | | `catalogModuleId` | UUID | | `databaseId` | UUID | -| `defaultPermissions` | String | +| `defaultCapabilities` | String | | `entityField` | String | | `entityTableId` | UUID | | `id` | UUID | @@ -298,7 +296,7 @@ CRUD operations for AppModule records. | `scope` | String | **Required create fields:** `databaseId`, `scope` -**Optional create fields (backend defaults):** `apiName`, `appComponentsTableId`, `appComponentsTableName`, `appsTableId`, `appsTableName`, `catalogModuleId`, `defaultPermissions`, `entityField`, `entityTableId`, `policies`, `prefix`, `privateApiName`, `privateSchemaId`, `privateSchemaName`, `provisions`, `publicSchemaName`, `schemaId` +**Optional create fields (backend defaults):** `apiName`, `appComponentsTableId`, `appComponentsTableName`, `appsTableId`, `appsTableName`, `catalogModuleId`, `defaultCapabilities`, `entityField`, `entityTableId`, `policies`, `prefix`, `privateApiName`, `privateSchemaId`, `privateSchemaName`, `provisions`, `publicSchemaName`, `schemaId` ### `billing-module` @@ -321,8 +319,8 @@ CRUD operations for BillingModule records. | `balancesTableId` | UUID | | `balancesTableName` | String | | `databaseId` | UUID | +| `defaultCapabilities` | String | | `defaultMeterCatalog` | JSON | -| `defaultPermissions` | String | | `id` | UUID | | `ledgerTableId` | UUID | | `ledgerTableName` | String | @@ -347,7 +345,7 @@ CRUD operations for BillingModule records. | `sweepExpiredSubscriptionsFunction` | String | **Required create fields:** `databaseId` -**Optional create fields (backend defaults):** `apiName`, `balancesTableId`, `balancesTableName`, `defaultMeterCatalog`, `defaultPermissions`, `ledgerTableId`, `ledgerTableName`, `meterCreditsTableId`, `meterCreditsTableName`, `meterDefaultsTableId`, `meterDefaultsTableName`, `meterSourcesTableId`, `meterSourcesTableName`, `metersTableId`, `metersTableName`, `planSubscriptionsTableId`, `planSubscriptionsTableName`, `prefix`, `privateApiName`, `privateSchemaId`, `privateSchemaName`, `publicSchemaName`, `recordUsageFunction`, `rollupUsageSummaryFunction`, `schemaId`, `sweepExpiredSubscriptionsFunction` +**Optional create fields (backend defaults):** `apiName`, `balancesTableId`, `balancesTableName`, `defaultCapabilities`, `defaultMeterCatalog`, `ledgerTableId`, `ledgerTableName`, `meterCreditsTableId`, `meterCreditsTableName`, `meterDefaultsTableId`, `meterDefaultsTableName`, `meterSourcesTableId`, `meterSourcesTableName`, `metersTableId`, `metersTableName`, `planSubscriptionsTableId`, `planSubscriptionsTableName`, `prefix`, `privateApiName`, `privateSchemaId`, `privateSchemaName`, `publicSchemaName`, `recordUsageFunction`, `rollupUsageSummaryFunction`, `schemaId`, `sweepExpiredSubscriptionsFunction` ### `billing-provider-module` @@ -369,16 +367,22 @@ CRUD operations for BillingProviderModule records. | `apiName` | String | | `billingCustomersTableId` | UUID | | `billingCustomersTableName` | String | +| `billingInvoicesTableId` | UUID | +| `billingInvoicesTableName` | String | | `billingPricesTableId` | UUID | | `billingPricesTableName` | String | | `billingProductsTableId` | UUID | | `billingProductsTableName` | String | +| `billingRefundsTableId` | UUID | +| `billingRefundsTableName` | String | | `billingSubscriptionsTableId` | UUID | | `billingSubscriptionsTableName` | String | | `billingWebhookEventsTableId` | UUID | | `billingWebhookEventsTableName` | String | | `databaseId` | UUID | | `id` | UUID | +| `listPendingUsageSyncFunction` | String | +| `markUsageSyncedFunction` | String | | `prefix` | String | | `pricesTableId` | UUID | | `privateApiName` | String | @@ -386,11 +390,13 @@ CRUD operations for BillingProviderModule records. | `processBillingEventFunction` | String | | `productsTableId` | UUID | | `provider` | String | +| `recordRefundFunction` | String | | `schemaId` | UUID | | `subscriptionsTableId` | UUID | +| `upsertInvoiceFunction` | String | **Required create fields:** `databaseId` -**Optional create fields (backend defaults):** `apiName`, `billingCustomersTableId`, `billingCustomersTableName`, `billingPricesTableId`, `billingPricesTableName`, `billingProductsTableId`, `billingProductsTableName`, `billingSubscriptionsTableId`, `billingSubscriptionsTableName`, `billingWebhookEventsTableId`, `billingWebhookEventsTableName`, `prefix`, `pricesTableId`, `privateApiName`, `privateSchemaId`, `processBillingEventFunction`, `productsTableId`, `provider`, `schemaId`, `subscriptionsTableId` +**Optional create fields (backend defaults):** `apiName`, `billingCustomersTableId`, `billingCustomersTableName`, `billingInvoicesTableId`, `billingInvoicesTableName`, `billingPricesTableId`, `billingPricesTableName`, `billingProductsTableId`, `billingProductsTableName`, `billingRefundsTableId`, `billingRefundsTableName`, `billingSubscriptionsTableId`, `billingSubscriptionsTableName`, `billingWebhookEventsTableId`, `billingWebhookEventsTableName`, `listPendingUsageSyncFunction`, `markUsageSyncedFunction`, `prefix`, `pricesTableId`, `privateApiName`, `privateSchemaId`, `processBillingEventFunction`, `productsTableId`, `provider`, `recordRefundFunction`, `schemaId`, `subscriptionsTableId`, `upsertInvoiceFunction` ### `blueprint` @@ -498,6 +504,49 @@ CRUD operations for BlueprintTemplate records. **Required create fields:** `definition`, `displayName`, `name`, `ownerId` **Optional create fields (backend defaults):** `categories`, `complexity`, `copyCount`, `definitionHash`, `definitionSchemaVersion`, `description`, `forkCount`, `forkedFromId`, `source`, `tableHashes`, `tags`, `version`, `visibility` +### `capabilities-module` + +CRUD operations for CapabilitiesModule records. + +| Subcommand | Description | +|------------|-------------| +| `list` | List all capabilitiesModule records | +| `find-first` | Find first matching capabilitiesModule record | +| `get` | Get a capabilitiesModule by id | +| `create` | Create a new capabilitiesModule | +| `update` | Update an existing capabilitiesModule | +| `delete` | Delete a capabilitiesModule | + +**Fields:** + +| Field | Type | +|-------|------| +| `actorTableId` | UUID | +| `apiName` | String | +| `bitlen` | Int | +| `databaseId` | UUID | +| `defaultTableId` | UUID | +| `defaultTableName` | String | +| `entityField` | String | +| `entityTableId` | UUID | +| `getByMask` | String | +| `getMask` | String | +| `getMaskByName` | String | +| `getPaddedMask` | String | +| `id` | UUID | +| `prefix` | String | +| `privateApiName` | String | +| `privateSchemaId` | UUID | +| `privateSchemaName` | String | +| `publicSchemaName` | String | +| `schemaId` | UUID | +| `scope` | String | +| `tableId` | UUID | +| `tableName` | String | + +**Required create fields:** `databaseId`, `scope` +**Optional create fields (backend defaults):** `actorTableId`, `apiName`, `bitlen`, `defaultTableId`, `defaultTableName`, `entityField`, `entityTableId`, `getByMask`, `getMask`, `getMaskByName`, `getPaddedMask`, `prefix`, `privateApiName`, `privateSchemaId`, `privateSchemaName`, `publicSchemaName`, `schemaId`, `tableId`, `tableName` + ### `catalog-module` CRUD operations for CatalogModule records. @@ -520,10 +569,12 @@ CRUD operations for CatalogModule records. | `apisTableName` | String | | `appsTableId` | UUID | | `appsTableName` | String | +| `bindingsTableId` | UUID | +| `bindingsTableName` | String | | `bucketsTableId` | UUID | | `bucketsTableName` | String | | `databaseId` | UUID | -| `defaultPermissions` | String | +| `defaultCapabilities` | String | | `domainsTableId` | UUID | | `domainsTableName` | String | | `entityTableId` | UUID | @@ -556,7 +607,7 @@ CRUD operations for CatalogModule records. | `sitesWebConfigTableName` | String | **Required create fields:** `databaseId`, `scope` -**Optional create fields (backend defaults):** `apiName`, `apisTableId`, `apisTableName`, `appsTableId`, `appsTableName`, `bucketsTableId`, `bucketsTableName`, `defaultPermissions`, `domainsTableId`, `domainsTableName`, `entityTableId`, `functionsTableId`, `functionsTableName`, `namespacesTableId`, `namespacesTableName`, `policies`, `privateApiName`, `provisions`, `publicSchemaName`, `resourceDefinitionsTableId`, `resourceDefinitionsTableName`, `resourceInstallationsTableId`, `resourceInstallationsTableName`, `resourcesTableId`, `resourcesTableName`, `schemaId`, `sitesAppLinksTableId`, `sitesAppLinksTableName`, `sitesDeepLinksTableId`, `sitesDeepLinksTableName`, `sitesErrorPagesTableId`, `sitesErrorPagesTableName`, `sitesTableId`, `sitesTableName`, `sitesWebConfigTableId`, `sitesWebConfigTableName` +**Optional create fields (backend defaults):** `apiName`, `apisTableId`, `apisTableName`, `appsTableId`, `appsTableName`, `bindingsTableId`, `bindingsTableName`, `bucketsTableId`, `bucketsTableName`, `defaultCapabilities`, `domainsTableId`, `domainsTableName`, `entityTableId`, `functionsTableId`, `functionsTableName`, `namespacesTableId`, `namespacesTableName`, `policies`, `privateApiName`, `provisions`, `publicSchemaName`, `resourceDefinitionsTableId`, `resourceDefinitionsTableName`, `resourceInstallationsTableId`, `resourceInstallationsTableName`, `resourcesTableId`, `resourcesTableName`, `schemaId`, `sitesAppLinksTableId`, `sitesAppLinksTableName`, `sitesDeepLinksTableId`, `sitesDeepLinksTableName`, `sitesErrorPagesTableId`, `sitesErrorPagesTableName`, `sitesTableId`, `sitesTableName`, `sitesWebConfigTableId`, `sitesWebConfigTableName` ### `compute-log-module` @@ -658,6 +709,44 @@ CRUD operations for ConnectedAccountsModule records. **Required create fields:** `databaseId`, `tableName` **Optional create fields (backend defaults):** `apiName`, `ownerTableId`, `privateApiName`, `privateSchemaId`, `schemaId`, `tableId` +### `content-preset-module` + +CRUD operations for ContentPresetModule records. + +| Subcommand | Description | +|------------|-------------| +| `list` | List all contentPresetModule records | +| `find-first` | Find first matching contentPresetModule record | +| `get` | Get a contentPresetModule by id | +| `create` | Create a new contentPresetModule | +| `update` | Update an existing contentPresetModule | +| `delete` | Delete a contentPresetModule | + +**Fields:** + +| Field | Type | +|-------|------| +| `apiName` | String | +| `contentPresetsTableId` | UUID | +| `createdAt` | Datetime | +| `databaseId` | UUID | +| `entityTableId` | UUID | +| `id` | UUID | +| `merkleStoreModuleId` | UUID | +| `policies` | JSON | +| `prefix` | String | +| `privateApiName` | String | +| `privateSchemaId` | UUID | +| `privateSchemaName` | String | +| `provisions` | JSON | +| `publicSchemaId` | UUID | +| `publicSchemaName` | String | +| `scope` | String | +| `storeName` | String | + +**Required create fields:** `databaseId`, `merkleStoreModuleId`, `prefix`, `scope`, `storeName` +**Optional create fields (backend defaults):** `apiName`, `contentPresetsTableId`, `entityTableId`, `policies`, `privateApiName`, `privateSchemaId`, `privateSchemaName`, `provisions`, `publicSchemaId`, `publicSchemaName` + ### `crypto-addresses-module` CRUD operations for CryptoAddressesModule records. @@ -724,6 +813,38 @@ CRUD operations for CryptoAuthModule records. **Required create fields:** `databaseId`, `userField` **Optional create fields (backend defaults):** `addressesTableId`, `cryptoNetwork`, `schemaId`, `secretsTableId`, `sessionCredentialsTableId`, `sessionsTableId`, `signInRecordFailure`, `signInRequestChallenge`, `signInWithChallenge`, `signUpWithKey`, `usersTableId` +### `data-capabilities-field` + +CRUD operations for DataCapabilitiesField records. + +| Subcommand | Description | +|------------|-------------| +| `list` | List all dataCapabilitiesField records | +| `find-first` | Find first matching dataCapabilitiesField record | +| `get` | Get a dataCapabilitiesField by id | +| `create` | Create a new dataCapabilitiesField | +| `update` | Update an existing dataCapabilitiesField | +| `delete` | Delete a dataCapabilitiesField | + +**Fields:** + +| Field | Type | +|-------|------| +| `capabilitiesModuleId` | UUID | +| `databaseId` | UUID | +| `fieldId` | UUID | +| `fromFieldId` | UUID | +| `id` | UUID | +| `mappingFieldId` | UUID | +| `mappingKeyFieldId` | UUID | +| `mappingTableId` | UUID | +| `mode` | String | +| `subsetGuard` | Boolean | +| `tableId` | UUID | + +**Required create fields:** `capabilitiesModuleId`, `databaseId`, `fieldId`, `tableId` +**Optional create fields (backend defaults):** `fromFieldId`, `mappingFieldId`, `mappingKeyFieldId`, `mappingTableId`, `mode`, `subsetGuard` + ### `database-provision-module` CRUD operations for DatabaseProvisionModule records. @@ -785,7 +906,7 @@ CRUD operations for DatabaseSettingsModule records. | `databaseId` | UUID | | `databaseSettingsTableId` | UUID | | `databaseSettingsTableName` | String | -| `defaultPermissions` | String | +| `defaultCapabilities` | String | | `entityField` | String | | `entityTableId` | UUID | | `id` | UUID | @@ -804,7 +925,7 @@ CRUD operations for DatabaseSettingsModule records. | `webauthnSettingsTableName` | String | **Required create fields:** `databaseId`, `scope` -**Optional create fields (backend defaults):** `apiName`, `databaseSettingsTableId`, `databaseSettingsTableName`, `defaultPermissions`, `entityField`, `entityTableId`, `policies`, `prefix`, `privateApiName`, `provisions`, `pubkeySettingsTableId`, `pubkeySettingsTableName`, `publicSchemaName`, `rlsSettingsTableId`, `rlsSettingsTableName`, `schemaId`, `webauthnSettingsTableId`, `webauthnSettingsTableName` +**Optional create fields (backend defaults):** `apiName`, `databaseSettingsTableId`, `databaseSettingsTableName`, `defaultCapabilities`, `entityField`, `entityTableId`, `policies`, `prefix`, `privateApiName`, `provisions`, `pubkeySettingsTableId`, `pubkeySettingsTableName`, `publicSchemaName`, `rlsSettingsTableId`, `rlsSettingsTableName`, `schemaId`, `webauthnSettingsTableId`, `webauthnSettingsTableName` ### `db-pool-config` @@ -930,7 +1051,7 @@ CRUD operations for DbUsageModule records. | `collectDbQueryStatsFunction` | String | | `collectDbTableStatsFunction` | String | | `databaseId` | UUID | -| `defaultPermissions` | String | +| `defaultCapabilities` | String | | `entityField` | String | | `id` | UUID | | `interval` | String | @@ -955,7 +1076,7 @@ CRUD operations for DbUsageModule records. | `tableStatsSummaryTableName` | String | **Required create fields:** `databaseId`, `scope` -**Optional create fields (backend defaults):** `apiName`, `collectDbQueryStatsFunction`, `collectDbTableStatsFunction`, `defaultPermissions`, `entityField`, `interval`, `prefix`, `premake`, `privateApiName`, `privateSchemaId`, `privateSchemaName`, `publicSchemaName`, `queryStatsLogTableId`, `queryStatsLogTableName`, `queryStatsSummaryTableId`, `queryStatsSummaryTableName`, `retention`, `rollupDbQueryStatsUsageSummaryFunction`, `rollupDbTableStatsUsageSummaryFunction`, `schemaId`, `tableStatsLogTableId`, `tableStatsLogTableName`, `tableStatsSummaryTableId`, `tableStatsSummaryTableName` +**Optional create fields (backend defaults):** `apiName`, `collectDbQueryStatsFunction`, `collectDbTableStatsFunction`, `defaultCapabilities`, `entityField`, `interval`, `prefix`, `premake`, `privateApiName`, `privateSchemaId`, `privateSchemaName`, `publicSchemaName`, `queryStatsLogTableId`, `queryStatsLogTableName`, `queryStatsSummaryTableId`, `queryStatsSummaryTableName`, `retention`, `rollupDbQueryStatsUsageSummaryFunction`, `rollupDbTableStatsUsageSummaryFunction`, `schemaId`, `tableStatsLogTableId`, `tableStatsLogTableName`, `tableStatsSummaryTableId`, `tableStatsSummaryTableName` ### `default-ids-module` @@ -1060,7 +1181,7 @@ CRUD operations for DomainModule records. | `apiName` | String | | `catalogModuleId` | UUID | | `databaseId` | UUID | -| `defaultPermissions` | String | +| `defaultCapabilities` | String | | `domainEventsTableId` | UUID | | `domainEventsTableName` | String | | `domainVerificationsTableId` | UUID | @@ -1083,7 +1204,48 @@ CRUD operations for DomainModule records. | `scope` | String | **Required create fields:** `databaseId`, `scope` -**Optional create fields (backend defaults):** `apiName`, `catalogModuleId`, `defaultPermissions`, `domainEventsTableId`, `domainEventsTableName`, `domainVerificationsTableId`, `domainVerificationsTableName`, `domainsTableId`, `domainsTableName`, `entityField`, `entityTableId`, `managedDomainsTableId`, `managedDomainsTableName`, `policies`, `prefix`, `privateApiName`, `privateSchemaId`, `privateSchemaName`, `provisions`, `publicSchemaName`, `schemaId` +**Optional create fields (backend defaults):** `apiName`, `catalogModuleId`, `defaultCapabilities`, `domainEventsTableId`, `domainEventsTableName`, `domainVerificationsTableId`, `domainVerificationsTableName`, `domainsTableId`, `domainsTableName`, `entityField`, `entityTableId`, `managedDomainsTableId`, `managedDomainsTableName`, `policies`, `prefix`, `privateApiName`, `privateSchemaId`, `privateSchemaName`, `provisions`, `publicSchemaName`, `schemaId` + +### `email-sender-module` + +CRUD operations for EmailSenderModule records. + +| Subcommand | Description | +|------------|-------------| +| `list` | List all emailSenderModule records | +| `find-first` | Find first matching emailSenderModule record | +| `get` | Get a emailSenderModule by id | +| `create` | Create a new emailSenderModule | +| `update` | Update an existing emailSenderModule | +| `delete` | Delete a emailSenderModule | + +**Fields:** + +| Field | Type | +|-------|------| +| `apiName` | String | +| `databaseId` | UUID | +| `defaultCapabilities` | String | +| `emailIdentitiesTableId` | UUID | +| `emailIdentitiesTableName` | String | +| `emailProviderAccountsTableId` | UUID | +| `emailProviderAccountsTableName` | String | +| `emailSiteIdentitiesTableId` | UUID | +| `emailSiteIdentitiesTableName` | String | +| `entityField` | String | +| `entityTableId` | UUID | +| `id` | UUID | +| `policies` | JSON | +| `prefix` | String | +| `privateApiName` | String | +| `provisions` | JSON | +| `publicSchemaName` | String | +| `schemaId` | UUID | +| `scope` | String | +| `siteSurfaceModuleId` | UUID | + +**Required create fields:** `databaseId`, `scope` +**Optional create fields (backend defaults):** `apiName`, `defaultCapabilities`, `emailIdentitiesTableId`, `emailIdentitiesTableName`, `emailProviderAccountsTableId`, `emailProviderAccountsTableName`, `emailSiteIdentitiesTableId`, `emailSiteIdentitiesTableName`, `entityField`, `entityTableId`, `policies`, `prefix`, `privateApiName`, `provisions`, `publicSchemaName`, `schemaId`, `siteSurfaceModuleId` ### `emails-module` @@ -1197,7 +1359,7 @@ CRUD operations for EventsModule records. | `actorTableId` | UUID | | `apiName` | String | | `databaseId` | UUID | -| `defaultPermissions` | String | +| `defaultCapabilities` | String | | `entityField` | String | | `entityTableId` | UUID | | `eventAggregatesTableId` | UUID | @@ -1206,6 +1368,7 @@ CRUD operations for EventsModule records. | `eventTypesTableName` | String | | `eventsTableId` | UUID | | `eventsTableName` | String | +| `expireGrants` | String | | `grantAchievement` | String | | `id` | UUID | | `interval` | String | @@ -1222,9 +1385,11 @@ CRUD operations for EventsModule records. | `privateSchemaId` | UUID | | `privateSchemaName` | String | | `publicSchemaName` | String | +| `recomputeCapabilities` | String | | `recordEvent` | String | | `removeEvent` | String | | `retention` | String | +| `revokeAchievement` | String | | `schemaId` | UUID | | `scope` | String | | `stepsRequired` | String | @@ -1234,11 +1399,43 @@ CRUD operations for EventsModule records. | `tgEventBool` | String | | `tgEventToggle` | String | | `tgEventToggleBool` | String | +| `tgLevelGrantSync` | String | | `tgUpdateAggregates` | String | +| `trustLadder` | JSON | | `upsertAggregate` | String | **Required create fields:** `databaseId`, `scope` -**Optional create fields (backend defaults):** `achievementRewardsTableId`, `achievementRewardsTableName`, `actorTableId`, `apiName`, `defaultPermissions`, `entityField`, `entityTableId`, `eventAggregatesTableId`, `eventAggregatesTableName`, `eventTypesTableId`, `eventTypesTableName`, `eventsTableId`, `eventsTableName`, `grantAchievement`, `interval`, `levelAchieved`, `levelGrantsTableId`, `levelGrantsTableName`, `levelRequirementsTableId`, `levelRequirementsTableName`, `levelsTableId`, `levelsTableName`, `prefix`, `premake`, `privateApiName`, `privateSchemaId`, `privateSchemaName`, `publicSchemaName`, `recordEvent`, `removeEvent`, `retention`, `schemaId`, `stepsRequired`, `tgAchievementReward`, `tgCheckAchievements`, `tgEvent`, `tgEventBool`, `tgEventToggle`, `tgEventToggleBool`, `tgUpdateAggregates`, `upsertAggregate` +**Optional create fields (backend defaults):** `achievementRewardsTableId`, `achievementRewardsTableName`, `actorTableId`, `apiName`, `defaultCapabilities`, `entityField`, `entityTableId`, `eventAggregatesTableId`, `eventAggregatesTableName`, `eventTypesTableId`, `eventTypesTableName`, `eventsTableId`, `eventsTableName`, `expireGrants`, `grantAchievement`, `interval`, `levelAchieved`, `levelGrantsTableId`, `levelGrantsTableName`, `levelRequirementsTableId`, `levelRequirementsTableName`, `levelsTableId`, `levelsTableName`, `prefix`, `premake`, `privateApiName`, `privateSchemaId`, `privateSchemaName`, `publicSchemaName`, `recomputeCapabilities`, `recordEvent`, `removeEvent`, `retention`, `revokeAchievement`, `schemaId`, `stepsRequired`, `tgAchievementReward`, `tgCheckAchievements`, `tgEvent`, `tgEventBool`, `tgEventToggle`, `tgEventToggleBool`, `tgLevelGrantSync`, `tgUpdateAggregates`, `trustLadder`, `upsertAggregate` + +### `file-ref-field` + +CRUD operations for FileRefField records. + +| Subcommand | Description | +|------------|-------------| +| `list` | List all fileRefField records | +| `find-first` | Find first matching fileRefField record | +| `get` | Get a fileRefField by id | +| `create` | Create a new fileRefField | +| `update` | Update an existing fileRefField | +| `delete` | Delete a fileRefField | + +**Fields:** + +| Field | Type | +|-------|------| +| `bucketKey` | String | +| `bucketTags` | String | +| `databaseId` | UUID | +| `enforceFk` | Boolean | +| `fieldId` | UUID | +| `id` | UUID | +| `isPublic` | Boolean | +| `storageModuleId` | UUID | +| `tableId` | UUID | + +**Required create fields:** `databaseId`, `fieldId`, `storageModuleId`, `tableId` +**Optional create fields (backend defaults):** `bucketKey`, `bucketTags`, `enforceFk`, `isPublic` ### `function-deployment-module` @@ -1259,7 +1456,7 @@ CRUD operations for FunctionDeploymentModule records. |-------|------| | `apiName` | String | | `databaseId` | UUID | -| `defaultPermissions` | String | +| `defaultCapabilities` | String | | `deploymentEventsTableId` | UUID | | `deploymentEventsTableName` | String | | `deploymentsTableId` | UUID | @@ -1280,7 +1477,7 @@ CRUD operations for FunctionDeploymentModule records. | `scope` | String | **Required create fields:** `databaseId`, `scope` -**Optional create fields (backend defaults):** `apiName`, `defaultPermissions`, `deploymentEventsTableId`, `deploymentEventsTableName`, `deploymentsTableId`, `deploymentsTableName`, `entityField`, `entityTableId`, `functionModuleId`, `namespaceModuleId`, `policies`, `prefix`, `privateApiName`, `privateSchemaId`, `privateSchemaName`, `provisions`, `publicSchemaName`, `schemaId` +**Optional create fields (backend defaults):** `apiName`, `defaultCapabilities`, `deploymentEventsTableId`, `deploymentEventsTableName`, `deploymentsTableId`, `deploymentsTableName`, `entityField`, `entityTableId`, `functionModuleId`, `namespaceModuleId`, `policies`, `prefix`, `privateApiName`, `privateSchemaId`, `privateSchemaName`, `provisions`, `publicSchemaName`, `schemaId` ### `function-invocation-module` @@ -1303,7 +1500,7 @@ CRUD operations for FunctionInvocationModule records. | `attemptsTableId` | UUID | | `attemptsTableName` | String | | `databaseId` | UUID | -| `defaultPermissions` | String | +| `defaultCapabilities` | String | | `entityField` | String | | `entityTableId` | UUID | | `executionLogsTableId` | UUID | @@ -1322,7 +1519,7 @@ CRUD operations for FunctionInvocationModule records. | `scope` | String | **Required create fields:** `databaseId`, `scope` -**Optional create fields (backend defaults):** `apiName`, `attemptsTableId`, `attemptsTableName`, `defaultPermissions`, `entityField`, `entityTableId`, `executionLogsTableId`, `executionLogsTableName`, `invocationsTableId`, `invocationsTableName`, `policies`, `prefix`, `privateApiName`, `privateSchemaId`, `privateSchemaName`, `provisions`, `publicSchemaName`, `schemaId` +**Optional create fields (backend defaults):** `apiName`, `attemptsTableId`, `attemptsTableName`, `defaultCapabilities`, `entityField`, `entityTableId`, `executionLogsTableId`, `executionLogsTableName`, `invocationsTableId`, `invocationsTableName`, `policies`, `prefix`, `privateApiName`, `privateSchemaId`, `privateSchemaName`, `provisions`, `publicSchemaName`, `schemaId` ### `function-module` @@ -1346,7 +1543,7 @@ CRUD operations for FunctionModule records. | `bindingsTableName` | String | | `capabilityBindingsTableId` | UUID | | `databaseId` | UUID | -| `defaultPermissions` | String | +| `defaultCapabilities` | String | | `definitionsTableId` | UUID | | `definitionsTableName` | String | | `entityField` | String | @@ -1365,7 +1562,7 @@ CRUD operations for FunctionModule records. | `scope` | String | **Required create fields:** `databaseId`, `scope` -**Optional create fields (backend defaults):** `apiName`, `bindingsTableId`, `bindingsTableName`, `capabilityBindingsTableId`, `defaultPermissions`, `definitionsTableId`, `definitionsTableName`, `entityField`, `entityTableId`, `hasCron`, `policies`, `prefix`, `privateApiName`, `privateSchemaId`, `privateSchemaName`, `provisions`, `publicSchemaName`, `schedulesTableId`, `schemaId` +**Optional create fields (backend defaults):** `apiName`, `bindingsTableId`, `bindingsTableName`, `capabilityBindingsTableId`, `defaultCapabilities`, `definitionsTableId`, `definitionsTableName`, `entityField`, `entityTableId`, `hasCron`, `policies`, `prefix`, `privateApiName`, `privateSchemaId`, `privateSchemaName`, `provisions`, `publicSchemaName`, `schedulesTableId`, `schemaId` ### `graph-execution-module` @@ -1387,7 +1584,7 @@ CRUD operations for GraphExecutionModule records. | `apiName` | String | | `createdAt` | Datetime | | `databaseId` | UUID | -| `defaultPermissions` | String | +| `defaultCapabilities` | String | | `entityField` | String | | `entityTableId` | UUID | | `executionsTableId` | UUID | @@ -1409,7 +1606,7 @@ CRUD operations for GraphExecutionModule records. | `scope` | String | **Required create fields:** `databaseId`, `graphModuleId`, `scope` -**Optional create fields (backend defaults):** `apiName`, `defaultPermissions`, `entityField`, `entityTableId`, `executionsTableId`, `executionsTableName`, `nodeStatesTableId`, `nodeStatesTableName`, `outputsTableId`, `outputsTableName`, `policies`, `prefix`, `privateApiName`, `privateSchemaId`, `privateSchemaName`, `provisions`, `publicSchemaName`, `schemaId` +**Optional create fields (backend defaults):** `apiName`, `defaultCapabilities`, `entityField`, `entityTableId`, `executionsTableId`, `executionsTableName`, `nodeStatesTableId`, `nodeStatesTableName`, `outputsTableId`, `outputsTableName`, `policies`, `prefix`, `privateApiName`, `privateSchemaId`, `privateSchemaName`, `provisions`, `publicSchemaName`, `schemaId` ### `graph-module` @@ -1431,7 +1628,7 @@ CRUD operations for GraphModule records. | `apiName` | String | | `createdAt` | Datetime | | `databaseId` | UUID | -| `defaultPermissions` | String | +| `defaultCapabilities` | String | | `entityField` | String | | `entityTableId` | UUID | | `graphsTableId` | UUID | @@ -1448,7 +1645,7 @@ CRUD operations for GraphModule records. | `scope` | String | **Required create fields:** `databaseId`, `merkleStoreModuleId`, `scope` -**Optional create fields (backend defaults):** `apiName`, `defaultPermissions`, `entityField`, `entityTableId`, `graphsTableId`, `policies`, `prefix`, `privateApiName`, `privateSchemaId`, `privateSchemaName`, `provisions`, `publicSchemaId`, `publicSchemaName` +**Optional create fields (backend defaults):** `apiName`, `defaultCapabilities`, `entityField`, `entityTableId`, `graphsTableId`, `policies`, `prefix`, `privateApiName`, `privateSchemaId`, `privateSchemaName`, `provisions`, `publicSchemaId`, `publicSchemaName` ### `hierarchy-module` @@ -1473,7 +1670,7 @@ CRUD operations for HierarchyModule records. | `chartEdgesTableName` | String | | `createdAt` | Datetime | | `databaseId` | UUID | -| `defaultPermissions` | String | +| `defaultCapabilities` | String | | `entityField` | String | | `entityTableId` | UUID | | `getManagersFunction` | String | @@ -1492,7 +1689,7 @@ CRUD operations for HierarchyModule records. | `usersTableId` | UUID | **Required create fields:** `databaseId`, `entityTableId`, `scope`, `usersTableId` -**Optional create fields (backend defaults):** `chartEdgeGrantsTableId`, `chartEdgeGrantsTableName`, `chartEdgesTableId`, `chartEdgesTableName`, `defaultPermissions`, `entityField`, `getManagersFunction`, `getSubordinatesFunction`, `hierarchySprtTableId`, `hierarchySprtTableName`, `isManagerOfFunction`, `prefix`, `privateSchemaId`, `privateSchemaName`, `rebuildHierarchyFunction`, `schemaId`, `sprtTableName` +**Optional create fields (backend defaults):** `chartEdgeGrantsTableId`, `chartEdgeGrantsTableName`, `chartEdgesTableId`, `chartEdgesTableName`, `defaultCapabilities`, `entityField`, `getManagersFunction`, `getSubordinatesFunction`, `hierarchySprtTableId`, `hierarchySprtTableName`, `isManagerOfFunction`, `prefix`, `privateSchemaId`, `privateSchemaName`, `rebuildHierarchyFunction`, `schemaId`, `sprtTableName` ### `http-route-module` @@ -1513,7 +1710,7 @@ CRUD operations for HttpRouteModule records. |-------|------| | `apiName` | String | | `databaseId` | UUID | -| `defaultPermissions` | String | +| `defaultCapabilities` | String | | `entityField` | String | | `entityTableId` | UUID | | `functionModuleId` | UUID | @@ -1534,7 +1731,7 @@ CRUD operations for HttpRouteModule records. | `storageModuleId` | UUID | **Required create fields:** `databaseId`, `scope` -**Optional create fields (backend defaults):** `apiName`, `defaultPermissions`, `entityField`, `entityTableId`, `functionModuleId`, `httpRoutesTableId`, `httpRoutesTableName`, `policies`, `prefix`, `privateApiName`, `privateSchemaId`, `privateSchemaName`, `provisions`, `publicSchemaName`, `resolverFunctionName`, `resourceModuleId`, `schemaId`, `storageModuleId` +**Optional create fields (backend defaults):** `apiName`, `defaultCapabilities`, `entityField`, `entityTableId`, `functionModuleId`, `httpRoutesTableId`, `httpRoutesTableName`, `policies`, `prefix`, `privateApiName`, `privateSchemaId`, `privateSchemaName`, `provisions`, `publicSchemaName`, `resolverFunctionName`, `resourceModuleId`, `schemaId`, `storageModuleId` ### `i-18-n-module` @@ -1865,6 +2062,7 @@ CRUD operations for LimitsModule records. | `limitCreditsTableId` | UUID | | `limitDecrementFunction` | String | | `limitDecrementTrigger` | String | +| `limitDefaults` | JSON | | `limitIncrementFunction` | String | | `limitIncrementTrigger` | String | | `limitUpdateTrigger` | String | @@ -1882,7 +2080,7 @@ CRUD operations for LimitsModule records. | `tableName` | String | **Required create fields:** `databaseId`, `scope` -**Optional create fields (backend defaults):** `actorTableId`, `aggregateTableId`, `apiName`, `capCheckTrigger`, `creditCodeItemsTableId`, `creditCodesTableId`, `creditRedemptionsTableId`, `defaultTableId`, `defaultTableName`, `entityField`, `entityTableId`, `eventsTableId`, `limitAggregateCheckSoftFunction`, `limitCapsDefaultsTableId`, `limitCapsTableId`, `limitCheckFunction`, `limitCheckSoftFunction`, `limitCreditsTableId`, `limitDecrementFunction`, `limitDecrementTrigger`, `limitIncrementFunction`, `limitIncrementTrigger`, `limitUpdateTrigger`, `limitWarningStateTableId`, `limitWarningsTableId`, `prefix`, `privateApiName`, `privateSchemaId`, `privateSchemaName`, `publicSchemaName`, `resolveCapFunction`, `schemaId`, `tableId`, `tableName` +**Optional create fields (backend defaults):** `actorTableId`, `aggregateTableId`, `apiName`, `capCheckTrigger`, `creditCodeItemsTableId`, `creditCodesTableId`, `creditRedemptionsTableId`, `defaultTableId`, `defaultTableName`, `entityField`, `entityTableId`, `eventsTableId`, `limitAggregateCheckSoftFunction`, `limitCapsDefaultsTableId`, `limitCapsTableId`, `limitCheckFunction`, `limitCheckSoftFunction`, `limitCreditsTableId`, `limitDecrementFunction`, `limitDecrementTrigger`, `limitDefaults`, `limitIncrementFunction`, `limitIncrementTrigger`, `limitUpdateTrigger`, `limitWarningStateTableId`, `limitWarningsTableId`, `prefix`, `privateApiName`, `privateSchemaId`, `privateSchemaName`, `publicSchemaName`, `resolveCapFunction`, `schemaId`, `tableId`, `tableName` ### `membership-types-module` @@ -1933,9 +2131,12 @@ CRUD operations for MembershipsModule records. | `adminGrantsTableId` | UUID | | `adminGrantsTableName` | String | | `apiName` | String | +| `capabilitiesTableId` | UUID | +| `capabilityDefaultCapabilitiesTableId` | UUID | +| `capabilityDefaultGrantsTableId` | UUID | | `databaseId` | UUID | +| `defaultCapabilitiesTableId` | UUID | | `defaultLimitsTableId` | UUID | -| `defaultPermissionsTableId` | UUID | | `entityField` | String | | `entityIdsByMask` | String | | `entityIdsByPerm` | String | @@ -1958,9 +2159,6 @@ CRUD operations for MembershipsModule records. | `membershipsTableName` | String | | `ownerGrantsTableId` | UUID | | `ownerGrantsTableName` | String | -| `permissionDefaultGrantsTableId` | UUID | -| `permissionDefaultPermissionsTableId` | UUID | -| `permissionsTableId` | UUID | | `prefix` | String | | `privateApiName` | String | | `privateSchemaId` | UUID | @@ -1971,7 +2169,7 @@ CRUD operations for MembershipsModule records. | `sprtTableId` | UUID | **Required create fields:** `databaseId`, `scope` -**Optional create fields (backend defaults):** `actorMaskCheck`, `actorPermCheck`, `actorTableId`, `adminGrantsTableId`, `adminGrantsTableName`, `apiName`, `defaultLimitsTableId`, `defaultPermissionsTableId`, `entityField`, `entityIdsByMask`, `entityIdsByPerm`, `entityIdsFunction`, `entityTableId`, `entityTableOwnerId`, `getOrgFn`, `grantsTableId`, `grantsTableName`, `limitsTableId`, `memberProfilesTableId`, `membersTableId`, `membersTableName`, `membershipDefaultsTableId`, `membershipDefaultsTableName`, `membershipSettingsTableId`, `membershipSettingsTableName`, `membershipsTableId`, `membershipsTableName`, `ownerGrantsTableId`, `ownerGrantsTableName`, `permissionDefaultGrantsTableId`, `permissionDefaultPermissionsTableId`, `permissionsTableId`, `prefix`, `privateApiName`, `privateSchemaId`, `privateSchemaName`, `publicSchemaName`, `schemaId`, `sprtTableId` +**Optional create fields (backend defaults):** `actorMaskCheck`, `actorPermCheck`, `actorTableId`, `adminGrantsTableId`, `adminGrantsTableName`, `apiName`, `capabilitiesTableId`, `capabilityDefaultCapabilitiesTableId`, `capabilityDefaultGrantsTableId`, `defaultCapabilitiesTableId`, `defaultLimitsTableId`, `entityField`, `entityIdsByMask`, `entityIdsByPerm`, `entityIdsFunction`, `entityTableId`, `entityTableOwnerId`, `getOrgFn`, `grantsTableId`, `grantsTableName`, `limitsTableId`, `memberProfilesTableId`, `membersTableId`, `membersTableName`, `membershipDefaultsTableId`, `membershipDefaultsTableName`, `membershipSettingsTableId`, `membershipSettingsTableName`, `membershipsTableId`, `membershipsTableName`, `ownerGrantsTableId`, `ownerGrantsTableName`, `prefix`, `privateApiName`, `privateSchemaId`, `privateSchemaName`, `publicSchemaName`, `schemaId`, `sprtTableId` ### `merkle-store-module` @@ -1991,6 +2189,7 @@ CRUD operations for MerkleStoreModule records. | Field | Type | |-------|------| | `apiName` | String | +| `capabilityKey` | String | | `commitTableId` | UUID | | `createdAt` | Datetime | | `databaseId` | UUID | @@ -1998,7 +2197,6 @@ CRUD operations for MerkleStoreModule records. | `functionPrefix` | String | | `id` | UUID | | `objectTableId` | UUID | -| `permissionKey` | String | | `prefix` | String | | `privateApiName` | String | | `privateSchemaId` | UUID | @@ -2010,7 +2208,7 @@ CRUD operations for MerkleStoreModule records. | `storeTableId` | UUID | **Required create fields:** `databaseId`, `scope` -**Optional create fields (backend defaults):** `apiName`, `commitTableId`, `entityField`, `functionPrefix`, `objectTableId`, `permissionKey`, `prefix`, `privateApiName`, `privateSchemaId`, `privateSchemaName`, `publicSchemaName`, `refTableId`, `schemaId`, `storeTableId` +**Optional create fields (backend defaults):** `apiName`, `capabilityKey`, `commitTableId`, `entityField`, `functionPrefix`, `objectTableId`, `prefix`, `privateApiName`, `privateSchemaId`, `privateSchemaName`, `publicSchemaName`, `refTableId`, `schemaId`, `storeTableId` ### `namespace-module` @@ -2031,7 +2229,7 @@ CRUD operations for NamespaceModule records. |-------|------| | `apiName` | String | | `databaseId` | UUID | -| `defaultPermissions` | String | +| `defaultCapabilities` | String | | `entityField` | String | | `entityTableId` | UUID | | `id` | UUID | @@ -2050,7 +2248,7 @@ CRUD operations for NamespaceModule records. | `scope` | String | **Required create fields:** `databaseId`, `scope` -**Optional create fields (backend defaults):** `apiName`, `defaultPermissions`, `entityField`, `entityTableId`, `namespaceEventsTableId`, `namespaceEventsTableName`, `namespacesTableId`, `namespacesTableName`, `policies`, `prefix`, `privateApiName`, `privateSchemaId`, `privateSchemaName`, `provisions`, `publicSchemaName`, `schemaId` +**Optional create fields (backend defaults):** `apiName`, `defaultCapabilities`, `entityField`, `entityTableId`, `namespaceEventsTableId`, `namespaceEventsTableName`, `namespacesTableId`, `namespacesTableName`, `policies`, `prefix`, `privateApiName`, `privateSchemaId`, `privateSchemaName`, `provisions`, `publicSchemaName`, `schemaId` ### `notifications-module` @@ -2072,7 +2270,7 @@ CRUD operations for NotificationsModule records. | `apiName` | String | | `channelsTableId` | UUID | | `databaseId` | UUID | -| `defaultPermissions` | String | +| `defaultCapabilities` | String | | `deliveryLogTableId` | UUID | | `entityField` | String | | `hasChannels` | Boolean | @@ -2095,7 +2293,40 @@ CRUD operations for NotificationsModule records. | `userSettingsTableId` | UUID | **Required create fields:** `databaseId` -**Optional create fields (backend defaults):** `apiName`, `channelsTableId`, `defaultPermissions`, `deliveryLogTableId`, `entityField`, `hasChannels`, `hasDigestMetadata`, `hasPreferences`, `hasSettingsExtension`, `hasSubscriptions`, `notificationsTableId`, `organizationSettingsTableId`, `ownerTableId`, `preferencesTableId`, `privateApiName`, `privateSchemaId`, `privateSchemaName`, `publicSchemaName`, `readStateTableId`, `schemaId`, `suppressionsTableId`, `userSettingsTableId` +**Optional create fields (backend defaults):** `apiName`, `channelsTableId`, `defaultCapabilities`, `deliveryLogTableId`, `entityField`, `hasChannels`, `hasDigestMetadata`, `hasPreferences`, `hasSettingsExtension`, `hasSubscriptions`, `notificationsTableId`, `organizationSettingsTableId`, `ownerTableId`, `preferencesTableId`, `privateApiName`, `privateSchemaId`, `privateSchemaName`, `publicSchemaName`, `readStateTableId`, `schemaId`, `suppressionsTableId`, `userSettingsTableId` + +### `oauth-requests-module` + +CRUD operations for OauthRequestsModule records. + +| Subcommand | Description | +|------------|-------------| +| `list` | List all oauthRequestsModule records | +| `find-first` | Find first matching oauthRequestsModule record | +| `get` | Get a oauthRequestsModule by id | +| `create` | Create a new oauthRequestsModule | +| `update` | Update an existing oauthRequestsModule | +| `delete` | Delete a oauthRequestsModule | + +**Fields:** + +| Field | Type | +|-------|------| +| `databaseId` | UUID | +| `entityField` | String | +| `entityTableId` | UUID | +| `id` | UUID | +| `oauthAuthorizationRequestsTableId` | UUID | +| `oauthAuthorizationRequestsTableName` | String | +| `pendingIdentityLinksTableId` | UUID | +| `pendingIdentityLinksTableName` | String | +| `prefix` | String | +| `privateSchemaId` | UUID | +| `privateSchemaName` | String | +| `scope` | String | + +**Required create fields:** `databaseId`, `scope` +**Optional create fields (backend defaults):** `entityField`, `entityTableId`, `oauthAuthorizationRequestsTableId`, `oauthAuthorizationRequestsTableName`, `pendingIdentityLinksTableId`, `pendingIdentityLinksTableName`, `prefix`, `privateSchemaId`, `privateSchemaName` ### `pages-module` @@ -2137,49 +2368,6 @@ CRUD operations for PagesModule records. **Required create fields:** `databaseId`, `merkleStoreModuleId`, `prefix`, `scope` **Optional create fields (backend defaults):** `apiName`, `entityTableId`, `pagesTableId`, `policies`, `privateApiName`, `privateSchemaId`, `privateSchemaName`, `provisions`, `publicSchemaId`, `publicSchemaName`, `siteSurfaceModuleId`, `sitesTableId`, `storeNamePrefix` -### `permissions-module` - -CRUD operations for PermissionsModule records. - -| Subcommand | Description | -|------------|-------------| -| `list` | List all permissionsModule records | -| `find-first` | Find first matching permissionsModule record | -| `get` | Get a permissionsModule by id | -| `create` | Create a new permissionsModule | -| `update` | Update an existing permissionsModule | -| `delete` | Delete a permissionsModule | - -**Fields:** - -| Field | Type | -|-------|------| -| `actorTableId` | UUID | -| `apiName` | String | -| `bitlen` | Int | -| `databaseId` | UUID | -| `defaultTableId` | UUID | -| `defaultTableName` | String | -| `entityField` | String | -| `entityTableId` | UUID | -| `getByMask` | String | -| `getMask` | String | -| `getMaskByName` | String | -| `getPaddedMask` | String | -| `id` | UUID | -| `prefix` | String | -| `privateApiName` | String | -| `privateSchemaId` | UUID | -| `privateSchemaName` | String | -| `publicSchemaName` | String | -| `schemaId` | UUID | -| `scope` | String | -| `tableId` | UUID | -| `tableName` | String | - -**Required create fields:** `databaseId`, `scope` -**Optional create fields (backend defaults):** `actorTableId`, `apiName`, `bitlen`, `defaultTableId`, `defaultTableName`, `entityField`, `entityTableId`, `getByMask`, `getMask`, `getMaskByName`, `getPaddedMask`, `prefix`, `privateApiName`, `privateSchemaId`, `privateSchemaName`, `publicSchemaName`, `schemaId`, `tableId`, `tableName` - ### `phone-numbers-module` CRUD operations for PhoneNumbersModule records. @@ -2310,22 +2498,24 @@ CRUD operations for ProfilesModule records. |-------|------| | `actorTableId` | UUID | | `apiName` | String | +| `capabilitiesTableId` | UUID | | `databaseId` | UUID | | `entityField` | String | | `entityTableId` | UUID | | `id` | UUID | +| `membershipProfilesTableId` | UUID | +| `membershipProfilesTableName` | String | | `membershipsTableId` | UUID | -| `permissionsTableId` | UUID | | `prefix` | String | | `privateApiName` | String | | `privateSchemaId` | UUID | | `privateSchemaName` | String | +| `profileCapabilitiesTableId` | UUID | +| `profileCapabilitiesTableName` | String | | `profileDefinitionGrantsTableId` | UUID | | `profileDefinitionGrantsTableName` | String | | `profileGrantsTableId` | UUID | | `profileGrantsTableName` | String | -| `profilePermissionsTableId` | UUID | -| `profilePermissionsTableName` | String | | `profileTemplatesTableId` | UUID | | `profileTemplatesTableName` | String | | `publicSchemaName` | String | @@ -2335,7 +2525,7 @@ CRUD operations for ProfilesModule records. | `tableName` | String | **Required create fields:** `databaseId`, `scope` -**Optional create fields (backend defaults):** `actorTableId`, `apiName`, `entityField`, `entityTableId`, `membershipsTableId`, `permissionsTableId`, `prefix`, `privateApiName`, `privateSchemaId`, `privateSchemaName`, `profileDefinitionGrantsTableId`, `profileDefinitionGrantsTableName`, `profileGrantsTableId`, `profileGrantsTableName`, `profilePermissionsTableId`, `profilePermissionsTableName`, `profileTemplatesTableId`, `profileTemplatesTableName`, `publicSchemaName`, `schemaId`, `tableId`, `tableName` +**Optional create fields (backend defaults):** `actorTableId`, `apiName`, `capabilitiesTableId`, `entityField`, `entityTableId`, `membershipProfilesTableId`, `membershipProfilesTableName`, `membershipsTableId`, `prefix`, `privateApiName`, `privateSchemaId`, `privateSchemaName`, `profileCapabilitiesTableId`, `profileCapabilitiesTableName`, `profileDefinitionGrantsTableId`, `profileDefinitionGrantsTableName`, `profileGrantsTableId`, `profileGrantsTableName`, `profileTemplatesTableId`, `profileTemplatesTableName`, `publicSchemaName`, `schemaId`, `tableId`, `tableName` ### `rate-limit-meters-module` @@ -2357,7 +2547,7 @@ CRUD operations for RateLimitMetersModule records. | `apiName` | String | | `checkRateLimitFunction` | String | | `databaseId` | UUID | -| `defaultPermissions` | String | +| `defaultCapabilities` | String | | `id` | UUID | | `prefix` | String | | `privateApiName` | String | @@ -2373,7 +2563,7 @@ CRUD operations for RateLimitMetersModule records. | `schemaId` | UUID | **Required create fields:** `databaseId` -**Optional create fields (backend defaults):** `apiName`, `checkRateLimitFunction`, `defaultPermissions`, `prefix`, `privateApiName`, `privateSchemaId`, `privateSchemaName`, `publicSchemaName`, `rateLimitOverridesTableId`, `rateLimitOverridesTableName`, `rateLimitStateTableId`, `rateLimitStateTableName`, `rateWindowLimitsTableId`, `rateWindowLimitsTableName`, `schemaId` +**Optional create fields (backend defaults):** `apiName`, `checkRateLimitFunction`, `defaultCapabilities`, `prefix`, `privateApiName`, `privateSchemaId`, `privateSchemaName`, `publicSchemaName`, `rateLimitOverridesTableId`, `rateLimitOverridesTableName`, `rateLimitStateTableId`, `rateLimitStateTableName`, `rateWindowLimitsTableId`, `rateWindowLimitsTableName`, `schemaId` ### `rate-limits-module` @@ -2504,7 +2694,7 @@ CRUD operations for ResourceModule records. |-------|------| | `apiName` | String | | `databaseId` | UUID | -| `defaultPermissions` | String | +| `defaultCapabilities` | String | | `entityField` | String | | `entityTableId` | UUID | | `id` | UUID | @@ -2540,7 +2730,7 @@ CRUD operations for ResourceModule records. | `scope` | String | **Required create fields:** `databaseId`, `scope` -**Optional create fields (backend defaults):** `apiName`, `defaultPermissions`, `entityField`, `entityTableId`, `installationStoreName`, `merkleStoreModuleId`, `namespaceModuleId`, `policies`, `prefix`, `privateApiName`, `privateSchemaId`, `privateSchemaName`, `provisions`, `publicSchemaName`, `requirementsStateViewName`, `resolvedRequirementsViewName`, `resourceBillingRollupFunction`, `resourceDefinitionsTableId`, `resourceDefinitionsTableName`, `resourceEventsTableId`, `resourceEventsTableName`, `resourceInstallationsTableId`, `resourceInstallationsTableName`, `resourceStatusChecksTableId`, `resourceStatusChecksTableName`, `resourceUsageLogTableId`, `resourceUsageLogTableName`, `resourceUsageSummaryTableId`, `resourceUsageSummaryTableName`, `resourcesTableId`, `resourcesTableName`, `rollupResourceUsageSummaryFunction`, `schemaId` +**Optional create fields (backend defaults):** `apiName`, `defaultCapabilities`, `entityField`, `entityTableId`, `installationStoreName`, `merkleStoreModuleId`, `namespaceModuleId`, `policies`, `prefix`, `privateApiName`, `privateSchemaId`, `privateSchemaName`, `provisions`, `publicSchemaName`, `requirementsStateViewName`, `resolvedRequirementsViewName`, `resourceBillingRollupFunction`, `resourceDefinitionsTableId`, `resourceDefinitionsTableName`, `resourceEventsTableId`, `resourceEventsTableName`, `resourceInstallationsTableId`, `resourceInstallationsTableName`, `resourceStatusChecksTableId`, `resourceStatusChecksTableName`, `resourceUsageLogTableId`, `resourceUsageLogTableName`, `resourceUsageSummaryTableId`, `resourceUsageSummaryTableName`, `resourcesTableId`, `resourcesTableName`, `rollupResourceUsageSummaryFunction`, `schemaId` ### `rls-module` @@ -2594,9 +2784,11 @@ CRUD operations for RouteModule records. | Field | Type | |-------|------| | `apiName` | String | +| `appLinksFunctionName` | String | | `catalogModuleId` | UUID | | `databaseId` | UUID | -| `defaultPermissions` | String | +| `deepLinkFunctionName` | String | +| `defaultCapabilities` | String | | `domainModuleId` | UUID | | `entityField` | String | | `entityTableId` | UUID | @@ -2619,7 +2811,33 @@ CRUD operations for RouteModule records. | `scope` | String | **Required create fields:** `databaseId`, `scope` -**Optional create fields (backend defaults):** `apiName`, `catalogModuleId`, `defaultPermissions`, `domainModuleId`, `entityField`, `entityTableId`, `hostnameBindingsTableId`, `hostnameBindingsTableName`, `policies`, `prefix`, `privateApiName`, `privateSchemaId`, `privateSchemaName`, `provisions`, `publicSchemaName`, `resolverFunctionName`, `routeBindingsTableId`, `routeBindingsTableName`, `routesTableId`, `routesTableName`, `schemaId` +**Optional create fields (backend defaults):** `apiName`, `appLinksFunctionName`, `catalogModuleId`, `deepLinkFunctionName`, `defaultCapabilities`, `domainModuleId`, `entityField`, `entityTableId`, `hostnameBindingsTableId`, `hostnameBindingsTableName`, `policies`, `prefix`, `privateApiName`, `privateSchemaId`, `privateSchemaName`, `provisions`, `publicSchemaName`, `resolverFunctionName`, `routeBindingsTableId`, `routeBindingsTableName`, `routesTableId`, `routesTableName`, `schemaId` + +### `scope-types-module` + +CRUD operations for ScopeTypesModule records. + +| Subcommand | Description | +|------------|-------------| +| `list` | List all scopeTypesModule records | +| `find-first` | Find first matching scopeTypesModule record | +| `get` | Get a scopeTypesModule by id | +| `create` | Create a new scopeTypesModule | +| `update` | Update an existing scopeTypesModule | +| `delete` | Delete a scopeTypesModule | + +**Fields:** + +| Field | Type | +|-------|------| +| `databaseId` | UUID | +| `id` | UUID | +| `privateSchemaName` | String | +| `schemaId` | UUID | +| `scopeTypesTableId` | UUID | + +**Required create fields:** `databaseId` +**Optional create fields (backend defaults):** `privateSchemaName`, `schemaId`, `scopeTypesTableId` ### `secure-table-provision` @@ -2732,7 +2950,7 @@ CRUD operations for SiteSurfaceModule records. | `apiName` | String | | `catalogModuleId` | UUID | | `databaseId` | UUID | -| `defaultPermissions` | String | +| `defaultCapabilities` | String | | `entityField` | String | | `entityTableId` | UUID | | `id` | UUID | @@ -2763,7 +2981,7 @@ CRUD operations for SiteSurfaceModule records. | `sitesTableName` | String | **Required create fields:** `databaseId`, `scope` -**Optional create fields (backend defaults):** `apiName`, `catalogModuleId`, `defaultPermissions`, `entityField`, `entityTableId`, `policies`, `prefix`, `privateApiName`, `privateSchemaId`, `privateSchemaName`, `provisions`, `publicSchemaName`, `schemaId`, `siteAppLinksTableId`, `siteAppLinksTableName`, `siteDeepLinksTableId`, `siteDeepLinksTableName`, `siteErrorPagesTableId`, `siteErrorPagesTableName`, `siteMetadataTableId`, `siteMetadataTableName`, `siteModulesTableId`, `siteModulesTableName`, `siteThemesTableId`, `siteThemesTableName`, `siteWebConfigTableId`, `siteWebConfigTableName`, `sitesTableId`, `sitesTableName` +**Optional create fields (backend defaults):** `apiName`, `catalogModuleId`, `defaultCapabilities`, `entityField`, `entityTableId`, `policies`, `prefix`, `privateApiName`, `privateSchemaId`, `privateSchemaName`, `provisions`, `publicSchemaName`, `schemaId`, `siteAppLinksTableId`, `siteAppLinksTableName`, `siteDeepLinksTableId`, `siteDeepLinksTableName`, `siteErrorPagesTableId`, `siteErrorPagesTableName`, `siteMetadataTableId`, `siteMetadataTableName`, `siteModulesTableId`, `siteModulesTableName`, `siteThemesTableId`, `siteThemesTableName`, `siteWebConfigTableId`, `siteWebConfigTableName`, `sitesTableId`, `sitesTableName` ### `storage-log-module` @@ -2831,8 +3049,8 @@ CRUD operations for StorageModule records. | `catalogModuleId` | UUID | | `confirmUploadDelay` | Interval | | `databaseId` | UUID | +| `defaultCapabilities` | String | | `defaultMaxFileSize` | BigInt | -| `defaultPermissions` | String | | `downloadUrlExpirySeconds` | Int | | `endpoint` | String | | `entityField` | String | @@ -2866,7 +3084,7 @@ CRUD operations for StorageModule records. | `uploadUrlExpirySeconds` | Int | **Required create fields:** `databaseId`, `scope` -**Optional create fields (backend defaults):** `allowedOrigins`, `apiName`, `bucketsTableId`, `bucketsTableName`, `cacheTtlSeconds`, `catalogModuleId`, `confirmUploadDelay`, `defaultMaxFileSize`, `defaultPermissions`, `downloadUrlExpirySeconds`, `endpoint`, `entityField`, `entityTableId`, `fileEventsTableId`, `filesTableId`, `filesTableName`, `hasAuditLog`, `hasConfirmUpload`, `hasContentHash`, `hasCustomKeys`, `hasPathShares`, `hasVersioning`, `maxBulkFiles`, `maxBulkTotalSize`, `maxFilenameLength`, `pathSharesTableId`, `policies`, `prefix`, `privateApiName`, `privateSchemaId`, `privateSchemaName`, `provider`, `provisions`, `publicSchemaName`, `publicUrlPrefix`, `restrictReads`, `schemaId`, `uploadUrlExpirySeconds` +**Optional create fields (backend defaults):** `allowedOrigins`, `apiName`, `bucketsTableId`, `bucketsTableName`, `cacheTtlSeconds`, `catalogModuleId`, `confirmUploadDelay`, `defaultCapabilities`, `defaultMaxFileSize`, `downloadUrlExpirySeconds`, `endpoint`, `entityField`, `entityTableId`, `fileEventsTableId`, `filesTableId`, `filesTableName`, `hasAuditLog`, `hasConfirmUpload`, `hasContentHash`, `hasCustomKeys`, `hasPathShares`, `hasVersioning`, `maxBulkFiles`, `maxBulkTotalSize`, `maxFilenameLength`, `pathSharesTableId`, `policies`, `prefix`, `privateApiName`, `privateSchemaId`, `privateSchemaName`, `provider`, `provisions`, `publicSchemaName`, `publicUrlPrefix`, `restrictReads`, `schemaId`, `uploadUrlExpirySeconds` ### `transfer-log-module` @@ -3014,6 +3232,34 @@ CRUD operations for UserSettingsModule records. **Required create fields:** `databaseId` **Optional create fields (backend defaults):** `apiName`, `ownerTableId`, `schemaId`, `tableId`, `tableName` +### `user-settings-security-module` + +CRUD operations for UserSettingsSecurityModule records. + +| Subcommand | Description | +|------------|-------------| +| `list` | List all userSettingsSecurityModule records | +| `find-first` | Find first matching userSettingsSecurityModule record | +| `get` | Get a userSettingsSecurityModule by id | +| `create` | Create a new userSettingsSecurityModule | +| `update` | Update an existing userSettingsSecurityModule | +| `delete` | Delete a userSettingsSecurityModule | + +**Fields:** + +| Field | Type | +|-------|------| +| `apiName` | String | +| `databaseId` | UUID | +| `id` | UUID | +| `ownerTableId` | UUID | +| `schemaId` | UUID | +| `tableId` | UUID | +| `tableName` | String | + +**Required create fields:** `databaseId` +**Optional create fields (backend defaults):** `apiName`, `ownerTableId`, `schemaId`, `tableId`, `tableName` + ### `user-state-module` CRUD operations for UserStateModule records. @@ -3157,7 +3403,7 @@ CRUD operations for WebhookModule records. |-------|------| | `apiName` | String | | `databaseId` | UUID | -| `defaultPermissions` | String | +| `defaultCapabilities` | String | | `entityField` | String | | `entityTableId` | UUID | | `functionInvocationModuleId` | UUID | @@ -3180,38 +3426,10 @@ CRUD operations for WebhookModule records. | `webhookEventsTableName` | String | **Required create fields:** `databaseId`, `scope` -**Optional create fields (backend defaults):** `apiName`, `defaultPermissions`, `entityField`, `entityTableId`, `functionInvocationModuleId`, `functionModuleId`, `infraSecretsModuleId`, `namespaceModuleId`, `policies`, `prefix`, `privateApiName`, `privateSchemaId`, `privateSchemaName`, `provisions`, `publicSchemaName`, `schemaId`, `webhookEndpointsTableId`, `webhookEndpointsTableName`, `webhookEventsTableId`, `webhookEventsTableName` +**Optional create fields (backend defaults):** `apiName`, `defaultCapabilities`, `entityField`, `entityTableId`, `functionInvocationModuleId`, `functionModuleId`, `infraSecretsModuleId`, `namespaceModuleId`, `policies`, `prefix`, `privateApiName`, `privateSchemaId`, `privateSchemaName`, `provisions`, `publicSchemaName`, `schemaId`, `webhookEndpointsTableId`, `webhookEndpointsTableName`, `webhookEventsTableId`, `webhookEventsTableName` ## Custom Operations -### `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. - -- **Type:** query -- **Arguments:** - - | Argument | Type | - |----------|------| - | `--databaseId` | UUID | - | `--fieldName` | String | - | `--tableId` | UUID | - -### `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. - -- **Type:** query -- **Arguments:** - - | Argument | Type | - |----------|------| - | `--databaseId` | UUID | - | `--defaultSchemaId` | UUID | - | `--schemaName` | String | - | `--tableMap` | JSON | - | `--tableName` | String | - ### `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 function_module is installed, 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. @@ -3256,135 +3474,6 @@ and lifecycle settings. | `--input.bucketKey` | String (required) | | `--input.ownerId` | UUID | -### `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. - -- **Type:** mutation -- **Arguments:** - - | Argument | Type | - |----------|------| - | `--input.clientMutationId` | String | - | `--input.databaseId` | UUID | - | `--input.definition` | JSON | - | `--input.tableId` | UUID | - -### `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. - -- **Type:** mutation -- **Arguments:** - - | Argument | Type | - |----------|------| - | `--input.clientMutationId` | String | - | `--input.databaseId` | UUID | - | `--input.definition` | JSON | - | `--input.tableId` | UUID | - -### `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. - -- **Type:** mutation -- **Arguments:** - - | Argument | Type | - |----------|------| - | `--input.clientMutationId` | String | - | `--input.databaseId` | UUID | - | `--input.definition` | JSON | - | `--input.tableId` | UUID | - -### `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). - -- **Type:** mutation -- **Arguments:** - - | Argument | Type | - |----------|------| - | `--input.apiRequired` | Boolean | - | `--input.clientMutationId` | String | - | `--input.createIndex` | Boolean | - | `--input.databaseId` | UUID | - | `--input.deleteAction` | String | - | `--input.exposeInApi` | Boolean | - | `--input.fieldName` | String | - | `--input.grants` | JSON | - | `--input.isRequired` | Boolean | - | `--input.junctionSchemaId` | UUID | - | `--input.junctionTableId` | UUID | - | `--input.junctionTableName` | String | - | `--input.nodes` | JSON | - | `--input.policies` | JSON | - | `--input.relationType` | String | - | `--input.sourceFieldName` | String | - | `--input.sourceTableId` | UUID | - | `--input.targetFieldName` | String | - | `--input.targetTableId` | UUID | - | `--input.useCompositeKey` | Boolean | - -### `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. - -- **Type:** mutation -- **Arguments:** - - | Argument | Type | - |----------|------| - | `--input.clientMutationId` | String | - | `--input.databaseId` | UUID | - | `--input.name` | String | - | `--input.operator` | String | - | `--input.paramName` | String | - | `--input.sourceFieldId` | UUID | - | `--input.sourceTableId` | UUID | - | `--input.targetFieldId` | UUID | - | `--input.targetTableId` | UUID | - -### `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). - -- **Type:** mutation -- **Arguments:** - - | Argument | Type | - |----------|------| - | `--input.clientMutationId` | String | - | `--input.databaseId` | UUID | - | `--input.description` | String | - | `--input.fields` | JSON | - | `--input.fullTextSearches` | JSON | - | `--input.grants` | JSON | - | `--input.indexes` | JSON | - | `--input.nodes` | JSON | - | `--input.policies` | JSON | - | `--input.schemaId` | UUID | - | `--input.tableId` | UUID | - | `--input.tableName` | String | - | `--input.uniqueConstraints` | JSON | - | `--input.useRls` | Boolean | - -### `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. - -- **Type:** mutation -- **Arguments:** - - | Argument | Type | - |----------|------| - | `--input.clientMutationId` | String | - | `--input.databaseId` | UUID | - | `--input.definition` | JSON | - | `--input.tableId` | UUID | - ## Output All commands output JSON to stdout. Pipe to `jq` for formatting: diff --git a/sdk/constructive-cli/src/modules/cli/commands.ts b/sdk/constructive-cli/src/modules/cli/commands.ts index bbf4123da1..74bf6fba72 100644 --- a/sdk/constructive-cli/src/modules/cli/commands.ts +++ b/sdk/constructive-cli/src/modules/cli/commands.ts @@ -14,12 +14,15 @@ import billingProviderModuleCmd from './commands/billing-provider-module'; import blueprintCmd from './commands/blueprint'; import blueprintConstructionCmd from './commands/blueprint-construction'; import blueprintTemplateCmd from './commands/blueprint-template'; +import capabilitiesModuleCmd from './commands/capabilities-module'; import catalogModuleCmd from './commands/catalog-module'; import computeLogModuleCmd from './commands/compute-log-module'; import configSecretsUserModuleCmd from './commands/config-secrets-user-module'; import connectedAccountsModuleCmd from './commands/connected-accounts-module'; +import contentPresetModuleCmd from './commands/content-preset-module'; import cryptoAddressesModuleCmd from './commands/crypto-addresses-module'; import cryptoAuthModuleCmd from './commands/crypto-auth-module'; +import dataCapabilitiesFieldCmd from './commands/data-capabilities-field'; import databaseProvisionModuleCmd from './commands/database-provision-module'; import databaseSettingsModuleCmd from './commands/database-settings-module'; import dbPoolConfigCmd from './commands/db-pool-config'; @@ -30,9 +33,11 @@ import defaultIdsModuleCmd from './commands/default-ids-module'; import denormalizedTableFieldCmd from './commands/denormalized-table-field'; import devicesModuleCmd from './commands/devices-module'; import domainModuleCmd from './commands/domain-module'; +import emailSenderModuleCmd from './commands/email-sender-module'; import emailsModuleCmd from './commands/emails-module'; import entityTypeProvisionCmd from './commands/entity-type-provision'; import eventsModuleCmd from './commands/events-module'; +import fileRefFieldCmd from './commands/file-ref-field'; import functionDeploymentModuleCmd from './commands/function-deployment-module'; import functionInvocationModuleCmd from './commands/function-invocation-module'; import functionModuleCmd from './commands/function-module'; @@ -54,8 +59,8 @@ import membershipsModuleCmd from './commands/memberships-module'; import merkleStoreModuleCmd from './commands/merkle-store-module'; import namespaceModuleCmd from './commands/namespace-module'; import notificationsModuleCmd from './commands/notifications-module'; +import oauthRequestsModuleCmd from './commands/oauth-requests-module'; import pagesModuleCmd from './commands/pages-module'; -import permissionsModuleCmd from './commands/permissions-module'; import phoneNumbersModuleCmd from './commands/phone-numbers-module'; import plansModuleCmd from './commands/plans-module'; import principalAuthModuleCmd from './commands/principal-auth-module'; @@ -67,6 +72,7 @@ import relationProvisionCmd from './commands/relation-provision'; import resourceModuleCmd from './commands/resource-module'; import rlsModuleCmd from './commands/rls-module'; import routeModuleCmd from './commands/route-module'; +import scopeTypesModuleCmd from './commands/scope-types-module'; import secureTableProvisionCmd from './commands/secure-table-provision'; import sessionSecretsModuleCmd from './commands/session-secrets-module'; import sessionsModuleCmd from './commands/sessions-module'; @@ -77,23 +83,15 @@ import transferLogModuleCmd from './commands/transfer-log-module'; import userAuthModuleCmd from './commands/user-auth-module'; import userCredentialsModuleCmd from './commands/user-credentials-module'; import userSettingsModuleCmd from './commands/user-settings-module'; +import userSettingsSecurityModuleCmd from './commands/user-settings-security-module'; import userStateModuleCmd from './commands/user-state-module'; import usersModuleCmd from './commands/users-module'; import webauthnAuthModuleCmd from './commands/webauthn-auth-module'; import webauthnCredentialsModuleCmd from './commands/webauthn-credentials-module'; import webhookModuleCmd from './commands/webhook-module'; -import resolveBlueprintFieldCmd from './commands/resolve-blueprint-field'; -import resolveBlueprintTableCmd from './commands/resolve-blueprint-table'; import constructBlueprintCmd from './commands/construct-blueprint'; import copyTemplateToBlueprintCmd from './commands/copy-template-to-blueprint'; import provisionBucketCmd from './commands/provision-bucket'; -import provisionCheckConstraintCmd from './commands/provision-check-constraint'; -import provisionFullTextSearchCmd from './commands/provision-full-text-search'; -import provisionIndexCmd from './commands/provision-index'; -import provisionRelationCmd from './commands/provision-relation'; -import provisionSpatialRelationCmd from './commands/provision-spatial-relation'; -import provisionTableCmd from './commands/provision-table'; -import provisionUniqueConstraintCmd from './commands/provision-unique-constraint'; const createCommandMap: () => Record< string, ( @@ -112,12 +110,15 @@ const createCommandMap: () => Record< blueprint: blueprintCmd, 'blueprint-construction': blueprintConstructionCmd, 'blueprint-template': blueprintTemplateCmd, + 'capabilities-module': capabilitiesModuleCmd, 'catalog-module': catalogModuleCmd, 'compute-log-module': computeLogModuleCmd, 'config-secrets-user-module': configSecretsUserModuleCmd, 'connected-accounts-module': connectedAccountsModuleCmd, + 'content-preset-module': contentPresetModuleCmd, 'crypto-addresses-module': cryptoAddressesModuleCmd, 'crypto-auth-module': cryptoAuthModuleCmd, + 'data-capabilities-field': dataCapabilitiesFieldCmd, 'database-provision-module': databaseProvisionModuleCmd, 'database-settings-module': databaseSettingsModuleCmd, 'db-pool-config': dbPoolConfigCmd, @@ -128,9 +129,11 @@ const createCommandMap: () => Record< 'denormalized-table-field': denormalizedTableFieldCmd, 'devices-module': devicesModuleCmd, 'domain-module': domainModuleCmd, + 'email-sender-module': emailSenderModuleCmd, 'emails-module': emailsModuleCmd, 'entity-type-provision': entityTypeProvisionCmd, 'events-module': eventsModuleCmd, + 'file-ref-field': fileRefFieldCmd, 'function-deployment-module': functionDeploymentModuleCmd, 'function-invocation-module': functionInvocationModuleCmd, 'function-module': functionModuleCmd, @@ -152,8 +155,8 @@ const createCommandMap: () => Record< 'merkle-store-module': merkleStoreModuleCmd, 'namespace-module': namespaceModuleCmd, 'notifications-module': notificationsModuleCmd, + 'oauth-requests-module': oauthRequestsModuleCmd, 'pages-module': pagesModuleCmd, - 'permissions-module': permissionsModuleCmd, 'phone-numbers-module': phoneNumbersModuleCmd, 'plans-module': plansModuleCmd, 'principal-auth-module': principalAuthModuleCmd, @@ -165,6 +168,7 @@ const createCommandMap: () => Record< 'resource-module': resourceModuleCmd, 'rls-module': rlsModuleCmd, 'route-module': routeModuleCmd, + 'scope-types-module': scopeTypesModuleCmd, 'secure-table-provision': secureTableProvisionCmd, 'session-secrets-module': sessionSecretsModuleCmd, 'sessions-module': sessionsModuleCmd, @@ -175,26 +179,18 @@ const createCommandMap: () => Record< 'user-auth-module': userAuthModuleCmd, 'user-credentials-module': userCredentialsModuleCmd, 'user-settings-module': userSettingsModuleCmd, + 'user-settings-security-module': userSettingsSecurityModuleCmd, 'user-state-module': userStateModuleCmd, 'users-module': usersModuleCmd, 'webauthn-auth-module': webauthnAuthModuleCmd, 'webauthn-credentials-module': webauthnCredentialsModuleCmd, 'webhook-module': webhookModuleCmd, - 'resolve-blueprint-field': resolveBlueprintFieldCmd, - 'resolve-blueprint-table': resolveBlueprintTableCmd, 'construct-blueprint': constructBlueprintCmd, 'copy-template-to-blueprint': copyTemplateToBlueprintCmd, 'provision-bucket': provisionBucketCmd, - 'provision-check-constraint': provisionCheckConstraintCmd, - 'provision-full-text-search': provisionFullTextSearchCmd, - 'provision-index': provisionIndexCmd, - 'provision-relation': provisionRelationCmd, - 'provision-spatial-relation': provisionSpatialRelationCmd, - 'provision-table': provisionTableCmd, - 'provision-unique-constraint': provisionUniqueConstraintCmd, }); const usage = - "\ncsdk \n\nCommands:\n context Manage API contexts\n auth Manage authentication\n agent-module agentModule CRUD operations\n api-surface-module apiSurfaceModule CRUD operations\n app-module appModule CRUD operations\n billing-module billingModule CRUD operations\n billing-provider-module billingProviderModule CRUD operations\n blueprint blueprint CRUD operations\n blueprint-construction blueprintConstruction CRUD operations\n blueprint-template blueprintTemplate CRUD operations\n catalog-module catalogModule CRUD operations\n compute-log-module computeLogModule CRUD operations\n config-secrets-user-module configSecretsUserModule CRUD operations\n connected-accounts-module connectedAccountsModule CRUD operations\n crypto-addresses-module cryptoAddressesModule CRUD operations\n crypto-auth-module cryptoAuthModule CRUD operations\n database-provision-module databaseProvisionModule CRUD operations\n database-settings-module databaseSettingsModule CRUD operations\n db-pool-config dbPoolConfig CRUD operations\n db-pool dbPool CRUD operations\n db-preset-module dbPresetModule CRUD operations\n db-usage-module dbUsageModule CRUD operations\n default-ids-module defaultIdsModule CRUD operations\n denormalized-table-field denormalizedTableField CRUD operations\n devices-module devicesModule CRUD operations\n domain-module domainModule CRUD operations\n emails-module emailsModule CRUD operations\n entity-type-provision entityTypeProvision CRUD operations\n events-module eventsModule CRUD operations\n function-deployment-module functionDeploymentModule CRUD operations\n function-invocation-module functionInvocationModule CRUD operations\n function-module functionModule CRUD operations\n graph-execution-module graphExecutionModule CRUD operations\n graph-module graphModule CRUD operations\n hierarchy-module hierarchyModule CRUD operations\n http-route-module httpRouteModule CRUD operations\n i-18-n-module i18NModule CRUD operations\n identity-providers-module identityProvidersModule CRUD operations\n inference-log-module inferenceLogModule CRUD operations\n infra-config-module infraConfigModule CRUD operations\n infra-secrets-module infraSecretsModule CRUD operations\n integration-providers-module integrationProvidersModule CRUD operations\n internal-secrets-module internalSecretsModule CRUD operations\n invites-module invitesModule CRUD operations\n limits-module limitsModule CRUD operations\n membership-types-module membershipTypesModule CRUD operations\n memberships-module membershipsModule CRUD operations\n merkle-store-module merkleStoreModule CRUD operations\n namespace-module namespaceModule CRUD operations\n notifications-module notificationsModule CRUD operations\n pages-module pagesModule CRUD operations\n permissions-module permissionsModule CRUD operations\n phone-numbers-module phoneNumbersModule CRUD operations\n plans-module plansModule CRUD operations\n principal-auth-module principalAuthModule CRUD operations\n profiles-module profilesModule CRUD operations\n rate-limit-meters-module rateLimitMetersModule CRUD operations\n rate-limits-module rateLimitsModule CRUD operations\n realtime-module realtimeModule CRUD operations\n relation-provision relationProvision CRUD operations\n resource-module resourceModule CRUD operations\n rls-module rlsModule CRUD operations\n route-module routeModule CRUD operations\n secure-table-provision secureTableProvision CRUD operations\n session-secrets-module sessionSecretsModule CRUD operations\n sessions-module sessionsModule CRUD operations\n site-surface-module siteSurfaceModule CRUD operations\n storage-log-module storageLogModule CRUD operations\n storage-module storageModule CRUD operations\n transfer-log-module transferLogModule CRUD operations\n user-auth-module userAuthModule CRUD operations\n user-credentials-module userCredentialsModule CRUD operations\n user-settings-module userSettingsModule CRUD operations\n user-state-module userStateModule CRUD operations\n users-module usersModule CRUD operations\n webauthn-auth-module webauthnAuthModule CRUD operations\n webauthn-credentials-module webauthnCredentialsModule CRUD operations\n webhook-module webhookModule CRUD operations\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 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 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 function_module is installed, 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 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-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 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-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 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 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 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-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\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 agent-module agentModule CRUD operations\n api-surface-module apiSurfaceModule CRUD operations\n app-module appModule CRUD operations\n billing-module billingModule CRUD operations\n billing-provider-module billingProviderModule CRUD operations\n blueprint blueprint CRUD operations\n blueprint-construction blueprintConstruction CRUD operations\n blueprint-template blueprintTemplate CRUD operations\n capabilities-module capabilitiesModule CRUD operations\n catalog-module catalogModule CRUD operations\n compute-log-module computeLogModule CRUD operations\n config-secrets-user-module configSecretsUserModule CRUD operations\n connected-accounts-module connectedAccountsModule CRUD operations\n content-preset-module contentPresetModule CRUD operations\n crypto-addresses-module cryptoAddressesModule CRUD operations\n crypto-auth-module cryptoAuthModule CRUD operations\n data-capabilities-field dataCapabilitiesField CRUD operations\n database-provision-module databaseProvisionModule CRUD operations\n database-settings-module databaseSettingsModule CRUD operations\n db-pool-config dbPoolConfig CRUD operations\n db-pool dbPool CRUD operations\n db-preset-module dbPresetModule CRUD operations\n db-usage-module dbUsageModule CRUD operations\n default-ids-module defaultIdsModule CRUD operations\n denormalized-table-field denormalizedTableField CRUD operations\n devices-module devicesModule CRUD operations\n domain-module domainModule CRUD operations\n email-sender-module emailSenderModule CRUD operations\n emails-module emailsModule CRUD operations\n entity-type-provision entityTypeProvision CRUD operations\n events-module eventsModule CRUD operations\n file-ref-field fileRefField CRUD operations\n function-deployment-module functionDeploymentModule CRUD operations\n function-invocation-module functionInvocationModule CRUD operations\n function-module functionModule CRUD operations\n graph-execution-module graphExecutionModule CRUD operations\n graph-module graphModule CRUD operations\n hierarchy-module hierarchyModule CRUD operations\n http-route-module httpRouteModule CRUD operations\n i-18-n-module i18NModule CRUD operations\n identity-providers-module identityProvidersModule CRUD operations\n inference-log-module inferenceLogModule CRUD operations\n infra-config-module infraConfigModule CRUD operations\n infra-secrets-module infraSecretsModule CRUD operations\n integration-providers-module integrationProvidersModule CRUD operations\n internal-secrets-module internalSecretsModule CRUD operations\n invites-module invitesModule CRUD operations\n limits-module limitsModule CRUD operations\n membership-types-module membershipTypesModule CRUD operations\n memberships-module membershipsModule CRUD operations\n merkle-store-module merkleStoreModule CRUD operations\n namespace-module namespaceModule CRUD operations\n notifications-module notificationsModule CRUD operations\n oauth-requests-module oauthRequestsModule CRUD operations\n pages-module pagesModule CRUD operations\n phone-numbers-module phoneNumbersModule CRUD operations\n plans-module plansModule CRUD operations\n principal-auth-module principalAuthModule CRUD operations\n profiles-module profilesModule CRUD operations\n rate-limit-meters-module rateLimitMetersModule CRUD operations\n rate-limits-module rateLimitsModule CRUD operations\n realtime-module realtimeModule CRUD operations\n relation-provision relationProvision CRUD operations\n resource-module resourceModule CRUD operations\n rls-module rlsModule CRUD operations\n route-module routeModule CRUD operations\n scope-types-module scopeTypesModule CRUD operations\n secure-table-provision secureTableProvision CRUD operations\n session-secrets-module sessionSecretsModule CRUD operations\n sessions-module sessionsModule CRUD operations\n site-surface-module siteSurfaceModule CRUD operations\n storage-log-module storageLogModule CRUD operations\n storage-module storageModule CRUD operations\n transfer-log-module transferLogModule CRUD operations\n user-auth-module userAuthModule CRUD operations\n user-credentials-module userCredentialsModule CRUD operations\n user-settings-module userSettingsModule CRUD operations\n user-settings-security-module userSettingsSecurityModule CRUD operations\n user-state-module userStateModule CRUD operations\n users-module usersModule CRUD operations\n webauthn-auth-module webauthnAuthModule CRUD operations\n webauthn-credentials-module webauthnCredentialsModule CRUD operations\n webhook-module webhookModule CRUD operations\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 function_module is installed, 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 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-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/modules/cli/commands/agent-module.ts b/sdk/constructive-cli/src/modules/cli/commands/agent-module.ts index e3dbf7f498..7e0f768a1c 100644 --- a/sdk/constructive-cli/src/modules/cli/commands/agent-module.ts +++ b/sdk/constructive-cli/src/modules/cli/commands/agent-module.ts @@ -20,7 +20,7 @@ const fieldSchema: FieldSchema = { agentTableName: 'string', apiName: 'string', databaseId: 'uuid', - defaultPermissions: 'string', + defaultCapabilities: 'string', entityField: 'string', entityTableId: 'uuid', hasAgents: 'boolean', @@ -108,7 +108,7 @@ async function handleList(argv: Partial>, _prompter: Inq agentTableName: true, apiName: true, databaseId: true, - defaultPermissions: true, + defaultCapabilities: true, entityField: true, entityTableId: true, hasAgents: true, @@ -164,7 +164,7 @@ async function handleFindFirst(argv: Partial>, _prompter agentTableName: true, apiName: true, databaseId: true, - defaultPermissions: true, + defaultCapabilities: true, entityField: true, entityTableId: true, hasAgents: true, @@ -232,7 +232,7 @@ async function handleGet(argv: Partial>, prompter: Inqui agentTableName: true, apiName: true, databaseId: true, - defaultPermissions: true, + defaultCapabilities: true, entityField: true, entityTableId: true, hasAgents: true, @@ -308,8 +308,8 @@ async function handleCreate(argv: Partial>, prompter: In }, { type: 'text', - name: 'defaultPermissions', - message: 'defaultPermissions', + name: 'defaultCapabilities', + message: 'defaultCapabilities', required: false, skipPrompt: true, }, @@ -536,7 +536,7 @@ async function handleCreate(argv: Partial>, prompter: In agentTableName: cleanedData.agentTableName, apiName: cleanedData.apiName, databaseId: cleanedData.databaseId, - defaultPermissions: cleanedData.defaultPermissions, + defaultCapabilities: cleanedData.defaultCapabilities, entityField: cleanedData.entityField, entityTableId: cleanedData.entityTableId, hasAgents: cleanedData.hasAgents, @@ -573,7 +573,7 @@ async function handleCreate(argv: Partial>, prompter: In agentTableName: true, apiName: true, databaseId: true, - defaultPermissions: true, + defaultCapabilities: true, entityField: true, entityTableId: true, hasAgents: true, @@ -655,8 +655,8 @@ async function handleUpdate(argv: Partial>, prompter: In }, { type: 'text', - name: 'defaultPermissions', - message: 'defaultPermissions', + name: 'defaultCapabilities', + message: 'defaultCapabilities', required: false, skipPrompt: true, }, @@ -883,7 +883,7 @@ async function handleUpdate(argv: Partial>, prompter: In agentTableName: cleanedData.agentTableName, apiName: cleanedData.apiName, databaseId: cleanedData.databaseId, - defaultPermissions: cleanedData.defaultPermissions, + defaultCapabilities: cleanedData.defaultCapabilities, entityField: cleanedData.entityField, entityTableId: cleanedData.entityTableId, hasAgents: cleanedData.hasAgents, @@ -920,7 +920,7 @@ async function handleUpdate(argv: Partial>, prompter: In agentTableName: true, apiName: true, databaseId: true, - defaultPermissions: true, + defaultCapabilities: true, entityField: true, entityTableId: true, hasAgents: true, diff --git a/sdk/constructive-cli/src/modules/cli/commands/api-surface-module.ts b/sdk/constructive-cli/src/modules/cli/commands/api-surface-module.ts index bd99893432..70ec8dafba 100644 --- a/sdk/constructive-cli/src/modules/cli/commands/api-surface-module.ts +++ b/sdk/constructive-cli/src/modules/cli/commands/api-surface-module.ts @@ -27,7 +27,7 @@ const fieldSchema: FieldSchema = { corsSettingsTableId: 'uuid', corsSettingsTableName: 'string', databaseId: 'uuid', - defaultPermissions: 'string', + defaultCapabilities: 'string', entityField: 'string', entityTableId: 'uuid', id: 'uuid', @@ -101,7 +101,7 @@ async function handleList(argv: Partial>, _prompter: Inq corsSettingsTableId: true, corsSettingsTableName: true, databaseId: true, - defaultPermissions: true, + defaultCapabilities: true, entityField: true, entityTableId: true, id: true, @@ -143,7 +143,7 @@ async function handleFindFirst(argv: Partial>, _prompter corsSettingsTableId: true, corsSettingsTableName: true, databaseId: true, - defaultPermissions: true, + defaultCapabilities: true, entityField: true, entityTableId: true, id: true, @@ -197,7 +197,7 @@ async function handleGet(argv: Partial>, prompter: Inqui corsSettingsTableId: true, corsSettingsTableName: true, databaseId: true, - defaultPermissions: true, + defaultCapabilities: true, entityField: true, entityTableId: true, id: true, @@ -301,8 +301,8 @@ async function handleCreate(argv: Partial>, prompter: In }, { type: 'text', - name: 'defaultPermissions', - message: 'defaultPermissions', + name: 'defaultCapabilities', + message: 'defaultCapabilities', required: false, skipPrompt: true, }, @@ -389,7 +389,7 @@ async function handleCreate(argv: Partial>, prompter: In corsSettingsTableId: cleanedData.corsSettingsTableId, corsSettingsTableName: cleanedData.corsSettingsTableName, databaseId: cleanedData.databaseId, - defaultPermissions: cleanedData.defaultPermissions, + defaultCapabilities: cleanedData.defaultCapabilities, entityField: cleanedData.entityField, entityTableId: cleanedData.entityTableId, policies: cleanedData.policies, @@ -412,7 +412,7 @@ async function handleCreate(argv: Partial>, prompter: In corsSettingsTableId: true, corsSettingsTableName: true, databaseId: true, - defaultPermissions: true, + defaultCapabilities: true, entityField: true, entityTableId: true, id: true, @@ -522,8 +522,8 @@ async function handleUpdate(argv: Partial>, prompter: In }, { type: 'text', - name: 'defaultPermissions', - message: 'defaultPermissions', + name: 'defaultCapabilities', + message: 'defaultCapabilities', required: false, skipPrompt: true, }, @@ -610,7 +610,7 @@ async function handleUpdate(argv: Partial>, prompter: In corsSettingsTableId: cleanedData.corsSettingsTableId, corsSettingsTableName: cleanedData.corsSettingsTableName, databaseId: cleanedData.databaseId, - defaultPermissions: cleanedData.defaultPermissions, + defaultCapabilities: cleanedData.defaultCapabilities, entityField: cleanedData.entityField, entityTableId: cleanedData.entityTableId, policies: cleanedData.policies, @@ -633,7 +633,7 @@ async function handleUpdate(argv: Partial>, prompter: In corsSettingsTableId: true, corsSettingsTableName: true, databaseId: true, - defaultPermissions: true, + defaultCapabilities: true, entityField: true, entityTableId: true, id: true, diff --git a/sdk/constructive-cli/src/modules/cli/commands/app-module.ts b/sdk/constructive-cli/src/modules/cli/commands/app-module.ts index 3cd6f51a23..5f42f57b5f 100644 --- a/sdk/constructive-cli/src/modules/cli/commands/app-module.ts +++ b/sdk/constructive-cli/src/modules/cli/commands/app-module.ts @@ -23,7 +23,7 @@ const fieldSchema: FieldSchema = { appsTableName: 'string', catalogModuleId: 'uuid', databaseId: 'uuid', - defaultPermissions: 'string', + defaultCapabilities: 'string', entityField: 'string', entityTableId: 'uuid', id: 'uuid', @@ -95,7 +95,7 @@ async function handleList(argv: Partial>, _prompter: Inq appsTableName: true, catalogModuleId: true, databaseId: true, - defaultPermissions: true, + defaultCapabilities: true, entityField: true, entityTableId: true, id: true, @@ -135,7 +135,7 @@ async function handleFindFirst(argv: Partial>, _prompter appsTableName: true, catalogModuleId: true, databaseId: true, - defaultPermissions: true, + defaultCapabilities: true, entityField: true, entityTableId: true, id: true, @@ -187,7 +187,7 @@ async function handleGet(argv: Partial>, prompter: Inqui appsTableName: true, catalogModuleId: true, databaseId: true, - defaultPermissions: true, + defaultCapabilities: true, entityField: true, entityTableId: true, id: true, @@ -265,8 +265,8 @@ async function handleCreate(argv: Partial>, prompter: In }, { type: 'text', - name: 'defaultPermissions', - message: 'defaultPermissions', + name: 'defaultCapabilities', + message: 'defaultCapabilities', required: false, skipPrompt: true, }, @@ -360,7 +360,7 @@ async function handleCreate(argv: Partial>, prompter: In appsTableName: cleanedData.appsTableName, catalogModuleId: cleanedData.catalogModuleId, databaseId: cleanedData.databaseId, - defaultPermissions: cleanedData.defaultPermissions, + defaultCapabilities: cleanedData.defaultCapabilities, entityField: cleanedData.entityField, entityTableId: cleanedData.entityTableId, policies: cleanedData.policies, @@ -381,7 +381,7 @@ async function handleCreate(argv: Partial>, prompter: In appsTableName: true, catalogModuleId: true, databaseId: true, - defaultPermissions: true, + defaultCapabilities: true, entityField: true, entityTableId: true, id: true, @@ -465,8 +465,8 @@ async function handleUpdate(argv: Partial>, prompter: In }, { type: 'text', - name: 'defaultPermissions', - message: 'defaultPermissions', + name: 'defaultCapabilities', + message: 'defaultCapabilities', required: false, skipPrompt: true, }, @@ -563,7 +563,7 @@ async function handleUpdate(argv: Partial>, prompter: In appsTableName: cleanedData.appsTableName, catalogModuleId: cleanedData.catalogModuleId, databaseId: cleanedData.databaseId, - defaultPermissions: cleanedData.defaultPermissions, + defaultCapabilities: cleanedData.defaultCapabilities, entityField: cleanedData.entityField, entityTableId: cleanedData.entityTableId, policies: cleanedData.policies, @@ -584,7 +584,7 @@ async function handleUpdate(argv: Partial>, prompter: In appsTableName: true, catalogModuleId: true, databaseId: true, - defaultPermissions: true, + defaultCapabilities: true, entityField: true, entityTableId: true, id: true, diff --git a/sdk/constructive-cli/src/modules/cli/commands/billing-module.ts b/sdk/constructive-cli/src/modules/cli/commands/billing-module.ts index 8a83093f5c..817b921796 100644 --- a/sdk/constructive-cli/src/modules/cli/commands/billing-module.ts +++ b/sdk/constructive-cli/src/modules/cli/commands/billing-module.ts @@ -20,8 +20,8 @@ const fieldSchema: FieldSchema = { balancesTableId: 'uuid', balancesTableName: 'string', databaseId: 'uuid', + defaultCapabilities: 'string', defaultMeterCatalog: 'json', - defaultPermissions: 'string', id: 'uuid', ledgerTableId: 'uuid', ledgerTableName: 'string', @@ -100,8 +100,8 @@ async function handleList(argv: Partial>, _prompter: Inq balancesTableId: true, balancesTableName: true, databaseId: true, + defaultCapabilities: true, defaultMeterCatalog: true, - defaultPermissions: true, id: true, ledgerTableId: true, ledgerTableName: true, @@ -148,8 +148,8 @@ async function handleFindFirst(argv: Partial>, _prompter balancesTableId: true, balancesTableName: true, databaseId: true, + defaultCapabilities: true, defaultMeterCatalog: true, - defaultPermissions: true, id: true, ledgerTableId: true, ledgerTableName: true, @@ -208,8 +208,8 @@ async function handleGet(argv: Partial>, prompter: Inqui balancesTableId: true, balancesTableName: true, databaseId: true, + defaultCapabilities: true, defaultMeterCatalog: true, - defaultPermissions: true, id: true, ledgerTableId: true, ledgerTableName: true, @@ -275,16 +275,16 @@ async function handleCreate(argv: Partial>, prompter: In required: true, }, { - type: 'json', - name: 'defaultMeterCatalog', - message: 'defaultMeterCatalog', + type: 'text', + name: 'defaultCapabilities', + message: 'defaultCapabilities', required: false, skipPrompt: true, }, { - type: 'text', - name: 'defaultPermissions', - message: 'defaultPermissions', + type: 'json', + name: 'defaultMeterCatalog', + message: 'defaultMeterCatalog', required: false, skipPrompt: true, }, @@ -449,8 +449,8 @@ async function handleCreate(argv: Partial>, prompter: In balancesTableId: cleanedData.balancesTableId, balancesTableName: cleanedData.balancesTableName, databaseId: cleanedData.databaseId, + defaultCapabilities: cleanedData.defaultCapabilities, defaultMeterCatalog: cleanedData.defaultMeterCatalog, - defaultPermissions: cleanedData.defaultPermissions, ledgerTableId: cleanedData.ledgerTableId, ledgerTableName: cleanedData.ledgerTableName, meterCreditsTableId: cleanedData.meterCreditsTableId, @@ -478,8 +478,8 @@ async function handleCreate(argv: Partial>, prompter: In balancesTableId: true, balancesTableName: true, databaseId: true, + defaultCapabilities: true, defaultMeterCatalog: true, - defaultPermissions: true, id: true, ledgerTableId: true, ledgerTableName: true, @@ -551,16 +551,16 @@ async function handleUpdate(argv: Partial>, prompter: In required: false, }, { - type: 'json', - name: 'defaultMeterCatalog', - message: 'defaultMeterCatalog', + type: 'text', + name: 'defaultCapabilities', + message: 'defaultCapabilities', required: false, skipPrompt: true, }, { - type: 'text', - name: 'defaultPermissions', - message: 'defaultPermissions', + type: 'json', + name: 'defaultMeterCatalog', + message: 'defaultMeterCatalog', required: false, skipPrompt: true, }, @@ -725,8 +725,8 @@ async function handleUpdate(argv: Partial>, prompter: In balancesTableId: cleanedData.balancesTableId, balancesTableName: cleanedData.balancesTableName, databaseId: cleanedData.databaseId, + defaultCapabilities: cleanedData.defaultCapabilities, defaultMeterCatalog: cleanedData.defaultMeterCatalog, - defaultPermissions: cleanedData.defaultPermissions, ledgerTableId: cleanedData.ledgerTableId, ledgerTableName: cleanedData.ledgerTableName, meterCreditsTableId: cleanedData.meterCreditsTableId, @@ -754,8 +754,8 @@ async function handleUpdate(argv: Partial>, prompter: In balancesTableId: true, balancesTableName: true, databaseId: true, + defaultCapabilities: true, defaultMeterCatalog: true, - defaultPermissions: true, id: true, ledgerTableId: true, ledgerTableName: true, diff --git a/sdk/constructive-cli/src/modules/cli/commands/billing-provider-module.ts b/sdk/constructive-cli/src/modules/cli/commands/billing-provider-module.ts index 74e9a0d3f1..4a0a7c67c6 100644 --- a/sdk/constructive-cli/src/modules/cli/commands/billing-provider-module.ts +++ b/sdk/constructive-cli/src/modules/cli/commands/billing-provider-module.ts @@ -19,16 +19,22 @@ const fieldSchema: FieldSchema = { apiName: 'string', billingCustomersTableId: 'uuid', billingCustomersTableName: 'string', + billingInvoicesTableId: 'uuid', + billingInvoicesTableName: 'string', billingPricesTableId: 'uuid', billingPricesTableName: 'string', billingProductsTableId: 'uuid', billingProductsTableName: 'string', + billingRefundsTableId: 'uuid', + billingRefundsTableName: 'string', billingSubscriptionsTableId: 'uuid', billingSubscriptionsTableName: 'string', billingWebhookEventsTableId: 'uuid', billingWebhookEventsTableName: 'string', databaseId: 'uuid', id: 'uuid', + listPendingUsageSyncFunction: 'string', + markUsageSyncedFunction: 'string', prefix: 'string', pricesTableId: 'uuid', privateApiName: 'string', @@ -36,8 +42,10 @@ const fieldSchema: FieldSchema = { processBillingEventFunction: 'string', productsTableId: 'uuid', provider: 'string', + recordRefundFunction: 'string', schemaId: 'uuid', subscriptionsTableId: 'uuid', + upsertInvoiceFunction: 'string', }; const usage = '\nbilling-provider-module \n\nCommands:\n list List billingProviderModule records\n find-first Find first matching billingProviderModule record\n get Get a billingProviderModule by ID\n create Create a new billingProviderModule\n update Update an existing billingProviderModule\n delete Delete a billingProviderModule\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'; @@ -93,16 +101,22 @@ async function handleList(argv: Partial>, _prompter: Inq apiName: true, billingCustomersTableId: true, billingCustomersTableName: true, + billingInvoicesTableId: true, + billingInvoicesTableName: true, billingPricesTableId: true, billingPricesTableName: true, billingProductsTableId: true, billingProductsTableName: true, + billingRefundsTableId: true, + billingRefundsTableName: true, billingSubscriptionsTableId: true, billingSubscriptionsTableName: true, billingWebhookEventsTableId: true, billingWebhookEventsTableName: true, databaseId: true, id: true, + listPendingUsageSyncFunction: true, + markUsageSyncedFunction: true, prefix: true, pricesTableId: true, privateApiName: true, @@ -110,8 +124,10 @@ async function handleList(argv: Partial>, _prompter: Inq processBillingEventFunction: true, productsTableId: true, provider: true, + recordRefundFunction: true, schemaId: true, subscriptionsTableId: true, + upsertInvoiceFunction: true, }; const findManyArgs = parseFindManyArgs< FindManyArgs< @@ -139,16 +155,22 @@ async function handleFindFirst(argv: Partial>, _prompter apiName: true, billingCustomersTableId: true, billingCustomersTableName: true, + billingInvoicesTableId: true, + billingInvoicesTableName: true, billingPricesTableId: true, billingPricesTableName: true, billingProductsTableId: true, billingProductsTableName: true, + billingRefundsTableId: true, + billingRefundsTableName: true, billingSubscriptionsTableId: true, billingSubscriptionsTableName: true, billingWebhookEventsTableId: true, billingWebhookEventsTableName: true, databaseId: true, id: true, + listPendingUsageSyncFunction: true, + markUsageSyncedFunction: true, prefix: true, pricesTableId: true, privateApiName: true, @@ -156,8 +178,10 @@ async function handleFindFirst(argv: Partial>, _prompter processBillingEventFunction: true, productsTableId: true, provider: true, + recordRefundFunction: true, schemaId: true, subscriptionsTableId: true, + upsertInvoiceFunction: true, }; const findFirstArgs = parseFindFirstArgs< FindFirstArgs< @@ -197,16 +221,22 @@ async function handleGet(argv: Partial>, prompter: Inqui apiName: true, billingCustomersTableId: true, billingCustomersTableName: true, + billingInvoicesTableId: true, + billingInvoicesTableName: true, billingPricesTableId: true, billingPricesTableName: true, billingProductsTableId: true, billingProductsTableName: true, + billingRefundsTableId: true, + billingRefundsTableName: true, billingSubscriptionsTableId: true, billingSubscriptionsTableName: true, billingWebhookEventsTableId: true, billingWebhookEventsTableName: true, databaseId: true, id: true, + listPendingUsageSyncFunction: true, + markUsageSyncedFunction: true, prefix: true, pricesTableId: true, privateApiName: true, @@ -214,8 +244,10 @@ async function handleGet(argv: Partial>, prompter: Inqui processBillingEventFunction: true, productsTableId: true, provider: true, + recordRefundFunction: true, schemaId: true, subscriptionsTableId: true, + upsertInvoiceFunction: true, }, }) .execute(); @@ -252,6 +284,20 @@ async function handleCreate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'text', + name: 'billingInvoicesTableId', + message: 'billingInvoicesTableId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'billingInvoicesTableName', + message: 'billingInvoicesTableName', + required: false, + skipPrompt: true, + }, { type: 'text', name: 'billingPricesTableId', @@ -280,6 +326,20 @@ async function handleCreate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'text', + name: 'billingRefundsTableId', + message: 'billingRefundsTableId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'billingRefundsTableName', + message: 'billingRefundsTableName', + required: false, + skipPrompt: true, + }, { type: 'text', name: 'billingSubscriptionsTableId', @@ -314,6 +374,20 @@ async function handleCreate(argv: Partial>, prompter: In message: 'databaseId', required: true, }, + { + type: 'text', + name: 'listPendingUsageSyncFunction', + message: 'listPendingUsageSyncFunction', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'markUsageSyncedFunction', + message: 'markUsageSyncedFunction', + required: false, + skipPrompt: true, + }, { type: 'text', name: 'prefix', @@ -363,6 +437,13 @@ async function handleCreate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'text', + name: 'recordRefundFunction', + message: 'recordRefundFunction', + required: false, + skipPrompt: true, + }, { type: 'text', name: 'schemaId', @@ -377,6 +458,13 @@ async function handleCreate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'text', + name: 'upsertInvoiceFunction', + message: 'upsertInvoiceFunction', + required: false, + skipPrompt: true, + }, ]); const answers = coerceAnswers(rawAnswers, fieldSchema); const cleanedData = stripUndefined( @@ -390,15 +478,21 @@ async function handleCreate(argv: Partial>, prompter: In apiName: cleanedData.apiName, billingCustomersTableId: cleanedData.billingCustomersTableId, billingCustomersTableName: cleanedData.billingCustomersTableName, + billingInvoicesTableId: cleanedData.billingInvoicesTableId, + billingInvoicesTableName: cleanedData.billingInvoicesTableName, billingPricesTableId: cleanedData.billingPricesTableId, billingPricesTableName: cleanedData.billingPricesTableName, billingProductsTableId: cleanedData.billingProductsTableId, billingProductsTableName: cleanedData.billingProductsTableName, + billingRefundsTableId: cleanedData.billingRefundsTableId, + billingRefundsTableName: cleanedData.billingRefundsTableName, billingSubscriptionsTableId: cleanedData.billingSubscriptionsTableId, billingSubscriptionsTableName: cleanedData.billingSubscriptionsTableName, billingWebhookEventsTableId: cleanedData.billingWebhookEventsTableId, billingWebhookEventsTableName: cleanedData.billingWebhookEventsTableName, databaseId: cleanedData.databaseId, + listPendingUsageSyncFunction: cleanedData.listPendingUsageSyncFunction, + markUsageSyncedFunction: cleanedData.markUsageSyncedFunction, prefix: cleanedData.prefix, pricesTableId: cleanedData.pricesTableId, privateApiName: cleanedData.privateApiName, @@ -406,23 +500,31 @@ async function handleCreate(argv: Partial>, prompter: In processBillingEventFunction: cleanedData.processBillingEventFunction, productsTableId: cleanedData.productsTableId, provider: cleanedData.provider, + recordRefundFunction: cleanedData.recordRefundFunction, schemaId: cleanedData.schemaId, subscriptionsTableId: cleanedData.subscriptionsTableId, + upsertInvoiceFunction: cleanedData.upsertInvoiceFunction, }, select: { apiName: true, billingCustomersTableId: true, billingCustomersTableName: true, + billingInvoicesTableId: true, + billingInvoicesTableName: true, billingPricesTableId: true, billingPricesTableName: true, billingProductsTableId: true, billingProductsTableName: true, + billingRefundsTableId: true, + billingRefundsTableName: true, billingSubscriptionsTableId: true, billingSubscriptionsTableName: true, billingWebhookEventsTableId: true, billingWebhookEventsTableName: true, databaseId: true, id: true, + listPendingUsageSyncFunction: true, + markUsageSyncedFunction: true, prefix: true, pricesTableId: true, privateApiName: true, @@ -430,8 +532,10 @@ async function handleCreate(argv: Partial>, prompter: In processBillingEventFunction: true, productsTableId: true, provider: true, + recordRefundFunction: true, schemaId: true, subscriptionsTableId: true, + upsertInvoiceFunction: true, }, }) .execute(); @@ -474,6 +578,20 @@ async function handleUpdate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'text', + name: 'billingInvoicesTableId', + message: 'billingInvoicesTableId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'billingInvoicesTableName', + message: 'billingInvoicesTableName', + required: false, + skipPrompt: true, + }, { type: 'text', name: 'billingPricesTableId', @@ -502,6 +620,20 @@ async function handleUpdate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'text', + name: 'billingRefundsTableId', + message: 'billingRefundsTableId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'billingRefundsTableName', + message: 'billingRefundsTableName', + required: false, + skipPrompt: true, + }, { type: 'text', name: 'billingSubscriptionsTableId', @@ -536,6 +668,20 @@ async function handleUpdate(argv: Partial>, prompter: In message: 'databaseId', required: false, }, + { + type: 'text', + name: 'listPendingUsageSyncFunction', + message: 'listPendingUsageSyncFunction', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'markUsageSyncedFunction', + message: 'markUsageSyncedFunction', + required: false, + skipPrompt: true, + }, { type: 'text', name: 'prefix', @@ -585,6 +731,13 @@ async function handleUpdate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'text', + name: 'recordRefundFunction', + message: 'recordRefundFunction', + required: false, + skipPrompt: true, + }, { type: 'text', name: 'schemaId', @@ -599,6 +752,13 @@ async function handleUpdate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'text', + name: 'upsertInvoiceFunction', + message: 'upsertInvoiceFunction', + required: false, + skipPrompt: true, + }, ]); const answers = coerceAnswers(rawAnswers, fieldSchema); const cleanedData = stripUndefined(answers, fieldSchema) as BillingProviderModulePatch; @@ -612,15 +772,21 @@ async function handleUpdate(argv: Partial>, prompter: In apiName: cleanedData.apiName, billingCustomersTableId: cleanedData.billingCustomersTableId, billingCustomersTableName: cleanedData.billingCustomersTableName, + billingInvoicesTableId: cleanedData.billingInvoicesTableId, + billingInvoicesTableName: cleanedData.billingInvoicesTableName, billingPricesTableId: cleanedData.billingPricesTableId, billingPricesTableName: cleanedData.billingPricesTableName, billingProductsTableId: cleanedData.billingProductsTableId, billingProductsTableName: cleanedData.billingProductsTableName, + billingRefundsTableId: cleanedData.billingRefundsTableId, + billingRefundsTableName: cleanedData.billingRefundsTableName, billingSubscriptionsTableId: cleanedData.billingSubscriptionsTableId, billingSubscriptionsTableName: cleanedData.billingSubscriptionsTableName, billingWebhookEventsTableId: cleanedData.billingWebhookEventsTableId, billingWebhookEventsTableName: cleanedData.billingWebhookEventsTableName, databaseId: cleanedData.databaseId, + listPendingUsageSyncFunction: cleanedData.listPendingUsageSyncFunction, + markUsageSyncedFunction: cleanedData.markUsageSyncedFunction, prefix: cleanedData.prefix, pricesTableId: cleanedData.pricesTableId, privateApiName: cleanedData.privateApiName, @@ -628,23 +794,31 @@ async function handleUpdate(argv: Partial>, prompter: In processBillingEventFunction: cleanedData.processBillingEventFunction, productsTableId: cleanedData.productsTableId, provider: cleanedData.provider, + recordRefundFunction: cleanedData.recordRefundFunction, schemaId: cleanedData.schemaId, subscriptionsTableId: cleanedData.subscriptionsTableId, + upsertInvoiceFunction: cleanedData.upsertInvoiceFunction, }, select: { apiName: true, billingCustomersTableId: true, billingCustomersTableName: true, + billingInvoicesTableId: true, + billingInvoicesTableName: true, billingPricesTableId: true, billingPricesTableName: true, billingProductsTableId: true, billingProductsTableName: true, + billingRefundsTableId: true, + billingRefundsTableName: true, billingSubscriptionsTableId: true, billingSubscriptionsTableName: true, billingWebhookEventsTableId: true, billingWebhookEventsTableName: true, databaseId: true, id: true, + listPendingUsageSyncFunction: true, + markUsageSyncedFunction: true, prefix: true, pricesTableId: true, privateApiName: true, @@ -652,8 +826,10 @@ async function handleUpdate(argv: Partial>, prompter: In processBillingEventFunction: true, productsTableId: true, provider: true, + recordRefundFunction: true, schemaId: true, subscriptionsTableId: true, + upsertInvoiceFunction: true, }, }) .execute(); diff --git a/sdk/constructive-cli/src/modules/cli/commands/permissions-module.ts b/sdk/constructive-cli/src/modules/cli/commands/capabilities-module.ts similarity index 88% rename from sdk/constructive-cli/src/modules/cli/commands/permissions-module.ts rename to sdk/constructive-cli/src/modules/cli/commands/capabilities-module.ts index 9b76cbab39..586b9828d7 100644 --- a/sdk/constructive-cli/src/modules/cli/commands/permissions-module.ts +++ b/sdk/constructive-cli/src/modules/cli/commands/capabilities-module.ts @@ -1,5 +1,5 @@ /** - * CLI commands for PermissionsModule + * CLI commands for CapabilitiesModule * @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 { - CreatePermissionsModuleInput, - PermissionsModulePatch, - PermissionsModuleSelect, - PermissionsModuleFilter, - PermissionsModuleOrderBy, + CreateCapabilitiesModuleInput, + CapabilitiesModulePatch, + CapabilitiesModuleSelect, + CapabilitiesModuleFilter, + CapabilitiesModuleOrderBy, } from '../../orm/input-types'; import type { FindManyArgs, FindFirstArgs } from '../../orm/select-types'; const fieldSchema: FieldSchema = { @@ -40,7 +40,7 @@ const fieldSchema: FieldSchema = { tableName: 'string', }; const usage = - '\npermissions-module \n\nCommands:\n list List permissionsModule records\n find-first Find first matching permissionsModule record\n get Get a permissionsModule by ID\n create Create a new permissionsModule\n update Update an existing permissionsModule\n delete Delete a permissionsModule\n\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'; + '\ncapabilities-module \n\nCommands:\n list List capabilitiesModule records\n find-first Find first matching capabilitiesModule record\n get Get a capabilitiesModule by ID\n create Create a new capabilitiesModule\n update Update an existing capabilitiesModule\n delete Delete a capabilitiesModule\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, @@ -114,12 +114,16 @@ async function handleList(argv: Partial>, _prompter: Inq tableName: true, }; const findManyArgs = parseFindManyArgs< - FindManyArgs & { - select: PermissionsModuleSelect; + FindManyArgs< + CapabilitiesModuleSelect, + CapabilitiesModuleFilter, + CapabilitiesModuleOrderBy + > & { + select: CapabilitiesModuleSelect; } >(argv, defaultSelect); const client = getClient(); - const result = await client.permissionsModule.findMany(findManyArgs).execute(); + const result = await client.capabilitiesModule.findMany(findManyArgs).execute(); console.log(JSON.stringify(result, null, 2)); } catch (error) { console.error('Failed to list records.'); @@ -156,12 +160,16 @@ async function handleFindFirst(argv: Partial>, _prompter tableName: true, }; const findFirstArgs = parseFindFirstArgs< - FindFirstArgs & { - select: PermissionsModuleSelect; + FindFirstArgs< + CapabilitiesModuleSelect, + CapabilitiesModuleFilter, + CapabilitiesModuleOrderBy + > & { + select: CapabilitiesModuleSelect; } >(argv, defaultSelect); const client = getClient(); - const result = await client.permissionsModule.findFirst(findFirstArgs).execute(); + const result = await client.capabilitiesModule.findFirst(findFirstArgs).execute(); console.log(JSON.stringify(result, null, 2)); } catch (error) { console.error('Failed to find record.'); @@ -182,7 +190,7 @@ async function handleGet(argv: Partial>, prompter: Inqui }, ]); const client = getClient(); - const result = await client.permissionsModule + const result = await client.capabilitiesModule .findOne({ id: answers.id as string, select: { @@ -373,9 +381,9 @@ async function handleCreate(argv: Partial>, prompter: In const cleanedData = stripUndefined( answers, fieldSchema - ) as CreatePermissionsModuleInput['permissionsModule']; + ) as CreateCapabilitiesModuleInput['capabilitiesModule']; const client = getClient(); - const result = await client.permissionsModule + const result = await client.capabilitiesModule .create({ data: { actorTableId: cleanedData.actorTableId, @@ -591,9 +599,9 @@ async function handleUpdate(argv: Partial>, prompter: In }, ]); const answers = coerceAnswers(rawAnswers, fieldSchema); - const cleanedData = stripUndefined(answers, fieldSchema) as PermissionsModulePatch; + const cleanedData = stripUndefined(answers, fieldSchema) as CapabilitiesModulePatch; const client = getClient(); - const result = await client.permissionsModule + const result = await client.capabilitiesModule .update({ where: { id: answers.id as string, @@ -668,7 +676,7 @@ async function handleDelete(argv: Partial>, prompter: In ]); const answers = coerceAnswers(rawAnswers, fieldSchema); const client = getClient(); - const result = await client.permissionsModule + const result = await client.capabilitiesModule .delete({ where: { id: answers.id as string, diff --git a/sdk/constructive-cli/src/modules/cli/commands/catalog-module.ts b/sdk/constructive-cli/src/modules/cli/commands/catalog-module.ts index 07a555cbc9..582b53abff 100644 --- a/sdk/constructive-cli/src/modules/cli/commands/catalog-module.ts +++ b/sdk/constructive-cli/src/modules/cli/commands/catalog-module.ts @@ -21,10 +21,12 @@ const fieldSchema: FieldSchema = { apisTableName: 'string', appsTableId: 'uuid', appsTableName: 'string', + bindingsTableId: 'uuid', + bindingsTableName: 'string', bucketsTableId: 'uuid', bucketsTableName: 'string', databaseId: 'uuid', - defaultPermissions: 'string', + defaultCapabilities: 'string', domainsTableId: 'uuid', domainsTableName: 'string', entityTableId: 'uuid', @@ -112,10 +114,12 @@ async function handleList(argv: Partial>, _prompter: Inq apisTableName: true, appsTableId: true, appsTableName: true, + bindingsTableId: true, + bindingsTableName: true, bucketsTableId: true, bucketsTableName: true, databaseId: true, - defaultPermissions: true, + defaultCapabilities: true, domainsTableId: true, domainsTableName: true, entityTableId: true, @@ -171,10 +175,12 @@ async function handleFindFirst(argv: Partial>, _prompter apisTableName: true, appsTableId: true, appsTableName: true, + bindingsTableId: true, + bindingsTableName: true, bucketsTableId: true, bucketsTableName: true, databaseId: true, - defaultPermissions: true, + defaultCapabilities: true, domainsTableId: true, domainsTableName: true, entityTableId: true, @@ -242,10 +248,12 @@ async function handleGet(argv: Partial>, prompter: Inqui apisTableName: true, appsTableId: true, appsTableName: true, + bindingsTableId: true, + bindingsTableName: true, bucketsTableId: true, bucketsTableName: true, databaseId: true, - defaultPermissions: true, + defaultCapabilities: true, domainsTableId: true, domainsTableName: true, entityTableId: true, @@ -326,6 +334,20 @@ async function handleCreate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'text', + name: 'bindingsTableId', + message: 'bindingsTableId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'bindingsTableName', + message: 'bindingsTableName', + required: false, + skipPrompt: true, + }, { type: 'text', name: 'bucketsTableId', @@ -348,8 +370,8 @@ async function handleCreate(argv: Partial>, prompter: In }, { type: 'text', - name: 'defaultPermissions', - message: 'defaultPermissions', + name: 'defaultCapabilities', + message: 'defaultCapabilities', required: false, skipPrompt: true, }, @@ -570,10 +592,12 @@ async function handleCreate(argv: Partial>, prompter: In apisTableName: cleanedData.apisTableName, appsTableId: cleanedData.appsTableId, appsTableName: cleanedData.appsTableName, + bindingsTableId: cleanedData.bindingsTableId, + bindingsTableName: cleanedData.bindingsTableName, bucketsTableId: cleanedData.bucketsTableId, bucketsTableName: cleanedData.bucketsTableName, databaseId: cleanedData.databaseId, - defaultPermissions: cleanedData.defaultPermissions, + defaultCapabilities: cleanedData.defaultCapabilities, domainsTableId: cleanedData.domainsTableId, domainsTableName: cleanedData.domainsTableName, entityTableId: cleanedData.entityTableId, @@ -610,10 +634,12 @@ async function handleCreate(argv: Partial>, prompter: In apisTableName: true, appsTableId: true, appsTableName: true, + bindingsTableId: true, + bindingsTableName: true, bucketsTableId: true, bucketsTableName: true, databaseId: true, - defaultPermissions: true, + defaultCapabilities: true, domainsTableId: true, domainsTableName: true, entityTableId: true, @@ -700,6 +726,20 @@ async function handleUpdate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'text', + name: 'bindingsTableId', + message: 'bindingsTableId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'bindingsTableName', + message: 'bindingsTableName', + required: false, + skipPrompt: true, + }, { type: 'text', name: 'bucketsTableId', @@ -722,8 +762,8 @@ async function handleUpdate(argv: Partial>, prompter: In }, { type: 'text', - name: 'defaultPermissions', - message: 'defaultPermissions', + name: 'defaultCapabilities', + message: 'defaultCapabilities', required: false, skipPrompt: true, }, @@ -944,10 +984,12 @@ async function handleUpdate(argv: Partial>, prompter: In apisTableName: cleanedData.apisTableName, appsTableId: cleanedData.appsTableId, appsTableName: cleanedData.appsTableName, + bindingsTableId: cleanedData.bindingsTableId, + bindingsTableName: cleanedData.bindingsTableName, bucketsTableId: cleanedData.bucketsTableId, bucketsTableName: cleanedData.bucketsTableName, databaseId: cleanedData.databaseId, - defaultPermissions: cleanedData.defaultPermissions, + defaultCapabilities: cleanedData.defaultCapabilities, domainsTableId: cleanedData.domainsTableId, domainsTableName: cleanedData.domainsTableName, entityTableId: cleanedData.entityTableId, @@ -984,10 +1026,12 @@ async function handleUpdate(argv: Partial>, prompter: In apisTableName: true, appsTableId: true, appsTableName: true, + bindingsTableId: true, + bindingsTableName: true, bucketsTableId: true, bucketsTableName: true, databaseId: true, - defaultPermissions: true, + defaultCapabilities: true, domainsTableId: true, domainsTableName: true, entityTableId: true, diff --git a/sdk/constructive-cli/src/modules/cli/commands/content-preset-module.ts b/sdk/constructive-cli/src/modules/cli/commands/content-preset-module.ts new file mode 100644 index 0000000000..34ef9fccf8 --- /dev/null +++ b/sdk/constructive-cli/src/modules/cli/commands/content-preset-module.ts @@ -0,0 +1,565 @@ +/** + * CLI commands for ContentPresetModule + * @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 { + CreateContentPresetModuleInput, + ContentPresetModulePatch, + ContentPresetModuleSelect, + ContentPresetModuleFilter, + ContentPresetModuleOrderBy, +} from '../../orm/input-types'; +import type { FindManyArgs, FindFirstArgs } from '../../orm/select-types'; +const fieldSchema: FieldSchema = { + apiName: 'string', + contentPresetsTableId: 'uuid', + createdAt: 'string', + databaseId: 'uuid', + entityTableId: 'uuid', + id: 'uuid', + merkleStoreModuleId: 'uuid', + policies: 'json', + prefix: 'string', + privateApiName: 'string', + privateSchemaId: 'uuid', + privateSchemaName: 'string', + provisions: 'json', + publicSchemaId: 'uuid', + publicSchemaName: 'string', + scope: 'string', + storeName: 'string', +}; +const usage = + '\ncontent-preset-module \n\nCommands:\n list List contentPresetModule records\n find-first Find first matching contentPresetModule record\n get Get a contentPresetModule by ID\n create Create a new contentPresetModule\n update Update an existing contentPresetModule\n delete Delete a contentPresetModule\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 = { + apiName: true, + contentPresetsTableId: true, + createdAt: true, + databaseId: true, + entityTableId: true, + id: true, + merkleStoreModuleId: true, + policies: true, + prefix: true, + privateApiName: true, + privateSchemaId: true, + privateSchemaName: true, + provisions: true, + publicSchemaId: true, + publicSchemaName: true, + scope: true, + storeName: true, + }; + const findManyArgs = parseFindManyArgs< + FindManyArgs< + ContentPresetModuleSelect, + ContentPresetModuleFilter, + ContentPresetModuleOrderBy + > & { + select: ContentPresetModuleSelect; + } + >(argv, defaultSelect); + const client = getClient(); + const result = await client.contentPresetModule.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 = { + apiName: true, + contentPresetsTableId: true, + createdAt: true, + databaseId: true, + entityTableId: true, + id: true, + merkleStoreModuleId: true, + policies: true, + prefix: true, + privateApiName: true, + privateSchemaId: true, + privateSchemaName: true, + provisions: true, + publicSchemaId: true, + publicSchemaName: true, + scope: true, + storeName: true, + }; + const findFirstArgs = parseFindFirstArgs< + FindFirstArgs< + ContentPresetModuleSelect, + ContentPresetModuleFilter, + ContentPresetModuleOrderBy + > & { + select: ContentPresetModuleSelect; + } + >(argv, defaultSelect); + const client = getClient(); + const result = await client.contentPresetModule.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.contentPresetModule + .findOne({ + id: answers.id as string, + select: { + apiName: true, + contentPresetsTableId: true, + createdAt: true, + databaseId: true, + entityTableId: true, + id: true, + merkleStoreModuleId: true, + policies: true, + prefix: true, + privateApiName: true, + privateSchemaId: true, + privateSchemaName: true, + provisions: true, + publicSchemaId: true, + publicSchemaName: true, + scope: true, + storeName: 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: 'apiName', + message: 'apiName', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'contentPresetsTableId', + message: 'contentPresetsTableId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'databaseId', + message: 'databaseId', + required: true, + }, + { + type: 'text', + name: 'entityTableId', + message: 'entityTableId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'merkleStoreModuleId', + message: 'merkleStoreModuleId', + required: true, + }, + { + type: 'json', + name: 'policies', + message: 'policies', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'prefix', + message: 'prefix', + required: true, + }, + { + type: 'text', + name: 'privateApiName', + message: 'privateApiName', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'privateSchemaId', + message: 'privateSchemaId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'privateSchemaName', + message: 'privateSchemaName', + required: false, + skipPrompt: true, + }, + { + type: 'json', + name: 'provisions', + message: 'provisions', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'publicSchemaId', + message: 'publicSchemaId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'publicSchemaName', + message: 'publicSchemaName', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'scope', + message: 'scope', + required: true, + }, + { + type: 'text', + name: 'storeName', + message: 'storeName', + required: true, + }, + ]); + const answers = coerceAnswers(rawAnswers, fieldSchema); + const cleanedData = stripUndefined( + answers, + fieldSchema + ) as CreateContentPresetModuleInput['contentPresetModule']; + const client = getClient(); + const result = await client.contentPresetModule + .create({ + data: { + apiName: cleanedData.apiName, + contentPresetsTableId: cleanedData.contentPresetsTableId, + databaseId: cleanedData.databaseId, + entityTableId: cleanedData.entityTableId, + merkleStoreModuleId: cleanedData.merkleStoreModuleId, + policies: cleanedData.policies, + prefix: cleanedData.prefix, + privateApiName: cleanedData.privateApiName, + privateSchemaId: cleanedData.privateSchemaId, + privateSchemaName: cleanedData.privateSchemaName, + provisions: cleanedData.provisions, + publicSchemaId: cleanedData.publicSchemaId, + publicSchemaName: cleanedData.publicSchemaName, + scope: cleanedData.scope, + storeName: cleanedData.storeName, + }, + select: { + apiName: true, + contentPresetsTableId: true, + createdAt: true, + databaseId: true, + entityTableId: true, + id: true, + merkleStoreModuleId: true, + policies: true, + prefix: true, + privateApiName: true, + privateSchemaId: true, + privateSchemaName: true, + provisions: true, + publicSchemaId: true, + publicSchemaName: true, + scope: true, + storeName: 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: 'apiName', + message: 'apiName', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'contentPresetsTableId', + message: 'contentPresetsTableId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'databaseId', + message: 'databaseId', + required: false, + }, + { + type: 'text', + name: 'entityTableId', + message: 'entityTableId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'merkleStoreModuleId', + message: 'merkleStoreModuleId', + required: false, + }, + { + type: 'json', + name: 'policies', + message: 'policies', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'prefix', + message: 'prefix', + required: false, + }, + { + type: 'text', + name: 'privateApiName', + message: 'privateApiName', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'privateSchemaId', + message: 'privateSchemaId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'privateSchemaName', + message: 'privateSchemaName', + required: false, + skipPrompt: true, + }, + { + type: 'json', + name: 'provisions', + message: 'provisions', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'publicSchemaId', + message: 'publicSchemaId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'publicSchemaName', + message: 'publicSchemaName', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'scope', + message: 'scope', + required: false, + }, + { + type: 'text', + name: 'storeName', + message: 'storeName', + required: false, + }, + ]); + const answers = coerceAnswers(rawAnswers, fieldSchema); + const cleanedData = stripUndefined(answers, fieldSchema) as ContentPresetModulePatch; + const client = getClient(); + const result = await client.contentPresetModule + .update({ + where: { + id: answers.id as string, + }, + data: { + apiName: cleanedData.apiName, + contentPresetsTableId: cleanedData.contentPresetsTableId, + databaseId: cleanedData.databaseId, + entityTableId: cleanedData.entityTableId, + merkleStoreModuleId: cleanedData.merkleStoreModuleId, + policies: cleanedData.policies, + prefix: cleanedData.prefix, + privateApiName: cleanedData.privateApiName, + privateSchemaId: cleanedData.privateSchemaId, + privateSchemaName: cleanedData.privateSchemaName, + provisions: cleanedData.provisions, + publicSchemaId: cleanedData.publicSchemaId, + publicSchemaName: cleanedData.publicSchemaName, + scope: cleanedData.scope, + storeName: cleanedData.storeName, + }, + select: { + apiName: true, + contentPresetsTableId: true, + createdAt: true, + databaseId: true, + entityTableId: true, + id: true, + merkleStoreModuleId: true, + policies: true, + prefix: true, + privateApiName: true, + privateSchemaId: true, + privateSchemaName: true, + provisions: true, + publicSchemaId: true, + publicSchemaName: true, + scope: true, + storeName: 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.contentPresetModule + .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/modules/cli/commands/data-capabilities-field.ts b/sdk/constructive-cli/src/modules/cli/commands/data-capabilities-field.ts new file mode 100644 index 0000000000..70118b3c12 --- /dev/null +++ b/sdk/constructive-cli/src/modules/cli/commands/data-capabilities-field.ts @@ -0,0 +1,451 @@ +/** + * CLI commands for DataCapabilitiesField + * @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 { + CreateDataCapabilitiesFieldInput, + DataCapabilitiesFieldPatch, + DataCapabilitiesFieldSelect, + DataCapabilitiesFieldFilter, + DataCapabilitiesFieldOrderBy, +} from '../../orm/input-types'; +import type { FindManyArgs, FindFirstArgs } from '../../orm/select-types'; +const fieldSchema: FieldSchema = { + capabilitiesModuleId: 'uuid', + databaseId: 'uuid', + fieldId: 'uuid', + fromFieldId: 'uuid', + id: 'uuid', + mappingFieldId: 'uuid', + mappingKeyFieldId: 'uuid', + mappingTableId: 'uuid', + mode: 'string', + subsetGuard: 'boolean', + tableId: 'uuid', +}; +const usage = + '\ndata-capabilities-field \n\nCommands:\n list List dataCapabilitiesField records\n find-first Find first matching dataCapabilitiesField record\n get Get a dataCapabilitiesField by ID\n create Create a new dataCapabilitiesField\n update Update an existing dataCapabilitiesField\n delete Delete a dataCapabilitiesField\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 = { + capabilitiesModuleId: true, + databaseId: true, + fieldId: true, + fromFieldId: true, + id: true, + mappingFieldId: true, + mappingKeyFieldId: true, + mappingTableId: true, + mode: true, + subsetGuard: true, + tableId: true, + }; + const findManyArgs = parseFindManyArgs< + FindManyArgs< + DataCapabilitiesFieldSelect, + DataCapabilitiesFieldFilter, + DataCapabilitiesFieldOrderBy + > & { + select: DataCapabilitiesFieldSelect; + } + >(argv, defaultSelect); + const client = getClient(); + const result = await client.dataCapabilitiesField.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 = { + capabilitiesModuleId: true, + databaseId: true, + fieldId: true, + fromFieldId: true, + id: true, + mappingFieldId: true, + mappingKeyFieldId: true, + mappingTableId: true, + mode: true, + subsetGuard: true, + tableId: true, + }; + const findFirstArgs = parseFindFirstArgs< + FindFirstArgs< + DataCapabilitiesFieldSelect, + DataCapabilitiesFieldFilter, + DataCapabilitiesFieldOrderBy + > & { + select: DataCapabilitiesFieldSelect; + } + >(argv, defaultSelect); + const client = getClient(); + const result = await client.dataCapabilitiesField.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.dataCapabilitiesField + .findOne({ + id: answers.id as string, + select: { + capabilitiesModuleId: true, + databaseId: true, + fieldId: true, + fromFieldId: true, + id: true, + mappingFieldId: true, + mappingKeyFieldId: true, + mappingTableId: true, + mode: true, + subsetGuard: true, + tableId: 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: 'capabilitiesModuleId', + message: 'capabilitiesModuleId', + required: true, + }, + { + type: 'text', + name: 'databaseId', + message: 'databaseId', + required: true, + }, + { + type: 'text', + name: 'fieldId', + message: 'fieldId', + required: true, + }, + { + type: 'text', + name: 'fromFieldId', + message: 'fromFieldId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'mappingFieldId', + message: 'mappingFieldId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'mappingKeyFieldId', + message: 'mappingKeyFieldId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'mappingTableId', + message: 'mappingTableId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'mode', + message: 'mode', + required: false, + skipPrompt: true, + }, + { + type: 'boolean', + name: 'subsetGuard', + message: 'subsetGuard', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'tableId', + message: 'tableId', + required: true, + }, + ]); + const answers = coerceAnswers(rawAnswers, fieldSchema); + const cleanedData = stripUndefined( + answers, + fieldSchema + ) as CreateDataCapabilitiesFieldInput['dataCapabilitiesField']; + const client = getClient(); + const result = await client.dataCapabilitiesField + .create({ + data: { + capabilitiesModuleId: cleanedData.capabilitiesModuleId, + databaseId: cleanedData.databaseId, + fieldId: cleanedData.fieldId, + fromFieldId: cleanedData.fromFieldId, + mappingFieldId: cleanedData.mappingFieldId, + mappingKeyFieldId: cleanedData.mappingKeyFieldId, + mappingTableId: cleanedData.mappingTableId, + mode: cleanedData.mode, + subsetGuard: cleanedData.subsetGuard, + tableId: cleanedData.tableId, + }, + select: { + capabilitiesModuleId: true, + databaseId: true, + fieldId: true, + fromFieldId: true, + id: true, + mappingFieldId: true, + mappingKeyFieldId: true, + mappingTableId: true, + mode: true, + subsetGuard: true, + tableId: 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: 'capabilitiesModuleId', + message: 'capabilitiesModuleId', + required: false, + }, + { + type: 'text', + name: 'databaseId', + message: 'databaseId', + required: false, + }, + { + type: 'text', + name: 'fieldId', + message: 'fieldId', + required: false, + }, + { + type: 'text', + name: 'fromFieldId', + message: 'fromFieldId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'mappingFieldId', + message: 'mappingFieldId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'mappingKeyFieldId', + message: 'mappingKeyFieldId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'mappingTableId', + message: 'mappingTableId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'mode', + message: 'mode', + required: false, + skipPrompt: true, + }, + { + type: 'boolean', + name: 'subsetGuard', + message: 'subsetGuard', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'tableId', + message: 'tableId', + required: false, + }, + ]); + const answers = coerceAnswers(rawAnswers, fieldSchema); + const cleanedData = stripUndefined(answers, fieldSchema) as DataCapabilitiesFieldPatch; + const client = getClient(); + const result = await client.dataCapabilitiesField + .update({ + where: { + id: answers.id as string, + }, + data: { + capabilitiesModuleId: cleanedData.capabilitiesModuleId, + databaseId: cleanedData.databaseId, + fieldId: cleanedData.fieldId, + fromFieldId: cleanedData.fromFieldId, + mappingFieldId: cleanedData.mappingFieldId, + mappingKeyFieldId: cleanedData.mappingKeyFieldId, + mappingTableId: cleanedData.mappingTableId, + mode: cleanedData.mode, + subsetGuard: cleanedData.subsetGuard, + tableId: cleanedData.tableId, + }, + select: { + capabilitiesModuleId: true, + databaseId: true, + fieldId: true, + fromFieldId: true, + id: true, + mappingFieldId: true, + mappingKeyFieldId: true, + mappingTableId: true, + mode: true, + subsetGuard: true, + tableId: 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.dataCapabilitiesField + .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/modules/cli/commands/database-settings-module.ts b/sdk/constructive-cli/src/modules/cli/commands/database-settings-module.ts index 0474b85a67..74f7396187 100644 --- a/sdk/constructive-cli/src/modules/cli/commands/database-settings-module.ts +++ b/sdk/constructive-cli/src/modules/cli/commands/database-settings-module.ts @@ -20,7 +20,7 @@ const fieldSchema: FieldSchema = { databaseId: 'uuid', databaseSettingsTableId: 'uuid', databaseSettingsTableName: 'string', - defaultPermissions: 'string', + defaultCapabilities: 'string', entityField: 'string', entityTableId: 'uuid', id: 'uuid', @@ -93,7 +93,7 @@ async function handleList(argv: Partial>, _prompter: Inq databaseId: true, databaseSettingsTableId: true, databaseSettingsTableName: true, - defaultPermissions: true, + defaultCapabilities: true, entityField: true, entityTableId: true, id: true, @@ -138,7 +138,7 @@ async function handleFindFirst(argv: Partial>, _prompter databaseId: true, databaseSettingsTableId: true, databaseSettingsTableName: true, - defaultPermissions: true, + defaultCapabilities: true, entityField: true, entityTableId: true, id: true, @@ -195,7 +195,7 @@ async function handleGet(argv: Partial>, prompter: Inqui databaseId: true, databaseSettingsTableId: true, databaseSettingsTableName: true, - defaultPermissions: true, + defaultCapabilities: true, entityField: true, entityTableId: true, id: true, @@ -256,8 +256,8 @@ async function handleCreate(argv: Partial>, prompter: In }, { type: 'text', - name: 'defaultPermissions', - message: 'defaultPermissions', + name: 'defaultCapabilities', + message: 'defaultCapabilities', required: false, skipPrompt: true, }, @@ -379,7 +379,7 @@ async function handleCreate(argv: Partial>, prompter: In databaseId: cleanedData.databaseId, databaseSettingsTableId: cleanedData.databaseSettingsTableId, databaseSettingsTableName: cleanedData.databaseSettingsTableName, - defaultPermissions: cleanedData.defaultPermissions, + defaultCapabilities: cleanedData.defaultCapabilities, entityField: cleanedData.entityField, entityTableId: cleanedData.entityTableId, policies: cleanedData.policies, @@ -401,7 +401,7 @@ async function handleCreate(argv: Partial>, prompter: In databaseId: true, databaseSettingsTableId: true, databaseSettingsTableName: true, - defaultPermissions: true, + defaultCapabilities: true, entityField: true, entityTableId: true, id: true, @@ -468,8 +468,8 @@ async function handleUpdate(argv: Partial>, prompter: In }, { type: 'text', - name: 'defaultPermissions', - message: 'defaultPermissions', + name: 'defaultCapabilities', + message: 'defaultCapabilities', required: false, skipPrompt: true, }, @@ -591,7 +591,7 @@ async function handleUpdate(argv: Partial>, prompter: In databaseId: cleanedData.databaseId, databaseSettingsTableId: cleanedData.databaseSettingsTableId, databaseSettingsTableName: cleanedData.databaseSettingsTableName, - defaultPermissions: cleanedData.defaultPermissions, + defaultCapabilities: cleanedData.defaultCapabilities, entityField: cleanedData.entityField, entityTableId: cleanedData.entityTableId, policies: cleanedData.policies, @@ -613,7 +613,7 @@ async function handleUpdate(argv: Partial>, prompter: In databaseId: true, databaseSettingsTableId: true, databaseSettingsTableName: true, - defaultPermissions: true, + defaultCapabilities: true, entityField: true, entityTableId: true, id: true, diff --git a/sdk/constructive-cli/src/modules/cli/commands/db-usage-module.ts b/sdk/constructive-cli/src/modules/cli/commands/db-usage-module.ts index 365c5a96c3..491f743647 100644 --- a/sdk/constructive-cli/src/modules/cli/commands/db-usage-module.ts +++ b/sdk/constructive-cli/src/modules/cli/commands/db-usage-module.ts @@ -20,7 +20,7 @@ const fieldSchema: FieldSchema = { collectDbQueryStatsFunction: 'string', collectDbTableStatsFunction: 'string', databaseId: 'uuid', - defaultPermissions: 'string', + defaultCapabilities: 'string', entityField: 'string', id: 'uuid', interval: 'string', @@ -99,7 +99,7 @@ async function handleList(argv: Partial>, _prompter: Inq collectDbQueryStatsFunction: true, collectDbTableStatsFunction: true, databaseId: true, - defaultPermissions: true, + defaultCapabilities: true, entityField: true, id: true, interval: true, @@ -146,7 +146,7 @@ async function handleFindFirst(argv: Partial>, _prompter collectDbQueryStatsFunction: true, collectDbTableStatsFunction: true, databaseId: true, - defaultPermissions: true, + defaultCapabilities: true, entityField: true, id: true, interval: true, @@ -205,7 +205,7 @@ async function handleGet(argv: Partial>, prompter: Inqui collectDbQueryStatsFunction: true, collectDbTableStatsFunction: true, databaseId: true, - defaultPermissions: true, + defaultCapabilities: true, entityField: true, id: true, interval: true, @@ -272,8 +272,8 @@ async function handleCreate(argv: Partial>, prompter: In }, { type: 'text', - name: 'defaultPermissions', - message: 'defaultPermissions', + name: 'defaultCapabilities', + message: 'defaultCapabilities', required: false, skipPrompt: true, }, @@ -437,7 +437,7 @@ async function handleCreate(argv: Partial>, prompter: In collectDbQueryStatsFunction: cleanedData.collectDbQueryStatsFunction, collectDbTableStatsFunction: cleanedData.collectDbTableStatsFunction, databaseId: cleanedData.databaseId, - defaultPermissions: cleanedData.defaultPermissions, + defaultCapabilities: cleanedData.defaultCapabilities, entityField: cleanedData.entityField, interval: cleanedData.interval, prefix: cleanedData.prefix, @@ -467,7 +467,7 @@ async function handleCreate(argv: Partial>, prompter: In collectDbQueryStatsFunction: true, collectDbTableStatsFunction: true, databaseId: true, - defaultPermissions: true, + defaultCapabilities: true, entityField: true, id: true, interval: true, @@ -540,8 +540,8 @@ async function handleUpdate(argv: Partial>, prompter: In }, { type: 'text', - name: 'defaultPermissions', - message: 'defaultPermissions', + name: 'defaultCapabilities', + message: 'defaultCapabilities', required: false, skipPrompt: true, }, @@ -705,7 +705,7 @@ async function handleUpdate(argv: Partial>, prompter: In collectDbQueryStatsFunction: cleanedData.collectDbQueryStatsFunction, collectDbTableStatsFunction: cleanedData.collectDbTableStatsFunction, databaseId: cleanedData.databaseId, - defaultPermissions: cleanedData.defaultPermissions, + defaultCapabilities: cleanedData.defaultCapabilities, entityField: cleanedData.entityField, interval: cleanedData.interval, prefix: cleanedData.prefix, @@ -735,7 +735,7 @@ async function handleUpdate(argv: Partial>, prompter: In collectDbQueryStatsFunction: true, collectDbTableStatsFunction: true, databaseId: true, - defaultPermissions: true, + defaultCapabilities: true, entityField: true, id: true, interval: true, diff --git a/sdk/constructive-cli/src/modules/cli/commands/domain-module.ts b/sdk/constructive-cli/src/modules/cli/commands/domain-module.ts index 7022a32c40..5b7d9e2ed3 100644 --- a/sdk/constructive-cli/src/modules/cli/commands/domain-module.ts +++ b/sdk/constructive-cli/src/modules/cli/commands/domain-module.ts @@ -19,7 +19,7 @@ const fieldSchema: FieldSchema = { apiName: 'string', catalogModuleId: 'uuid', databaseId: 'uuid', - defaultPermissions: 'string', + defaultCapabilities: 'string', domainEventsTableId: 'uuid', domainEventsTableName: 'string', domainVerificationsTableId: 'uuid', @@ -95,7 +95,7 @@ async function handleList(argv: Partial>, _prompter: Inq apiName: true, catalogModuleId: true, databaseId: true, - defaultPermissions: true, + defaultCapabilities: true, domainEventsTableId: true, domainEventsTableName: true, domainVerificationsTableId: true, @@ -139,7 +139,7 @@ async function handleFindFirst(argv: Partial>, _prompter apiName: true, catalogModuleId: true, databaseId: true, - defaultPermissions: true, + defaultCapabilities: true, domainEventsTableId: true, domainEventsTableName: true, domainVerificationsTableId: true, @@ -195,7 +195,7 @@ async function handleGet(argv: Partial>, prompter: Inqui apiName: true, catalogModuleId: true, databaseId: true, - defaultPermissions: true, + defaultCapabilities: true, domainEventsTableId: true, domainEventsTableName: true, domainVerificationsTableId: true, @@ -253,8 +253,8 @@ async function handleCreate(argv: Partial>, prompter: In }, { type: 'text', - name: 'defaultPermissions', - message: 'defaultPermissions', + name: 'defaultCapabilities', + message: 'defaultCapabilities', required: false, skipPrompt: true, }, @@ -403,7 +403,7 @@ async function handleCreate(argv: Partial>, prompter: In apiName: cleanedData.apiName, catalogModuleId: cleanedData.catalogModuleId, databaseId: cleanedData.databaseId, - defaultPermissions: cleanedData.defaultPermissions, + defaultCapabilities: cleanedData.defaultCapabilities, domainEventsTableId: cleanedData.domainEventsTableId, domainEventsTableName: cleanedData.domainEventsTableName, domainVerificationsTableId: cleanedData.domainVerificationsTableId, @@ -428,7 +428,7 @@ async function handleCreate(argv: Partial>, prompter: In apiName: true, catalogModuleId: true, databaseId: true, - defaultPermissions: true, + defaultCapabilities: true, domainEventsTableId: true, domainEventsTableName: true, domainVerificationsTableId: true, @@ -492,8 +492,8 @@ async function handleUpdate(argv: Partial>, prompter: In }, { type: 'text', - name: 'defaultPermissions', - message: 'defaultPermissions', + name: 'defaultCapabilities', + message: 'defaultCapabilities', required: false, skipPrompt: true, }, @@ -642,7 +642,7 @@ async function handleUpdate(argv: Partial>, prompter: In apiName: cleanedData.apiName, catalogModuleId: cleanedData.catalogModuleId, databaseId: cleanedData.databaseId, - defaultPermissions: cleanedData.defaultPermissions, + defaultCapabilities: cleanedData.defaultCapabilities, domainEventsTableId: cleanedData.domainEventsTableId, domainEventsTableName: cleanedData.domainEventsTableName, domainVerificationsTableId: cleanedData.domainVerificationsTableId, @@ -667,7 +667,7 @@ async function handleUpdate(argv: Partial>, prompter: In apiName: true, catalogModuleId: true, databaseId: true, - defaultPermissions: true, + defaultCapabilities: true, domainEventsTableId: true, domainEventsTableName: true, domainVerificationsTableId: true, diff --git a/sdk/constructive-cli/src/modules/cli/commands/email-sender-module.ts b/sdk/constructive-cli/src/modules/cli/commands/email-sender-module.ts new file mode 100644 index 0000000000..30d6fb5950 --- /dev/null +++ b/sdk/constructive-cli/src/modules/cli/commands/email-sender-module.ts @@ -0,0 +1,645 @@ +/** + * CLI commands for EmailSenderModule + * @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 { + CreateEmailSenderModuleInput, + EmailSenderModulePatch, + EmailSenderModuleSelect, + EmailSenderModuleFilter, + EmailSenderModuleOrderBy, +} from '../../orm/input-types'; +import type { FindManyArgs, FindFirstArgs } from '../../orm/select-types'; +const fieldSchema: FieldSchema = { + apiName: 'string', + databaseId: 'uuid', + defaultCapabilities: 'string', + emailIdentitiesTableId: 'uuid', + emailIdentitiesTableName: 'string', + emailProviderAccountsTableId: 'uuid', + emailProviderAccountsTableName: 'string', + emailSiteIdentitiesTableId: 'uuid', + emailSiteIdentitiesTableName: 'string', + entityField: 'string', + entityTableId: 'uuid', + id: 'uuid', + policies: 'json', + prefix: 'string', + privateApiName: 'string', + provisions: 'json', + publicSchemaName: 'string', + schemaId: 'uuid', + scope: 'string', + siteSurfaceModuleId: 'uuid', +}; +const usage = + '\nemail-sender-module \n\nCommands:\n list List emailSenderModule records\n find-first Find first matching emailSenderModule record\n get Get a emailSenderModule by ID\n create Create a new emailSenderModule\n update Update an existing emailSenderModule\n delete Delete a emailSenderModule\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 = { + apiName: true, + databaseId: true, + defaultCapabilities: true, + emailIdentitiesTableId: true, + emailIdentitiesTableName: true, + emailProviderAccountsTableId: true, + emailProviderAccountsTableName: true, + emailSiteIdentitiesTableId: true, + emailSiteIdentitiesTableName: true, + entityField: true, + entityTableId: true, + id: true, + policies: true, + prefix: true, + privateApiName: true, + provisions: true, + publicSchemaName: true, + schemaId: true, + scope: true, + siteSurfaceModuleId: true, + }; + const findManyArgs = parseFindManyArgs< + FindManyArgs & { + select: EmailSenderModuleSelect; + } + >(argv, defaultSelect); + const client = getClient(); + const result = await client.emailSenderModule.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 = { + apiName: true, + databaseId: true, + defaultCapabilities: true, + emailIdentitiesTableId: true, + emailIdentitiesTableName: true, + emailProviderAccountsTableId: true, + emailProviderAccountsTableName: true, + emailSiteIdentitiesTableId: true, + emailSiteIdentitiesTableName: true, + entityField: true, + entityTableId: true, + id: true, + policies: true, + prefix: true, + privateApiName: true, + provisions: true, + publicSchemaName: true, + schemaId: true, + scope: true, + siteSurfaceModuleId: true, + }; + const findFirstArgs = parseFindFirstArgs< + FindFirstArgs & { + select: EmailSenderModuleSelect; + } + >(argv, defaultSelect); + const client = getClient(); + const result = await client.emailSenderModule.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.emailSenderModule + .findOne({ + id: answers.id as string, + select: { + apiName: true, + databaseId: true, + defaultCapabilities: true, + emailIdentitiesTableId: true, + emailIdentitiesTableName: true, + emailProviderAccountsTableId: true, + emailProviderAccountsTableName: true, + emailSiteIdentitiesTableId: true, + emailSiteIdentitiesTableName: true, + entityField: true, + entityTableId: true, + id: true, + policies: true, + prefix: true, + privateApiName: true, + provisions: true, + publicSchemaName: true, + schemaId: true, + scope: true, + siteSurfaceModuleId: 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: 'apiName', + message: 'apiName', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'databaseId', + message: 'databaseId', + required: true, + }, + { + type: 'text', + name: 'defaultCapabilities', + message: 'defaultCapabilities', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'emailIdentitiesTableId', + message: 'emailIdentitiesTableId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'emailIdentitiesTableName', + message: 'emailIdentitiesTableName', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'emailProviderAccountsTableId', + message: 'emailProviderAccountsTableId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'emailProviderAccountsTableName', + message: 'emailProviderAccountsTableName', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'emailSiteIdentitiesTableId', + message: 'emailSiteIdentitiesTableId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'emailSiteIdentitiesTableName', + message: 'emailSiteIdentitiesTableName', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'entityField', + message: 'entityField', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'entityTableId', + message: 'entityTableId', + required: false, + skipPrompt: true, + }, + { + type: 'json', + name: 'policies', + message: 'policies', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'prefix', + message: 'prefix', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'privateApiName', + message: 'privateApiName', + required: false, + skipPrompt: true, + }, + { + type: 'json', + name: 'provisions', + message: 'provisions', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'publicSchemaName', + message: 'publicSchemaName', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'schemaId', + message: 'schemaId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'scope', + message: 'scope', + required: true, + }, + { + type: 'text', + name: 'siteSurfaceModuleId', + message: 'siteSurfaceModuleId', + required: false, + skipPrompt: true, + }, + ]); + const answers = coerceAnswers(rawAnswers, fieldSchema); + const cleanedData = stripUndefined( + answers, + fieldSchema + ) as CreateEmailSenderModuleInput['emailSenderModule']; + const client = getClient(); + const result = await client.emailSenderModule + .create({ + data: { + apiName: cleanedData.apiName, + databaseId: cleanedData.databaseId, + defaultCapabilities: cleanedData.defaultCapabilities, + emailIdentitiesTableId: cleanedData.emailIdentitiesTableId, + emailIdentitiesTableName: cleanedData.emailIdentitiesTableName, + emailProviderAccountsTableId: cleanedData.emailProviderAccountsTableId, + emailProviderAccountsTableName: cleanedData.emailProviderAccountsTableName, + emailSiteIdentitiesTableId: cleanedData.emailSiteIdentitiesTableId, + emailSiteIdentitiesTableName: cleanedData.emailSiteIdentitiesTableName, + entityField: cleanedData.entityField, + entityTableId: cleanedData.entityTableId, + policies: cleanedData.policies, + prefix: cleanedData.prefix, + privateApiName: cleanedData.privateApiName, + provisions: cleanedData.provisions, + publicSchemaName: cleanedData.publicSchemaName, + schemaId: cleanedData.schemaId, + scope: cleanedData.scope, + siteSurfaceModuleId: cleanedData.siteSurfaceModuleId, + }, + select: { + apiName: true, + databaseId: true, + defaultCapabilities: true, + emailIdentitiesTableId: true, + emailIdentitiesTableName: true, + emailProviderAccountsTableId: true, + emailProviderAccountsTableName: true, + emailSiteIdentitiesTableId: true, + emailSiteIdentitiesTableName: true, + entityField: true, + entityTableId: true, + id: true, + policies: true, + prefix: true, + privateApiName: true, + provisions: true, + publicSchemaName: true, + schemaId: true, + scope: true, + siteSurfaceModuleId: 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: 'apiName', + message: 'apiName', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'databaseId', + message: 'databaseId', + required: false, + }, + { + type: 'text', + name: 'defaultCapabilities', + message: 'defaultCapabilities', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'emailIdentitiesTableId', + message: 'emailIdentitiesTableId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'emailIdentitiesTableName', + message: 'emailIdentitiesTableName', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'emailProviderAccountsTableId', + message: 'emailProviderAccountsTableId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'emailProviderAccountsTableName', + message: 'emailProviderAccountsTableName', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'emailSiteIdentitiesTableId', + message: 'emailSiteIdentitiesTableId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'emailSiteIdentitiesTableName', + message: 'emailSiteIdentitiesTableName', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'entityField', + message: 'entityField', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'entityTableId', + message: 'entityTableId', + required: false, + skipPrompt: true, + }, + { + type: 'json', + name: 'policies', + message: 'policies', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'prefix', + message: 'prefix', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'privateApiName', + message: 'privateApiName', + required: false, + skipPrompt: true, + }, + { + type: 'json', + name: 'provisions', + message: 'provisions', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'publicSchemaName', + message: 'publicSchemaName', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'schemaId', + message: 'schemaId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'scope', + message: 'scope', + required: false, + }, + { + type: 'text', + name: 'siteSurfaceModuleId', + message: 'siteSurfaceModuleId', + required: false, + skipPrompt: true, + }, + ]); + const answers = coerceAnswers(rawAnswers, fieldSchema); + const cleanedData = stripUndefined(answers, fieldSchema) as EmailSenderModulePatch; + const client = getClient(); + const result = await client.emailSenderModule + .update({ + where: { + id: answers.id as string, + }, + data: { + apiName: cleanedData.apiName, + databaseId: cleanedData.databaseId, + defaultCapabilities: cleanedData.defaultCapabilities, + emailIdentitiesTableId: cleanedData.emailIdentitiesTableId, + emailIdentitiesTableName: cleanedData.emailIdentitiesTableName, + emailProviderAccountsTableId: cleanedData.emailProviderAccountsTableId, + emailProviderAccountsTableName: cleanedData.emailProviderAccountsTableName, + emailSiteIdentitiesTableId: cleanedData.emailSiteIdentitiesTableId, + emailSiteIdentitiesTableName: cleanedData.emailSiteIdentitiesTableName, + entityField: cleanedData.entityField, + entityTableId: cleanedData.entityTableId, + policies: cleanedData.policies, + prefix: cleanedData.prefix, + privateApiName: cleanedData.privateApiName, + provisions: cleanedData.provisions, + publicSchemaName: cleanedData.publicSchemaName, + schemaId: cleanedData.schemaId, + scope: cleanedData.scope, + siteSurfaceModuleId: cleanedData.siteSurfaceModuleId, + }, + select: { + apiName: true, + databaseId: true, + defaultCapabilities: true, + emailIdentitiesTableId: true, + emailIdentitiesTableName: true, + emailProviderAccountsTableId: true, + emailProviderAccountsTableName: true, + emailSiteIdentitiesTableId: true, + emailSiteIdentitiesTableName: true, + entityField: true, + entityTableId: true, + id: true, + policies: true, + prefix: true, + privateApiName: true, + provisions: true, + publicSchemaName: true, + schemaId: true, + scope: true, + siteSurfaceModuleId: 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.emailSenderModule + .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/modules/cli/commands/events-module.ts b/sdk/constructive-cli/src/modules/cli/commands/events-module.ts index 0cb0a64829..4ec73788aa 100644 --- a/sdk/constructive-cli/src/modules/cli/commands/events-module.ts +++ b/sdk/constructive-cli/src/modules/cli/commands/events-module.ts @@ -21,7 +21,7 @@ const fieldSchema: FieldSchema = { actorTableId: 'uuid', apiName: 'string', databaseId: 'uuid', - defaultPermissions: 'string', + defaultCapabilities: 'string', entityField: 'string', entityTableId: 'uuid', eventAggregatesTableId: 'uuid', @@ -30,6 +30,7 @@ const fieldSchema: FieldSchema = { eventTypesTableName: 'string', eventsTableId: 'uuid', eventsTableName: 'string', + expireGrants: 'string', grantAchievement: 'string', id: 'uuid', interval: 'string', @@ -46,9 +47,11 @@ const fieldSchema: FieldSchema = { privateSchemaId: 'uuid', privateSchemaName: 'string', publicSchemaName: 'string', + recomputeCapabilities: 'string', recordEvent: 'string', removeEvent: 'string', retention: 'string', + revokeAchievement: 'string', schemaId: 'uuid', scope: 'string', stepsRequired: 'string', @@ -58,7 +61,9 @@ const fieldSchema: FieldSchema = { tgEventBool: 'string', tgEventToggle: 'string', tgEventToggleBool: 'string', + tgLevelGrantSync: 'string', tgUpdateAggregates: 'string', + trustLadder: 'json', upsertAggregate: 'string', }; const usage = @@ -117,7 +122,7 @@ async function handleList(argv: Partial>, _prompter: Inq actorTableId: true, apiName: true, databaseId: true, - defaultPermissions: true, + defaultCapabilities: true, entityField: true, entityTableId: true, eventAggregatesTableId: true, @@ -126,6 +131,7 @@ async function handleList(argv: Partial>, _prompter: Inq eventTypesTableName: true, eventsTableId: true, eventsTableName: true, + expireGrants: true, grantAchievement: true, id: true, interval: true, @@ -142,9 +148,11 @@ async function handleList(argv: Partial>, _prompter: Inq privateSchemaId: true, privateSchemaName: true, publicSchemaName: true, + recomputeCapabilities: true, recordEvent: true, removeEvent: true, retention: true, + revokeAchievement: true, schemaId: true, scope: true, stepsRequired: true, @@ -154,7 +162,9 @@ async function handleList(argv: Partial>, _prompter: Inq tgEventBool: true, tgEventToggle: true, tgEventToggleBool: true, + tgLevelGrantSync: true, tgUpdateAggregates: true, + trustLadder: true, upsertAggregate: true, }; const findManyArgs = parseFindManyArgs< @@ -181,7 +191,7 @@ async function handleFindFirst(argv: Partial>, _prompter actorTableId: true, apiName: true, databaseId: true, - defaultPermissions: true, + defaultCapabilities: true, entityField: true, entityTableId: true, eventAggregatesTableId: true, @@ -190,6 +200,7 @@ async function handleFindFirst(argv: Partial>, _prompter eventTypesTableName: true, eventsTableId: true, eventsTableName: true, + expireGrants: true, grantAchievement: true, id: true, interval: true, @@ -206,9 +217,11 @@ async function handleFindFirst(argv: Partial>, _prompter privateSchemaId: true, privateSchemaName: true, publicSchemaName: true, + recomputeCapabilities: true, recordEvent: true, removeEvent: true, retention: true, + revokeAchievement: true, schemaId: true, scope: true, stepsRequired: true, @@ -218,7 +231,9 @@ async function handleFindFirst(argv: Partial>, _prompter tgEventBool: true, tgEventToggle: true, tgEventToggleBool: true, + tgLevelGrantSync: true, tgUpdateAggregates: true, + trustLadder: true, upsertAggregate: true, }; const findFirstArgs = parseFindFirstArgs< @@ -257,7 +272,7 @@ async function handleGet(argv: Partial>, prompter: Inqui actorTableId: true, apiName: true, databaseId: true, - defaultPermissions: true, + defaultCapabilities: true, entityField: true, entityTableId: true, eventAggregatesTableId: true, @@ -266,6 +281,7 @@ async function handleGet(argv: Partial>, prompter: Inqui eventTypesTableName: true, eventsTableId: true, eventsTableName: true, + expireGrants: true, grantAchievement: true, id: true, interval: true, @@ -282,9 +298,11 @@ async function handleGet(argv: Partial>, prompter: Inqui privateSchemaId: true, privateSchemaName: true, publicSchemaName: true, + recomputeCapabilities: true, recordEvent: true, removeEvent: true, retention: true, + revokeAchievement: true, schemaId: true, scope: true, stepsRequired: true, @@ -294,7 +312,9 @@ async function handleGet(argv: Partial>, prompter: Inqui tgEventBool: true, tgEventToggle: true, tgEventToggleBool: true, + tgLevelGrantSync: true, tgUpdateAggregates: true, + trustLadder: true, upsertAggregate: true, }, }) @@ -347,8 +367,8 @@ async function handleCreate(argv: Partial>, prompter: In }, { type: 'text', - name: 'defaultPermissions', - message: 'defaultPermissions', + name: 'defaultCapabilities', + message: 'defaultCapabilities', required: false, skipPrompt: true, }, @@ -408,6 +428,13 @@ async function handleCreate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'text', + name: 'expireGrants', + message: 'expireGrants', + required: false, + skipPrompt: true, + }, { type: 'text', name: 'grantAchievement', @@ -513,6 +540,13 @@ async function handleCreate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'text', + name: 'recomputeCapabilities', + message: 'recomputeCapabilities', + required: false, + skipPrompt: true, + }, { type: 'text', name: 'recordEvent', @@ -534,6 +568,13 @@ async function handleCreate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'text', + name: 'revokeAchievement', + message: 'revokeAchievement', + required: false, + skipPrompt: true, + }, { type: 'text', name: 'schemaId', @@ -596,6 +637,13 @@ async function handleCreate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'text', + name: 'tgLevelGrantSync', + message: 'tgLevelGrantSync', + required: false, + skipPrompt: true, + }, { type: 'text', name: 'tgUpdateAggregates', @@ -603,6 +651,13 @@ async function handleCreate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'json', + name: 'trustLadder', + message: 'trustLadder', + required: false, + skipPrompt: true, + }, { type: 'text', name: 'upsertAggregate', @@ -625,7 +680,7 @@ async function handleCreate(argv: Partial>, prompter: In actorTableId: cleanedData.actorTableId, apiName: cleanedData.apiName, databaseId: cleanedData.databaseId, - defaultPermissions: cleanedData.defaultPermissions, + defaultCapabilities: cleanedData.defaultCapabilities, entityField: cleanedData.entityField, entityTableId: cleanedData.entityTableId, eventAggregatesTableId: cleanedData.eventAggregatesTableId, @@ -634,6 +689,7 @@ async function handleCreate(argv: Partial>, prompter: In eventTypesTableName: cleanedData.eventTypesTableName, eventsTableId: cleanedData.eventsTableId, eventsTableName: cleanedData.eventsTableName, + expireGrants: cleanedData.expireGrants, grantAchievement: cleanedData.grantAchievement, interval: cleanedData.interval, levelAchieved: cleanedData.levelAchieved, @@ -649,9 +705,11 @@ async function handleCreate(argv: Partial>, prompter: In privateSchemaId: cleanedData.privateSchemaId, privateSchemaName: cleanedData.privateSchemaName, publicSchemaName: cleanedData.publicSchemaName, + recomputeCapabilities: cleanedData.recomputeCapabilities, recordEvent: cleanedData.recordEvent, removeEvent: cleanedData.removeEvent, retention: cleanedData.retention, + revokeAchievement: cleanedData.revokeAchievement, schemaId: cleanedData.schemaId, scope: cleanedData.scope, stepsRequired: cleanedData.stepsRequired, @@ -661,7 +719,9 @@ async function handleCreate(argv: Partial>, prompter: In tgEventBool: cleanedData.tgEventBool, tgEventToggle: cleanedData.tgEventToggle, tgEventToggleBool: cleanedData.tgEventToggleBool, + tgLevelGrantSync: cleanedData.tgLevelGrantSync, tgUpdateAggregates: cleanedData.tgUpdateAggregates, + trustLadder: cleanedData.trustLadder, upsertAggregate: cleanedData.upsertAggregate, }, select: { @@ -670,7 +730,7 @@ async function handleCreate(argv: Partial>, prompter: In actorTableId: true, apiName: true, databaseId: true, - defaultPermissions: true, + defaultCapabilities: true, entityField: true, entityTableId: true, eventAggregatesTableId: true, @@ -679,6 +739,7 @@ async function handleCreate(argv: Partial>, prompter: In eventTypesTableName: true, eventsTableId: true, eventsTableName: true, + expireGrants: true, grantAchievement: true, id: true, interval: true, @@ -695,9 +756,11 @@ async function handleCreate(argv: Partial>, prompter: In privateSchemaId: true, privateSchemaName: true, publicSchemaName: true, + recomputeCapabilities: true, recordEvent: true, removeEvent: true, retention: true, + revokeAchievement: true, schemaId: true, scope: true, stepsRequired: true, @@ -707,7 +770,9 @@ async function handleCreate(argv: Partial>, prompter: In tgEventBool: true, tgEventToggle: true, tgEventToggleBool: true, + tgLevelGrantSync: true, tgUpdateAggregates: true, + trustLadder: true, upsertAggregate: true, }, }) @@ -766,8 +831,8 @@ async function handleUpdate(argv: Partial>, prompter: In }, { type: 'text', - name: 'defaultPermissions', - message: 'defaultPermissions', + name: 'defaultCapabilities', + message: 'defaultCapabilities', required: false, skipPrompt: true, }, @@ -827,6 +892,13 @@ async function handleUpdate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'text', + name: 'expireGrants', + message: 'expireGrants', + required: false, + skipPrompt: true, + }, { type: 'text', name: 'grantAchievement', @@ -932,6 +1004,13 @@ async function handleUpdate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'text', + name: 'recomputeCapabilities', + message: 'recomputeCapabilities', + required: false, + skipPrompt: true, + }, { type: 'text', name: 'recordEvent', @@ -953,6 +1032,13 @@ async function handleUpdate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'text', + name: 'revokeAchievement', + message: 'revokeAchievement', + required: false, + skipPrompt: true, + }, { type: 'text', name: 'schemaId', @@ -1015,6 +1101,13 @@ async function handleUpdate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'text', + name: 'tgLevelGrantSync', + message: 'tgLevelGrantSync', + required: false, + skipPrompt: true, + }, { type: 'text', name: 'tgUpdateAggregates', @@ -1022,6 +1115,13 @@ async function handleUpdate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'json', + name: 'trustLadder', + message: 'trustLadder', + required: false, + skipPrompt: true, + }, { type: 'text', name: 'upsertAggregate', @@ -1044,7 +1144,7 @@ async function handleUpdate(argv: Partial>, prompter: In actorTableId: cleanedData.actorTableId, apiName: cleanedData.apiName, databaseId: cleanedData.databaseId, - defaultPermissions: cleanedData.defaultPermissions, + defaultCapabilities: cleanedData.defaultCapabilities, entityField: cleanedData.entityField, entityTableId: cleanedData.entityTableId, eventAggregatesTableId: cleanedData.eventAggregatesTableId, @@ -1053,6 +1153,7 @@ async function handleUpdate(argv: Partial>, prompter: In eventTypesTableName: cleanedData.eventTypesTableName, eventsTableId: cleanedData.eventsTableId, eventsTableName: cleanedData.eventsTableName, + expireGrants: cleanedData.expireGrants, grantAchievement: cleanedData.grantAchievement, interval: cleanedData.interval, levelAchieved: cleanedData.levelAchieved, @@ -1068,9 +1169,11 @@ async function handleUpdate(argv: Partial>, prompter: In privateSchemaId: cleanedData.privateSchemaId, privateSchemaName: cleanedData.privateSchemaName, publicSchemaName: cleanedData.publicSchemaName, + recomputeCapabilities: cleanedData.recomputeCapabilities, recordEvent: cleanedData.recordEvent, removeEvent: cleanedData.removeEvent, retention: cleanedData.retention, + revokeAchievement: cleanedData.revokeAchievement, schemaId: cleanedData.schemaId, scope: cleanedData.scope, stepsRequired: cleanedData.stepsRequired, @@ -1080,7 +1183,9 @@ async function handleUpdate(argv: Partial>, prompter: In tgEventBool: cleanedData.tgEventBool, tgEventToggle: cleanedData.tgEventToggle, tgEventToggleBool: cleanedData.tgEventToggleBool, + tgLevelGrantSync: cleanedData.tgLevelGrantSync, tgUpdateAggregates: cleanedData.tgUpdateAggregates, + trustLadder: cleanedData.trustLadder, upsertAggregate: cleanedData.upsertAggregate, }, select: { @@ -1089,7 +1194,7 @@ async function handleUpdate(argv: Partial>, prompter: In actorTableId: true, apiName: true, databaseId: true, - defaultPermissions: true, + defaultCapabilities: true, entityField: true, entityTableId: true, eventAggregatesTableId: true, @@ -1098,6 +1203,7 @@ async function handleUpdate(argv: Partial>, prompter: In eventTypesTableName: true, eventsTableId: true, eventsTableName: true, + expireGrants: true, grantAchievement: true, id: true, interval: true, @@ -1114,9 +1220,11 @@ async function handleUpdate(argv: Partial>, prompter: In privateSchemaId: true, privateSchemaName: true, publicSchemaName: true, + recomputeCapabilities: true, recordEvent: true, removeEvent: true, retention: true, + revokeAchievement: true, schemaId: true, scope: true, stepsRequired: true, @@ -1126,7 +1234,9 @@ async function handleUpdate(argv: Partial>, prompter: In tgEventBool: true, tgEventToggle: true, tgEventToggleBool: true, + tgLevelGrantSync: true, tgUpdateAggregates: true, + trustLadder: true, upsertAggregate: true, }, }) diff --git a/sdk/constructive-cli/src/modules/cli/commands/file-ref-field.ts b/sdk/constructive-cli/src/modules/cli/commands/file-ref-field.ts new file mode 100644 index 0000000000..9abf16bffd --- /dev/null +++ b/sdk/constructive-cli/src/modules/cli/commands/file-ref-field.ts @@ -0,0 +1,399 @@ +/** + * CLI commands for FileRefField + * @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 { + CreateFileRefFieldInput, + FileRefFieldPatch, + FileRefFieldSelect, + FileRefFieldFilter, + FileRefFieldOrderBy, +} from '../../orm/input-types'; +import type { FindManyArgs, FindFirstArgs } from '../../orm/select-types'; +const fieldSchema: FieldSchema = { + bucketKey: 'string', + bucketTags: 'string', + databaseId: 'uuid', + enforceFk: 'boolean', + fieldId: 'uuid', + id: 'uuid', + isPublic: 'boolean', + storageModuleId: 'uuid', + tableId: 'uuid', +}; +const usage = + '\nfile-ref-field \n\nCommands:\n list List fileRefField records\n find-first Find first matching fileRefField record\n get Get a fileRefField by ID\n create Create a new fileRefField\n update Update an existing fileRefField\n delete Delete a fileRefField\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 = { + bucketKey: true, + bucketTags: true, + databaseId: true, + enforceFk: true, + fieldId: true, + id: true, + isPublic: true, + storageModuleId: true, + tableId: true, + }; + const findManyArgs = parseFindManyArgs< + FindManyArgs & { + select: FileRefFieldSelect; + } + >(argv, defaultSelect); + const client = getClient(); + const result = await client.fileRefField.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 = { + bucketKey: true, + bucketTags: true, + databaseId: true, + enforceFk: true, + fieldId: true, + id: true, + isPublic: true, + storageModuleId: true, + tableId: true, + }; + const findFirstArgs = parseFindFirstArgs< + FindFirstArgs & { + select: FileRefFieldSelect; + } + >(argv, defaultSelect); + const client = getClient(); + const result = await client.fileRefField.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.fileRefField + .findOne({ + id: answers.id as string, + select: { + bucketKey: true, + bucketTags: true, + databaseId: true, + enforceFk: true, + fieldId: true, + id: true, + isPublic: true, + storageModuleId: true, + tableId: 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: 'bucketKey', + message: 'bucketKey', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'bucketTags', + message: 'bucketTags', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'databaseId', + message: 'databaseId', + required: true, + }, + { + type: 'boolean', + name: 'enforceFk', + message: 'enforceFk', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'fieldId', + message: 'fieldId', + required: true, + }, + { + type: 'boolean', + name: 'isPublic', + message: 'isPublic', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'storageModuleId', + message: 'storageModuleId', + required: true, + }, + { + type: 'text', + name: 'tableId', + message: 'tableId', + required: true, + }, + ]); + const answers = coerceAnswers(rawAnswers, fieldSchema); + const cleanedData = stripUndefined( + answers, + fieldSchema + ) as CreateFileRefFieldInput['fileRefField']; + const client = getClient(); + const result = await client.fileRefField + .create({ + data: { + bucketKey: cleanedData.bucketKey, + bucketTags: cleanedData.bucketTags, + databaseId: cleanedData.databaseId, + enforceFk: cleanedData.enforceFk, + fieldId: cleanedData.fieldId, + isPublic: cleanedData.isPublic, + storageModuleId: cleanedData.storageModuleId, + tableId: cleanedData.tableId, + }, + select: { + bucketKey: true, + bucketTags: true, + databaseId: true, + enforceFk: true, + fieldId: true, + id: true, + isPublic: true, + storageModuleId: true, + tableId: 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: 'bucketKey', + message: 'bucketKey', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'bucketTags', + message: 'bucketTags', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'databaseId', + message: 'databaseId', + required: false, + }, + { + type: 'boolean', + name: 'enforceFk', + message: 'enforceFk', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'fieldId', + message: 'fieldId', + required: false, + }, + { + type: 'boolean', + name: 'isPublic', + message: 'isPublic', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'storageModuleId', + message: 'storageModuleId', + required: false, + }, + { + type: 'text', + name: 'tableId', + message: 'tableId', + required: false, + }, + ]); + const answers = coerceAnswers(rawAnswers, fieldSchema); + const cleanedData = stripUndefined(answers, fieldSchema) as FileRefFieldPatch; + const client = getClient(); + const result = await client.fileRefField + .update({ + where: { + id: answers.id as string, + }, + data: { + bucketKey: cleanedData.bucketKey, + bucketTags: cleanedData.bucketTags, + databaseId: cleanedData.databaseId, + enforceFk: cleanedData.enforceFk, + fieldId: cleanedData.fieldId, + isPublic: cleanedData.isPublic, + storageModuleId: cleanedData.storageModuleId, + tableId: cleanedData.tableId, + }, + select: { + bucketKey: true, + bucketTags: true, + databaseId: true, + enforceFk: true, + fieldId: true, + id: true, + isPublic: true, + storageModuleId: true, + tableId: 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.fileRefField + .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/modules/cli/commands/function-deployment-module.ts b/sdk/constructive-cli/src/modules/cli/commands/function-deployment-module.ts index e2a42ee2b9..cff327f944 100644 --- a/sdk/constructive-cli/src/modules/cli/commands/function-deployment-module.ts +++ b/sdk/constructive-cli/src/modules/cli/commands/function-deployment-module.ts @@ -18,7 +18,7 @@ import type { FindManyArgs, FindFirstArgs } from '../../orm/select-types'; const fieldSchema: FieldSchema = { apiName: 'string', databaseId: 'uuid', - defaultPermissions: 'string', + defaultCapabilities: 'string', deploymentEventsTableId: 'uuid', deploymentEventsTableName: 'string', deploymentsTableId: 'uuid', @@ -91,7 +91,7 @@ async function handleList(argv: Partial>, _prompter: Inq const defaultSelect = { apiName: true, databaseId: true, - defaultPermissions: true, + defaultCapabilities: true, deploymentEventsTableId: true, deploymentEventsTableName: true, deploymentsTableId: true, @@ -136,7 +136,7 @@ async function handleFindFirst(argv: Partial>, _prompter const defaultSelect = { apiName: true, databaseId: true, - defaultPermissions: true, + defaultCapabilities: true, deploymentEventsTableId: true, deploymentEventsTableName: true, deploymentsTableId: true, @@ -193,7 +193,7 @@ async function handleGet(argv: Partial>, prompter: Inqui select: { apiName: true, databaseId: true, - defaultPermissions: true, + defaultCapabilities: true, deploymentEventsTableId: true, deploymentEventsTableName: true, deploymentsTableId: true, @@ -242,8 +242,8 @@ async function handleCreate(argv: Partial>, prompter: In }, { type: 'text', - name: 'defaultPermissions', - message: 'defaultPermissions', + name: 'defaultCapabilities', + message: 'defaultCapabilities', required: false, skipPrompt: true, }, @@ -377,7 +377,7 @@ async function handleCreate(argv: Partial>, prompter: In data: { apiName: cleanedData.apiName, databaseId: cleanedData.databaseId, - defaultPermissions: cleanedData.defaultPermissions, + defaultCapabilities: cleanedData.defaultCapabilities, deploymentEventsTableId: cleanedData.deploymentEventsTableId, deploymentEventsTableName: cleanedData.deploymentEventsTableName, deploymentsTableId: cleanedData.deploymentsTableId, @@ -399,7 +399,7 @@ async function handleCreate(argv: Partial>, prompter: In select: { apiName: true, databaseId: true, - defaultPermissions: true, + defaultCapabilities: true, deploymentEventsTableId: true, deploymentEventsTableName: true, deploymentsTableId: true, @@ -454,8 +454,8 @@ async function handleUpdate(argv: Partial>, prompter: In }, { type: 'text', - name: 'defaultPermissions', - message: 'defaultPermissions', + name: 'defaultCapabilities', + message: 'defaultCapabilities', required: false, skipPrompt: true, }, @@ -589,7 +589,7 @@ async function handleUpdate(argv: Partial>, prompter: In data: { apiName: cleanedData.apiName, databaseId: cleanedData.databaseId, - defaultPermissions: cleanedData.defaultPermissions, + defaultCapabilities: cleanedData.defaultCapabilities, deploymentEventsTableId: cleanedData.deploymentEventsTableId, deploymentEventsTableName: cleanedData.deploymentEventsTableName, deploymentsTableId: cleanedData.deploymentsTableId, @@ -611,7 +611,7 @@ async function handleUpdate(argv: Partial>, prompter: In select: { apiName: true, databaseId: true, - defaultPermissions: true, + defaultCapabilities: true, deploymentEventsTableId: true, deploymentEventsTableName: true, deploymentsTableId: true, diff --git a/sdk/constructive-cli/src/modules/cli/commands/function-invocation-module.ts b/sdk/constructive-cli/src/modules/cli/commands/function-invocation-module.ts index 7d71fd56c0..0b3f43d3e3 100644 --- a/sdk/constructive-cli/src/modules/cli/commands/function-invocation-module.ts +++ b/sdk/constructive-cli/src/modules/cli/commands/function-invocation-module.ts @@ -20,7 +20,7 @@ const fieldSchema: FieldSchema = { attemptsTableId: 'uuid', attemptsTableName: 'string', databaseId: 'uuid', - defaultPermissions: 'string', + defaultCapabilities: 'string', entityField: 'string', entityTableId: 'uuid', executionLogsTableId: 'uuid', @@ -93,7 +93,7 @@ async function handleList(argv: Partial>, _prompter: Inq attemptsTableId: true, attemptsTableName: true, databaseId: true, - defaultPermissions: true, + defaultCapabilities: true, entityField: true, entityTableId: true, executionLogsTableId: true, @@ -138,7 +138,7 @@ async function handleFindFirst(argv: Partial>, _prompter attemptsTableId: true, attemptsTableName: true, databaseId: true, - defaultPermissions: true, + defaultCapabilities: true, entityField: true, entityTableId: true, executionLogsTableId: true, @@ -195,7 +195,7 @@ async function handleGet(argv: Partial>, prompter: Inqui attemptsTableId: true, attemptsTableName: true, databaseId: true, - defaultPermissions: true, + defaultCapabilities: true, entityField: true, entityTableId: true, executionLogsTableId: true, @@ -256,8 +256,8 @@ async function handleCreate(argv: Partial>, prompter: In }, { type: 'text', - name: 'defaultPermissions', - message: 'defaultPermissions', + name: 'defaultCapabilities', + message: 'defaultCapabilities', required: false, skipPrompt: true, }, @@ -379,7 +379,7 @@ async function handleCreate(argv: Partial>, prompter: In attemptsTableId: cleanedData.attemptsTableId, attemptsTableName: cleanedData.attemptsTableName, databaseId: cleanedData.databaseId, - defaultPermissions: cleanedData.defaultPermissions, + defaultCapabilities: cleanedData.defaultCapabilities, entityField: cleanedData.entityField, entityTableId: cleanedData.entityTableId, executionLogsTableId: cleanedData.executionLogsTableId, @@ -401,7 +401,7 @@ async function handleCreate(argv: Partial>, prompter: In attemptsTableId: true, attemptsTableName: true, databaseId: true, - defaultPermissions: true, + defaultCapabilities: true, entityField: true, entityTableId: true, executionLogsTableId: true, @@ -468,8 +468,8 @@ async function handleUpdate(argv: Partial>, prompter: In }, { type: 'text', - name: 'defaultPermissions', - message: 'defaultPermissions', + name: 'defaultCapabilities', + message: 'defaultCapabilities', required: false, skipPrompt: true, }, @@ -591,7 +591,7 @@ async function handleUpdate(argv: Partial>, prompter: In attemptsTableId: cleanedData.attemptsTableId, attemptsTableName: cleanedData.attemptsTableName, databaseId: cleanedData.databaseId, - defaultPermissions: cleanedData.defaultPermissions, + defaultCapabilities: cleanedData.defaultCapabilities, entityField: cleanedData.entityField, entityTableId: cleanedData.entityTableId, executionLogsTableId: cleanedData.executionLogsTableId, @@ -613,7 +613,7 @@ async function handleUpdate(argv: Partial>, prompter: In attemptsTableId: true, attemptsTableName: true, databaseId: true, - defaultPermissions: true, + defaultCapabilities: true, entityField: true, entityTableId: true, executionLogsTableId: true, diff --git a/sdk/constructive-cli/src/modules/cli/commands/function-module.ts b/sdk/constructive-cli/src/modules/cli/commands/function-module.ts index e5ea54b41c..5a41348a02 100644 --- a/sdk/constructive-cli/src/modules/cli/commands/function-module.ts +++ b/sdk/constructive-cli/src/modules/cli/commands/function-module.ts @@ -21,7 +21,7 @@ const fieldSchema: FieldSchema = { bindingsTableName: 'string', capabilityBindingsTableId: 'uuid', databaseId: 'uuid', - defaultPermissions: 'string', + defaultCapabilities: 'string', definitionsTableId: 'uuid', definitionsTableName: 'string', entityField: 'string', @@ -95,7 +95,7 @@ async function handleList(argv: Partial>, _prompter: Inq bindingsTableName: true, capabilityBindingsTableId: true, databaseId: true, - defaultPermissions: true, + defaultCapabilities: true, definitionsTableId: true, definitionsTableName: true, entityField: true, @@ -137,7 +137,7 @@ async function handleFindFirst(argv: Partial>, _prompter bindingsTableName: true, capabilityBindingsTableId: true, databaseId: true, - defaultPermissions: true, + defaultCapabilities: true, definitionsTableId: true, definitionsTableName: true, entityField: true, @@ -191,7 +191,7 @@ async function handleGet(argv: Partial>, prompter: Inqui bindingsTableName: true, capabilityBindingsTableId: true, databaseId: true, - defaultPermissions: true, + defaultCapabilities: true, definitionsTableId: true, definitionsTableName: true, entityField: true, @@ -259,8 +259,8 @@ async function handleCreate(argv: Partial>, prompter: In }, { type: 'text', - name: 'defaultPermissions', - message: 'defaultPermissions', + name: 'defaultCapabilities', + message: 'defaultCapabilities', required: false, skipPrompt: true, }, @@ -383,7 +383,7 @@ async function handleCreate(argv: Partial>, prompter: In bindingsTableName: cleanedData.bindingsTableName, capabilityBindingsTableId: cleanedData.capabilityBindingsTableId, databaseId: cleanedData.databaseId, - defaultPermissions: cleanedData.defaultPermissions, + defaultCapabilities: cleanedData.defaultCapabilities, definitionsTableId: cleanedData.definitionsTableId, definitionsTableName: cleanedData.definitionsTableName, entityField: cleanedData.entityField, @@ -406,7 +406,7 @@ async function handleCreate(argv: Partial>, prompter: In bindingsTableName: true, capabilityBindingsTableId: true, databaseId: true, - defaultPermissions: true, + defaultCapabilities: true, definitionsTableId: true, definitionsTableName: true, entityField: true, @@ -480,8 +480,8 @@ async function handleUpdate(argv: Partial>, prompter: In }, { type: 'text', - name: 'defaultPermissions', - message: 'defaultPermissions', + name: 'defaultCapabilities', + message: 'defaultCapabilities', required: false, skipPrompt: true, }, @@ -604,7 +604,7 @@ async function handleUpdate(argv: Partial>, prompter: In bindingsTableName: cleanedData.bindingsTableName, capabilityBindingsTableId: cleanedData.capabilityBindingsTableId, databaseId: cleanedData.databaseId, - defaultPermissions: cleanedData.defaultPermissions, + defaultCapabilities: cleanedData.defaultCapabilities, definitionsTableId: cleanedData.definitionsTableId, definitionsTableName: cleanedData.definitionsTableName, entityField: cleanedData.entityField, @@ -627,7 +627,7 @@ async function handleUpdate(argv: Partial>, prompter: In bindingsTableName: true, capabilityBindingsTableId: true, databaseId: true, - defaultPermissions: true, + defaultCapabilities: true, definitionsTableId: true, definitionsTableName: true, entityField: true, diff --git a/sdk/constructive-cli/src/modules/cli/commands/graph-execution-module.ts b/sdk/constructive-cli/src/modules/cli/commands/graph-execution-module.ts index 5083085daf..15fdee52f8 100644 --- a/sdk/constructive-cli/src/modules/cli/commands/graph-execution-module.ts +++ b/sdk/constructive-cli/src/modules/cli/commands/graph-execution-module.ts @@ -19,7 +19,7 @@ const fieldSchema: FieldSchema = { apiName: 'string', createdAt: 'string', databaseId: 'uuid', - defaultPermissions: 'string', + defaultCapabilities: 'string', entityField: 'string', entityTableId: 'uuid', executionsTableId: 'uuid', @@ -94,7 +94,7 @@ async function handleList(argv: Partial>, _prompter: Inq apiName: true, createdAt: true, databaseId: true, - defaultPermissions: true, + defaultCapabilities: true, entityField: true, entityTableId: true, executionsTableId: true, @@ -141,7 +141,7 @@ async function handleFindFirst(argv: Partial>, _prompter apiName: true, createdAt: true, databaseId: true, - defaultPermissions: true, + defaultCapabilities: true, entityField: true, entityTableId: true, executionsTableId: true, @@ -200,7 +200,7 @@ async function handleGet(argv: Partial>, prompter: Inqui apiName: true, createdAt: true, databaseId: true, - defaultPermissions: true, + defaultCapabilities: true, entityField: true, entityTableId: true, executionsTableId: true, @@ -250,8 +250,8 @@ async function handleCreate(argv: Partial>, prompter: In }, { type: 'text', - name: 'defaultPermissions', - message: 'defaultPermissions', + name: 'defaultCapabilities', + message: 'defaultCapabilities', required: false, skipPrompt: true, }, @@ -391,7 +391,7 @@ async function handleCreate(argv: Partial>, prompter: In data: { apiName: cleanedData.apiName, databaseId: cleanedData.databaseId, - defaultPermissions: cleanedData.defaultPermissions, + defaultCapabilities: cleanedData.defaultCapabilities, entityField: cleanedData.entityField, entityTableId: cleanedData.entityTableId, executionsTableId: cleanedData.executionsTableId, @@ -415,7 +415,7 @@ async function handleCreate(argv: Partial>, prompter: In apiName: true, createdAt: true, databaseId: true, - defaultPermissions: true, + defaultCapabilities: true, entityField: true, entityTableId: true, executionsTableId: true, @@ -471,8 +471,8 @@ async function handleUpdate(argv: Partial>, prompter: In }, { type: 'text', - name: 'defaultPermissions', - message: 'defaultPermissions', + name: 'defaultCapabilities', + message: 'defaultCapabilities', required: false, skipPrompt: true, }, @@ -612,7 +612,7 @@ async function handleUpdate(argv: Partial>, prompter: In data: { apiName: cleanedData.apiName, databaseId: cleanedData.databaseId, - defaultPermissions: cleanedData.defaultPermissions, + defaultCapabilities: cleanedData.defaultCapabilities, entityField: cleanedData.entityField, entityTableId: cleanedData.entityTableId, executionsTableId: cleanedData.executionsTableId, @@ -636,7 +636,7 @@ async function handleUpdate(argv: Partial>, prompter: In apiName: true, createdAt: true, databaseId: true, - defaultPermissions: true, + defaultCapabilities: true, entityField: true, entityTableId: true, executionsTableId: true, diff --git a/sdk/constructive-cli/src/modules/cli/commands/graph-module.ts b/sdk/constructive-cli/src/modules/cli/commands/graph-module.ts index 765adb9418..bb540c1838 100644 --- a/sdk/constructive-cli/src/modules/cli/commands/graph-module.ts +++ b/sdk/constructive-cli/src/modules/cli/commands/graph-module.ts @@ -19,7 +19,7 @@ const fieldSchema: FieldSchema = { apiName: 'string', createdAt: 'string', databaseId: 'uuid', - defaultPermissions: 'string', + defaultCapabilities: 'string', entityField: 'string', entityTableId: 'uuid', graphsTableId: 'uuid', @@ -89,7 +89,7 @@ async function handleList(argv: Partial>, _prompter: Inq apiName: true, createdAt: true, databaseId: true, - defaultPermissions: true, + defaultCapabilities: true, entityField: true, entityTableId: true, graphsTableId: true, @@ -127,7 +127,7 @@ async function handleFindFirst(argv: Partial>, _prompter apiName: true, createdAt: true, databaseId: true, - defaultPermissions: true, + defaultCapabilities: true, entityField: true, entityTableId: true, graphsTableId: true, @@ -177,7 +177,7 @@ async function handleGet(argv: Partial>, prompter: Inqui apiName: true, createdAt: true, databaseId: true, - defaultPermissions: true, + defaultCapabilities: true, entityField: true, entityTableId: true, graphsTableId: true, @@ -222,8 +222,8 @@ async function handleCreate(argv: Partial>, prompter: In }, { type: 'text', - name: 'defaultPermissions', - message: 'defaultPermissions', + name: 'defaultCapabilities', + message: 'defaultCapabilities', required: false, skipPrompt: true, }, @@ -328,7 +328,7 @@ async function handleCreate(argv: Partial>, prompter: In data: { apiName: cleanedData.apiName, databaseId: cleanedData.databaseId, - defaultPermissions: cleanedData.defaultPermissions, + defaultCapabilities: cleanedData.defaultCapabilities, entityField: cleanedData.entityField, entityTableId: cleanedData.entityTableId, graphsTableId: cleanedData.graphsTableId, @@ -347,7 +347,7 @@ async function handleCreate(argv: Partial>, prompter: In apiName: true, createdAt: true, databaseId: true, - defaultPermissions: true, + defaultCapabilities: true, entityField: true, entityTableId: true, graphsTableId: true, @@ -398,8 +398,8 @@ async function handleUpdate(argv: Partial>, prompter: In }, { type: 'text', - name: 'defaultPermissions', - message: 'defaultPermissions', + name: 'defaultCapabilities', + message: 'defaultCapabilities', required: false, skipPrompt: true, }, @@ -504,7 +504,7 @@ async function handleUpdate(argv: Partial>, prompter: In data: { apiName: cleanedData.apiName, databaseId: cleanedData.databaseId, - defaultPermissions: cleanedData.defaultPermissions, + defaultCapabilities: cleanedData.defaultCapabilities, entityField: cleanedData.entityField, entityTableId: cleanedData.entityTableId, graphsTableId: cleanedData.graphsTableId, @@ -523,7 +523,7 @@ async function handleUpdate(argv: Partial>, prompter: In apiName: true, createdAt: true, databaseId: true, - defaultPermissions: true, + defaultCapabilities: true, entityField: true, entityTableId: true, graphsTableId: true, diff --git a/sdk/constructive-cli/src/modules/cli/commands/hierarchy-module.ts b/sdk/constructive-cli/src/modules/cli/commands/hierarchy-module.ts index 5691c74a13..e1aa6f4027 100644 --- a/sdk/constructive-cli/src/modules/cli/commands/hierarchy-module.ts +++ b/sdk/constructive-cli/src/modules/cli/commands/hierarchy-module.ts @@ -22,7 +22,7 @@ const fieldSchema: FieldSchema = { chartEdgesTableName: 'string', createdAt: 'string', databaseId: 'uuid', - defaultPermissions: 'string', + defaultCapabilities: 'string', entityField: 'string', entityTableId: 'uuid', getManagersFunction: 'string', @@ -97,7 +97,7 @@ async function handleList(argv: Partial>, _prompter: Inq chartEdgesTableName: true, createdAt: true, databaseId: true, - defaultPermissions: true, + defaultCapabilities: true, entityField: true, entityTableId: true, getManagersFunction: true, @@ -140,7 +140,7 @@ async function handleFindFirst(argv: Partial>, _prompter chartEdgesTableName: true, createdAt: true, databaseId: true, - defaultPermissions: true, + defaultCapabilities: true, entityField: true, entityTableId: true, getManagersFunction: true, @@ -195,7 +195,7 @@ async function handleGet(argv: Partial>, prompter: Inqui chartEdgesTableName: true, createdAt: true, databaseId: true, - defaultPermissions: true, + defaultCapabilities: true, entityField: true, entityTableId: true, getManagersFunction: true, @@ -263,8 +263,8 @@ async function handleCreate(argv: Partial>, prompter: In }, { type: 'text', - name: 'defaultPermissions', - message: 'defaultPermissions', + name: 'defaultCapabilities', + message: 'defaultCapabilities', required: false, skipPrompt: true, }, @@ -385,7 +385,7 @@ async function handleCreate(argv: Partial>, prompter: In chartEdgesTableId: cleanedData.chartEdgesTableId, chartEdgesTableName: cleanedData.chartEdgesTableName, databaseId: cleanedData.databaseId, - defaultPermissions: cleanedData.defaultPermissions, + defaultCapabilities: cleanedData.defaultCapabilities, entityField: cleanedData.entityField, entityTableId: cleanedData.entityTableId, getManagersFunction: cleanedData.getManagersFunction, @@ -409,7 +409,7 @@ async function handleCreate(argv: Partial>, prompter: In chartEdgesTableName: true, createdAt: true, databaseId: true, - defaultPermissions: true, + defaultCapabilities: true, entityField: true, entityTableId: true, getManagersFunction: true, @@ -483,8 +483,8 @@ async function handleUpdate(argv: Partial>, prompter: In }, { type: 'text', - name: 'defaultPermissions', - message: 'defaultPermissions', + name: 'defaultCapabilities', + message: 'defaultCapabilities', required: false, skipPrompt: true, }, @@ -605,7 +605,7 @@ async function handleUpdate(argv: Partial>, prompter: In chartEdgesTableId: cleanedData.chartEdgesTableId, chartEdgesTableName: cleanedData.chartEdgesTableName, databaseId: cleanedData.databaseId, - defaultPermissions: cleanedData.defaultPermissions, + defaultCapabilities: cleanedData.defaultCapabilities, entityField: cleanedData.entityField, entityTableId: cleanedData.entityTableId, getManagersFunction: cleanedData.getManagersFunction, @@ -629,7 +629,7 @@ async function handleUpdate(argv: Partial>, prompter: In chartEdgesTableName: true, createdAt: true, databaseId: true, - defaultPermissions: true, + defaultCapabilities: true, entityField: true, entityTableId: true, getManagersFunction: true, diff --git a/sdk/constructive-cli/src/modules/cli/commands/http-route-module.ts b/sdk/constructive-cli/src/modules/cli/commands/http-route-module.ts index 24acccd4ef..1f5497cd1f 100644 --- a/sdk/constructive-cli/src/modules/cli/commands/http-route-module.ts +++ b/sdk/constructive-cli/src/modules/cli/commands/http-route-module.ts @@ -18,7 +18,7 @@ import type { FindManyArgs, FindFirstArgs } from '../../orm/select-types'; const fieldSchema: FieldSchema = { apiName: 'string', databaseId: 'uuid', - defaultPermissions: 'string', + defaultCapabilities: 'string', entityField: 'string', entityTableId: 'uuid', functionModuleId: 'uuid', @@ -91,7 +91,7 @@ async function handleList(argv: Partial>, _prompter: Inq const defaultSelect = { apiName: true, databaseId: true, - defaultPermissions: true, + defaultCapabilities: true, entityField: true, entityTableId: true, functionModuleId: true, @@ -132,7 +132,7 @@ async function handleFindFirst(argv: Partial>, _prompter const defaultSelect = { apiName: true, databaseId: true, - defaultPermissions: true, + defaultCapabilities: true, entityField: true, entityTableId: true, functionModuleId: true, @@ -185,7 +185,7 @@ async function handleGet(argv: Partial>, prompter: Inqui select: { apiName: true, databaseId: true, - defaultPermissions: true, + defaultCapabilities: true, entityField: true, entityTableId: true, functionModuleId: true, @@ -234,8 +234,8 @@ async function handleCreate(argv: Partial>, prompter: In }, { type: 'text', - name: 'defaultPermissions', - message: 'defaultPermissions', + name: 'defaultCapabilities', + message: 'defaultCapabilities', required: false, skipPrompt: true, }, @@ -369,7 +369,7 @@ async function handleCreate(argv: Partial>, prompter: In data: { apiName: cleanedData.apiName, databaseId: cleanedData.databaseId, - defaultPermissions: cleanedData.defaultPermissions, + defaultCapabilities: cleanedData.defaultCapabilities, entityField: cleanedData.entityField, entityTableId: cleanedData.entityTableId, functionModuleId: cleanedData.functionModuleId, @@ -391,7 +391,7 @@ async function handleCreate(argv: Partial>, prompter: In select: { apiName: true, databaseId: true, - defaultPermissions: true, + defaultCapabilities: true, entityField: true, entityTableId: true, functionModuleId: true, @@ -446,8 +446,8 @@ async function handleUpdate(argv: Partial>, prompter: In }, { type: 'text', - name: 'defaultPermissions', - message: 'defaultPermissions', + name: 'defaultCapabilities', + message: 'defaultCapabilities', required: false, skipPrompt: true, }, @@ -581,7 +581,7 @@ async function handleUpdate(argv: Partial>, prompter: In data: { apiName: cleanedData.apiName, databaseId: cleanedData.databaseId, - defaultPermissions: cleanedData.defaultPermissions, + defaultCapabilities: cleanedData.defaultCapabilities, entityField: cleanedData.entityField, entityTableId: cleanedData.entityTableId, functionModuleId: cleanedData.functionModuleId, @@ -603,7 +603,7 @@ async function handleUpdate(argv: Partial>, prompter: In select: { apiName: true, databaseId: true, - defaultPermissions: true, + defaultCapabilities: true, entityField: true, entityTableId: true, functionModuleId: true, diff --git a/sdk/constructive-cli/src/modules/cli/commands/limits-module.ts b/sdk/constructive-cli/src/modules/cli/commands/limits-module.ts index fda2f124a0..a84112b964 100644 --- a/sdk/constructive-cli/src/modules/cli/commands/limits-module.ts +++ b/sdk/constructive-cli/src/modules/cli/commands/limits-module.ts @@ -38,6 +38,7 @@ const fieldSchema: FieldSchema = { limitCreditsTableId: 'uuid', limitDecrementFunction: 'string', limitDecrementTrigger: 'string', + limitDefaults: 'json', limitIncrementFunction: 'string', limitIncrementTrigger: 'string', limitUpdateTrigger: 'string', @@ -127,6 +128,7 @@ async function handleList(argv: Partial>, _prompter: Inq limitCreditsTableId: true, limitDecrementFunction: true, limitDecrementTrigger: true, + limitDefaults: true, limitIncrementFunction: true, limitIncrementTrigger: true, limitUpdateTrigger: true, @@ -184,6 +186,7 @@ async function handleFindFirst(argv: Partial>, _prompter limitCreditsTableId: true, limitDecrementFunction: true, limitDecrementTrigger: true, + limitDefaults: true, limitIncrementFunction: true, limitIncrementTrigger: true, limitUpdateTrigger: true, @@ -253,6 +256,7 @@ async function handleGet(argv: Partial>, prompter: Inqui limitCreditsTableId: true, limitDecrementFunction: true, limitDecrementTrigger: true, + limitDefaults: true, limitIncrementFunction: true, limitIncrementTrigger: true, limitUpdateTrigger: true, @@ -429,6 +433,13 @@ async function handleCreate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'json', + name: 'limitDefaults', + message: 'limitDefaults', + required: false, + skipPrompt: true, + }, { type: 'text', name: 'limitIncrementFunction', @@ -564,6 +575,7 @@ async function handleCreate(argv: Partial>, prompter: In limitCreditsTableId: cleanedData.limitCreditsTableId, limitDecrementFunction: cleanedData.limitDecrementFunction, limitDecrementTrigger: cleanedData.limitDecrementTrigger, + limitDefaults: cleanedData.limitDefaults, limitIncrementFunction: cleanedData.limitIncrementFunction, limitIncrementTrigger: cleanedData.limitIncrementTrigger, limitUpdateTrigger: cleanedData.limitUpdateTrigger, @@ -603,6 +615,7 @@ async function handleCreate(argv: Partial>, prompter: In limitCreditsTableId: true, limitDecrementFunction: true, limitDecrementTrigger: true, + limitDefaults: true, limitIncrementFunction: true, limitIncrementTrigger: true, limitUpdateTrigger: true, @@ -785,6 +798,13 @@ async function handleUpdate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'json', + name: 'limitDefaults', + message: 'limitDefaults', + required: false, + skipPrompt: true, + }, { type: 'text', name: 'limitIncrementFunction', @@ -920,6 +940,7 @@ async function handleUpdate(argv: Partial>, prompter: In limitCreditsTableId: cleanedData.limitCreditsTableId, limitDecrementFunction: cleanedData.limitDecrementFunction, limitDecrementTrigger: cleanedData.limitDecrementTrigger, + limitDefaults: cleanedData.limitDefaults, limitIncrementFunction: cleanedData.limitIncrementFunction, limitIncrementTrigger: cleanedData.limitIncrementTrigger, limitUpdateTrigger: cleanedData.limitUpdateTrigger, @@ -959,6 +980,7 @@ async function handleUpdate(argv: Partial>, prompter: In limitCreditsTableId: true, limitDecrementFunction: true, limitDecrementTrigger: true, + limitDefaults: true, limitIncrementFunction: true, limitIncrementTrigger: true, limitUpdateTrigger: true, diff --git a/sdk/constructive-cli/src/modules/cli/commands/memberships-module.ts b/sdk/constructive-cli/src/modules/cli/commands/memberships-module.ts index 09730cf87b..dd1f77bc84 100644 --- a/sdk/constructive-cli/src/modules/cli/commands/memberships-module.ts +++ b/sdk/constructive-cli/src/modules/cli/commands/memberships-module.ts @@ -22,9 +22,12 @@ const fieldSchema: FieldSchema = { adminGrantsTableId: 'uuid', adminGrantsTableName: 'string', apiName: 'string', + capabilitiesTableId: 'uuid', + capabilityDefaultCapabilitiesTableId: 'uuid', + capabilityDefaultGrantsTableId: 'uuid', databaseId: 'uuid', + defaultCapabilitiesTableId: 'uuid', defaultLimitsTableId: 'uuid', - defaultPermissionsTableId: 'uuid', entityField: 'string', entityIdsByMask: 'string', entityIdsByPerm: 'string', @@ -47,9 +50,6 @@ const fieldSchema: FieldSchema = { membershipsTableName: 'string', ownerGrantsTableId: 'uuid', ownerGrantsTableName: 'string', - permissionDefaultGrantsTableId: 'uuid', - permissionDefaultPermissionsTableId: 'uuid', - permissionsTableId: 'uuid', prefix: 'string', privateApiName: 'string', privateSchemaId: 'uuid', @@ -116,9 +116,12 @@ async function handleList(argv: Partial>, _prompter: Inq adminGrantsTableId: true, adminGrantsTableName: true, apiName: true, + capabilitiesTableId: true, + capabilityDefaultCapabilitiesTableId: true, + capabilityDefaultGrantsTableId: true, databaseId: true, + defaultCapabilitiesTableId: true, defaultLimitsTableId: true, - defaultPermissionsTableId: true, entityField: true, entityIdsByMask: true, entityIdsByPerm: true, @@ -141,9 +144,6 @@ async function handleList(argv: Partial>, _prompter: Inq membershipsTableName: true, ownerGrantsTableId: true, ownerGrantsTableName: true, - permissionDefaultGrantsTableId: true, - permissionDefaultPermissionsTableId: true, - permissionsTableId: true, prefix: true, privateApiName: true, privateSchemaId: true, @@ -178,9 +178,12 @@ async function handleFindFirst(argv: Partial>, _prompter adminGrantsTableId: true, adminGrantsTableName: true, apiName: true, + capabilitiesTableId: true, + capabilityDefaultCapabilitiesTableId: true, + capabilityDefaultGrantsTableId: true, databaseId: true, + defaultCapabilitiesTableId: true, defaultLimitsTableId: true, - defaultPermissionsTableId: true, entityField: true, entityIdsByMask: true, entityIdsByPerm: true, @@ -203,9 +206,6 @@ async function handleFindFirst(argv: Partial>, _prompter membershipsTableName: true, ownerGrantsTableId: true, ownerGrantsTableName: true, - permissionDefaultGrantsTableId: true, - permissionDefaultPermissionsTableId: true, - permissionsTableId: true, prefix: true, privateApiName: true, privateSchemaId: true, @@ -252,9 +252,12 @@ async function handleGet(argv: Partial>, prompter: Inqui adminGrantsTableId: true, adminGrantsTableName: true, apiName: true, + capabilitiesTableId: true, + capabilityDefaultCapabilitiesTableId: true, + capabilityDefaultGrantsTableId: true, databaseId: true, + defaultCapabilitiesTableId: true, defaultLimitsTableId: true, - defaultPermissionsTableId: true, entityField: true, entityIdsByMask: true, entityIdsByPerm: true, @@ -277,9 +280,6 @@ async function handleGet(argv: Partial>, prompter: Inqui membershipsTableName: true, ownerGrantsTableId: true, ownerGrantsTableName: true, - permissionDefaultGrantsTableId: true, - permissionDefaultPermissionsTableId: true, - permissionsTableId: true, prefix: true, privateApiName: true, privateSchemaId: true, @@ -345,6 +345,27 @@ async function handleCreate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'text', + name: 'capabilitiesTableId', + message: 'capabilitiesTableId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'capabilityDefaultCapabilitiesTableId', + message: 'capabilityDefaultCapabilitiesTableId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'capabilityDefaultGrantsTableId', + message: 'capabilityDefaultGrantsTableId', + required: false, + skipPrompt: true, + }, { type: 'text', name: 'databaseId', @@ -353,15 +374,15 @@ async function handleCreate(argv: Partial>, prompter: In }, { type: 'text', - name: 'defaultLimitsTableId', - message: 'defaultLimitsTableId', + name: 'defaultCapabilitiesTableId', + message: 'defaultCapabilitiesTableId', required: false, skipPrompt: true, }, { type: 'text', - name: 'defaultPermissionsTableId', - message: 'defaultPermissionsTableId', + name: 'defaultLimitsTableId', + message: 'defaultLimitsTableId', required: false, skipPrompt: true, }, @@ -512,27 +533,6 @@ async function handleCreate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, - { - type: 'text', - name: 'permissionDefaultGrantsTableId', - message: 'permissionDefaultGrantsTableId', - required: false, - skipPrompt: true, - }, - { - type: 'text', - name: 'permissionDefaultPermissionsTableId', - message: 'permissionDefaultPermissionsTableId', - required: false, - skipPrompt: true, - }, - { - type: 'text', - name: 'permissionsTableId', - message: 'permissionsTableId', - required: false, - skipPrompt: true, - }, { type: 'text', name: 'prefix', @@ -604,9 +604,12 @@ async function handleCreate(argv: Partial>, prompter: In adminGrantsTableId: cleanedData.adminGrantsTableId, adminGrantsTableName: cleanedData.adminGrantsTableName, apiName: cleanedData.apiName, + capabilitiesTableId: cleanedData.capabilitiesTableId, + capabilityDefaultCapabilitiesTableId: cleanedData.capabilityDefaultCapabilitiesTableId, + capabilityDefaultGrantsTableId: cleanedData.capabilityDefaultGrantsTableId, databaseId: cleanedData.databaseId, + defaultCapabilitiesTableId: cleanedData.defaultCapabilitiesTableId, defaultLimitsTableId: cleanedData.defaultLimitsTableId, - defaultPermissionsTableId: cleanedData.defaultPermissionsTableId, entityField: cleanedData.entityField, entityIdsByMask: cleanedData.entityIdsByMask, entityIdsByPerm: cleanedData.entityIdsByPerm, @@ -628,9 +631,6 @@ async function handleCreate(argv: Partial>, prompter: In membershipsTableName: cleanedData.membershipsTableName, ownerGrantsTableId: cleanedData.ownerGrantsTableId, ownerGrantsTableName: cleanedData.ownerGrantsTableName, - permissionDefaultGrantsTableId: cleanedData.permissionDefaultGrantsTableId, - permissionDefaultPermissionsTableId: cleanedData.permissionDefaultPermissionsTableId, - permissionsTableId: cleanedData.permissionsTableId, prefix: cleanedData.prefix, privateApiName: cleanedData.privateApiName, privateSchemaId: cleanedData.privateSchemaId, @@ -647,9 +647,12 @@ async function handleCreate(argv: Partial>, prompter: In adminGrantsTableId: true, adminGrantsTableName: true, apiName: true, + capabilitiesTableId: true, + capabilityDefaultCapabilitiesTableId: true, + capabilityDefaultGrantsTableId: true, databaseId: true, + defaultCapabilitiesTableId: true, defaultLimitsTableId: true, - defaultPermissionsTableId: true, entityField: true, entityIdsByMask: true, entityIdsByPerm: true, @@ -672,9 +675,6 @@ async function handleCreate(argv: Partial>, prompter: In membershipsTableName: true, ownerGrantsTableId: true, ownerGrantsTableName: true, - permissionDefaultGrantsTableId: true, - permissionDefaultPermissionsTableId: true, - permissionsTableId: true, prefix: true, privateApiName: true, privateSchemaId: true, @@ -746,6 +746,27 @@ async function handleUpdate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'text', + name: 'capabilitiesTableId', + message: 'capabilitiesTableId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'capabilityDefaultCapabilitiesTableId', + message: 'capabilityDefaultCapabilitiesTableId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'capabilityDefaultGrantsTableId', + message: 'capabilityDefaultGrantsTableId', + required: false, + skipPrompt: true, + }, { type: 'text', name: 'databaseId', @@ -754,15 +775,15 @@ async function handleUpdate(argv: Partial>, prompter: In }, { type: 'text', - name: 'defaultLimitsTableId', - message: 'defaultLimitsTableId', + name: 'defaultCapabilitiesTableId', + message: 'defaultCapabilitiesTableId', required: false, skipPrompt: true, }, { type: 'text', - name: 'defaultPermissionsTableId', - message: 'defaultPermissionsTableId', + name: 'defaultLimitsTableId', + message: 'defaultLimitsTableId', required: false, skipPrompt: true, }, @@ -913,27 +934,6 @@ async function handleUpdate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, - { - type: 'text', - name: 'permissionDefaultGrantsTableId', - message: 'permissionDefaultGrantsTableId', - required: false, - skipPrompt: true, - }, - { - type: 'text', - name: 'permissionDefaultPermissionsTableId', - message: 'permissionDefaultPermissionsTableId', - required: false, - skipPrompt: true, - }, - { - type: 'text', - name: 'permissionsTableId', - message: 'permissionsTableId', - required: false, - skipPrompt: true, - }, { type: 'text', name: 'prefix', @@ -1005,9 +1005,12 @@ async function handleUpdate(argv: Partial>, prompter: In adminGrantsTableId: cleanedData.adminGrantsTableId, adminGrantsTableName: cleanedData.adminGrantsTableName, apiName: cleanedData.apiName, + capabilitiesTableId: cleanedData.capabilitiesTableId, + capabilityDefaultCapabilitiesTableId: cleanedData.capabilityDefaultCapabilitiesTableId, + capabilityDefaultGrantsTableId: cleanedData.capabilityDefaultGrantsTableId, databaseId: cleanedData.databaseId, + defaultCapabilitiesTableId: cleanedData.defaultCapabilitiesTableId, defaultLimitsTableId: cleanedData.defaultLimitsTableId, - defaultPermissionsTableId: cleanedData.defaultPermissionsTableId, entityField: cleanedData.entityField, entityIdsByMask: cleanedData.entityIdsByMask, entityIdsByPerm: cleanedData.entityIdsByPerm, @@ -1029,9 +1032,6 @@ async function handleUpdate(argv: Partial>, prompter: In membershipsTableName: cleanedData.membershipsTableName, ownerGrantsTableId: cleanedData.ownerGrantsTableId, ownerGrantsTableName: cleanedData.ownerGrantsTableName, - permissionDefaultGrantsTableId: cleanedData.permissionDefaultGrantsTableId, - permissionDefaultPermissionsTableId: cleanedData.permissionDefaultPermissionsTableId, - permissionsTableId: cleanedData.permissionsTableId, prefix: cleanedData.prefix, privateApiName: cleanedData.privateApiName, privateSchemaId: cleanedData.privateSchemaId, @@ -1048,9 +1048,12 @@ async function handleUpdate(argv: Partial>, prompter: In adminGrantsTableId: true, adminGrantsTableName: true, apiName: true, + capabilitiesTableId: true, + capabilityDefaultCapabilitiesTableId: true, + capabilityDefaultGrantsTableId: true, databaseId: true, + defaultCapabilitiesTableId: true, defaultLimitsTableId: true, - defaultPermissionsTableId: true, entityField: true, entityIdsByMask: true, entityIdsByPerm: true, @@ -1073,9 +1076,6 @@ async function handleUpdate(argv: Partial>, prompter: In membershipsTableName: true, ownerGrantsTableId: true, ownerGrantsTableName: true, - permissionDefaultGrantsTableId: true, - permissionDefaultPermissionsTableId: true, - permissionsTableId: true, prefix: true, privateApiName: true, privateSchemaId: true, diff --git a/sdk/constructive-cli/src/modules/cli/commands/merkle-store-module.ts b/sdk/constructive-cli/src/modules/cli/commands/merkle-store-module.ts index 9f568e76af..ab9448ec2a 100644 --- a/sdk/constructive-cli/src/modules/cli/commands/merkle-store-module.ts +++ b/sdk/constructive-cli/src/modules/cli/commands/merkle-store-module.ts @@ -17,6 +17,7 @@ import type { import type { FindManyArgs, FindFirstArgs } from '../../orm/select-types'; const fieldSchema: FieldSchema = { apiName: 'string', + capabilityKey: 'string', commitTableId: 'uuid', createdAt: 'string', databaseId: 'uuid', @@ -24,7 +25,6 @@ const fieldSchema: FieldSchema = { functionPrefix: 'string', id: 'uuid', objectTableId: 'uuid', - permissionKey: 'string', prefix: 'string', privateApiName: 'string', privateSchemaId: 'uuid', @@ -87,6 +87,7 @@ async function handleList(argv: Partial>, _prompter: Inq try { const defaultSelect = { apiName: true, + capabilityKey: true, commitTableId: true, createdAt: true, databaseId: true, @@ -94,7 +95,6 @@ async function handleList(argv: Partial>, _prompter: Inq functionPrefix: true, id: true, objectTableId: true, - permissionKey: true, prefix: true, privateApiName: true, privateSchemaId: true, @@ -125,6 +125,7 @@ async function handleFindFirst(argv: Partial>, _prompter try { const defaultSelect = { apiName: true, + capabilityKey: true, commitTableId: true, createdAt: true, databaseId: true, @@ -132,7 +133,6 @@ async function handleFindFirst(argv: Partial>, _prompter functionPrefix: true, id: true, objectTableId: true, - permissionKey: true, prefix: true, privateApiName: true, privateSchemaId: true, @@ -175,6 +175,7 @@ async function handleGet(argv: Partial>, prompter: Inqui id: answers.id as string, select: { apiName: true, + capabilityKey: true, commitTableId: true, createdAt: true, databaseId: true, @@ -182,7 +183,6 @@ async function handleGet(argv: Partial>, prompter: Inqui functionPrefix: true, id: true, objectTableId: true, - permissionKey: true, prefix: true, privateApiName: true, privateSchemaId: true, @@ -214,6 +214,13 @@ async function handleCreate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'text', + name: 'capabilityKey', + message: 'capabilityKey', + required: false, + skipPrompt: true, + }, { type: 'text', name: 'commitTableId', @@ -248,13 +255,6 @@ async function handleCreate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, - { - type: 'text', - name: 'permissionKey', - message: 'permissionKey', - required: false, - skipPrompt: true, - }, { type: 'text', name: 'prefix', @@ -328,12 +328,12 @@ async function handleCreate(argv: Partial>, prompter: In .create({ data: { apiName: cleanedData.apiName, + capabilityKey: cleanedData.capabilityKey, commitTableId: cleanedData.commitTableId, databaseId: cleanedData.databaseId, entityField: cleanedData.entityField, functionPrefix: cleanedData.functionPrefix, objectTableId: cleanedData.objectTableId, - permissionKey: cleanedData.permissionKey, prefix: cleanedData.prefix, privateApiName: cleanedData.privateApiName, privateSchemaId: cleanedData.privateSchemaId, @@ -346,6 +346,7 @@ async function handleCreate(argv: Partial>, prompter: In }, select: { apiName: true, + capabilityKey: true, commitTableId: true, createdAt: true, databaseId: true, @@ -353,7 +354,6 @@ async function handleCreate(argv: Partial>, prompter: In functionPrefix: true, id: true, objectTableId: true, - permissionKey: true, prefix: true, privateApiName: true, privateSchemaId: true, @@ -391,6 +391,13 @@ async function handleUpdate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'text', + name: 'capabilityKey', + message: 'capabilityKey', + required: false, + skipPrompt: true, + }, { type: 'text', name: 'commitTableId', @@ -425,13 +432,6 @@ async function handleUpdate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, - { - type: 'text', - name: 'permissionKey', - message: 'permissionKey', - required: false, - skipPrompt: true, - }, { type: 'text', name: 'prefix', @@ -505,12 +505,12 @@ async function handleUpdate(argv: Partial>, prompter: In }, data: { apiName: cleanedData.apiName, + capabilityKey: cleanedData.capabilityKey, commitTableId: cleanedData.commitTableId, databaseId: cleanedData.databaseId, entityField: cleanedData.entityField, functionPrefix: cleanedData.functionPrefix, objectTableId: cleanedData.objectTableId, - permissionKey: cleanedData.permissionKey, prefix: cleanedData.prefix, privateApiName: cleanedData.privateApiName, privateSchemaId: cleanedData.privateSchemaId, @@ -523,6 +523,7 @@ async function handleUpdate(argv: Partial>, prompter: In }, select: { apiName: true, + capabilityKey: true, commitTableId: true, createdAt: true, databaseId: true, @@ -530,7 +531,6 @@ async function handleUpdate(argv: Partial>, prompter: In functionPrefix: true, id: true, objectTableId: true, - permissionKey: true, prefix: true, privateApiName: true, privateSchemaId: true, diff --git a/sdk/constructive-cli/src/modules/cli/commands/namespace-module.ts b/sdk/constructive-cli/src/modules/cli/commands/namespace-module.ts index 46e05e9873..80e4e3e129 100644 --- a/sdk/constructive-cli/src/modules/cli/commands/namespace-module.ts +++ b/sdk/constructive-cli/src/modules/cli/commands/namespace-module.ts @@ -18,7 +18,7 @@ import type { FindManyArgs, FindFirstArgs } from '../../orm/select-types'; const fieldSchema: FieldSchema = { apiName: 'string', databaseId: 'uuid', - defaultPermissions: 'string', + defaultCapabilities: 'string', entityField: 'string', entityTableId: 'uuid', id: 'uuid', @@ -89,7 +89,7 @@ async function handleList(argv: Partial>, _prompter: Inq const defaultSelect = { apiName: true, databaseId: true, - defaultPermissions: true, + defaultCapabilities: true, entityField: true, entityTableId: true, id: true, @@ -128,7 +128,7 @@ async function handleFindFirst(argv: Partial>, _prompter const defaultSelect = { apiName: true, databaseId: true, - defaultPermissions: true, + defaultCapabilities: true, entityField: true, entityTableId: true, id: true, @@ -179,7 +179,7 @@ async function handleGet(argv: Partial>, prompter: Inqui select: { apiName: true, databaseId: true, - defaultPermissions: true, + defaultCapabilities: true, entityField: true, entityTableId: true, id: true, @@ -226,8 +226,8 @@ async function handleCreate(argv: Partial>, prompter: In }, { type: 'text', - name: 'defaultPermissions', - message: 'defaultPermissions', + name: 'defaultCapabilities', + message: 'defaultCapabilities', required: false, skipPrompt: true, }, @@ -347,7 +347,7 @@ async function handleCreate(argv: Partial>, prompter: In data: { apiName: cleanedData.apiName, databaseId: cleanedData.databaseId, - defaultPermissions: cleanedData.defaultPermissions, + defaultCapabilities: cleanedData.defaultCapabilities, entityField: cleanedData.entityField, entityTableId: cleanedData.entityTableId, namespaceEventsTableId: cleanedData.namespaceEventsTableId, @@ -367,7 +367,7 @@ async function handleCreate(argv: Partial>, prompter: In select: { apiName: true, databaseId: true, - defaultPermissions: true, + defaultCapabilities: true, entityField: true, entityTableId: true, id: true, @@ -420,8 +420,8 @@ async function handleUpdate(argv: Partial>, prompter: In }, { type: 'text', - name: 'defaultPermissions', - message: 'defaultPermissions', + name: 'defaultCapabilities', + message: 'defaultCapabilities', required: false, skipPrompt: true, }, @@ -541,7 +541,7 @@ async function handleUpdate(argv: Partial>, prompter: In data: { apiName: cleanedData.apiName, databaseId: cleanedData.databaseId, - defaultPermissions: cleanedData.defaultPermissions, + defaultCapabilities: cleanedData.defaultCapabilities, entityField: cleanedData.entityField, entityTableId: cleanedData.entityTableId, namespaceEventsTableId: cleanedData.namespaceEventsTableId, @@ -561,7 +561,7 @@ async function handleUpdate(argv: Partial>, prompter: In select: { apiName: true, databaseId: true, - defaultPermissions: true, + defaultCapabilities: true, entityField: true, entityTableId: true, id: true, diff --git a/sdk/constructive-cli/src/modules/cli/commands/notifications-module.ts b/sdk/constructive-cli/src/modules/cli/commands/notifications-module.ts index 0ad0dce79e..23cab4eafe 100644 --- a/sdk/constructive-cli/src/modules/cli/commands/notifications-module.ts +++ b/sdk/constructive-cli/src/modules/cli/commands/notifications-module.ts @@ -19,7 +19,7 @@ const fieldSchema: FieldSchema = { apiName: 'string', channelsTableId: 'uuid', databaseId: 'uuid', - defaultPermissions: 'string', + defaultCapabilities: 'string', deliveryLogTableId: 'uuid', entityField: 'string', hasChannels: 'boolean', @@ -95,7 +95,7 @@ async function handleList(argv: Partial>, _prompter: Inq apiName: true, channelsTableId: true, databaseId: true, - defaultPermissions: true, + defaultCapabilities: true, deliveryLogTableId: true, entityField: true, hasChannels: true, @@ -143,7 +143,7 @@ async function handleFindFirst(argv: Partial>, _prompter apiName: true, channelsTableId: true, databaseId: true, - defaultPermissions: true, + defaultCapabilities: true, deliveryLogTableId: true, entityField: true, hasChannels: true, @@ -203,7 +203,7 @@ async function handleGet(argv: Partial>, prompter: Inqui apiName: true, channelsTableId: true, databaseId: true, - defaultPermissions: true, + defaultCapabilities: true, deliveryLogTableId: true, entityField: true, hasChannels: true, @@ -261,8 +261,8 @@ async function handleCreate(argv: Partial>, prompter: In }, { type: 'text', - name: 'defaultPermissions', - message: 'defaultPermissions', + name: 'defaultCapabilities', + message: 'defaultCapabilities', required: false, skipPrompt: true, }, @@ -412,7 +412,7 @@ async function handleCreate(argv: Partial>, prompter: In apiName: cleanedData.apiName, channelsTableId: cleanedData.channelsTableId, databaseId: cleanedData.databaseId, - defaultPermissions: cleanedData.defaultPermissions, + defaultCapabilities: cleanedData.defaultCapabilities, deliveryLogTableId: cleanedData.deliveryLogTableId, entityField: cleanedData.entityField, hasChannels: cleanedData.hasChannels, @@ -437,7 +437,7 @@ async function handleCreate(argv: Partial>, prompter: In apiName: true, channelsTableId: true, databaseId: true, - defaultPermissions: true, + defaultCapabilities: true, deliveryLogTableId: true, entityField: true, hasChannels: true, @@ -501,8 +501,8 @@ async function handleUpdate(argv: Partial>, prompter: In }, { type: 'text', - name: 'defaultPermissions', - message: 'defaultPermissions', + name: 'defaultCapabilities', + message: 'defaultCapabilities', required: false, skipPrompt: true, }, @@ -652,7 +652,7 @@ async function handleUpdate(argv: Partial>, prompter: In apiName: cleanedData.apiName, channelsTableId: cleanedData.channelsTableId, databaseId: cleanedData.databaseId, - defaultPermissions: cleanedData.defaultPermissions, + defaultCapabilities: cleanedData.defaultCapabilities, deliveryLogTableId: cleanedData.deliveryLogTableId, entityField: cleanedData.entityField, hasChannels: cleanedData.hasChannels, @@ -677,7 +677,7 @@ async function handleUpdate(argv: Partial>, prompter: In apiName: true, channelsTableId: true, databaseId: true, - defaultPermissions: true, + defaultCapabilities: true, deliveryLogTableId: true, entityField: true, hasChannels: true, diff --git a/sdk/constructive-cli/src/modules/cli/commands/oauth-requests-module.ts b/sdk/constructive-cli/src/modules/cli/commands/oauth-requests-module.ts new file mode 100644 index 0000000000..73aef00dbf --- /dev/null +++ b/sdk/constructive-cli/src/modules/cli/commands/oauth-requests-module.ts @@ -0,0 +1,477 @@ +/** + * CLI commands for OauthRequestsModule + * @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 { + CreateOauthRequestsModuleInput, + OauthRequestsModulePatch, + OauthRequestsModuleSelect, + OauthRequestsModuleFilter, + OauthRequestsModuleOrderBy, +} from '../../orm/input-types'; +import type { FindManyArgs, FindFirstArgs } from '../../orm/select-types'; +const fieldSchema: FieldSchema = { + databaseId: 'uuid', + entityField: 'string', + entityTableId: 'uuid', + id: 'uuid', + oauthAuthorizationRequestsTableId: 'uuid', + oauthAuthorizationRequestsTableName: 'string', + pendingIdentityLinksTableId: 'uuid', + pendingIdentityLinksTableName: 'string', + prefix: 'string', + privateSchemaId: 'uuid', + privateSchemaName: 'string', + scope: 'string', +}; +const usage = + '\noauth-requests-module \n\nCommands:\n list List oauthRequestsModule records\n find-first Find first matching oauthRequestsModule record\n get Get a oauthRequestsModule by ID\n create Create a new oauthRequestsModule\n update Update an existing oauthRequestsModule\n delete Delete a oauthRequestsModule\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, + entityField: true, + entityTableId: true, + id: true, + oauthAuthorizationRequestsTableId: true, + oauthAuthorizationRequestsTableName: true, + pendingIdentityLinksTableId: true, + pendingIdentityLinksTableName: true, + prefix: true, + privateSchemaId: true, + privateSchemaName: true, + scope: true, + }; + const findManyArgs = parseFindManyArgs< + FindManyArgs< + OauthRequestsModuleSelect, + OauthRequestsModuleFilter, + OauthRequestsModuleOrderBy + > & { + select: OauthRequestsModuleSelect; + } + >(argv, defaultSelect); + const client = getClient(); + const result = await client.oauthRequestsModule.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, + entityField: true, + entityTableId: true, + id: true, + oauthAuthorizationRequestsTableId: true, + oauthAuthorizationRequestsTableName: true, + pendingIdentityLinksTableId: true, + pendingIdentityLinksTableName: true, + prefix: true, + privateSchemaId: true, + privateSchemaName: true, + scope: true, + }; + const findFirstArgs = parseFindFirstArgs< + FindFirstArgs< + OauthRequestsModuleSelect, + OauthRequestsModuleFilter, + OauthRequestsModuleOrderBy + > & { + select: OauthRequestsModuleSelect; + } + >(argv, defaultSelect); + const client = getClient(); + const result = await client.oauthRequestsModule.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.oauthRequestsModule + .findOne({ + id: answers.id as string, + select: { + databaseId: true, + entityField: true, + entityTableId: true, + id: true, + oauthAuthorizationRequestsTableId: true, + oauthAuthorizationRequestsTableName: true, + pendingIdentityLinksTableId: true, + pendingIdentityLinksTableName: true, + prefix: true, + privateSchemaId: true, + privateSchemaName: true, + scope: 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: 'entityField', + message: 'entityField', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'entityTableId', + message: 'entityTableId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'oauthAuthorizationRequestsTableId', + message: 'oauthAuthorizationRequestsTableId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'oauthAuthorizationRequestsTableName', + message: 'oauthAuthorizationRequestsTableName', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'pendingIdentityLinksTableId', + message: 'pendingIdentityLinksTableId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'pendingIdentityLinksTableName', + message: 'pendingIdentityLinksTableName', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'prefix', + message: 'prefix', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'privateSchemaId', + message: 'privateSchemaId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'privateSchemaName', + message: 'privateSchemaName', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'scope', + message: 'scope', + required: true, + }, + ]); + const answers = coerceAnswers(rawAnswers, fieldSchema); + const cleanedData = stripUndefined( + answers, + fieldSchema + ) as CreateOauthRequestsModuleInput['oauthRequestsModule']; + const client = getClient(); + const result = await client.oauthRequestsModule + .create({ + data: { + databaseId: cleanedData.databaseId, + entityField: cleanedData.entityField, + entityTableId: cleanedData.entityTableId, + oauthAuthorizationRequestsTableId: cleanedData.oauthAuthorizationRequestsTableId, + oauthAuthorizationRequestsTableName: cleanedData.oauthAuthorizationRequestsTableName, + pendingIdentityLinksTableId: cleanedData.pendingIdentityLinksTableId, + pendingIdentityLinksTableName: cleanedData.pendingIdentityLinksTableName, + prefix: cleanedData.prefix, + privateSchemaId: cleanedData.privateSchemaId, + privateSchemaName: cleanedData.privateSchemaName, + scope: cleanedData.scope, + }, + select: { + databaseId: true, + entityField: true, + entityTableId: true, + id: true, + oauthAuthorizationRequestsTableId: true, + oauthAuthorizationRequestsTableName: true, + pendingIdentityLinksTableId: true, + pendingIdentityLinksTableName: true, + prefix: true, + privateSchemaId: true, + privateSchemaName: true, + scope: 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: 'entityField', + message: 'entityField', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'entityTableId', + message: 'entityTableId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'oauthAuthorizationRequestsTableId', + message: 'oauthAuthorizationRequestsTableId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'oauthAuthorizationRequestsTableName', + message: 'oauthAuthorizationRequestsTableName', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'pendingIdentityLinksTableId', + message: 'pendingIdentityLinksTableId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'pendingIdentityLinksTableName', + message: 'pendingIdentityLinksTableName', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'prefix', + message: 'prefix', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'privateSchemaId', + message: 'privateSchemaId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'privateSchemaName', + message: 'privateSchemaName', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'scope', + message: 'scope', + required: false, + }, + ]); + const answers = coerceAnswers(rawAnswers, fieldSchema); + const cleanedData = stripUndefined(answers, fieldSchema) as OauthRequestsModulePatch; + const client = getClient(); + const result = await client.oauthRequestsModule + .update({ + where: { + id: answers.id as string, + }, + data: { + databaseId: cleanedData.databaseId, + entityField: cleanedData.entityField, + entityTableId: cleanedData.entityTableId, + oauthAuthorizationRequestsTableId: cleanedData.oauthAuthorizationRequestsTableId, + oauthAuthorizationRequestsTableName: cleanedData.oauthAuthorizationRequestsTableName, + pendingIdentityLinksTableId: cleanedData.pendingIdentityLinksTableId, + pendingIdentityLinksTableName: cleanedData.pendingIdentityLinksTableName, + prefix: cleanedData.prefix, + privateSchemaId: cleanedData.privateSchemaId, + privateSchemaName: cleanedData.privateSchemaName, + scope: cleanedData.scope, + }, + select: { + databaseId: true, + entityField: true, + entityTableId: true, + id: true, + oauthAuthorizationRequestsTableId: true, + oauthAuthorizationRequestsTableName: true, + pendingIdentityLinksTableId: true, + pendingIdentityLinksTableName: true, + prefix: true, + privateSchemaId: true, + privateSchemaName: true, + scope: 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.oauthRequestsModule + .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/modules/cli/commands/profiles-module.ts b/sdk/constructive-cli/src/modules/cli/commands/profiles-module.ts index c575773b25..84f9070160 100644 --- a/sdk/constructive-cli/src/modules/cli/commands/profiles-module.ts +++ b/sdk/constructive-cli/src/modules/cli/commands/profiles-module.ts @@ -18,22 +18,24 @@ import type { FindManyArgs, FindFirstArgs } from '../../orm/select-types'; const fieldSchema: FieldSchema = { actorTableId: 'uuid', apiName: 'string', + capabilitiesTableId: 'uuid', databaseId: 'uuid', entityField: 'string', entityTableId: 'uuid', id: 'uuid', + membershipProfilesTableId: 'uuid', + membershipProfilesTableName: 'string', membershipsTableId: 'uuid', - permissionsTableId: 'uuid', prefix: 'string', privateApiName: 'string', privateSchemaId: 'uuid', privateSchemaName: 'string', + profileCapabilitiesTableId: 'uuid', + profileCapabilitiesTableName: 'string', profileDefinitionGrantsTableId: 'uuid', profileDefinitionGrantsTableName: 'string', profileGrantsTableId: 'uuid', profileGrantsTableName: 'string', - profilePermissionsTableId: 'uuid', - profilePermissionsTableName: 'string', profileTemplatesTableId: 'uuid', profileTemplatesTableName: 'string', publicSchemaName: 'string', @@ -95,22 +97,24 @@ async function handleList(argv: Partial>, _prompter: Inq const defaultSelect = { actorTableId: true, apiName: true, + capabilitiesTableId: true, databaseId: true, entityField: true, entityTableId: true, id: true, + membershipProfilesTableId: true, + membershipProfilesTableName: true, membershipsTableId: true, - permissionsTableId: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, + profileCapabilitiesTableId: true, + profileCapabilitiesTableName: true, profileDefinitionGrantsTableId: true, profileDefinitionGrantsTableName: true, profileGrantsTableId: true, profileGrantsTableName: true, - profilePermissionsTableId: true, - profilePermissionsTableName: true, profileTemplatesTableId: true, profileTemplatesTableName: true, publicSchemaName: true, @@ -140,22 +144,24 @@ async function handleFindFirst(argv: Partial>, _prompter const defaultSelect = { actorTableId: true, apiName: true, + capabilitiesTableId: true, databaseId: true, entityField: true, entityTableId: true, id: true, + membershipProfilesTableId: true, + membershipProfilesTableName: true, membershipsTableId: true, - permissionsTableId: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, + profileCapabilitiesTableId: true, + profileCapabilitiesTableName: true, profileDefinitionGrantsTableId: true, profileDefinitionGrantsTableName: true, profileGrantsTableId: true, profileGrantsTableName: true, - profilePermissionsTableId: true, - profilePermissionsTableName: true, profileTemplatesTableId: true, profileTemplatesTableName: true, publicSchemaName: true, @@ -197,22 +203,24 @@ async function handleGet(argv: Partial>, prompter: Inqui select: { actorTableId: true, apiName: true, + capabilitiesTableId: true, databaseId: true, entityField: true, entityTableId: true, id: true, + membershipProfilesTableId: true, + membershipProfilesTableName: true, membershipsTableId: true, - permissionsTableId: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, + profileCapabilitiesTableId: true, + profileCapabilitiesTableName: true, profileDefinitionGrantsTableId: true, profileDefinitionGrantsTableName: true, profileGrantsTableId: true, profileGrantsTableName: true, - profilePermissionsTableId: true, - profilePermissionsTableName: true, profileTemplatesTableId: true, profileTemplatesTableName: true, publicSchemaName: true, @@ -249,6 +257,13 @@ async function handleCreate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'text', + name: 'capabilitiesTableId', + message: 'capabilitiesTableId', + required: false, + skipPrompt: true, + }, { type: 'text', name: 'databaseId', @@ -271,15 +286,22 @@ async function handleCreate(argv: Partial>, prompter: In }, { type: 'text', - name: 'membershipsTableId', - message: 'membershipsTableId', + name: 'membershipProfilesTableId', + message: 'membershipProfilesTableId', required: false, skipPrompt: true, }, { type: 'text', - name: 'permissionsTableId', - message: 'permissionsTableId', + name: 'membershipProfilesTableName', + message: 'membershipProfilesTableName', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'membershipsTableId', + message: 'membershipsTableId', required: false, skipPrompt: true, }, @@ -313,43 +335,43 @@ async function handleCreate(argv: Partial>, prompter: In }, { type: 'text', - name: 'profileDefinitionGrantsTableId', - message: 'profileDefinitionGrantsTableId', + name: 'profileCapabilitiesTableId', + message: 'profileCapabilitiesTableId', required: false, skipPrompt: true, }, { type: 'text', - name: 'profileDefinitionGrantsTableName', - message: 'profileDefinitionGrantsTableName', + name: 'profileCapabilitiesTableName', + message: 'profileCapabilitiesTableName', required: false, skipPrompt: true, }, { type: 'text', - name: 'profileGrantsTableId', - message: 'profileGrantsTableId', + name: 'profileDefinitionGrantsTableId', + message: 'profileDefinitionGrantsTableId', required: false, skipPrompt: true, }, { type: 'text', - name: 'profileGrantsTableName', - message: 'profileGrantsTableName', + name: 'profileDefinitionGrantsTableName', + message: 'profileDefinitionGrantsTableName', required: false, skipPrompt: true, }, { type: 'text', - name: 'profilePermissionsTableId', - message: 'profilePermissionsTableId', + name: 'profileGrantsTableId', + message: 'profileGrantsTableId', required: false, skipPrompt: true, }, { type: 'text', - name: 'profilePermissionsTableName', - message: 'profilePermissionsTableName', + name: 'profileGrantsTableName', + message: 'profileGrantsTableName', required: false, skipPrompt: true, }, @@ -413,21 +435,23 @@ async function handleCreate(argv: Partial>, prompter: In data: { actorTableId: cleanedData.actorTableId, apiName: cleanedData.apiName, + capabilitiesTableId: cleanedData.capabilitiesTableId, databaseId: cleanedData.databaseId, entityField: cleanedData.entityField, entityTableId: cleanedData.entityTableId, + membershipProfilesTableId: cleanedData.membershipProfilesTableId, + membershipProfilesTableName: cleanedData.membershipProfilesTableName, membershipsTableId: cleanedData.membershipsTableId, - permissionsTableId: cleanedData.permissionsTableId, prefix: cleanedData.prefix, privateApiName: cleanedData.privateApiName, privateSchemaId: cleanedData.privateSchemaId, privateSchemaName: cleanedData.privateSchemaName, + profileCapabilitiesTableId: cleanedData.profileCapabilitiesTableId, + profileCapabilitiesTableName: cleanedData.profileCapabilitiesTableName, profileDefinitionGrantsTableId: cleanedData.profileDefinitionGrantsTableId, profileDefinitionGrantsTableName: cleanedData.profileDefinitionGrantsTableName, profileGrantsTableId: cleanedData.profileGrantsTableId, profileGrantsTableName: cleanedData.profileGrantsTableName, - profilePermissionsTableId: cleanedData.profilePermissionsTableId, - profilePermissionsTableName: cleanedData.profilePermissionsTableName, profileTemplatesTableId: cleanedData.profileTemplatesTableId, profileTemplatesTableName: cleanedData.profileTemplatesTableName, publicSchemaName: cleanedData.publicSchemaName, @@ -439,22 +463,24 @@ async function handleCreate(argv: Partial>, prompter: In select: { actorTableId: true, apiName: true, + capabilitiesTableId: true, databaseId: true, entityField: true, entityTableId: true, id: true, + membershipProfilesTableId: true, + membershipProfilesTableName: true, membershipsTableId: true, - permissionsTableId: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, + profileCapabilitiesTableId: true, + profileCapabilitiesTableName: true, profileDefinitionGrantsTableId: true, profileDefinitionGrantsTableName: true, profileGrantsTableId: true, profileGrantsTableName: true, - profilePermissionsTableId: true, - profilePermissionsTableName: true, profileTemplatesTableId: true, profileTemplatesTableName: true, publicSchemaName: true, @@ -497,6 +523,13 @@ async function handleUpdate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'text', + name: 'capabilitiesTableId', + message: 'capabilitiesTableId', + required: false, + skipPrompt: true, + }, { type: 'text', name: 'databaseId', @@ -519,15 +552,22 @@ async function handleUpdate(argv: Partial>, prompter: In }, { type: 'text', - name: 'membershipsTableId', - message: 'membershipsTableId', + name: 'membershipProfilesTableId', + message: 'membershipProfilesTableId', required: false, skipPrompt: true, }, { type: 'text', - name: 'permissionsTableId', - message: 'permissionsTableId', + name: 'membershipProfilesTableName', + message: 'membershipProfilesTableName', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'membershipsTableId', + message: 'membershipsTableId', required: false, skipPrompt: true, }, @@ -561,43 +601,43 @@ async function handleUpdate(argv: Partial>, prompter: In }, { type: 'text', - name: 'profileDefinitionGrantsTableId', - message: 'profileDefinitionGrantsTableId', + name: 'profileCapabilitiesTableId', + message: 'profileCapabilitiesTableId', required: false, skipPrompt: true, }, { type: 'text', - name: 'profileDefinitionGrantsTableName', - message: 'profileDefinitionGrantsTableName', + name: 'profileCapabilitiesTableName', + message: 'profileCapabilitiesTableName', required: false, skipPrompt: true, }, { type: 'text', - name: 'profileGrantsTableId', - message: 'profileGrantsTableId', + name: 'profileDefinitionGrantsTableId', + message: 'profileDefinitionGrantsTableId', required: false, skipPrompt: true, }, { type: 'text', - name: 'profileGrantsTableName', - message: 'profileGrantsTableName', + name: 'profileDefinitionGrantsTableName', + message: 'profileDefinitionGrantsTableName', required: false, skipPrompt: true, }, { type: 'text', - name: 'profilePermissionsTableId', - message: 'profilePermissionsTableId', + name: 'profileGrantsTableId', + message: 'profileGrantsTableId', required: false, skipPrompt: true, }, { type: 'text', - name: 'profilePermissionsTableName', - message: 'profilePermissionsTableName', + name: 'profileGrantsTableName', + message: 'profileGrantsTableName', required: false, skipPrompt: true, }, @@ -661,21 +701,23 @@ async function handleUpdate(argv: Partial>, prompter: In data: { actorTableId: cleanedData.actorTableId, apiName: cleanedData.apiName, + capabilitiesTableId: cleanedData.capabilitiesTableId, databaseId: cleanedData.databaseId, entityField: cleanedData.entityField, entityTableId: cleanedData.entityTableId, + membershipProfilesTableId: cleanedData.membershipProfilesTableId, + membershipProfilesTableName: cleanedData.membershipProfilesTableName, membershipsTableId: cleanedData.membershipsTableId, - permissionsTableId: cleanedData.permissionsTableId, prefix: cleanedData.prefix, privateApiName: cleanedData.privateApiName, privateSchemaId: cleanedData.privateSchemaId, privateSchemaName: cleanedData.privateSchemaName, + profileCapabilitiesTableId: cleanedData.profileCapabilitiesTableId, + profileCapabilitiesTableName: cleanedData.profileCapabilitiesTableName, profileDefinitionGrantsTableId: cleanedData.profileDefinitionGrantsTableId, profileDefinitionGrantsTableName: cleanedData.profileDefinitionGrantsTableName, profileGrantsTableId: cleanedData.profileGrantsTableId, profileGrantsTableName: cleanedData.profileGrantsTableName, - profilePermissionsTableId: cleanedData.profilePermissionsTableId, - profilePermissionsTableName: cleanedData.profilePermissionsTableName, profileTemplatesTableId: cleanedData.profileTemplatesTableId, profileTemplatesTableName: cleanedData.profileTemplatesTableName, publicSchemaName: cleanedData.publicSchemaName, @@ -687,22 +729,24 @@ async function handleUpdate(argv: Partial>, prompter: In select: { actorTableId: true, apiName: true, + capabilitiesTableId: true, databaseId: true, entityField: true, entityTableId: true, id: true, + membershipProfilesTableId: true, + membershipProfilesTableName: true, membershipsTableId: true, - permissionsTableId: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, + profileCapabilitiesTableId: true, + profileCapabilitiesTableName: true, profileDefinitionGrantsTableId: true, profileDefinitionGrantsTableName: true, profileGrantsTableId: true, profileGrantsTableName: true, - profilePermissionsTableId: true, - profilePermissionsTableName: true, profileTemplatesTableId: true, profileTemplatesTableName: true, publicSchemaName: true, diff --git a/sdk/constructive-cli/src/modules/cli/commands/provision-check-constraint.ts b/sdk/constructive-cli/src/modules/cli/commands/provision-check-constraint.ts deleted file mode 100644 index 9139f8dfb1..0000000000 --- a/sdk/constructive-cli/src/modules/cli/commands/provision-check-constraint.ts +++ /dev/null @@ -1,53 +0,0 @@ -/** - * CLI command for mutation provisionCheckConstraint - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ -import { CLIOptions, Inquirerer } from 'inquirerer'; -import { getClient } from '../executor'; -import { unflattenDotNotation, buildSelectFromPaths } from '../utils'; -import type { ProvisionCheckConstraintVariables } from '../../orm/mutation'; -import type { ProvisionCheckConstraintPayloadSelect } from '../../orm/input-types'; -export default async ( - argv: Partial>, - prompter: Inquirerer, - _options: CLIOptions -) => { - try { - if (argv.help || argv.h) { - console.log( - 'provision-check-constraint - Creates a check constraint on a table from a $type + data blueprint definition. Supports: CheckOneOf (enum validation via = ANY(ARRAY[...])), CheckGreaterThan (single-column > value or cross-column), CheckLessThan (single-column < value or cross-column), CheckNotEqual (cross-column inequality). Builds AST expressions via ast_helpers and inserts into metaschema_public.check_constraint. Graceful: skips if a constraint with the same name already exists.\n\nUsage: provision-check-constraint [OPTIONS]\n' - ); - process.exit(0); - } - const answers = await prompter.prompt(argv, [ - { - type: 'text', - name: 'input', - message: - 'The exclusive input argument for this mutation. An object type, make sure to see documentation for this object\u2019s fields.', - required: true, - }, - ]); - const client = getClient(); - const parsedAnswers = unflattenDotNotation(answers); - const selectFields = buildSelectFromPaths((argv.select as string) ?? 'clientMutationId'); - const result = await client.mutation - .provisionCheckConstraint( - parsedAnswers as unknown as ProvisionCheckConstraintVariables, - { - select: selectFields, - } as unknown as { - select: ProvisionCheckConstraintPayloadSelect; - } - ) - .execute(); - console.log(JSON.stringify(result, null, 2)); - } catch (error) { - console.error('Failed: provisionCheckConstraint'); - if (error instanceof Error) { - console.error(error.message); - } - process.exit(1); - } -}; diff --git a/sdk/constructive-cli/src/modules/cli/commands/provision-relation.ts b/sdk/constructive-cli/src/modules/cli/commands/provision-relation.ts deleted file mode 100644 index 3d924f2028..0000000000 --- a/sdk/constructive-cli/src/modules/cli/commands/provision-relation.ts +++ /dev/null @@ -1,53 +0,0 @@ -/** - * CLI command for mutation provisionRelation - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ -import { CLIOptions, Inquirerer } from 'inquirerer'; -import { getClient } from '../executor'; -import { unflattenDotNotation, buildSelectFromPaths } from '../utils'; -import type { ProvisionRelationVariables } from '../../orm/mutation'; -import type { ProvisionRelationPayloadSelect } from '../../orm/input-types'; -export default async ( - argv: Partial>, - prompter: Inquirerer, - _options: CLIOptions -) => { - try { - if (argv.help || argv.h) { - console.log( - '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\nUsage: provision-relation [OPTIONS]\n' - ); - process.exit(0); - } - const answers = await prompter.prompt(argv, [ - { - type: 'text', - name: 'input', - message: - 'The exclusive input argument for this mutation. An object type, make sure to see documentation for this object\u2019s fields.', - required: true, - }, - ]); - const client = getClient(); - const parsedAnswers = unflattenDotNotation(answers); - const selectFields = buildSelectFromPaths((argv.select as string) ?? 'clientMutationId'); - const result = await client.mutation - .provisionRelation( - parsedAnswers as unknown as ProvisionRelationVariables, - { - select: selectFields, - } as unknown as { - select: ProvisionRelationPayloadSelect; - } - ) - .execute(); - console.log(JSON.stringify(result, null, 2)); - } catch (error) { - console.error('Failed: provisionRelation'); - if (error instanceof Error) { - console.error(error.message); - } - process.exit(1); - } -}; diff --git a/sdk/constructive-cli/src/modules/cli/commands/provision-spatial-relation.ts b/sdk/constructive-cli/src/modules/cli/commands/provision-spatial-relation.ts deleted file mode 100644 index fd46815bb8..0000000000 --- a/sdk/constructive-cli/src/modules/cli/commands/provision-spatial-relation.ts +++ /dev/null @@ -1,53 +0,0 @@ -/** - * CLI command for mutation provisionSpatialRelation - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ -import { CLIOptions, Inquirerer } from 'inquirerer'; -import { getClient } from '../executor'; -import { unflattenDotNotation, buildSelectFromPaths } from '../utils'; -import type { ProvisionSpatialRelationVariables } from '../../orm/mutation'; -import type { ProvisionSpatialRelationPayloadSelect } from '../../orm/input-types'; -export default async ( - argv: Partial>, - prompter: Inquirerer, - _options: CLIOptions -) => { - try { - if (argv.help || argv.h) { - console.log( - '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\nUsage: provision-spatial-relation [OPTIONS]\n' - ); - process.exit(0); - } - const answers = await prompter.prompt(argv, [ - { - type: 'text', - name: 'input', - message: - 'The exclusive input argument for this mutation. An object type, make sure to see documentation for this object\u2019s fields.', - required: true, - }, - ]); - const client = getClient(); - const parsedAnswers = unflattenDotNotation(answers); - const selectFields = buildSelectFromPaths((argv.select as string) ?? 'clientMutationId'); - const result = await client.mutation - .provisionSpatialRelation( - parsedAnswers as unknown as ProvisionSpatialRelationVariables, - { - select: selectFields, - } as unknown as { - select: ProvisionSpatialRelationPayloadSelect; - } - ) - .execute(); - console.log(JSON.stringify(result, null, 2)); - } catch (error) { - console.error('Failed: provisionSpatialRelation'); - if (error instanceof Error) { - console.error(error.message); - } - process.exit(1); - } -}; diff --git a/sdk/constructive-cli/src/modules/cli/commands/rate-limit-meters-module.ts b/sdk/constructive-cli/src/modules/cli/commands/rate-limit-meters-module.ts index ea629fc4ff..9f98c2603d 100644 --- a/sdk/constructive-cli/src/modules/cli/commands/rate-limit-meters-module.ts +++ b/sdk/constructive-cli/src/modules/cli/commands/rate-limit-meters-module.ts @@ -19,7 +19,7 @@ const fieldSchema: FieldSchema = { apiName: 'string', checkRateLimitFunction: 'string', databaseId: 'uuid', - defaultPermissions: 'string', + defaultCapabilities: 'string', id: 'uuid', prefix: 'string', privateApiName: 'string', @@ -88,7 +88,7 @@ async function handleList(argv: Partial>, _prompter: Inq apiName: true, checkRateLimitFunction: true, databaseId: true, - defaultPermissions: true, + defaultCapabilities: true, id: true, prefix: true, privateApiName: true, @@ -129,7 +129,7 @@ async function handleFindFirst(argv: Partial>, _prompter apiName: true, checkRateLimitFunction: true, databaseId: true, - defaultPermissions: true, + defaultCapabilities: true, id: true, prefix: true, privateApiName: true, @@ -182,7 +182,7 @@ async function handleGet(argv: Partial>, prompter: Inqui apiName: true, checkRateLimitFunction: true, databaseId: true, - defaultPermissions: true, + defaultCapabilities: true, id: true, prefix: true, privateApiName: true, @@ -233,8 +233,8 @@ async function handleCreate(argv: Partial>, prompter: In }, { type: 'text', - name: 'defaultPermissions', - message: 'defaultPermissions', + name: 'defaultCapabilities', + message: 'defaultCapabilities', required: false, skipPrompt: true, }, @@ -335,7 +335,7 @@ async function handleCreate(argv: Partial>, prompter: In apiName: cleanedData.apiName, checkRateLimitFunction: cleanedData.checkRateLimitFunction, databaseId: cleanedData.databaseId, - defaultPermissions: cleanedData.defaultPermissions, + defaultCapabilities: cleanedData.defaultCapabilities, prefix: cleanedData.prefix, privateApiName: cleanedData.privateApiName, privateSchemaId: cleanedData.privateSchemaId, @@ -353,7 +353,7 @@ async function handleCreate(argv: Partial>, prompter: In apiName: true, checkRateLimitFunction: true, databaseId: true, - defaultPermissions: true, + defaultCapabilities: true, id: true, prefix: true, privateApiName: true, @@ -410,8 +410,8 @@ async function handleUpdate(argv: Partial>, prompter: In }, { type: 'text', - name: 'defaultPermissions', - message: 'defaultPermissions', + name: 'defaultCapabilities', + message: 'defaultCapabilities', required: false, skipPrompt: true, }, @@ -512,7 +512,7 @@ async function handleUpdate(argv: Partial>, prompter: In apiName: cleanedData.apiName, checkRateLimitFunction: cleanedData.checkRateLimitFunction, databaseId: cleanedData.databaseId, - defaultPermissions: cleanedData.defaultPermissions, + defaultCapabilities: cleanedData.defaultCapabilities, prefix: cleanedData.prefix, privateApiName: cleanedData.privateApiName, privateSchemaId: cleanedData.privateSchemaId, @@ -530,7 +530,7 @@ async function handleUpdate(argv: Partial>, prompter: In apiName: true, checkRateLimitFunction: true, databaseId: true, - defaultPermissions: true, + defaultCapabilities: true, id: true, prefix: true, privateApiName: true, diff --git a/sdk/constructive-cli/src/modules/cli/commands/resolve-blueprint-field.ts b/sdk/constructive-cli/src/modules/cli/commands/resolve-blueprint-field.ts deleted file mode 100644 index 020df9055a..0000000000 --- a/sdk/constructive-cli/src/modules/cli/commands/resolve-blueprint-field.ts +++ /dev/null @@ -1,50 +0,0 @@ -/** - * CLI command for query resolveBlueprintField - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ -import { CLIOptions, Inquirerer } from 'inquirerer'; -import { getClient } from '../executor'; -import type { ResolveBlueprintFieldVariables } from '../../orm/query'; -export default async ( - argv: Partial>, - prompter: Inquirerer, - _options: CLIOptions -) => { - try { - if (argv.help || argv.h) { - console.log( - '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\nUsage: resolve-blueprint-field [OPTIONS]\n' - ); - process.exit(0); - } - const answers = await prompter.prompt(argv, [ - { - type: 'text', - name: 'databaseId', - message: 'databaseId', - }, - { - type: 'text', - name: 'fieldName', - message: 'fieldName', - }, - { - type: 'text', - name: 'tableId', - message: 'tableId', - }, - ]); - const client = getClient(); - const result = await client.query - .resolveBlueprintField(answers as unknown as ResolveBlueprintFieldVariables) - .execute(); - console.log(JSON.stringify(result, null, 2)); - } catch (error) { - console.error('Failed: resolveBlueprintField'); - if (error instanceof Error) { - console.error(error.message); - } - process.exit(1); - } -}; diff --git a/sdk/constructive-cli/src/modules/cli/commands/resolve-blueprint-table.ts b/sdk/constructive-cli/src/modules/cli/commands/resolve-blueprint-table.ts deleted file mode 100644 index 8dbd6f1b8b..0000000000 --- a/sdk/constructive-cli/src/modules/cli/commands/resolve-blueprint-table.ts +++ /dev/null @@ -1,60 +0,0 @@ -/** - * CLI command for query resolveBlueprintTable - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ -import { CLIOptions, Inquirerer } from 'inquirerer'; -import { getClient } from '../executor'; -import type { ResolveBlueprintTableVariables } from '../../orm/query'; -export default async ( - argv: Partial>, - prompter: Inquirerer, - _options: CLIOptions -) => { - try { - if (argv.help || argv.h) { - console.log( - '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\nUsage: resolve-blueprint-table [OPTIONS]\n' - ); - process.exit(0); - } - const answers = await prompter.prompt(argv, [ - { - type: 'text', - name: 'databaseId', - message: 'databaseId', - }, - { - type: 'text', - name: 'defaultSchemaId', - message: 'defaultSchemaId', - }, - { - type: 'text', - name: 'schemaName', - message: 'schemaName', - }, - { - type: 'text', - name: 'tableMap', - message: 'tableMap', - }, - { - type: 'text', - name: 'tableName', - message: 'tableName', - }, - ]); - const client = getClient(); - const result = await client.query - .resolveBlueprintTable(answers as unknown as ResolveBlueprintTableVariables) - .execute(); - console.log(JSON.stringify(result, null, 2)); - } catch (error) { - console.error('Failed: resolveBlueprintTable'); - if (error instanceof Error) { - console.error(error.message); - } - process.exit(1); - } -}; diff --git a/sdk/constructive-cli/src/modules/cli/commands/resource-module.ts b/sdk/constructive-cli/src/modules/cli/commands/resource-module.ts index 5cf3108495..ea841e86cb 100644 --- a/sdk/constructive-cli/src/modules/cli/commands/resource-module.ts +++ b/sdk/constructive-cli/src/modules/cli/commands/resource-module.ts @@ -18,7 +18,7 @@ import type { FindManyArgs, FindFirstArgs } from '../../orm/select-types'; const fieldSchema: FieldSchema = { apiName: 'string', databaseId: 'uuid', - defaultPermissions: 'string', + defaultCapabilities: 'string', entityField: 'string', entityTableId: 'uuid', id: 'uuid', @@ -106,7 +106,7 @@ async function handleList(argv: Partial>, _prompter: Inq const defaultSelect = { apiName: true, databaseId: true, - defaultPermissions: true, + defaultCapabilities: true, entityField: true, entityTableId: true, id: true, @@ -162,7 +162,7 @@ async function handleFindFirst(argv: Partial>, _prompter const defaultSelect = { apiName: true, databaseId: true, - defaultPermissions: true, + defaultCapabilities: true, entityField: true, entityTableId: true, id: true, @@ -230,7 +230,7 @@ async function handleGet(argv: Partial>, prompter: Inqui select: { apiName: true, databaseId: true, - defaultPermissions: true, + defaultCapabilities: true, entityField: true, entityTableId: true, id: true, @@ -294,8 +294,8 @@ async function handleCreate(argv: Partial>, prompter: In }, { type: 'text', - name: 'defaultPermissions', - message: 'defaultPermissions', + name: 'defaultCapabilities', + message: 'defaultCapabilities', required: false, skipPrompt: true, }, @@ -534,7 +534,7 @@ async function handleCreate(argv: Partial>, prompter: In data: { apiName: cleanedData.apiName, databaseId: cleanedData.databaseId, - defaultPermissions: cleanedData.defaultPermissions, + defaultCapabilities: cleanedData.defaultCapabilities, entityField: cleanedData.entityField, entityTableId: cleanedData.entityTableId, installationStoreName: cleanedData.installationStoreName, @@ -571,7 +571,7 @@ async function handleCreate(argv: Partial>, prompter: In select: { apiName: true, databaseId: true, - defaultPermissions: true, + defaultCapabilities: true, entityField: true, entityTableId: true, id: true, @@ -641,8 +641,8 @@ async function handleUpdate(argv: Partial>, prompter: In }, { type: 'text', - name: 'defaultPermissions', - message: 'defaultPermissions', + name: 'defaultCapabilities', + message: 'defaultCapabilities', required: false, skipPrompt: true, }, @@ -881,7 +881,7 @@ async function handleUpdate(argv: Partial>, prompter: In data: { apiName: cleanedData.apiName, databaseId: cleanedData.databaseId, - defaultPermissions: cleanedData.defaultPermissions, + defaultCapabilities: cleanedData.defaultCapabilities, entityField: cleanedData.entityField, entityTableId: cleanedData.entityTableId, installationStoreName: cleanedData.installationStoreName, @@ -918,7 +918,7 @@ async function handleUpdate(argv: Partial>, prompter: In select: { apiName: true, databaseId: true, - defaultPermissions: true, + defaultCapabilities: true, entityField: true, entityTableId: true, id: true, diff --git a/sdk/constructive-cli/src/modules/cli/commands/route-module.ts b/sdk/constructive-cli/src/modules/cli/commands/route-module.ts index 695b24b67d..2e2b81a1c9 100644 --- a/sdk/constructive-cli/src/modules/cli/commands/route-module.ts +++ b/sdk/constructive-cli/src/modules/cli/commands/route-module.ts @@ -17,9 +17,11 @@ import type { import type { FindManyArgs, FindFirstArgs } from '../../orm/select-types'; const fieldSchema: FieldSchema = { apiName: 'string', + appLinksFunctionName: 'string', catalogModuleId: 'uuid', databaseId: 'uuid', - defaultPermissions: 'string', + deepLinkFunctionName: 'string', + defaultCapabilities: 'string', domainModuleId: 'uuid', entityField: 'string', entityTableId: 'uuid', @@ -93,9 +95,11 @@ async function handleList(argv: Partial>, _prompter: Inq try { const defaultSelect = { apiName: true, + appLinksFunctionName: true, catalogModuleId: true, databaseId: true, - defaultPermissions: true, + deepLinkFunctionName: true, + defaultCapabilities: true, domainModuleId: true, entityField: true, entityTableId: true, @@ -137,9 +141,11 @@ async function handleFindFirst(argv: Partial>, _prompter try { const defaultSelect = { apiName: true, + appLinksFunctionName: true, catalogModuleId: true, databaseId: true, - defaultPermissions: true, + deepLinkFunctionName: true, + defaultCapabilities: true, domainModuleId: true, entityField: true, entityTableId: true, @@ -193,9 +199,11 @@ async function handleGet(argv: Partial>, prompter: Inqui id: answers.id as string, select: { apiName: true, + appLinksFunctionName: true, catalogModuleId: true, databaseId: true, - defaultPermissions: true, + deepLinkFunctionName: true, + defaultCapabilities: true, domainModuleId: true, entityField: true, entityTableId: true, @@ -238,6 +246,13 @@ async function handleCreate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'text', + name: 'appLinksFunctionName', + message: 'appLinksFunctionName', + required: false, + skipPrompt: true, + }, { type: 'text', name: 'catalogModuleId', @@ -253,8 +268,15 @@ async function handleCreate(argv: Partial>, prompter: In }, { type: 'text', - name: 'defaultPermissions', - message: 'defaultPermissions', + name: 'deepLinkFunctionName', + message: 'deepLinkFunctionName', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'defaultCapabilities', + message: 'defaultCapabilities', required: false, skipPrompt: true, }, @@ -401,9 +423,11 @@ async function handleCreate(argv: Partial>, prompter: In .create({ data: { apiName: cleanedData.apiName, + appLinksFunctionName: cleanedData.appLinksFunctionName, catalogModuleId: cleanedData.catalogModuleId, databaseId: cleanedData.databaseId, - defaultPermissions: cleanedData.defaultPermissions, + deepLinkFunctionName: cleanedData.deepLinkFunctionName, + defaultCapabilities: cleanedData.defaultCapabilities, domainModuleId: cleanedData.domainModuleId, entityField: cleanedData.entityField, entityTableId: cleanedData.entityTableId, @@ -426,9 +450,11 @@ async function handleCreate(argv: Partial>, prompter: In }, select: { apiName: true, + appLinksFunctionName: true, catalogModuleId: true, databaseId: true, - defaultPermissions: true, + deepLinkFunctionName: true, + defaultCapabilities: true, domainModuleId: true, entityField: true, entityTableId: true, @@ -477,6 +503,13 @@ async function handleUpdate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'text', + name: 'appLinksFunctionName', + message: 'appLinksFunctionName', + required: false, + skipPrompt: true, + }, { type: 'text', name: 'catalogModuleId', @@ -492,8 +525,15 @@ async function handleUpdate(argv: Partial>, prompter: In }, { type: 'text', - name: 'defaultPermissions', - message: 'defaultPermissions', + name: 'deepLinkFunctionName', + message: 'deepLinkFunctionName', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'defaultCapabilities', + message: 'defaultCapabilities', required: false, skipPrompt: true, }, @@ -640,9 +680,11 @@ async function handleUpdate(argv: Partial>, prompter: In }, data: { apiName: cleanedData.apiName, + appLinksFunctionName: cleanedData.appLinksFunctionName, catalogModuleId: cleanedData.catalogModuleId, databaseId: cleanedData.databaseId, - defaultPermissions: cleanedData.defaultPermissions, + deepLinkFunctionName: cleanedData.deepLinkFunctionName, + defaultCapabilities: cleanedData.defaultCapabilities, domainModuleId: cleanedData.domainModuleId, entityField: cleanedData.entityField, entityTableId: cleanedData.entityTableId, @@ -665,9 +707,11 @@ async function handleUpdate(argv: Partial>, prompter: In }, select: { apiName: true, + appLinksFunctionName: true, catalogModuleId: true, databaseId: true, - defaultPermissions: true, + deepLinkFunctionName: true, + defaultCapabilities: true, domainModuleId: true, entityField: true, entityTableId: true, diff --git a/sdk/constructive-cli/src/modules/cli/commands/scope-types-module.ts b/sdk/constructive-cli/src/modules/cli/commands/scope-types-module.ts new file mode 100644 index 0000000000..bb64174ac0 --- /dev/null +++ b/sdk/constructive-cli/src/modules/cli/commands/scope-types-module.ts @@ -0,0 +1,317 @@ +/** + * CLI commands for ScopeTypesModule + * @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 { + CreateScopeTypesModuleInput, + ScopeTypesModulePatch, + ScopeTypesModuleSelect, + ScopeTypesModuleFilter, + ScopeTypesModuleOrderBy, +} from '../../orm/input-types'; +import type { FindManyArgs, FindFirstArgs } from '../../orm/select-types'; +const fieldSchema: FieldSchema = { + databaseId: 'uuid', + id: 'uuid', + privateSchemaName: 'string', + schemaId: 'uuid', + scopeTypesTableId: 'uuid', +}; +const usage = + '\nscope-types-module \n\nCommands:\n list List scopeTypesModule records\n find-first Find first matching scopeTypesModule record\n get Get a scopeTypesModule by ID\n create Create a new scopeTypesModule\n update Update an existing scopeTypesModule\n delete Delete a scopeTypesModule\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, + id: true, + privateSchemaName: true, + schemaId: true, + scopeTypesTableId: true, + }; + const findManyArgs = parseFindManyArgs< + FindManyArgs & { + select: ScopeTypesModuleSelect; + } + >(argv, defaultSelect); + const client = getClient(); + const result = await client.scopeTypesModule.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, + id: true, + privateSchemaName: true, + schemaId: true, + scopeTypesTableId: true, + }; + const findFirstArgs = parseFindFirstArgs< + FindFirstArgs & { + select: ScopeTypesModuleSelect; + } + >(argv, defaultSelect); + const client = getClient(); + const result = await client.scopeTypesModule.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.scopeTypesModule + .findOne({ + id: answers.id as string, + select: { + databaseId: true, + id: true, + privateSchemaName: true, + schemaId: true, + scopeTypesTableId: 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: 'privateSchemaName', + message: 'privateSchemaName', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'schemaId', + message: 'schemaId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'scopeTypesTableId', + message: 'scopeTypesTableId', + required: false, + skipPrompt: true, + }, + ]); + const answers = coerceAnswers(rawAnswers, fieldSchema); + const cleanedData = stripUndefined( + answers, + fieldSchema + ) as CreateScopeTypesModuleInput['scopeTypesModule']; + const client = getClient(); + const result = await client.scopeTypesModule + .create({ + data: { + databaseId: cleanedData.databaseId, + privateSchemaName: cleanedData.privateSchemaName, + schemaId: cleanedData.schemaId, + scopeTypesTableId: cleanedData.scopeTypesTableId, + }, + select: { + databaseId: true, + id: true, + privateSchemaName: true, + schemaId: true, + scopeTypesTableId: 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: 'privateSchemaName', + message: 'privateSchemaName', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'schemaId', + message: 'schemaId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'scopeTypesTableId', + message: 'scopeTypesTableId', + required: false, + skipPrompt: true, + }, + ]); + const answers = coerceAnswers(rawAnswers, fieldSchema); + const cleanedData = stripUndefined(answers, fieldSchema) as ScopeTypesModulePatch; + const client = getClient(); + const result = await client.scopeTypesModule + .update({ + where: { + id: answers.id as string, + }, + data: { + databaseId: cleanedData.databaseId, + privateSchemaName: cleanedData.privateSchemaName, + schemaId: cleanedData.schemaId, + scopeTypesTableId: cleanedData.scopeTypesTableId, + }, + select: { + databaseId: true, + id: true, + privateSchemaName: true, + schemaId: true, + scopeTypesTableId: 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.scopeTypesModule + .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/modules/cli/commands/site-surface-module.ts b/sdk/constructive-cli/src/modules/cli/commands/site-surface-module.ts index 21846444ae..0580e48726 100644 --- a/sdk/constructive-cli/src/modules/cli/commands/site-surface-module.ts +++ b/sdk/constructive-cli/src/modules/cli/commands/site-surface-module.ts @@ -19,7 +19,7 @@ const fieldSchema: FieldSchema = { apiName: 'string', catalogModuleId: 'uuid', databaseId: 'uuid', - defaultPermissions: 'string', + defaultCapabilities: 'string', entityField: 'string', entityTableId: 'uuid', id: 'uuid', @@ -103,7 +103,7 @@ async function handleList(argv: Partial>, _prompter: Inq apiName: true, catalogModuleId: true, databaseId: true, - defaultPermissions: true, + defaultCapabilities: true, entityField: true, entityTableId: true, id: true, @@ -155,7 +155,7 @@ async function handleFindFirst(argv: Partial>, _prompter apiName: true, catalogModuleId: true, databaseId: true, - defaultPermissions: true, + defaultCapabilities: true, entityField: true, entityTableId: true, id: true, @@ -219,7 +219,7 @@ async function handleGet(argv: Partial>, prompter: Inqui apiName: true, catalogModuleId: true, databaseId: true, - defaultPermissions: true, + defaultCapabilities: true, entityField: true, entityTableId: true, id: true, @@ -285,8 +285,8 @@ async function handleCreate(argv: Partial>, prompter: In }, { type: 'text', - name: 'defaultPermissions', - message: 'defaultPermissions', + name: 'defaultCapabilities', + message: 'defaultCapabilities', required: false, skipPrompt: true, }, @@ -491,7 +491,7 @@ async function handleCreate(argv: Partial>, prompter: In apiName: cleanedData.apiName, catalogModuleId: cleanedData.catalogModuleId, databaseId: cleanedData.databaseId, - defaultPermissions: cleanedData.defaultPermissions, + defaultCapabilities: cleanedData.defaultCapabilities, entityField: cleanedData.entityField, entityTableId: cleanedData.entityTableId, policies: cleanedData.policies, @@ -524,7 +524,7 @@ async function handleCreate(argv: Partial>, prompter: In apiName: true, catalogModuleId: true, databaseId: true, - defaultPermissions: true, + defaultCapabilities: true, entityField: true, entityTableId: true, id: true, @@ -596,8 +596,8 @@ async function handleUpdate(argv: Partial>, prompter: In }, { type: 'text', - name: 'defaultPermissions', - message: 'defaultPermissions', + name: 'defaultCapabilities', + message: 'defaultCapabilities', required: false, skipPrompt: true, }, @@ -802,7 +802,7 @@ async function handleUpdate(argv: Partial>, prompter: In apiName: cleanedData.apiName, catalogModuleId: cleanedData.catalogModuleId, databaseId: cleanedData.databaseId, - defaultPermissions: cleanedData.defaultPermissions, + defaultCapabilities: cleanedData.defaultCapabilities, entityField: cleanedData.entityField, entityTableId: cleanedData.entityTableId, policies: cleanedData.policies, @@ -835,7 +835,7 @@ async function handleUpdate(argv: Partial>, prompter: In apiName: true, catalogModuleId: true, databaseId: true, - defaultPermissions: true, + defaultCapabilities: true, entityField: true, entityTableId: true, id: true, diff --git a/sdk/constructive-cli/src/modules/cli/commands/storage-module.ts b/sdk/constructive-cli/src/modules/cli/commands/storage-module.ts index fd76be03e5..6e1b597870 100644 --- a/sdk/constructive-cli/src/modules/cli/commands/storage-module.ts +++ b/sdk/constructive-cli/src/modules/cli/commands/storage-module.ts @@ -24,8 +24,8 @@ const fieldSchema: FieldSchema = { catalogModuleId: 'uuid', confirmUploadDelay: 'string', databaseId: 'uuid', + defaultCapabilities: 'string', defaultMaxFileSize: 'int', - defaultPermissions: 'string', downloadUrlExpirySeconds: 'int', endpoint: 'string', entityField: 'string', @@ -117,8 +117,8 @@ async function handleList(argv: Partial>, _prompter: Inq catalogModuleId: true, confirmUploadDelay: true, databaseId: true, + defaultCapabilities: true, defaultMaxFileSize: true, - defaultPermissions: true, downloadUrlExpirySeconds: true, endpoint: true, entityField: true, @@ -178,8 +178,8 @@ async function handleFindFirst(argv: Partial>, _prompter catalogModuleId: true, confirmUploadDelay: true, databaseId: true, + defaultCapabilities: true, defaultMaxFileSize: true, - defaultPermissions: true, downloadUrlExpirySeconds: true, endpoint: true, entityField: true, @@ -251,8 +251,8 @@ async function handleGet(argv: Partial>, prompter: Inqui catalogModuleId: true, confirmUploadDelay: true, databaseId: true, + defaultCapabilities: true, defaultMaxFileSize: true, - defaultPermissions: true, downloadUrlExpirySeconds: true, endpoint: true, entityField: true, @@ -356,15 +356,15 @@ async function handleCreate(argv: Partial>, prompter: In }, { type: 'text', - name: 'defaultMaxFileSize', - message: 'defaultMaxFileSize', + name: 'defaultCapabilities', + message: 'defaultCapabilities', required: false, skipPrompt: true, }, { type: 'text', - name: 'defaultPermissions', - message: 'defaultPermissions', + name: 'defaultMaxFileSize', + message: 'defaultMaxFileSize', required: false, skipPrompt: true, }, @@ -595,8 +595,8 @@ async function handleCreate(argv: Partial>, prompter: In catalogModuleId: cleanedData.catalogModuleId, confirmUploadDelay: cleanedData.confirmUploadDelay, databaseId: cleanedData.databaseId, + defaultCapabilities: cleanedData.defaultCapabilities, defaultMaxFileSize: cleanedData.defaultMaxFileSize, - defaultPermissions: cleanedData.defaultPermissions, downloadUrlExpirySeconds: cleanedData.downloadUrlExpirySeconds, endpoint: cleanedData.endpoint, entityField: cleanedData.entityField, @@ -637,8 +637,8 @@ async function handleCreate(argv: Partial>, prompter: In catalogModuleId: true, confirmUploadDelay: true, databaseId: true, + defaultCapabilities: true, defaultMaxFileSize: true, - defaultPermissions: true, downloadUrlExpirySeconds: true, endpoint: true, entityField: true, @@ -748,15 +748,15 @@ async function handleUpdate(argv: Partial>, prompter: In }, { type: 'text', - name: 'defaultMaxFileSize', - message: 'defaultMaxFileSize', + name: 'defaultCapabilities', + message: 'defaultCapabilities', required: false, skipPrompt: true, }, { type: 'text', - name: 'defaultPermissions', - message: 'defaultPermissions', + name: 'defaultMaxFileSize', + message: 'defaultMaxFileSize', required: false, skipPrompt: true, }, @@ -987,8 +987,8 @@ async function handleUpdate(argv: Partial>, prompter: In catalogModuleId: cleanedData.catalogModuleId, confirmUploadDelay: cleanedData.confirmUploadDelay, databaseId: cleanedData.databaseId, + defaultCapabilities: cleanedData.defaultCapabilities, defaultMaxFileSize: cleanedData.defaultMaxFileSize, - defaultPermissions: cleanedData.defaultPermissions, downloadUrlExpirySeconds: cleanedData.downloadUrlExpirySeconds, endpoint: cleanedData.endpoint, entityField: cleanedData.entityField, @@ -1029,8 +1029,8 @@ async function handleUpdate(argv: Partial>, prompter: In catalogModuleId: true, confirmUploadDelay: true, databaseId: true, + defaultCapabilities: true, defaultMaxFileSize: true, - defaultPermissions: true, downloadUrlExpirySeconds: true, endpoint: true, entityField: true, diff --git a/sdk/constructive-cli/src/modules/cli/commands/user-settings-security-module.ts b/sdk/constructive-cli/src/modules/cli/commands/user-settings-security-module.ts new file mode 100644 index 0000000000..0d227bba3a --- /dev/null +++ b/sdk/constructive-cli/src/modules/cli/commands/user-settings-security-module.ts @@ -0,0 +1,369 @@ +/** + * CLI commands for UserSettingsSecurityModule + * @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 { + CreateUserSettingsSecurityModuleInput, + UserSettingsSecurityModulePatch, + UserSettingsSecurityModuleSelect, + UserSettingsSecurityModuleFilter, + UserSettingsSecurityModuleOrderBy, +} from '../../orm/input-types'; +import type { FindManyArgs, FindFirstArgs } from '../../orm/select-types'; +const fieldSchema: FieldSchema = { + apiName: 'string', + databaseId: 'uuid', + id: 'uuid', + ownerTableId: 'uuid', + schemaId: 'uuid', + tableId: 'uuid', + tableName: 'string', +}; +const usage = + '\nuser-settings-security-module \n\nCommands:\n list List userSettingsSecurityModule records\n find-first Find first matching userSettingsSecurityModule record\n get Get a userSettingsSecurityModule by ID\n create Create a new userSettingsSecurityModule\n update Update an existing userSettingsSecurityModule\n delete Delete a userSettingsSecurityModule\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 = { + apiName: true, + databaseId: true, + id: true, + ownerTableId: true, + schemaId: true, + tableId: true, + tableName: true, + }; + const findManyArgs = parseFindManyArgs< + FindManyArgs< + UserSettingsSecurityModuleSelect, + UserSettingsSecurityModuleFilter, + UserSettingsSecurityModuleOrderBy + > & { + select: UserSettingsSecurityModuleSelect; + } + >(argv, defaultSelect); + const client = getClient(); + const result = await client.userSettingsSecurityModule.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 = { + apiName: true, + databaseId: true, + id: true, + ownerTableId: true, + schemaId: true, + tableId: true, + tableName: true, + }; + const findFirstArgs = parseFindFirstArgs< + FindFirstArgs< + UserSettingsSecurityModuleSelect, + UserSettingsSecurityModuleFilter, + UserSettingsSecurityModuleOrderBy + > & { + select: UserSettingsSecurityModuleSelect; + } + >(argv, defaultSelect); + const client = getClient(); + const result = await client.userSettingsSecurityModule.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.userSettingsSecurityModule + .findOne({ + id: answers.id as string, + select: { + apiName: true, + databaseId: true, + id: true, + ownerTableId: true, + schemaId: true, + tableId: true, + tableName: 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: 'apiName', + message: 'apiName', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'databaseId', + message: 'databaseId', + required: true, + }, + { + type: 'text', + name: 'ownerTableId', + message: 'ownerTableId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'schemaId', + message: 'schemaId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'tableId', + message: 'tableId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'tableName', + message: 'tableName', + required: false, + skipPrompt: true, + }, + ]); + const answers = coerceAnswers(rawAnswers, fieldSchema); + const cleanedData = stripUndefined( + answers, + fieldSchema + ) as CreateUserSettingsSecurityModuleInput['userSettingsSecurityModule']; + const client = getClient(); + const result = await client.userSettingsSecurityModule + .create({ + data: { + apiName: cleanedData.apiName, + databaseId: cleanedData.databaseId, + ownerTableId: cleanedData.ownerTableId, + schemaId: cleanedData.schemaId, + tableId: cleanedData.tableId, + tableName: cleanedData.tableName, + }, + select: { + apiName: true, + databaseId: true, + id: true, + ownerTableId: true, + schemaId: true, + tableId: true, + tableName: 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: 'apiName', + message: 'apiName', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'databaseId', + message: 'databaseId', + required: false, + }, + { + type: 'text', + name: 'ownerTableId', + message: 'ownerTableId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'schemaId', + message: 'schemaId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'tableId', + message: 'tableId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'tableName', + message: 'tableName', + required: false, + skipPrompt: true, + }, + ]); + const answers = coerceAnswers(rawAnswers, fieldSchema); + const cleanedData = stripUndefined(answers, fieldSchema) as UserSettingsSecurityModulePatch; + const client = getClient(); + const result = await client.userSettingsSecurityModule + .update({ + where: { + id: answers.id as string, + }, + data: { + apiName: cleanedData.apiName, + databaseId: cleanedData.databaseId, + ownerTableId: cleanedData.ownerTableId, + schemaId: cleanedData.schemaId, + tableId: cleanedData.tableId, + tableName: cleanedData.tableName, + }, + select: { + apiName: true, + databaseId: true, + id: true, + ownerTableId: true, + schemaId: true, + tableId: true, + tableName: 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.userSettingsSecurityModule + .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/modules/cli/commands/webhook-module.ts b/sdk/constructive-cli/src/modules/cli/commands/webhook-module.ts index 6d916132ed..7b1d4f3f7a 100644 --- a/sdk/constructive-cli/src/modules/cli/commands/webhook-module.ts +++ b/sdk/constructive-cli/src/modules/cli/commands/webhook-module.ts @@ -18,7 +18,7 @@ import type { FindManyArgs, FindFirstArgs } from '../../orm/select-types'; const fieldSchema: FieldSchema = { apiName: 'string', databaseId: 'uuid', - defaultPermissions: 'string', + defaultCapabilities: 'string', entityField: 'string', entityTableId: 'uuid', functionInvocationModuleId: 'uuid', @@ -93,7 +93,7 @@ async function handleList(argv: Partial>, _prompter: Inq const defaultSelect = { apiName: true, databaseId: true, - defaultPermissions: true, + defaultCapabilities: true, entityField: true, entityTableId: true, functionInvocationModuleId: true, @@ -136,7 +136,7 @@ async function handleFindFirst(argv: Partial>, _prompter const defaultSelect = { apiName: true, databaseId: true, - defaultPermissions: true, + defaultCapabilities: true, entityField: true, entityTableId: true, functionInvocationModuleId: true, @@ -191,7 +191,7 @@ async function handleGet(argv: Partial>, prompter: Inqui select: { apiName: true, databaseId: true, - defaultPermissions: true, + defaultCapabilities: true, entityField: true, entityTableId: true, functionInvocationModuleId: true, @@ -242,8 +242,8 @@ async function handleCreate(argv: Partial>, prompter: In }, { type: 'text', - name: 'defaultPermissions', - message: 'defaultPermissions', + name: 'defaultCapabilities', + message: 'defaultCapabilities', required: false, skipPrompt: true, }, @@ -391,7 +391,7 @@ async function handleCreate(argv: Partial>, prompter: In data: { apiName: cleanedData.apiName, databaseId: cleanedData.databaseId, - defaultPermissions: cleanedData.defaultPermissions, + defaultCapabilities: cleanedData.defaultCapabilities, entityField: cleanedData.entityField, entityTableId: cleanedData.entityTableId, functionInvocationModuleId: cleanedData.functionInvocationModuleId, @@ -415,7 +415,7 @@ async function handleCreate(argv: Partial>, prompter: In select: { apiName: true, databaseId: true, - defaultPermissions: true, + defaultCapabilities: true, entityField: true, entityTableId: true, functionInvocationModuleId: true, @@ -472,8 +472,8 @@ async function handleUpdate(argv: Partial>, prompter: In }, { type: 'text', - name: 'defaultPermissions', - message: 'defaultPermissions', + name: 'defaultCapabilities', + message: 'defaultCapabilities', required: false, skipPrompt: true, }, @@ -621,7 +621,7 @@ async function handleUpdate(argv: Partial>, prompter: In data: { apiName: cleanedData.apiName, databaseId: cleanedData.databaseId, - defaultPermissions: cleanedData.defaultPermissions, + defaultCapabilities: cleanedData.defaultCapabilities, entityField: cleanedData.entityField, entityTableId: cleanedData.entityTableId, functionInvocationModuleId: cleanedData.functionInvocationModuleId, @@ -645,7 +645,7 @@ async function handleUpdate(argv: Partial>, prompter: In select: { apiName: true, databaseId: true, - defaultPermissions: true, + defaultCapabilities: true, entityField: true, entityTableId: true, functionInvocationModuleId: true, diff --git a/sdk/constructive-cli/src/modules/orm/README.md b/sdk/constructive-cli/src/modules/orm/README.md index 7982fe489a..de92f9aee3 100644 --- a/sdk/constructive-cli/src/modules/orm/README.md +++ b/sdk/constructive-cli/src/modules/orm/README.md @@ -29,12 +29,15 @@ const db = createClient({ | `blueprint` | findMany, findOne, create, update, delete | | `blueprintConstruction` | findMany, findOne, create, update, delete | | `blueprintTemplate` | findMany, findOne, create, update, delete | +| `capabilitiesModule` | findMany, findOne, create, update, delete | | `catalogModule` | findMany, findOne, create, update, delete | | `computeLogModule` | findMany, findOne, create, update, delete | | `configSecretsUserModule` | findMany, findOne, create, update, delete | | `connectedAccountsModule` | findMany, findOne, create, update, delete | +| `contentPresetModule` | findMany, findOne, create, update, delete | | `cryptoAddressesModule` | findMany, findOne, create, update, delete | | `cryptoAuthModule` | findMany, findOne, create, update, delete | +| `dataCapabilitiesField` | findMany, findOne, create, update, delete | | `databaseProvisionModule` | findMany, findOne, create, update, delete | | `databaseSettingsModule` | findMany, findOne, create, update, delete | | `dbPoolConfig` | findMany, findOne, create, update, delete | @@ -45,9 +48,11 @@ const db = createClient({ | `denormalizedTableField` | findMany, findOne, create, update, delete | | `devicesModule` | findMany, findOne, create, update, delete | | `domainModule` | findMany, findOne, create, update, delete | +| `emailSenderModule` | findMany, findOne, create, update, delete | | `emailsModule` | findMany, findOne, create, update, delete | | `entityTypeProvision` | findMany, findOne, create, update, delete | | `eventsModule` | findMany, findOne, create, update, delete | +| `fileRefField` | findMany, findOne, create, update, delete | | `functionDeploymentModule` | findMany, findOne, create, update, delete | | `functionInvocationModule` | findMany, findOne, create, update, delete | | `functionModule` | findMany, findOne, create, update, delete | @@ -69,8 +74,8 @@ const db = createClient({ | `merkleStoreModule` | findMany, findOne, create, update, delete | | `namespaceModule` | findMany, findOne, create, update, delete | | `notificationsModule` | findMany, findOne, create, update, delete | +| `oauthRequestsModule` | findMany, findOne, create, update, delete | | `pagesModule` | findMany, findOne, create, update, delete | -| `permissionsModule` | findMany, findOne, create, update, delete | | `phoneNumbersModule` | findMany, findOne, create, update, delete | | `plansModule` | findMany, findOne, create, update, delete | | `principalAuthModule` | findMany, findOne, create, update, delete | @@ -82,6 +87,7 @@ const db = createClient({ | `resourceModule` | findMany, findOne, create, update, delete | | `rlsModule` | findMany, findOne, create, update, delete | | `routeModule` | findMany, findOne, create, update, delete | +| `scopeTypesModule` | findMany, findOne, create, update, delete | | `secureTableProvision` | findMany, findOne, create, update, delete | | `sessionSecretsModule` | findMany, findOne, create, update, delete | | `sessionsModule` | findMany, findOne, create, update, delete | @@ -92,6 +98,7 @@ const db = createClient({ | `userAuthModule` | findMany, findOne, create, update, delete | | `userCredentialsModule` | findMany, findOne, create, update, delete | | `userSettingsModule` | findMany, findOne, create, update, delete | +| `userSettingsSecurityModule` | findMany, findOne, create, update, delete | | `userStateModule` | findMany, findOne, create, update, delete | | `usersModule` | findMany, findOne, create, update, delete | | `webauthnAuthModule` | findMany, findOne, create, update, delete | @@ -112,7 +119,7 @@ CRUD operations for AgentModule records. | `agentTableName` | String | Yes | | `apiName` | String | Yes | | `databaseId` | UUID | Yes | -| `defaultPermissions` | String | Yes | +| `defaultCapabilities` | String | Yes | | `entityField` | String | Yes | | `entityTableId` | UUID | Yes | | `hasAgents` | Boolean | Yes | @@ -149,13 +156,13 @@ CRUD operations for AgentModule records. ```typescript // List all agentModule records -const items = await db.agentModule.findMany({ select: { agentTableId: true, agentTableName: true, apiName: true, databaseId: true, defaultPermissions: true, entityField: true, entityTableId: true, hasAgents: true, hasPlans: true, hasResources: true, id: true, messageTableId: true, messageTableName: true, personaTableId: true, personaTableName: true, planTableId: true, planTableName: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, promptsTableId: true, promptsTableName: true, provisions: true, publicSchemaName: true, resourceTableId: true, resourceTableName: true, resources: true, schemaId: true, scope: true, shared: true, taskTableId: true, taskTableName: true, threadTableId: true, threadTableName: true } }).execute(); +const items = await db.agentModule.findMany({ select: { agentTableId: true, agentTableName: true, apiName: true, databaseId: true, defaultCapabilities: true, entityField: true, entityTableId: true, hasAgents: true, hasPlans: true, hasResources: true, id: true, messageTableId: true, messageTableName: true, personaTableId: true, personaTableName: true, planTableId: true, planTableName: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, promptsTableId: true, promptsTableName: true, provisions: true, publicSchemaName: true, resourceTableId: true, resourceTableName: true, resources: true, schemaId: true, scope: true, shared: true, taskTableId: true, taskTableName: true, threadTableId: true, threadTableName: true } }).execute(); // Get one by id -const item = await db.agentModule.findOne({ id: '', select: { agentTableId: true, agentTableName: true, apiName: true, databaseId: true, defaultPermissions: true, entityField: true, entityTableId: true, hasAgents: true, hasPlans: true, hasResources: true, id: true, messageTableId: true, messageTableName: true, personaTableId: true, personaTableName: true, planTableId: true, planTableName: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, promptsTableId: true, promptsTableName: true, provisions: true, publicSchemaName: true, resourceTableId: true, resourceTableName: true, resources: true, schemaId: true, scope: true, shared: true, taskTableId: true, taskTableName: true, threadTableId: true, threadTableName: true } }).execute(); +const item = await db.agentModule.findOne({ id: '', select: { agentTableId: true, agentTableName: true, apiName: true, databaseId: true, defaultCapabilities: true, entityField: true, entityTableId: true, hasAgents: true, hasPlans: true, hasResources: true, id: true, messageTableId: true, messageTableName: true, personaTableId: true, personaTableName: true, planTableId: true, planTableName: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, promptsTableId: true, promptsTableName: true, provisions: true, publicSchemaName: true, resourceTableId: true, resourceTableName: true, resources: true, schemaId: true, scope: true, shared: true, taskTableId: true, taskTableName: true, threadTableId: true, threadTableName: true } }).execute(); // Create -const created = await db.agentModule.create({ data: { agentTableId: '', agentTableName: '', apiName: '', databaseId: '', defaultPermissions: '', entityField: '', entityTableId: '', hasAgents: '', hasPlans: '', hasResources: '', messageTableId: '', messageTableName: '', personaTableId: '', personaTableName: '', planTableId: '', planTableName: '', policies: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', promptsTableId: '', promptsTableName: '', provisions: '', publicSchemaName: '', resourceTableId: '', resourceTableName: '', resources: '', schemaId: '', scope: '', shared: '', taskTableId: '', taskTableName: '', threadTableId: '', threadTableName: '' }, select: { id: true } }).execute(); +const created = await db.agentModule.create({ data: { agentTableId: '', agentTableName: '', apiName: '', databaseId: '', defaultCapabilities: '', entityField: '', entityTableId: '', hasAgents: '', hasPlans: '', hasResources: '', messageTableId: '', messageTableName: '', personaTableId: '', personaTableName: '', planTableId: '', planTableName: '', policies: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', promptsTableId: '', promptsTableName: '', provisions: '', publicSchemaName: '', resourceTableId: '', resourceTableName: '', resources: '', schemaId: '', scope: '', shared: '', taskTableId: '', taskTableName: '', threadTableId: '', threadTableName: '' }, select: { id: true } }).execute(); // Update const updated = await db.agentModule.update({ where: { id: '' }, data: { agentTableId: '' }, select: { id: true } }).execute(); @@ -183,7 +190,7 @@ CRUD operations for ApiSurfaceModule records. | `corsSettingsTableId` | UUID | Yes | | `corsSettingsTableName` | String | Yes | | `databaseId` | UUID | Yes | -| `defaultPermissions` | String | Yes | +| `defaultCapabilities` | String | Yes | | `entityField` | String | Yes | | `entityTableId` | UUID | Yes | | `id` | UUID | No | @@ -199,13 +206,13 @@ CRUD operations for ApiSurfaceModule records. ```typescript // List all apiSurfaceModule records -const items = await db.apiSurfaceModule.findMany({ select: { apiName: true, apiSchemasTableId: true, apiSchemasTableName: true, apiSettingsTableId: true, apiSettingsTableName: true, apisTableId: true, apisTableName: true, catalogModuleId: true, corsSettingsTableId: true, corsSettingsTableName: true, databaseId: true, defaultPermissions: true, entityField: true, entityTableId: true, id: true, policies: true, prefix: true, privateApiName: true, provisions: true, publicSchemaName: true, schemaId: true, scope: true } }).execute(); +const items = await db.apiSurfaceModule.findMany({ select: { apiName: true, apiSchemasTableId: true, apiSchemasTableName: true, apiSettingsTableId: true, apiSettingsTableName: true, apisTableId: true, apisTableName: true, catalogModuleId: true, corsSettingsTableId: true, corsSettingsTableName: true, databaseId: true, defaultCapabilities: true, entityField: true, entityTableId: true, id: true, policies: true, prefix: true, privateApiName: true, provisions: true, publicSchemaName: true, schemaId: true, scope: true } }).execute(); // Get one by id -const item = await db.apiSurfaceModule.findOne({ id: '', select: { apiName: true, apiSchemasTableId: true, apiSchemasTableName: true, apiSettingsTableId: true, apiSettingsTableName: true, apisTableId: true, apisTableName: true, catalogModuleId: true, corsSettingsTableId: true, corsSettingsTableName: true, databaseId: true, defaultPermissions: true, entityField: true, entityTableId: true, id: true, policies: true, prefix: true, privateApiName: true, provisions: true, publicSchemaName: true, schemaId: true, scope: true } }).execute(); +const item = await db.apiSurfaceModule.findOne({ id: '', select: { apiName: true, apiSchemasTableId: true, apiSchemasTableName: true, apiSettingsTableId: true, apiSettingsTableName: true, apisTableId: true, apisTableName: true, catalogModuleId: true, corsSettingsTableId: true, corsSettingsTableName: true, databaseId: true, defaultCapabilities: true, entityField: true, entityTableId: true, id: true, policies: true, prefix: true, privateApiName: true, provisions: true, publicSchemaName: true, schemaId: true, scope: true } }).execute(); // Create -const created = await db.apiSurfaceModule.create({ data: { apiName: '', apiSchemasTableId: '', apiSchemasTableName: '', apiSettingsTableId: '', apiSettingsTableName: '', apisTableId: '', apisTableName: '', catalogModuleId: '', corsSettingsTableId: '', corsSettingsTableName: '', databaseId: '', defaultPermissions: '', entityField: '', entityTableId: '', policies: '', prefix: '', privateApiName: '', provisions: '', publicSchemaName: '', schemaId: '', scope: '' }, select: { id: true } }).execute(); +const created = await db.apiSurfaceModule.create({ data: { apiName: '', apiSchemasTableId: '', apiSchemasTableName: '', apiSettingsTableId: '', apiSettingsTableName: '', apisTableId: '', apisTableName: '', catalogModuleId: '', corsSettingsTableId: '', corsSettingsTableName: '', databaseId: '', defaultCapabilities: '', entityField: '', entityTableId: '', policies: '', prefix: '', privateApiName: '', provisions: '', publicSchemaName: '', schemaId: '', scope: '' }, select: { id: true } }).execute(); // Update const updated = await db.apiSurfaceModule.update({ where: { id: '' }, data: { apiName: '' }, select: { id: true } }).execute(); @@ -229,7 +236,7 @@ CRUD operations for AppModule records. | `appsTableName` | String | Yes | | `catalogModuleId` | UUID | Yes | | `databaseId` | UUID | Yes | -| `defaultPermissions` | String | Yes | +| `defaultCapabilities` | String | Yes | | `entityField` | String | Yes | | `entityTableId` | UUID | Yes | | `id` | UUID | No | @@ -247,13 +254,13 @@ CRUD operations for AppModule records. ```typescript // List all appModule records -const items = await db.appModule.findMany({ select: { apiName: true, appComponentsTableId: true, appComponentsTableName: true, appsTableId: true, appsTableName: true, catalogModuleId: true, databaseId: true, defaultPermissions: true, entityField: true, entityTableId: true, id: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provisions: true, publicSchemaName: true, schemaId: true, scope: true } }).execute(); +const items = await db.appModule.findMany({ select: { apiName: true, appComponentsTableId: true, appComponentsTableName: true, appsTableId: true, appsTableName: true, catalogModuleId: true, databaseId: true, defaultCapabilities: true, entityField: true, entityTableId: true, id: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provisions: true, publicSchemaName: true, schemaId: true, scope: true } }).execute(); // Get one by id -const item = await db.appModule.findOne({ id: '', select: { apiName: true, appComponentsTableId: true, appComponentsTableName: true, appsTableId: true, appsTableName: true, catalogModuleId: true, databaseId: true, defaultPermissions: true, entityField: true, entityTableId: true, id: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provisions: true, publicSchemaName: true, schemaId: true, scope: true } }).execute(); +const item = await db.appModule.findOne({ id: '', select: { apiName: true, appComponentsTableId: true, appComponentsTableName: true, appsTableId: true, appsTableName: true, catalogModuleId: true, databaseId: true, defaultCapabilities: true, entityField: true, entityTableId: true, id: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provisions: true, publicSchemaName: true, schemaId: true, scope: true } }).execute(); // Create -const created = await db.appModule.create({ data: { apiName: '', appComponentsTableId: '', appComponentsTableName: '', appsTableId: '', appsTableName: '', catalogModuleId: '', databaseId: '', defaultPermissions: '', entityField: '', entityTableId: '', policies: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', provisions: '', publicSchemaName: '', schemaId: '', scope: '' }, select: { id: true } }).execute(); +const created = await db.appModule.create({ data: { apiName: '', appComponentsTableId: '', appComponentsTableName: '', appsTableId: '', appsTableName: '', catalogModuleId: '', databaseId: '', defaultCapabilities: '', entityField: '', entityTableId: '', policies: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', provisions: '', publicSchemaName: '', schemaId: '', scope: '' }, select: { id: true } }).execute(); // Update const updated = await db.appModule.update({ where: { id: '' }, data: { apiName: '' }, select: { id: true } }).execute(); @@ -274,8 +281,8 @@ CRUD operations for BillingModule records. | `balancesTableId` | UUID | Yes | | `balancesTableName` | String | Yes | | `databaseId` | UUID | Yes | +| `defaultCapabilities` | String | Yes | | `defaultMeterCatalog` | JSON | Yes | -| `defaultPermissions` | String | Yes | | `id` | UUID | No | | `ledgerTableId` | UUID | Yes | | `ledgerTableName` | String | Yes | @@ -303,13 +310,13 @@ CRUD operations for BillingModule records. ```typescript // List all billingModule records -const items = await db.billingModule.findMany({ select: { apiName: true, balancesTableId: true, balancesTableName: true, databaseId: true, defaultMeterCatalog: true, defaultPermissions: true, id: true, ledgerTableId: true, ledgerTableName: true, meterCreditsTableId: true, meterCreditsTableName: true, meterDefaultsTableId: true, meterDefaultsTableName: true, meterSourcesTableId: true, meterSourcesTableName: true, metersTableId: true, metersTableName: true, planSubscriptionsTableId: true, planSubscriptionsTableName: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, publicSchemaName: true, recordUsageFunction: true, rollupUsageSummaryFunction: true, schemaId: true, sweepExpiredSubscriptionsFunction: true } }).execute(); +const items = await db.billingModule.findMany({ select: { apiName: true, balancesTableId: true, balancesTableName: true, databaseId: true, defaultCapabilities: true, defaultMeterCatalog: true, id: true, ledgerTableId: true, ledgerTableName: true, meterCreditsTableId: true, meterCreditsTableName: true, meterDefaultsTableId: true, meterDefaultsTableName: true, meterSourcesTableId: true, meterSourcesTableName: true, metersTableId: true, metersTableName: true, planSubscriptionsTableId: true, planSubscriptionsTableName: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, publicSchemaName: true, recordUsageFunction: true, rollupUsageSummaryFunction: true, schemaId: true, sweepExpiredSubscriptionsFunction: true } }).execute(); // Get one by id -const item = await db.billingModule.findOne({ id: '', select: { apiName: true, balancesTableId: true, balancesTableName: true, databaseId: true, defaultMeterCatalog: true, defaultPermissions: true, id: true, ledgerTableId: true, ledgerTableName: true, meterCreditsTableId: true, meterCreditsTableName: true, meterDefaultsTableId: true, meterDefaultsTableName: true, meterSourcesTableId: true, meterSourcesTableName: true, metersTableId: true, metersTableName: true, planSubscriptionsTableId: true, planSubscriptionsTableName: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, publicSchemaName: true, recordUsageFunction: true, rollupUsageSummaryFunction: true, schemaId: true, sweepExpiredSubscriptionsFunction: true } }).execute(); +const item = await db.billingModule.findOne({ id: '', select: { apiName: true, balancesTableId: true, balancesTableName: true, databaseId: true, defaultCapabilities: true, defaultMeterCatalog: true, id: true, ledgerTableId: true, ledgerTableName: true, meterCreditsTableId: true, meterCreditsTableName: true, meterDefaultsTableId: true, meterDefaultsTableName: true, meterSourcesTableId: true, meterSourcesTableName: true, metersTableId: true, metersTableName: true, planSubscriptionsTableId: true, planSubscriptionsTableName: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, publicSchemaName: true, recordUsageFunction: true, rollupUsageSummaryFunction: true, schemaId: true, sweepExpiredSubscriptionsFunction: true } }).execute(); // Create -const created = await db.billingModule.create({ data: { apiName: '', balancesTableId: '', balancesTableName: '', databaseId: '', defaultMeterCatalog: '', defaultPermissions: '', ledgerTableId: '', ledgerTableName: '', meterCreditsTableId: '', meterCreditsTableName: '', meterDefaultsTableId: '', meterDefaultsTableName: '', meterSourcesTableId: '', meterSourcesTableName: '', metersTableId: '', metersTableName: '', planSubscriptionsTableId: '', planSubscriptionsTableName: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', publicSchemaName: '', recordUsageFunction: '', rollupUsageSummaryFunction: '', schemaId: '', sweepExpiredSubscriptionsFunction: '' }, select: { id: true } }).execute(); +const created = await db.billingModule.create({ data: { apiName: '', balancesTableId: '', balancesTableName: '', databaseId: '', defaultCapabilities: '', defaultMeterCatalog: '', ledgerTableId: '', ledgerTableName: '', meterCreditsTableId: '', meterCreditsTableName: '', meterDefaultsTableId: '', meterDefaultsTableName: '', meterSourcesTableId: '', meterSourcesTableName: '', metersTableId: '', metersTableName: '', planSubscriptionsTableId: '', planSubscriptionsTableName: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', publicSchemaName: '', recordUsageFunction: '', rollupUsageSummaryFunction: '', schemaId: '', sweepExpiredSubscriptionsFunction: '' }, select: { id: true } }).execute(); // Update const updated = await db.billingModule.update({ where: { id: '' }, data: { apiName: '' }, select: { id: true } }).execute(); @@ -329,16 +336,22 @@ CRUD operations for BillingProviderModule records. | `apiName` | String | Yes | | `billingCustomersTableId` | UUID | Yes | | `billingCustomersTableName` | String | Yes | +| `billingInvoicesTableId` | UUID | Yes | +| `billingInvoicesTableName` | String | Yes | | `billingPricesTableId` | UUID | Yes | | `billingPricesTableName` | String | Yes | | `billingProductsTableId` | UUID | Yes | | `billingProductsTableName` | String | Yes | +| `billingRefundsTableId` | UUID | Yes | +| `billingRefundsTableName` | String | Yes | | `billingSubscriptionsTableId` | UUID | Yes | | `billingSubscriptionsTableName` | String | Yes | | `billingWebhookEventsTableId` | UUID | Yes | | `billingWebhookEventsTableName` | String | Yes | | `databaseId` | UUID | Yes | | `id` | UUID | No | +| `listPendingUsageSyncFunction` | String | Yes | +| `markUsageSyncedFunction` | String | Yes | | `prefix` | String | Yes | | `pricesTableId` | UUID | Yes | | `privateApiName` | String | Yes | @@ -346,20 +359,22 @@ CRUD operations for BillingProviderModule records. | `processBillingEventFunction` | String | Yes | | `productsTableId` | UUID | Yes | | `provider` | String | Yes | +| `recordRefundFunction` | String | Yes | | `schemaId` | UUID | Yes | | `subscriptionsTableId` | UUID | Yes | +| `upsertInvoiceFunction` | String | Yes | **Operations:** ```typescript // List all billingProviderModule records -const items = await db.billingProviderModule.findMany({ select: { apiName: true, billingCustomersTableId: true, billingCustomersTableName: true, billingPricesTableId: true, billingPricesTableName: true, billingProductsTableId: true, billingProductsTableName: true, billingSubscriptionsTableId: true, billingSubscriptionsTableName: true, billingWebhookEventsTableId: true, billingWebhookEventsTableName: true, databaseId: true, id: true, prefix: true, pricesTableId: true, privateApiName: true, privateSchemaId: true, processBillingEventFunction: true, productsTableId: true, provider: true, schemaId: true, subscriptionsTableId: true } }).execute(); +const items = await db.billingProviderModule.findMany({ select: { apiName: true, billingCustomersTableId: true, billingCustomersTableName: true, billingInvoicesTableId: true, billingInvoicesTableName: true, billingPricesTableId: true, billingPricesTableName: true, billingProductsTableId: true, billingProductsTableName: true, billingRefundsTableId: true, billingRefundsTableName: true, billingSubscriptionsTableId: true, billingSubscriptionsTableName: true, billingWebhookEventsTableId: true, billingWebhookEventsTableName: true, databaseId: true, id: true, listPendingUsageSyncFunction: true, markUsageSyncedFunction: true, prefix: true, pricesTableId: true, privateApiName: true, privateSchemaId: true, processBillingEventFunction: true, productsTableId: true, provider: true, recordRefundFunction: true, schemaId: true, subscriptionsTableId: true, upsertInvoiceFunction: true } }).execute(); // Get one by id -const item = await db.billingProviderModule.findOne({ id: '', select: { apiName: true, billingCustomersTableId: true, billingCustomersTableName: true, billingPricesTableId: true, billingPricesTableName: true, billingProductsTableId: true, billingProductsTableName: true, billingSubscriptionsTableId: true, billingSubscriptionsTableName: true, billingWebhookEventsTableId: true, billingWebhookEventsTableName: true, databaseId: true, id: true, prefix: true, pricesTableId: true, privateApiName: true, privateSchemaId: true, processBillingEventFunction: true, productsTableId: true, provider: true, schemaId: true, subscriptionsTableId: true } }).execute(); +const item = await db.billingProviderModule.findOne({ id: '', select: { apiName: true, billingCustomersTableId: true, billingCustomersTableName: true, billingInvoicesTableId: true, billingInvoicesTableName: true, billingPricesTableId: true, billingPricesTableName: true, billingProductsTableId: true, billingProductsTableName: true, billingRefundsTableId: true, billingRefundsTableName: true, billingSubscriptionsTableId: true, billingSubscriptionsTableName: true, billingWebhookEventsTableId: true, billingWebhookEventsTableName: true, databaseId: true, id: true, listPendingUsageSyncFunction: true, markUsageSyncedFunction: true, prefix: true, pricesTableId: true, privateApiName: true, privateSchemaId: true, processBillingEventFunction: true, productsTableId: true, provider: true, recordRefundFunction: true, schemaId: true, subscriptionsTableId: true, upsertInvoiceFunction: true } }).execute(); // Create -const created = await db.billingProviderModule.create({ data: { apiName: '', billingCustomersTableId: '', billingCustomersTableName: '', billingPricesTableId: '', billingPricesTableName: '', billingProductsTableId: '', billingProductsTableName: '', billingSubscriptionsTableId: '', billingSubscriptionsTableName: '', billingWebhookEventsTableId: '', billingWebhookEventsTableName: '', databaseId: '', prefix: '', pricesTableId: '', privateApiName: '', privateSchemaId: '', processBillingEventFunction: '', productsTableId: '', provider: '', schemaId: '', subscriptionsTableId: '' }, select: { id: true } }).execute(); +const created = await db.billingProviderModule.create({ data: { apiName: '', billingCustomersTableId: '', billingCustomersTableName: '', billingInvoicesTableId: '', billingInvoicesTableName: '', billingPricesTableId: '', billingPricesTableName: '', billingProductsTableId: '', billingProductsTableName: '', billingRefundsTableId: '', billingRefundsTableName: '', billingSubscriptionsTableId: '', billingSubscriptionsTableName: '', billingWebhookEventsTableId: '', billingWebhookEventsTableName: '', databaseId: '', listPendingUsageSyncFunction: '', markUsageSyncedFunction: '', prefix: '', pricesTableId: '', privateApiName: '', privateSchemaId: '', processBillingEventFunction: '', productsTableId: '', provider: '', recordRefundFunction: '', schemaId: '', subscriptionsTableId: '', upsertInvoiceFunction: '' }, select: { id: true } }).execute(); // Update const updated = await db.billingProviderModule.update({ where: { id: '' }, data: { apiName: '' }, select: { id: true } }).execute(); @@ -495,6 +510,56 @@ const updated = await db.blueprintTemplate.update({ where: { id: '' }, dat const deleted = await db.blueprintTemplate.delete({ where: { id: '' } }).execute(); ``` +### `db.capabilitiesModule` + +CRUD operations for CapabilitiesModule records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `actorTableId` | UUID | Yes | +| `apiName` | String | Yes | +| `bitlen` | Int | Yes | +| `databaseId` | UUID | Yes | +| `defaultTableId` | UUID | Yes | +| `defaultTableName` | String | Yes | +| `entityField` | String | Yes | +| `entityTableId` | UUID | Yes | +| `getByMask` | String | Yes | +| `getMask` | String | Yes | +| `getMaskByName` | String | Yes | +| `getPaddedMask` | String | Yes | +| `id` | UUID | No | +| `prefix` | String | Yes | +| `privateApiName` | String | Yes | +| `privateSchemaId` | UUID | Yes | +| `privateSchemaName` | String | Yes | +| `publicSchemaName` | String | Yes | +| `schemaId` | UUID | Yes | +| `scope` | String | Yes | +| `tableId` | UUID | Yes | +| `tableName` | String | Yes | + +**Operations:** + +```typescript +// List all capabilitiesModule records +const items = await db.capabilitiesModule.findMany({ select: { actorTableId: true, apiName: true, bitlen: true, databaseId: true, defaultTableId: true, defaultTableName: true, entityField: true, entityTableId: true, getByMask: true, getMask: true, getMaskByName: true, getPaddedMask: true, id: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, publicSchemaName: true, schemaId: true, scope: true, tableId: true, tableName: true } }).execute(); + +// Get one by id +const item = await db.capabilitiesModule.findOne({ id: '', select: { actorTableId: true, apiName: true, bitlen: true, databaseId: true, defaultTableId: true, defaultTableName: true, entityField: true, entityTableId: true, getByMask: true, getMask: true, getMaskByName: true, getPaddedMask: true, id: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, publicSchemaName: true, schemaId: true, scope: true, tableId: true, tableName: true } }).execute(); + +// Create +const created = await db.capabilitiesModule.create({ data: { actorTableId: '', apiName: '', bitlen: '', databaseId: '', defaultTableId: '', defaultTableName: '', entityField: '', entityTableId: '', getByMask: '', getMask: '', getMaskByName: '', getPaddedMask: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', publicSchemaName: '', schemaId: '', scope: '', tableId: '', tableName: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.capabilitiesModule.update({ where: { id: '' }, data: { actorTableId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.capabilitiesModule.delete({ where: { id: '' } }).execute(); +``` + ### `db.catalogModule` CRUD operations for CatalogModule records. @@ -508,10 +573,12 @@ CRUD operations for CatalogModule records. | `apisTableName` | String | Yes | | `appsTableId` | UUID | Yes | | `appsTableName` | String | Yes | +| `bindingsTableId` | UUID | Yes | +| `bindingsTableName` | String | Yes | | `bucketsTableId` | UUID | Yes | | `bucketsTableName` | String | Yes | | `databaseId` | UUID | Yes | -| `defaultPermissions` | String | Yes | +| `defaultCapabilities` | String | Yes | | `domainsTableId` | UUID | Yes | | `domainsTableName` | String | Yes | | `entityTableId` | UUID | Yes | @@ -547,13 +614,13 @@ CRUD operations for CatalogModule records. ```typescript // List all catalogModule records -const items = await db.catalogModule.findMany({ select: { apiName: true, apisTableId: true, apisTableName: true, appsTableId: true, appsTableName: true, bucketsTableId: true, bucketsTableName: true, databaseId: true, defaultPermissions: true, domainsTableId: true, domainsTableName: true, entityTableId: true, functionsTableId: true, functionsTableName: true, id: true, namespacesTableId: true, namespacesTableName: true, policies: true, privateApiName: true, provisions: true, publicSchemaName: true, resourceDefinitionsTableId: true, resourceDefinitionsTableName: true, resourceInstallationsTableId: true, resourceInstallationsTableName: true, resourcesTableId: true, resourcesTableName: true, schemaId: true, scope: true, sitesAppLinksTableId: true, sitesAppLinksTableName: true, sitesDeepLinksTableId: true, sitesDeepLinksTableName: true, sitesErrorPagesTableId: true, sitesErrorPagesTableName: true, sitesTableId: true, sitesTableName: true, sitesWebConfigTableId: true, sitesWebConfigTableName: true } }).execute(); +const items = await db.catalogModule.findMany({ select: { apiName: true, apisTableId: true, apisTableName: true, appsTableId: true, appsTableName: true, bindingsTableId: true, bindingsTableName: true, bucketsTableId: true, bucketsTableName: true, databaseId: true, defaultCapabilities: true, domainsTableId: true, domainsTableName: true, entityTableId: true, functionsTableId: true, functionsTableName: true, id: true, namespacesTableId: true, namespacesTableName: true, policies: true, privateApiName: true, provisions: true, publicSchemaName: true, resourceDefinitionsTableId: true, resourceDefinitionsTableName: true, resourceInstallationsTableId: true, resourceInstallationsTableName: true, resourcesTableId: true, resourcesTableName: true, schemaId: true, scope: true, sitesAppLinksTableId: true, sitesAppLinksTableName: true, sitesDeepLinksTableId: true, sitesDeepLinksTableName: true, sitesErrorPagesTableId: true, sitesErrorPagesTableName: true, sitesTableId: true, sitesTableName: true, sitesWebConfigTableId: true, sitesWebConfigTableName: true } }).execute(); // Get one by id -const item = await db.catalogModule.findOne({ id: '', select: { apiName: true, apisTableId: true, apisTableName: true, appsTableId: true, appsTableName: true, bucketsTableId: true, bucketsTableName: true, databaseId: true, defaultPermissions: true, domainsTableId: true, domainsTableName: true, entityTableId: true, functionsTableId: true, functionsTableName: true, id: true, namespacesTableId: true, namespacesTableName: true, policies: true, privateApiName: true, provisions: true, publicSchemaName: true, resourceDefinitionsTableId: true, resourceDefinitionsTableName: true, resourceInstallationsTableId: true, resourceInstallationsTableName: true, resourcesTableId: true, resourcesTableName: true, schemaId: true, scope: true, sitesAppLinksTableId: true, sitesAppLinksTableName: true, sitesDeepLinksTableId: true, sitesDeepLinksTableName: true, sitesErrorPagesTableId: true, sitesErrorPagesTableName: true, sitesTableId: true, sitesTableName: true, sitesWebConfigTableId: true, sitesWebConfigTableName: true } }).execute(); +const item = await db.catalogModule.findOne({ id: '', select: { apiName: true, apisTableId: true, apisTableName: true, appsTableId: true, appsTableName: true, bindingsTableId: true, bindingsTableName: true, bucketsTableId: true, bucketsTableName: true, databaseId: true, defaultCapabilities: true, domainsTableId: true, domainsTableName: true, entityTableId: true, functionsTableId: true, functionsTableName: true, id: true, namespacesTableId: true, namespacesTableName: true, policies: true, privateApiName: true, provisions: true, publicSchemaName: true, resourceDefinitionsTableId: true, resourceDefinitionsTableName: true, resourceInstallationsTableId: true, resourceInstallationsTableName: true, resourcesTableId: true, resourcesTableName: true, schemaId: true, scope: true, sitesAppLinksTableId: true, sitesAppLinksTableName: true, sitesDeepLinksTableId: true, sitesDeepLinksTableName: true, sitesErrorPagesTableId: true, sitesErrorPagesTableName: true, sitesTableId: true, sitesTableName: true, sitesWebConfigTableId: true, sitesWebConfigTableName: true } }).execute(); // Create -const created = await db.catalogModule.create({ data: { apiName: '', apisTableId: '', apisTableName: '', appsTableId: '', appsTableName: '', bucketsTableId: '', bucketsTableName: '', databaseId: '', defaultPermissions: '', domainsTableId: '', domainsTableName: '', entityTableId: '', functionsTableId: '', functionsTableName: '', namespacesTableId: '', namespacesTableName: '', policies: '', privateApiName: '', provisions: '', publicSchemaName: '', resourceDefinitionsTableId: '', resourceDefinitionsTableName: '', resourceInstallationsTableId: '', resourceInstallationsTableName: '', resourcesTableId: '', resourcesTableName: '', schemaId: '', scope: '', sitesAppLinksTableId: '', sitesAppLinksTableName: '', sitesDeepLinksTableId: '', sitesDeepLinksTableName: '', sitesErrorPagesTableId: '', sitesErrorPagesTableName: '', sitesTableId: '', sitesTableName: '', sitesWebConfigTableId: '', sitesWebConfigTableName: '' }, select: { id: true } }).execute(); +const created = await db.catalogModule.create({ data: { apiName: '', apisTableId: '', apisTableName: '', appsTableId: '', appsTableName: '', bindingsTableId: '', bindingsTableName: '', bucketsTableId: '', bucketsTableName: '', databaseId: '', defaultCapabilities: '', domainsTableId: '', domainsTableName: '', entityTableId: '', functionsTableId: '', functionsTableName: '', namespacesTableId: '', namespacesTableName: '', policies: '', privateApiName: '', provisions: '', publicSchemaName: '', resourceDefinitionsTableId: '', resourceDefinitionsTableName: '', resourceInstallationsTableId: '', resourceInstallationsTableName: '', resourcesTableId: '', resourcesTableName: '', schemaId: '', scope: '', sitesAppLinksTableId: '', sitesAppLinksTableName: '', sitesDeepLinksTableId: '', sitesDeepLinksTableName: '', sitesErrorPagesTableId: '', sitesErrorPagesTableName: '', sitesTableId: '', sitesTableName: '', sitesWebConfigTableId: '', sitesWebConfigTableName: '' }, select: { id: true } }).execute(); // Update const updated = await db.catalogModule.update({ where: { id: '' }, data: { apiName: '' }, select: { id: true } }).execute(); @@ -683,6 +750,51 @@ const updated = await db.connectedAccountsModule.update({ where: { id: '' const deleted = await db.connectedAccountsModule.delete({ where: { id: '' } }).execute(); ``` +### `db.contentPresetModule` + +CRUD operations for ContentPresetModule records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `apiName` | String | Yes | +| `contentPresetsTableId` | UUID | Yes | +| `createdAt` | Datetime | No | +| `databaseId` | UUID | Yes | +| `entityTableId` | UUID | Yes | +| `id` | UUID | No | +| `merkleStoreModuleId` | UUID | Yes | +| `policies` | JSON | Yes | +| `prefix` | String | Yes | +| `privateApiName` | String | Yes | +| `privateSchemaId` | UUID | Yes | +| `privateSchemaName` | String | Yes | +| `provisions` | JSON | Yes | +| `publicSchemaId` | UUID | Yes | +| `publicSchemaName` | String | Yes | +| `scope` | String | Yes | +| `storeName` | String | Yes | + +**Operations:** + +```typescript +// List all contentPresetModule records +const items = await db.contentPresetModule.findMany({ select: { apiName: true, contentPresetsTableId: true, createdAt: true, databaseId: true, entityTableId: true, id: true, merkleStoreModuleId: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provisions: true, publicSchemaId: true, publicSchemaName: true, scope: true, storeName: true } }).execute(); + +// Get one by id +const item = await db.contentPresetModule.findOne({ id: '', select: { apiName: true, contentPresetsTableId: true, createdAt: true, databaseId: true, entityTableId: true, id: true, merkleStoreModuleId: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provisions: true, publicSchemaId: true, publicSchemaName: true, scope: true, storeName: true } }).execute(); + +// Create +const created = await db.contentPresetModule.create({ data: { apiName: '', contentPresetsTableId: '', databaseId: '', entityTableId: '', merkleStoreModuleId: '', policies: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', provisions: '', publicSchemaId: '', publicSchemaName: '', scope: '', storeName: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.contentPresetModule.update({ where: { id: '' }, data: { apiName: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.contentPresetModule.delete({ where: { id: '' } }).execute(); +``` + ### `db.cryptoAddressesModule` CRUD operations for CryptoAddressesModule records. @@ -763,6 +875,45 @@ const updated = await db.cryptoAuthModule.update({ where: { id: '' }, data const deleted = await db.cryptoAuthModule.delete({ where: { id: '' } }).execute(); ``` +### `db.dataCapabilitiesField` + +CRUD operations for DataCapabilitiesField records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `capabilitiesModuleId` | UUID | Yes | +| `databaseId` | UUID | Yes | +| `fieldId` | UUID | Yes | +| `fromFieldId` | UUID | Yes | +| `id` | UUID | No | +| `mappingFieldId` | UUID | Yes | +| `mappingKeyFieldId` | UUID | Yes | +| `mappingTableId` | UUID | Yes | +| `mode` | String | Yes | +| `subsetGuard` | Boolean | Yes | +| `tableId` | UUID | Yes | + +**Operations:** + +```typescript +// List all dataCapabilitiesField records +const items = await db.dataCapabilitiesField.findMany({ select: { capabilitiesModuleId: true, databaseId: true, fieldId: true, fromFieldId: true, id: true, mappingFieldId: true, mappingKeyFieldId: true, mappingTableId: true, mode: true, subsetGuard: true, tableId: true } }).execute(); + +// Get one by id +const item = await db.dataCapabilitiesField.findOne({ id: '', select: { capabilitiesModuleId: true, databaseId: true, fieldId: true, fromFieldId: true, id: true, mappingFieldId: true, mappingKeyFieldId: true, mappingTableId: true, mode: true, subsetGuard: true, tableId: true } }).execute(); + +// Create +const created = await db.dataCapabilitiesField.create({ data: { capabilitiesModuleId: '', databaseId: '', fieldId: '', fromFieldId: '', mappingFieldId: '', mappingKeyFieldId: '', mappingTableId: '', mode: '', subsetGuard: '', tableId: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.dataCapabilitiesField.update({ where: { id: '' }, data: { capabilitiesModuleId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.dataCapabilitiesField.delete({ where: { id: '' } }).execute(); +``` + ### `db.databaseProvisionModule` CRUD operations for DatabaseProvisionModule records. @@ -822,7 +973,7 @@ CRUD operations for DatabaseSettingsModule records. | `databaseId` | UUID | Yes | | `databaseSettingsTableId` | UUID | Yes | | `databaseSettingsTableName` | String | Yes | -| `defaultPermissions` | String | Yes | +| `defaultCapabilities` | String | Yes | | `entityField` | String | Yes | | `entityTableId` | UUID | Yes | | `id` | UUID | No | @@ -844,13 +995,13 @@ CRUD operations for DatabaseSettingsModule records. ```typescript // List all databaseSettingsModule records -const items = await db.databaseSettingsModule.findMany({ select: { apiName: true, databaseId: true, databaseSettingsTableId: true, databaseSettingsTableName: true, defaultPermissions: true, entityField: true, entityTableId: true, id: true, policies: true, prefix: true, privateApiName: true, provisions: true, pubkeySettingsTableId: true, pubkeySettingsTableName: true, publicSchemaName: true, rlsSettingsTableId: true, rlsSettingsTableName: true, schemaId: true, scope: true, webauthnSettingsTableId: true, webauthnSettingsTableName: true } }).execute(); +const items = await db.databaseSettingsModule.findMany({ select: { apiName: true, databaseId: true, databaseSettingsTableId: true, databaseSettingsTableName: true, defaultCapabilities: true, entityField: true, entityTableId: true, id: true, policies: true, prefix: true, privateApiName: true, provisions: true, pubkeySettingsTableId: true, pubkeySettingsTableName: true, publicSchemaName: true, rlsSettingsTableId: true, rlsSettingsTableName: true, schemaId: true, scope: true, webauthnSettingsTableId: true, webauthnSettingsTableName: true } }).execute(); // Get one by id -const item = await db.databaseSettingsModule.findOne({ id: '', select: { apiName: true, databaseId: true, databaseSettingsTableId: true, databaseSettingsTableName: true, defaultPermissions: true, entityField: true, entityTableId: true, id: true, policies: true, prefix: true, privateApiName: true, provisions: true, pubkeySettingsTableId: true, pubkeySettingsTableName: true, publicSchemaName: true, rlsSettingsTableId: true, rlsSettingsTableName: true, schemaId: true, scope: true, webauthnSettingsTableId: true, webauthnSettingsTableName: true } }).execute(); +const item = await db.databaseSettingsModule.findOne({ id: '', select: { apiName: true, databaseId: true, databaseSettingsTableId: true, databaseSettingsTableName: true, defaultCapabilities: true, entityField: true, entityTableId: true, id: true, policies: true, prefix: true, privateApiName: true, provisions: true, pubkeySettingsTableId: true, pubkeySettingsTableName: true, publicSchemaName: true, rlsSettingsTableId: true, rlsSettingsTableName: true, schemaId: true, scope: true, webauthnSettingsTableId: true, webauthnSettingsTableName: true } }).execute(); // Create -const created = await db.databaseSettingsModule.create({ data: { apiName: '', databaseId: '', databaseSettingsTableId: '', databaseSettingsTableName: '', defaultPermissions: '', entityField: '', entityTableId: '', policies: '', prefix: '', privateApiName: '', provisions: '', pubkeySettingsTableId: '', pubkeySettingsTableName: '', publicSchemaName: '', rlsSettingsTableId: '', rlsSettingsTableName: '', schemaId: '', scope: '', webauthnSettingsTableId: '', webauthnSettingsTableName: '' }, select: { id: true } }).execute(); +const created = await db.databaseSettingsModule.create({ data: { apiName: '', databaseId: '', databaseSettingsTableId: '', databaseSettingsTableName: '', defaultCapabilities: '', entityField: '', entityTableId: '', policies: '', prefix: '', privateApiName: '', provisions: '', pubkeySettingsTableId: '', pubkeySettingsTableName: '', publicSchemaName: '', rlsSettingsTableId: '', rlsSettingsTableName: '', schemaId: '', scope: '', webauthnSettingsTableId: '', webauthnSettingsTableName: '' }, select: { id: true } }).execute(); // Update const updated = await db.databaseSettingsModule.update({ where: { id: '' }, data: { apiName: '' }, select: { id: true } }).execute(); @@ -995,7 +1146,7 @@ CRUD operations for DbUsageModule records. | `collectDbQueryStatsFunction` | String | Yes | | `collectDbTableStatsFunction` | String | Yes | | `databaseId` | UUID | Yes | -| `defaultPermissions` | String | Yes | +| `defaultCapabilities` | String | Yes | | `entityField` | String | Yes | | `id` | UUID | No | | `interval` | String | Yes | @@ -1023,13 +1174,13 @@ CRUD operations for DbUsageModule records. ```typescript // List all dbUsageModule records -const items = await db.dbUsageModule.findMany({ select: { apiName: true, collectDbQueryStatsFunction: true, collectDbTableStatsFunction: true, databaseId: true, defaultPermissions: true, entityField: true, id: true, interval: true, prefix: true, premake: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, publicSchemaName: true, queryStatsLogTableId: true, queryStatsLogTableName: true, queryStatsSummaryTableId: true, queryStatsSummaryTableName: true, retention: true, rollupDbQueryStatsUsageSummaryFunction: true, rollupDbTableStatsUsageSummaryFunction: true, schemaId: true, scope: true, tableStatsLogTableId: true, tableStatsLogTableName: true, tableStatsSummaryTableId: true, tableStatsSummaryTableName: true } }).execute(); +const items = await db.dbUsageModule.findMany({ select: { apiName: true, collectDbQueryStatsFunction: true, collectDbTableStatsFunction: true, databaseId: true, defaultCapabilities: true, entityField: true, id: true, interval: true, prefix: true, premake: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, publicSchemaName: true, queryStatsLogTableId: true, queryStatsLogTableName: true, queryStatsSummaryTableId: true, queryStatsSummaryTableName: true, retention: true, rollupDbQueryStatsUsageSummaryFunction: true, rollupDbTableStatsUsageSummaryFunction: true, schemaId: true, scope: true, tableStatsLogTableId: true, tableStatsLogTableName: true, tableStatsSummaryTableId: true, tableStatsSummaryTableName: true } }).execute(); // Get one by id -const item = await db.dbUsageModule.findOne({ id: '', select: { apiName: true, collectDbQueryStatsFunction: true, collectDbTableStatsFunction: true, databaseId: true, defaultPermissions: true, entityField: true, id: true, interval: true, prefix: true, premake: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, publicSchemaName: true, queryStatsLogTableId: true, queryStatsLogTableName: true, queryStatsSummaryTableId: true, queryStatsSummaryTableName: true, retention: true, rollupDbQueryStatsUsageSummaryFunction: true, rollupDbTableStatsUsageSummaryFunction: true, schemaId: true, scope: true, tableStatsLogTableId: true, tableStatsLogTableName: true, tableStatsSummaryTableId: true, tableStatsSummaryTableName: true } }).execute(); +const item = await db.dbUsageModule.findOne({ id: '', select: { apiName: true, collectDbQueryStatsFunction: true, collectDbTableStatsFunction: true, databaseId: true, defaultCapabilities: true, entityField: true, id: true, interval: true, prefix: true, premake: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, publicSchemaName: true, queryStatsLogTableId: true, queryStatsLogTableName: true, queryStatsSummaryTableId: true, queryStatsSummaryTableName: true, retention: true, rollupDbQueryStatsUsageSummaryFunction: true, rollupDbTableStatsUsageSummaryFunction: true, schemaId: true, scope: true, tableStatsLogTableId: true, tableStatsLogTableName: true, tableStatsSummaryTableId: true, tableStatsSummaryTableName: true } }).execute(); // Create -const created = await db.dbUsageModule.create({ data: { apiName: '', collectDbQueryStatsFunction: '', collectDbTableStatsFunction: '', databaseId: '', defaultPermissions: '', entityField: '', interval: '', prefix: '', premake: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', publicSchemaName: '', queryStatsLogTableId: '', queryStatsLogTableName: '', queryStatsSummaryTableId: '', queryStatsSummaryTableName: '', retention: '', rollupDbQueryStatsUsageSummaryFunction: '', rollupDbTableStatsUsageSummaryFunction: '', schemaId: '', scope: '', tableStatsLogTableId: '', tableStatsLogTableName: '', tableStatsSummaryTableId: '', tableStatsSummaryTableName: '' }, select: { id: true } }).execute(); +const created = await db.dbUsageModule.create({ data: { apiName: '', collectDbQueryStatsFunction: '', collectDbTableStatsFunction: '', databaseId: '', defaultCapabilities: '', entityField: '', interval: '', prefix: '', premake: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', publicSchemaName: '', queryStatsLogTableId: '', queryStatsLogTableName: '', queryStatsSummaryTableId: '', queryStatsSummaryTableName: '', retention: '', rollupDbQueryStatsUsageSummaryFunction: '', rollupDbTableStatsUsageSummaryFunction: '', schemaId: '', scope: '', tableStatsLogTableId: '', tableStatsLogTableName: '', tableStatsSummaryTableId: '', tableStatsSummaryTableName: '' }, select: { id: true } }).execute(); // Update const updated = await db.dbUsageModule.update({ where: { id: '' }, data: { apiName: '' }, select: { id: true } }).execute(); @@ -1154,7 +1305,7 @@ CRUD operations for DomainModule records. | `apiName` | String | Yes | | `catalogModuleId` | UUID | Yes | | `databaseId` | UUID | Yes | -| `defaultPermissions` | String | Yes | +| `defaultCapabilities` | String | Yes | | `domainEventsTableId` | UUID | Yes | | `domainEventsTableName` | String | Yes | | `domainVerificationsTableId` | UUID | Yes | @@ -1180,13 +1331,13 @@ CRUD operations for DomainModule records. ```typescript // List all domainModule records -const items = await db.domainModule.findMany({ select: { apiName: true, catalogModuleId: true, databaseId: true, defaultPermissions: true, domainEventsTableId: true, domainEventsTableName: true, domainVerificationsTableId: true, domainVerificationsTableName: true, domainsTableId: true, domainsTableName: true, entityField: true, entityTableId: true, id: true, managedDomainsTableId: true, managedDomainsTableName: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provisions: true, publicSchemaName: true, schemaId: true, scope: true } }).execute(); +const items = await db.domainModule.findMany({ select: { apiName: true, catalogModuleId: true, databaseId: true, defaultCapabilities: true, domainEventsTableId: true, domainEventsTableName: true, domainVerificationsTableId: true, domainVerificationsTableName: true, domainsTableId: true, domainsTableName: true, entityField: true, entityTableId: true, id: true, managedDomainsTableId: true, managedDomainsTableName: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provisions: true, publicSchemaName: true, schemaId: true, scope: true } }).execute(); // Get one by id -const item = await db.domainModule.findOne({ id: '', select: { apiName: true, catalogModuleId: true, databaseId: true, defaultPermissions: true, domainEventsTableId: true, domainEventsTableName: true, domainVerificationsTableId: true, domainVerificationsTableName: true, domainsTableId: true, domainsTableName: true, entityField: true, entityTableId: true, id: true, managedDomainsTableId: true, managedDomainsTableName: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provisions: true, publicSchemaName: true, schemaId: true, scope: true } }).execute(); +const item = await db.domainModule.findOne({ id: '', select: { apiName: true, catalogModuleId: true, databaseId: true, defaultCapabilities: true, domainEventsTableId: true, domainEventsTableName: true, domainVerificationsTableId: true, domainVerificationsTableName: true, domainsTableId: true, domainsTableName: true, entityField: true, entityTableId: true, id: true, managedDomainsTableId: true, managedDomainsTableName: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provisions: true, publicSchemaName: true, schemaId: true, scope: true } }).execute(); // Create -const created = await db.domainModule.create({ data: { apiName: '', catalogModuleId: '', databaseId: '', defaultPermissions: '', domainEventsTableId: '', domainEventsTableName: '', domainVerificationsTableId: '', domainVerificationsTableName: '', domainsTableId: '', domainsTableName: '', entityField: '', entityTableId: '', managedDomainsTableId: '', managedDomainsTableName: '', policies: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', provisions: '', publicSchemaName: '', schemaId: '', scope: '' }, select: { id: true } }).execute(); +const created = await db.domainModule.create({ data: { apiName: '', catalogModuleId: '', databaseId: '', defaultCapabilities: '', domainEventsTableId: '', domainEventsTableName: '', domainVerificationsTableId: '', domainVerificationsTableName: '', domainsTableId: '', domainsTableName: '', entityField: '', entityTableId: '', managedDomainsTableId: '', managedDomainsTableName: '', policies: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', provisions: '', publicSchemaName: '', schemaId: '', scope: '' }, select: { id: true } }).execute(); // Update const updated = await db.domainModule.update({ where: { id: '' }, data: { apiName: '' }, select: { id: true } }).execute(); @@ -1195,6 +1346,54 @@ const updated = await db.domainModule.update({ where: { id: '' }, data: { const deleted = await db.domainModule.delete({ where: { id: '' } }).execute(); ``` +### `db.emailSenderModule` + +CRUD operations for EmailSenderModule records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `apiName` | String | Yes | +| `databaseId` | UUID | Yes | +| `defaultCapabilities` | String | Yes | +| `emailIdentitiesTableId` | UUID | Yes | +| `emailIdentitiesTableName` | String | Yes | +| `emailProviderAccountsTableId` | UUID | Yes | +| `emailProviderAccountsTableName` | String | Yes | +| `emailSiteIdentitiesTableId` | UUID | Yes | +| `emailSiteIdentitiesTableName` | String | Yes | +| `entityField` | String | Yes | +| `entityTableId` | UUID | Yes | +| `id` | UUID | No | +| `policies` | JSON | Yes | +| `prefix` | String | Yes | +| `privateApiName` | String | Yes | +| `provisions` | JSON | Yes | +| `publicSchemaName` | String | Yes | +| `schemaId` | UUID | Yes | +| `scope` | String | Yes | +| `siteSurfaceModuleId` | UUID | Yes | + +**Operations:** + +```typescript +// List all emailSenderModule records +const items = await db.emailSenderModule.findMany({ select: { apiName: true, databaseId: true, defaultCapabilities: true, emailIdentitiesTableId: true, emailIdentitiesTableName: true, emailProviderAccountsTableId: true, emailProviderAccountsTableName: true, emailSiteIdentitiesTableId: true, emailSiteIdentitiesTableName: true, entityField: true, entityTableId: true, id: true, policies: true, prefix: true, privateApiName: true, provisions: true, publicSchemaName: true, schemaId: true, scope: true, siteSurfaceModuleId: true } }).execute(); + +// Get one by id +const item = await db.emailSenderModule.findOne({ id: '', select: { apiName: true, databaseId: true, defaultCapabilities: true, emailIdentitiesTableId: true, emailIdentitiesTableName: true, emailProviderAccountsTableId: true, emailProviderAccountsTableName: true, emailSiteIdentitiesTableId: true, emailSiteIdentitiesTableName: true, entityField: true, entityTableId: true, id: true, policies: true, prefix: true, privateApiName: true, provisions: true, publicSchemaName: true, schemaId: true, scope: true, siteSurfaceModuleId: true } }).execute(); + +// Create +const created = await db.emailSenderModule.create({ data: { apiName: '', databaseId: '', defaultCapabilities: '', emailIdentitiesTableId: '', emailIdentitiesTableName: '', emailProviderAccountsTableId: '', emailProviderAccountsTableName: '', emailSiteIdentitiesTableId: '', emailSiteIdentitiesTableName: '', entityField: '', entityTableId: '', policies: '', prefix: '', privateApiName: '', provisions: '', publicSchemaName: '', schemaId: '', scope: '', siteSurfaceModuleId: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.emailSenderModule.update({ where: { id: '' }, data: { apiName: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.emailSenderModule.delete({ where: { id: '' } }).execute(); +``` + ### `db.emailsModule` CRUD operations for EmailsModule records. @@ -1312,7 +1511,7 @@ CRUD operations for EventsModule records. | `actorTableId` | UUID | Yes | | `apiName` | String | Yes | | `databaseId` | UUID | Yes | -| `defaultPermissions` | String | Yes | +| `defaultCapabilities` | String | Yes | | `entityField` | String | Yes | | `entityTableId` | UUID | Yes | | `eventAggregatesTableId` | UUID | Yes | @@ -1321,6 +1520,7 @@ CRUD operations for EventsModule records. | `eventTypesTableName` | String | Yes | | `eventsTableId` | UUID | Yes | | `eventsTableName` | String | Yes | +| `expireGrants` | String | Yes | | `grantAchievement` | String | Yes | | `id` | UUID | No | | `interval` | String | Yes | @@ -1337,9 +1537,11 @@ CRUD operations for EventsModule records. | `privateSchemaId` | UUID | Yes | | `privateSchemaName` | String | Yes | | `publicSchemaName` | String | Yes | +| `recomputeCapabilities` | String | Yes | | `recordEvent` | String | Yes | | `removeEvent` | String | Yes | | `retention` | String | Yes | +| `revokeAchievement` | String | Yes | | `schemaId` | UUID | Yes | | `scope` | String | Yes | | `stepsRequired` | String | Yes | @@ -1349,20 +1551,22 @@ CRUD operations for EventsModule records. | `tgEventBool` | String | Yes | | `tgEventToggle` | String | Yes | | `tgEventToggleBool` | String | Yes | +| `tgLevelGrantSync` | String | Yes | | `tgUpdateAggregates` | String | Yes | +| `trustLadder` | JSON | Yes | | `upsertAggregate` | String | Yes | **Operations:** ```typescript // List all eventsModule records -const items = await db.eventsModule.findMany({ select: { achievementRewardsTableId: true, achievementRewardsTableName: true, actorTableId: true, apiName: true, databaseId: true, defaultPermissions: true, entityField: true, entityTableId: true, eventAggregatesTableId: true, eventAggregatesTableName: true, eventTypesTableId: true, eventTypesTableName: true, eventsTableId: true, eventsTableName: true, grantAchievement: true, id: true, interval: true, levelAchieved: true, levelGrantsTableId: true, levelGrantsTableName: true, levelRequirementsTableId: true, levelRequirementsTableName: true, levelsTableId: true, levelsTableName: true, prefix: true, premake: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, publicSchemaName: true, recordEvent: true, removeEvent: true, retention: true, schemaId: true, scope: true, stepsRequired: true, tgAchievementReward: true, tgCheckAchievements: true, tgEvent: true, tgEventBool: true, tgEventToggle: true, tgEventToggleBool: true, tgUpdateAggregates: true, upsertAggregate: true } }).execute(); +const items = await db.eventsModule.findMany({ select: { achievementRewardsTableId: true, achievementRewardsTableName: true, actorTableId: true, apiName: true, databaseId: true, defaultCapabilities: true, entityField: true, entityTableId: true, eventAggregatesTableId: true, eventAggregatesTableName: true, eventTypesTableId: true, eventTypesTableName: true, eventsTableId: true, eventsTableName: true, expireGrants: true, grantAchievement: true, id: true, interval: true, levelAchieved: true, levelGrantsTableId: true, levelGrantsTableName: true, levelRequirementsTableId: true, levelRequirementsTableName: true, levelsTableId: true, levelsTableName: true, prefix: true, premake: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, publicSchemaName: true, recomputeCapabilities: true, recordEvent: true, removeEvent: true, retention: true, revokeAchievement: true, schemaId: true, scope: true, stepsRequired: true, tgAchievementReward: true, tgCheckAchievements: true, tgEvent: true, tgEventBool: true, tgEventToggle: true, tgEventToggleBool: true, tgLevelGrantSync: true, tgUpdateAggregates: true, trustLadder: true, upsertAggregate: true } }).execute(); // Get one by id -const item = await db.eventsModule.findOne({ id: '', select: { achievementRewardsTableId: true, achievementRewardsTableName: true, actorTableId: true, apiName: true, databaseId: true, defaultPermissions: true, entityField: true, entityTableId: true, eventAggregatesTableId: true, eventAggregatesTableName: true, eventTypesTableId: true, eventTypesTableName: true, eventsTableId: true, eventsTableName: true, grantAchievement: true, id: true, interval: true, levelAchieved: true, levelGrantsTableId: true, levelGrantsTableName: true, levelRequirementsTableId: true, levelRequirementsTableName: true, levelsTableId: true, levelsTableName: true, prefix: true, premake: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, publicSchemaName: true, recordEvent: true, removeEvent: true, retention: true, schemaId: true, scope: true, stepsRequired: true, tgAchievementReward: true, tgCheckAchievements: true, tgEvent: true, tgEventBool: true, tgEventToggle: true, tgEventToggleBool: true, tgUpdateAggregates: true, upsertAggregate: true } }).execute(); +const item = await db.eventsModule.findOne({ id: '', select: { achievementRewardsTableId: true, achievementRewardsTableName: true, actorTableId: true, apiName: true, databaseId: true, defaultCapabilities: true, entityField: true, entityTableId: true, eventAggregatesTableId: true, eventAggregatesTableName: true, eventTypesTableId: true, eventTypesTableName: true, eventsTableId: true, eventsTableName: true, expireGrants: true, grantAchievement: true, id: true, interval: true, levelAchieved: true, levelGrantsTableId: true, levelGrantsTableName: true, levelRequirementsTableId: true, levelRequirementsTableName: true, levelsTableId: true, levelsTableName: true, prefix: true, premake: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, publicSchemaName: true, recomputeCapabilities: true, recordEvent: true, removeEvent: true, retention: true, revokeAchievement: true, schemaId: true, scope: true, stepsRequired: true, tgAchievementReward: true, tgCheckAchievements: true, tgEvent: true, tgEventBool: true, tgEventToggle: true, tgEventToggleBool: true, tgLevelGrantSync: true, tgUpdateAggregates: true, trustLadder: true, upsertAggregate: true } }).execute(); // Create -const created = await db.eventsModule.create({ data: { achievementRewardsTableId: '', achievementRewardsTableName: '', actorTableId: '', apiName: '', databaseId: '', defaultPermissions: '', entityField: '', entityTableId: '', eventAggregatesTableId: '', eventAggregatesTableName: '', eventTypesTableId: '', eventTypesTableName: '', eventsTableId: '', eventsTableName: '', grantAchievement: '', interval: '', levelAchieved: '', levelGrantsTableId: '', levelGrantsTableName: '', levelRequirementsTableId: '', levelRequirementsTableName: '', levelsTableId: '', levelsTableName: '', prefix: '', premake: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', publicSchemaName: '', recordEvent: '', removeEvent: '', retention: '', schemaId: '', scope: '', stepsRequired: '', tgAchievementReward: '', tgCheckAchievements: '', tgEvent: '', tgEventBool: '', tgEventToggle: '', tgEventToggleBool: '', tgUpdateAggregates: '', upsertAggregate: '' }, select: { id: true } }).execute(); +const created = await db.eventsModule.create({ data: { achievementRewardsTableId: '', achievementRewardsTableName: '', actorTableId: '', apiName: '', databaseId: '', defaultCapabilities: '', entityField: '', entityTableId: '', eventAggregatesTableId: '', eventAggregatesTableName: '', eventTypesTableId: '', eventTypesTableName: '', eventsTableId: '', eventsTableName: '', expireGrants: '', grantAchievement: '', interval: '', levelAchieved: '', levelGrantsTableId: '', levelGrantsTableName: '', levelRequirementsTableId: '', levelRequirementsTableName: '', levelsTableId: '', levelsTableName: '', prefix: '', premake: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', publicSchemaName: '', recomputeCapabilities: '', recordEvent: '', removeEvent: '', retention: '', revokeAchievement: '', schemaId: '', scope: '', stepsRequired: '', tgAchievementReward: '', tgCheckAchievements: '', tgEvent: '', tgEventBool: '', tgEventToggle: '', tgEventToggleBool: '', tgLevelGrantSync: '', tgUpdateAggregates: '', trustLadder: '', upsertAggregate: '' }, select: { id: true } }).execute(); // Update const updated = await db.eventsModule.update({ where: { id: '' }, data: { achievementRewardsTableId: '' }, select: { id: true } }).execute(); @@ -1371,6 +1575,43 @@ const updated = await db.eventsModule.update({ where: { id: '' }, data: { const deleted = await db.eventsModule.delete({ where: { id: '' } }).execute(); ``` +### `db.fileRefField` + +CRUD operations for FileRefField records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `bucketKey` | String | Yes | +| `bucketTags` | String | Yes | +| `databaseId` | UUID | Yes | +| `enforceFk` | Boolean | Yes | +| `fieldId` | UUID | Yes | +| `id` | UUID | No | +| `isPublic` | Boolean | Yes | +| `storageModuleId` | UUID | Yes | +| `tableId` | UUID | Yes | + +**Operations:** + +```typescript +// List all fileRefField records +const items = await db.fileRefField.findMany({ select: { bucketKey: true, bucketTags: true, databaseId: true, enforceFk: true, fieldId: true, id: true, isPublic: true, storageModuleId: true, tableId: true } }).execute(); + +// Get one by id +const item = await db.fileRefField.findOne({ id: '', select: { bucketKey: true, bucketTags: true, databaseId: true, enforceFk: true, fieldId: true, id: true, isPublic: true, storageModuleId: true, tableId: true } }).execute(); + +// Create +const created = await db.fileRefField.create({ data: { bucketKey: '', bucketTags: '', databaseId: '', enforceFk: '', fieldId: '', isPublic: '', storageModuleId: '', tableId: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.fileRefField.update({ where: { id: '' }, data: { bucketKey: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.fileRefField.delete({ where: { id: '' } }).execute(); +``` + ### `db.functionDeploymentModule` CRUD operations for FunctionDeploymentModule records. @@ -1381,7 +1622,7 @@ CRUD operations for FunctionDeploymentModule records. |-------|------|----------| | `apiName` | String | Yes | | `databaseId` | UUID | Yes | -| `defaultPermissions` | String | Yes | +| `defaultCapabilities` | String | Yes | | `deploymentEventsTableId` | UUID | Yes | | `deploymentEventsTableName` | String | Yes | | `deploymentsTableId` | UUID | Yes | @@ -1405,13 +1646,13 @@ CRUD operations for FunctionDeploymentModule records. ```typescript // List all functionDeploymentModule records -const items = await db.functionDeploymentModule.findMany({ select: { apiName: true, databaseId: true, defaultPermissions: true, deploymentEventsTableId: true, deploymentEventsTableName: true, deploymentsTableId: true, deploymentsTableName: true, entityField: true, entityTableId: true, functionModuleId: true, id: true, namespaceModuleId: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provisions: true, publicSchemaName: true, schemaId: true, scope: true } }).execute(); +const items = await db.functionDeploymentModule.findMany({ select: { apiName: true, databaseId: true, defaultCapabilities: true, deploymentEventsTableId: true, deploymentEventsTableName: true, deploymentsTableId: true, deploymentsTableName: true, entityField: true, entityTableId: true, functionModuleId: true, id: true, namespaceModuleId: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provisions: true, publicSchemaName: true, schemaId: true, scope: true } }).execute(); // Get one by id -const item = await db.functionDeploymentModule.findOne({ id: '', select: { apiName: true, databaseId: true, defaultPermissions: true, deploymentEventsTableId: true, deploymentEventsTableName: true, deploymentsTableId: true, deploymentsTableName: true, entityField: true, entityTableId: true, functionModuleId: true, id: true, namespaceModuleId: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provisions: true, publicSchemaName: true, schemaId: true, scope: true } }).execute(); +const item = await db.functionDeploymentModule.findOne({ id: '', select: { apiName: true, databaseId: true, defaultCapabilities: true, deploymentEventsTableId: true, deploymentEventsTableName: true, deploymentsTableId: true, deploymentsTableName: true, entityField: true, entityTableId: true, functionModuleId: true, id: true, namespaceModuleId: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provisions: true, publicSchemaName: true, schemaId: true, scope: true } }).execute(); // Create -const created = await db.functionDeploymentModule.create({ data: { apiName: '', databaseId: '', defaultPermissions: '', deploymentEventsTableId: '', deploymentEventsTableName: '', deploymentsTableId: '', deploymentsTableName: '', entityField: '', entityTableId: '', functionModuleId: '', namespaceModuleId: '', policies: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', provisions: '', publicSchemaName: '', schemaId: '', scope: '' }, select: { id: true } }).execute(); +const created = await db.functionDeploymentModule.create({ data: { apiName: '', databaseId: '', defaultCapabilities: '', deploymentEventsTableId: '', deploymentEventsTableName: '', deploymentsTableId: '', deploymentsTableName: '', entityField: '', entityTableId: '', functionModuleId: '', namespaceModuleId: '', policies: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', provisions: '', publicSchemaName: '', schemaId: '', scope: '' }, select: { id: true } }).execute(); // Update const updated = await db.functionDeploymentModule.update({ where: { id: '' }, data: { apiName: '' }, select: { id: true } }).execute(); @@ -1432,7 +1673,7 @@ CRUD operations for FunctionInvocationModule records. | `attemptsTableId` | UUID | Yes | | `attemptsTableName` | String | Yes | | `databaseId` | UUID | Yes | -| `defaultPermissions` | String | Yes | +| `defaultCapabilities` | String | Yes | | `entityField` | String | Yes | | `entityTableId` | UUID | Yes | | `executionLogsTableId` | UUID | Yes | @@ -1454,13 +1695,13 @@ CRUD operations for FunctionInvocationModule records. ```typescript // List all functionInvocationModule records -const items = await db.functionInvocationModule.findMany({ select: { apiName: true, attemptsTableId: true, attemptsTableName: true, databaseId: true, defaultPermissions: true, entityField: true, entityTableId: true, executionLogsTableId: true, executionLogsTableName: true, id: true, invocationsTableId: true, invocationsTableName: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provisions: true, publicSchemaName: true, schemaId: true, scope: true } }).execute(); +const items = await db.functionInvocationModule.findMany({ select: { apiName: true, attemptsTableId: true, attemptsTableName: true, databaseId: true, defaultCapabilities: true, entityField: true, entityTableId: true, executionLogsTableId: true, executionLogsTableName: true, id: true, invocationsTableId: true, invocationsTableName: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provisions: true, publicSchemaName: true, schemaId: true, scope: true } }).execute(); // Get one by id -const item = await db.functionInvocationModule.findOne({ id: '', select: { apiName: true, attemptsTableId: true, attemptsTableName: true, databaseId: true, defaultPermissions: true, entityField: true, entityTableId: true, executionLogsTableId: true, executionLogsTableName: true, id: true, invocationsTableId: true, invocationsTableName: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provisions: true, publicSchemaName: true, schemaId: true, scope: true } }).execute(); +const item = await db.functionInvocationModule.findOne({ id: '', select: { apiName: true, attemptsTableId: true, attemptsTableName: true, databaseId: true, defaultCapabilities: true, entityField: true, entityTableId: true, executionLogsTableId: true, executionLogsTableName: true, id: true, invocationsTableId: true, invocationsTableName: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provisions: true, publicSchemaName: true, schemaId: true, scope: true } }).execute(); // Create -const created = await db.functionInvocationModule.create({ data: { apiName: '', attemptsTableId: '', attemptsTableName: '', databaseId: '', defaultPermissions: '', entityField: '', entityTableId: '', executionLogsTableId: '', executionLogsTableName: '', invocationsTableId: '', invocationsTableName: '', policies: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', provisions: '', publicSchemaName: '', schemaId: '', scope: '' }, select: { id: true } }).execute(); +const created = await db.functionInvocationModule.create({ data: { apiName: '', attemptsTableId: '', attemptsTableName: '', databaseId: '', defaultCapabilities: '', entityField: '', entityTableId: '', executionLogsTableId: '', executionLogsTableName: '', invocationsTableId: '', invocationsTableName: '', policies: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', provisions: '', publicSchemaName: '', schemaId: '', scope: '' }, select: { id: true } }).execute(); // Update const updated = await db.functionInvocationModule.update({ where: { id: '' }, data: { apiName: '' }, select: { id: true } }).execute(); @@ -1482,7 +1723,7 @@ CRUD operations for FunctionModule records. | `bindingsTableName` | String | Yes | | `capabilityBindingsTableId` | UUID | Yes | | `databaseId` | UUID | Yes | -| `defaultPermissions` | String | Yes | +| `defaultCapabilities` | String | Yes | | `definitionsTableId` | UUID | Yes | | `definitionsTableName` | String | Yes | | `entityField` | String | Yes | @@ -1504,13 +1745,13 @@ CRUD operations for FunctionModule records. ```typescript // List all functionModule records -const items = await db.functionModule.findMany({ select: { apiName: true, bindingsTableId: true, bindingsTableName: true, capabilityBindingsTableId: true, databaseId: true, defaultPermissions: true, definitionsTableId: true, definitionsTableName: true, entityField: true, entityTableId: true, hasCron: true, id: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provisions: true, publicSchemaName: true, schedulesTableId: true, schemaId: true, scope: true } }).execute(); +const items = await db.functionModule.findMany({ select: { apiName: true, bindingsTableId: true, bindingsTableName: true, capabilityBindingsTableId: true, databaseId: true, defaultCapabilities: true, definitionsTableId: true, definitionsTableName: true, entityField: true, entityTableId: true, hasCron: true, id: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provisions: true, publicSchemaName: true, schedulesTableId: true, schemaId: true, scope: true } }).execute(); // Get one by id -const item = await db.functionModule.findOne({ id: '', select: { apiName: true, bindingsTableId: true, bindingsTableName: true, capabilityBindingsTableId: true, databaseId: true, defaultPermissions: true, definitionsTableId: true, definitionsTableName: true, entityField: true, entityTableId: true, hasCron: true, id: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provisions: true, publicSchemaName: true, schedulesTableId: true, schemaId: true, scope: true } }).execute(); +const item = await db.functionModule.findOne({ id: '', select: { apiName: true, bindingsTableId: true, bindingsTableName: true, capabilityBindingsTableId: true, databaseId: true, defaultCapabilities: true, definitionsTableId: true, definitionsTableName: true, entityField: true, entityTableId: true, hasCron: true, id: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provisions: true, publicSchemaName: true, schedulesTableId: true, schemaId: true, scope: true } }).execute(); // Create -const created = await db.functionModule.create({ data: { apiName: '', bindingsTableId: '', bindingsTableName: '', capabilityBindingsTableId: '', databaseId: '', defaultPermissions: '', definitionsTableId: '', definitionsTableName: '', entityField: '', entityTableId: '', hasCron: '', policies: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', provisions: '', publicSchemaName: '', schedulesTableId: '', schemaId: '', scope: '' }, select: { id: true } }).execute(); +const created = await db.functionModule.create({ data: { apiName: '', bindingsTableId: '', bindingsTableName: '', capabilityBindingsTableId: '', databaseId: '', defaultCapabilities: '', definitionsTableId: '', definitionsTableName: '', entityField: '', entityTableId: '', hasCron: '', policies: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', provisions: '', publicSchemaName: '', schedulesTableId: '', schemaId: '', scope: '' }, select: { id: true } }).execute(); // Update const updated = await db.functionModule.update({ where: { id: '' }, data: { apiName: '' }, select: { id: true } }).execute(); @@ -1530,7 +1771,7 @@ CRUD operations for GraphExecutionModule records. | `apiName` | String | Yes | | `createdAt` | Datetime | No | | `databaseId` | UUID | Yes | -| `defaultPermissions` | String | Yes | +| `defaultCapabilities` | String | Yes | | `entityField` | String | Yes | | `entityTableId` | UUID | Yes | | `executionsTableId` | UUID | Yes | @@ -1555,13 +1796,13 @@ CRUD operations for GraphExecutionModule records. ```typescript // List all graphExecutionModule records -const items = await db.graphExecutionModule.findMany({ select: { apiName: true, createdAt: true, databaseId: true, defaultPermissions: true, entityField: true, entityTableId: true, executionsTableId: true, executionsTableName: true, graphModuleId: true, id: true, nodeStatesTableId: true, nodeStatesTableName: true, outputsTableId: true, outputsTableName: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provisions: true, publicSchemaName: true, schemaId: true, scope: true } }).execute(); +const items = await db.graphExecutionModule.findMany({ select: { apiName: true, createdAt: true, databaseId: true, defaultCapabilities: true, entityField: true, entityTableId: true, executionsTableId: true, executionsTableName: true, graphModuleId: true, id: true, nodeStatesTableId: true, nodeStatesTableName: true, outputsTableId: true, outputsTableName: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provisions: true, publicSchemaName: true, schemaId: true, scope: true } }).execute(); // Get one by id -const item = await db.graphExecutionModule.findOne({ id: '', select: { apiName: true, createdAt: true, databaseId: true, defaultPermissions: true, entityField: true, entityTableId: true, executionsTableId: true, executionsTableName: true, graphModuleId: true, id: true, nodeStatesTableId: true, nodeStatesTableName: true, outputsTableId: true, outputsTableName: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provisions: true, publicSchemaName: true, schemaId: true, scope: true } }).execute(); +const item = await db.graphExecutionModule.findOne({ id: '', select: { apiName: true, createdAt: true, databaseId: true, defaultCapabilities: true, entityField: true, entityTableId: true, executionsTableId: true, executionsTableName: true, graphModuleId: true, id: true, nodeStatesTableId: true, nodeStatesTableName: true, outputsTableId: true, outputsTableName: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provisions: true, publicSchemaName: true, schemaId: true, scope: true } }).execute(); // Create -const created = await db.graphExecutionModule.create({ data: { apiName: '', databaseId: '', defaultPermissions: '', entityField: '', entityTableId: '', executionsTableId: '', executionsTableName: '', graphModuleId: '', nodeStatesTableId: '', nodeStatesTableName: '', outputsTableId: '', outputsTableName: '', policies: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', provisions: '', publicSchemaName: '', schemaId: '', scope: '' }, select: { id: true } }).execute(); +const created = await db.graphExecutionModule.create({ data: { apiName: '', databaseId: '', defaultCapabilities: '', entityField: '', entityTableId: '', executionsTableId: '', executionsTableName: '', graphModuleId: '', nodeStatesTableId: '', nodeStatesTableName: '', outputsTableId: '', outputsTableName: '', policies: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', provisions: '', publicSchemaName: '', schemaId: '', scope: '' }, select: { id: true } }).execute(); // Update const updated = await db.graphExecutionModule.update({ where: { id: '' }, data: { apiName: '' }, select: { id: true } }).execute(); @@ -1581,7 +1822,7 @@ CRUD operations for GraphModule records. | `apiName` | String | Yes | | `createdAt` | Datetime | No | | `databaseId` | UUID | Yes | -| `defaultPermissions` | String | Yes | +| `defaultCapabilities` | String | Yes | | `entityField` | String | Yes | | `entityTableId` | UUID | Yes | | `graphsTableId` | UUID | Yes | @@ -1601,13 +1842,13 @@ CRUD operations for GraphModule records. ```typescript // List all graphModule records -const items = await db.graphModule.findMany({ select: { apiName: true, createdAt: true, databaseId: true, defaultPermissions: true, entityField: true, entityTableId: true, graphsTableId: true, id: true, merkleStoreModuleId: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provisions: true, publicSchemaId: true, publicSchemaName: true, scope: true } }).execute(); +const items = await db.graphModule.findMany({ select: { apiName: true, createdAt: true, databaseId: true, defaultCapabilities: true, entityField: true, entityTableId: true, graphsTableId: true, id: true, merkleStoreModuleId: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provisions: true, publicSchemaId: true, publicSchemaName: true, scope: true } }).execute(); // Get one by id -const item = await db.graphModule.findOne({ id: '', select: { apiName: true, createdAt: true, databaseId: true, defaultPermissions: true, entityField: true, entityTableId: true, graphsTableId: true, id: true, merkleStoreModuleId: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provisions: true, publicSchemaId: true, publicSchemaName: true, scope: true } }).execute(); +const item = await db.graphModule.findOne({ id: '', select: { apiName: true, createdAt: true, databaseId: true, defaultCapabilities: true, entityField: true, entityTableId: true, graphsTableId: true, id: true, merkleStoreModuleId: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provisions: true, publicSchemaId: true, publicSchemaName: true, scope: true } }).execute(); // Create -const created = await db.graphModule.create({ data: { apiName: '', databaseId: '', defaultPermissions: '', entityField: '', entityTableId: '', graphsTableId: '', merkleStoreModuleId: '', policies: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', provisions: '', publicSchemaId: '', publicSchemaName: '', scope: '' }, select: { id: true } }).execute(); +const created = await db.graphModule.create({ data: { apiName: '', databaseId: '', defaultCapabilities: '', entityField: '', entityTableId: '', graphsTableId: '', merkleStoreModuleId: '', policies: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', provisions: '', publicSchemaId: '', publicSchemaName: '', scope: '' }, select: { id: true } }).execute(); // Update const updated = await db.graphModule.update({ where: { id: '' }, data: { apiName: '' }, select: { id: true } }).execute(); @@ -1630,7 +1871,7 @@ CRUD operations for HierarchyModule records. | `chartEdgesTableName` | String | Yes | | `createdAt` | Datetime | No | | `databaseId` | UUID | Yes | -| `defaultPermissions` | String | Yes | +| `defaultCapabilities` | String | Yes | | `entityField` | String | Yes | | `entityTableId` | UUID | Yes | | `getManagersFunction` | String | Yes | @@ -1652,13 +1893,13 @@ CRUD operations for HierarchyModule records. ```typescript // List all hierarchyModule records -const items = await db.hierarchyModule.findMany({ select: { chartEdgeGrantsTableId: true, chartEdgeGrantsTableName: true, chartEdgesTableId: true, chartEdgesTableName: true, createdAt: true, databaseId: true, defaultPermissions: true, entityField: true, entityTableId: true, getManagersFunction: true, getSubordinatesFunction: true, hierarchySprtTableId: true, hierarchySprtTableName: true, id: true, isManagerOfFunction: true, prefix: true, privateSchemaId: true, privateSchemaName: true, rebuildHierarchyFunction: true, schemaId: true, scope: true, sprtTableName: true, usersTableId: true } }).execute(); +const items = await db.hierarchyModule.findMany({ select: { chartEdgeGrantsTableId: true, chartEdgeGrantsTableName: true, chartEdgesTableId: true, chartEdgesTableName: true, createdAt: true, databaseId: true, defaultCapabilities: true, entityField: true, entityTableId: true, getManagersFunction: true, getSubordinatesFunction: true, hierarchySprtTableId: true, hierarchySprtTableName: true, id: true, isManagerOfFunction: true, prefix: true, privateSchemaId: true, privateSchemaName: true, rebuildHierarchyFunction: true, schemaId: true, scope: true, sprtTableName: true, usersTableId: true } }).execute(); // Get one by id -const item = await db.hierarchyModule.findOne({ id: '', select: { chartEdgeGrantsTableId: true, chartEdgeGrantsTableName: true, chartEdgesTableId: true, chartEdgesTableName: true, createdAt: true, databaseId: true, defaultPermissions: true, entityField: true, entityTableId: true, getManagersFunction: true, getSubordinatesFunction: true, hierarchySprtTableId: true, hierarchySprtTableName: true, id: true, isManagerOfFunction: true, prefix: true, privateSchemaId: true, privateSchemaName: true, rebuildHierarchyFunction: true, schemaId: true, scope: true, sprtTableName: true, usersTableId: true } }).execute(); +const item = await db.hierarchyModule.findOne({ id: '', select: { chartEdgeGrantsTableId: true, chartEdgeGrantsTableName: true, chartEdgesTableId: true, chartEdgesTableName: true, createdAt: true, databaseId: true, defaultCapabilities: true, entityField: true, entityTableId: true, getManagersFunction: true, getSubordinatesFunction: true, hierarchySprtTableId: true, hierarchySprtTableName: true, id: true, isManagerOfFunction: true, prefix: true, privateSchemaId: true, privateSchemaName: true, rebuildHierarchyFunction: true, schemaId: true, scope: true, sprtTableName: true, usersTableId: true } }).execute(); // Create -const created = await db.hierarchyModule.create({ data: { chartEdgeGrantsTableId: '', chartEdgeGrantsTableName: '', chartEdgesTableId: '', chartEdgesTableName: '', databaseId: '', defaultPermissions: '', entityField: '', entityTableId: '', getManagersFunction: '', getSubordinatesFunction: '', hierarchySprtTableId: '', hierarchySprtTableName: '', isManagerOfFunction: '', prefix: '', privateSchemaId: '', privateSchemaName: '', rebuildHierarchyFunction: '', schemaId: '', scope: '', sprtTableName: '', usersTableId: '' }, select: { id: true } }).execute(); +const created = await db.hierarchyModule.create({ data: { chartEdgeGrantsTableId: '', chartEdgeGrantsTableName: '', chartEdgesTableId: '', chartEdgesTableName: '', databaseId: '', defaultCapabilities: '', entityField: '', entityTableId: '', getManagersFunction: '', getSubordinatesFunction: '', hierarchySprtTableId: '', hierarchySprtTableName: '', isManagerOfFunction: '', prefix: '', privateSchemaId: '', privateSchemaName: '', rebuildHierarchyFunction: '', schemaId: '', scope: '', sprtTableName: '', usersTableId: '' }, select: { id: true } }).execute(); // Update const updated = await db.hierarchyModule.update({ where: { id: '' }, data: { chartEdgeGrantsTableId: '' }, select: { id: true } }).execute(); @@ -1677,7 +1918,7 @@ CRUD operations for HttpRouteModule records. |-------|------|----------| | `apiName` | String | Yes | | `databaseId` | UUID | Yes | -| `defaultPermissions` | String | Yes | +| `defaultCapabilities` | String | Yes | | `entityField` | String | Yes | | `entityTableId` | UUID | Yes | | `functionModuleId` | UUID | Yes | @@ -1701,13 +1942,13 @@ CRUD operations for HttpRouteModule records. ```typescript // List all httpRouteModule records -const items = await db.httpRouteModule.findMany({ select: { apiName: true, databaseId: true, defaultPermissions: true, entityField: true, entityTableId: true, functionModuleId: true, httpRoutesTableId: true, httpRoutesTableName: true, id: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provisions: true, publicSchemaName: true, resolverFunctionName: true, resourceModuleId: true, schemaId: true, scope: true, storageModuleId: true } }).execute(); +const items = await db.httpRouteModule.findMany({ select: { apiName: true, databaseId: true, defaultCapabilities: true, entityField: true, entityTableId: true, functionModuleId: true, httpRoutesTableId: true, httpRoutesTableName: true, id: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provisions: true, publicSchemaName: true, resolverFunctionName: true, resourceModuleId: true, schemaId: true, scope: true, storageModuleId: true } }).execute(); // Get one by id -const item = await db.httpRouteModule.findOne({ id: '', select: { apiName: true, databaseId: true, defaultPermissions: true, entityField: true, entityTableId: true, functionModuleId: true, httpRoutesTableId: true, httpRoutesTableName: true, id: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provisions: true, publicSchemaName: true, resolverFunctionName: true, resourceModuleId: true, schemaId: true, scope: true, storageModuleId: true } }).execute(); +const item = await db.httpRouteModule.findOne({ id: '', select: { apiName: true, databaseId: true, defaultCapabilities: true, entityField: true, entityTableId: true, functionModuleId: true, httpRoutesTableId: true, httpRoutesTableName: true, id: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provisions: true, publicSchemaName: true, resolverFunctionName: true, resourceModuleId: true, schemaId: true, scope: true, storageModuleId: true } }).execute(); // Create -const created = await db.httpRouteModule.create({ data: { apiName: '', databaseId: '', defaultPermissions: '', entityField: '', entityTableId: '', functionModuleId: '', httpRoutesTableId: '', httpRoutesTableName: '', policies: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', provisions: '', publicSchemaName: '', resolverFunctionName: '', resourceModuleId: '', schemaId: '', scope: '', storageModuleId: '' }, select: { id: true } }).execute(); +const created = await db.httpRouteModule.create({ data: { apiName: '', databaseId: '', defaultCapabilities: '', entityField: '', entityTableId: '', functionModuleId: '', httpRoutesTableId: '', httpRoutesTableName: '', policies: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', provisions: '', publicSchemaName: '', resolverFunctionName: '', resourceModuleId: '', schemaId: '', scope: '', storageModuleId: '' }, select: { id: true } }).execute(); // Update const updated = await db.httpRouteModule.update({ where: { id: '' }, data: { apiName: '' }, select: { id: true } }).execute(); @@ -2092,6 +2333,7 @@ CRUD operations for LimitsModule records. | `limitCreditsTableId` | UUID | Yes | | `limitDecrementFunction` | String | Yes | | `limitDecrementTrigger` | String | Yes | +| `limitDefaults` | JSON | Yes | | `limitIncrementFunction` | String | Yes | | `limitIncrementTrigger` | String | Yes | | `limitUpdateTrigger` | String | Yes | @@ -2112,13 +2354,13 @@ CRUD operations for LimitsModule records. ```typescript // List all limitsModule records -const items = await db.limitsModule.findMany({ select: { actorTableId: true, aggregateTableId: true, apiName: true, capCheckTrigger: true, creditCodeItemsTableId: true, creditCodesTableId: true, creditRedemptionsTableId: true, databaseId: true, defaultTableId: true, defaultTableName: true, entityField: true, entityTableId: true, eventsTableId: true, id: true, limitAggregateCheckSoftFunction: true, limitCapsDefaultsTableId: true, limitCapsTableId: true, limitCheckFunction: true, limitCheckSoftFunction: true, limitCreditsTableId: true, limitDecrementFunction: true, limitDecrementTrigger: true, limitIncrementFunction: true, limitIncrementTrigger: true, limitUpdateTrigger: true, limitWarningStateTableId: true, limitWarningsTableId: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, publicSchemaName: true, resolveCapFunction: true, schemaId: true, scope: true, tableId: true, tableName: true } }).execute(); +const items = await db.limitsModule.findMany({ select: { actorTableId: true, aggregateTableId: true, apiName: true, capCheckTrigger: true, creditCodeItemsTableId: true, creditCodesTableId: true, creditRedemptionsTableId: true, databaseId: true, defaultTableId: true, defaultTableName: true, entityField: true, entityTableId: true, eventsTableId: true, id: true, limitAggregateCheckSoftFunction: true, limitCapsDefaultsTableId: true, limitCapsTableId: true, limitCheckFunction: true, limitCheckSoftFunction: true, limitCreditsTableId: true, limitDecrementFunction: true, limitDecrementTrigger: true, limitDefaults: true, limitIncrementFunction: true, limitIncrementTrigger: true, limitUpdateTrigger: true, limitWarningStateTableId: true, limitWarningsTableId: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, publicSchemaName: true, resolveCapFunction: true, schemaId: true, scope: true, tableId: true, tableName: true } }).execute(); // Get one by id -const item = await db.limitsModule.findOne({ id: '', select: { actorTableId: true, aggregateTableId: true, apiName: true, capCheckTrigger: true, creditCodeItemsTableId: true, creditCodesTableId: true, creditRedemptionsTableId: true, databaseId: true, defaultTableId: true, defaultTableName: true, entityField: true, entityTableId: true, eventsTableId: true, id: true, limitAggregateCheckSoftFunction: true, limitCapsDefaultsTableId: true, limitCapsTableId: true, limitCheckFunction: true, limitCheckSoftFunction: true, limitCreditsTableId: true, limitDecrementFunction: true, limitDecrementTrigger: true, limitIncrementFunction: true, limitIncrementTrigger: true, limitUpdateTrigger: true, limitWarningStateTableId: true, limitWarningsTableId: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, publicSchemaName: true, resolveCapFunction: true, schemaId: true, scope: true, tableId: true, tableName: true } }).execute(); +const item = await db.limitsModule.findOne({ id: '', select: { actorTableId: true, aggregateTableId: true, apiName: true, capCheckTrigger: true, creditCodeItemsTableId: true, creditCodesTableId: true, creditRedemptionsTableId: true, databaseId: true, defaultTableId: true, defaultTableName: true, entityField: true, entityTableId: true, eventsTableId: true, id: true, limitAggregateCheckSoftFunction: true, limitCapsDefaultsTableId: true, limitCapsTableId: true, limitCheckFunction: true, limitCheckSoftFunction: true, limitCreditsTableId: true, limitDecrementFunction: true, limitDecrementTrigger: true, limitDefaults: true, limitIncrementFunction: true, limitIncrementTrigger: true, limitUpdateTrigger: true, limitWarningStateTableId: true, limitWarningsTableId: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, publicSchemaName: true, resolveCapFunction: true, schemaId: true, scope: true, tableId: true, tableName: true } }).execute(); // Create -const created = await db.limitsModule.create({ data: { actorTableId: '', aggregateTableId: '', apiName: '', capCheckTrigger: '', creditCodeItemsTableId: '', creditCodesTableId: '', creditRedemptionsTableId: '', databaseId: '', defaultTableId: '', defaultTableName: '', entityField: '', entityTableId: '', eventsTableId: '', limitAggregateCheckSoftFunction: '', limitCapsDefaultsTableId: '', limitCapsTableId: '', limitCheckFunction: '', limitCheckSoftFunction: '', limitCreditsTableId: '', limitDecrementFunction: '', limitDecrementTrigger: '', limitIncrementFunction: '', limitIncrementTrigger: '', limitUpdateTrigger: '', limitWarningStateTableId: '', limitWarningsTableId: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', publicSchemaName: '', resolveCapFunction: '', schemaId: '', scope: '', tableId: '', tableName: '' }, select: { id: true } }).execute(); +const created = await db.limitsModule.create({ data: { actorTableId: '', aggregateTableId: '', apiName: '', capCheckTrigger: '', creditCodeItemsTableId: '', creditCodesTableId: '', creditRedemptionsTableId: '', databaseId: '', defaultTableId: '', defaultTableName: '', entityField: '', entityTableId: '', eventsTableId: '', limitAggregateCheckSoftFunction: '', limitCapsDefaultsTableId: '', limitCapsTableId: '', limitCheckFunction: '', limitCheckSoftFunction: '', limitCreditsTableId: '', limitDecrementFunction: '', limitDecrementTrigger: '', limitDefaults: '', limitIncrementFunction: '', limitIncrementTrigger: '', limitUpdateTrigger: '', limitWarningStateTableId: '', limitWarningsTableId: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', publicSchemaName: '', resolveCapFunction: '', schemaId: '', scope: '', tableId: '', tableName: '' }, select: { id: true } }).execute(); // Update const updated = await db.limitsModule.update({ where: { id: '' }, data: { actorTableId: '' }, select: { id: true } }).execute(); @@ -2174,9 +2416,12 @@ CRUD operations for MembershipsModule records. | `adminGrantsTableId` | UUID | Yes | | `adminGrantsTableName` | String | Yes | | `apiName` | String | Yes | +| `capabilitiesTableId` | UUID | Yes | +| `capabilityDefaultCapabilitiesTableId` | UUID | Yes | +| `capabilityDefaultGrantsTableId` | UUID | Yes | | `databaseId` | UUID | Yes | +| `defaultCapabilitiesTableId` | UUID | Yes | | `defaultLimitsTableId` | UUID | Yes | -| `defaultPermissionsTableId` | UUID | Yes | | `entityField` | String | Yes | | `entityIdsByMask` | String | Yes | | `entityIdsByPerm` | String | Yes | @@ -2199,9 +2444,6 @@ CRUD operations for MembershipsModule records. | `membershipsTableName` | String | Yes | | `ownerGrantsTableId` | UUID | Yes | | `ownerGrantsTableName` | String | Yes | -| `permissionDefaultGrantsTableId` | UUID | Yes | -| `permissionDefaultPermissionsTableId` | UUID | Yes | -| `permissionsTableId` | UUID | Yes | | `prefix` | String | Yes | | `privateApiName` | String | Yes | | `privateSchemaId` | UUID | Yes | @@ -2215,13 +2457,13 @@ CRUD operations for MembershipsModule records. ```typescript // List all membershipsModule records -const items = await db.membershipsModule.findMany({ select: { actorMaskCheck: true, actorPermCheck: true, actorTableId: true, adminGrantsTableId: true, adminGrantsTableName: true, apiName: true, databaseId: true, defaultLimitsTableId: true, defaultPermissionsTableId: true, entityField: true, entityIdsByMask: true, entityIdsByPerm: true, entityIdsFunction: true, entityTableId: true, entityTableOwnerId: true, getOrgFn: true, grantsTableId: true, grantsTableName: true, id: true, limitsTableId: true, memberProfilesTableId: true, membersTableId: true, membersTableName: true, membershipDefaultsTableId: true, membershipDefaultsTableName: true, membershipSettingsTableId: true, membershipSettingsTableName: true, membershipsTableId: true, membershipsTableName: true, ownerGrantsTableId: true, ownerGrantsTableName: true, permissionDefaultGrantsTableId: true, permissionDefaultPermissionsTableId: true, permissionsTableId: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, publicSchemaName: true, schemaId: true, scope: true, sprtTableId: true } }).execute(); +const items = await db.membershipsModule.findMany({ select: { actorMaskCheck: true, actorPermCheck: true, actorTableId: true, adminGrantsTableId: true, adminGrantsTableName: true, apiName: true, capabilitiesTableId: true, capabilityDefaultCapabilitiesTableId: true, capabilityDefaultGrantsTableId: true, databaseId: true, defaultCapabilitiesTableId: true, defaultLimitsTableId: true, entityField: true, entityIdsByMask: true, entityIdsByPerm: true, entityIdsFunction: true, entityTableId: true, entityTableOwnerId: true, getOrgFn: true, grantsTableId: true, grantsTableName: true, id: true, limitsTableId: true, memberProfilesTableId: true, membersTableId: true, membersTableName: true, membershipDefaultsTableId: true, membershipDefaultsTableName: true, membershipSettingsTableId: true, membershipSettingsTableName: true, membershipsTableId: true, membershipsTableName: true, ownerGrantsTableId: true, ownerGrantsTableName: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, publicSchemaName: true, schemaId: true, scope: true, sprtTableId: true } }).execute(); // Get one by id -const item = await db.membershipsModule.findOne({ id: '', select: { actorMaskCheck: true, actorPermCheck: true, actorTableId: true, adminGrantsTableId: true, adminGrantsTableName: true, apiName: true, databaseId: true, defaultLimitsTableId: true, defaultPermissionsTableId: true, entityField: true, entityIdsByMask: true, entityIdsByPerm: true, entityIdsFunction: true, entityTableId: true, entityTableOwnerId: true, getOrgFn: true, grantsTableId: true, grantsTableName: true, id: true, limitsTableId: true, memberProfilesTableId: true, membersTableId: true, membersTableName: true, membershipDefaultsTableId: true, membershipDefaultsTableName: true, membershipSettingsTableId: true, membershipSettingsTableName: true, membershipsTableId: true, membershipsTableName: true, ownerGrantsTableId: true, ownerGrantsTableName: true, permissionDefaultGrantsTableId: true, permissionDefaultPermissionsTableId: true, permissionsTableId: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, publicSchemaName: true, schemaId: true, scope: true, sprtTableId: true } }).execute(); +const item = await db.membershipsModule.findOne({ id: '', select: { actorMaskCheck: true, actorPermCheck: true, actorTableId: true, adminGrantsTableId: true, adminGrantsTableName: true, apiName: true, capabilitiesTableId: true, capabilityDefaultCapabilitiesTableId: true, capabilityDefaultGrantsTableId: true, databaseId: true, defaultCapabilitiesTableId: true, defaultLimitsTableId: true, entityField: true, entityIdsByMask: true, entityIdsByPerm: true, entityIdsFunction: true, entityTableId: true, entityTableOwnerId: true, getOrgFn: true, grantsTableId: true, grantsTableName: true, id: true, limitsTableId: true, memberProfilesTableId: true, membersTableId: true, membersTableName: true, membershipDefaultsTableId: true, membershipDefaultsTableName: true, membershipSettingsTableId: true, membershipSettingsTableName: true, membershipsTableId: true, membershipsTableName: true, ownerGrantsTableId: true, ownerGrantsTableName: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, publicSchemaName: true, schemaId: true, scope: true, sprtTableId: true } }).execute(); // Create -const created = await db.membershipsModule.create({ data: { actorMaskCheck: '', actorPermCheck: '', actorTableId: '', adminGrantsTableId: '', adminGrantsTableName: '', apiName: '', databaseId: '', defaultLimitsTableId: '', defaultPermissionsTableId: '', entityField: '', entityIdsByMask: '', entityIdsByPerm: '', entityIdsFunction: '', entityTableId: '', entityTableOwnerId: '', getOrgFn: '', grantsTableId: '', grantsTableName: '', limitsTableId: '', memberProfilesTableId: '', membersTableId: '', membersTableName: '', membershipDefaultsTableId: '', membershipDefaultsTableName: '', membershipSettingsTableId: '', membershipSettingsTableName: '', membershipsTableId: '', membershipsTableName: '', ownerGrantsTableId: '', ownerGrantsTableName: '', permissionDefaultGrantsTableId: '', permissionDefaultPermissionsTableId: '', permissionsTableId: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', publicSchemaName: '', schemaId: '', scope: '', sprtTableId: '' }, select: { id: true } }).execute(); +const created = await db.membershipsModule.create({ data: { actorMaskCheck: '', actorPermCheck: '', actorTableId: '', adminGrantsTableId: '', adminGrantsTableName: '', apiName: '', capabilitiesTableId: '', capabilityDefaultCapabilitiesTableId: '', capabilityDefaultGrantsTableId: '', databaseId: '', defaultCapabilitiesTableId: '', defaultLimitsTableId: '', entityField: '', entityIdsByMask: '', entityIdsByPerm: '', entityIdsFunction: '', entityTableId: '', entityTableOwnerId: '', getOrgFn: '', grantsTableId: '', grantsTableName: '', limitsTableId: '', memberProfilesTableId: '', membersTableId: '', membersTableName: '', membershipDefaultsTableId: '', membershipDefaultsTableName: '', membershipSettingsTableId: '', membershipSettingsTableName: '', membershipsTableId: '', membershipsTableName: '', ownerGrantsTableId: '', ownerGrantsTableName: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', publicSchemaName: '', schemaId: '', scope: '', sprtTableId: '' }, select: { id: true } }).execute(); // Update const updated = await db.membershipsModule.update({ where: { id: '' }, data: { actorMaskCheck: '' }, select: { id: true } }).execute(); @@ -2239,6 +2481,7 @@ CRUD operations for MerkleStoreModule records. | Field | Type | Editable | |-------|------|----------| | `apiName` | String | Yes | +| `capabilityKey` | String | Yes | | `commitTableId` | UUID | Yes | | `createdAt` | Datetime | No | | `databaseId` | UUID | Yes | @@ -2246,7 +2489,6 @@ CRUD operations for MerkleStoreModule records. | `functionPrefix` | String | Yes | | `id` | UUID | No | | `objectTableId` | UUID | Yes | -| `permissionKey` | String | Yes | | `prefix` | String | Yes | | `privateApiName` | String | Yes | | `privateSchemaId` | UUID | Yes | @@ -2261,13 +2503,13 @@ CRUD operations for MerkleStoreModule records. ```typescript // List all merkleStoreModule records -const items = await db.merkleStoreModule.findMany({ select: { apiName: true, commitTableId: true, createdAt: true, databaseId: true, entityField: true, functionPrefix: true, id: true, objectTableId: true, permissionKey: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, publicSchemaName: true, refTableId: true, schemaId: true, scope: true, storeTableId: true } }).execute(); +const items = await db.merkleStoreModule.findMany({ select: { apiName: true, capabilityKey: true, commitTableId: true, createdAt: true, databaseId: true, entityField: true, functionPrefix: true, id: true, objectTableId: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, publicSchemaName: true, refTableId: true, schemaId: true, scope: true, storeTableId: true } }).execute(); // Get one by id -const item = await db.merkleStoreModule.findOne({ id: '', select: { apiName: true, commitTableId: true, createdAt: true, databaseId: true, entityField: true, functionPrefix: true, id: true, objectTableId: true, permissionKey: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, publicSchemaName: true, refTableId: true, schemaId: true, scope: true, storeTableId: true } }).execute(); +const item = await db.merkleStoreModule.findOne({ id: '', select: { apiName: true, capabilityKey: true, commitTableId: true, createdAt: true, databaseId: true, entityField: true, functionPrefix: true, id: true, objectTableId: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, publicSchemaName: true, refTableId: true, schemaId: true, scope: true, storeTableId: true } }).execute(); // Create -const created = await db.merkleStoreModule.create({ data: { apiName: '', commitTableId: '', databaseId: '', entityField: '', functionPrefix: '', objectTableId: '', permissionKey: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', publicSchemaName: '', refTableId: '', schemaId: '', scope: '', storeTableId: '' }, select: { id: true } }).execute(); +const created = await db.merkleStoreModule.create({ data: { apiName: '', capabilityKey: '', commitTableId: '', databaseId: '', entityField: '', functionPrefix: '', objectTableId: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', publicSchemaName: '', refTableId: '', schemaId: '', scope: '', storeTableId: '' }, select: { id: true } }).execute(); // Update const updated = await db.merkleStoreModule.update({ where: { id: '' }, data: { apiName: '' }, select: { id: true } }).execute(); @@ -2286,7 +2528,7 @@ CRUD operations for NamespaceModule records. |-------|------|----------| | `apiName` | String | Yes | | `databaseId` | UUID | Yes | -| `defaultPermissions` | String | Yes | +| `defaultCapabilities` | String | Yes | | `entityField` | String | Yes | | `entityTableId` | UUID | Yes | | `id` | UUID | No | @@ -2308,13 +2550,13 @@ CRUD operations for NamespaceModule records. ```typescript // List all namespaceModule records -const items = await db.namespaceModule.findMany({ select: { apiName: true, databaseId: true, defaultPermissions: true, entityField: true, entityTableId: true, id: true, namespaceEventsTableId: true, namespaceEventsTableName: true, namespacesTableId: true, namespacesTableName: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provisions: true, publicSchemaName: true, schemaId: true, scope: true } }).execute(); +const items = await db.namespaceModule.findMany({ select: { apiName: true, databaseId: true, defaultCapabilities: true, entityField: true, entityTableId: true, id: true, namespaceEventsTableId: true, namespaceEventsTableName: true, namespacesTableId: true, namespacesTableName: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provisions: true, publicSchemaName: true, schemaId: true, scope: true } }).execute(); // Get one by id -const item = await db.namespaceModule.findOne({ id: '', select: { apiName: true, databaseId: true, defaultPermissions: true, entityField: true, entityTableId: true, id: true, namespaceEventsTableId: true, namespaceEventsTableName: true, namespacesTableId: true, namespacesTableName: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provisions: true, publicSchemaName: true, schemaId: true, scope: true } }).execute(); +const item = await db.namespaceModule.findOne({ id: '', select: { apiName: true, databaseId: true, defaultCapabilities: true, entityField: true, entityTableId: true, id: true, namespaceEventsTableId: true, namespaceEventsTableName: true, namespacesTableId: true, namespacesTableName: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provisions: true, publicSchemaName: true, schemaId: true, scope: true } }).execute(); // Create -const created = await db.namespaceModule.create({ data: { apiName: '', databaseId: '', defaultPermissions: '', entityField: '', entityTableId: '', namespaceEventsTableId: '', namespaceEventsTableName: '', namespacesTableId: '', namespacesTableName: '', policies: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', provisions: '', publicSchemaName: '', schemaId: '', scope: '' }, select: { id: true } }).execute(); +const created = await db.namespaceModule.create({ data: { apiName: '', databaseId: '', defaultCapabilities: '', entityField: '', entityTableId: '', namespaceEventsTableId: '', namespaceEventsTableName: '', namespacesTableId: '', namespacesTableName: '', policies: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', provisions: '', publicSchemaName: '', schemaId: '', scope: '' }, select: { id: true } }).execute(); // Update const updated = await db.namespaceModule.update({ where: { id: '' }, data: { apiName: '' }, select: { id: true } }).execute(); @@ -2334,7 +2576,7 @@ CRUD operations for NotificationsModule records. | `apiName` | String | Yes | | `channelsTableId` | UUID | Yes | | `databaseId` | UUID | Yes | -| `defaultPermissions` | String | Yes | +| `defaultCapabilities` | String | Yes | | `deliveryLogTableId` | UUID | Yes | | `entityField` | String | Yes | | `hasChannels` | Boolean | Yes | @@ -2360,13 +2602,13 @@ CRUD operations for NotificationsModule records. ```typescript // List all notificationsModule records -const items = await db.notificationsModule.findMany({ select: { apiName: true, channelsTableId: true, databaseId: true, defaultPermissions: true, deliveryLogTableId: true, entityField: true, hasChannels: true, hasDigestMetadata: true, hasPreferences: true, hasSettingsExtension: true, hasSubscriptions: true, id: true, notificationsTableId: true, organizationSettingsTableId: true, ownerTableId: true, preferencesTableId: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, publicSchemaName: true, readStateTableId: true, schemaId: true, suppressionsTableId: true, userSettingsTableId: true } }).execute(); +const items = await db.notificationsModule.findMany({ select: { apiName: true, channelsTableId: true, databaseId: true, defaultCapabilities: true, deliveryLogTableId: true, entityField: true, hasChannels: true, hasDigestMetadata: true, hasPreferences: true, hasSettingsExtension: true, hasSubscriptions: true, id: true, notificationsTableId: true, organizationSettingsTableId: true, ownerTableId: true, preferencesTableId: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, publicSchemaName: true, readStateTableId: true, schemaId: true, suppressionsTableId: true, userSettingsTableId: true } }).execute(); // Get one by id -const item = await db.notificationsModule.findOne({ id: '', select: { apiName: true, channelsTableId: true, databaseId: true, defaultPermissions: true, deliveryLogTableId: true, entityField: true, hasChannels: true, hasDigestMetadata: true, hasPreferences: true, hasSettingsExtension: true, hasSubscriptions: true, id: true, notificationsTableId: true, organizationSettingsTableId: true, ownerTableId: true, preferencesTableId: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, publicSchemaName: true, readStateTableId: true, schemaId: true, suppressionsTableId: true, userSettingsTableId: true } }).execute(); +const item = await db.notificationsModule.findOne({ id: '', select: { apiName: true, channelsTableId: true, databaseId: true, defaultCapabilities: true, deliveryLogTableId: true, entityField: true, hasChannels: true, hasDigestMetadata: true, hasPreferences: true, hasSettingsExtension: true, hasSubscriptions: true, id: true, notificationsTableId: true, organizationSettingsTableId: true, ownerTableId: true, preferencesTableId: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, publicSchemaName: true, readStateTableId: true, schemaId: true, suppressionsTableId: true, userSettingsTableId: true } }).execute(); // Create -const created = await db.notificationsModule.create({ data: { apiName: '', channelsTableId: '', databaseId: '', defaultPermissions: '', deliveryLogTableId: '', entityField: '', hasChannels: '', hasDigestMetadata: '', hasPreferences: '', hasSettingsExtension: '', hasSubscriptions: '', notificationsTableId: '', organizationSettingsTableId: '', ownerTableId: '', preferencesTableId: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', publicSchemaName: '', readStateTableId: '', schemaId: '', suppressionsTableId: '', userSettingsTableId: '' }, select: { id: true } }).execute(); +const created = await db.notificationsModule.create({ data: { apiName: '', channelsTableId: '', databaseId: '', defaultCapabilities: '', deliveryLogTableId: '', entityField: '', hasChannels: '', hasDigestMetadata: '', hasPreferences: '', hasSettingsExtension: '', hasSubscriptions: '', notificationsTableId: '', organizationSettingsTableId: '', ownerTableId: '', preferencesTableId: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', publicSchemaName: '', readStateTableId: '', schemaId: '', suppressionsTableId: '', userSettingsTableId: '' }, select: { id: true } }).execute(); // Update const updated = await db.notificationsModule.update({ where: { id: '' }, data: { apiName: '' }, select: { id: true } }).execute(); @@ -2375,101 +2617,91 @@ const updated = await db.notificationsModule.update({ where: { id: '' }, d const deleted = await db.notificationsModule.delete({ where: { id: '' } }).execute(); ``` -### `db.pagesModule` +### `db.oauthRequestsModule` -CRUD operations for PagesModule records. +CRUD operations for OauthRequestsModule records. **Fields:** | Field | Type | Editable | |-------|------|----------| -| `apiName` | String | Yes | -| `createdAt` | Datetime | No | | `databaseId` | UUID | Yes | +| `entityField` | String | Yes | | `entityTableId` | UUID | Yes | | `id` | UUID | No | -| `merkleStoreModuleId` | UUID | Yes | -| `pagesTableId` | UUID | Yes | -| `policies` | JSON | Yes | +| `oauthAuthorizationRequestsTableId` | UUID | Yes | +| `oauthAuthorizationRequestsTableName` | String | Yes | +| `pendingIdentityLinksTableId` | UUID | Yes | +| `pendingIdentityLinksTableName` | String | Yes | | `prefix` | String | Yes | -| `privateApiName` | String | Yes | | `privateSchemaId` | UUID | Yes | | `privateSchemaName` | String | Yes | -| `provisions` | JSON | Yes | -| `publicSchemaId` | UUID | Yes | -| `publicSchemaName` | String | Yes | | `scope` | String | Yes | -| `siteSurfaceModuleId` | UUID | Yes | -| `sitesTableId` | UUID | Yes | -| `storeNamePrefix` | String | Yes | **Operations:** ```typescript -// List all pagesModule records -const items = await db.pagesModule.findMany({ select: { apiName: true, createdAt: true, databaseId: true, entityTableId: true, id: true, merkleStoreModuleId: true, pagesTableId: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provisions: true, publicSchemaId: true, publicSchemaName: true, scope: true, siteSurfaceModuleId: true, sitesTableId: true, storeNamePrefix: true } }).execute(); +// List all oauthRequestsModule records +const items = await db.oauthRequestsModule.findMany({ select: { databaseId: true, entityField: true, entityTableId: true, id: true, oauthAuthorizationRequestsTableId: true, oauthAuthorizationRequestsTableName: true, pendingIdentityLinksTableId: true, pendingIdentityLinksTableName: true, prefix: true, privateSchemaId: true, privateSchemaName: true, scope: true } }).execute(); // Get one by id -const item = await db.pagesModule.findOne({ id: '', select: { apiName: true, createdAt: true, databaseId: true, entityTableId: true, id: true, merkleStoreModuleId: true, pagesTableId: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provisions: true, publicSchemaId: true, publicSchemaName: true, scope: true, siteSurfaceModuleId: true, sitesTableId: true, storeNamePrefix: true } }).execute(); +const item = await db.oauthRequestsModule.findOne({ id: '', select: { databaseId: true, entityField: true, entityTableId: true, id: true, oauthAuthorizationRequestsTableId: true, oauthAuthorizationRequestsTableName: true, pendingIdentityLinksTableId: true, pendingIdentityLinksTableName: true, prefix: true, privateSchemaId: true, privateSchemaName: true, scope: true } }).execute(); // Create -const created = await db.pagesModule.create({ data: { apiName: '', databaseId: '', entityTableId: '', merkleStoreModuleId: '', pagesTableId: '', policies: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', provisions: '', publicSchemaId: '', publicSchemaName: '', scope: '', siteSurfaceModuleId: '', sitesTableId: '', storeNamePrefix: '' }, select: { id: true } }).execute(); +const created = await db.oauthRequestsModule.create({ data: { databaseId: '', entityField: '', entityTableId: '', oauthAuthorizationRequestsTableId: '', oauthAuthorizationRequestsTableName: '', pendingIdentityLinksTableId: '', pendingIdentityLinksTableName: '', prefix: '', privateSchemaId: '', privateSchemaName: '', scope: '' }, select: { id: true } }).execute(); // Update -const updated = await db.pagesModule.update({ where: { id: '' }, data: { apiName: '' }, select: { id: true } }).execute(); +const updated = await db.oauthRequestsModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.pagesModule.delete({ where: { id: '' } }).execute(); +const deleted = await db.oauthRequestsModule.delete({ where: { id: '' } }).execute(); ``` -### `db.permissionsModule` +### `db.pagesModule` -CRUD operations for PermissionsModule records. +CRUD operations for PagesModule records. **Fields:** | Field | Type | Editable | |-------|------|----------| -| `actorTableId` | UUID | Yes | | `apiName` | String | Yes | -| `bitlen` | Int | Yes | +| `createdAt` | Datetime | No | | `databaseId` | UUID | Yes | -| `defaultTableId` | UUID | Yes | -| `defaultTableName` | String | Yes | -| `entityField` | String | Yes | | `entityTableId` | UUID | Yes | -| `getByMask` | String | Yes | -| `getMask` | String | Yes | -| `getMaskByName` | String | Yes | -| `getPaddedMask` | String | Yes | | `id` | UUID | No | +| `merkleStoreModuleId` | UUID | Yes | +| `pagesTableId` | UUID | Yes | +| `policies` | JSON | Yes | | `prefix` | String | Yes | | `privateApiName` | String | Yes | | `privateSchemaId` | UUID | Yes | | `privateSchemaName` | String | Yes | +| `provisions` | JSON | Yes | +| `publicSchemaId` | UUID | Yes | | `publicSchemaName` | String | Yes | -| `schemaId` | UUID | Yes | | `scope` | String | Yes | -| `tableId` | UUID | Yes | -| `tableName` | String | Yes | +| `siteSurfaceModuleId` | UUID | Yes | +| `sitesTableId` | UUID | Yes | +| `storeNamePrefix` | String | Yes | **Operations:** ```typescript -// List all permissionsModule records -const items = await db.permissionsModule.findMany({ select: { actorTableId: true, apiName: true, bitlen: true, databaseId: true, defaultTableId: true, defaultTableName: true, entityField: true, entityTableId: true, getByMask: true, getMask: true, getMaskByName: true, getPaddedMask: true, id: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, publicSchemaName: true, schemaId: true, scope: true, tableId: true, tableName: true } }).execute(); +// List all pagesModule records +const items = await db.pagesModule.findMany({ select: { apiName: true, createdAt: true, databaseId: true, entityTableId: true, id: true, merkleStoreModuleId: true, pagesTableId: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provisions: true, publicSchemaId: true, publicSchemaName: true, scope: true, siteSurfaceModuleId: true, sitesTableId: true, storeNamePrefix: true } }).execute(); // Get one by id -const item = await db.permissionsModule.findOne({ id: '', select: { actorTableId: true, apiName: true, bitlen: true, databaseId: true, defaultTableId: true, defaultTableName: true, entityField: true, entityTableId: true, getByMask: true, getMask: true, getMaskByName: true, getPaddedMask: true, id: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, publicSchemaName: true, schemaId: true, scope: true, tableId: true, tableName: true } }).execute(); +const item = await db.pagesModule.findOne({ id: '', select: { apiName: true, createdAt: true, databaseId: true, entityTableId: true, id: true, merkleStoreModuleId: true, pagesTableId: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provisions: true, publicSchemaId: true, publicSchemaName: true, scope: true, siteSurfaceModuleId: true, sitesTableId: true, storeNamePrefix: true } }).execute(); // Create -const created = await db.permissionsModule.create({ data: { actorTableId: '', apiName: '', bitlen: '', databaseId: '', defaultTableId: '', defaultTableName: '', entityField: '', entityTableId: '', getByMask: '', getMask: '', getMaskByName: '', getPaddedMask: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', publicSchemaName: '', schemaId: '', scope: '', tableId: '', tableName: '' }, select: { id: true } }).execute(); +const created = await db.pagesModule.create({ data: { apiName: '', databaseId: '', entityTableId: '', merkleStoreModuleId: '', pagesTableId: '', policies: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', provisions: '', publicSchemaId: '', publicSchemaName: '', scope: '', siteSurfaceModuleId: '', sitesTableId: '', storeNamePrefix: '' }, select: { id: true } }).execute(); // Update -const updated = await db.permissionsModule.update({ where: { id: '' }, data: { actorTableId: '' }, select: { id: true } }).execute(); +const updated = await db.pagesModule.update({ where: { id: '' }, data: { apiName: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.permissionsModule.delete({ where: { id: '' } }).execute(); +const deleted = await db.pagesModule.delete({ where: { id: '' } }).execute(); ``` ### `db.phoneNumbersModule` @@ -2614,22 +2846,24 @@ CRUD operations for ProfilesModule records. |-------|------|----------| | `actorTableId` | UUID | Yes | | `apiName` | String | Yes | +| `capabilitiesTableId` | UUID | Yes | | `databaseId` | UUID | Yes | | `entityField` | String | Yes | | `entityTableId` | UUID | Yes | | `id` | UUID | No | +| `membershipProfilesTableId` | UUID | Yes | +| `membershipProfilesTableName` | String | Yes | | `membershipsTableId` | UUID | Yes | -| `permissionsTableId` | UUID | Yes | | `prefix` | String | Yes | | `privateApiName` | String | Yes | | `privateSchemaId` | UUID | Yes | | `privateSchemaName` | String | Yes | +| `profileCapabilitiesTableId` | UUID | Yes | +| `profileCapabilitiesTableName` | String | Yes | | `profileDefinitionGrantsTableId` | UUID | Yes | | `profileDefinitionGrantsTableName` | String | Yes | | `profileGrantsTableId` | UUID | Yes | | `profileGrantsTableName` | String | Yes | -| `profilePermissionsTableId` | UUID | Yes | -| `profilePermissionsTableName` | String | Yes | | `profileTemplatesTableId` | UUID | Yes | | `profileTemplatesTableName` | String | Yes | | `publicSchemaName` | String | Yes | @@ -2642,13 +2876,13 @@ CRUD operations for ProfilesModule records. ```typescript // List all profilesModule records -const items = await db.profilesModule.findMany({ select: { actorTableId: true, apiName: true, databaseId: true, entityField: true, entityTableId: true, id: true, membershipsTableId: true, permissionsTableId: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, profileDefinitionGrantsTableId: true, profileDefinitionGrantsTableName: true, profileGrantsTableId: true, profileGrantsTableName: true, profilePermissionsTableId: true, profilePermissionsTableName: true, profileTemplatesTableId: true, profileTemplatesTableName: true, publicSchemaName: true, schemaId: true, scope: true, tableId: true, tableName: true } }).execute(); +const items = await db.profilesModule.findMany({ select: { actorTableId: true, apiName: true, capabilitiesTableId: true, databaseId: true, entityField: true, entityTableId: true, id: true, membershipProfilesTableId: true, membershipProfilesTableName: true, membershipsTableId: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, profileCapabilitiesTableId: true, profileCapabilitiesTableName: true, profileDefinitionGrantsTableId: true, profileDefinitionGrantsTableName: true, profileGrantsTableId: true, profileGrantsTableName: true, profileTemplatesTableId: true, profileTemplatesTableName: true, publicSchemaName: true, schemaId: true, scope: true, tableId: true, tableName: true } }).execute(); // Get one by id -const item = await db.profilesModule.findOne({ id: '', select: { actorTableId: true, apiName: true, databaseId: true, entityField: true, entityTableId: true, id: true, membershipsTableId: true, permissionsTableId: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, profileDefinitionGrantsTableId: true, profileDefinitionGrantsTableName: true, profileGrantsTableId: true, profileGrantsTableName: true, profilePermissionsTableId: true, profilePermissionsTableName: true, profileTemplatesTableId: true, profileTemplatesTableName: true, publicSchemaName: true, schemaId: true, scope: true, tableId: true, tableName: true } }).execute(); +const item = await db.profilesModule.findOne({ id: '', select: { actorTableId: true, apiName: true, capabilitiesTableId: true, databaseId: true, entityField: true, entityTableId: true, id: true, membershipProfilesTableId: true, membershipProfilesTableName: true, membershipsTableId: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, profileCapabilitiesTableId: true, profileCapabilitiesTableName: true, profileDefinitionGrantsTableId: true, profileDefinitionGrantsTableName: true, profileGrantsTableId: true, profileGrantsTableName: true, profileTemplatesTableId: true, profileTemplatesTableName: true, publicSchemaName: true, schemaId: true, scope: true, tableId: true, tableName: true } }).execute(); // Create -const created = await db.profilesModule.create({ data: { actorTableId: '', apiName: '', databaseId: '', entityField: '', entityTableId: '', membershipsTableId: '', permissionsTableId: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', profileDefinitionGrantsTableId: '', profileDefinitionGrantsTableName: '', profileGrantsTableId: '', profileGrantsTableName: '', profilePermissionsTableId: '', profilePermissionsTableName: '', profileTemplatesTableId: '', profileTemplatesTableName: '', publicSchemaName: '', schemaId: '', scope: '', tableId: '', tableName: '' }, select: { id: true } }).execute(); +const created = await db.profilesModule.create({ data: { actorTableId: '', apiName: '', capabilitiesTableId: '', databaseId: '', entityField: '', entityTableId: '', membershipProfilesTableId: '', membershipProfilesTableName: '', membershipsTableId: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', profileCapabilitiesTableId: '', profileCapabilitiesTableName: '', profileDefinitionGrantsTableId: '', profileDefinitionGrantsTableName: '', profileGrantsTableId: '', profileGrantsTableName: '', profileTemplatesTableId: '', profileTemplatesTableName: '', publicSchemaName: '', schemaId: '', scope: '', tableId: '', tableName: '' }, select: { id: true } }).execute(); // Update const updated = await db.profilesModule.update({ where: { id: '' }, data: { actorTableId: '' }, select: { id: true } }).execute(); @@ -2668,7 +2902,7 @@ CRUD operations for RateLimitMetersModule records. | `apiName` | String | Yes | | `checkRateLimitFunction` | String | Yes | | `databaseId` | UUID | Yes | -| `defaultPermissions` | String | Yes | +| `defaultCapabilities` | String | Yes | | `id` | UUID | No | | `prefix` | String | Yes | | `privateApiName` | String | Yes | @@ -2687,13 +2921,13 @@ CRUD operations for RateLimitMetersModule records. ```typescript // List all rateLimitMetersModule records -const items = await db.rateLimitMetersModule.findMany({ select: { apiName: true, checkRateLimitFunction: true, databaseId: true, defaultPermissions: true, id: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, publicSchemaName: true, rateLimitOverridesTableId: true, rateLimitOverridesTableName: true, rateLimitStateTableId: true, rateLimitStateTableName: true, rateWindowLimitsTableId: true, rateWindowLimitsTableName: true, schemaId: true } }).execute(); +const items = await db.rateLimitMetersModule.findMany({ select: { apiName: true, checkRateLimitFunction: true, databaseId: true, defaultCapabilities: true, id: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, publicSchemaName: true, rateLimitOverridesTableId: true, rateLimitOverridesTableName: true, rateLimitStateTableId: true, rateLimitStateTableName: true, rateWindowLimitsTableId: true, rateWindowLimitsTableName: true, schemaId: true } }).execute(); // Get one by id -const item = await db.rateLimitMetersModule.findOne({ id: '', select: { apiName: true, checkRateLimitFunction: true, databaseId: true, defaultPermissions: true, id: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, publicSchemaName: true, rateLimitOverridesTableId: true, rateLimitOverridesTableName: true, rateLimitStateTableId: true, rateLimitStateTableName: true, rateWindowLimitsTableId: true, rateWindowLimitsTableName: true, schemaId: true } }).execute(); +const item = await db.rateLimitMetersModule.findOne({ id: '', select: { apiName: true, checkRateLimitFunction: true, databaseId: true, defaultCapabilities: true, id: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, publicSchemaName: true, rateLimitOverridesTableId: true, rateLimitOverridesTableName: true, rateLimitStateTableId: true, rateLimitStateTableName: true, rateWindowLimitsTableId: true, rateWindowLimitsTableName: true, schemaId: true } }).execute(); // Create -const created = await db.rateLimitMetersModule.create({ data: { apiName: '', checkRateLimitFunction: '', databaseId: '', defaultPermissions: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', publicSchemaName: '', rateLimitOverridesTableId: '', rateLimitOverridesTableName: '', rateLimitStateTableId: '', rateLimitStateTableName: '', rateWindowLimitsTableId: '', rateWindowLimitsTableName: '', schemaId: '' }, select: { id: true } }).execute(); +const created = await db.rateLimitMetersModule.create({ data: { apiName: '', checkRateLimitFunction: '', databaseId: '', defaultCapabilities: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', publicSchemaName: '', rateLimitOverridesTableId: '', rateLimitOverridesTableName: '', rateLimitStateTableId: '', rateLimitStateTableName: '', rateWindowLimitsTableId: '', rateWindowLimitsTableName: '', schemaId: '' }, select: { id: true } }).execute(); // Update const updated = await db.rateLimitMetersModule.update({ where: { id: '' }, data: { apiName: '' }, select: { id: true } }).execute(); @@ -2843,7 +3077,7 @@ CRUD operations for ResourceModule records. |-------|------|----------| | `apiName` | String | Yes | | `databaseId` | UUID | Yes | -| `defaultPermissions` | String | Yes | +| `defaultCapabilities` | String | Yes | | `entityField` | String | Yes | | `entityTableId` | UUID | Yes | | `id` | UUID | No | @@ -2882,13 +3116,13 @@ CRUD operations for ResourceModule records. ```typescript // List all resourceModule records -const items = await db.resourceModule.findMany({ select: { apiName: true, databaseId: true, defaultPermissions: true, entityField: true, entityTableId: true, id: true, installationStoreName: true, merkleStoreModuleId: true, namespaceModuleId: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provisions: true, publicSchemaName: true, requirementsStateViewName: true, resolvedRequirementsViewName: true, resourceBillingRollupFunction: true, resourceDefinitionsTableId: true, resourceDefinitionsTableName: true, resourceEventsTableId: true, resourceEventsTableName: true, resourceInstallationsTableId: true, resourceInstallationsTableName: true, resourceStatusChecksTableId: true, resourceStatusChecksTableName: true, resourceUsageLogTableId: true, resourceUsageLogTableName: true, resourceUsageSummaryTableId: true, resourceUsageSummaryTableName: true, resourcesTableId: true, resourcesTableName: true, rollupResourceUsageSummaryFunction: true, schemaId: true, scope: true } }).execute(); +const items = await db.resourceModule.findMany({ select: { apiName: true, databaseId: true, defaultCapabilities: true, entityField: true, entityTableId: true, id: true, installationStoreName: true, merkleStoreModuleId: true, namespaceModuleId: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provisions: true, publicSchemaName: true, requirementsStateViewName: true, resolvedRequirementsViewName: true, resourceBillingRollupFunction: true, resourceDefinitionsTableId: true, resourceDefinitionsTableName: true, resourceEventsTableId: true, resourceEventsTableName: true, resourceInstallationsTableId: true, resourceInstallationsTableName: true, resourceStatusChecksTableId: true, resourceStatusChecksTableName: true, resourceUsageLogTableId: true, resourceUsageLogTableName: true, resourceUsageSummaryTableId: true, resourceUsageSummaryTableName: true, resourcesTableId: true, resourcesTableName: true, rollupResourceUsageSummaryFunction: true, schemaId: true, scope: true } }).execute(); // Get one by id -const item = await db.resourceModule.findOne({ id: '', select: { apiName: true, databaseId: true, defaultPermissions: true, entityField: true, entityTableId: true, id: true, installationStoreName: true, merkleStoreModuleId: true, namespaceModuleId: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provisions: true, publicSchemaName: true, requirementsStateViewName: true, resolvedRequirementsViewName: true, resourceBillingRollupFunction: true, resourceDefinitionsTableId: true, resourceDefinitionsTableName: true, resourceEventsTableId: true, resourceEventsTableName: true, resourceInstallationsTableId: true, resourceInstallationsTableName: true, resourceStatusChecksTableId: true, resourceStatusChecksTableName: true, resourceUsageLogTableId: true, resourceUsageLogTableName: true, resourceUsageSummaryTableId: true, resourceUsageSummaryTableName: true, resourcesTableId: true, resourcesTableName: true, rollupResourceUsageSummaryFunction: true, schemaId: true, scope: true } }).execute(); +const item = await db.resourceModule.findOne({ id: '', select: { apiName: true, databaseId: true, defaultCapabilities: true, entityField: true, entityTableId: true, id: true, installationStoreName: true, merkleStoreModuleId: true, namespaceModuleId: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provisions: true, publicSchemaName: true, requirementsStateViewName: true, resolvedRequirementsViewName: true, resourceBillingRollupFunction: true, resourceDefinitionsTableId: true, resourceDefinitionsTableName: true, resourceEventsTableId: true, resourceEventsTableName: true, resourceInstallationsTableId: true, resourceInstallationsTableName: true, resourceStatusChecksTableId: true, resourceStatusChecksTableName: true, resourceUsageLogTableId: true, resourceUsageLogTableName: true, resourceUsageSummaryTableId: true, resourceUsageSummaryTableName: true, resourcesTableId: true, resourcesTableName: true, rollupResourceUsageSummaryFunction: true, schemaId: true, scope: true } }).execute(); // Create -const created = await db.resourceModule.create({ data: { apiName: '', databaseId: '', defaultPermissions: '', entityField: '', entityTableId: '', installationStoreName: '', merkleStoreModuleId: '', namespaceModuleId: '', policies: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', provisions: '', publicSchemaName: '', requirementsStateViewName: '', resolvedRequirementsViewName: '', resourceBillingRollupFunction: '', resourceDefinitionsTableId: '', resourceDefinitionsTableName: '', resourceEventsTableId: '', resourceEventsTableName: '', resourceInstallationsTableId: '', resourceInstallationsTableName: '', resourceStatusChecksTableId: '', resourceStatusChecksTableName: '', resourceUsageLogTableId: '', resourceUsageLogTableName: '', resourceUsageSummaryTableId: '', resourceUsageSummaryTableName: '', resourcesTableId: '', resourcesTableName: '', rollupResourceUsageSummaryFunction: '', schemaId: '', scope: '' }, select: { id: true } }).execute(); +const created = await db.resourceModule.create({ data: { apiName: '', databaseId: '', defaultCapabilities: '', entityField: '', entityTableId: '', installationStoreName: '', merkleStoreModuleId: '', namespaceModuleId: '', policies: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', provisions: '', publicSchemaName: '', requirementsStateViewName: '', resolvedRequirementsViewName: '', resourceBillingRollupFunction: '', resourceDefinitionsTableId: '', resourceDefinitionsTableName: '', resourceEventsTableId: '', resourceEventsTableName: '', resourceInstallationsTableId: '', resourceInstallationsTableName: '', resourceStatusChecksTableId: '', resourceStatusChecksTableName: '', resourceUsageLogTableId: '', resourceUsageLogTableName: '', resourceUsageSummaryTableId: '', resourceUsageSummaryTableName: '', resourcesTableId: '', resourcesTableName: '', rollupResourceUsageSummaryFunction: '', schemaId: '', scope: '' }, select: { id: true } }).execute(); // Update const updated = await db.resourceModule.update({ where: { id: '' }, data: { apiName: '' }, select: { id: true } }).execute(); @@ -2947,9 +3181,11 @@ CRUD operations for RouteModule records. | Field | Type | Editable | |-------|------|----------| | `apiName` | String | Yes | +| `appLinksFunctionName` | String | Yes | | `catalogModuleId` | UUID | Yes | | `databaseId` | UUID | Yes | -| `defaultPermissions` | String | Yes | +| `deepLinkFunctionName` | String | Yes | +| `defaultCapabilities` | String | Yes | | `domainModuleId` | UUID | Yes | | `entityField` | String | Yes | | `entityTableId` | UUID | Yes | @@ -2975,13 +3211,13 @@ CRUD operations for RouteModule records. ```typescript // List all routeModule records -const items = await db.routeModule.findMany({ select: { apiName: true, catalogModuleId: true, databaseId: true, defaultPermissions: true, domainModuleId: true, entityField: true, entityTableId: true, hostnameBindingsTableId: true, hostnameBindingsTableName: true, id: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provisions: true, publicSchemaName: true, resolverFunctionName: true, routeBindingsTableId: true, routeBindingsTableName: true, routesTableId: true, routesTableName: true, schemaId: true, scope: true } }).execute(); +const items = await db.routeModule.findMany({ select: { apiName: true, appLinksFunctionName: true, catalogModuleId: true, databaseId: true, deepLinkFunctionName: true, defaultCapabilities: true, domainModuleId: true, entityField: true, entityTableId: true, hostnameBindingsTableId: true, hostnameBindingsTableName: true, id: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provisions: true, publicSchemaName: true, resolverFunctionName: true, routeBindingsTableId: true, routeBindingsTableName: true, routesTableId: true, routesTableName: true, schemaId: true, scope: true } }).execute(); // Get one by id -const item = await db.routeModule.findOne({ id: '', select: { apiName: true, catalogModuleId: true, databaseId: true, defaultPermissions: true, domainModuleId: true, entityField: true, entityTableId: true, hostnameBindingsTableId: true, hostnameBindingsTableName: true, id: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provisions: true, publicSchemaName: true, resolverFunctionName: true, routeBindingsTableId: true, routeBindingsTableName: true, routesTableId: true, routesTableName: true, schemaId: true, scope: true } }).execute(); +const item = await db.routeModule.findOne({ id: '', select: { apiName: true, appLinksFunctionName: true, catalogModuleId: true, databaseId: true, deepLinkFunctionName: true, defaultCapabilities: true, domainModuleId: true, entityField: true, entityTableId: true, hostnameBindingsTableId: true, hostnameBindingsTableName: true, id: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provisions: true, publicSchemaName: true, resolverFunctionName: true, routeBindingsTableId: true, routeBindingsTableName: true, routesTableId: true, routesTableName: true, schemaId: true, scope: true } }).execute(); // Create -const created = await db.routeModule.create({ data: { apiName: '', catalogModuleId: '', databaseId: '', defaultPermissions: '', domainModuleId: '', entityField: '', entityTableId: '', hostnameBindingsTableId: '', hostnameBindingsTableName: '', policies: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', provisions: '', publicSchemaName: '', resolverFunctionName: '', routeBindingsTableId: '', routeBindingsTableName: '', routesTableId: '', routesTableName: '', schemaId: '', scope: '' }, select: { id: true } }).execute(); +const created = await db.routeModule.create({ data: { apiName: '', appLinksFunctionName: '', catalogModuleId: '', databaseId: '', deepLinkFunctionName: '', defaultCapabilities: '', domainModuleId: '', entityField: '', entityTableId: '', hostnameBindingsTableId: '', hostnameBindingsTableName: '', policies: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', provisions: '', publicSchemaName: '', resolverFunctionName: '', routeBindingsTableId: '', routeBindingsTableName: '', routesTableId: '', routesTableName: '', schemaId: '', scope: '' }, select: { id: true } }).execute(); // Update const updated = await db.routeModule.update({ where: { id: '' }, data: { apiName: '' }, select: { id: true } }).execute(); @@ -2990,6 +3226,39 @@ const updated = await db.routeModule.update({ where: { id: '' }, data: { a const deleted = await db.routeModule.delete({ where: { id: '' } }).execute(); ``` +### `db.scopeTypesModule` + +CRUD operations for ScopeTypesModule records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `databaseId` | UUID | Yes | +| `id` | UUID | No | +| `privateSchemaName` | String | Yes | +| `schemaId` | UUID | Yes | +| `scopeTypesTableId` | UUID | Yes | + +**Operations:** + +```typescript +// List all scopeTypesModule records +const items = await db.scopeTypesModule.findMany({ select: { databaseId: true, id: true, privateSchemaName: true, schemaId: true, scopeTypesTableId: true } }).execute(); + +// Get one by id +const item = await db.scopeTypesModule.findOne({ id: '', select: { databaseId: true, id: true, privateSchemaName: true, schemaId: true, scopeTypesTableId: true } }).execute(); + +// Create +const created = await db.scopeTypesModule.create({ data: { databaseId: '', privateSchemaName: '', schemaId: '', scopeTypesTableId: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.scopeTypesModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.scopeTypesModule.delete({ where: { id: '' } }).execute(); +``` + ### `db.secureTableProvision` CRUD operations for SecureTableProvision records. @@ -3113,7 +3382,7 @@ CRUD operations for SiteSurfaceModule records. | `apiName` | String | Yes | | `catalogModuleId` | UUID | Yes | | `databaseId` | UUID | Yes | -| `defaultPermissions` | String | Yes | +| `defaultCapabilities` | String | Yes | | `entityField` | String | Yes | | `entityTableId` | UUID | Yes | | `id` | UUID | No | @@ -3147,13 +3416,13 @@ CRUD operations for SiteSurfaceModule records. ```typescript // List all siteSurfaceModule records -const items = await db.siteSurfaceModule.findMany({ select: { apiName: true, catalogModuleId: true, databaseId: true, defaultPermissions: true, entityField: true, entityTableId: true, id: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provisions: true, publicSchemaName: true, schemaId: true, scope: true, siteAppLinksTableId: true, siteAppLinksTableName: true, siteDeepLinksTableId: true, siteDeepLinksTableName: true, siteErrorPagesTableId: true, siteErrorPagesTableName: true, siteMetadataTableId: true, siteMetadataTableName: true, siteModulesTableId: true, siteModulesTableName: true, siteThemesTableId: true, siteThemesTableName: true, siteWebConfigTableId: true, siteWebConfigTableName: true, sitesTableId: true, sitesTableName: true } }).execute(); +const items = await db.siteSurfaceModule.findMany({ select: { apiName: true, catalogModuleId: true, databaseId: true, defaultCapabilities: true, entityField: true, entityTableId: true, id: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provisions: true, publicSchemaName: true, schemaId: true, scope: true, siteAppLinksTableId: true, siteAppLinksTableName: true, siteDeepLinksTableId: true, siteDeepLinksTableName: true, siteErrorPagesTableId: true, siteErrorPagesTableName: true, siteMetadataTableId: true, siteMetadataTableName: true, siteModulesTableId: true, siteModulesTableName: true, siteThemesTableId: true, siteThemesTableName: true, siteWebConfigTableId: true, siteWebConfigTableName: true, sitesTableId: true, sitesTableName: true } }).execute(); // Get one by id -const item = await db.siteSurfaceModule.findOne({ id: '', select: { apiName: true, catalogModuleId: true, databaseId: true, defaultPermissions: true, entityField: true, entityTableId: true, id: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provisions: true, publicSchemaName: true, schemaId: true, scope: true, siteAppLinksTableId: true, siteAppLinksTableName: true, siteDeepLinksTableId: true, siteDeepLinksTableName: true, siteErrorPagesTableId: true, siteErrorPagesTableName: true, siteMetadataTableId: true, siteMetadataTableName: true, siteModulesTableId: true, siteModulesTableName: true, siteThemesTableId: true, siteThemesTableName: true, siteWebConfigTableId: true, siteWebConfigTableName: true, sitesTableId: true, sitesTableName: true } }).execute(); +const item = await db.siteSurfaceModule.findOne({ id: '', select: { apiName: true, catalogModuleId: true, databaseId: true, defaultCapabilities: true, entityField: true, entityTableId: true, id: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provisions: true, publicSchemaName: true, schemaId: true, scope: true, siteAppLinksTableId: true, siteAppLinksTableName: true, siteDeepLinksTableId: true, siteDeepLinksTableName: true, siteErrorPagesTableId: true, siteErrorPagesTableName: true, siteMetadataTableId: true, siteMetadataTableName: true, siteModulesTableId: true, siteModulesTableName: true, siteThemesTableId: true, siteThemesTableName: true, siteWebConfigTableId: true, siteWebConfigTableName: true, sitesTableId: true, sitesTableName: true } }).execute(); // Create -const created = await db.siteSurfaceModule.create({ data: { apiName: '', catalogModuleId: '', databaseId: '', defaultPermissions: '', entityField: '', entityTableId: '', policies: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', provisions: '', publicSchemaName: '', schemaId: '', scope: '', siteAppLinksTableId: '', siteAppLinksTableName: '', siteDeepLinksTableId: '', siteDeepLinksTableName: '', siteErrorPagesTableId: '', siteErrorPagesTableName: '', siteMetadataTableId: '', siteMetadataTableName: '', siteModulesTableId: '', siteModulesTableName: '', siteThemesTableId: '', siteThemesTableName: '', siteWebConfigTableId: '', siteWebConfigTableName: '', sitesTableId: '', sitesTableName: '' }, select: { id: true } }).execute(); +const created = await db.siteSurfaceModule.create({ data: { apiName: '', catalogModuleId: '', databaseId: '', defaultCapabilities: '', entityField: '', entityTableId: '', policies: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', provisions: '', publicSchemaName: '', schemaId: '', scope: '', siteAppLinksTableId: '', siteAppLinksTableName: '', siteDeepLinksTableId: '', siteDeepLinksTableName: '', siteErrorPagesTableId: '', siteErrorPagesTableName: '', siteMetadataTableId: '', siteMetadataTableName: '', siteModulesTableId: '', siteModulesTableName: '', siteThemesTableId: '', siteThemesTableName: '', siteWebConfigTableId: '', siteWebConfigTableName: '', sitesTableId: '', sitesTableName: '' }, select: { id: true } }).execute(); // Update const updated = await db.siteSurfaceModule.update({ where: { id: '' }, data: { apiName: '' }, select: { id: true } }).execute(); @@ -3226,8 +3495,8 @@ CRUD operations for StorageModule records. | `catalogModuleId` | UUID | Yes | | `confirmUploadDelay` | Interval | Yes | | `databaseId` | UUID | Yes | +| `defaultCapabilities` | String | Yes | | `defaultMaxFileSize` | BigInt | Yes | -| `defaultPermissions` | String | Yes | | `downloadUrlExpirySeconds` | Int | Yes | | `endpoint` | String | Yes | | `entityField` | String | Yes | @@ -3264,13 +3533,13 @@ CRUD operations for StorageModule records. ```typescript // List all storageModule records -const items = await db.storageModule.findMany({ select: { allowedOrigins: true, apiName: true, bucketsTableId: true, bucketsTableName: true, cacheTtlSeconds: true, catalogModuleId: true, confirmUploadDelay: true, databaseId: true, defaultMaxFileSize: true, defaultPermissions: true, downloadUrlExpirySeconds: true, endpoint: true, entityField: true, entityTableId: true, fileEventsTableId: true, filesTableId: true, filesTableName: true, hasAuditLog: true, hasConfirmUpload: true, hasContentHash: true, hasCustomKeys: true, hasPathShares: true, hasVersioning: true, id: true, maxBulkFiles: true, maxBulkTotalSize: true, maxFilenameLength: true, pathSharesTableId: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provider: true, provisions: true, publicSchemaName: true, publicUrlPrefix: true, restrictReads: true, schemaId: true, scope: true, uploadUrlExpirySeconds: true } }).execute(); +const items = await db.storageModule.findMany({ select: { allowedOrigins: true, apiName: true, bucketsTableId: true, bucketsTableName: true, cacheTtlSeconds: true, catalogModuleId: true, confirmUploadDelay: true, databaseId: true, defaultCapabilities: true, defaultMaxFileSize: true, downloadUrlExpirySeconds: true, endpoint: true, entityField: true, entityTableId: true, fileEventsTableId: true, filesTableId: true, filesTableName: true, hasAuditLog: true, hasConfirmUpload: true, hasContentHash: true, hasCustomKeys: true, hasPathShares: true, hasVersioning: true, id: true, maxBulkFiles: true, maxBulkTotalSize: true, maxFilenameLength: true, pathSharesTableId: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provider: true, provisions: true, publicSchemaName: true, publicUrlPrefix: true, restrictReads: true, schemaId: true, scope: true, uploadUrlExpirySeconds: true } }).execute(); // Get one by id -const item = await db.storageModule.findOne({ id: '', select: { allowedOrigins: true, apiName: true, bucketsTableId: true, bucketsTableName: true, cacheTtlSeconds: true, catalogModuleId: true, confirmUploadDelay: true, databaseId: true, defaultMaxFileSize: true, defaultPermissions: true, downloadUrlExpirySeconds: true, endpoint: true, entityField: true, entityTableId: true, fileEventsTableId: true, filesTableId: true, filesTableName: true, hasAuditLog: true, hasConfirmUpload: true, hasContentHash: true, hasCustomKeys: true, hasPathShares: true, hasVersioning: true, id: true, maxBulkFiles: true, maxBulkTotalSize: true, maxFilenameLength: true, pathSharesTableId: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provider: true, provisions: true, publicSchemaName: true, publicUrlPrefix: true, restrictReads: true, schemaId: true, scope: true, uploadUrlExpirySeconds: true } }).execute(); +const item = await db.storageModule.findOne({ id: '', select: { allowedOrigins: true, apiName: true, bucketsTableId: true, bucketsTableName: true, cacheTtlSeconds: true, catalogModuleId: true, confirmUploadDelay: true, databaseId: true, defaultCapabilities: true, defaultMaxFileSize: true, downloadUrlExpirySeconds: true, endpoint: true, entityField: true, entityTableId: true, fileEventsTableId: true, filesTableId: true, filesTableName: true, hasAuditLog: true, hasConfirmUpload: true, hasContentHash: true, hasCustomKeys: true, hasPathShares: true, hasVersioning: true, id: true, maxBulkFiles: true, maxBulkTotalSize: true, maxFilenameLength: true, pathSharesTableId: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provider: true, provisions: true, publicSchemaName: true, publicUrlPrefix: true, restrictReads: true, schemaId: true, scope: true, uploadUrlExpirySeconds: true } }).execute(); // Create -const created = await db.storageModule.create({ data: { allowedOrigins: '', apiName: '', bucketsTableId: '', bucketsTableName: '', cacheTtlSeconds: '', catalogModuleId: '', confirmUploadDelay: '', databaseId: '', defaultMaxFileSize: '', defaultPermissions: '', downloadUrlExpirySeconds: '', endpoint: '', entityField: '', entityTableId: '', fileEventsTableId: '', filesTableId: '', filesTableName: '', hasAuditLog: '', hasConfirmUpload: '', hasContentHash: '', hasCustomKeys: '', hasPathShares: '', hasVersioning: '', maxBulkFiles: '', maxBulkTotalSize: '', maxFilenameLength: '', pathSharesTableId: '', policies: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', provider: '', provisions: '', publicSchemaName: '', publicUrlPrefix: '', restrictReads: '', schemaId: '', scope: '', uploadUrlExpirySeconds: '' }, select: { id: true } }).execute(); +const created = await db.storageModule.create({ data: { allowedOrigins: '', apiName: '', bucketsTableId: '', bucketsTableName: '', cacheTtlSeconds: '', catalogModuleId: '', confirmUploadDelay: '', databaseId: '', defaultCapabilities: '', defaultMaxFileSize: '', downloadUrlExpirySeconds: '', endpoint: '', entityField: '', entityTableId: '', fileEventsTableId: '', filesTableId: '', filesTableName: '', hasAuditLog: '', hasConfirmUpload: '', hasContentHash: '', hasCustomKeys: '', hasPathShares: '', hasVersioning: '', maxBulkFiles: '', maxBulkTotalSize: '', maxFilenameLength: '', pathSharesTableId: '', policies: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', provider: '', provisions: '', publicSchemaName: '', publicUrlPrefix: '', restrictReads: '', schemaId: '', scope: '', uploadUrlExpirySeconds: '' }, select: { id: true } }).execute(); // Update const updated = await db.storageModule.update({ where: { id: '' }, data: { allowedOrigins: '' }, select: { id: true } }).execute(); @@ -3453,6 +3722,41 @@ const updated = await db.userSettingsModule.update({ where: { id: '' }, da const deleted = await db.userSettingsModule.delete({ where: { id: '' } }).execute(); ``` +### `db.userSettingsSecurityModule` + +CRUD operations for UserSettingsSecurityModule records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `apiName` | String | Yes | +| `databaseId` | UUID | Yes | +| `id` | UUID | No | +| `ownerTableId` | UUID | Yes | +| `schemaId` | UUID | Yes | +| `tableId` | UUID | Yes | +| `tableName` | String | Yes | + +**Operations:** + +```typescript +// List all userSettingsSecurityModule records +const items = await db.userSettingsSecurityModule.findMany({ select: { apiName: true, databaseId: true, id: true, ownerTableId: true, schemaId: true, tableId: true, tableName: true } }).execute(); + +// Get one by id +const item = await db.userSettingsSecurityModule.findOne({ id: '', select: { apiName: true, databaseId: true, id: true, ownerTableId: true, schemaId: true, tableId: true, tableName: true } }).execute(); + +// Create +const created = await db.userSettingsSecurityModule.create({ data: { apiName: '', databaseId: '', ownerTableId: '', schemaId: '', tableId: '', tableName: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.userSettingsSecurityModule.update({ where: { id: '' }, data: { apiName: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.userSettingsSecurityModule.delete({ where: { id: '' } }).execute(); +``` + ### `db.userStateModule` CRUD operations for UserStateModule records. @@ -3615,7 +3919,7 @@ CRUD operations for WebhookModule records. |-------|------|----------| | `apiName` | String | Yes | | `databaseId` | UUID | Yes | -| `defaultPermissions` | String | Yes | +| `defaultCapabilities` | String | Yes | | `entityField` | String | Yes | | `entityTableId` | UUID | Yes | | `functionInvocationModuleId` | UUID | Yes | @@ -3641,13 +3945,13 @@ CRUD operations for WebhookModule records. ```typescript // List all webhookModule records -const items = await db.webhookModule.findMany({ select: { apiName: true, databaseId: true, defaultPermissions: true, entityField: true, entityTableId: true, functionInvocationModuleId: true, functionModuleId: true, id: true, infraSecretsModuleId: true, namespaceModuleId: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provisions: true, publicSchemaName: true, schemaId: true, scope: true, webhookEndpointsTableId: true, webhookEndpointsTableName: true, webhookEventsTableId: true, webhookEventsTableName: true } }).execute(); +const items = await db.webhookModule.findMany({ select: { apiName: true, databaseId: true, defaultCapabilities: true, entityField: true, entityTableId: true, functionInvocationModuleId: true, functionModuleId: true, id: true, infraSecretsModuleId: true, namespaceModuleId: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provisions: true, publicSchemaName: true, schemaId: true, scope: true, webhookEndpointsTableId: true, webhookEndpointsTableName: true, webhookEventsTableId: true, webhookEventsTableName: true } }).execute(); // Get one by id -const item = await db.webhookModule.findOne({ id: '', select: { apiName: true, databaseId: true, defaultPermissions: true, entityField: true, entityTableId: true, functionInvocationModuleId: true, functionModuleId: true, id: true, infraSecretsModuleId: true, namespaceModuleId: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provisions: true, publicSchemaName: true, schemaId: true, scope: true, webhookEndpointsTableId: true, webhookEndpointsTableName: true, webhookEventsTableId: true, webhookEventsTableName: true } }).execute(); +const item = await db.webhookModule.findOne({ id: '', select: { apiName: true, databaseId: true, defaultCapabilities: true, entityField: true, entityTableId: true, functionInvocationModuleId: true, functionModuleId: true, id: true, infraSecretsModuleId: true, namespaceModuleId: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provisions: true, publicSchemaName: true, schemaId: true, scope: true, webhookEndpointsTableId: true, webhookEndpointsTableName: true, webhookEventsTableId: true, webhookEventsTableName: true } }).execute(); // Create -const created = await db.webhookModule.create({ data: { apiName: '', databaseId: '', defaultPermissions: '', entityField: '', entityTableId: '', functionInvocationModuleId: '', functionModuleId: '', infraSecretsModuleId: '', namespaceModuleId: '', policies: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', provisions: '', publicSchemaName: '', schemaId: '', scope: '', webhookEndpointsTableId: '', webhookEndpointsTableName: '', webhookEventsTableId: '', webhookEventsTableName: '' }, select: { id: true } }).execute(); +const created = await db.webhookModule.create({ data: { apiName: '', databaseId: '', defaultCapabilities: '', entityField: '', entityTableId: '', functionInvocationModuleId: '', functionModuleId: '', infraSecretsModuleId: '', namespaceModuleId: '', policies: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', provisions: '', publicSchemaName: '', schemaId: '', scope: '', webhookEndpointsTableId: '', webhookEndpointsTableName: '', webhookEventsTableId: '', webhookEventsTableName: '' }, select: { id: true } }).execute(); // Update const updated = await db.webhookModule.update({ where: { id: '' }, data: { apiName: '' }, select: { id: true } }).execute(); @@ -3658,42 +3962,6 @@ const deleted = await db.webhookModule.delete({ where: { id: '' } }).execu ## Custom Operations -### `db.query.resolveBlueprintField` - -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. - -- **Type:** query -- **Arguments:** - - | Argument | Type | - |----------|------| - | `databaseId` | UUID | - | `fieldName` | String | - | `tableId` | UUID | - -```typescript -const result = await db.query.resolveBlueprintField({ databaseId: '', fieldName: '', tableId: '' }).execute(); -``` - -### `db.query.resolveBlueprintTable` - -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. - -- **Type:** query -- **Arguments:** - - | Argument | Type | - |----------|------| - | `databaseId` | UUID | - | `defaultSchemaId` | UUID | - | `schemaName` | String | - | `tableMap` | JSON | - | `tableName` | String | - -```typescript -const result = await db.query.resolveBlueprintTable({ databaseId: '', defaultSchemaId: '', schemaName: '', tableMap: '', tableName: '' }).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. 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 function_module is installed, 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. @@ -3742,111 +4010,6 @@ and lifecycle settings. const result = await db.mutation.provisionBucket({ input: { bucketKey: '', ownerId: '' } }).execute(); ``` -### `db.mutation.provisionCheckConstraint` - -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. - -- **Type:** mutation -- **Arguments:** - - | Argument | Type | - |----------|------| - | `input` | ProvisionCheckConstraintInput (required) | - -```typescript -const result = await db.mutation.provisionCheckConstraint({ input: { databaseId: '', definition: '', tableId: '' } }).execute(); -``` - -### `db.mutation.provisionFullTextSearch` - -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. - -- **Type:** mutation -- **Arguments:** - - | Argument | Type | - |----------|------| - | `input` | ProvisionFullTextSearchInput (required) | - -```typescript -const result = await db.mutation.provisionFullTextSearch({ input: { databaseId: '', definition: '', tableId: '' } }).execute(); -``` - -### `db.mutation.provisionIndex` - -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. - -- **Type:** mutation -- **Arguments:** - - | Argument | Type | - |----------|------| - | `input` | ProvisionIndexInput (required) | - -```typescript -const result = await db.mutation.provisionIndex({ input: { databaseId: '', definition: '', tableId: '' } }).execute(); -``` - -### `db.mutation.provisionRelation` - -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). - -- **Type:** mutation -- **Arguments:** - - | Argument | Type | - |----------|------| - | `input` | ProvisionRelationInput (required) | - -```typescript -const result = await db.mutation.provisionRelation({ input: '' }).execute(); -``` - -### `db.mutation.provisionSpatialRelation` - -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. - -- **Type:** mutation -- **Arguments:** - - | Argument | Type | - |----------|------| - | `input` | ProvisionSpatialRelationInput (required) | - -```typescript -const result = await db.mutation.provisionSpatialRelation({ input: '' }).execute(); -``` - -### `db.mutation.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). - -- **Type:** mutation -- **Arguments:** - - | Argument | Type | - |----------|------| - | `input` | ProvisionTableInput (required) | - -```typescript -const result = await db.mutation.provisionTable({ input: '' }).execute(); -``` - -### `db.mutation.provisionUniqueConstraint` - -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. - -- **Type:** mutation -- **Arguments:** - - | Argument | Type | - |----------|------| - | `input` | ProvisionUniqueConstraintInput (required) | - -```typescript -const result = await db.mutation.provisionUniqueConstraint({ input: { databaseId: '', definition: '', tableId: '' } }).execute(); -``` - --- Built by the [Constructive](https://constructive.io) team. diff --git a/sdk/constructive-cli/src/modules/orm/index.ts b/sdk/constructive-cli/src/modules/orm/index.ts index 0951126688..249a7e5114 100644 --- a/sdk/constructive-cli/src/modules/orm/index.ts +++ b/sdk/constructive-cli/src/modules/orm/index.ts @@ -13,12 +13,15 @@ import { BillingProviderModuleModel } from './models/billingProviderModule'; import { BlueprintModel } from './models/blueprint'; import { BlueprintConstructionModel } from './models/blueprintConstruction'; import { BlueprintTemplateModel } from './models/blueprintTemplate'; +import { CapabilitiesModuleModel } from './models/capabilitiesModule'; import { CatalogModuleModel } from './models/catalogModule'; import { ComputeLogModuleModel } from './models/computeLogModule'; import { ConfigSecretsUserModuleModel } from './models/configSecretsUserModule'; import { ConnectedAccountsModuleModel } from './models/connectedAccountsModule'; +import { ContentPresetModuleModel } from './models/contentPresetModule'; import { CryptoAddressesModuleModel } from './models/cryptoAddressesModule'; import { CryptoAuthModuleModel } from './models/cryptoAuthModule'; +import { DataCapabilitiesFieldModel } from './models/dataCapabilitiesField'; import { DatabaseProvisionModuleModel } from './models/databaseProvisionModule'; import { DatabaseSettingsModuleModel } from './models/databaseSettingsModule'; import { DbPoolConfigModel } from './models/dbPoolConfig'; @@ -29,9 +32,11 @@ import { DefaultIdsModuleModel } from './models/defaultIdsModule'; import { DenormalizedTableFieldModel } from './models/denormalizedTableField'; import { DevicesModuleModel } from './models/devicesModule'; import { DomainModuleModel } from './models/domainModule'; +import { EmailSenderModuleModel } from './models/emailSenderModule'; import { EmailsModuleModel } from './models/emailsModule'; import { EntityTypeProvisionModel } from './models/entityTypeProvision'; import { EventsModuleModel } from './models/eventsModule'; +import { FileRefFieldModel } from './models/fileRefField'; import { FunctionDeploymentModuleModel } from './models/functionDeploymentModule'; import { FunctionInvocationModuleModel } from './models/functionInvocationModule'; import { FunctionModuleModel } from './models/functionModule'; @@ -53,8 +58,8 @@ import { MembershipsModuleModel } from './models/membershipsModule'; import { MerkleStoreModuleModel } from './models/merkleStoreModule'; import { NamespaceModuleModel } from './models/namespaceModule'; import { NotificationsModuleModel } from './models/notificationsModule'; +import { OauthRequestsModuleModel } from './models/oauthRequestsModule'; import { PagesModuleModel } from './models/pagesModule'; -import { PermissionsModuleModel } from './models/permissionsModule'; import { PhoneNumbersModuleModel } from './models/phoneNumbersModule'; import { PlansModuleModel } from './models/plansModule'; import { PrincipalAuthModuleModel } from './models/principalAuthModule'; @@ -66,6 +71,7 @@ import { RelationProvisionModel } from './models/relationProvision'; import { ResourceModuleModel } from './models/resourceModule'; import { RlsModuleModel } from './models/rlsModule'; import { RouteModuleModel } from './models/routeModule'; +import { ScopeTypesModuleModel } from './models/scopeTypesModule'; import { SecureTableProvisionModel } from './models/secureTableProvision'; import { SessionSecretsModuleModel } from './models/sessionSecretsModule'; import { SessionsModuleModel } from './models/sessionsModule'; @@ -76,19 +82,18 @@ import { TransferLogModuleModel } from './models/transferLogModule'; import { UserAuthModuleModel } from './models/userAuthModule'; import { UserCredentialsModuleModel } from './models/userCredentialsModule'; import { UserSettingsModuleModel } from './models/userSettingsModule'; +import { UserSettingsSecurityModuleModel } from './models/userSettingsSecurityModule'; import { UserStateModuleModel } from './models/userStateModule'; import { UsersModuleModel } from './models/usersModule'; import { WebauthnAuthModuleModel } from './models/webauthnAuthModule'; import { WebauthnCredentialsModuleModel } from './models/webauthnCredentialsModule'; import { WebhookModuleModel } from './models/webhookModule'; -import { createQueryOperations } from './query'; import { createMutationOperations } from './mutation'; export type { OrmClientConfig, QueryResult, GraphQLError, GraphQLAdapter } from './client'; export { GraphQLRequestError, FetchAdapter } from './client'; export { QueryBuilder } from './query-builder'; export * from './select-types'; export * from './models'; -export { createQueryOperations } from './query'; export { createMutationOperations } from './mutation'; /** * Create an ORM client instance @@ -124,12 +129,15 @@ export function createClient(config: OrmClientConfig) { blueprint: new BlueprintModel(client), blueprintConstruction: new BlueprintConstructionModel(client), blueprintTemplate: new BlueprintTemplateModel(client), + capabilitiesModule: new CapabilitiesModuleModel(client), catalogModule: new CatalogModuleModel(client), computeLogModule: new ComputeLogModuleModel(client), configSecretsUserModule: new ConfigSecretsUserModuleModel(client), connectedAccountsModule: new ConnectedAccountsModuleModel(client), + contentPresetModule: new ContentPresetModuleModel(client), cryptoAddressesModule: new CryptoAddressesModuleModel(client), cryptoAuthModule: new CryptoAuthModuleModel(client), + dataCapabilitiesField: new DataCapabilitiesFieldModel(client), databaseProvisionModule: new DatabaseProvisionModuleModel(client), databaseSettingsModule: new DatabaseSettingsModuleModel(client), dbPoolConfig: new DbPoolConfigModel(client), @@ -140,9 +148,11 @@ export function createClient(config: OrmClientConfig) { denormalizedTableField: new DenormalizedTableFieldModel(client), devicesModule: new DevicesModuleModel(client), domainModule: new DomainModuleModel(client), + emailSenderModule: new EmailSenderModuleModel(client), emailsModule: new EmailsModuleModel(client), entityTypeProvision: new EntityTypeProvisionModel(client), eventsModule: new EventsModuleModel(client), + fileRefField: new FileRefFieldModel(client), functionDeploymentModule: new FunctionDeploymentModuleModel(client), functionInvocationModule: new FunctionInvocationModuleModel(client), functionModule: new FunctionModuleModel(client), @@ -164,8 +174,8 @@ export function createClient(config: OrmClientConfig) { merkleStoreModule: new MerkleStoreModuleModel(client), namespaceModule: new NamespaceModuleModel(client), notificationsModule: new NotificationsModuleModel(client), + oauthRequestsModule: new OauthRequestsModuleModel(client), pagesModule: new PagesModuleModel(client), - permissionsModule: new PermissionsModuleModel(client), phoneNumbersModule: new PhoneNumbersModuleModel(client), plansModule: new PlansModuleModel(client), principalAuthModule: new PrincipalAuthModuleModel(client), @@ -177,6 +187,7 @@ export function createClient(config: OrmClientConfig) { resourceModule: new ResourceModuleModel(client), rlsModule: new RlsModuleModel(client), routeModule: new RouteModuleModel(client), + scopeTypesModule: new ScopeTypesModuleModel(client), secureTableProvision: new SecureTableProvisionModel(client), sessionSecretsModule: new SessionSecretsModuleModel(client), sessionsModule: new SessionsModuleModel(client), @@ -187,12 +198,12 @@ export function createClient(config: OrmClientConfig) { userAuthModule: new UserAuthModuleModel(client), userCredentialsModule: new UserCredentialsModuleModel(client), userSettingsModule: new UserSettingsModuleModel(client), + userSettingsSecurityModule: new UserSettingsSecurityModuleModel(client), userStateModule: new UserStateModuleModel(client), usersModule: new UsersModuleModel(client), webauthnAuthModule: new WebauthnAuthModuleModel(client), webauthnCredentialsModule: new WebauthnCredentialsModuleModel(client), webhookModule: new WebhookModuleModel(client), - query: createQueryOperations(client), mutation: createMutationOperations(client), }; } diff --git a/sdk/constructive-cli/src/modules/orm/input-types.ts b/sdk/constructive-cli/src/modules/orm/input-types.ts index ed552e4810..27a0a0b958 100644 --- a/sdk/constructive-cli/src/modules/orm/input-types.ts +++ b/sdk/constructive-cli/src/modules/orm/input-types.ts @@ -236,7 +236,7 @@ export interface AgentModule { agentTableName?: string | null; apiName?: string | null; databaseId?: string | null; - defaultPermissions?: string[] | null; + defaultCapabilities?: string[] | null; entityField?: string | null; entityTableId?: string | null; hasAgents?: boolean | null; @@ -281,7 +281,7 @@ export interface ApiSurfaceModule { corsSettingsTableId?: string | null; corsSettingsTableName?: string | null; databaseId?: string | null; - defaultPermissions?: string[] | null; + defaultCapabilities?: string[] | null; entityField?: string | null; entityTableId?: string | null; id: string; @@ -301,7 +301,7 @@ export interface AppModule { appsTableName?: string | null; catalogModuleId?: string | null; databaseId?: string | null; - defaultPermissions?: string[] | null; + defaultCapabilities?: string[] | null; entityField?: string | null; entityTableId?: string | null; id: string; @@ -320,8 +320,8 @@ export interface BillingModule { balancesTableId?: string | null; balancesTableName?: string | null; databaseId?: string | null; + defaultCapabilities?: string[] | null; defaultMeterCatalog?: Record | null; - defaultPermissions?: string[] | null; id: string; ledgerTableId?: string | null; ledgerTableName?: string | null; @@ -349,16 +349,22 @@ export interface BillingProviderModule { apiName?: string | null; billingCustomersTableId?: string | null; billingCustomersTableName?: string | null; + billingInvoicesTableId?: string | null; + billingInvoicesTableName?: string | null; billingPricesTableId?: string | null; billingPricesTableName?: string | null; billingProductsTableId?: string | null; billingProductsTableName?: string | null; + billingRefundsTableId?: string | null; + billingRefundsTableName?: string | null; billingSubscriptionsTableId?: string | null; billingSubscriptionsTableName?: string | null; billingWebhookEventsTableId?: string | null; billingWebhookEventsTableName?: string | null; databaseId?: string | null; id: string; + listPendingUsageSyncFunction?: string | null; + markUsageSyncedFunction?: string | null; prefix?: string | null; pricesTableId?: string | null; privateApiName?: string | null; @@ -366,8 +372,10 @@ export interface BillingProviderModule { processBillingEventFunction?: string | null; productsTableId?: string | null; provider?: string | null; + recordRefundFunction?: string | null; schemaId?: string | null; subscriptionsTableId?: string | null; + upsertInvoiceFunction?: string | null; } /** An owned, editable blueprint scoped to a specific database. Created by copying from a blueprint_template via copy_template_to_blueprint() or built from scratch. The owner can customize the definition at any time. Execute it with construct_blueprint() which creates a separate blueprint_construction record to track the build. */ export interface Blueprint { @@ -464,16 +472,42 @@ export interface BlueprintTemplate { /** Access control for the template. private: only the owner can see and copy. public: anyone can browse and copy from the marketplace. Defaults to private. */ visibility?: string | null; } +export interface CapabilitiesModule { + actorTableId?: string | null; + apiName?: string | null; + bitlen?: number | null; + databaseId?: string | null; + defaultTableId?: string | null; + defaultTableName?: string | null; + entityField?: string | null; + entityTableId?: string | null; + getByMask?: string | null; + getMask?: string | null; + getMaskByName?: string | null; + getPaddedMask?: string | null; + id: string; + prefix?: string | null; + privateApiName?: string | null; + privateSchemaId?: string | null; + privateSchemaName?: string | null; + publicSchemaName?: string | null; + schemaId?: string | null; + scope?: string | null; + tableId?: string | null; + tableName?: string | null; +} export interface CatalogModule { apiName?: string | null; apisTableId?: string | null; apisTableName?: string | null; appsTableId?: string | null; appsTableName?: string | null; + bindingsTableId?: string | null; + bindingsTableName?: string | null; bucketsTableId?: string | null; bucketsTableName?: string | null; databaseId?: string | null; - defaultPermissions?: string[] | null; + defaultCapabilities?: string[] | null; domainsTableId?: string | null; domainsTableName?: string | null; entityTableId?: string | null; @@ -548,6 +582,25 @@ export interface ConnectedAccountsModule { tableId?: string | null; tableName?: string | null; } +export interface ContentPresetModule { + apiName?: string | null; + contentPresetsTableId?: string | null; + createdAt?: string | null; + databaseId?: string | null; + entityTableId?: string | null; + id: string; + merkleStoreModuleId?: string | null; + policies?: Record | null; + prefix?: string | null; + privateApiName?: string | null; + privateSchemaId?: string | null; + privateSchemaName?: string | null; + provisions?: Record | null; + publicSchemaId?: string | null; + publicSchemaName?: string | null; + scope?: string | null; + storeName?: string | null; +} export interface CryptoAddressesModule { apiName?: string | null; cryptoNetwork?: string | null; @@ -576,6 +629,19 @@ export interface CryptoAuthModule { userField?: string | null; usersTableId?: string | null; } +export interface DataCapabilitiesField { + capabilitiesModuleId?: string | null; + databaseId?: string | null; + fieldId?: string | null; + fromFieldId?: string | null; + id: string; + mappingFieldId?: string | null; + mappingKeyFieldId?: string | null; + mappingTableId?: string | null; + mode?: string | null; + subsetGuard?: boolean | null; + tableId?: 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 { /** When true, cold provisioning runs in the database:provision background job and the insert returns a pending ticket; when false, provisioning runs inline in the insert trigger */ @@ -598,7 +664,7 @@ export interface DatabaseProvisionModule { /** Uniform billing anchor: when the request was fulfilled with a usable database (cold provision completion or warm pool claim). Platform absorbs all provisioning compute before this point */ fulfilledAt?: string | null; id: string; - /** JSONB array of modules to install. Each element is either a string ("users_module") or a [name, options] tuple (["permissions_module", {"scope": "app"}]) */ + /** JSONB array of modules to install. Each element is either a string ("users_module") or a [name, options] tuple (["capabilities_module", {"scope": "app"}]) */ modules?: Record | null; /** Additional configuration options for provisioning */ options?: Record | null; @@ -617,7 +683,7 @@ export interface DatabaseSettingsModule { databaseId?: string | null; databaseSettingsTableId?: string | null; databaseSettingsTableName?: string | null; - defaultPermissions?: string[] | null; + defaultCapabilities?: string[] | null; entityField?: string | null; entityTableId?: string | null; id: string; @@ -701,7 +767,7 @@ export interface DbUsageModule { collectDbQueryStatsFunction?: string | null; collectDbTableStatsFunction?: string | null; databaseId?: string | null; - defaultPermissions?: string[] | null; + defaultCapabilities?: string[] | null; entityField?: string | null; id: string; interval?: string | null; @@ -756,7 +822,7 @@ export interface DomainModule { apiName?: string | null; catalogModuleId?: string | null; databaseId?: string | null; - defaultPermissions?: string[] | null; + defaultCapabilities?: string[] | null; domainEventsTableId?: string | null; domainEventsTableName?: string | null; domainVerificationsTableId?: string | null; @@ -778,6 +844,28 @@ export interface DomainModule { schemaId?: string | null; scope?: string | null; } +export interface EmailSenderModule { + apiName?: string | null; + databaseId?: string | null; + defaultCapabilities?: string[] | null; + emailIdentitiesTableId?: string | null; + emailIdentitiesTableName?: string | null; + emailProviderAccountsTableId?: string | null; + emailProviderAccountsTableName?: string | null; + emailSiteIdentitiesTableId?: string | null; + emailSiteIdentitiesTableName?: string | null; + entityField?: string | null; + entityTableId?: string | null; + id: string; + policies?: Record | null; + prefix?: string | null; + privateApiName?: string | null; + provisions?: Record | null; + publicSchemaName?: string | null; + schemaId?: string | null; + scope?: string | null; + siteSurfaceModuleId?: string | null; +} export interface EmailsModule { apiName?: string | null; databaseId?: string | null; @@ -791,7 +879,7 @@ export interface EmailsModule { } /** * Provisions a new membership entity type. Each INSERT creates an entity table, registers a membership type, - * and installs the required modules (permissions, memberships, limits) plus optional modules (profiles, levels, invites). + * and installs the required modules (capabilities, memberships, limits) plus optional modules (profiles, levels, invites). * Uses provision_membership_table() internally. Graceful: duplicate (database_id, prefix) pairs are silently skipped * via the unique constraint (use INSERT ... ON CONFLICT DO NOTHING). * Policy behavior: by default the five entity-table RLS policies are applied (gated by is_visible). @@ -813,7 +901,7 @@ export interface EntityTypeProvision { * - policies (jsonb array) RLS policy overrides. NULL = apply defaults from apply_function_security(). * Creates {prefix}_function_definitions (or {prefix}_{key}_function_definitions for non-default keys) * with entity-scoped RLS and a job trigger dispatching function:provision tasks. - * Registers manage_functions + invoke_functions permission bits on first provision. + * Registers manage_functions + invoke_functions capability bits on first provision. * Example: functions := '[{}]'::jsonb */ functions?: Record | null; @@ -823,9 +911,9 @@ export interface EntityTypeProvision { * Each element recognizes (all optional): * - key (text) module discriminator. Defaults to 'default'. * - policies (jsonb array) RLS policy overrides. NULL = apply defaults from apply_graph_security(). - * Registers manage_graphs + execute_graphs permission bits on first provision. + * Registers manage_graphs + execute_graphs capability bits on first provision. * Graph module requires a merkle_store_module_id dependency, so entity_type_provision - * only registers permissions here. The graph module itself must be provisioned + * only registers capabilities here. The graph module itself must be provisioned * separately with the merkle store dependency resolved. * Example: graphs := '[{}]'::jsonb */ @@ -865,8 +953,11 @@ export interface EntityTypeProvision { hasLimits?: boolean | null; /** * Whether to provision profiles_module for this type. Defaults to false. - * Profiles provide named permission roles (e.g. 'Editor', 'Viewer') with pre-configured permission bitmasks. - * When true, creates profile tables and applies profiles security. + * Profiles provide named capability roles (e.g. 'Editor', 'Viewer') with pre-configured capability bitmasks. + * When true, creates profile tables and applies profiles security. A membership may hold + * any number of profiles: the membership_profiles assignment table holds every profile a + * membership holds and the membership mask is granted | bit_or(held profile masks), with + * memberships.profile_id kept as a pointer at one held profile. */ hasProfiles?: boolean | null; /** Unique identifier for this provision row. */ @@ -893,7 +984,7 @@ export interface EntityTypeProvision { * - policies (jsonb array) RLS policy overrides. NULL = apply defaults from apply_namespace_security(). * Creates {prefix}_namespaces (or {prefix}_{key}_namespaces for non-default keys) * with entity-scoped RLS (AuthzEntityMembership) and a rename proxy trigger. - * Registers manage_namespaces permission bit on first provision. + * Registers manage_namespaces capability bit on first provision. * Example: namespaces := '[{}]'::jsonb */ namespaces?: Record | null; @@ -915,7 +1006,7 @@ export interface EntityTypeProvision { outGraphModuleId?: string | null; outGraphsTableId?: string | null; /** - * Output: array of installed module labels (e.g. ARRAY['permissions_module:data_room', 'memberships_module:data_room', 'invites_module:data_room']). + * Output: array of installed module labels (e.g. ARRAY['capabilities_module:data_room', 'memberships_module:data_room', 'invites_module:data_room']). * Populated by the trigger. Useful for verifying which modules were provisioned. */ outInstalledModules?: string[] | null; @@ -959,7 +1050,7 @@ export interface EntityTypeProvision { parentEntity?: string | null; /** * SQL prefix used for table and module naming, e.g. 'data_room', 'team_channel'. Required. - * Drives entity table name (prefix || 's' by default), module labels (permissions_module:prefix), + * Drives entity table name (prefix || 's' by default), module labels (capabilities_module:prefix), * and membership table names (prefix_memberships, prefix_members, etc.). * Must be unique per database — the (database_id, prefix) constraint ensures graceful ON CONFLICT DO NOTHING. */ @@ -973,8 +1064,8 @@ export interface EntityTypeProvision { * Defaults (applied when table_provision IS NULL and skip_entity_policies=false): * - SELECT (parent_member): parent entity members can see child entities (only when is_visible=true) * - SELECT (self_member): direct members of the entity can see it - * - INSERT: create_entity permission on the parent entity - * - UPDATE: admin_entity permission on the entity itself + * - INSERT: create_entity capability on the parent entity + * - UPDATE: admin_entity capability on the entity itself * - DELETE: owner of the entity can delete it */ skipEntityPolicies?: boolean | null; @@ -993,7 +1084,7 @@ export interface EntityTypeProvision { * - 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 + * - restrict_reads (boolean) require read_files capability 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 @@ -1019,7 +1110,7 @@ export interface EntityTypeProvision { tableName?: string | null; /** * Single jsonb object describing the full security setup to apply to the entity table. - * Uses the same vocabulary as metaschema_modules_public.provision_table() and blueprint tables[] + * Uses the same vocabulary as metaschema_modules_private.provision_table() and blueprint tables[] * entries, so an entity table is configured the same way an ordinary blueprint table is. * Defaults to NULL; when non-NULL, the five default policies are implicitly replaced by * table_provision.policies[] (is_visible becomes a no-op on this path). @@ -1056,7 +1147,7 @@ export interface EventsModule { actorTableId?: string | null; apiName?: string | null; databaseId?: string | null; - defaultPermissions?: string[] | null; + defaultCapabilities?: string[] | null; entityField?: string | null; entityTableId?: string | null; eventAggregatesTableId?: string | null; @@ -1065,6 +1156,7 @@ export interface EventsModule { eventTypesTableName?: string | null; eventsTableId?: string | null; eventsTableName?: string | null; + expireGrants?: string | null; grantAchievement?: string | null; id: string; interval?: string | null; @@ -1081,9 +1173,11 @@ export interface EventsModule { privateSchemaId?: string | null; privateSchemaName?: string | null; publicSchemaName?: string | null; + recomputeCapabilities?: string | null; recordEvent?: string | null; removeEvent?: string | null; retention?: string | null; + revokeAchievement?: string | null; schemaId?: string | null; scope?: string | null; stepsRequired?: string | null; @@ -1093,13 +1187,26 @@ export interface EventsModule { tgEventBool?: string | null; tgEventToggle?: string | null; tgEventToggleBool?: string | null; + tgLevelGrantSync?: string | null; tgUpdateAggregates?: string | null; + trustLadder?: Record | null; upsertAggregate?: string | null; } +export interface FileRefField { + bucketKey?: string | null; + bucketTags?: string[] | null; + databaseId?: string | null; + enforceFk?: boolean | null; + fieldId?: string | null; + id: string; + isPublic?: boolean | null; + storageModuleId?: string | null; + tableId?: string | null; +} export interface FunctionDeploymentModule { apiName?: string | null; databaseId?: string | null; - defaultPermissions?: string[] | null; + defaultCapabilities?: string[] | null; deploymentEventsTableId?: string | null; deploymentEventsTableName?: string | null; deploymentsTableId?: string | null; @@ -1124,7 +1231,7 @@ export interface FunctionInvocationModule { attemptsTableId?: string | null; attemptsTableName?: string | null; databaseId?: string | null; - defaultPermissions?: string[] | null; + defaultCapabilities?: string[] | null; entityField?: string | null; entityTableId?: string | null; executionLogsTableId?: string | null; @@ -1148,7 +1255,7 @@ export interface FunctionModule { bindingsTableName?: string | null; capabilityBindingsTableId?: string | null; databaseId?: string | null; - defaultPermissions?: string[] | null; + defaultCapabilities?: string[] | null; definitionsTableId?: string | null; definitionsTableName?: string | null; entityField?: string | null; @@ -1170,7 +1277,7 @@ export interface GraphExecutionModule { apiName?: string | null; createdAt?: string | null; databaseId?: string | null; - defaultPermissions?: string[] | null; + defaultCapabilities?: string[] | null; entityField?: string | null; entityTableId?: string | null; executionsTableId?: string | null; @@ -1195,7 +1302,7 @@ export interface GraphModule { apiName?: string | null; createdAt?: string | null; databaseId?: string | null; - defaultPermissions?: string[] | null; + defaultCapabilities?: string[] | null; entityField?: string | null; entityTableId?: string | null; graphsTableId?: string | null; @@ -1218,7 +1325,7 @@ export interface HierarchyModule { chartEdgesTableName?: string | null; createdAt?: string | null; databaseId?: string | null; - defaultPermissions?: string[] | null; + defaultCapabilities?: string[] | null; entityField?: string | null; entityTableId?: string | null; getManagersFunction?: string | null; @@ -1239,7 +1346,7 @@ export interface HierarchyModule { export interface HttpRouteModule { apiName?: string | null; databaseId?: string | null; - defaultPermissions?: string[] | null; + defaultCapabilities?: string[] | null; entityField?: string | null; entityTableId?: string | null; functionModuleId?: string | null; @@ -1442,6 +1549,7 @@ export interface LimitsModule { limitCreditsTableId?: string | null; limitDecrementFunction?: string | null; limitDecrementTrigger?: string | null; + limitDefaults?: Record | null; limitIncrementFunction?: string | null; limitIncrementTrigger?: string | null; limitUpdateTrigger?: string | null; @@ -1472,9 +1580,12 @@ export interface MembershipsModule { adminGrantsTableId?: string | null; adminGrantsTableName?: string | null; apiName?: string | null; + capabilitiesTableId?: string | null; + capabilityDefaultCapabilitiesTableId?: string | null; + capabilityDefaultGrantsTableId?: string | null; databaseId?: string | null; + defaultCapabilitiesTableId?: string | null; defaultLimitsTableId?: string | null; - defaultPermissionsTableId?: string | null; entityField?: string | null; entityIdsByMask?: string | null; entityIdsByPerm?: string | null; @@ -1497,9 +1608,6 @@ export interface MembershipsModule { membershipsTableName?: string | null; ownerGrantsTableId?: string | null; ownerGrantsTableName?: string | null; - permissionDefaultGrantsTableId?: string | null; - permissionDefaultPermissionsTableId?: string | null; - permissionsTableId?: string | null; prefix?: string | null; privateApiName?: string | null; privateSchemaId?: string | null; @@ -1511,6 +1619,7 @@ export interface MembershipsModule { } export interface MerkleStoreModule { apiName?: string | null; + capabilityKey?: string | null; commitTableId?: string | null; createdAt?: string | null; databaseId?: string | null; @@ -1518,7 +1627,6 @@ export interface MerkleStoreModule { functionPrefix?: string | null; id: string; objectTableId?: string | null; - permissionKey?: string | null; prefix?: string | null; privateApiName?: string | null; privateSchemaId?: string | null; @@ -1532,7 +1640,7 @@ export interface MerkleStoreModule { export interface NamespaceModule { apiName?: string | null; databaseId?: string | null; - defaultPermissions?: string[] | null; + defaultCapabilities?: string[] | null; entityField?: string | null; entityTableId?: string | null; id: string; @@ -1554,7 +1662,7 @@ export interface NotificationsModule { apiName?: string | null; channelsTableId?: string | null; databaseId?: string | null; - defaultPermissions?: string[] | null; + defaultCapabilities?: string[] | null; deliveryLogTableId?: string | null; entityField?: string | null; hasChannels?: boolean | null; @@ -1576,6 +1684,28 @@ export interface NotificationsModule { suppressionsTableId?: string | null; userSettingsTableId?: string | null; } +/** + * Config row for the oauth_requests_module, which provisions the in-flight half of an SSO + * sign-in: the OAuth authorization requests table (state + PKCE code_verifier) and the + * pending identity links table (a verified identity parked under a single-use ticket), + * both private, plus the five SECURITY DEFINER procedures that are their only surface. + * Sibling of identity_providers_module (durable provider configuration) rather than part + * of it: this is ephemeral, purged flow state with its own retention. + */ +export interface OauthRequestsModule { + databaseId?: string | null; + entityField?: string | null; + entityTableId?: string | null; + id: string; + oauthAuthorizationRequestsTableId?: string | null; + oauthAuthorizationRequestsTableName?: string | null; + pendingIdentityLinksTableId?: string | null; + pendingIdentityLinksTableName?: string | null; + prefix?: string | null; + privateSchemaId?: string | null; + privateSchemaName?: string | null; + scope?: string | null; +} export interface PagesModule { apiName?: string | null; createdAt?: string | null; @@ -1597,30 +1727,6 @@ export interface PagesModule { sitesTableId?: string | null; storeNamePrefix?: string | null; } -export interface PermissionsModule { - actorTableId?: string | null; - apiName?: string | null; - bitlen?: number | null; - databaseId?: string | null; - defaultTableId?: string | null; - defaultTableName?: string | null; - entityField?: string | null; - entityTableId?: string | null; - getByMask?: string | null; - getMask?: string | null; - getMaskByName?: string | null; - getPaddedMask?: string | null; - id: string; - prefix?: string | null; - privateApiName?: string | null; - privateSchemaId?: string | null; - privateSchemaName?: string | null; - publicSchemaName?: string | null; - schemaId?: string | null; - scope?: string | null; - tableId?: string | null; - tableName?: string | null; -} export interface PhoneNumbersModule { apiName?: string | null; databaseId?: string | null; @@ -1679,22 +1785,24 @@ export interface PrincipalAuthModule { export interface ProfilesModule { actorTableId?: string | null; apiName?: string | null; + capabilitiesTableId?: string | null; databaseId?: string | null; entityField?: string | null; entityTableId?: string | null; id: string; + membershipProfilesTableId?: string | null; + membershipProfilesTableName?: string | null; membershipsTableId?: string | null; - permissionsTableId?: string | null; prefix?: string | null; privateApiName?: string | null; privateSchemaId?: string | null; privateSchemaName?: string | null; + profileCapabilitiesTableId?: string | null; + profileCapabilitiesTableName?: string | null; profileDefinitionGrantsTableId?: string | null; profileDefinitionGrantsTableName?: string | null; profileGrantsTableId?: string | null; profileGrantsTableName?: string | null; - profilePermissionsTableId?: string | null; - profilePermissionsTableName?: string | null; profileTemplatesTableId?: string | null; profileTemplatesTableName?: string | null; publicSchemaName?: string | null; @@ -1707,7 +1815,7 @@ export interface RateLimitMetersModule { apiName?: string | null; checkRateLimitFunction?: string | null; databaseId?: string | null; - defaultPermissions?: string[] | null; + defaultCapabilities?: string[] | null; id: string; prefix?: string | null; privateApiName?: string | null; @@ -1885,7 +1993,7 @@ export interface RelationProvision { export interface ResourceModule { apiName?: string | null; databaseId?: string | null; - defaultPermissions?: string[] | null; + defaultCapabilities?: string[] | null; entityField?: string | null; entityTableId?: string | null; id: string; @@ -1937,9 +2045,11 @@ export interface RlsModule { } export interface RouteModule { apiName?: string | null; + appLinksFunctionName?: string | null; catalogModuleId?: string | null; databaseId?: string | null; - defaultPermissions?: string[] | null; + deepLinkFunctionName?: string | null; + defaultCapabilities?: string[] | null; domainModuleId?: string | null; entityField?: string | null; entityTableId?: string | null; @@ -1961,6 +2071,13 @@ export interface RouteModule { schemaId?: string | null; scope?: string | null; } +export interface ScopeTypesModule { + databaseId?: string | null; + id: string; + privateSchemaName?: string | null; + schemaId?: string | null; + scopeTypesTableId?: string | null; +} /** Provisions security, fields, grants, and policies onto a table. Each row can independently: (1) create fields via nodes[] array (supporting multiple Data* modules per row), (2) grant privileges via grants[] array (supporting per-role privilege targeting), (3) create RLS policies via policies[] array (supporting multiple Authz* policies per row). Multiple rows can target the same table to compose different concerns. All three concerns are optional and independent. */ export interface SecureTableProvision { /** The database this provision belongs to. Required. */ @@ -2013,7 +2130,7 @@ export interface SiteSurfaceModule { apiName?: string | null; catalogModuleId?: string | null; databaseId?: string | null; - defaultPermissions?: string[] | null; + defaultCapabilities?: string[] | null; entityField?: string | null; entityTableId?: string | null; id: string; @@ -2074,8 +2191,8 @@ export interface StorageModule { catalogModuleId?: string | null; confirmUploadDelay?: string | null; databaseId?: string | null; + defaultCapabilities?: string[] | null; defaultMaxFileSize?: string | null; - defaultPermissions?: string[] | null; downloadUrlExpirySeconds?: number | null; endpoint?: string | null; entityField?: string | null; @@ -2183,6 +2300,15 @@ export interface UserSettingsModule { tableId?: string | null; tableName?: string | null; } +export interface UserSettingsSecurityModule { + apiName?: string | null; + databaseId?: string | null; + id: string; + ownerTableId?: string | null; + schemaId?: string | null; + tableId?: string | null; + tableName?: string | null; +} export interface UserStateModule { databaseId?: string | null; entityField?: string | null; @@ -2236,7 +2362,7 @@ export interface WebauthnCredentialsModule { export interface WebhookModule { apiName?: string | null; databaseId?: string | null; - defaultPermissions?: string[] | null; + defaultCapabilities?: string[] | null; entityField?: string | null; entityTableId?: string | null; functionInvocationModuleId?: string | null; @@ -2292,6 +2418,9 @@ export interface BlueprintTemplateRelations { blueprintTemplatesByForkedFromId?: ConnectionResult; blueprintsByTemplateId?: ConnectionResult; } +export interface CapabilitiesModuleRelations { + dataCapabilitiesFields?: ConnectionResult; +} export interface CatalogModuleRelations { apiSurfaceModules?: ConnectionResult; appModules?: ConnectionResult; @@ -2302,8 +2431,14 @@ export interface CatalogModuleRelations { export interface ComputeLogModuleRelations {} export interface ConfigSecretsUserModuleRelations {} export interface ConnectedAccountsModuleRelations {} +export interface ContentPresetModuleRelations { + merkleStoreModule?: MerkleStoreModule | null; +} export interface CryptoAddressesModuleRelations {} export interface CryptoAuthModuleRelations {} +export interface DataCapabilitiesFieldRelations { + capabilitiesModule?: CapabilitiesModule | null; +} export interface DatabaseProvisionModuleRelations {} export interface DatabaseSettingsModuleRelations {} export interface DbPoolConfigRelations {} @@ -2319,9 +2454,15 @@ export interface DomainModuleRelations { catalogModule?: CatalogModule | null; routeModules?: ConnectionResult; } +export interface EmailSenderModuleRelations { + siteSurfaceModule?: SiteSurfaceModule | null; +} export interface EmailsModuleRelations {} export interface EntityTypeProvisionRelations {} export interface EventsModuleRelations {} +export interface FileRefFieldRelations { + storageModule?: StorageModule | null; +} export interface FunctionDeploymentModuleRelations { functionModule?: FunctionModule | null; namespaceModule?: NamespaceModule | null; @@ -2361,6 +2502,7 @@ export interface LimitsModuleRelations {} export interface MembershipTypesModuleRelations {} export interface MembershipsModuleRelations {} export interface MerkleStoreModuleRelations { + contentPresetModules?: ConnectionResult; dbPresetModules?: ConnectionResult; graphModules?: ConnectionResult; pagesModules?: ConnectionResult; @@ -2372,11 +2514,11 @@ export interface NamespaceModuleRelations { webhookModules?: ConnectionResult; } export interface NotificationsModuleRelations {} +export interface OauthRequestsModuleRelations {} export interface PagesModuleRelations { merkleStoreModule?: MerkleStoreModule | null; siteSurfaceModule?: SiteSurfaceModule | null; } -export interface PermissionsModuleRelations {} export interface PhoneNumbersModuleRelations {} export interface PlansModuleRelations {} export interface PrincipalAuthModuleRelations {} @@ -2395,21 +2537,25 @@ export interface RouteModuleRelations { catalogModule?: CatalogModule | null; domainModule?: DomainModule | null; } +export interface ScopeTypesModuleRelations {} export interface SecureTableProvisionRelations {} export interface SessionSecretsModuleRelations {} export interface SessionsModuleRelations {} export interface SiteSurfaceModuleRelations { catalogModule?: CatalogModule | null; + emailSenderModules?: ConnectionResult; pagesModules?: ConnectionResult; } export interface StorageLogModuleRelations {} export interface StorageModuleRelations { + fileRefFields?: ConnectionResult; httpRouteModules?: ConnectionResult; } export interface TransferLogModuleRelations {} export interface UserAuthModuleRelations {} export interface UserCredentialsModuleRelations {} export interface UserSettingsModuleRelations {} +export interface UserSettingsSecurityModuleRelations {} export interface UserStateModuleRelations {} export interface UsersModuleRelations {} export interface WebauthnAuthModuleRelations {} @@ -2431,15 +2577,19 @@ export type BlueprintWithRelations = Blueprint & BlueprintRelations; export type BlueprintConstructionWithRelations = BlueprintConstruction & BlueprintConstructionRelations; export type BlueprintTemplateWithRelations = BlueprintTemplate & BlueprintTemplateRelations; +export type CapabilitiesModuleWithRelations = CapabilitiesModule & CapabilitiesModuleRelations; export type CatalogModuleWithRelations = CatalogModule & CatalogModuleRelations; export type ComputeLogModuleWithRelations = ComputeLogModule & ComputeLogModuleRelations; export type ConfigSecretsUserModuleWithRelations = ConfigSecretsUserModule & ConfigSecretsUserModuleRelations; export type ConnectedAccountsModuleWithRelations = ConnectedAccountsModule & ConnectedAccountsModuleRelations; +export type ContentPresetModuleWithRelations = ContentPresetModule & ContentPresetModuleRelations; export type CryptoAddressesModuleWithRelations = CryptoAddressesModule & CryptoAddressesModuleRelations; export type CryptoAuthModuleWithRelations = CryptoAuthModule & CryptoAuthModuleRelations; +export type DataCapabilitiesFieldWithRelations = DataCapabilitiesField & + DataCapabilitiesFieldRelations; export type DatabaseProvisionModuleWithRelations = DatabaseProvisionModule & DatabaseProvisionModuleRelations; export type DatabaseSettingsModuleWithRelations = DatabaseSettingsModule & @@ -2453,9 +2603,11 @@ export type DenormalizedTableFieldWithRelations = DenormalizedTableField & DenormalizedTableFieldRelations; export type DevicesModuleWithRelations = DevicesModule & DevicesModuleRelations; export type DomainModuleWithRelations = DomainModule & DomainModuleRelations; +export type EmailSenderModuleWithRelations = EmailSenderModule & EmailSenderModuleRelations; export type EmailsModuleWithRelations = EmailsModule & EmailsModuleRelations; export type EntityTypeProvisionWithRelations = EntityTypeProvision & EntityTypeProvisionRelations; export type EventsModuleWithRelations = EventsModule & EventsModuleRelations; +export type FileRefFieldWithRelations = FileRefField & FileRefFieldRelations; export type FunctionDeploymentModuleWithRelations = FunctionDeploymentModule & FunctionDeploymentModuleRelations; export type FunctionInvocationModuleWithRelations = FunctionInvocationModule & @@ -2484,8 +2636,8 @@ export type MembershipsModuleWithRelations = MembershipsModule & MembershipsModu export type MerkleStoreModuleWithRelations = MerkleStoreModule & MerkleStoreModuleRelations; export type NamespaceModuleWithRelations = NamespaceModule & NamespaceModuleRelations; export type NotificationsModuleWithRelations = NotificationsModule & NotificationsModuleRelations; +export type OauthRequestsModuleWithRelations = OauthRequestsModule & OauthRequestsModuleRelations; export type PagesModuleWithRelations = PagesModule & PagesModuleRelations; -export type PermissionsModuleWithRelations = PermissionsModule & PermissionsModuleRelations; export type PhoneNumbersModuleWithRelations = PhoneNumbersModule & PhoneNumbersModuleRelations; export type PlansModuleWithRelations = PlansModule & PlansModuleRelations; export type PrincipalAuthModuleWithRelations = PrincipalAuthModule & PrincipalAuthModuleRelations; @@ -2498,6 +2650,7 @@ export type RelationProvisionWithRelations = RelationProvision & RelationProvisi export type ResourceModuleWithRelations = ResourceModule & ResourceModuleRelations; export type RlsModuleWithRelations = RlsModule & RlsModuleRelations; export type RouteModuleWithRelations = RouteModule & RouteModuleRelations; +export type ScopeTypesModuleWithRelations = ScopeTypesModule & ScopeTypesModuleRelations; export type SecureTableProvisionWithRelations = SecureTableProvision & SecureTableProvisionRelations; export type SessionSecretsModuleWithRelations = SessionSecretsModule & @@ -2511,6 +2664,8 @@ export type UserAuthModuleWithRelations = UserAuthModule & UserAuthModuleRelatio export type UserCredentialsModuleWithRelations = UserCredentialsModule & UserCredentialsModuleRelations; export type UserSettingsModuleWithRelations = UserSettingsModule & UserSettingsModuleRelations; +export type UserSettingsSecurityModuleWithRelations = UserSettingsSecurityModule & + UserSettingsSecurityModuleRelations; export type UserStateModuleWithRelations = UserStateModule & UserStateModuleRelations; export type UsersModuleWithRelations = UsersModule & UsersModuleRelations; export type WebauthnAuthModuleWithRelations = WebauthnAuthModule & WebauthnAuthModuleRelations; @@ -2523,7 +2678,7 @@ export type AgentModuleSelect = { agentTableName?: boolean; apiName?: boolean; databaseId?: boolean; - defaultPermissions?: boolean; + defaultCapabilities?: boolean; entityField?: boolean; entityTableId?: boolean; hasAgents?: boolean; @@ -2568,7 +2723,7 @@ export type ApiSurfaceModuleSelect = { corsSettingsTableId?: boolean; corsSettingsTableName?: boolean; databaseId?: boolean; - defaultPermissions?: boolean; + defaultCapabilities?: boolean; entityField?: boolean; entityTableId?: boolean; id?: boolean; @@ -2591,7 +2746,7 @@ export type AppModuleSelect = { appsTableName?: boolean; catalogModuleId?: boolean; databaseId?: boolean; - defaultPermissions?: boolean; + defaultCapabilities?: boolean; entityField?: boolean; entityTableId?: boolean; id?: boolean; @@ -2613,8 +2768,8 @@ export type BillingModuleSelect = { balancesTableId?: boolean; balancesTableName?: boolean; databaseId?: boolean; + defaultCapabilities?: boolean; defaultMeterCatalog?: boolean; - defaultPermissions?: boolean; id?: boolean; ledgerTableId?: boolean; ledgerTableName?: boolean; @@ -2642,16 +2797,22 @@ export type BillingProviderModuleSelect = { apiName?: boolean; billingCustomersTableId?: boolean; billingCustomersTableName?: boolean; + billingInvoicesTableId?: boolean; + billingInvoicesTableName?: boolean; billingPricesTableId?: boolean; billingPricesTableName?: boolean; billingProductsTableId?: boolean; billingProductsTableName?: boolean; + billingRefundsTableId?: boolean; + billingRefundsTableName?: boolean; billingSubscriptionsTableId?: boolean; billingSubscriptionsTableName?: boolean; billingWebhookEventsTableId?: boolean; billingWebhookEventsTableName?: boolean; databaseId?: boolean; id?: boolean; + listPendingUsageSyncFunction?: boolean; + markUsageSyncedFunction?: boolean; prefix?: boolean; pricesTableId?: boolean; privateApiName?: boolean; @@ -2659,8 +2820,10 @@ export type BillingProviderModuleSelect = { processBillingEventFunction?: boolean; productsTableId?: boolean; provider?: boolean; + recordRefundFunction?: boolean; schemaId?: boolean; subscriptionsTableId?: boolean; + upsertInvoiceFunction?: boolean; }; export type BlueprintSelect = { createdAt?: boolean; @@ -2738,16 +2901,48 @@ export type BlueprintTemplateSelect = { orderBy?: BlueprintOrderBy[]; }; }; +export type CapabilitiesModuleSelect = { + actorTableId?: boolean; + apiName?: boolean; + bitlen?: boolean; + databaseId?: boolean; + defaultTableId?: boolean; + defaultTableName?: boolean; + entityField?: boolean; + entityTableId?: boolean; + getByMask?: boolean; + getMask?: boolean; + getMaskByName?: boolean; + getPaddedMask?: boolean; + id?: boolean; + prefix?: boolean; + privateApiName?: boolean; + privateSchemaId?: boolean; + privateSchemaName?: boolean; + publicSchemaName?: boolean; + schemaId?: boolean; + scope?: boolean; + tableId?: boolean; + tableName?: boolean; + dataCapabilitiesFields?: { + select: DataCapabilitiesFieldSelect; + first?: number; + filter?: DataCapabilitiesFieldFilter; + orderBy?: DataCapabilitiesFieldOrderBy[]; + }; +}; export type CatalogModuleSelect = { apiName?: boolean; apisTableId?: boolean; apisTableName?: boolean; appsTableId?: boolean; appsTableName?: boolean; + bindingsTableId?: boolean; + bindingsTableName?: boolean; bucketsTableId?: boolean; bucketsTableName?: boolean; databaseId?: boolean; - defaultPermissions?: boolean; + defaultCapabilities?: boolean; domainsTableId?: boolean; domainsTableName?: boolean; entityTableId?: boolean; @@ -2852,6 +3047,28 @@ export type ConnectedAccountsModuleSelect = { tableId?: boolean; tableName?: boolean; }; +export type ContentPresetModuleSelect = { + apiName?: boolean; + contentPresetsTableId?: boolean; + createdAt?: boolean; + databaseId?: boolean; + entityTableId?: boolean; + id?: boolean; + merkleStoreModuleId?: boolean; + policies?: boolean; + prefix?: boolean; + privateApiName?: boolean; + privateSchemaId?: boolean; + privateSchemaName?: boolean; + provisions?: boolean; + publicSchemaId?: boolean; + publicSchemaName?: boolean; + scope?: boolean; + storeName?: boolean; + merkleStoreModule?: { + select: MerkleStoreModuleSelect; + }; +}; export type CryptoAddressesModuleSelect = { apiName?: boolean; cryptoNetwork?: boolean; @@ -2880,6 +3097,22 @@ export type CryptoAuthModuleSelect = { userField?: boolean; usersTableId?: boolean; }; +export type DataCapabilitiesFieldSelect = { + capabilitiesModuleId?: boolean; + databaseId?: boolean; + fieldId?: boolean; + fromFieldId?: boolean; + id?: boolean; + mappingFieldId?: boolean; + mappingKeyFieldId?: boolean; + mappingTableId?: boolean; + mode?: boolean; + subsetGuard?: boolean; + tableId?: boolean; + capabilitiesModule?: { + select: CapabilitiesModuleSelect; + }; +}; export type DatabaseProvisionModuleSelect = { async?: boolean; bootstrapError?: boolean; @@ -2906,7 +3139,7 @@ export type DatabaseSettingsModuleSelect = { databaseId?: boolean; databaseSettingsTableId?: boolean; databaseSettingsTableName?: boolean; - defaultPermissions?: boolean; + defaultCapabilities?: boolean; entityField?: boolean; entityTableId?: boolean; id?: boolean; @@ -2978,7 +3211,7 @@ export type DbUsageModuleSelect = { collectDbQueryStatsFunction?: boolean; collectDbTableStatsFunction?: boolean; databaseId?: boolean; - defaultPermissions?: boolean; + defaultCapabilities?: boolean; entityField?: boolean; id?: boolean; interval?: boolean; @@ -3033,7 +3266,7 @@ export type DomainModuleSelect = { apiName?: boolean; catalogModuleId?: boolean; databaseId?: boolean; - defaultPermissions?: boolean; + defaultCapabilities?: boolean; domainEventsTableId?: boolean; domainEventsTableName?: boolean; domainVerificationsTableId?: boolean; @@ -3064,6 +3297,31 @@ export type DomainModuleSelect = { orderBy?: RouteModuleOrderBy[]; }; }; +export type EmailSenderModuleSelect = { + apiName?: boolean; + databaseId?: boolean; + defaultCapabilities?: boolean; + emailIdentitiesTableId?: boolean; + emailIdentitiesTableName?: boolean; + emailProviderAccountsTableId?: boolean; + emailProviderAccountsTableName?: boolean; + emailSiteIdentitiesTableId?: boolean; + emailSiteIdentitiesTableName?: boolean; + entityField?: boolean; + entityTableId?: boolean; + id?: boolean; + policies?: boolean; + prefix?: boolean; + privateApiName?: boolean; + provisions?: boolean; + publicSchemaName?: boolean; + schemaId?: boolean; + scope?: boolean; + siteSurfaceModuleId?: boolean; + siteSurfaceModule?: { + select: SiteSurfaceModuleSelect; + }; +}; export type EmailsModuleSelect = { apiName?: boolean; databaseId?: boolean; @@ -3122,7 +3380,7 @@ export type EventsModuleSelect = { actorTableId?: boolean; apiName?: boolean; databaseId?: boolean; - defaultPermissions?: boolean; + defaultCapabilities?: boolean; entityField?: boolean; entityTableId?: boolean; eventAggregatesTableId?: boolean; @@ -3131,6 +3389,7 @@ export type EventsModuleSelect = { eventTypesTableName?: boolean; eventsTableId?: boolean; eventsTableName?: boolean; + expireGrants?: boolean; grantAchievement?: boolean; id?: boolean; interval?: boolean; @@ -3147,9 +3406,11 @@ export type EventsModuleSelect = { privateSchemaId?: boolean; privateSchemaName?: boolean; publicSchemaName?: boolean; + recomputeCapabilities?: boolean; recordEvent?: boolean; removeEvent?: boolean; retention?: boolean; + revokeAchievement?: boolean; schemaId?: boolean; scope?: boolean; stepsRequired?: boolean; @@ -3159,13 +3420,29 @@ export type EventsModuleSelect = { tgEventBool?: boolean; tgEventToggle?: boolean; tgEventToggleBool?: boolean; + tgLevelGrantSync?: boolean; tgUpdateAggregates?: boolean; + trustLadder?: boolean; upsertAggregate?: boolean; }; +export type FileRefFieldSelect = { + bucketKey?: boolean; + bucketTags?: boolean; + databaseId?: boolean; + enforceFk?: boolean; + fieldId?: boolean; + id?: boolean; + isPublic?: boolean; + storageModuleId?: boolean; + tableId?: boolean; + storageModule?: { + select: StorageModuleSelect; + }; +}; export type FunctionDeploymentModuleSelect = { apiName?: boolean; databaseId?: boolean; - defaultPermissions?: boolean; + defaultCapabilities?: boolean; deploymentEventsTableId?: boolean; deploymentEventsTableName?: boolean; deploymentsTableId?: boolean; @@ -3196,7 +3473,7 @@ export type FunctionInvocationModuleSelect = { attemptsTableId?: boolean; attemptsTableName?: boolean; databaseId?: boolean; - defaultPermissions?: boolean; + defaultCapabilities?: boolean; entityField?: boolean; entityTableId?: boolean; executionLogsTableId?: boolean; @@ -3226,7 +3503,7 @@ export type FunctionModuleSelect = { bindingsTableName?: boolean; capabilityBindingsTableId?: boolean; databaseId?: boolean; - defaultPermissions?: boolean; + defaultCapabilities?: boolean; definitionsTableId?: boolean; definitionsTableName?: boolean; entityField?: boolean; @@ -3266,7 +3543,7 @@ export type GraphExecutionModuleSelect = { apiName?: boolean; createdAt?: boolean; databaseId?: boolean; - defaultPermissions?: boolean; + defaultCapabilities?: boolean; entityField?: boolean; entityTableId?: boolean; executionsTableId?: boolean; @@ -3294,7 +3571,7 @@ export type GraphModuleSelect = { apiName?: boolean; createdAt?: boolean; databaseId?: boolean; - defaultPermissions?: boolean; + defaultCapabilities?: boolean; entityField?: boolean; entityTableId?: boolean; graphsTableId?: boolean; @@ -3326,7 +3603,7 @@ export type HierarchyModuleSelect = { chartEdgesTableName?: boolean; createdAt?: boolean; databaseId?: boolean; - defaultPermissions?: boolean; + defaultCapabilities?: boolean; entityField?: boolean; entityTableId?: boolean; getManagersFunction?: boolean; @@ -3347,7 +3624,7 @@ export type HierarchyModuleSelect = { export type HttpRouteModuleSelect = { apiName?: boolean; databaseId?: boolean; - defaultPermissions?: boolean; + defaultCapabilities?: boolean; entityField?: boolean; entityTableId?: boolean; functionModuleId?: boolean; @@ -3543,6 +3820,7 @@ export type LimitsModuleSelect = { limitCreditsTableId?: boolean; limitDecrementFunction?: boolean; limitDecrementTrigger?: boolean; + limitDefaults?: boolean; limitIncrementFunction?: boolean; limitIncrementTrigger?: boolean; limitUpdateTrigger?: boolean; @@ -3573,9 +3851,12 @@ export type MembershipsModuleSelect = { adminGrantsTableId?: boolean; adminGrantsTableName?: boolean; apiName?: boolean; + capabilitiesTableId?: boolean; + capabilityDefaultCapabilitiesTableId?: boolean; + capabilityDefaultGrantsTableId?: boolean; databaseId?: boolean; + defaultCapabilitiesTableId?: boolean; defaultLimitsTableId?: boolean; - defaultPermissionsTableId?: boolean; entityField?: boolean; entityIdsByMask?: boolean; entityIdsByPerm?: boolean; @@ -3598,9 +3879,6 @@ export type MembershipsModuleSelect = { membershipsTableName?: boolean; ownerGrantsTableId?: boolean; ownerGrantsTableName?: boolean; - permissionDefaultGrantsTableId?: boolean; - permissionDefaultPermissionsTableId?: boolean; - permissionsTableId?: boolean; prefix?: boolean; privateApiName?: boolean; privateSchemaId?: boolean; @@ -3612,6 +3890,7 @@ export type MembershipsModuleSelect = { }; export type MerkleStoreModuleSelect = { apiName?: boolean; + capabilityKey?: boolean; commitTableId?: boolean; createdAt?: boolean; databaseId?: boolean; @@ -3619,7 +3898,6 @@ export type MerkleStoreModuleSelect = { functionPrefix?: boolean; id?: boolean; objectTableId?: boolean; - permissionKey?: boolean; prefix?: boolean; privateApiName?: boolean; privateSchemaId?: boolean; @@ -3629,6 +3907,12 @@ export type MerkleStoreModuleSelect = { schemaId?: boolean; scope?: boolean; storeTableId?: boolean; + contentPresetModules?: { + select: ContentPresetModuleSelect; + first?: number; + filter?: ContentPresetModuleFilter; + orderBy?: ContentPresetModuleOrderBy[]; + }; dbPresetModules?: { select: DbPresetModuleSelect; first?: number; @@ -3657,7 +3941,7 @@ export type MerkleStoreModuleSelect = { export type NamespaceModuleSelect = { apiName?: boolean; databaseId?: boolean; - defaultPermissions?: boolean; + defaultCapabilities?: boolean; entityField?: boolean; entityTableId?: boolean; id?: boolean; @@ -3697,7 +3981,7 @@ export type NotificationsModuleSelect = { apiName?: boolean; channelsTableId?: boolean; databaseId?: boolean; - defaultPermissions?: boolean; + defaultCapabilities?: boolean; deliveryLogTableId?: boolean; entityField?: boolean; hasChannels?: boolean; @@ -3719,6 +4003,20 @@ export type NotificationsModuleSelect = { suppressionsTableId?: boolean; userSettingsTableId?: boolean; }; +export type OauthRequestsModuleSelect = { + databaseId?: boolean; + entityField?: boolean; + entityTableId?: boolean; + id?: boolean; + oauthAuthorizationRequestsTableId?: boolean; + oauthAuthorizationRequestsTableName?: boolean; + pendingIdentityLinksTableId?: boolean; + pendingIdentityLinksTableName?: boolean; + prefix?: boolean; + privateSchemaId?: boolean; + privateSchemaName?: boolean; + scope?: boolean; +}; export type PagesModuleSelect = { apiName?: boolean; createdAt?: boolean; @@ -3746,30 +4044,6 @@ export type PagesModuleSelect = { select: SiteSurfaceModuleSelect; }; }; -export type PermissionsModuleSelect = { - actorTableId?: boolean; - apiName?: boolean; - bitlen?: boolean; - databaseId?: boolean; - defaultTableId?: boolean; - defaultTableName?: boolean; - entityField?: boolean; - entityTableId?: boolean; - getByMask?: boolean; - getMask?: boolean; - getMaskByName?: boolean; - getPaddedMask?: boolean; - id?: boolean; - prefix?: boolean; - privateApiName?: boolean; - privateSchemaId?: boolean; - privateSchemaName?: boolean; - publicSchemaName?: boolean; - schemaId?: boolean; - scope?: boolean; - tableId?: boolean; - tableName?: boolean; -}; export type PhoneNumbersModuleSelect = { apiName?: boolean; databaseId?: boolean; @@ -3827,22 +4101,24 @@ export type PrincipalAuthModuleSelect = { export type ProfilesModuleSelect = { actorTableId?: boolean; apiName?: boolean; + capabilitiesTableId?: boolean; databaseId?: boolean; entityField?: boolean; entityTableId?: boolean; id?: boolean; + membershipProfilesTableId?: boolean; + membershipProfilesTableName?: boolean; membershipsTableId?: boolean; - permissionsTableId?: boolean; prefix?: boolean; privateApiName?: boolean; privateSchemaId?: boolean; privateSchemaName?: boolean; + profileCapabilitiesTableId?: boolean; + profileCapabilitiesTableName?: boolean; profileDefinitionGrantsTableId?: boolean; profileDefinitionGrantsTableName?: boolean; profileGrantsTableId?: boolean; profileGrantsTableName?: boolean; - profilePermissionsTableId?: boolean; - profilePermissionsTableName?: boolean; profileTemplatesTableId?: boolean; profileTemplatesTableName?: boolean; publicSchemaName?: boolean; @@ -3855,7 +4131,7 @@ export type RateLimitMetersModuleSelect = { apiName?: boolean; checkRateLimitFunction?: boolean; databaseId?: boolean; - defaultPermissions?: boolean; + defaultCapabilities?: boolean; id?: boolean; prefix?: boolean; privateApiName?: boolean; @@ -3926,7 +4202,7 @@ export type RelationProvisionSelect = { export type ResourceModuleSelect = { apiName?: boolean; databaseId?: boolean; - defaultPermissions?: boolean; + defaultCapabilities?: boolean; entityField?: boolean; entityTableId?: boolean; id?: boolean; @@ -3990,9 +4266,11 @@ export type RlsModuleSelect = { }; export type RouteModuleSelect = { apiName?: boolean; + appLinksFunctionName?: boolean; catalogModuleId?: boolean; databaseId?: boolean; - defaultPermissions?: boolean; + deepLinkFunctionName?: boolean; + defaultCapabilities?: boolean; domainModuleId?: boolean; entityField?: boolean; entityTableId?: boolean; @@ -4020,6 +4298,13 @@ export type RouteModuleSelect = { select: DomainModuleSelect; }; }; +export type ScopeTypesModuleSelect = { + databaseId?: boolean; + id?: boolean; + privateSchemaName?: boolean; + schemaId?: boolean; + scopeTypesTableId?: boolean; +}; export type SecureTableProvisionSelect = { databaseId?: boolean; fields?: boolean; @@ -4058,7 +4343,7 @@ export type SiteSurfaceModuleSelect = { apiName?: boolean; catalogModuleId?: boolean; databaseId?: boolean; - defaultPermissions?: boolean; + defaultCapabilities?: boolean; entityField?: boolean; entityTableId?: boolean; id?: boolean; @@ -4090,6 +4375,12 @@ export type SiteSurfaceModuleSelect = { catalogModule?: { select: CatalogModuleSelect; }; + emailSenderModules?: { + select: EmailSenderModuleSelect; + first?: number; + filter?: EmailSenderModuleFilter; + orderBy?: EmailSenderModuleOrderBy[]; + }; pagesModules?: { select: PagesModuleSelect; first?: number; @@ -4128,8 +4419,8 @@ export type StorageModuleSelect = { catalogModuleId?: boolean; confirmUploadDelay?: boolean; databaseId?: boolean; + defaultCapabilities?: boolean; defaultMaxFileSize?: boolean; - defaultPermissions?: boolean; downloadUrlExpirySeconds?: boolean; endpoint?: boolean; entityField?: boolean; @@ -4161,6 +4452,12 @@ export type StorageModuleSelect = { schemaId?: boolean; scope?: boolean; uploadUrlExpirySeconds?: boolean; + fileRefFields?: { + select: FileRefFieldSelect; + first?: number; + filter?: FileRefFieldFilter; + orderBy?: FileRefFieldOrderBy[]; + }; httpRouteModules?: { select: HttpRouteModuleSelect; first?: number; @@ -4238,6 +4535,15 @@ export type UserSettingsModuleSelect = { tableId?: boolean; tableName?: boolean; }; +export type UserSettingsSecurityModuleSelect = { + apiName?: boolean; + databaseId?: boolean; + id?: boolean; + ownerTableId?: boolean; + schemaId?: boolean; + tableId?: boolean; + tableName?: boolean; +}; export type UserStateModuleSelect = { databaseId?: boolean; entityField?: boolean; @@ -4289,7 +4595,7 @@ export type WebauthnCredentialsModuleSelect = { export type WebhookModuleSelect = { apiName?: boolean; databaseId?: boolean; - defaultPermissions?: boolean; + defaultCapabilities?: boolean; entityField?: boolean; entityTableId?: boolean; functionInvocationModuleId?: boolean; @@ -4335,8 +4641,8 @@ export interface AgentModuleFilter { apiName?: StringFilter; /** Filter by the object’s `databaseId` field. */ databaseId?: UUIDFilter; - /** Filter by the object’s `defaultPermissions` field. */ - defaultPermissions?: StringListFilter; + /** Filter by the object’s `defaultCapabilities` field. */ + defaultCapabilities?: StringListFilter; /** Filter by the object’s `entityField` field. */ entityField?: StringFilter; /** Filter by the object’s `entityTableId` field. */ @@ -4433,8 +4739,8 @@ export interface ApiSurfaceModuleFilter { corsSettingsTableName?: StringFilter; /** Filter by the object’s `databaseId` field. */ databaseId?: UUIDFilter; - /** Filter by the object’s `defaultPermissions` field. */ - defaultPermissions?: StringListFilter; + /** Filter by the object’s `defaultCapabilities` field. */ + defaultCapabilities?: StringListFilter; /** Filter by the object’s `entityField` field. */ entityField?: StringFilter; /** Filter by the object’s `entityTableId` field. */ @@ -4481,8 +4787,8 @@ export interface AppModuleFilter { catalogModuleId?: UUIDFilter; /** Filter by the object’s `databaseId` field. */ databaseId?: UUIDFilter; - /** Filter by the object’s `defaultPermissions` field. */ - defaultPermissions?: StringListFilter; + /** Filter by the object’s `defaultCapabilities` field. */ + defaultCapabilities?: StringListFilter; /** Filter by the object’s `entityField` field. */ entityField?: StringFilter; /** Filter by the object’s `entityTableId` field. */ @@ -4523,10 +4829,10 @@ export interface BillingModuleFilter { balancesTableName?: StringFilter; /** Filter by the object’s `databaseId` field. */ databaseId?: UUIDFilter; + /** Filter by the object’s `defaultCapabilities` field. */ + defaultCapabilities?: StringListFilter; /** Filter by the object’s `defaultMeterCatalog` field. */ defaultMeterCatalog?: JSONFilter; - /** Filter by the object’s `defaultPermissions` field. */ - defaultPermissions?: StringListFilter; /** Filter by the object’s `id` field. */ id?: UUIDFilter; /** Filter by the object’s `ledgerTableId` field. */ @@ -4585,6 +4891,10 @@ export interface BillingProviderModuleFilter { billingCustomersTableId?: UUIDFilter; /** Filter by the object’s `billingCustomersTableName` field. */ billingCustomersTableName?: StringFilter; + /** Filter by the object’s `billingInvoicesTableId` field. */ + billingInvoicesTableId?: UUIDFilter; + /** Filter by the object’s `billingInvoicesTableName` field. */ + billingInvoicesTableName?: StringFilter; /** Filter by the object’s `billingPricesTableId` field. */ billingPricesTableId?: UUIDFilter; /** Filter by the object’s `billingPricesTableName` field. */ @@ -4593,6 +4903,10 @@ export interface BillingProviderModuleFilter { billingProductsTableId?: UUIDFilter; /** Filter by the object’s `billingProductsTableName` field. */ billingProductsTableName?: StringFilter; + /** Filter by the object’s `billingRefundsTableId` field. */ + billingRefundsTableId?: UUIDFilter; + /** Filter by the object’s `billingRefundsTableName` field. */ + billingRefundsTableName?: StringFilter; /** Filter by the object’s `billingSubscriptionsTableId` field. */ billingSubscriptionsTableId?: UUIDFilter; /** Filter by the object’s `billingSubscriptionsTableName` field. */ @@ -4605,6 +4919,10 @@ export interface BillingProviderModuleFilter { databaseId?: UUIDFilter; /** Filter by the object’s `id` field. */ id?: UUIDFilter; + /** Filter by the object’s `listPendingUsageSyncFunction` field. */ + listPendingUsageSyncFunction?: StringFilter; + /** Filter by the object’s `markUsageSyncedFunction` field. */ + markUsageSyncedFunction?: StringFilter; /** Negates the expression. */ not?: BillingProviderModuleFilter; /** Checks for any expressions in this list. */ @@ -4623,10 +4941,14 @@ export interface BillingProviderModuleFilter { productsTableId?: UUIDFilter; /** Filter by the object’s `provider` field. */ provider?: StringFilter; + /** Filter by the object’s `recordRefundFunction` field. */ + recordRefundFunction?: StringFilter; /** Filter by the object’s `schemaId` field. */ schemaId?: UUIDFilter; /** Filter by the object’s `subscriptionsTableId` field. */ subscriptionsTableId?: UUIDFilter; + /** Filter by the object’s `upsertInvoiceFunction` field. */ + upsertInvoiceFunction?: StringFilter; } export interface BlueprintFilter { /** Checks for all expressions in this list. */ @@ -4760,9 +5082,65 @@ export interface BlueprintTemplateFilter { /** Filter by the object’s `visibility` field. */ visibility?: StringFilter; } -export interface CatalogModuleFilter { +export interface CapabilitiesModuleFilter { + /** Filter by the object’s `actorTableId` field. */ + actorTableId?: UUIDFilter; /** Checks for all expressions in this list. */ - and?: CatalogModuleFilter[]; + and?: CapabilitiesModuleFilter[]; + /** Filter by the object’s `apiName` field. */ + apiName?: StringFilter; + /** Filter by the object’s `bitlen` field. */ + bitlen?: IntFilter; + /** Filter by the object’s `dataCapabilitiesFields` relation. */ + dataCapabilitiesFields?: CapabilitiesModuleToManyDataCapabilitiesFieldFilter; + /** `dataCapabilitiesFields` exist. */ + dataCapabilitiesFieldsExist?: boolean; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `defaultTableId` field. */ + defaultTableId?: UUIDFilter; + /** Filter by the object’s `defaultTableName` field. */ + defaultTableName?: StringFilter; + /** Filter by the object’s `entityField` field. */ + entityField?: StringFilter; + /** Filter by the object’s `entityTableId` field. */ + entityTableId?: UUIDFilter; + /** Filter by the object’s `getByMask` field. */ + getByMask?: StringFilter; + /** Filter by the object’s `getMask` field. */ + getMask?: StringFilter; + /** Filter by the object’s `getMaskByName` field. */ + getMaskByName?: StringFilter; + /** Filter by the object’s `getPaddedMask` field. */ + getPaddedMask?: StringFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Negates the expression. */ + not?: CapabilitiesModuleFilter; + /** Checks for any expressions in this list. */ + or?: CapabilitiesModuleFilter[]; + /** Filter by the object’s `prefix` field. */ + prefix?: StringFilter; + /** Filter by the object’s `privateApiName` field. */ + privateApiName?: StringFilter; + /** Filter by the object’s `privateSchemaId` field. */ + privateSchemaId?: UUIDFilter; + /** Filter by the object’s `privateSchemaName` field. */ + privateSchemaName?: StringFilter; + /** Filter by the object’s `publicSchemaName` field. */ + publicSchemaName?: StringFilter; + /** Filter by the object’s `schemaId` field. */ + schemaId?: UUIDFilter; + /** Filter by the object’s `scope` field. */ + scope?: StringFilter; + /** Filter by the object’s `tableId` field. */ + tableId?: UUIDFilter; + /** Filter by the object’s `tableName` field. */ + tableName?: StringFilter; +} +export interface CatalogModuleFilter { + /** Checks for all expressions in this list. */ + and?: CatalogModuleFilter[]; /** Filter by the object’s `apiName` field. */ apiName?: StringFilter; /** Filter by the object’s `apiSurfaceModules` relation. */ @@ -4781,14 +5159,18 @@ export interface CatalogModuleFilter { appsTableId?: UUIDFilter; /** Filter by the object’s `appsTableName` field. */ appsTableName?: StringFilter; + /** Filter by the object’s `bindingsTableId` field. */ + bindingsTableId?: UUIDFilter; + /** Filter by the object’s `bindingsTableName` field. */ + bindingsTableName?: StringFilter; /** Filter by the object’s `bucketsTableId` field. */ bucketsTableId?: UUIDFilter; /** Filter by the object’s `bucketsTableName` field. */ bucketsTableName?: StringFilter; /** Filter by the object’s `databaseId` field. */ databaseId?: UUIDFilter; - /** Filter by the object’s `defaultPermissions` field. */ - defaultPermissions?: StringListFilter; + /** Filter by the object’s `defaultCapabilities` field. */ + defaultCapabilities?: StringListFilter; /** Filter by the object’s `domainModules` relation. */ domainModules?: CatalogModuleToManyDomainModuleFilter; /** `domainModules` exist. */ @@ -4964,6 +5346,50 @@ export interface ConnectedAccountsModuleFilter { /** Filter by the object’s `tableName` field. */ tableName?: StringFilter; } +export interface ContentPresetModuleFilter { + /** Checks for all expressions in this list. */ + and?: ContentPresetModuleFilter[]; + /** Filter by the object’s `apiName` field. */ + apiName?: StringFilter; + /** Filter by the object’s `contentPresetsTableId` field. */ + contentPresetsTableId?: UUIDFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `entityTableId` field. */ + entityTableId?: UUIDFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `merkleStoreModule` relation. */ + merkleStoreModule?: MerkleStoreModuleFilter; + /** Filter by the object’s `merkleStoreModuleId` field. */ + merkleStoreModuleId?: UUIDFilter; + /** Negates the expression. */ + not?: ContentPresetModuleFilter; + /** Checks for any expressions in this list. */ + or?: ContentPresetModuleFilter[]; + /** Filter by the object’s `policies` field. */ + policies?: JSONFilter; + /** Filter by the object’s `prefix` field. */ + prefix?: StringFilter; + /** Filter by the object’s `privateApiName` field. */ + privateApiName?: StringFilter; + /** Filter by the object’s `privateSchemaId` field. */ + privateSchemaId?: UUIDFilter; + /** Filter by the object’s `privateSchemaName` field. */ + privateSchemaName?: StringFilter; + /** Filter by the object’s `provisions` field. */ + provisions?: JSONFilter; + /** Filter by the object’s `publicSchemaId` field. */ + publicSchemaId?: UUIDFilter; + /** Filter by the object’s `publicSchemaName` field. */ + publicSchemaName?: StringFilter; + /** Filter by the object’s `scope` field. */ + scope?: StringFilter; + /** Filter by the object’s `storeName` field. */ + storeName?: StringFilter; +} export interface CryptoAddressesModuleFilter { /** Checks for all expressions in this list. */ and?: CryptoAddressesModuleFilter[]; @@ -5028,6 +5454,38 @@ export interface CryptoAuthModuleFilter { /** Filter by the object’s `usersTableId` field. */ usersTableId?: UUIDFilter; } +export interface DataCapabilitiesFieldFilter { + /** Checks for all expressions in this list. */ + and?: DataCapabilitiesFieldFilter[]; + /** Filter by the object’s `capabilitiesModule` relation. */ + capabilitiesModule?: CapabilitiesModuleFilter; + /** Filter by the object’s `capabilitiesModuleId` field. */ + capabilitiesModuleId?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `fieldId` field. */ + fieldId?: UUIDFilter; + /** Filter by the object’s `fromFieldId` field. */ + fromFieldId?: UUIDFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `mappingFieldId` field. */ + mappingFieldId?: UUIDFilter; + /** Filter by the object’s `mappingKeyFieldId` field. */ + mappingKeyFieldId?: UUIDFilter; + /** Filter by the object’s `mappingTableId` field. */ + mappingTableId?: UUIDFilter; + /** Filter by the object’s `mode` field. */ + mode?: StringFilter; + /** Negates the expression. */ + not?: DataCapabilitiesFieldFilter; + /** Checks for any expressions in this list. */ + or?: DataCapabilitiesFieldFilter[]; + /** Filter by the object’s `subsetGuard` field. */ + subsetGuard?: BooleanFilter; + /** Filter by the object’s `tableId` field. */ + tableId?: UUIDFilter; +} export interface DatabaseProvisionModuleFilter { /** Checks for all expressions in this list. */ and?: DatabaseProvisionModuleFilter[]; @@ -5085,8 +5543,8 @@ export interface DatabaseSettingsModuleFilter { databaseSettingsTableId?: UUIDFilter; /** Filter by the object’s `databaseSettingsTableName` field. */ databaseSettingsTableName?: StringFilter; - /** Filter by the object’s `defaultPermissions` field. */ - defaultPermissions?: StringListFilter; + /** Filter by the object’s `defaultCapabilities` field. */ + defaultCapabilities?: StringListFilter; /** Filter by the object’s `entityField` field. */ entityField?: StringFilter; /** Filter by the object’s `entityTableId` field. */ @@ -5241,8 +5699,8 @@ export interface DbUsageModuleFilter { collectDbTableStatsFunction?: StringFilter; /** Filter by the object’s `databaseId` field. */ databaseId?: UUIDFilter; - /** Filter by the object’s `defaultPermissions` field. */ - defaultPermissions?: StringListFilter; + /** Filter by the object’s `defaultCapabilities` field. */ + defaultCapabilities?: StringListFilter; /** Filter by the object’s `entityField` field. */ entityField?: StringFilter; /** Filter by the object’s `id` field. */ @@ -5371,8 +5829,8 @@ export interface DomainModuleFilter { catalogModuleId?: UUIDFilter; /** Filter by the object’s `databaseId` field. */ databaseId?: UUIDFilter; - /** Filter by the object’s `defaultPermissions` field. */ - defaultPermissions?: StringListFilter; + /** Filter by the object’s `defaultCapabilities` field. */ + defaultCapabilities?: StringListFilter; /** Filter by the object’s `domainEventsTableId` field. */ domainEventsTableId?: UUIDFilter; /** Filter by the object’s `domainEventsTableName` field. */ @@ -5422,6 +5880,58 @@ export interface DomainModuleFilter { /** Filter by the object’s `scope` field. */ scope?: StringFilter; } +export interface EmailSenderModuleFilter { + /** Checks for all expressions in this list. */ + and?: EmailSenderModuleFilter[]; + /** Filter by the object’s `apiName` field. */ + apiName?: StringFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `defaultCapabilities` field. */ + defaultCapabilities?: StringListFilter; + /** Filter by the object’s `emailIdentitiesTableId` field. */ + emailIdentitiesTableId?: UUIDFilter; + /** Filter by the object’s `emailIdentitiesTableName` field. */ + emailIdentitiesTableName?: StringFilter; + /** Filter by the object’s `emailProviderAccountsTableId` field. */ + emailProviderAccountsTableId?: UUIDFilter; + /** Filter by the object’s `emailProviderAccountsTableName` field. */ + emailProviderAccountsTableName?: StringFilter; + /** Filter by the object’s `emailSiteIdentitiesTableId` field. */ + emailSiteIdentitiesTableId?: UUIDFilter; + /** Filter by the object’s `emailSiteIdentitiesTableName` field. */ + emailSiteIdentitiesTableName?: StringFilter; + /** Filter by the object’s `entityField` field. */ + entityField?: StringFilter; + /** Filter by the object’s `entityTableId` field. */ + entityTableId?: UUIDFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Negates the expression. */ + not?: EmailSenderModuleFilter; + /** Checks for any expressions in this list. */ + or?: EmailSenderModuleFilter[]; + /** Filter by the object’s `policies` field. */ + policies?: JSONFilter; + /** Filter by the object’s `prefix` field. */ + prefix?: StringFilter; + /** Filter by the object’s `privateApiName` field. */ + privateApiName?: StringFilter; + /** Filter by the object’s `provisions` field. */ + provisions?: JSONFilter; + /** Filter by the object’s `publicSchemaName` field. */ + publicSchemaName?: StringFilter; + /** Filter by the object’s `schemaId` field. */ + schemaId?: UUIDFilter; + /** Filter by the object’s `scope` field. */ + scope?: StringFilter; + /** Filter by the object’s `siteSurfaceModule` relation. */ + siteSurfaceModule?: SiteSurfaceModuleFilter; + /** A related `siteSurfaceModule` exists. */ + siteSurfaceModuleExists?: boolean; + /** Filter by the object’s `siteSurfaceModuleId` field. */ + siteSurfaceModuleId?: UUIDFilter; +} export interface EmailsModuleFilter { /** Checks for all expressions in this list. */ and?: EmailsModuleFilter[]; @@ -5547,8 +6057,8 @@ export interface EventsModuleFilter { apiName?: StringFilter; /** Filter by the object’s `databaseId` field. */ databaseId?: UUIDFilter; - /** Filter by the object’s `defaultPermissions` field. */ - defaultPermissions?: StringListFilter; + /** Filter by the object’s `defaultCapabilities` field. */ + defaultCapabilities?: StringListFilter; /** Filter by the object’s `entityField` field. */ entityField?: StringFilter; /** Filter by the object’s `entityTableId` field. */ @@ -5565,6 +6075,8 @@ export interface EventsModuleFilter { eventsTableId?: UUIDFilter; /** Filter by the object’s `eventsTableName` field. */ eventsTableName?: StringFilter; + /** Filter by the object’s `expireGrants` field. */ + expireGrants?: StringFilter; /** Filter by the object’s `grantAchievement` field. */ grantAchievement?: StringFilter; /** Filter by the object’s `id` field. */ @@ -5601,12 +6113,16 @@ export interface EventsModuleFilter { privateSchemaName?: StringFilter; /** Filter by the object’s `publicSchemaName` field. */ publicSchemaName?: StringFilter; + /** Filter by the object’s `recomputeCapabilities` field. */ + recomputeCapabilities?: StringFilter; /** Filter by the object’s `recordEvent` field. */ recordEvent?: StringFilter; /** Filter by the object’s `removeEvent` field. */ removeEvent?: StringFilter; /** Filter by the object’s `retention` field. */ retention?: StringFilter; + /** Filter by the object’s `revokeAchievement` field. */ + revokeAchievement?: StringFilter; /** Filter by the object’s `schemaId` field. */ schemaId?: UUIDFilter; /** Filter by the object’s `scope` field. */ @@ -5625,11 +6141,43 @@ export interface EventsModuleFilter { tgEventToggle?: StringFilter; /** Filter by the object’s `tgEventToggleBool` field. */ tgEventToggleBool?: StringFilter; + /** Filter by the object’s `tgLevelGrantSync` field. */ + tgLevelGrantSync?: StringFilter; /** Filter by the object’s `tgUpdateAggregates` field. */ tgUpdateAggregates?: StringFilter; + /** Filter by the object’s `trustLadder` field. */ + trustLadder?: JSONFilter; /** Filter by the object’s `upsertAggregate` field. */ upsertAggregate?: StringFilter; } +export interface FileRefFieldFilter { + /** Checks for all expressions in this list. */ + and?: FileRefFieldFilter[]; + /** Filter by the object’s `bucketKey` field. */ + bucketKey?: StringFilter; + /** Filter by the object’s `bucketTags` field. */ + bucketTags?: StringListFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `enforceFk` field. */ + enforceFk?: BooleanFilter; + /** Filter by the object’s `fieldId` field. */ + fieldId?: UUIDFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `isPublic` field. */ + isPublic?: BooleanFilter; + /** Negates the expression. */ + not?: FileRefFieldFilter; + /** Checks for any expressions in this list. */ + or?: FileRefFieldFilter[]; + /** Filter by the object’s `storageModule` relation. */ + storageModule?: StorageModuleFilter; + /** Filter by the object’s `storageModuleId` field. */ + storageModuleId?: UUIDFilter; + /** Filter by the object’s `tableId` field. */ + tableId?: UUIDFilter; +} export interface FunctionDeploymentModuleFilter { /** Checks for all expressions in this list. */ and?: FunctionDeploymentModuleFilter[]; @@ -5637,8 +6185,8 @@ export interface FunctionDeploymentModuleFilter { apiName?: StringFilter; /** Filter by the object’s `databaseId` field. */ databaseId?: UUIDFilter; - /** Filter by the object’s `defaultPermissions` field. */ - defaultPermissions?: StringListFilter; + /** Filter by the object’s `defaultCapabilities` field. */ + defaultCapabilities?: StringListFilter; /** Filter by the object’s `deploymentEventsTableId` field. */ deploymentEventsTableId?: UUIDFilter; /** Filter by the object’s `deploymentEventsTableName` field. */ @@ -5699,8 +6247,8 @@ export interface FunctionInvocationModuleFilter { attemptsTableName?: StringFilter; /** Filter by the object’s `databaseId` field. */ databaseId?: UUIDFilter; - /** Filter by the object’s `defaultPermissions` field. */ - defaultPermissions?: StringListFilter; + /** Filter by the object’s `defaultCapabilities` field. */ + defaultCapabilities?: StringListFilter; /** Filter by the object’s `entityField` field. */ entityField?: StringFilter; /** Filter by the object’s `entityTableId` field. */ @@ -5755,8 +6303,8 @@ export interface FunctionModuleFilter { capabilityBindingsTableId?: UUIDFilter; /** Filter by the object’s `databaseId` field. */ databaseId?: UUIDFilter; - /** Filter by the object’s `defaultPermissions` field. */ - defaultPermissions?: StringListFilter; + /** Filter by the object’s `defaultCapabilities` field. */ + defaultCapabilities?: StringListFilter; /** Filter by the object’s `definitionsTableId` field. */ definitionsTableId?: UUIDFilter; /** Filter by the object’s `definitionsTableName` field. */ @@ -5815,8 +6363,8 @@ export interface GraphExecutionModuleFilter { createdAt?: DatetimeFilter; /** Filter by the object’s `databaseId` field. */ databaseId?: UUIDFilter; - /** Filter by the object’s `defaultPermissions` field. */ - defaultPermissions?: StringListFilter; + /** Filter by the object’s `defaultCapabilities` field. */ + defaultCapabilities?: StringListFilter; /** Filter by the object’s `entityField` field. */ entityField?: StringFilter; /** Filter by the object’s `entityTableId` field. */ @@ -5871,8 +6419,8 @@ export interface GraphModuleFilter { createdAt?: DatetimeFilter; /** Filter by the object’s `databaseId` field. */ databaseId?: UUIDFilter; - /** Filter by the object’s `defaultPermissions` field. */ - defaultPermissions?: StringListFilter; + /** Filter by the object’s `defaultCapabilities` field. */ + defaultCapabilities?: StringListFilter; /** Filter by the object’s `entityField` field. */ entityField?: StringFilter; /** Filter by the object’s `entityTableId` field. */ @@ -5927,8 +6475,8 @@ export interface HierarchyModuleFilter { createdAt?: DatetimeFilter; /** Filter by the object’s `databaseId` field. */ databaseId?: UUIDFilter; - /** Filter by the object’s `defaultPermissions` field. */ - defaultPermissions?: StringListFilter; + /** Filter by the object’s `defaultCapabilities` field. */ + defaultCapabilities?: StringListFilter; /** Filter by the object’s `entityField` field. */ entityField?: StringFilter; /** Filter by the object’s `entityTableId` field. */ @@ -5973,8 +6521,8 @@ export interface HttpRouteModuleFilter { apiName?: StringFilter; /** Filter by the object’s `databaseId` field. */ databaseId?: UUIDFilter; - /** Filter by the object’s `defaultPermissions` field. */ - defaultPermissions?: StringListFilter; + /** Filter by the object’s `defaultCapabilities` field. */ + defaultCapabilities?: StringListFilter; /** Filter by the object’s `entityField` field. */ entityField?: StringFilter; /** Filter by the object’s `entityTableId` field. */ @@ -6387,6 +6935,8 @@ export interface LimitsModuleFilter { limitDecrementFunction?: StringFilter; /** Filter by the object’s `limitDecrementTrigger` field. */ limitDecrementTrigger?: StringFilter; + /** Filter by the object’s `limitDefaults` field. */ + limitDefaults?: JSONFilter; /** Filter by the object’s `limitIncrementFunction` field. */ limitIncrementFunction?: StringFilter; /** Filter by the object’s `limitIncrementTrigger` field. */ @@ -6455,12 +7005,18 @@ export interface MembershipsModuleFilter { and?: MembershipsModuleFilter[]; /** Filter by the object’s `apiName` field. */ apiName?: StringFilter; + /** Filter by the object’s `capabilitiesTableId` field. */ + capabilitiesTableId?: UUIDFilter; + /** Filter by the object’s `capabilityDefaultCapabilitiesTableId` field. */ + capabilityDefaultCapabilitiesTableId?: UUIDFilter; + /** Filter by the object’s `capabilityDefaultGrantsTableId` field. */ + capabilityDefaultGrantsTableId?: UUIDFilter; /** Filter by the object’s `databaseId` field. */ databaseId?: UUIDFilter; + /** Filter by the object’s `defaultCapabilitiesTableId` field. */ + defaultCapabilitiesTableId?: UUIDFilter; /** Filter by the object’s `defaultLimitsTableId` field. */ defaultLimitsTableId?: UUIDFilter; - /** Filter by the object’s `defaultPermissionsTableId` field. */ - defaultPermissionsTableId?: UUIDFilter; /** Filter by the object’s `entityField` field. */ entityField?: StringFilter; /** Filter by the object’s `entityIdsByMask` field. */ @@ -6509,12 +7065,6 @@ export interface MembershipsModuleFilter { ownerGrantsTableId?: UUIDFilter; /** Filter by the object’s `ownerGrantsTableName` field. */ ownerGrantsTableName?: StringFilter; - /** Filter by the object’s `permissionDefaultGrantsTableId` field. */ - permissionDefaultGrantsTableId?: UUIDFilter; - /** Filter by the object’s `permissionDefaultPermissionsTableId` field. */ - permissionDefaultPermissionsTableId?: UUIDFilter; - /** Filter by the object’s `permissionsTableId` field. */ - permissionsTableId?: UUIDFilter; /** Filter by the object’s `prefix` field. */ prefix?: StringFilter; /** Filter by the object’s `privateApiName` field. */ @@ -6537,8 +7087,14 @@ export interface MerkleStoreModuleFilter { and?: MerkleStoreModuleFilter[]; /** Filter by the object’s `apiName` field. */ apiName?: StringFilter; + /** Filter by the object’s `capabilityKey` field. */ + capabilityKey?: StringFilter; /** Filter by the object’s `commitTableId` field. */ commitTableId?: UUIDFilter; + /** Filter by the object’s `contentPresetModules` relation. */ + contentPresetModules?: MerkleStoreModuleToManyContentPresetModuleFilter; + /** `contentPresetModules` exist. */ + contentPresetModulesExist?: boolean; /** Filter by the object’s `createdAt` field. */ createdAt?: DatetimeFilter; /** Filter by the object’s `databaseId` field. */ @@ -6567,8 +7123,6 @@ export interface MerkleStoreModuleFilter { pagesModules?: MerkleStoreModuleToManyPagesModuleFilter; /** `pagesModules` exist. */ pagesModulesExist?: boolean; - /** Filter by the object’s `permissionKey` field. */ - permissionKey?: StringFilter; /** Filter by the object’s `prefix` field. */ prefix?: StringFilter; /** Filter by the object’s `privateApiName` field. */ @@ -6599,8 +7153,8 @@ export interface NamespaceModuleFilter { apiName?: StringFilter; /** Filter by the object’s `databaseId` field. */ databaseId?: UUIDFilter; - /** Filter by the object’s `defaultPermissions` field. */ - defaultPermissions?: StringListFilter; + /** Filter by the object’s `defaultCapabilities` field. */ + defaultCapabilities?: StringListFilter; /** Filter by the object’s `entityField` field. */ entityField?: StringFilter; /** Filter by the object’s `entityTableId` field. */ @@ -6659,8 +7213,8 @@ export interface NotificationsModuleFilter { channelsTableId?: UUIDFilter; /** Filter by the object’s `databaseId` field. */ databaseId?: UUIDFilter; - /** Filter by the object’s `defaultPermissions` field. */ - defaultPermissions?: StringListFilter; + /** Filter by the object’s `defaultCapabilities` field. */ + defaultCapabilities?: StringListFilter; /** Filter by the object’s `deliveryLogTableId` field. */ deliveryLogTableId?: UUIDFilter; /** Filter by the object’s `entityField` field. */ @@ -6706,6 +7260,38 @@ export interface NotificationsModuleFilter { /** Filter by the object’s `userSettingsTableId` field. */ userSettingsTableId?: UUIDFilter; } +export interface OauthRequestsModuleFilter { + /** Checks for all expressions in this list. */ + and?: OauthRequestsModuleFilter[]; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `entityField` field. */ + entityField?: StringFilter; + /** Filter by the object’s `entityTableId` field. */ + entityTableId?: UUIDFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Negates the expression. */ + not?: OauthRequestsModuleFilter; + /** Filter by the object’s `oauthAuthorizationRequestsTableId` field. */ + oauthAuthorizationRequestsTableId?: UUIDFilter; + /** Filter by the object’s `oauthAuthorizationRequestsTableName` field. */ + oauthAuthorizationRequestsTableName?: StringFilter; + /** Checks for any expressions in this list. */ + or?: OauthRequestsModuleFilter[]; + /** Filter by the object’s `pendingIdentityLinksTableId` field. */ + pendingIdentityLinksTableId?: UUIDFilter; + /** Filter by the object’s `pendingIdentityLinksTableName` field. */ + pendingIdentityLinksTableName?: StringFilter; + /** Filter by the object’s `prefix` field. */ + prefix?: StringFilter; + /** Filter by the object’s `privateSchemaId` field. */ + privateSchemaId?: UUIDFilter; + /** Filter by the object’s `privateSchemaName` field. */ + privateSchemaName?: StringFilter; + /** Filter by the object’s `scope` field. */ + scope?: StringFilter; +} export interface PagesModuleFilter { /** Checks for all expressions in this list. */ and?: PagesModuleFilter[]; @@ -6758,58 +7344,6 @@ export interface PagesModuleFilter { /** Filter by the object’s `storeNamePrefix` field. */ storeNamePrefix?: StringFilter; } -export interface PermissionsModuleFilter { - /** Filter by the object’s `actorTableId` field. */ - actorTableId?: UUIDFilter; - /** Checks for all expressions in this list. */ - and?: PermissionsModuleFilter[]; - /** Filter by the object’s `apiName` field. */ - apiName?: StringFilter; - /** Filter by the object’s `bitlen` field. */ - bitlen?: IntFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Filter by the object’s `defaultTableId` field. */ - defaultTableId?: UUIDFilter; - /** Filter by the object’s `defaultTableName` field. */ - defaultTableName?: StringFilter; - /** Filter by the object’s `entityField` field. */ - entityField?: StringFilter; - /** Filter by the object’s `entityTableId` field. */ - entityTableId?: UUIDFilter; - /** Filter by the object’s `getByMask` field. */ - getByMask?: StringFilter; - /** Filter by the object’s `getMask` field. */ - getMask?: StringFilter; - /** Filter by the object’s `getMaskByName` field. */ - getMaskByName?: StringFilter; - /** Filter by the object’s `getPaddedMask` field. */ - getPaddedMask?: StringFilter; - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Negates the expression. */ - not?: PermissionsModuleFilter; - /** Checks for any expressions in this list. */ - or?: PermissionsModuleFilter[]; - /** Filter by the object’s `prefix` field. */ - prefix?: StringFilter; - /** Filter by the object’s `privateApiName` field. */ - privateApiName?: StringFilter; - /** Filter by the object’s `privateSchemaId` field. */ - privateSchemaId?: UUIDFilter; - /** Filter by the object’s `privateSchemaName` field. */ - privateSchemaName?: StringFilter; - /** Filter by the object’s `publicSchemaName` field. */ - publicSchemaName?: StringFilter; - /** Filter by the object’s `schemaId` field. */ - schemaId?: UUIDFilter; - /** Filter by the object’s `scope` field. */ - scope?: StringFilter; - /** Filter by the object’s `tableId` field. */ - tableId?: UUIDFilter; - /** Filter by the object’s `tableName` field. */ - tableName?: StringFilter; -} export interface PhoneNumbersModuleFilter { /** Checks for all expressions in this list. */ and?: PhoneNumbersModuleFilter[]; @@ -6937,6 +7471,8 @@ export interface ProfilesModuleFilter { and?: ProfilesModuleFilter[]; /** Filter by the object’s `apiName` field. */ apiName?: StringFilter; + /** Filter by the object’s `capabilitiesTableId` field. */ + capabilitiesTableId?: UUIDFilter; /** Filter by the object’s `databaseId` field. */ databaseId?: UUIDFilter; /** Filter by the object’s `entityField` field. */ @@ -6945,14 +7481,16 @@ export interface ProfilesModuleFilter { entityTableId?: UUIDFilter; /** Filter by the object’s `id` field. */ id?: UUIDFilter; + /** Filter by the object’s `membershipProfilesTableId` field. */ + membershipProfilesTableId?: UUIDFilter; + /** Filter by the object’s `membershipProfilesTableName` field. */ + membershipProfilesTableName?: StringFilter; /** Filter by the object’s `membershipsTableId` field. */ membershipsTableId?: UUIDFilter; /** Negates the expression. */ not?: ProfilesModuleFilter; /** Checks for any expressions in this list. */ or?: ProfilesModuleFilter[]; - /** Filter by the object’s `permissionsTableId` field. */ - permissionsTableId?: UUIDFilter; /** Filter by the object’s `prefix` field. */ prefix?: StringFilter; /** Filter by the object’s `privateApiName` field. */ @@ -6961,6 +7499,10 @@ export interface ProfilesModuleFilter { privateSchemaId?: UUIDFilter; /** Filter by the object’s `privateSchemaName` field. */ privateSchemaName?: StringFilter; + /** Filter by the object’s `profileCapabilitiesTableId` field. */ + profileCapabilitiesTableId?: UUIDFilter; + /** Filter by the object’s `profileCapabilitiesTableName` field. */ + profileCapabilitiesTableName?: StringFilter; /** Filter by the object’s `profileDefinitionGrantsTableId` field. */ profileDefinitionGrantsTableId?: UUIDFilter; /** Filter by the object’s `profileDefinitionGrantsTableName` field. */ @@ -6969,10 +7511,6 @@ export interface ProfilesModuleFilter { profileGrantsTableId?: UUIDFilter; /** Filter by the object’s `profileGrantsTableName` field. */ profileGrantsTableName?: StringFilter; - /** Filter by the object’s `profilePermissionsTableId` field. */ - profilePermissionsTableId?: UUIDFilter; - /** Filter by the object’s `profilePermissionsTableName` field. */ - profilePermissionsTableName?: StringFilter; /** Filter by the object’s `profileTemplatesTableId` field. */ profileTemplatesTableId?: UUIDFilter; /** Filter by the object’s `profileTemplatesTableName` field. */ @@ -6997,8 +7535,8 @@ export interface RateLimitMetersModuleFilter { checkRateLimitFunction?: StringFilter; /** Filter by the object’s `databaseId` field. */ databaseId?: UUIDFilter; - /** Filter by the object’s `defaultPermissions` field. */ - defaultPermissions?: StringListFilter; + /** Filter by the object’s `defaultCapabilities` field. */ + defaultCapabilities?: StringListFilter; /** Filter by the object’s `id` field. */ id?: UUIDFilter; /** Negates the expression. */ @@ -7155,8 +7693,8 @@ export interface ResourceModuleFilter { apiName?: StringFilter; /** Filter by the object’s `databaseId` field. */ databaseId?: UUIDFilter; - /** Filter by the object’s `defaultPermissions` field. */ - defaultPermissions?: StringListFilter; + /** Filter by the object’s `defaultCapabilities` field. */ + defaultCapabilities?: StringListFilter; /** Filter by the object’s `entityField` field. */ entityField?: StringFilter; /** Filter by the object’s `entityTableId` field. */ @@ -7279,6 +7817,8 @@ export interface RouteModuleFilter { and?: RouteModuleFilter[]; /** Filter by the object’s `apiName` field. */ apiName?: StringFilter; + /** Filter by the object’s `appLinksFunctionName` field. */ + appLinksFunctionName?: StringFilter; /** Filter by the object’s `catalogModule` relation. */ catalogModule?: CatalogModuleFilter; /** A related `catalogModule` exists. */ @@ -7287,8 +7827,10 @@ export interface RouteModuleFilter { catalogModuleId?: UUIDFilter; /** Filter by the object’s `databaseId` field. */ databaseId?: UUIDFilter; - /** Filter by the object’s `defaultPermissions` field. */ - defaultPermissions?: StringListFilter; + /** Filter by the object’s `deepLinkFunctionName` field. */ + deepLinkFunctionName?: StringFilter; + /** Filter by the object’s `defaultCapabilities` field. */ + defaultCapabilities?: StringListFilter; /** Filter by the object’s `domainModule` relation. */ domainModule?: DomainModuleFilter; /** A related `domainModule` exists. */ @@ -7338,6 +7880,24 @@ export interface RouteModuleFilter { /** Filter by the object’s `scope` field. */ scope?: StringFilter; } +export interface ScopeTypesModuleFilter { + /** Checks for all expressions in this list. */ + and?: ScopeTypesModuleFilter[]; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Negates the expression. */ + not?: ScopeTypesModuleFilter; + /** Checks for any expressions in this list. */ + or?: ScopeTypesModuleFilter[]; + /** Filter by the object’s `privateSchemaName` field. */ + privateSchemaName?: StringFilter; + /** Filter by the object’s `schemaId` field. */ + schemaId?: UUIDFilter; + /** Filter by the object’s `scopeTypesTableId` field. */ + scopeTypesTableId?: UUIDFilter; +} export interface SecureTableProvisionFilter { /** Checks for all expressions in this list. */ and?: SecureTableProvisionFilter[]; @@ -7431,8 +7991,12 @@ export interface SiteSurfaceModuleFilter { catalogModuleId?: UUIDFilter; /** Filter by the object’s `databaseId` field. */ databaseId?: UUIDFilter; - /** Filter by the object’s `defaultPermissions` field. */ - defaultPermissions?: StringListFilter; + /** Filter by the object’s `defaultCapabilities` field. */ + defaultCapabilities?: StringListFilter; + /** Filter by the object’s `emailSenderModules` relation. */ + emailSenderModules?: SiteSurfaceModuleToManyEmailSenderModuleFilter; + /** `emailSenderModules` exist. */ + emailSenderModulesExist?: boolean; /** Filter by the object’s `entityField` field. */ entityField?: StringFilter; /** Filter by the object’s `entityTableId` field. */ @@ -7565,10 +8129,10 @@ export interface StorageModuleFilter { confirmUploadDelay?: IntervalFilter; /** Filter by the object’s `databaseId` field. */ databaseId?: UUIDFilter; + /** Filter by the object’s `defaultCapabilities` field. */ + defaultCapabilities?: StringListFilter; /** Filter by the object’s `defaultMaxFileSize` field. */ defaultMaxFileSize?: BigIntFilter; - /** Filter by the object’s `defaultPermissions` field. */ - defaultPermissions?: StringListFilter; /** Filter by the object’s `downloadUrlExpirySeconds` field. */ downloadUrlExpirySeconds?: IntFilter; /** Filter by the object’s `endpoint` field. */ @@ -7579,6 +8143,10 @@ export interface StorageModuleFilter { entityTableId?: UUIDFilter; /** Filter by the object’s `fileEventsTableId` field. */ fileEventsTableId?: UUIDFilter; + /** Filter by the object’s `fileRefFields` relation. */ + fileRefFields?: StorageModuleToManyFileRefFieldFilter; + /** `fileRefFields` exist. */ + fileRefFieldsExist?: boolean; /** Filter by the object’s `filesTableId` field. */ filesTableId?: UUIDFilter; /** Filter by the object’s `filesTableName` field. */ @@ -7796,6 +8364,28 @@ export interface UserSettingsModuleFilter { /** Filter by the object’s `tableName` field. */ tableName?: StringFilter; } +export interface UserSettingsSecurityModuleFilter { + /** Checks for all expressions in this list. */ + and?: UserSettingsSecurityModuleFilter[]; + /** Filter by the object’s `apiName` field. */ + apiName?: StringFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Negates the expression. */ + not?: UserSettingsSecurityModuleFilter; + /** Checks for any expressions in this list. */ + or?: UserSettingsSecurityModuleFilter[]; + /** Filter by the object’s `ownerTableId` field. */ + ownerTableId?: 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; +} export interface UserStateModuleFilter { /** Checks for all expressions in this list. */ and?: UserStateModuleFilter[]; @@ -7915,8 +8505,8 @@ export interface WebhookModuleFilter { apiName?: StringFilter; /** Filter by the object’s `databaseId` field. */ databaseId?: UUIDFilter; - /** Filter by the object’s `defaultPermissions` field. */ - defaultPermissions?: StringListFilter; + /** Filter by the object’s `defaultCapabilities` field. */ + defaultCapabilities?: StringListFilter; /** Filter by the object’s `entityField` field. */ entityField?: StringFilter; /** Filter by the object’s `entityTableId` field. */ @@ -7988,8 +8578,8 @@ export type AgentModuleOrderBy = | 'API_NAME_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' - | 'DEFAULT_PERMISSIONS_ASC' - | 'DEFAULT_PERMISSIONS_DESC' + | 'DEFAULT_CAPABILITIES_ASC' + | 'DEFAULT_CAPABILITIES_DESC' | 'ENTITY_FIELD_ASC' | 'ENTITY_FIELD_DESC' | 'ENTITY_TABLE_ID_ASC' @@ -8078,8 +8668,8 @@ export type ApiSurfaceModuleOrderBy = | 'CORS_SETTINGS_TABLE_NAME_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' - | 'DEFAULT_PERMISSIONS_ASC' - | 'DEFAULT_PERMISSIONS_DESC' + | 'DEFAULT_CAPABILITIES_ASC' + | 'DEFAULT_CAPABILITIES_DESC' | 'ENTITY_FIELD_ASC' | 'ENTITY_FIELD_DESC' | 'ENTITY_TABLE_ID_ASC' @@ -8118,8 +8708,8 @@ export type AppModuleOrderBy = | 'CATALOG_MODULE_ID_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' - | 'DEFAULT_PERMISSIONS_ASC' - | 'DEFAULT_PERMISSIONS_DESC' + | 'DEFAULT_CAPABILITIES_ASC' + | 'DEFAULT_CAPABILITIES_DESC' | 'ENTITY_FIELD_ASC' | 'ENTITY_FIELD_DESC' | 'ENTITY_TABLE_ID_ASC' @@ -8156,10 +8746,10 @@ export type BillingModuleOrderBy = | 'BALANCES_TABLE_NAME_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' + | 'DEFAULT_CAPABILITIES_ASC' + | 'DEFAULT_CAPABILITIES_DESC' | 'DEFAULT_METER_CATALOG_ASC' | 'DEFAULT_METER_CATALOG_DESC' - | 'DEFAULT_PERMISSIONS_ASC' - | 'DEFAULT_PERMISSIONS_DESC' | 'ID_ASC' | 'ID_DESC' | 'LEDGER_TABLE_ID_ASC' @@ -8214,6 +8804,10 @@ export type BillingProviderModuleOrderBy = | 'BILLING_CUSTOMERS_TABLE_ID_DESC' | 'BILLING_CUSTOMERS_TABLE_NAME_ASC' | 'BILLING_CUSTOMERS_TABLE_NAME_DESC' + | 'BILLING_INVOICES_TABLE_ID_ASC' + | 'BILLING_INVOICES_TABLE_ID_DESC' + | 'BILLING_INVOICES_TABLE_NAME_ASC' + | 'BILLING_INVOICES_TABLE_NAME_DESC' | 'BILLING_PRICES_TABLE_ID_ASC' | 'BILLING_PRICES_TABLE_ID_DESC' | 'BILLING_PRICES_TABLE_NAME_ASC' @@ -8222,6 +8816,10 @@ export type BillingProviderModuleOrderBy = | 'BILLING_PRODUCTS_TABLE_ID_DESC' | 'BILLING_PRODUCTS_TABLE_NAME_ASC' | 'BILLING_PRODUCTS_TABLE_NAME_DESC' + | 'BILLING_REFUNDS_TABLE_ID_ASC' + | 'BILLING_REFUNDS_TABLE_ID_DESC' + | 'BILLING_REFUNDS_TABLE_NAME_ASC' + | 'BILLING_REFUNDS_TABLE_NAME_DESC' | 'BILLING_SUBSCRIPTIONS_TABLE_ID_ASC' | 'BILLING_SUBSCRIPTIONS_TABLE_ID_DESC' | 'BILLING_SUBSCRIPTIONS_TABLE_NAME_ASC' @@ -8234,6 +8832,10 @@ export type BillingProviderModuleOrderBy = | 'DATABASE_ID_DESC' | 'ID_ASC' | 'ID_DESC' + | 'LIST_PENDING_USAGE_SYNC_FUNCTION_ASC' + | 'LIST_PENDING_USAGE_SYNC_FUNCTION_DESC' + | 'MARK_USAGE_SYNCED_FUNCTION_ASC' + | 'MARK_USAGE_SYNCED_FUNCTION_DESC' | 'NATURAL' | 'PREFIX_ASC' | 'PREFIX_DESC' @@ -8251,10 +8853,14 @@ export type BillingProviderModuleOrderBy = | 'PRODUCTS_TABLE_ID_DESC' | 'PROVIDER_ASC' | 'PROVIDER_DESC' + | 'RECORD_REFUND_FUNCTION_ASC' + | 'RECORD_REFUND_FUNCTION_DESC' | 'SCHEMA_ID_ASC' | 'SCHEMA_ID_DESC' | 'SUBSCRIPTIONS_TABLE_ID_ASC' - | 'SUBSCRIPTIONS_TABLE_ID_DESC'; + | 'SUBSCRIPTIONS_TABLE_ID_DESC' + | 'UPSERT_INVOICE_FUNCTION_ASC' + | 'UPSERT_INVOICE_FUNCTION_DESC'; export type BlueprintOrderBy = | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' @@ -8353,25 +8959,77 @@ export type BlueprintTemplateOrderBy = | 'VERSION_DESC' | 'VISIBILITY_ASC' | 'VISIBILITY_DESC'; -export type CatalogModuleOrderBy = - | 'APIS_TABLE_ID_ASC' - | 'APIS_TABLE_ID_DESC' - | 'APIS_TABLE_NAME_ASC' - | 'APIS_TABLE_NAME_DESC' - | 'API_NAME_ASC' +export type CapabilitiesModuleOrderBy = + | 'ACTOR_TABLE_ID_ASC' + | 'ACTOR_TABLE_ID_DESC' + | 'API_NAME_ASC' + | 'API_NAME_DESC' + | 'BITLEN_ASC' + | 'BITLEN_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'DEFAULT_TABLE_ID_ASC' + | 'DEFAULT_TABLE_ID_DESC' + | 'DEFAULT_TABLE_NAME_ASC' + | 'DEFAULT_TABLE_NAME_DESC' + | 'ENTITY_FIELD_ASC' + | 'ENTITY_FIELD_DESC' + | 'ENTITY_TABLE_ID_ASC' + | 'ENTITY_TABLE_ID_DESC' + | 'GET_BY_MASK_ASC' + | 'GET_BY_MASK_DESC' + | 'GET_MASK_ASC' + | 'GET_MASK_BY_NAME_ASC' + | 'GET_MASK_BY_NAME_DESC' + | 'GET_MASK_DESC' + | 'GET_PADDED_MASK_ASC' + | 'GET_PADDED_MASK_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'NATURAL' + | 'PREFIX_ASC' + | 'PREFIX_DESC' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'PRIVATE_API_NAME_ASC' + | 'PRIVATE_API_NAME_DESC' + | 'PRIVATE_SCHEMA_ID_ASC' + | 'PRIVATE_SCHEMA_ID_DESC' + | 'PRIVATE_SCHEMA_NAME_ASC' + | 'PRIVATE_SCHEMA_NAME_DESC' + | 'PUBLIC_SCHEMA_NAME_ASC' + | 'PUBLIC_SCHEMA_NAME_DESC' + | 'SCHEMA_ID_ASC' + | 'SCHEMA_ID_DESC' + | 'SCOPE_ASC' + | 'SCOPE_DESC' + | 'TABLE_ID_ASC' + | 'TABLE_ID_DESC' + | 'TABLE_NAME_ASC' + | 'TABLE_NAME_DESC'; +export type CatalogModuleOrderBy = + | 'APIS_TABLE_ID_ASC' + | 'APIS_TABLE_ID_DESC' + | 'APIS_TABLE_NAME_ASC' + | 'APIS_TABLE_NAME_DESC' + | 'API_NAME_ASC' | 'API_NAME_DESC' | 'APPS_TABLE_ID_ASC' | 'APPS_TABLE_ID_DESC' | 'APPS_TABLE_NAME_ASC' | 'APPS_TABLE_NAME_DESC' + | 'BINDINGS_TABLE_ID_ASC' + | 'BINDINGS_TABLE_ID_DESC' + | 'BINDINGS_TABLE_NAME_ASC' + | 'BINDINGS_TABLE_NAME_DESC' | 'BUCKETS_TABLE_ID_ASC' | 'BUCKETS_TABLE_ID_DESC' | 'BUCKETS_TABLE_NAME_ASC' | 'BUCKETS_TABLE_NAME_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' - | 'DEFAULT_PERMISSIONS_ASC' - | 'DEFAULT_PERMISSIONS_DESC' + | 'DEFAULT_CAPABILITIES_ASC' + | 'DEFAULT_CAPABILITIES_DESC' | 'DOMAINS_TABLE_ID_ASC' | 'DOMAINS_TABLE_ID_DESC' | 'DOMAINS_TABLE_NAME_ASC' @@ -8521,6 +9179,44 @@ export type ConnectedAccountsModuleOrderBy = | 'TABLE_ID_DESC' | 'TABLE_NAME_ASC' | 'TABLE_NAME_DESC'; +export type ContentPresetModuleOrderBy = + | 'API_NAME_ASC' + | 'API_NAME_DESC' + | 'CONTENT_PRESETS_TABLE_ID_ASC' + | 'CONTENT_PRESETS_TABLE_ID_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'ENTITY_TABLE_ID_ASC' + | 'ENTITY_TABLE_ID_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'MERKLE_STORE_MODULE_ID_ASC' + | 'MERKLE_STORE_MODULE_ID_DESC' + | 'NATURAL' + | 'POLICIES_ASC' + | 'POLICIES_DESC' + | 'PREFIX_ASC' + | 'PREFIX_DESC' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'PRIVATE_API_NAME_ASC' + | 'PRIVATE_API_NAME_DESC' + | 'PRIVATE_SCHEMA_ID_ASC' + | 'PRIVATE_SCHEMA_ID_DESC' + | 'PRIVATE_SCHEMA_NAME_ASC' + | 'PRIVATE_SCHEMA_NAME_DESC' + | 'PROVISIONS_ASC' + | 'PROVISIONS_DESC' + | 'PUBLIC_SCHEMA_ID_ASC' + | 'PUBLIC_SCHEMA_ID_DESC' + | 'PUBLIC_SCHEMA_NAME_ASC' + | 'PUBLIC_SCHEMA_NAME_DESC' + | 'SCOPE_ASC' + | 'SCOPE_DESC' + | 'STORE_NAME_ASC' + | 'STORE_NAME_DESC'; export type CryptoAddressesModuleOrderBy = | 'API_NAME_ASC' | 'API_NAME_DESC' @@ -8577,6 +9273,32 @@ export type CryptoAuthModuleOrderBy = | 'USERS_TABLE_ID_DESC' | 'USER_FIELD_ASC' | 'USER_FIELD_DESC'; +export type DataCapabilitiesFieldOrderBy = + | 'CAPABILITIES_MODULE_ID_ASC' + | 'CAPABILITIES_MODULE_ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'FIELD_ID_ASC' + | 'FIELD_ID_DESC' + | 'FROM_FIELD_ID_ASC' + | 'FROM_FIELD_ID_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'MAPPING_FIELD_ID_ASC' + | 'MAPPING_FIELD_ID_DESC' + | 'MAPPING_KEY_FIELD_ID_ASC' + | 'MAPPING_KEY_FIELD_ID_DESC' + | 'MAPPING_TABLE_ID_ASC' + | 'MAPPING_TABLE_ID_DESC' + | 'MODE_ASC' + | 'MODE_DESC' + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'SUBSET_GUARD_ASC' + | 'SUBSET_GUARD_DESC' + | 'TABLE_ID_ASC' + | 'TABLE_ID_DESC'; export type DatabaseProvisionModuleOrderBy = | 'ASYNC_ASC' | 'ASYNC_DESC' @@ -8628,8 +9350,8 @@ export type DatabaseSettingsModuleOrderBy = | 'DATABASE_SETTINGS_TABLE_ID_DESC' | 'DATABASE_SETTINGS_TABLE_NAME_ASC' | 'DATABASE_SETTINGS_TABLE_NAME_DESC' - | 'DEFAULT_PERMISSIONS_ASC' - | 'DEFAULT_PERMISSIONS_DESC' + | 'DEFAULT_CAPABILITIES_ASC' + | 'DEFAULT_CAPABILITIES_DESC' | 'ENTITY_FIELD_ASC' | 'ENTITY_FIELD_DESC' | 'ENTITY_TABLE_ID_ASC' @@ -8766,8 +9488,8 @@ export type DbUsageModuleOrderBy = | 'COLLECT_DB_TABLE_STATS_FUNCTION_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' - | 'DEFAULT_PERMISSIONS_ASC' - | 'DEFAULT_PERMISSIONS_DESC' + | 'DEFAULT_CAPABILITIES_ASC' + | 'DEFAULT_CAPABILITIES_DESC' | 'ENTITY_FIELD_ASC' | 'ENTITY_FIELD_DESC' | 'ID_ASC' @@ -8876,8 +9598,8 @@ export type DomainModuleOrderBy = | 'CATALOG_MODULE_ID_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' - | 'DEFAULT_PERMISSIONS_ASC' - | 'DEFAULT_PERMISSIONS_DESC' + | 'DEFAULT_CAPABILITIES_ASC' + | 'DEFAULT_CAPABILITIES_DESC' | 'DOMAINS_TABLE_ID_ASC' | 'DOMAINS_TABLE_ID_DESC' | 'DOMAINS_TABLE_NAME_ASC' @@ -8921,6 +9643,50 @@ export type DomainModuleOrderBy = | 'SCHEMA_ID_DESC' | 'SCOPE_ASC' | 'SCOPE_DESC'; +export type EmailSenderModuleOrderBy = + | 'API_NAME_ASC' + | 'API_NAME_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'DEFAULT_CAPABILITIES_ASC' + | 'DEFAULT_CAPABILITIES_DESC' + | 'EMAIL_IDENTITIES_TABLE_ID_ASC' + | 'EMAIL_IDENTITIES_TABLE_ID_DESC' + | 'EMAIL_IDENTITIES_TABLE_NAME_ASC' + | 'EMAIL_IDENTITIES_TABLE_NAME_DESC' + | 'EMAIL_PROVIDER_ACCOUNTS_TABLE_ID_ASC' + | 'EMAIL_PROVIDER_ACCOUNTS_TABLE_ID_DESC' + | 'EMAIL_PROVIDER_ACCOUNTS_TABLE_NAME_ASC' + | 'EMAIL_PROVIDER_ACCOUNTS_TABLE_NAME_DESC' + | 'EMAIL_SITE_IDENTITIES_TABLE_ID_ASC' + | 'EMAIL_SITE_IDENTITIES_TABLE_ID_DESC' + | 'EMAIL_SITE_IDENTITIES_TABLE_NAME_ASC' + | 'EMAIL_SITE_IDENTITIES_TABLE_NAME_DESC' + | 'ENTITY_FIELD_ASC' + | 'ENTITY_FIELD_DESC' + | 'ENTITY_TABLE_ID_ASC' + | 'ENTITY_TABLE_ID_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'NATURAL' + | 'POLICIES_ASC' + | 'POLICIES_DESC' + | 'PREFIX_ASC' + | 'PREFIX_DESC' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'PRIVATE_API_NAME_ASC' + | 'PRIVATE_API_NAME_DESC' + | 'PROVISIONS_ASC' + | 'PROVISIONS_DESC' + | 'PUBLIC_SCHEMA_NAME_ASC' + | 'PUBLIC_SCHEMA_NAME_DESC' + | 'SCHEMA_ID_ASC' + | 'SCHEMA_ID_DESC' + | 'SCOPE_ASC' + | 'SCOPE_DESC' + | 'SITE_SURFACE_MODULE_ID_ASC' + | 'SITE_SURFACE_MODULE_ID_DESC'; export type EmailsModuleOrderBy = | 'API_NAME_ASC' | 'API_NAME_DESC' @@ -9036,8 +9802,8 @@ export type EventsModuleOrderBy = | 'API_NAME_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' - | 'DEFAULT_PERMISSIONS_ASC' - | 'DEFAULT_PERMISSIONS_DESC' + | 'DEFAULT_CAPABILITIES_ASC' + | 'DEFAULT_CAPABILITIES_DESC' | 'ENTITY_FIELD_ASC' | 'ENTITY_FIELD_DESC' | 'ENTITY_TABLE_ID_ASC' @@ -9054,6 +9820,8 @@ export type EventsModuleOrderBy = | 'EVENT_TYPES_TABLE_ID_DESC' | 'EVENT_TYPES_TABLE_NAME_ASC' | 'EVENT_TYPES_TABLE_NAME_DESC' + | 'EXPIRE_GRANTS_ASC' + | 'EXPIRE_GRANTS_DESC' | 'GRANT_ACHIEVEMENT_ASC' | 'GRANT_ACHIEVEMENT_DESC' | 'ID_ASC' @@ -9089,12 +9857,16 @@ export type EventsModuleOrderBy = | 'PRIVATE_SCHEMA_NAME_DESC' | 'PUBLIC_SCHEMA_NAME_ASC' | 'PUBLIC_SCHEMA_NAME_DESC' + | 'RECOMPUTE_CAPABILITIES_ASC' + | 'RECOMPUTE_CAPABILITIES_DESC' | 'RECORD_EVENT_ASC' | 'RECORD_EVENT_DESC' | 'REMOVE_EVENT_ASC' | 'REMOVE_EVENT_DESC' | 'RETENTION_ASC' | 'RETENTION_DESC' + | 'REVOKE_ACHIEVEMENT_ASC' + | 'REVOKE_ACHIEVEMENT_DESC' | 'SCHEMA_ID_ASC' | 'SCHEMA_ID_DESC' | 'SCOPE_ASC' @@ -9113,17 +9885,43 @@ export type EventsModuleOrderBy = | 'TG_EVENT_TOGGLE_BOOL_ASC' | 'TG_EVENT_TOGGLE_BOOL_DESC' | 'TG_EVENT_TOGGLE_DESC' + | 'TG_LEVEL_GRANT_SYNC_ASC' + | 'TG_LEVEL_GRANT_SYNC_DESC' | 'TG_UPDATE_AGGREGATES_ASC' | 'TG_UPDATE_AGGREGATES_DESC' + | 'TRUST_LADDER_ASC' + | 'TRUST_LADDER_DESC' | 'UPSERT_AGGREGATE_ASC' | 'UPSERT_AGGREGATE_DESC'; +export type FileRefFieldOrderBy = + | 'BUCKET_KEY_ASC' + | 'BUCKET_KEY_DESC' + | 'BUCKET_TAGS_ASC' + | 'BUCKET_TAGS_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'ENFORCE_FK_ASC' + | 'ENFORCE_FK_DESC' + | 'FIELD_ID_ASC' + | 'FIELD_ID_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'IS_PUBLIC_ASC' + | 'IS_PUBLIC_DESC' + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'STORAGE_MODULE_ID_ASC' + | 'STORAGE_MODULE_ID_DESC' + | 'TABLE_ID_ASC' + | 'TABLE_ID_DESC'; export type FunctionDeploymentModuleOrderBy = | 'API_NAME_ASC' | 'API_NAME_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' - | 'DEFAULT_PERMISSIONS_ASC' - | 'DEFAULT_PERMISSIONS_DESC' + | 'DEFAULT_CAPABILITIES_ASC' + | 'DEFAULT_CAPABILITIES_DESC' | 'DEPLOYMENTS_TABLE_ID_ASC' | 'DEPLOYMENTS_TABLE_ID_DESC' | 'DEPLOYMENTS_TABLE_NAME_ASC' @@ -9172,8 +9970,8 @@ export type FunctionInvocationModuleOrderBy = | 'ATTEMPTS_TABLE_NAME_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' - | 'DEFAULT_PERMISSIONS_ASC' - | 'DEFAULT_PERMISSIONS_DESC' + | 'DEFAULT_CAPABILITIES_ASC' + | 'DEFAULT_CAPABILITIES_DESC' | 'ENTITY_FIELD_ASC' | 'ENTITY_FIELD_DESC' | 'ENTITY_TABLE_ID_ASC' @@ -9220,8 +10018,8 @@ export type FunctionModuleOrderBy = | 'CAPABILITY_BINDINGS_TABLE_ID_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' - | 'DEFAULT_PERMISSIONS_ASC' - | 'DEFAULT_PERMISSIONS_DESC' + | 'DEFAULT_CAPABILITIES_ASC' + | 'DEFAULT_CAPABILITIES_DESC' | 'DEFINITIONS_TABLE_ID_ASC' | 'DEFINITIONS_TABLE_ID_DESC' | 'DEFINITIONS_TABLE_NAME_ASC' @@ -9264,8 +10062,8 @@ export type GraphExecutionModuleOrderBy = | 'CREATED_AT_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' - | 'DEFAULT_PERMISSIONS_ASC' - | 'DEFAULT_PERMISSIONS_DESC' + | 'DEFAULT_CAPABILITIES_ASC' + | 'DEFAULT_CAPABILITIES_DESC' | 'ENTITY_FIELD_ASC' | 'ENTITY_FIELD_DESC' | 'ENTITY_TABLE_ID_ASC' @@ -9314,8 +10112,8 @@ export type GraphModuleOrderBy = | 'CREATED_AT_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' - | 'DEFAULT_PERMISSIONS_ASC' - | 'DEFAULT_PERMISSIONS_DESC' + | 'DEFAULT_CAPABILITIES_ASC' + | 'DEFAULT_CAPABILITIES_DESC' | 'ENTITY_FIELD_ASC' | 'ENTITY_FIELD_DESC' | 'ENTITY_TABLE_ID_ASC' @@ -9360,8 +10158,8 @@ export type HierarchyModuleOrderBy = | 'CREATED_AT_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' - | 'DEFAULT_PERMISSIONS_ASC' - | 'DEFAULT_PERMISSIONS_DESC' + | 'DEFAULT_CAPABILITIES_ASC' + | 'DEFAULT_CAPABILITIES_DESC' | 'ENTITY_FIELD_ASC' | 'ENTITY_FIELD_DESC' | 'ENTITY_TABLE_ID_ASC' @@ -9402,8 +10200,8 @@ export type HttpRouteModuleOrderBy = | 'API_NAME_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' - | 'DEFAULT_PERMISSIONS_ASC' - | 'DEFAULT_PERMISSIONS_DESC' + | 'DEFAULT_CAPABILITIES_ASC' + | 'DEFAULT_CAPABILITIES_DESC' | 'ENTITY_FIELD_ASC' | 'ENTITY_FIELD_DESC' | 'ENTITY_TABLE_ID_ASC' @@ -9764,6 +10562,8 @@ export type LimitsModuleOrderBy = | 'LIMIT_DECREMENT_FUNCTION_DESC' | 'LIMIT_DECREMENT_TRIGGER_ASC' | 'LIMIT_DECREMENT_TRIGGER_DESC' + | 'LIMIT_DEFAULTS_ASC' + | 'LIMIT_DEFAULTS_DESC' | 'LIMIT_INCREMENT_FUNCTION_ASC' | 'LIMIT_INCREMENT_FUNCTION_DESC' | 'LIMIT_INCREMENT_TRIGGER_ASC' @@ -9824,12 +10624,18 @@ export type MembershipsModuleOrderBy = | 'ADMIN_GRANTS_TABLE_NAME_DESC' | 'API_NAME_ASC' | 'API_NAME_DESC' + | 'CAPABILITIES_TABLE_ID_ASC' + | 'CAPABILITIES_TABLE_ID_DESC' + | 'CAPABILITY_DEFAULT_CAPABILITIES_TABLE_ID_ASC' + | 'CAPABILITY_DEFAULT_CAPABILITIES_TABLE_ID_DESC' + | 'CAPABILITY_DEFAULT_GRANTS_TABLE_ID_ASC' + | 'CAPABILITY_DEFAULT_GRANTS_TABLE_ID_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' + | 'DEFAULT_CAPABILITIES_TABLE_ID_ASC' + | 'DEFAULT_CAPABILITIES_TABLE_ID_DESC' | 'DEFAULT_LIMITS_TABLE_ID_ASC' | 'DEFAULT_LIMITS_TABLE_ID_DESC' - | 'DEFAULT_PERMISSIONS_TABLE_ID_ASC' - | 'DEFAULT_PERMISSIONS_TABLE_ID_DESC' | 'ENTITY_FIELD_ASC' | 'ENTITY_FIELD_DESC' | 'ENTITY_IDS_BY_MASK_ASC' @@ -9875,12 +10681,6 @@ export type MembershipsModuleOrderBy = | 'OWNER_GRANTS_TABLE_ID_DESC' | 'OWNER_GRANTS_TABLE_NAME_ASC' | 'OWNER_GRANTS_TABLE_NAME_DESC' - | 'PERMISSIONS_TABLE_ID_ASC' - | 'PERMISSIONS_TABLE_ID_DESC' - | 'PERMISSION_DEFAULT_GRANTS_TABLE_ID_ASC' - | 'PERMISSION_DEFAULT_GRANTS_TABLE_ID_DESC' - | 'PERMISSION_DEFAULT_PERMISSIONS_TABLE_ID_ASC' - | 'PERMISSION_DEFAULT_PERMISSIONS_TABLE_ID_DESC' | 'PREFIX_ASC' | 'PREFIX_DESC' | 'PRIMARY_KEY_ASC' @@ -9902,6 +10702,8 @@ export type MembershipsModuleOrderBy = export type MerkleStoreModuleOrderBy = | 'API_NAME_ASC' | 'API_NAME_DESC' + | 'CAPABILITY_KEY_ASC' + | 'CAPABILITY_KEY_DESC' | 'COMMIT_TABLE_ID_ASC' | 'COMMIT_TABLE_ID_DESC' | 'CREATED_AT_ASC' @@ -9917,8 +10719,6 @@ export type MerkleStoreModuleOrderBy = | 'NATURAL' | 'OBJECT_TABLE_ID_ASC' | 'OBJECT_TABLE_ID_DESC' - | 'PERMISSION_KEY_ASC' - | 'PERMISSION_KEY_DESC' | 'PREFIX_ASC' | 'PREFIX_DESC' | 'PRIMARY_KEY_ASC' @@ -9944,8 +10744,8 @@ export type NamespaceModuleOrderBy = | 'API_NAME_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' - | 'DEFAULT_PERMISSIONS_ASC' - | 'DEFAULT_PERMISSIONS_DESC' + | 'DEFAULT_CAPABILITIES_ASC' + | 'DEFAULT_CAPABILITIES_DESC' | 'ENTITY_FIELD_ASC' | 'ENTITY_FIELD_DESC' | 'ENTITY_TABLE_ID_ASC' @@ -9988,8 +10788,8 @@ export type NotificationsModuleOrderBy = | 'CHANNELS_TABLE_ID_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' - | 'DEFAULT_PERMISSIONS_ASC' - | 'DEFAULT_PERMISSIONS_DESC' + | 'DEFAULT_CAPABILITIES_ASC' + | 'DEFAULT_CAPABILITIES_DESC' | 'DELIVERY_LOG_TABLE_ID_ASC' | 'DELIVERY_LOG_TABLE_ID_DESC' | 'ENTITY_FIELD_ASC' @@ -10033,6 +10833,34 @@ export type NotificationsModuleOrderBy = | 'SUPPRESSIONS_TABLE_ID_DESC' | 'USER_SETTINGS_TABLE_ID_ASC' | 'USER_SETTINGS_TABLE_ID_DESC'; +export type OauthRequestsModuleOrderBy = + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'ENTITY_FIELD_ASC' + | 'ENTITY_FIELD_DESC' + | 'ENTITY_TABLE_ID_ASC' + | 'ENTITY_TABLE_ID_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'NATURAL' + | 'OAUTH_AUTHORIZATION_REQUESTS_TABLE_ID_ASC' + | 'OAUTH_AUTHORIZATION_REQUESTS_TABLE_ID_DESC' + | 'OAUTH_AUTHORIZATION_REQUESTS_TABLE_NAME_ASC' + | 'OAUTH_AUTHORIZATION_REQUESTS_TABLE_NAME_DESC' + | 'PENDING_IDENTITY_LINKS_TABLE_ID_ASC' + | 'PENDING_IDENTITY_LINKS_TABLE_ID_DESC' + | 'PENDING_IDENTITY_LINKS_TABLE_NAME_ASC' + | 'PENDING_IDENTITY_LINKS_TABLE_NAME_DESC' + | 'PREFIX_ASC' + | 'PREFIX_DESC' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'PRIVATE_SCHEMA_ID_ASC' + | 'PRIVATE_SCHEMA_ID_DESC' + | 'PRIVATE_SCHEMA_NAME_ASC' + | 'PRIVATE_SCHEMA_NAME_DESC' + | 'SCOPE_ASC' + | 'SCOPE_DESC'; export type PagesModuleOrderBy = | 'API_NAME_ASC' | 'API_NAME_DESC' @@ -10075,54 +10903,6 @@ export type PagesModuleOrderBy = | 'SITE_SURFACE_MODULE_ID_DESC' | 'STORE_NAME_PREFIX_ASC' | 'STORE_NAME_PREFIX_DESC'; -export type PermissionsModuleOrderBy = - | 'ACTOR_TABLE_ID_ASC' - | 'ACTOR_TABLE_ID_DESC' - | 'API_NAME_ASC' - | 'API_NAME_DESC' - | 'BITLEN_ASC' - | 'BITLEN_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' - | 'DEFAULT_TABLE_ID_ASC' - | 'DEFAULT_TABLE_ID_DESC' - | 'DEFAULT_TABLE_NAME_ASC' - | 'DEFAULT_TABLE_NAME_DESC' - | 'ENTITY_FIELD_ASC' - | 'ENTITY_FIELD_DESC' - | 'ENTITY_TABLE_ID_ASC' - | 'ENTITY_TABLE_ID_DESC' - | 'GET_BY_MASK_ASC' - | 'GET_BY_MASK_DESC' - | 'GET_MASK_ASC' - | 'GET_MASK_BY_NAME_ASC' - | 'GET_MASK_BY_NAME_DESC' - | 'GET_MASK_DESC' - | 'GET_PADDED_MASK_ASC' - | 'GET_PADDED_MASK_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'NATURAL' - | 'PREFIX_ASC' - | 'PREFIX_DESC' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'PRIVATE_API_NAME_ASC' - | 'PRIVATE_API_NAME_DESC' - | 'PRIVATE_SCHEMA_ID_ASC' - | 'PRIVATE_SCHEMA_ID_DESC' - | 'PRIVATE_SCHEMA_NAME_ASC' - | 'PRIVATE_SCHEMA_NAME_DESC' - | 'PUBLIC_SCHEMA_NAME_ASC' - | 'PUBLIC_SCHEMA_NAME_DESC' - | 'SCHEMA_ID_ASC' - | 'SCHEMA_ID_DESC' - | 'SCOPE_ASC' - | 'SCOPE_DESC' - | 'TABLE_ID_ASC' - | 'TABLE_ID_DESC' - | 'TABLE_NAME_ASC' - | 'TABLE_NAME_DESC'; export type PhoneNumbersModuleOrderBy = | 'API_NAME_ASC' | 'API_NAME_DESC' @@ -10236,6 +11016,8 @@ export type ProfilesModuleOrderBy = | 'ACTOR_TABLE_ID_DESC' | 'API_NAME_ASC' | 'API_NAME_DESC' + | 'CAPABILITIES_TABLE_ID_ASC' + | 'CAPABILITIES_TABLE_ID_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' | 'ENTITY_FIELD_ASC' @@ -10246,9 +11028,11 @@ export type ProfilesModuleOrderBy = | 'ID_DESC' | 'MEMBERSHIPS_TABLE_ID_ASC' | 'MEMBERSHIPS_TABLE_ID_DESC' + | 'MEMBERSHIP_PROFILES_TABLE_ID_ASC' + | 'MEMBERSHIP_PROFILES_TABLE_ID_DESC' + | 'MEMBERSHIP_PROFILES_TABLE_NAME_ASC' + | 'MEMBERSHIP_PROFILES_TABLE_NAME_DESC' | 'NATURAL' - | 'PERMISSIONS_TABLE_ID_ASC' - | 'PERMISSIONS_TABLE_ID_DESC' | 'PREFIX_ASC' | 'PREFIX_DESC' | 'PRIMARY_KEY_ASC' @@ -10259,6 +11043,10 @@ export type ProfilesModuleOrderBy = | 'PRIVATE_SCHEMA_ID_DESC' | 'PRIVATE_SCHEMA_NAME_ASC' | 'PRIVATE_SCHEMA_NAME_DESC' + | 'PROFILE_CAPABILITIES_TABLE_ID_ASC' + | 'PROFILE_CAPABILITIES_TABLE_ID_DESC' + | 'PROFILE_CAPABILITIES_TABLE_NAME_ASC' + | 'PROFILE_CAPABILITIES_TABLE_NAME_DESC' | 'PROFILE_DEFINITION_GRANTS_TABLE_ID_ASC' | 'PROFILE_DEFINITION_GRANTS_TABLE_ID_DESC' | 'PROFILE_DEFINITION_GRANTS_TABLE_NAME_ASC' @@ -10267,10 +11055,6 @@ export type ProfilesModuleOrderBy = | 'PROFILE_GRANTS_TABLE_ID_DESC' | 'PROFILE_GRANTS_TABLE_NAME_ASC' | 'PROFILE_GRANTS_TABLE_NAME_DESC' - | 'PROFILE_PERMISSIONS_TABLE_ID_ASC' - | 'PROFILE_PERMISSIONS_TABLE_ID_DESC' - | 'PROFILE_PERMISSIONS_TABLE_NAME_ASC' - | 'PROFILE_PERMISSIONS_TABLE_NAME_DESC' | 'PROFILE_TEMPLATES_TABLE_ID_ASC' | 'PROFILE_TEMPLATES_TABLE_ID_DESC' | 'PROFILE_TEMPLATES_TABLE_NAME_ASC' @@ -10292,8 +11076,8 @@ export type RateLimitMetersModuleOrderBy = | 'CHECK_RATE_LIMIT_FUNCTION_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' - | 'DEFAULT_PERMISSIONS_ASC' - | 'DEFAULT_PERMISSIONS_DESC' + | 'DEFAULT_CAPABILITIES_ASC' + | 'DEFAULT_CAPABILITIES_DESC' | 'ID_ASC' | 'ID_DESC' | 'NATURAL' @@ -10434,8 +11218,8 @@ export type ResourceModuleOrderBy = | 'API_NAME_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' - | 'DEFAULT_PERMISSIONS_ASC' - | 'DEFAULT_PERMISSIONS_DESC' + | 'DEFAULT_CAPABILITIES_ASC' + | 'DEFAULT_CAPABILITIES_DESC' | 'ENTITY_FIELD_ASC' | 'ENTITY_FIELD_DESC' | 'ENTITY_TABLE_ID_ASC' @@ -10538,12 +11322,16 @@ export type RlsModuleOrderBy = export type RouteModuleOrderBy = | 'API_NAME_ASC' | 'API_NAME_DESC' + | 'APP_LINKS_FUNCTION_NAME_ASC' + | 'APP_LINKS_FUNCTION_NAME_DESC' | 'CATALOG_MODULE_ID_ASC' | 'CATALOG_MODULE_ID_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' - | 'DEFAULT_PERMISSIONS_ASC' - | 'DEFAULT_PERMISSIONS_DESC' + | 'DEEP_LINK_FUNCTION_NAME_ASC' + | 'DEEP_LINK_FUNCTION_NAME_DESC' + | 'DEFAULT_CAPABILITIES_ASC' + | 'DEFAULT_CAPABILITIES_DESC' | 'DOMAIN_MODULE_ID_ASC' | 'DOMAIN_MODULE_ID_DESC' | 'ENTITY_FIELD_ASC' @@ -10587,6 +11375,20 @@ export type RouteModuleOrderBy = | 'SCHEMA_ID_DESC' | 'SCOPE_ASC' | 'SCOPE_DESC'; +export type ScopeTypesModuleOrderBy = + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'PRIVATE_SCHEMA_NAME_ASC' + | 'PRIVATE_SCHEMA_NAME_DESC' + | 'SCHEMA_ID_ASC' + | 'SCHEMA_ID_DESC' + | 'SCOPE_TYPES_TABLE_ID_ASC' + | 'SCOPE_TYPES_TABLE_ID_DESC'; export type SecureTableProvisionOrderBy = | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' @@ -10662,8 +11464,8 @@ export type SiteSurfaceModuleOrderBy = | 'CATALOG_MODULE_ID_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' - | 'DEFAULT_PERMISSIONS_ASC' - | 'DEFAULT_PERMISSIONS_DESC' + | 'DEFAULT_CAPABILITIES_ASC' + | 'DEFAULT_CAPABILITIES_DESC' | 'ENTITY_FIELD_ASC' | 'ENTITY_FIELD_DESC' | 'ENTITY_TABLE_ID_ASC' @@ -10784,10 +11586,10 @@ export type StorageModuleOrderBy = | 'CONFIRM_UPLOAD_DELAY_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' + | 'DEFAULT_CAPABILITIES_ASC' + | 'DEFAULT_CAPABILITIES_DESC' | 'DEFAULT_MAX_FILE_SIZE_ASC' | 'DEFAULT_MAX_FILE_SIZE_DESC' - | 'DEFAULT_PERMISSIONS_ASC' - | 'DEFAULT_PERMISSIONS_DESC' | 'DOWNLOAD_URL_EXPIRY_SECONDS_ASC' | 'DOWNLOAD_URL_EXPIRY_SECONDS_DESC' | 'ENDPOINT_ASC' @@ -10993,6 +11795,24 @@ export type UserSettingsModuleOrderBy = | 'TABLE_ID_DESC' | 'TABLE_NAME_ASC' | 'TABLE_NAME_DESC'; +export type UserSettingsSecurityModuleOrderBy = + | 'API_NAME_ASC' + | 'API_NAME_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'NATURAL' + | 'OWNER_TABLE_ID_ASC' + | 'OWNER_TABLE_ID_DESC' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'SCHEMA_ID_ASC' + | 'SCHEMA_ID_DESC' + | 'TABLE_ID_ASC' + | 'TABLE_ID_DESC' + | 'TABLE_NAME_ASC' + | 'TABLE_NAME_DESC'; export type UserStateModuleOrderBy = | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' @@ -11094,8 +11914,8 @@ export type WebhookModuleOrderBy = | 'API_NAME_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' - | 'DEFAULT_PERMISSIONS_ASC' - | 'DEFAULT_PERMISSIONS_DESC' + | 'DEFAULT_CAPABILITIES_ASC' + | 'DEFAULT_CAPABILITIES_DESC' | 'ENTITY_FIELD_ASC' | 'ENTITY_FIELD_DESC' | 'ENTITY_TABLE_ID_ASC' @@ -11147,7 +11967,7 @@ export interface CreateAgentModuleInput { agentTableName?: string; apiName?: string; databaseId: string; - defaultPermissions?: string[]; + defaultCapabilities?: string[]; entityField?: string; entityTableId?: string; hasAgents?: boolean; @@ -11185,7 +12005,7 @@ export interface AgentModulePatch { agentTableName?: string | null; apiName?: string | null; databaseId?: string | null; - defaultPermissions?: string[] | null; + defaultCapabilities?: string[] | null; entityField?: string | null; entityTableId?: string | null; hasAgents?: boolean | null; @@ -11240,7 +12060,7 @@ export interface CreateApiSurfaceModuleInput { corsSettingsTableId?: string; corsSettingsTableName?: string; databaseId: string; - defaultPermissions?: string[]; + defaultCapabilities?: string[]; entityField?: string; entityTableId?: string; policies?: Record; @@ -11264,7 +12084,7 @@ export interface ApiSurfaceModulePatch { corsSettingsTableId?: string | null; corsSettingsTableName?: string | null; databaseId?: string | null; - defaultPermissions?: string[] | null; + defaultCapabilities?: string[] | null; entityField?: string | null; entityTableId?: string | null; policies?: Record | null; @@ -11294,7 +12114,7 @@ export interface CreateAppModuleInput { appsTableName?: string; catalogModuleId?: string; databaseId: string; - defaultPermissions?: string[]; + defaultCapabilities?: string[]; entityField?: string; entityTableId?: string; policies?: Record; @@ -11316,7 +12136,7 @@ export interface AppModulePatch { appsTableName?: string | null; catalogModuleId?: string | null; databaseId?: string | null; - defaultPermissions?: string[] | null; + defaultCapabilities?: string[] | null; entityField?: string | null; entityTableId?: string | null; policies?: Record | null; @@ -11345,8 +12165,8 @@ export interface CreateBillingModuleInput { balancesTableId?: string; balancesTableName?: string; databaseId: string; + defaultCapabilities?: string[]; defaultMeterCatalog?: Record; - defaultPermissions?: string[]; ledgerTableId?: string; ledgerTableName?: string; meterCreditsTableId?: string; @@ -11375,8 +12195,8 @@ export interface BillingModulePatch { balancesTableId?: string | null; balancesTableName?: string | null; databaseId?: string | null; + defaultCapabilities?: string[] | null; defaultMeterCatalog?: Record | null; - defaultPermissions?: string[] | null; ledgerTableId?: string | null; ledgerTableName?: string | null; meterCreditsTableId?: string | null; @@ -11414,15 +12234,21 @@ export interface CreateBillingProviderModuleInput { apiName?: string; billingCustomersTableId?: string; billingCustomersTableName?: string; + billingInvoicesTableId?: string; + billingInvoicesTableName?: string; billingPricesTableId?: string; billingPricesTableName?: string; billingProductsTableId?: string; billingProductsTableName?: string; + billingRefundsTableId?: string; + billingRefundsTableName?: string; billingSubscriptionsTableId?: string; billingSubscriptionsTableName?: string; billingWebhookEventsTableId?: string; billingWebhookEventsTableName?: string; databaseId: string; + listPendingUsageSyncFunction?: string; + markUsageSyncedFunction?: string; prefix?: string; pricesTableId?: string; privateApiName?: string; @@ -11430,23 +12256,31 @@ export interface CreateBillingProviderModuleInput { processBillingEventFunction?: string; productsTableId?: string; provider?: string; + recordRefundFunction?: string; schemaId?: string; subscriptionsTableId?: string; + upsertInvoiceFunction?: string; }; } export interface BillingProviderModulePatch { apiName?: string | null; billingCustomersTableId?: string | null; billingCustomersTableName?: string | null; + billingInvoicesTableId?: string | null; + billingInvoicesTableName?: string | null; billingPricesTableId?: string | null; billingPricesTableName?: string | null; billingProductsTableId?: string | null; billingProductsTableName?: string | null; + billingRefundsTableId?: string | null; + billingRefundsTableName?: string | null; billingSubscriptionsTableId?: string | null; billingSubscriptionsTableName?: string | null; billingWebhookEventsTableId?: string | null; billingWebhookEventsTableName?: string | null; databaseId?: string | null; + listPendingUsageSyncFunction?: string | null; + markUsageSyncedFunction?: string | null; prefix?: string | null; pricesTableId?: string | null; privateApiName?: string | null; @@ -11454,8 +12288,10 @@ export interface BillingProviderModulePatch { processBillingEventFunction?: string | null; productsTableId?: string | null; provider?: string | null; + recordRefundFunction?: string | null; schemaId?: string | null; subscriptionsTableId?: string | null; + upsertInvoiceFunction?: string | null; } export interface UpdateBillingProviderModuleInput { clientMutationId?: string; @@ -11582,27 +12418,87 @@ export interface DeleteBlueprintTemplateInput { clientMutationId?: string; id: string; } -export interface CreateCatalogModuleInput { +export interface CreateCapabilitiesModuleInput { clientMutationId?: string; - catalogModule: { + capabilitiesModule: { + actorTableId?: string; apiName?: string; - apisTableId?: string; - apisTableName?: string; - appsTableId?: string; - appsTableName?: string; - bucketsTableId?: string; - bucketsTableName?: string; + bitlen?: number; databaseId: string; - defaultPermissions?: string[]; - domainsTableId?: string; - domainsTableName?: string; + defaultTableId?: string; + defaultTableName?: string; + entityField?: string; entityTableId?: string; - functionsTableId?: string; - functionsTableName?: string; - namespacesTableId?: string; - namespacesTableName?: string; - policies?: Record; - privateApiName?: string; + getByMask?: string; + getMask?: string; + getMaskByName?: string; + getPaddedMask?: string; + prefix?: string; + privateApiName?: string; + privateSchemaId?: string; + privateSchemaName?: string; + publicSchemaName?: string; + schemaId?: string; + scope: string; + tableId?: string; + tableName?: string; + }; +} +export interface CapabilitiesModulePatch { + actorTableId?: string | null; + apiName?: string | null; + bitlen?: number | null; + databaseId?: string | null; + defaultTableId?: string | null; + defaultTableName?: string | null; + entityField?: string | null; + entityTableId?: string | null; + getByMask?: string | null; + getMask?: string | null; + getMaskByName?: string | null; + getPaddedMask?: string | null; + prefix?: string | null; + privateApiName?: string | null; + privateSchemaId?: string | null; + privateSchemaName?: string | null; + publicSchemaName?: string | null; + schemaId?: string | null; + scope?: string | null; + tableId?: string | null; + tableName?: string | null; +} +export interface UpdateCapabilitiesModuleInput { + clientMutationId?: string; + id: string; + capabilitiesModulePatch: CapabilitiesModulePatch; +} +export interface DeleteCapabilitiesModuleInput { + clientMutationId?: string; + id: string; +} +export interface CreateCatalogModuleInput { + clientMutationId?: string; + catalogModule: { + apiName?: string; + apisTableId?: string; + apisTableName?: string; + appsTableId?: string; + appsTableName?: string; + bindingsTableId?: string; + bindingsTableName?: string; + bucketsTableId?: string; + bucketsTableName?: string; + databaseId: string; + defaultCapabilities?: string[]; + domainsTableId?: string; + domainsTableName?: string; + entityTableId?: string; + functionsTableId?: string; + functionsTableName?: string; + namespacesTableId?: string; + namespacesTableName?: string; + policies?: Record; + privateApiName?: string; provisions?: Record; publicSchemaName?: string; resourceDefinitionsTableId?: string; @@ -11631,10 +12527,12 @@ export interface CatalogModulePatch { apisTableName?: string | null; appsTableId?: string | null; appsTableName?: string | null; + bindingsTableId?: string | null; + bindingsTableName?: string | null; bucketsTableId?: string | null; bucketsTableName?: string | null; databaseId?: string | null; - defaultPermissions?: string[] | null; + defaultCapabilities?: string[] | null; domainsTableId?: string | null; domainsTableName?: string | null; entityTableId?: string | null; @@ -11790,6 +12688,52 @@ export interface DeleteConnectedAccountsModuleInput { clientMutationId?: string; id: string; } +export interface CreateContentPresetModuleInput { + clientMutationId?: string; + contentPresetModule: { + apiName?: string; + contentPresetsTableId?: string; + databaseId: string; + entityTableId?: string; + merkleStoreModuleId: string; + policies?: Record; + prefix: string; + privateApiName?: string; + privateSchemaId?: string; + privateSchemaName?: string; + provisions?: Record; + publicSchemaId?: string; + publicSchemaName?: string; + scope: string; + storeName: string; + }; +} +export interface ContentPresetModulePatch { + apiName?: string | null; + contentPresetsTableId?: string | null; + databaseId?: string | null; + entityTableId?: string | null; + merkleStoreModuleId?: string | null; + policies?: Record | null; + prefix?: string | null; + privateApiName?: string | null; + privateSchemaId?: string | null; + privateSchemaName?: string | null; + provisions?: Record | null; + publicSchemaId?: string | null; + publicSchemaName?: string | null; + scope?: string | null; + storeName?: string | null; +} +export interface UpdateContentPresetModuleInput { + clientMutationId?: string; + id: string; + contentPresetModulePatch: ContentPresetModulePatch; +} +export interface DeleteContentPresetModuleInput { + clientMutationId?: string; + id: string; +} export interface CreateCryptoAddressesModuleInput { clientMutationId?: string; cryptoAddressesModule: { @@ -11866,6 +12810,42 @@ export interface DeleteCryptoAuthModuleInput { clientMutationId?: string; id: string; } +export interface CreateDataCapabilitiesFieldInput { + clientMutationId?: string; + dataCapabilitiesField: { + capabilitiesModuleId: string; + databaseId: string; + fieldId: string; + fromFieldId?: string; + mappingFieldId?: string; + mappingKeyFieldId?: string; + mappingTableId?: string; + mode?: string; + subsetGuard?: boolean; + tableId: string; + }; +} +export interface DataCapabilitiesFieldPatch { + capabilitiesModuleId?: string | null; + databaseId?: string | null; + fieldId?: string | null; + fromFieldId?: string | null; + mappingFieldId?: string | null; + mappingKeyFieldId?: string | null; + mappingTableId?: string | null; + mode?: string | null; + subsetGuard?: boolean | null; + tableId?: string | null; +} +export interface UpdateDataCapabilitiesFieldInput { + clientMutationId?: string; + id: string; + dataCapabilitiesFieldPatch: DataCapabilitiesFieldPatch; +} +export interface DeleteDataCapabilitiesFieldInput { + clientMutationId?: string; + id: string; +} export interface CreateDatabaseProvisionModuleInput { clientMutationId?: string; databaseProvisionModule: { @@ -11921,7 +12901,7 @@ export interface CreateDatabaseSettingsModuleInput { databaseId: string; databaseSettingsTableId?: string; databaseSettingsTableName?: string; - defaultPermissions?: string[]; + defaultCapabilities?: string[]; entityField?: string; entityTableId?: string; policies?: Record; @@ -11944,7 +12924,7 @@ export interface DatabaseSettingsModulePatch { databaseId?: string | null; databaseSettingsTableId?: string | null; databaseSettingsTableName?: string | null; - defaultPermissions?: string[] | null; + defaultCapabilities?: string[] | null; entityField?: string | null; entityTableId?: string | null; policies?: Record | null; @@ -12089,7 +13069,7 @@ export interface CreateDbUsageModuleInput { collectDbQueryStatsFunction?: string; collectDbTableStatsFunction?: string; databaseId: string; - defaultPermissions?: string[]; + defaultCapabilities?: string[]; entityField?: string; interval?: string; prefix?: string; @@ -12118,7 +13098,7 @@ export interface DbUsageModulePatch { collectDbQueryStatsFunction?: string | null; collectDbTableStatsFunction?: string | null; databaseId?: string | null; - defaultPermissions?: string[] | null; + defaultCapabilities?: string[] | null; entityField?: string | null; interval?: string | null; prefix?: string | null; @@ -12240,7 +13220,7 @@ export interface CreateDomainModuleInput { apiName?: string; catalogModuleId?: string; databaseId: string; - defaultPermissions?: string[]; + defaultCapabilities?: string[]; domainEventsTableId?: string; domainEventsTableName?: string; domainVerificationsTableId?: string; @@ -12266,7 +13246,7 @@ export interface DomainModulePatch { apiName?: string | null; catalogModuleId?: string | null; databaseId?: string | null; - defaultPermissions?: string[] | null; + defaultCapabilities?: string[] | null; domainEventsTableId?: string | null; domainEventsTableName?: string | null; domainVerificationsTableId?: string | null; @@ -12296,6 +13276,60 @@ export interface DeleteDomainModuleInput { clientMutationId?: string; id: string; } +export interface CreateEmailSenderModuleInput { + clientMutationId?: string; + emailSenderModule: { + apiName?: string; + databaseId: string; + defaultCapabilities?: string[]; + emailIdentitiesTableId?: string; + emailIdentitiesTableName?: string; + emailProviderAccountsTableId?: string; + emailProviderAccountsTableName?: string; + emailSiteIdentitiesTableId?: string; + emailSiteIdentitiesTableName?: string; + entityField?: string; + entityTableId?: string; + policies?: Record; + prefix?: string; + privateApiName?: string; + provisions?: Record; + publicSchemaName?: string; + schemaId?: string; + scope: string; + siteSurfaceModuleId?: string; + }; +} +export interface EmailSenderModulePatch { + apiName?: string | null; + databaseId?: string | null; + defaultCapabilities?: string[] | null; + emailIdentitiesTableId?: string | null; + emailIdentitiesTableName?: string | null; + emailProviderAccountsTableId?: string | null; + emailProviderAccountsTableName?: string | null; + emailSiteIdentitiesTableId?: string | null; + emailSiteIdentitiesTableName?: string | null; + entityField?: string | null; + entityTableId?: string | null; + policies?: Record | null; + prefix?: string | null; + privateApiName?: string | null; + provisions?: Record | null; + publicSchemaName?: string | null; + schemaId?: string | null; + scope?: string | null; + siteSurfaceModuleId?: string | null; +} +export interface UpdateEmailSenderModuleInput { + clientMutationId?: string; + id: string; + emailSenderModulePatch: EmailSenderModulePatch; +} +export interface DeleteEmailSenderModuleInput { + clientMutationId?: string; + id: string; +} export interface CreateEmailsModuleInput { clientMutationId?: string; emailsModule: { @@ -12428,7 +13462,7 @@ export interface CreateEventsModuleInput { actorTableId?: string; apiName?: string; databaseId: string; - defaultPermissions?: string[]; + defaultCapabilities?: string[]; entityField?: string; entityTableId?: string; eventAggregatesTableId?: string; @@ -12437,6 +13471,7 @@ export interface CreateEventsModuleInput { eventTypesTableName?: string; eventsTableId?: string; eventsTableName?: string; + expireGrants?: string; grantAchievement?: string; interval?: string; levelAchieved?: string; @@ -12452,9 +13487,11 @@ export interface CreateEventsModuleInput { privateSchemaId?: string; privateSchemaName?: string; publicSchemaName?: string; + recomputeCapabilities?: string; recordEvent?: string; removeEvent?: string; retention?: string; + revokeAchievement?: string; schemaId?: string; scope: string; stepsRequired?: string; @@ -12464,7 +13501,9 @@ export interface CreateEventsModuleInput { tgEventBool?: string; tgEventToggle?: string; tgEventToggleBool?: string; + tgLevelGrantSync?: string; tgUpdateAggregates?: string; + trustLadder?: Record; upsertAggregate?: string; }; } @@ -12474,7 +13513,7 @@ export interface EventsModulePatch { actorTableId?: string | null; apiName?: string | null; databaseId?: string | null; - defaultPermissions?: string[] | null; + defaultCapabilities?: string[] | null; entityField?: string | null; entityTableId?: string | null; eventAggregatesTableId?: string | null; @@ -12483,6 +13522,7 @@ export interface EventsModulePatch { eventTypesTableName?: string | null; eventsTableId?: string | null; eventsTableName?: string | null; + expireGrants?: string | null; grantAchievement?: string | null; interval?: string | null; levelAchieved?: string | null; @@ -12498,9 +13538,11 @@ export interface EventsModulePatch { privateSchemaId?: string | null; privateSchemaName?: string | null; publicSchemaName?: string | null; + recomputeCapabilities?: string | null; recordEvent?: string | null; removeEvent?: string | null; retention?: string | null; + revokeAchievement?: string | null; schemaId?: string | null; scope?: string | null; stepsRequired?: string | null; @@ -12510,7 +13552,9 @@ export interface EventsModulePatch { tgEventBool?: string | null; tgEventToggle?: string | null; tgEventToggleBool?: string | null; + tgLevelGrantSync?: string | null; tgUpdateAggregates?: string | null; + trustLadder?: Record | null; upsertAggregate?: string | null; } export interface UpdateEventsModuleInput { @@ -12522,12 +13566,44 @@ export interface DeleteEventsModuleInput { clientMutationId?: string; id: string; } +export interface CreateFileRefFieldInput { + clientMutationId?: string; + fileRefField: { + bucketKey?: string; + bucketTags?: string[]; + databaseId: string; + enforceFk?: boolean; + fieldId: string; + isPublic?: boolean; + storageModuleId: string; + tableId: string; + }; +} +export interface FileRefFieldPatch { + bucketKey?: string | null; + bucketTags?: string[] | null; + databaseId?: string | null; + enforceFk?: boolean | null; + fieldId?: string | null; + isPublic?: boolean | null; + storageModuleId?: string | null; + tableId?: string | null; +} +export interface UpdateFileRefFieldInput { + clientMutationId?: string; + id: string; + fileRefFieldPatch: FileRefFieldPatch; +} +export interface DeleteFileRefFieldInput { + clientMutationId?: string; + id: string; +} export interface CreateFunctionDeploymentModuleInput { clientMutationId?: string; functionDeploymentModule: { apiName?: string; databaseId: string; - defaultPermissions?: string[]; + defaultCapabilities?: string[]; deploymentEventsTableId?: string; deploymentEventsTableName?: string; deploymentsTableId?: string; @@ -12550,7 +13626,7 @@ export interface CreateFunctionDeploymentModuleInput { export interface FunctionDeploymentModulePatch { apiName?: string | null; databaseId?: string | null; - defaultPermissions?: string[] | null; + defaultCapabilities?: string[] | null; deploymentEventsTableId?: string | null; deploymentEventsTableName?: string | null; deploymentsTableId?: string | null; @@ -12585,7 +13661,7 @@ export interface CreateFunctionInvocationModuleInput { attemptsTableId?: string; attemptsTableName?: string; databaseId: string; - defaultPermissions?: string[]; + defaultCapabilities?: string[]; entityField?: string; entityTableId?: string; executionLogsTableId?: string; @@ -12608,7 +13684,7 @@ export interface FunctionInvocationModulePatch { attemptsTableId?: string | null; attemptsTableName?: string | null; databaseId?: string | null; - defaultPermissions?: string[] | null; + defaultCapabilities?: string[] | null; entityField?: string | null; entityTableId?: string | null; executionLogsTableId?: string | null; @@ -12642,7 +13718,7 @@ export interface CreateFunctionModuleInput { bindingsTableName?: string; capabilityBindingsTableId?: string; databaseId: string; - defaultPermissions?: string[]; + defaultCapabilities?: string[]; definitionsTableId?: string; definitionsTableName?: string; entityField?: string; @@ -12666,7 +13742,7 @@ export interface FunctionModulePatch { bindingsTableName?: string | null; capabilityBindingsTableId?: string | null; databaseId?: string | null; - defaultPermissions?: string[] | null; + defaultCapabilities?: string[] | null; definitionsTableId?: string | null; definitionsTableName?: string | null; entityField?: string | null; @@ -12697,7 +13773,7 @@ export interface CreateGraphExecutionModuleInput { graphExecutionModule: { apiName?: string; databaseId: string; - defaultPermissions?: string[]; + defaultCapabilities?: string[]; entityField?: string; entityTableId?: string; executionsTableId?: string; @@ -12721,7 +13797,7 @@ export interface CreateGraphExecutionModuleInput { export interface GraphExecutionModulePatch { apiName?: string | null; databaseId?: string | null; - defaultPermissions?: string[] | null; + defaultCapabilities?: string[] | null; entityField?: string | null; entityTableId?: string | null; executionsTableId?: string | null; @@ -12755,7 +13831,7 @@ export interface CreateGraphModuleInput { graphModule: { apiName?: string; databaseId: string; - defaultPermissions?: string[]; + defaultCapabilities?: string[]; entityField?: string; entityTableId?: string; graphsTableId?: string; @@ -12774,7 +13850,7 @@ export interface CreateGraphModuleInput { export interface GraphModulePatch { apiName?: string | null; databaseId?: string | null; - defaultPermissions?: string[] | null; + defaultCapabilities?: string[] | null; entityField?: string | null; entityTableId?: string | null; graphsTableId?: string | null; @@ -12806,7 +13882,7 @@ export interface CreateHierarchyModuleInput { chartEdgesTableId?: string; chartEdgesTableName?: string; databaseId: string; - defaultPermissions?: string[]; + defaultCapabilities?: string[]; entityField?: string; entityTableId: string; getManagersFunction?: string; @@ -12830,7 +13906,7 @@ export interface HierarchyModulePatch { chartEdgesTableId?: string | null; chartEdgesTableName?: string | null; databaseId?: string | null; - defaultPermissions?: string[] | null; + defaultCapabilities?: string[] | null; entityField?: string | null; entityTableId?: string | null; getManagersFunction?: string | null; @@ -12861,7 +13937,7 @@ export interface CreateHttpRouteModuleInput { httpRouteModule: { apiName?: string; databaseId: string; - defaultPermissions?: string[]; + defaultCapabilities?: string[]; entityField?: string; entityTableId?: string; functionModuleId?: string; @@ -12884,7 +13960,7 @@ export interface CreateHttpRouteModuleInput { export interface HttpRouteModulePatch { apiName?: string | null; databaseId?: string | null; - defaultPermissions?: string[] | null; + defaultCapabilities?: string[] | null; entityField?: string | null; entityTableId?: string | null; functionModuleId?: string | null; @@ -13292,6 +14368,7 @@ export interface CreateLimitsModuleInput { limitCreditsTableId?: string; limitDecrementFunction?: string; limitDecrementTrigger?: string; + limitDefaults?: Record; limitIncrementFunction?: string; limitIncrementTrigger?: string; limitUpdateTrigger?: string; @@ -13331,6 +14408,7 @@ export interface LimitsModulePatch { limitCreditsTableId?: string | null; limitDecrementFunction?: string | null; limitDecrementTrigger?: string | null; + limitDefaults?: Record | null; limitIncrementFunction?: string | null; limitIncrementTrigger?: string | null; limitUpdateTrigger?: string | null; @@ -13389,9 +14467,12 @@ export interface CreateMembershipsModuleInput { adminGrantsTableId?: string; adminGrantsTableName?: string; apiName?: string; + capabilitiesTableId?: string; + capabilityDefaultCapabilitiesTableId?: string; + capabilityDefaultGrantsTableId?: string; databaseId: string; + defaultCapabilitiesTableId?: string; defaultLimitsTableId?: string; - defaultPermissionsTableId?: string; entityField?: string; entityIdsByMask?: string; entityIdsByPerm?: string; @@ -13413,9 +14494,6 @@ export interface CreateMembershipsModuleInput { membershipsTableName?: string; ownerGrantsTableId?: string; ownerGrantsTableName?: string; - permissionDefaultGrantsTableId?: string; - permissionDefaultPermissionsTableId?: string; - permissionsTableId?: string; prefix?: string; privateApiName?: string; privateSchemaId?: string; @@ -13433,9 +14511,12 @@ export interface MembershipsModulePatch { adminGrantsTableId?: string | null; adminGrantsTableName?: string | null; apiName?: string | null; + capabilitiesTableId?: string | null; + capabilityDefaultCapabilitiesTableId?: string | null; + capabilityDefaultGrantsTableId?: string | null; databaseId?: string | null; + defaultCapabilitiesTableId?: string | null; defaultLimitsTableId?: string | null; - defaultPermissionsTableId?: string | null; entityField?: string | null; entityIdsByMask?: string | null; entityIdsByPerm?: string | null; @@ -13457,9 +14538,6 @@ export interface MembershipsModulePatch { membershipsTableName?: string | null; ownerGrantsTableId?: string | null; ownerGrantsTableName?: string | null; - permissionDefaultGrantsTableId?: string | null; - permissionDefaultPermissionsTableId?: string | null; - permissionsTableId?: string | null; prefix?: string | null; privateApiName?: string | null; privateSchemaId?: string | null; @@ -13482,12 +14560,12 @@ export interface CreateMerkleStoreModuleInput { clientMutationId?: string; merkleStoreModule: { apiName?: string; + capabilityKey?: string; commitTableId?: string; databaseId: string; entityField?: string; functionPrefix?: string; objectTableId?: string; - permissionKey?: string; prefix?: string; privateApiName?: string; privateSchemaId?: string; @@ -13501,12 +14579,12 @@ export interface CreateMerkleStoreModuleInput { } export interface MerkleStoreModulePatch { apiName?: string | null; + capabilityKey?: string | null; commitTableId?: string | null; databaseId?: string | null; entityField?: string | null; functionPrefix?: string | null; objectTableId?: string | null; - permissionKey?: string | null; prefix?: string | null; privateApiName?: string | null; privateSchemaId?: string | null; @@ -13531,7 +14609,7 @@ export interface CreateNamespaceModuleInput { namespaceModule: { apiName?: string; databaseId: string; - defaultPermissions?: string[]; + defaultCapabilities?: string[]; entityField?: string; entityTableId?: string; namespaceEventsTableId?: string; @@ -13552,7 +14630,7 @@ export interface CreateNamespaceModuleInput { export interface NamespaceModulePatch { apiName?: string | null; databaseId?: string | null; - defaultPermissions?: string[] | null; + defaultCapabilities?: string[] | null; entityField?: string | null; entityTableId?: string | null; namespaceEventsTableId?: string | null; @@ -13584,7 +14662,7 @@ export interface CreateNotificationsModuleInput { apiName?: string; channelsTableId?: string; databaseId: string; - defaultPermissions?: string[]; + defaultCapabilities?: string[]; deliveryLogTableId?: string; entityField?: string; hasChannels?: boolean; @@ -13610,7 +14688,7 @@ export interface NotificationsModulePatch { apiName?: string | null; channelsTableId?: string | null; databaseId?: string | null; - defaultPermissions?: string[] | null; + defaultCapabilities?: string[] | null; deliveryLogTableId?: string | null; entityField?: string | null; hasChannels?: boolean | null; @@ -13640,6 +14718,44 @@ export interface DeleteNotificationsModuleInput { clientMutationId?: string; id: string; } +export interface CreateOauthRequestsModuleInput { + clientMutationId?: string; + oauthRequestsModule: { + databaseId: string; + entityField?: string; + entityTableId?: string; + oauthAuthorizationRequestsTableId?: string; + oauthAuthorizationRequestsTableName?: string; + pendingIdentityLinksTableId?: string; + pendingIdentityLinksTableName?: string; + prefix?: string; + privateSchemaId?: string; + privateSchemaName?: string; + scope: string; + }; +} +export interface OauthRequestsModulePatch { + databaseId?: string | null; + entityField?: string | null; + entityTableId?: string | null; + oauthAuthorizationRequestsTableId?: string | null; + oauthAuthorizationRequestsTableName?: string | null; + pendingIdentityLinksTableId?: string | null; + pendingIdentityLinksTableName?: string | null; + prefix?: string | null; + privateSchemaId?: string | null; + privateSchemaName?: string | null; + scope?: string | null; +} +export interface UpdateOauthRequestsModuleInput { + clientMutationId?: string; + id: string; + oauthRequestsModulePatch: OauthRequestsModulePatch; +} +export interface DeleteOauthRequestsModuleInput { + clientMutationId?: string; + id: string; +} export interface CreatePagesModuleInput { clientMutationId?: string; pagesModule: { @@ -13690,64 +14806,6 @@ export interface DeletePagesModuleInput { clientMutationId?: string; id: string; } -export interface CreatePermissionsModuleInput { - clientMutationId?: string; - permissionsModule: { - actorTableId?: string; - apiName?: string; - bitlen?: number; - databaseId: string; - defaultTableId?: string; - defaultTableName?: string; - entityField?: string; - entityTableId?: string; - getByMask?: string; - getMask?: string; - getMaskByName?: string; - getPaddedMask?: string; - prefix?: string; - privateApiName?: string; - privateSchemaId?: string; - privateSchemaName?: string; - publicSchemaName?: string; - schemaId?: string; - scope: string; - tableId?: string; - tableName?: string; - }; -} -export interface PermissionsModulePatch { - actorTableId?: string | null; - apiName?: string | null; - bitlen?: number | null; - databaseId?: string | null; - defaultTableId?: string | null; - defaultTableName?: string | null; - entityField?: string | null; - entityTableId?: string | null; - getByMask?: string | null; - getMask?: string | null; - getMaskByName?: string | null; - getPaddedMask?: string | null; - prefix?: string | null; - privateApiName?: string | null; - privateSchemaId?: string | null; - privateSchemaName?: string | null; - publicSchemaName?: string | null; - schemaId?: string | null; - scope?: string | null; - tableId?: string | null; - tableName?: string | null; -} -export interface UpdatePermissionsModuleInput { - clientMutationId?: string; - id: string; - permissionsModulePatch: PermissionsModulePatch; -} -export interface DeletePermissionsModuleInput { - clientMutationId?: string; - id: string; -} export interface CreatePhoneNumbersModuleInput { clientMutationId?: string; phoneNumbersModule: { @@ -13891,21 +14949,23 @@ export interface CreateProfilesModuleInput { profilesModule: { actorTableId?: string; apiName?: string; + capabilitiesTableId?: string; databaseId: string; entityField?: string; entityTableId?: string; + membershipProfilesTableId?: string; + membershipProfilesTableName?: string; membershipsTableId?: string; - permissionsTableId?: string; prefix?: string; privateApiName?: string; privateSchemaId?: string; privateSchemaName?: string; + profileCapabilitiesTableId?: string; + profileCapabilitiesTableName?: string; profileDefinitionGrantsTableId?: string; profileDefinitionGrantsTableName?: string; profileGrantsTableId?: string; profileGrantsTableName?: string; - profilePermissionsTableId?: string; - profilePermissionsTableName?: string; profileTemplatesTableId?: string; profileTemplatesTableName?: string; publicSchemaName?: string; @@ -13918,21 +14978,23 @@ export interface CreateProfilesModuleInput { export interface ProfilesModulePatch { actorTableId?: string | null; apiName?: string | null; + capabilitiesTableId?: string | null; databaseId?: string | null; entityField?: string | null; entityTableId?: string | null; + membershipProfilesTableId?: string | null; + membershipProfilesTableName?: string | null; membershipsTableId?: string | null; - permissionsTableId?: string | null; prefix?: string | null; privateApiName?: string | null; privateSchemaId?: string | null; privateSchemaName?: string | null; + profileCapabilitiesTableId?: string | null; + profileCapabilitiesTableName?: string | null; profileDefinitionGrantsTableId?: string | null; profileDefinitionGrantsTableName?: string | null; profileGrantsTableId?: string | null; profileGrantsTableName?: string | null; - profilePermissionsTableId?: string | null; - profilePermissionsTableName?: string | null; profileTemplatesTableId?: string | null; profileTemplatesTableName?: string | null; publicSchemaName?: string | null; @@ -13956,7 +15018,7 @@ export interface CreateRateLimitMetersModuleInput { apiName?: string; checkRateLimitFunction?: string; databaseId: string; - defaultPermissions?: string[]; + defaultCapabilities?: string[]; prefix?: string; privateApiName?: string; privateSchemaId?: string; @@ -13975,7 +15037,7 @@ export interface RateLimitMetersModulePatch { apiName?: string | null; checkRateLimitFunction?: string | null; databaseId?: string | null; - defaultPermissions?: string[] | null; + defaultCapabilities?: string[] | null; prefix?: string | null; privateApiName?: string | null; privateSchemaId?: string | null; @@ -14139,7 +15201,7 @@ export interface CreateResourceModuleInput { resourceModule: { apiName?: string; databaseId: string; - defaultPermissions?: string[]; + defaultCapabilities?: string[]; entityField?: string; entityTableId?: string; installationStoreName?: string; @@ -14177,7 +15239,7 @@ export interface CreateResourceModuleInput { export interface ResourceModulePatch { apiName?: string | null; databaseId?: string | null; - defaultPermissions?: string[] | null; + defaultCapabilities?: string[] | null; entityField?: string | null; entityTableId?: string | null; installationStoreName?: string | null; @@ -14264,9 +15326,11 @@ export interface CreateRouteModuleInput { clientMutationId?: string; routeModule: { apiName?: string; + appLinksFunctionName?: string; catalogModuleId?: string; databaseId: string; - defaultPermissions?: string[]; + deepLinkFunctionName?: string; + defaultCapabilities?: string[]; domainModuleId?: string; entityField?: string; entityTableId?: string; @@ -14290,9 +15354,11 @@ export interface CreateRouteModuleInput { } export interface RouteModulePatch { apiName?: string | null; + appLinksFunctionName?: string | null; catalogModuleId?: string | null; databaseId?: string | null; - defaultPermissions?: string[] | null; + deepLinkFunctionName?: string | null; + defaultCapabilities?: string[] | null; domainModuleId?: string | null; entityField?: string | null; entityTableId?: string | null; @@ -14322,15 +15388,39 @@ export interface DeleteRouteModuleInput { clientMutationId?: string; id: string; } -export interface CreateSecureTableProvisionInput { +export interface CreateScopeTypesModuleInput { clientMutationId?: string; - secureTableProvision: { + scopeTypesModule: { databaseId: string; - fields?: Record[]; - grants?: Record; - nodes?: Record; - outFields?: string[]; - policies?: Record; + privateSchemaName?: string; + schemaId?: string; + scopeTypesTableId?: string; + }; +} +export interface ScopeTypesModulePatch { + databaseId?: string | null; + privateSchemaName?: string | null; + schemaId?: string | null; + scopeTypesTableId?: string | null; +} +export interface UpdateScopeTypesModuleInput { + clientMutationId?: string; + id: string; + scopeTypesModulePatch: ScopeTypesModulePatch; +} +export interface DeleteScopeTypesModuleInput { + clientMutationId?: string; + id: string; +} +export interface CreateSecureTableProvisionInput { + clientMutationId?: string; + secureTableProvision: { + databaseId: string; + fields?: Record[]; + grants?: Record; + nodes?: Record; + outFields?: string[]; + policies?: Record; schemaId?: string; tableId?: string; tableName?: string; @@ -14426,7 +15516,7 @@ export interface CreateSiteSurfaceModuleInput { apiName?: string; catalogModuleId?: string; databaseId: string; - defaultPermissions?: string[]; + defaultCapabilities?: string[]; entityField?: string; entityTableId?: string; policies?: Record; @@ -14460,7 +15550,7 @@ export interface SiteSurfaceModulePatch { apiName?: string | null; catalogModuleId?: string | null; databaseId?: string | null; - defaultPermissions?: string[] | null; + defaultCapabilities?: string[] | null; entityField?: string | null; entityTableId?: string | null; policies?: Record | null; @@ -14563,8 +15653,8 @@ export interface CreateStorageModuleInput { catalogModuleId?: string; confirmUploadDelay?: IntervalInput; databaseId: string; + defaultCapabilities?: string[]; defaultMaxFileSize?: string; - defaultPermissions?: string[]; downloadUrlExpirySeconds?: number; endpoint?: string; entityField?: string; @@ -14606,8 +15696,8 @@ export interface StorageModulePatch { catalogModuleId?: string | null; confirmUploadDelay?: IntervalInput | null; databaseId?: string | null; + defaultCapabilities?: string[] | null; defaultMaxFileSize?: string | null; - defaultPermissions?: string[] | null; downloadUrlExpirySeconds?: number | null; endpoint?: string | null; entityField?: string | null; @@ -14828,6 +15918,34 @@ export interface DeleteUserSettingsModuleInput { clientMutationId?: string; id: string; } +export interface CreateUserSettingsSecurityModuleInput { + clientMutationId?: string; + userSettingsSecurityModule: { + apiName?: string; + databaseId: string; + ownerTableId?: string; + schemaId?: string; + tableId?: string; + tableName?: string; + }; +} +export interface UserSettingsSecurityModulePatch { + apiName?: string | null; + databaseId?: string | null; + ownerTableId?: string | null; + schemaId?: string | null; + tableId?: string | null; + tableName?: string | null; +} +export interface UpdateUserSettingsSecurityModuleInput { + clientMutationId?: string; + id: string; + userSettingsSecurityModulePatch: UserSettingsSecurityModulePatch; +} +export interface DeleteUserSettingsSecurityModuleInput { + clientMutationId?: string; + id: string; +} export interface CreateUserStateModuleInput { clientMutationId?: string; userStateModule: { @@ -14969,7 +16087,7 @@ export interface CreateWebhookModuleInput { webhookModule: { apiName?: string; databaseId: string; - defaultPermissions?: string[]; + defaultCapabilities?: string[]; entityField?: string; entityTableId?: string; functionInvocationModuleId?: string; @@ -14994,7 +16112,7 @@ export interface CreateWebhookModuleInput { export interface WebhookModulePatch { apiName?: string | null; databaseId?: string | null; - defaultPermissions?: string[] | null; + defaultCapabilities?: string[] | null; entityField?: string | null; entityTableId?: string | null; functionInvocationModuleId?: string | null; @@ -15033,6 +16151,9 @@ export const connectionFieldsMap = { blueprintTemplatesByForkedFromId: 'BlueprintTemplate', blueprintsByTemplateId: 'Blueprint', }, + CapabilitiesModule: { + dataCapabilitiesFields: 'DataCapabilitiesField', + }, CatalogModule: { apiSurfaceModules: 'ApiSurfaceModule', appModules: 'AppModule', @@ -15058,6 +16179,7 @@ export const connectionFieldsMap = { webhookModules: 'WebhookModule', }, MerkleStoreModule: { + contentPresetModules: 'ContentPresetModule', dbPresetModules: 'DbPresetModule', graphModules: 'GraphModule', pagesModules: 'PagesModule', @@ -15072,9 +16194,11 @@ export const connectionFieldsMap = { httpRouteModules: 'HttpRouteModule', }, SiteSurfaceModule: { + emailSenderModules: 'EmailSenderModule', pagesModules: 'PagesModule', }, StorageModule: { + fileRefFields: 'FileRefField', httpRouteModules: 'HttpRouteModule', }, } as Record>; @@ -15101,79 +16225,6 @@ export interface ProvisionBucketInput { */ ownerId?: string; } -export interface ProvisionCheckConstraintInput { - clientMutationId?: string; - databaseId?: string; - definition?: Record; - tableId?: string; -} -export interface ProvisionFullTextSearchInput { - clientMutationId?: string; - databaseId?: string; - definition?: Record; - tableId?: string; -} -export interface ProvisionIndexInput { - clientMutationId?: string; - databaseId?: string; - definition?: Record; - tableId?: string; -} -export interface ProvisionRelationInput { - apiRequired?: boolean; - clientMutationId?: string; - createIndex?: boolean; - databaseId?: string; - deleteAction?: string; - exposeInApi?: boolean; - fieldName?: string; - grants?: Record; - isRequired?: boolean; - junctionSchemaId?: string; - junctionTableId?: string; - junctionTableName?: string; - nodes?: Record; - policies?: Record; - relationType?: string; - sourceFieldName?: string; - sourceTableId?: string; - targetFieldName?: string; - targetTableId?: string; - useCompositeKey?: boolean; -} -export interface ProvisionSpatialRelationInput { - clientMutationId?: string; - databaseId?: string; - name?: string; - operator?: string; - paramName?: string; - sourceFieldId?: string; - sourceTableId?: string; - targetFieldId?: string; - targetTableId?: string; -} -export interface ProvisionTableInput { - clientMutationId?: string; - databaseId?: string; - description?: string; - fields?: Record; - fullTextSearches?: Record; - grants?: Record; - indexes?: Record; - nodes?: Record; - policies?: Record; - schemaId?: string; - tableId?: string; - tableName?: string; - uniqueConstraints?: Record; - useRls?: boolean; -} -export interface ProvisionUniqueConstraintInput { - clientMutationId?: string; - databaseId?: string; - definition?: Record; - tableId?: string; -} /** A filter to be used against many `BlueprintConstruction` object types. All fields are combined with a logical ‘and.’ */ export interface BlueprintToManyBlueprintConstructionFilter { /** Filters to entities where every related entity matches. */ @@ -15201,6 +16252,15 @@ export interface BlueprintTemplateToManyBlueprintFilter { /** Filters to entities where at least one related entity matches. */ some?: BlueprintFilter; } +/** A filter to be used against many `DataCapabilitiesField` object types. All fields are combined with a logical ‘and.’ */ +export interface CapabilitiesModuleToManyDataCapabilitiesFieldFilter { + /** Filters to entities where every related entity matches. */ + every?: DataCapabilitiesFieldFilter; + /** Filters to entities where no related entity matches. */ + none?: DataCapabilitiesFieldFilter; + /** Filters to entities where at least one related entity matches. */ + some?: DataCapabilitiesFieldFilter; +} /** A filter to be used against many `ApiSurfaceModule` object types. All fields are combined with a logical ‘and.’ */ export interface CatalogModuleToManyApiSurfaceModuleFilter { /** Filters to entities where every related entity matches. */ @@ -15334,6 +16394,15 @@ export interface InfraSecretsModuleToManyWebhookModuleFilter { /** Filters to entities where at least one related entity matches. */ some?: WebhookModuleFilter; } +/** A filter to be used against many `ContentPresetModule` object types. All fields are combined with a logical ‘and.’ */ +export interface MerkleStoreModuleToManyContentPresetModuleFilter { + /** Filters to entities where every related entity matches. */ + every?: ContentPresetModuleFilter; + /** Filters to entities where no related entity matches. */ + none?: ContentPresetModuleFilter; + /** Filters to entities where at least one related entity matches. */ + some?: ContentPresetModuleFilter; +} /** A filter to be used against many `DbPresetModule` object types. All fields are combined with a logical ‘and.’ */ export interface MerkleStoreModuleToManyDbPresetModuleFilter { /** Filters to entities where every related entity matches. */ @@ -15445,6 +16514,15 @@ export interface JSONListFilter { /** Overlaps the specified list of values. */ overlaps?: Record[]; } +/** A filter to be used against many `EmailSenderModule` object types. All fields are combined with a logical ‘and.’ */ +export interface SiteSurfaceModuleToManyEmailSenderModuleFilter { + /** Filters to entities where every related entity matches. */ + every?: EmailSenderModuleFilter; + /** Filters to entities where no related entity matches. */ + none?: EmailSenderModuleFilter; + /** Filters to entities where at least one related entity matches. */ + some?: EmailSenderModuleFilter; +} /** A filter to be used against many `PagesModule` object types. All fields are combined with a logical ‘and.’ */ export interface SiteSurfaceModuleToManyPagesModuleFilter { /** Filters to entities where every related entity matches. */ @@ -15454,6 +16532,15 @@ export interface SiteSurfaceModuleToManyPagesModuleFilter { /** Filters to entities where at least one related entity matches. */ some?: PagesModuleFilter; } +/** A filter to be used against many `FileRefField` object types. All fields are combined with a logical ‘and.’ */ +export interface StorageModuleToManyFileRefFieldFilter { + /** Filters to entities where every related entity matches. */ + every?: FileRefFieldFilter; + /** Filters to entities where no related entity matches. */ + none?: FileRefFieldFilter; + /** Filters to entities where at least one related entity matches. */ + some?: FileRefFieldFilter; +} /** A filter to be used against many `HttpRouteModule` object types. All fields are combined with a logical ‘and.’ */ export interface StorageModuleToManyHttpRouteModuleFilter { /** Filters to entities where every related entity matches. */ @@ -15469,7 +16556,7 @@ export interface AgentModuleInput { agentTableName?: string; apiName?: string; databaseId: string; - defaultPermissions?: string[]; + defaultCapabilities?: string[]; entityField?: string; entityTableId?: string; hasAgents?: boolean; @@ -15515,7 +16602,7 @@ export interface ApiSurfaceModuleInput { corsSettingsTableId?: string; corsSettingsTableName?: string; databaseId: string; - defaultPermissions?: string[]; + defaultCapabilities?: string[]; entityField?: string; entityTableId?: string; id?: string; @@ -15536,7 +16623,7 @@ export interface AppModuleInput { appsTableName?: string; catalogModuleId?: string; databaseId: string; - defaultPermissions?: string[]; + defaultCapabilities?: string[]; entityField?: string; entityTableId?: string; id?: string; @@ -15556,8 +16643,8 @@ export interface BillingModuleInput { balancesTableId?: string; balancesTableName?: string; databaseId: string; + defaultCapabilities?: string[]; defaultMeterCatalog?: Record; - defaultPermissions?: string[]; id?: string; ledgerTableId?: string; ledgerTableName?: string; @@ -15586,16 +16673,22 @@ export interface BillingProviderModuleInput { apiName?: string; billingCustomersTableId?: string; billingCustomersTableName?: string; + billingInvoicesTableId?: string; + billingInvoicesTableName?: string; billingPricesTableId?: string; billingPricesTableName?: string; billingProductsTableId?: string; billingProductsTableName?: string; + billingRefundsTableId?: string; + billingRefundsTableName?: string; billingSubscriptionsTableId?: string; billingSubscriptionsTableName?: string; billingWebhookEventsTableId?: string; billingWebhookEventsTableName?: string; databaseId: string; id?: string; + listPendingUsageSyncFunction?: string; + markUsageSyncedFunction?: string; prefix?: string; pricesTableId?: string; privateApiName?: string; @@ -15603,8 +16696,10 @@ export interface BillingProviderModuleInput { processBillingEventFunction?: string; productsTableId?: string; provider?: string; + recordRefundFunction?: string; schemaId?: string; subscriptionsTableId?: string; + upsertInvoiceFunction?: string; } /** An input for mutations affecting `Blueprint` */ export interface BlueprintInput { @@ -15701,6 +16796,31 @@ export interface BlueprintTemplateInput { /** Access control for the template. private: only the owner can see and copy. public: anyone can browse and copy from the marketplace. Defaults to private. */ visibility?: string; } +/** An input for mutations affecting `CapabilitiesModule` */ +export interface CapabilitiesModuleInput { + actorTableId?: string; + apiName?: string; + bitlen?: number; + databaseId: string; + defaultTableId?: string; + defaultTableName?: string; + entityField?: string; + entityTableId?: string; + getByMask?: string; + getMask?: string; + getMaskByName?: string; + getPaddedMask?: string; + id?: string; + prefix?: string; + privateApiName?: string; + privateSchemaId?: string; + privateSchemaName?: string; + publicSchemaName?: string; + schemaId?: string; + scope: string; + tableId?: string; + tableName?: string; +} /** An input for mutations affecting `CatalogModule` */ export interface CatalogModuleInput { apiName?: string; @@ -15708,10 +16828,12 @@ export interface CatalogModuleInput { apisTableName?: string; appsTableId?: string; appsTableName?: string; + bindingsTableId?: string; + bindingsTableName?: string; bucketsTableId?: string; bucketsTableName?: string; databaseId: string; - defaultPermissions?: string[]; + defaultCapabilities?: string[]; domainsTableId?: string; domainsTableName?: string; entityTableId?: string; @@ -15789,6 +16911,26 @@ export interface ConnectedAccountsModuleInput { tableId?: string; tableName: string; } +/** An input for mutations affecting `ContentPresetModule` */ +export interface ContentPresetModuleInput { + apiName?: string; + contentPresetsTableId?: string; + createdAt?: string; + databaseId: string; + entityTableId?: string; + id?: string; + merkleStoreModuleId: string; + policies?: Record; + prefix: string; + privateApiName?: string; + privateSchemaId?: string; + privateSchemaName?: string; + provisions?: Record; + publicSchemaId?: string; + publicSchemaName?: string; + scope: string; + storeName: string; +} /** An input for mutations affecting `CryptoAddressesModule` */ export interface CryptoAddressesModuleInput { apiName?: string; @@ -15819,6 +16961,20 @@ export interface CryptoAuthModuleInput { userField: string; usersTableId?: string; } +/** An input for mutations affecting `DataCapabilitiesField` */ +export interface DataCapabilitiesFieldInput { + capabilitiesModuleId: string; + databaseId: string; + fieldId: string; + fromFieldId?: string; + id?: string; + mappingFieldId?: string; + mappingKeyFieldId?: string; + mappingTableId?: string; + mode?: string; + subsetGuard?: boolean; + tableId: string; +} /** An input for mutations affecting `DatabaseProvisionModule` */ export interface DatabaseProvisionModuleInput { /** When true, cold provisioning runs in the database:provision background job and the insert returns a pending ticket; when false, provisioning runs inline in the insert trigger */ @@ -15841,7 +16997,7 @@ export interface DatabaseProvisionModuleInput { /** Uniform billing anchor: when the request was fulfilled with a usable database (cold provision completion or warm pool claim). Platform absorbs all provisioning compute before this point */ fulfilledAt?: string; id?: string; - /** JSONB array of modules to install. Each element is either a string ("users_module") or a [name, options] tuple (["permissions_module", {"scope": "app"}]) */ + /** JSONB array of modules to install. Each element is either a string ("users_module") or a [name, options] tuple (["capabilities_module", {"scope": "app"}]) */ modules?: Record; /** Additional configuration options for provisioning */ options?: Record; @@ -15861,7 +17017,7 @@ export interface DatabaseSettingsModuleInput { databaseId: string; databaseSettingsTableId?: string; databaseSettingsTableName?: string; - defaultPermissions?: string[]; + defaultCapabilities?: string[]; entityField?: string; entityTableId?: string; id?: string; @@ -15966,7 +17122,7 @@ export interface DbUsageModuleInput { collectDbQueryStatsFunction?: string; collectDbTableStatsFunction?: string; databaseId: string; - defaultPermissions?: string[]; + defaultCapabilities?: string[]; entityField?: string; id?: string; interval?: string; @@ -16025,7 +17181,7 @@ export interface DomainModuleInput { apiName?: string; catalogModuleId?: string; databaseId: string; - defaultPermissions?: string[]; + defaultCapabilities?: string[]; domainEventsTableId?: string; domainEventsTableName?: string; domainVerificationsTableId?: string; @@ -16047,6 +17203,29 @@ export interface DomainModuleInput { schemaId?: string; scope: string; } +/** An input for mutations affecting `EmailSenderModule` */ +export interface EmailSenderModuleInput { + apiName?: string; + databaseId: string; + defaultCapabilities?: string[]; + emailIdentitiesTableId?: string; + emailIdentitiesTableName?: string; + emailProviderAccountsTableId?: string; + emailProviderAccountsTableName?: string; + emailSiteIdentitiesTableId?: string; + emailSiteIdentitiesTableName?: string; + entityField?: string; + entityTableId?: string; + id?: string; + policies?: Record; + prefix?: string; + privateApiName?: string; + provisions?: Record; + publicSchemaName?: string; + schemaId?: string; + scope: string; + siteSurfaceModuleId?: string; +} /** An input for mutations affecting `EmailsModule` */ export interface EmailsModuleInput { apiName?: string; @@ -16074,7 +17253,7 @@ export interface EntityTypeProvisionInput { * - policies (jsonb array) RLS policy overrides. NULL = apply defaults from apply_function_security(). * Creates {prefix}_function_definitions (or {prefix}_{key}_function_definitions for non-default keys) * with entity-scoped RLS and a job trigger dispatching function:provision tasks. - * Registers manage_functions + invoke_functions permission bits on first provision. + * Registers manage_functions + invoke_functions capability bits on first provision. * Example: functions := '[{}]'::jsonb */ functions?: Record; @@ -16084,9 +17263,9 @@ export interface EntityTypeProvisionInput { * Each element recognizes (all optional): * - key (text) module discriminator. Defaults to 'default'. * - policies (jsonb array) RLS policy overrides. NULL = apply defaults from apply_graph_security(). - * Registers manage_graphs + execute_graphs permission bits on first provision. + * Registers manage_graphs + execute_graphs capability bits on first provision. * Graph module requires a merkle_store_module_id dependency, so entity_type_provision - * only registers permissions here. The graph module itself must be provisioned + * only registers capabilities here. The graph module itself must be provisioned * separately with the merkle store dependency resolved. * Example: graphs := '[{}]'::jsonb */ @@ -16126,8 +17305,11 @@ export interface EntityTypeProvisionInput { hasLimits?: boolean; /** * Whether to provision profiles_module for this type. Defaults to false. - * Profiles provide named permission roles (e.g. 'Editor', 'Viewer') with pre-configured permission bitmasks. - * When true, creates profile tables and applies profiles security. + * Profiles provide named capability roles (e.g. 'Editor', 'Viewer') with pre-configured capability bitmasks. + * When true, creates profile tables and applies profiles security. A membership may hold + * any number of profiles: the membership_profiles assignment table holds every profile a + * membership holds and the membership mask is granted | bit_or(held profile masks), with + * memberships.profile_id kept as a pointer at one held profile. */ hasProfiles?: boolean; /** Unique identifier for this provision row. */ @@ -16154,7 +17336,7 @@ export interface EntityTypeProvisionInput { * - policies (jsonb array) RLS policy overrides. NULL = apply defaults from apply_namespace_security(). * Creates {prefix}_namespaces (or {prefix}_{key}_namespaces for non-default keys) * with entity-scoped RLS (AuthzEntityMembership) and a rename proxy trigger. - * Registers manage_namespaces permission bit on first provision. + * Registers manage_namespaces capability bit on first provision. * Example: namespaces := '[{}]'::jsonb */ namespaces?: Record; @@ -16176,7 +17358,7 @@ export interface EntityTypeProvisionInput { outGraphModuleId?: string; outGraphsTableId?: string; /** - * Output: array of installed module labels (e.g. ARRAY['permissions_module:data_room', 'memberships_module:data_room', 'invites_module:data_room']). + * Output: array of installed module labels (e.g. ARRAY['capabilities_module:data_room', 'memberships_module:data_room', 'invites_module:data_room']). * Populated by the trigger. Useful for verifying which modules were provisioned. */ outInstalledModules?: string[]; @@ -16220,7 +17402,7 @@ export interface EntityTypeProvisionInput { parentEntity?: string; /** * SQL prefix used for table and module naming, e.g. 'data_room', 'team_channel'. Required. - * Drives entity table name (prefix || 's' by default), module labels (permissions_module:prefix), + * Drives entity table name (prefix || 's' by default), module labels (capabilities_module:prefix), * and membership table names (prefix_memberships, prefix_members, etc.). * Must be unique per database — the (database_id, prefix) constraint ensures graceful ON CONFLICT DO NOTHING. */ @@ -16234,8 +17416,8 @@ export interface EntityTypeProvisionInput { * Defaults (applied when table_provision IS NULL and skip_entity_policies=false): * - SELECT (parent_member): parent entity members can see child entities (only when is_visible=true) * - SELECT (self_member): direct members of the entity can see it - * - INSERT: create_entity permission on the parent entity - * - UPDATE: admin_entity permission on the entity itself + * - INSERT: create_entity capability on the parent entity + * - UPDATE: admin_entity capability on the entity itself * - DELETE: owner of the entity can delete it */ skipEntityPolicies?: boolean; @@ -16254,7 +17436,7 @@ export interface EntityTypeProvisionInput { * - 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 + * - restrict_reads (boolean) require read_files capability 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 @@ -16280,7 +17462,7 @@ export interface EntityTypeProvisionInput { tableName?: string; /** * Single jsonb object describing the full security setup to apply to the entity table. - * Uses the same vocabulary as metaschema_modules_public.provision_table() and blueprint tables[] + * Uses the same vocabulary as metaschema_modules_private.provision_table() and blueprint tables[] * entries, so an entity table is configured the same way an ordinary blueprint table is. * Defaults to NULL; when non-NULL, the five default policies are implicitly replaced by * table_provision.policies[] (is_visible becomes a no-op on this path). @@ -16318,7 +17500,7 @@ export interface EventsModuleInput { actorTableId?: string; apiName?: string; databaseId: string; - defaultPermissions?: string[]; + defaultCapabilities?: string[]; entityField?: string; entityTableId?: string; eventAggregatesTableId?: string; @@ -16327,6 +17509,7 @@ export interface EventsModuleInput { eventTypesTableName?: string; eventsTableId?: string; eventsTableName?: string; + expireGrants?: string; grantAchievement?: string; id?: string; interval?: string; @@ -16343,9 +17526,11 @@ export interface EventsModuleInput { privateSchemaId?: string; privateSchemaName?: string; publicSchemaName?: string; + recomputeCapabilities?: string; recordEvent?: string; removeEvent?: string; retention?: string; + revokeAchievement?: string; schemaId?: string; scope: string; stepsRequired?: string; @@ -16355,14 +17540,28 @@ export interface EventsModuleInput { tgEventBool?: string; tgEventToggle?: string; tgEventToggleBool?: string; + tgLevelGrantSync?: string; tgUpdateAggregates?: string; + trustLadder?: Record; upsertAggregate?: string; } +/** An input for mutations affecting `FileRefField` */ +export interface FileRefFieldInput { + bucketKey?: string; + bucketTags?: string[]; + databaseId: string; + enforceFk?: boolean; + fieldId: string; + id?: string; + isPublic?: boolean; + storageModuleId: string; + tableId: string; +} /** An input for mutations affecting `FunctionDeploymentModule` */ export interface FunctionDeploymentModuleInput { apiName?: string; databaseId: string; - defaultPermissions?: string[]; + defaultCapabilities?: string[]; deploymentEventsTableId?: string; deploymentEventsTableName?: string; deploymentsTableId?: string; @@ -16388,7 +17587,7 @@ export interface FunctionInvocationModuleInput { attemptsTableId?: string; attemptsTableName?: string; databaseId: string; - defaultPermissions?: string[]; + defaultCapabilities?: string[]; entityField?: string; entityTableId?: string; executionLogsTableId?: string; @@ -16413,7 +17612,7 @@ export interface FunctionModuleInput { bindingsTableName?: string; capabilityBindingsTableId?: string; databaseId: string; - defaultPermissions?: string[]; + defaultCapabilities?: string[]; definitionsTableId?: string; definitionsTableName?: string; entityField?: string; @@ -16436,7 +17635,7 @@ export interface GraphExecutionModuleInput { apiName?: string; createdAt?: string; databaseId: string; - defaultPermissions?: string[]; + defaultCapabilities?: string[]; entityField?: string; entityTableId?: string; executionsTableId?: string; @@ -16462,7 +17661,7 @@ export interface GraphModuleInput { apiName?: string; createdAt?: string; databaseId: string; - defaultPermissions?: string[]; + defaultCapabilities?: string[]; entityField?: string; entityTableId?: string; graphsTableId?: string; @@ -16486,7 +17685,7 @@ export interface HierarchyModuleInput { chartEdgesTableName?: string; createdAt?: string; databaseId: string; - defaultPermissions?: string[]; + defaultCapabilities?: string[]; entityField?: string; entityTableId: string; getManagersFunction?: string; @@ -16508,7 +17707,7 @@ export interface HierarchyModuleInput { export interface HttpRouteModuleInput { apiName?: string; databaseId: string; - defaultPermissions?: string[]; + defaultCapabilities?: string[]; entityField?: string; entityTableId?: string; functionModuleId?: string; @@ -16699,6 +17898,7 @@ export interface LimitsModuleInput { limitCreditsTableId?: string; limitDecrementFunction?: string; limitDecrementTrigger?: string; + limitDefaults?: Record; limitIncrementFunction?: string; limitIncrementTrigger?: string; limitUpdateTrigger?: string; @@ -16731,9 +17931,12 @@ export interface MembershipsModuleInput { adminGrantsTableId?: string; adminGrantsTableName?: string; apiName?: string; + capabilitiesTableId?: string; + capabilityDefaultCapabilitiesTableId?: string; + capabilityDefaultGrantsTableId?: string; databaseId: string; + defaultCapabilitiesTableId?: string; defaultLimitsTableId?: string; - defaultPermissionsTableId?: string; entityField?: string; entityIdsByMask?: string; entityIdsByPerm?: string; @@ -16756,9 +17959,6 @@ export interface MembershipsModuleInput { membershipsTableName?: string; ownerGrantsTableId?: string; ownerGrantsTableName?: string; - permissionDefaultGrantsTableId?: string; - permissionDefaultPermissionsTableId?: string; - permissionsTableId?: string; prefix?: string; privateApiName?: string; privateSchemaId?: string; @@ -16771,6 +17971,7 @@ export interface MembershipsModuleInput { /** An input for mutations affecting `MerkleStoreModule` */ export interface MerkleStoreModuleInput { apiName?: string; + capabilityKey?: string; commitTableId?: string; createdAt?: string; databaseId: string; @@ -16778,7 +17979,6 @@ export interface MerkleStoreModuleInput { functionPrefix?: string; id?: string; objectTableId?: string; - permissionKey?: string; prefix?: string; privateApiName?: string; privateSchemaId?: string; @@ -16793,7 +17993,7 @@ export interface MerkleStoreModuleInput { export interface NamespaceModuleInput { apiName?: string; databaseId: string; - defaultPermissions?: string[]; + defaultCapabilities?: string[]; entityField?: string; entityTableId?: string; id?: string; @@ -16816,7 +18016,7 @@ export interface NotificationsModuleInput { apiName?: string; channelsTableId?: string; databaseId: string; - defaultPermissions?: string[]; + defaultCapabilities?: string[]; deliveryLogTableId?: string; entityField?: string; hasChannels?: boolean; @@ -16838,6 +18038,21 @@ export interface NotificationsModuleInput { suppressionsTableId?: string; userSettingsTableId?: string; } +/** An input for mutations affecting `OauthRequestsModule` */ +export interface OauthRequestsModuleInput { + databaseId: string; + entityField?: string; + entityTableId?: string; + id?: string; + oauthAuthorizationRequestsTableId?: string; + oauthAuthorizationRequestsTableName?: string; + pendingIdentityLinksTableId?: string; + pendingIdentityLinksTableName?: string; + prefix?: string; + privateSchemaId?: string; + privateSchemaName?: string; + scope: string; +} /** An input for mutations affecting `PagesModule` */ export interface PagesModuleInput { apiName?: string; @@ -16860,31 +18075,6 @@ export interface PagesModuleInput { sitesTableId?: string; storeNamePrefix?: string; } -/** An input for mutations affecting `PermissionsModule` */ -export interface PermissionsModuleInput { - actorTableId?: string; - apiName?: string; - bitlen?: number; - databaseId: string; - defaultTableId?: string; - defaultTableName?: string; - entityField?: string; - entityTableId?: string; - getByMask?: string; - getMask?: string; - getMaskByName?: string; - getPaddedMask?: string; - id?: string; - prefix?: string; - privateApiName?: string; - privateSchemaId?: string; - privateSchemaName?: string; - publicSchemaName?: string; - schemaId?: string; - scope: string; - tableId?: string; - tableName?: string; -} /** An input for mutations affecting `PhoneNumbersModule` */ export interface PhoneNumbersModuleInput { apiName?: string; @@ -16946,22 +18136,24 @@ export interface PrincipalAuthModuleInput { export interface ProfilesModuleInput { actorTableId?: string; apiName?: string; + capabilitiesTableId?: string; databaseId: string; entityField?: string; entityTableId?: string; id?: string; + membershipProfilesTableId?: string; + membershipProfilesTableName?: string; membershipsTableId?: string; - permissionsTableId?: string; prefix?: string; privateApiName?: string; privateSchemaId?: string; privateSchemaName?: string; + profileCapabilitiesTableId?: string; + profileCapabilitiesTableName?: string; profileDefinitionGrantsTableId?: string; profileDefinitionGrantsTableName?: string; profileGrantsTableId?: string; profileGrantsTableName?: string; - profilePermissionsTableId?: string; - profilePermissionsTableName?: string; profileTemplatesTableId?: string; profileTemplatesTableName?: string; publicSchemaName?: string; @@ -16975,7 +18167,7 @@ export interface RateLimitMetersModuleInput { apiName?: string; checkRateLimitFunction?: string; databaseId: string; - defaultPermissions?: string[]; + defaultCapabilities?: string[]; id?: string; prefix?: string; privateApiName?: string; @@ -17147,7 +18339,7 @@ export interface RelationProvisionInput { export interface ResourceModuleInput { apiName?: string; databaseId: string; - defaultPermissions?: string[]; + defaultCapabilities?: string[]; entityField?: string; entityTableId?: string; id?: string; @@ -17201,9 +18393,11 @@ export interface RlsModuleInput { /** An input for mutations affecting `RouteModule` */ export interface RouteModuleInput { apiName?: string; + appLinksFunctionName?: string; catalogModuleId?: string; databaseId: string; - defaultPermissions?: string[]; + deepLinkFunctionName?: string; + defaultCapabilities?: string[]; domainModuleId?: string; entityField?: string; entityTableId?: string; @@ -17225,6 +18419,14 @@ export interface RouteModuleInput { schemaId?: string; scope: string; } +/** An input for mutations affecting `ScopeTypesModule` */ +export interface ScopeTypesModuleInput { + databaseId: string; + id?: string; + privateSchemaName?: string; + schemaId?: string; + scopeTypesTableId?: string; +} /** An input for mutations affecting `SecureTableProvision` */ export interface SecureTableProvisionInput { /** The database this provision belongs to. Required. */ @@ -17279,7 +18481,7 @@ export interface SiteSurfaceModuleInput { apiName?: string; catalogModuleId?: string; databaseId: string; - defaultPermissions?: string[]; + defaultCapabilities?: string[]; entityField?: string; entityTableId?: string; id?: string; @@ -17342,8 +18544,8 @@ export interface StorageModuleInput { catalogModuleId?: string; confirmUploadDelay?: IntervalInput; databaseId: string; + defaultCapabilities?: string[]; defaultMaxFileSize?: string; - defaultPermissions?: string[]; downloadUrlExpirySeconds?: number; endpoint?: string; entityField?: string; @@ -17450,6 +18652,16 @@ export interface UserSettingsModuleInput { tableId?: string; tableName?: string; } +/** An input for mutations affecting `UserSettingsSecurityModule` */ +export interface UserSettingsSecurityModuleInput { + apiName?: string; + databaseId: string; + id?: string; + ownerTableId?: string; + schemaId?: string; + tableId?: string; + tableName?: string; +} /** An input for mutations affecting `UserStateModule` */ export interface UserStateModuleInput { databaseId: string; @@ -17507,7 +18719,7 @@ export interface WebauthnCredentialsModuleInput { export interface WebhookModuleInput { apiName?: string; databaseId: string; - defaultPermissions?: string[]; + defaultCapabilities?: string[]; entityField?: string; entityTableId?: string; functionInvocationModuleId?: string; @@ -17664,6 +18876,39 @@ export interface BlueprintFilter { /** Filter by the object’s `updatedAt` field. */ updatedAt?: DatetimeFilter; } +/** A filter to be used against `DataCapabilitiesField` object types. All fields are combined with a logical ‘and.’ */ +export interface DataCapabilitiesFieldFilter { + /** Checks for all expressions in this list. */ + and?: DataCapabilitiesFieldFilter[]; + /** Filter by the object’s `capabilitiesModule` relation. */ + capabilitiesModule?: CapabilitiesModuleFilter; + /** Filter by the object’s `capabilitiesModuleId` field. */ + capabilitiesModuleId?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `fieldId` field. */ + fieldId?: UUIDFilter; + /** Filter by the object’s `fromFieldId` field. */ + fromFieldId?: UUIDFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `mappingFieldId` field. */ + mappingFieldId?: UUIDFilter; + /** Filter by the object’s `mappingKeyFieldId` field. */ + mappingKeyFieldId?: UUIDFilter; + /** Filter by the object’s `mappingTableId` field. */ + mappingTableId?: UUIDFilter; + /** Filter by the object’s `mode` field. */ + mode?: StringFilter; + /** Negates the expression. */ + not?: DataCapabilitiesFieldFilter; + /** Checks for any expressions in this list. */ + or?: DataCapabilitiesFieldFilter[]; + /** Filter by the object’s `subsetGuard` field. */ + subsetGuard?: BooleanFilter; + /** Filter by the object’s `tableId` field. */ + tableId?: UUIDFilter; +} /** A filter to be used against `ApiSurfaceModule` object types. All fields are combined with a logical ‘and.’ */ export interface ApiSurfaceModuleFilter { /** Checks for all expressions in this list. */ @@ -17694,8 +18939,8 @@ export interface ApiSurfaceModuleFilter { corsSettingsTableName?: StringFilter; /** Filter by the object’s `databaseId` field. */ databaseId?: UUIDFilter; - /** Filter by the object’s `defaultPermissions` field. */ - defaultPermissions?: StringListFilter; + /** Filter by the object’s `defaultCapabilities` field. */ + defaultCapabilities?: StringListFilter; /** Filter by the object’s `entityField` field. */ entityField?: StringFilter; /** Filter by the object’s `entityTableId` field. */ @@ -17743,8 +18988,8 @@ export interface AppModuleFilter { catalogModuleId?: UUIDFilter; /** Filter by the object’s `databaseId` field. */ databaseId?: UUIDFilter; - /** Filter by the object’s `defaultPermissions` field. */ - defaultPermissions?: StringListFilter; + /** Filter by the object’s `defaultCapabilities` field. */ + defaultCapabilities?: StringListFilter; /** Filter by the object’s `entityField` field. */ entityField?: StringFilter; /** Filter by the object’s `entityTableId` field. */ @@ -17788,8 +19033,8 @@ export interface DomainModuleFilter { catalogModuleId?: UUIDFilter; /** Filter by the object’s `databaseId` field. */ databaseId?: UUIDFilter; - /** Filter by the object’s `defaultPermissions` field. */ - defaultPermissions?: StringListFilter; + /** Filter by the object’s `defaultCapabilities` field. */ + defaultCapabilities?: StringListFilter; /** Filter by the object’s `domainEventsTableId` field. */ domainEventsTableId?: UUIDFilter; /** Filter by the object’s `domainEventsTableName` field. */ @@ -17845,6 +19090,8 @@ export interface RouteModuleFilter { and?: RouteModuleFilter[]; /** Filter by the object’s `apiName` field. */ apiName?: StringFilter; + /** Filter by the object’s `appLinksFunctionName` field. */ + appLinksFunctionName?: StringFilter; /** Filter by the object’s `catalogModule` relation. */ catalogModule?: CatalogModuleFilter; /** A related `catalogModule` exists. */ @@ -17853,8 +19100,10 @@ export interface RouteModuleFilter { catalogModuleId?: UUIDFilter; /** Filter by the object’s `databaseId` field. */ databaseId?: UUIDFilter; - /** Filter by the object’s `defaultPermissions` field. */ - defaultPermissions?: StringListFilter; + /** Filter by the object’s `deepLinkFunctionName` field. */ + deepLinkFunctionName?: StringFilter; + /** Filter by the object’s `defaultCapabilities` field. */ + defaultCapabilities?: StringListFilter; /** Filter by the object’s `domainModule` relation. */ domainModule?: DomainModuleFilter; /** A related `domainModule` exists. */ @@ -17918,8 +19167,12 @@ export interface SiteSurfaceModuleFilter { catalogModuleId?: UUIDFilter; /** Filter by the object’s `databaseId` field. */ databaseId?: UUIDFilter; - /** Filter by the object’s `defaultPermissions` field. */ - defaultPermissions?: StringListFilter; + /** Filter by the object’s `defaultCapabilities` field. */ + defaultCapabilities?: StringListFilter; + /** Filter by the object’s `emailSenderModules` relation. */ + emailSenderModules?: SiteSurfaceModuleToManyEmailSenderModuleFilter; + /** `emailSenderModules` exist. */ + emailSenderModulesExist?: boolean; /** Filter by the object’s `entityField` field. */ entityField?: StringFilter; /** Filter by the object’s `entityTableId` field. */ @@ -17993,8 +19246,8 @@ export interface WebhookModuleFilter { apiName?: StringFilter; /** Filter by the object’s `databaseId` field. */ databaseId?: UUIDFilter; - /** Filter by the object’s `defaultPermissions` field. */ - defaultPermissions?: StringListFilter; + /** Filter by the object’s `defaultCapabilities` field. */ + defaultCapabilities?: StringListFilter; /** Filter by the object’s `entityField` field. */ entityField?: StringFilter; /** Filter by the object’s `entityTableId` field. */ @@ -18064,8 +19317,8 @@ export interface FunctionDeploymentModuleFilter { apiName?: StringFilter; /** Filter by the object’s `databaseId` field. */ databaseId?: UUIDFilter; - /** Filter by the object’s `defaultPermissions` field. */ - defaultPermissions?: StringListFilter; + /** Filter by the object’s `defaultCapabilities` field. */ + defaultCapabilities?: StringListFilter; /** Filter by the object’s `deploymentEventsTableId` field. */ deploymentEventsTableId?: UUIDFilter; /** Filter by the object’s `deploymentEventsTableName` field. */ @@ -18123,8 +19376,8 @@ export interface HttpRouteModuleFilter { apiName?: StringFilter; /** Filter by the object’s `databaseId` field. */ databaseId?: UUIDFilter; - /** Filter by the object’s `defaultPermissions` field. */ - defaultPermissions?: StringListFilter; + /** Filter by the object’s `defaultCapabilities` field. */ + defaultCapabilities?: StringListFilter; /** Filter by the object’s `entityField` field. */ entityField?: StringFilter; /** Filter by the object’s `entityTableId` field. */ @@ -18188,8 +19441,8 @@ export interface GraphExecutionModuleFilter { createdAt?: DatetimeFilter; /** Filter by the object’s `databaseId` field. */ databaseId?: UUIDFilter; - /** Filter by the object’s `defaultPermissions` field. */ - defaultPermissions?: StringListFilter; + /** Filter by the object’s `defaultCapabilities` field. */ + defaultCapabilities?: StringListFilter; /** Filter by the object’s `entityField` field. */ entityField?: StringFilter; /** Filter by the object’s `entityTableId` field. */ @@ -18235,6 +19488,51 @@ export interface GraphExecutionModuleFilter { /** Filter by the object’s `scope` field. */ scope?: StringFilter; } +/** A filter to be used against `ContentPresetModule` object types. All fields are combined with a logical ‘and.’ */ +export interface ContentPresetModuleFilter { + /** Checks for all expressions in this list. */ + and?: ContentPresetModuleFilter[]; + /** Filter by the object’s `apiName` field. */ + apiName?: StringFilter; + /** Filter by the object’s `contentPresetsTableId` field. */ + contentPresetsTableId?: UUIDFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `entityTableId` field. */ + entityTableId?: UUIDFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `merkleStoreModule` relation. */ + merkleStoreModule?: MerkleStoreModuleFilter; + /** Filter by the object’s `merkleStoreModuleId` field. */ + merkleStoreModuleId?: UUIDFilter; + /** Negates the expression. */ + not?: ContentPresetModuleFilter; + /** Checks for any expressions in this list. */ + or?: ContentPresetModuleFilter[]; + /** Filter by the object’s `policies` field. */ + policies?: JSONFilter; + /** Filter by the object’s `prefix` field. */ + prefix?: StringFilter; + /** Filter by the object’s `privateApiName` field. */ + privateApiName?: StringFilter; + /** Filter by the object’s `privateSchemaId` field. */ + privateSchemaId?: UUIDFilter; + /** Filter by the object’s `privateSchemaName` field. */ + privateSchemaName?: StringFilter; + /** Filter by the object’s `provisions` field. */ + provisions?: JSONFilter; + /** Filter by the object’s `publicSchemaId` field. */ + publicSchemaId?: UUIDFilter; + /** Filter by the object’s `publicSchemaName` field. */ + publicSchemaName?: StringFilter; + /** Filter by the object’s `scope` field. */ + scope?: StringFilter; + /** Filter by the object’s `storeName` field. */ + storeName?: StringFilter; +} /** A filter to be used against `DbPresetModule` object types. All fields are combined with a logical ‘and.’ */ export interface DbPresetModuleFilter { /** Checks for all expressions in this list. */ @@ -18290,8 +19588,8 @@ export interface GraphModuleFilter { createdAt?: DatetimeFilter; /** Filter by the object’s `databaseId` field. */ databaseId?: UUIDFilter; - /** Filter by the object’s `defaultPermissions` field. */ - defaultPermissions?: StringListFilter; + /** Filter by the object’s `defaultCapabilities` field. */ + defaultCapabilities?: StringListFilter; /** Filter by the object’s `entityField` field. */ entityField?: StringFilter; /** Filter by the object’s `entityTableId` field. */ @@ -18392,8 +19690,8 @@ export interface ResourceModuleFilter { apiName?: StringFilter; /** Filter by the object’s `databaseId` field. */ databaseId?: UUIDFilter; - /** Filter by the object’s `defaultPermissions` field. */ - defaultPermissions?: StringListFilter; + /** Filter by the object’s `defaultCapabilities` field. */ + defaultCapabilities?: StringListFilter; /** Filter by the object’s `entityField` field. */ entityField?: StringFilter; /** Filter by the object’s `entityTableId` field. */ @@ -18477,6 +19775,88 @@ export interface ResourceModuleFilter { /** Filter by the object’s `scope` field. */ scope?: StringFilter; } +/** A filter to be used against `EmailSenderModule` object types. All fields are combined with a logical ‘and.’ */ +export interface EmailSenderModuleFilter { + /** Checks for all expressions in this list. */ + and?: EmailSenderModuleFilter[]; + /** Filter by the object’s `apiName` field. */ + apiName?: StringFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `defaultCapabilities` field. */ + defaultCapabilities?: StringListFilter; + /** Filter by the object’s `emailIdentitiesTableId` field. */ + emailIdentitiesTableId?: UUIDFilter; + /** Filter by the object’s `emailIdentitiesTableName` field. */ + emailIdentitiesTableName?: StringFilter; + /** Filter by the object’s `emailProviderAccountsTableId` field. */ + emailProviderAccountsTableId?: UUIDFilter; + /** Filter by the object’s `emailProviderAccountsTableName` field. */ + emailProviderAccountsTableName?: StringFilter; + /** Filter by the object’s `emailSiteIdentitiesTableId` field. */ + emailSiteIdentitiesTableId?: UUIDFilter; + /** Filter by the object’s `emailSiteIdentitiesTableName` field. */ + emailSiteIdentitiesTableName?: StringFilter; + /** Filter by the object’s `entityField` field. */ + entityField?: StringFilter; + /** Filter by the object’s `entityTableId` field. */ + entityTableId?: UUIDFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Negates the expression. */ + not?: EmailSenderModuleFilter; + /** Checks for any expressions in this list. */ + or?: EmailSenderModuleFilter[]; + /** Filter by the object’s `policies` field. */ + policies?: JSONFilter; + /** Filter by the object’s `prefix` field. */ + prefix?: StringFilter; + /** Filter by the object’s `privateApiName` field. */ + privateApiName?: StringFilter; + /** Filter by the object’s `provisions` field. */ + provisions?: JSONFilter; + /** Filter by the object’s `publicSchemaName` field. */ + publicSchemaName?: StringFilter; + /** Filter by the object’s `schemaId` field. */ + schemaId?: UUIDFilter; + /** Filter by the object’s `scope` field. */ + scope?: StringFilter; + /** Filter by the object’s `siteSurfaceModule` relation. */ + siteSurfaceModule?: SiteSurfaceModuleFilter; + /** A related `siteSurfaceModule` exists. */ + siteSurfaceModuleExists?: boolean; + /** Filter by the object’s `siteSurfaceModuleId` field. */ + siteSurfaceModuleId?: UUIDFilter; +} +/** A filter to be used against `FileRefField` object types. All fields are combined with a logical ‘and.’ */ +export interface FileRefFieldFilter { + /** Checks for all expressions in this list. */ + and?: FileRefFieldFilter[]; + /** Filter by the object’s `bucketKey` field. */ + bucketKey?: StringFilter; + /** Filter by the object’s `bucketTags` field. */ + bucketTags?: StringListFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `enforceFk` field. */ + enforceFk?: BooleanFilter; + /** Filter by the object’s `fieldId` field. */ + fieldId?: UUIDFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `isPublic` field. */ + isPublic?: BooleanFilter; + /** Negates the expression. */ + not?: FileRefFieldFilter; + /** Checks for any expressions in this list. */ + or?: FileRefFieldFilter[]; + /** Filter by the object’s `storageModule` relation. */ + storageModule?: StorageModuleFilter; + /** Filter by the object’s `storageModuleId` field. */ + storageModuleId?: UUIDFilter; + /** Filter by the object’s `tableId` field. */ + tableId?: UUIDFilter; +} /** A filter to be used against UUID fields. All fields are combined with a logical ‘and.’ */ export interface UUIDFilter { /** Not equal to the specified value, treating null like an ordinary value. */ @@ -18703,6 +20083,88 @@ export interface IntFilter { /** Not included in the specified list. */ notIn?: number[]; } +/** A filter to be used against `CapabilitiesModule` object types. All fields are combined with a logical ‘and.’ */ +export interface CapabilitiesModuleFilter { + /** Filter by the object’s `actorTableId` field. */ + actorTableId?: UUIDFilter; + /** Checks for all expressions in this list. */ + and?: CapabilitiesModuleFilter[]; + /** Filter by the object’s `apiName` field. */ + apiName?: StringFilter; + /** Filter by the object’s `bitlen` field. */ + bitlen?: IntFilter; + /** Filter by the object’s `dataCapabilitiesFields` relation. */ + dataCapabilitiesFields?: CapabilitiesModuleToManyDataCapabilitiesFieldFilter; + /** `dataCapabilitiesFields` exist. */ + dataCapabilitiesFieldsExist?: boolean; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `defaultTableId` field. */ + defaultTableId?: UUIDFilter; + /** Filter by the object’s `defaultTableName` field. */ + defaultTableName?: StringFilter; + /** Filter by the object’s `entityField` field. */ + entityField?: StringFilter; + /** Filter by the object’s `entityTableId` field. */ + entityTableId?: UUIDFilter; + /** Filter by the object’s `getByMask` field. */ + getByMask?: StringFilter; + /** Filter by the object’s `getMask` field. */ + getMask?: StringFilter; + /** Filter by the object’s `getMaskByName` field. */ + getMaskByName?: StringFilter; + /** Filter by the object’s `getPaddedMask` field. */ + getPaddedMask?: StringFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Negates the expression. */ + not?: CapabilitiesModuleFilter; + /** Checks for any expressions in this list. */ + or?: CapabilitiesModuleFilter[]; + /** Filter by the object’s `prefix` field. */ + prefix?: StringFilter; + /** Filter by the object’s `privateApiName` field. */ + privateApiName?: StringFilter; + /** Filter by the object’s `privateSchemaId` field. */ + privateSchemaId?: UUIDFilter; + /** Filter by the object’s `privateSchemaName` field. */ + privateSchemaName?: StringFilter; + /** Filter by the object’s `publicSchemaName` field. */ + publicSchemaName?: StringFilter; + /** Filter by the object’s `schemaId` field. */ + schemaId?: UUIDFilter; + /** Filter by the object’s `scope` field. */ + scope?: StringFilter; + /** Filter by the object’s `tableId` field. */ + tableId?: UUIDFilter; + /** Filter by the object’s `tableName` field. */ + tableName?: StringFilter; +} +/** A filter to be used against Boolean fields. All fields are combined with a logical ‘and.’ */ +export interface BooleanFilter { + /** Not equal to the specified value, treating null like an ordinary value. */ + distinctFrom?: boolean; + /** Equal to the specified value. */ + equalTo?: boolean; + /** Greater than the specified value. */ + greaterThan?: boolean; + /** Greater than or equal to the specified value. */ + greaterThanOrEqualTo?: boolean; + /** Included in the specified list. */ + in?: boolean[]; + /** Is null (if `true` is specified) or is not null (if `false` is specified). */ + isNull?: boolean; + /** Less than the specified value. */ + lessThan?: boolean; + /** Less than or equal to the specified value. */ + lessThanOrEqualTo?: boolean; + /** Equal to the specified value, treating null like an ordinary value. */ + notDistinctFrom?: boolean; + /** Not equal to the specified value. */ + notEqualTo?: boolean; + /** Not included in the specified list. */ + notIn?: boolean[]; +} /** A filter to be used against `CatalogModule` object types. All fields are combined with a logical ‘and.’ */ export interface CatalogModuleFilter { /** Checks for all expressions in this list. */ @@ -18725,14 +20187,18 @@ export interface CatalogModuleFilter { appsTableId?: UUIDFilter; /** Filter by the object’s `appsTableName` field. */ appsTableName?: StringFilter; + /** Filter by the object’s `bindingsTableId` field. */ + bindingsTableId?: UUIDFilter; + /** Filter by the object’s `bindingsTableName` field. */ + bindingsTableName?: StringFilter; /** Filter by the object’s `bucketsTableId` field. */ bucketsTableId?: UUIDFilter; /** Filter by the object’s `bucketsTableName` field. */ bucketsTableName?: StringFilter; /** Filter by the object’s `databaseId` field. */ databaseId?: UUIDFilter; - /** Filter by the object’s `defaultPermissions` field. */ - defaultPermissions?: StringListFilter; + /** Filter by the object’s `defaultCapabilities` field. */ + defaultCapabilities?: StringListFilter; /** Filter by the object’s `domainModules` relation. */ domainModules?: CatalogModuleToManyDomainModuleFilter; /** `domainModules` exist. */ @@ -18822,8 +20288,8 @@ export interface FunctionInvocationModuleFilter { attemptsTableName?: StringFilter; /** Filter by the object’s `databaseId` field. */ databaseId?: UUIDFilter; - /** Filter by the object’s `defaultPermissions` field. */ - defaultPermissions?: StringListFilter; + /** Filter by the object’s `defaultCapabilities` field. */ + defaultCapabilities?: StringListFilter; /** Filter by the object’s `entityField` field. */ entityField?: StringFilter; /** Filter by the object’s `entityTableId` field. */ @@ -18879,8 +20345,8 @@ export interface FunctionModuleFilter { capabilityBindingsTableId?: UUIDFilter; /** Filter by the object’s `databaseId` field. */ databaseId?: UUIDFilter; - /** Filter by the object’s `defaultPermissions` field. */ - defaultPermissions?: StringListFilter; + /** Filter by the object’s `defaultCapabilities` field. */ + defaultCapabilities?: StringListFilter; /** Filter by the object’s `definitionsTableId` field. */ definitionsTableId?: UUIDFilter; /** Filter by the object’s `definitionsTableName` field. */ @@ -18983,8 +20449,8 @@ export interface NamespaceModuleFilter { apiName?: StringFilter; /** Filter by the object’s `databaseId` field. */ databaseId?: UUIDFilter; - /** Filter by the object’s `defaultPermissions` field. */ - defaultPermissions?: StringListFilter; + /** Filter by the object’s `defaultCapabilities` field. */ + defaultCapabilities?: StringListFilter; /** Filter by the object’s `entityField` field. */ entityField?: StringFilter; /** Filter by the object’s `entityTableId` field. */ @@ -19054,10 +20520,10 @@ export interface StorageModuleFilter { confirmUploadDelay?: IntervalFilter; /** Filter by the object’s `databaseId` field. */ databaseId?: UUIDFilter; + /** Filter by the object’s `defaultCapabilities` field. */ + defaultCapabilities?: StringListFilter; /** Filter by the object’s `defaultMaxFileSize` field. */ defaultMaxFileSize?: BigIntFilter; - /** Filter by the object’s `defaultPermissions` field. */ - defaultPermissions?: StringListFilter; /** Filter by the object’s `downloadUrlExpirySeconds` field. */ downloadUrlExpirySeconds?: IntFilter; /** Filter by the object’s `endpoint` field. */ @@ -19068,6 +20534,10 @@ export interface StorageModuleFilter { entityTableId?: UUIDFilter; /** Filter by the object’s `fileEventsTableId` field. */ fileEventsTableId?: UUIDFilter; + /** Filter by the object’s `fileRefFields` relation. */ + fileRefFields?: StorageModuleToManyFileRefFieldFilter; + /** `fileRefFields` exist. */ + fileRefFieldsExist?: boolean; /** Filter by the object’s `filesTableId` field. */ filesTableId?: UUIDFilter; /** Filter by the object’s `filesTableName` field. */ @@ -19135,8 +20605,14 @@ export interface MerkleStoreModuleFilter { and?: MerkleStoreModuleFilter[]; /** Filter by the object’s `apiName` field. */ apiName?: StringFilter; + /** Filter by the object’s `capabilityKey` field. */ + capabilityKey?: StringFilter; /** Filter by the object’s `commitTableId` field. */ commitTableId?: UUIDFilter; + /** Filter by the object’s `contentPresetModules` relation. */ + contentPresetModules?: MerkleStoreModuleToManyContentPresetModuleFilter; + /** `contentPresetModules` exist. */ + contentPresetModulesExist?: boolean; /** Filter by the object’s `createdAt` field. */ createdAt?: DatetimeFilter; /** Filter by the object’s `databaseId` field. */ @@ -19165,8 +20641,6 @@ export interface MerkleStoreModuleFilter { pagesModules?: MerkleStoreModuleToManyPagesModuleFilter; /** `pagesModules` exist. */ pagesModulesExist?: boolean; - /** Filter by the object’s `permissionKey` field. */ - permissionKey?: StringFilter; /** Filter by the object’s `prefix` field. */ prefix?: StringFilter; /** Filter by the object’s `privateApiName` field. */ @@ -19190,31 +20664,6 @@ export interface MerkleStoreModuleFilter { /** Filter by the object’s `storeTableId` field. */ storeTableId?: UUIDFilter; } -/** A filter to be used against Boolean fields. All fields are combined with a logical ‘and.’ */ -export interface BooleanFilter { - /** Not equal to the specified value, treating null like an ordinary value. */ - distinctFrom?: boolean; - /** Equal to the specified value. */ - equalTo?: boolean; - /** Greater than the specified value. */ - greaterThan?: boolean; - /** Greater than or equal to the specified value. */ - greaterThanOrEqualTo?: boolean; - /** Included in the specified list. */ - in?: boolean[]; - /** Is null (if `true` is specified) or is not null (if `false` is specified). */ - isNull?: boolean; - /** Less than the specified value. */ - lessThan?: boolean; - /** Less than or equal to the specified value. */ - lessThanOrEqualTo?: boolean; - /** Equal to the specified value, treating null like an ordinary value. */ - notDistinctFrom?: boolean; - /** Not equal to the specified value. */ - notEqualTo?: boolean; - /** Not included in the specified list. */ - notIn?: boolean[]; -} /** A filter to be used against BigInt fields. All fields are combined with a logical ‘and.’ */ export interface BigIntFilter { /** Not equal to the specified value, treating null like an ordinary value. */ @@ -19251,89 +20700,33 @@ export type ConstructBlueprintPayloadSelect = { }; export interface CopyTemplateToBlueprintPayload { clientMutationId?: string | null; - result?: string | null; -} -export type CopyTemplateToBlueprintPayloadSelect = { - clientMutationId?: boolean; - result?: boolean; -}; -export interface ProvisionBucketPayload { - /** The access type applied */ - accessType: string; - /** The S3 bucket name that was provisioned */ - bucketName: string; - /** The S3 endpoint (null for AWS S3 default) */ - endpoint?: string | null; - /** Error message if provisioning failed */ - error?: string | null; - /** The storage provider used */ - provider: string; - /** Whether provisioning succeeded */ - success: boolean; -} -export type ProvisionBucketPayloadSelect = { - accessType?: boolean; - bucketName?: boolean; - endpoint?: boolean; - error?: boolean; - provider?: boolean; - success?: boolean; -}; -export interface ProvisionCheckConstraintPayload { - clientMutationId?: string | null; -} -export type ProvisionCheckConstraintPayloadSelect = { - clientMutationId?: boolean; -}; -export interface ProvisionFullTextSearchPayload { - clientMutationId?: string | null; - result?: string | null; -} -export type ProvisionFullTextSearchPayloadSelect = { - clientMutationId?: boolean; - result?: boolean; -}; -export interface ProvisionIndexPayload { - clientMutationId?: string | null; - result?: string | null; -} -export type ProvisionIndexPayloadSelect = { - clientMutationId?: boolean; - result?: boolean; -}; -export interface ProvisionRelationPayload { - clientMutationId?: string | null; - result?: ProvisionRelationRecord[] | null; -} -export type ProvisionRelationPayloadSelect = { - clientMutationId?: boolean; - result?: { - select: ProvisionRelationRecordSelect; - }; -}; -export interface ProvisionSpatialRelationPayload { - clientMutationId?: string | null; - result?: string | null; -} -export type ProvisionSpatialRelationPayloadSelect = { - clientMutationId?: boolean; - result?: boolean; -}; -export interface ProvisionTablePayload { - clientMutationId?: string | null; - result?: ProvisionTableRecord[] | null; + result?: string | null; } -export type ProvisionTablePayloadSelect = { +export type CopyTemplateToBlueprintPayloadSelect = { clientMutationId?: boolean; - result?: { - select: ProvisionTableRecordSelect; - }; + result?: boolean; }; -export interface ProvisionUniqueConstraintPayload { - clientMutationId?: string | null; +export interface ProvisionBucketPayload { + /** The access type applied */ + accessType: string; + /** The S3 bucket name that was provisioned */ + bucketName: string; + /** The S3 endpoint (null for AWS S3 default) */ + endpoint?: string | null; + /** Error message if provisioning failed */ + error?: string | null; + /** The storage provider used */ + provider: string; + /** Whether provisioning succeeded */ + success: boolean; } -export type ProvisionUniqueConstraintPayloadSelect = { - clientMutationId?: boolean; +export type ProvisionBucketPayloadSelect = { + accessType?: boolean; + bucketName?: boolean; + endpoint?: boolean; + error?: boolean; + provider?: boolean; + success?: boolean; }; export interface CreateAgentModulePayload { /** The `AgentModule` that was created by this mutation. */ @@ -19695,6 +21088,51 @@ export type DeleteBlueprintTemplatePayloadSelect = { }; clientMutationId?: boolean; }; +export interface CreateCapabilitiesModulePayload { + /** The `CapabilitiesModule` that was created by this mutation. */ + capabilitiesModule?: CapabilitiesModule | null; + capabilitiesModuleEdge?: CapabilitiesModuleEdge | null; + clientMutationId?: string | null; +} +export type CreateCapabilitiesModulePayloadSelect = { + capabilitiesModule?: { + select: CapabilitiesModuleSelect; + }; + capabilitiesModuleEdge?: { + select: CapabilitiesModuleEdgeSelect; + }; + clientMutationId?: boolean; +}; +export interface UpdateCapabilitiesModulePayload { + /** The `CapabilitiesModule` that was updated by this mutation. */ + capabilitiesModule?: CapabilitiesModule | null; + capabilitiesModuleEdge?: CapabilitiesModuleEdge | null; + clientMutationId?: string | null; +} +export type UpdateCapabilitiesModulePayloadSelect = { + capabilitiesModule?: { + select: CapabilitiesModuleSelect; + }; + capabilitiesModuleEdge?: { + select: CapabilitiesModuleEdgeSelect; + }; + clientMutationId?: boolean; +}; +export interface DeleteCapabilitiesModulePayload { + /** The `CapabilitiesModule` that was deleted by this mutation. */ + capabilitiesModule?: CapabilitiesModule | null; + capabilitiesModuleEdge?: CapabilitiesModuleEdge | null; + clientMutationId?: string | null; +} +export type DeleteCapabilitiesModulePayloadSelect = { + capabilitiesModule?: { + select: CapabilitiesModuleSelect; + }; + capabilitiesModuleEdge?: { + select: CapabilitiesModuleEdgeSelect; + }; + clientMutationId?: boolean; +}; export interface CreateCatalogModulePayload { /** The `CatalogModule` that was created by this mutation. */ catalogModule?: CatalogModule | null; @@ -19875,6 +21313,51 @@ export type DeleteConnectedAccountsModulePayloadSelect = { select: ConnectedAccountsModuleEdgeSelect; }; }; +export interface CreateContentPresetModulePayload { + clientMutationId?: string | null; + /** The `ContentPresetModule` that was created by this mutation. */ + contentPresetModule?: ContentPresetModule | null; + contentPresetModuleEdge?: ContentPresetModuleEdge | null; +} +export type CreateContentPresetModulePayloadSelect = { + clientMutationId?: boolean; + contentPresetModule?: { + select: ContentPresetModuleSelect; + }; + contentPresetModuleEdge?: { + select: ContentPresetModuleEdgeSelect; + }; +}; +export interface UpdateContentPresetModulePayload { + clientMutationId?: string | null; + /** The `ContentPresetModule` that was updated by this mutation. */ + contentPresetModule?: ContentPresetModule | null; + contentPresetModuleEdge?: ContentPresetModuleEdge | null; +} +export type UpdateContentPresetModulePayloadSelect = { + clientMutationId?: boolean; + contentPresetModule?: { + select: ContentPresetModuleSelect; + }; + contentPresetModuleEdge?: { + select: ContentPresetModuleEdgeSelect; + }; +}; +export interface DeleteContentPresetModulePayload { + clientMutationId?: string | null; + /** The `ContentPresetModule` that was deleted by this mutation. */ + contentPresetModule?: ContentPresetModule | null; + contentPresetModuleEdge?: ContentPresetModuleEdge | null; +} +export type DeleteContentPresetModulePayloadSelect = { + clientMutationId?: boolean; + contentPresetModule?: { + select: ContentPresetModuleSelect; + }; + contentPresetModuleEdge?: { + select: ContentPresetModuleEdgeSelect; + }; +}; export interface CreateCryptoAddressesModulePayload { clientMutationId?: string | null; /** The `CryptoAddressesModule` that was created by this mutation. */ @@ -19965,6 +21448,51 @@ export type DeleteCryptoAuthModulePayloadSelect = { select: CryptoAuthModuleEdgeSelect; }; }; +export interface CreateDataCapabilitiesFieldPayload { + clientMutationId?: string | null; + /** The `DataCapabilitiesField` that was created by this mutation. */ + dataCapabilitiesField?: DataCapabilitiesField | null; + dataCapabilitiesFieldEdge?: DataCapabilitiesFieldEdge | null; +} +export type CreateDataCapabilitiesFieldPayloadSelect = { + clientMutationId?: boolean; + dataCapabilitiesField?: { + select: DataCapabilitiesFieldSelect; + }; + dataCapabilitiesFieldEdge?: { + select: DataCapabilitiesFieldEdgeSelect; + }; +}; +export interface UpdateDataCapabilitiesFieldPayload { + clientMutationId?: string | null; + /** The `DataCapabilitiesField` that was updated by this mutation. */ + dataCapabilitiesField?: DataCapabilitiesField | null; + dataCapabilitiesFieldEdge?: DataCapabilitiesFieldEdge | null; +} +export type UpdateDataCapabilitiesFieldPayloadSelect = { + clientMutationId?: boolean; + dataCapabilitiesField?: { + select: DataCapabilitiesFieldSelect; + }; + dataCapabilitiesFieldEdge?: { + select: DataCapabilitiesFieldEdgeSelect; + }; +}; +export interface DeleteDataCapabilitiesFieldPayload { + clientMutationId?: string | null; + /** The `DataCapabilitiesField` that was deleted by this mutation. */ + dataCapabilitiesField?: DataCapabilitiesField | null; + dataCapabilitiesFieldEdge?: DataCapabilitiesFieldEdge | null; +} +export type DeleteDataCapabilitiesFieldPayloadSelect = { + clientMutationId?: boolean; + dataCapabilitiesField?: { + select: DataCapabilitiesFieldSelect; + }; + dataCapabilitiesFieldEdge?: { + select: DataCapabilitiesFieldEdgeSelect; + }; +}; export interface CreateDatabaseProvisionModulePayload { clientMutationId?: string | null; /** The `DatabaseProvisionModule` that was created by this mutation. */ @@ -20415,6 +21943,51 @@ export type DeleteDomainModulePayloadSelect = { select: DomainModuleEdgeSelect; }; }; +export interface CreateEmailSenderModulePayload { + clientMutationId?: string | null; + /** The `EmailSenderModule` that was created by this mutation. */ + emailSenderModule?: EmailSenderModule | null; + emailSenderModuleEdge?: EmailSenderModuleEdge | null; +} +export type CreateEmailSenderModulePayloadSelect = { + clientMutationId?: boolean; + emailSenderModule?: { + select: EmailSenderModuleSelect; + }; + emailSenderModuleEdge?: { + select: EmailSenderModuleEdgeSelect; + }; +}; +export interface UpdateEmailSenderModulePayload { + clientMutationId?: string | null; + /** The `EmailSenderModule` that was updated by this mutation. */ + emailSenderModule?: EmailSenderModule | null; + emailSenderModuleEdge?: EmailSenderModuleEdge | null; +} +export type UpdateEmailSenderModulePayloadSelect = { + clientMutationId?: boolean; + emailSenderModule?: { + select: EmailSenderModuleSelect; + }; + emailSenderModuleEdge?: { + select: EmailSenderModuleEdgeSelect; + }; +}; +export interface DeleteEmailSenderModulePayload { + clientMutationId?: string | null; + /** The `EmailSenderModule` that was deleted by this mutation. */ + emailSenderModule?: EmailSenderModule | null; + emailSenderModuleEdge?: EmailSenderModuleEdge | null; +} +export type DeleteEmailSenderModulePayloadSelect = { + clientMutationId?: boolean; + emailSenderModule?: { + select: EmailSenderModuleSelect; + }; + emailSenderModuleEdge?: { + select: EmailSenderModuleEdgeSelect; + }; +}; export interface CreateEmailsModulePayload { clientMutationId?: string | null; /** The `EmailsModule` that was created by this mutation. */ @@ -20550,6 +22123,51 @@ export type DeleteEventsModulePayloadSelect = { select: EventsModuleEdgeSelect; }; }; +export interface CreateFileRefFieldPayload { + clientMutationId?: string | null; + /** The `FileRefField` that was created by this mutation. */ + fileRefField?: FileRefField | null; + fileRefFieldEdge?: FileRefFieldEdge | null; +} +export type CreateFileRefFieldPayloadSelect = { + clientMutationId?: boolean; + fileRefField?: { + select: FileRefFieldSelect; + }; + fileRefFieldEdge?: { + select: FileRefFieldEdgeSelect; + }; +}; +export interface UpdateFileRefFieldPayload { + clientMutationId?: string | null; + /** The `FileRefField` that was updated by this mutation. */ + fileRefField?: FileRefField | null; + fileRefFieldEdge?: FileRefFieldEdge | null; +} +export type UpdateFileRefFieldPayloadSelect = { + clientMutationId?: boolean; + fileRefField?: { + select: FileRefFieldSelect; + }; + fileRefFieldEdge?: { + select: FileRefFieldEdgeSelect; + }; +}; +export interface DeleteFileRefFieldPayload { + clientMutationId?: string | null; + /** The `FileRefField` that was deleted by this mutation. */ + fileRefField?: FileRefField | null; + fileRefFieldEdge?: FileRefFieldEdge | null; +} +export type DeleteFileRefFieldPayloadSelect = { + clientMutationId?: boolean; + fileRefField?: { + select: FileRefFieldSelect; + }; + fileRefFieldEdge?: { + select: FileRefFieldEdgeSelect; + }; +}; export interface CreateFunctionDeploymentModulePayload { clientMutationId?: string | null; /** The `FunctionDeploymentModule` that was created by this mutation. */ @@ -21495,6 +23113,51 @@ export type DeleteNotificationsModulePayloadSelect = { select: NotificationsModuleEdgeSelect; }; }; +export interface CreateOauthRequestsModulePayload { + clientMutationId?: string | null; + /** The `OauthRequestsModule` that was created by this mutation. */ + oauthRequestsModule?: OauthRequestsModule | null; + oauthRequestsModuleEdge?: OauthRequestsModuleEdge | null; +} +export type CreateOauthRequestsModulePayloadSelect = { + clientMutationId?: boolean; + oauthRequestsModule?: { + select: OauthRequestsModuleSelect; + }; + oauthRequestsModuleEdge?: { + select: OauthRequestsModuleEdgeSelect; + }; +}; +export interface UpdateOauthRequestsModulePayload { + clientMutationId?: string | null; + /** The `OauthRequestsModule` that was updated by this mutation. */ + oauthRequestsModule?: OauthRequestsModule | null; + oauthRequestsModuleEdge?: OauthRequestsModuleEdge | null; +} +export type UpdateOauthRequestsModulePayloadSelect = { + clientMutationId?: boolean; + oauthRequestsModule?: { + select: OauthRequestsModuleSelect; + }; + oauthRequestsModuleEdge?: { + select: OauthRequestsModuleEdgeSelect; + }; +}; +export interface DeleteOauthRequestsModulePayload { + clientMutationId?: string | null; + /** The `OauthRequestsModule` that was deleted by this mutation. */ + oauthRequestsModule?: OauthRequestsModule | null; + oauthRequestsModuleEdge?: OauthRequestsModuleEdge | null; +} +export type DeleteOauthRequestsModulePayloadSelect = { + clientMutationId?: boolean; + oauthRequestsModule?: { + select: OauthRequestsModuleSelect; + }; + oauthRequestsModuleEdge?: { + select: OauthRequestsModuleEdgeSelect; + }; +}; export interface CreatePagesModulePayload { clientMutationId?: string | null; /** The `PagesModule` that was created by this mutation. */ @@ -21540,51 +23203,6 @@ export type DeletePagesModulePayloadSelect = { select: PagesModuleEdgeSelect; }; }; -export interface CreatePermissionsModulePayload { - clientMutationId?: string | null; - /** The `PermissionsModule` that was created by this mutation. */ - permissionsModule?: PermissionsModule | null; - permissionsModuleEdge?: PermissionsModuleEdge | null; -} -export type CreatePermissionsModulePayloadSelect = { - clientMutationId?: boolean; - permissionsModule?: { - select: PermissionsModuleSelect; - }; - permissionsModuleEdge?: { - select: PermissionsModuleEdgeSelect; - }; -}; -export interface UpdatePermissionsModulePayload { - clientMutationId?: string | null; - /** The `PermissionsModule` that was updated by this mutation. */ - permissionsModule?: PermissionsModule | null; - permissionsModuleEdge?: PermissionsModuleEdge | null; -} -export type UpdatePermissionsModulePayloadSelect = { - clientMutationId?: boolean; - permissionsModule?: { - select: PermissionsModuleSelect; - }; - permissionsModuleEdge?: { - select: PermissionsModuleEdgeSelect; - }; -}; -export interface DeletePermissionsModulePayload { - clientMutationId?: string | null; - /** The `PermissionsModule` that was deleted by this mutation. */ - permissionsModule?: PermissionsModule | null; - permissionsModuleEdge?: PermissionsModuleEdge | null; -} -export type DeletePermissionsModulePayloadSelect = { - clientMutationId?: boolean; - permissionsModule?: { - select: PermissionsModuleSelect; - }; - permissionsModuleEdge?: { - select: PermissionsModuleEdgeSelect; - }; -}; export interface CreatePhoneNumbersModulePayload { clientMutationId?: string | null; /** The `PhoneNumbersModule` that was created by this mutation. */ @@ -22080,6 +23698,51 @@ export type DeleteRouteModulePayloadSelect = { select: RouteModuleEdgeSelect; }; }; +export interface CreateScopeTypesModulePayload { + clientMutationId?: string | null; + /** The `ScopeTypesModule` that was created by this mutation. */ + scopeTypesModule?: ScopeTypesModule | null; + scopeTypesModuleEdge?: ScopeTypesModuleEdge | null; +} +export type CreateScopeTypesModulePayloadSelect = { + clientMutationId?: boolean; + scopeTypesModule?: { + select: ScopeTypesModuleSelect; + }; + scopeTypesModuleEdge?: { + select: ScopeTypesModuleEdgeSelect; + }; +}; +export interface UpdateScopeTypesModulePayload { + clientMutationId?: string | null; + /** The `ScopeTypesModule` that was updated by this mutation. */ + scopeTypesModule?: ScopeTypesModule | null; + scopeTypesModuleEdge?: ScopeTypesModuleEdge | null; +} +export type UpdateScopeTypesModulePayloadSelect = { + clientMutationId?: boolean; + scopeTypesModule?: { + select: ScopeTypesModuleSelect; + }; + scopeTypesModuleEdge?: { + select: ScopeTypesModuleEdgeSelect; + }; +}; +export interface DeleteScopeTypesModulePayload { + clientMutationId?: string | null; + /** The `ScopeTypesModule` that was deleted by this mutation. */ + scopeTypesModule?: ScopeTypesModule | null; + scopeTypesModuleEdge?: ScopeTypesModuleEdge | null; +} +export type DeleteScopeTypesModulePayloadSelect = { + clientMutationId?: boolean; + scopeTypesModule?: { + select: ScopeTypesModuleSelect; + }; + scopeTypesModuleEdge?: { + select: ScopeTypesModuleEdgeSelect; + }; +}; export interface CreateSecureTableProvisionPayload { clientMutationId?: string | null; /** The `SecureTableProvision` that was created by this mutation. */ @@ -22530,6 +24193,51 @@ export type DeleteUserSettingsModulePayloadSelect = { select: UserSettingsModuleEdgeSelect; }; }; +export interface CreateUserSettingsSecurityModulePayload { + clientMutationId?: string | null; + /** The `UserSettingsSecurityModule` that was created by this mutation. */ + userSettingsSecurityModule?: UserSettingsSecurityModule | null; + userSettingsSecurityModuleEdge?: UserSettingsSecurityModuleEdge | null; +} +export type CreateUserSettingsSecurityModulePayloadSelect = { + clientMutationId?: boolean; + userSettingsSecurityModule?: { + select: UserSettingsSecurityModuleSelect; + }; + userSettingsSecurityModuleEdge?: { + select: UserSettingsSecurityModuleEdgeSelect; + }; +}; +export interface UpdateUserSettingsSecurityModulePayload { + clientMutationId?: string | null; + /** The `UserSettingsSecurityModule` that was updated by this mutation. */ + userSettingsSecurityModule?: UserSettingsSecurityModule | null; + userSettingsSecurityModuleEdge?: UserSettingsSecurityModuleEdge | null; +} +export type UpdateUserSettingsSecurityModulePayloadSelect = { + clientMutationId?: boolean; + userSettingsSecurityModule?: { + select: UserSettingsSecurityModuleSelect; + }; + userSettingsSecurityModuleEdge?: { + select: UserSettingsSecurityModuleEdgeSelect; + }; +}; +export interface DeleteUserSettingsSecurityModulePayload { + clientMutationId?: string | null; + /** The `UserSettingsSecurityModule` that was deleted by this mutation. */ + userSettingsSecurityModule?: UserSettingsSecurityModule | null; + userSettingsSecurityModuleEdge?: UserSettingsSecurityModuleEdge | null; +} +export type DeleteUserSettingsSecurityModulePayloadSelect = { + clientMutationId?: boolean; + userSettingsSecurityModule?: { + select: UserSettingsSecurityModuleSelect; + }; + userSettingsSecurityModuleEdge?: { + select: UserSettingsSecurityModuleEdgeSelect; + }; +}; export interface CreateUserStateModulePayload { clientMutationId?: string | null; /** The `UserStateModule` that was created by this mutation. */ @@ -22755,26 +24463,6 @@ export type DeleteWebhookModulePayloadSelect = { select: WebhookModuleEdgeSelect; }; }; -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 ProvisionTableRecord { - outFields?: string[] | null; - outTableId?: string | null; -} -export type ProvisionTableRecordSelect = { - outFields?: boolean; - outTableId?: boolean; -}; /** A `AgentModule` edge in the connection. */ export interface AgentModuleEdge { cursor?: string | null; @@ -22871,6 +24559,18 @@ export type BlueprintTemplateEdgeSelect = { select: BlueprintTemplateSelect; }; }; +/** A `CapabilitiesModule` edge in the connection. */ +export interface CapabilitiesModuleEdge { + cursor?: string | null; + /** The `CapabilitiesModule` at the end of the edge. */ + node?: CapabilitiesModule | null; +} +export type CapabilitiesModuleEdgeSelect = { + cursor?: boolean; + node?: { + select: CapabilitiesModuleSelect; + }; +}; /** A `CatalogModule` edge in the connection. */ export interface CatalogModuleEdge { cursor?: string | null; @@ -22919,6 +24619,18 @@ export type ConnectedAccountsModuleEdgeSelect = { select: ConnectedAccountsModuleSelect; }; }; +/** A `ContentPresetModule` edge in the connection. */ +export interface ContentPresetModuleEdge { + cursor?: string | null; + /** The `ContentPresetModule` at the end of the edge. */ + node?: ContentPresetModule | null; +} +export type ContentPresetModuleEdgeSelect = { + cursor?: boolean; + node?: { + select: ContentPresetModuleSelect; + }; +}; /** A `CryptoAddressesModule` edge in the connection. */ export interface CryptoAddressesModuleEdge { cursor?: string | null; @@ -22943,6 +24655,18 @@ export type CryptoAuthModuleEdgeSelect = { select: CryptoAuthModuleSelect; }; }; +/** A `DataCapabilitiesField` edge in the connection. */ +export interface DataCapabilitiesFieldEdge { + cursor?: string | null; + /** The `DataCapabilitiesField` at the end of the edge. */ + node?: DataCapabilitiesField | null; +} +export type DataCapabilitiesFieldEdgeSelect = { + cursor?: boolean; + node?: { + select: DataCapabilitiesFieldSelect; + }; +}; /** A `DatabaseProvisionModule` edge in the connection. */ export interface DatabaseProvisionModuleEdge { cursor?: string | null; @@ -23063,6 +24787,18 @@ export type DomainModuleEdgeSelect = { select: DomainModuleSelect; }; }; +/** A `EmailSenderModule` edge in the connection. */ +export interface EmailSenderModuleEdge { + cursor?: string | null; + /** The `EmailSenderModule` at the end of the edge. */ + node?: EmailSenderModule | null; +} +export type EmailSenderModuleEdgeSelect = { + cursor?: boolean; + node?: { + select: EmailSenderModuleSelect; + }; +}; /** A `EmailsModule` edge in the connection. */ export interface EmailsModuleEdge { cursor?: string | null; @@ -23099,6 +24835,18 @@ export type EventsModuleEdgeSelect = { select: EventsModuleSelect; }; }; +/** A `FileRefField` edge in the connection. */ +export interface FileRefFieldEdge { + cursor?: string | null; + /** The `FileRefField` at the end of the edge. */ + node?: FileRefField | null; +} +export type FileRefFieldEdgeSelect = { + cursor?: boolean; + node?: { + select: FileRefFieldSelect; + }; +}; /** A `FunctionDeploymentModule` edge in the connection. */ export interface FunctionDeploymentModuleEdge { cursor?: string | null; @@ -23351,28 +25099,28 @@ export type NotificationsModuleEdgeSelect = { select: NotificationsModuleSelect; }; }; -/** A `PagesModule` edge in the connection. */ -export interface PagesModuleEdge { +/** A `OauthRequestsModule` edge in the connection. */ +export interface OauthRequestsModuleEdge { cursor?: string | null; - /** The `PagesModule` at the end of the edge. */ - node?: PagesModule | null; + /** The `OauthRequestsModule` at the end of the edge. */ + node?: OauthRequestsModule | null; } -export type PagesModuleEdgeSelect = { +export type OauthRequestsModuleEdgeSelect = { cursor?: boolean; node?: { - select: PagesModuleSelect; + select: OauthRequestsModuleSelect; }; }; -/** A `PermissionsModule` edge in the connection. */ -export interface PermissionsModuleEdge { +/** A `PagesModule` edge in the connection. */ +export interface PagesModuleEdge { cursor?: string | null; - /** The `PermissionsModule` at the end of the edge. */ - node?: PermissionsModule | null; + /** The `PagesModule` at the end of the edge. */ + node?: PagesModule | null; } -export type PermissionsModuleEdgeSelect = { +export type PagesModuleEdgeSelect = { cursor?: boolean; node?: { - select: PermissionsModuleSelect; + select: PagesModuleSelect; }; }; /** A `PhoneNumbersModule` edge in the connection. */ @@ -23507,6 +25255,18 @@ export type RouteModuleEdgeSelect = { select: RouteModuleSelect; }; }; +/** A `ScopeTypesModule` edge in the connection. */ +export interface ScopeTypesModuleEdge { + cursor?: string | null; + /** The `ScopeTypesModule` at the end of the edge. */ + node?: ScopeTypesModule | null; +} +export type ScopeTypesModuleEdgeSelect = { + cursor?: boolean; + node?: { + select: ScopeTypesModuleSelect; + }; +}; /** A `SecureTableProvision` edge in the connection. */ export interface SecureTableProvisionEdge { cursor?: string | null; @@ -23627,6 +25387,18 @@ export type UserSettingsModuleEdgeSelect = { select: UserSettingsModuleSelect; }; }; +/** A `UserSettingsSecurityModule` edge in the connection. */ +export interface UserSettingsSecurityModuleEdge { + cursor?: string | null; + /** The `UserSettingsSecurityModule` at the end of the edge. */ + node?: UserSettingsSecurityModule | null; +} +export type UserSettingsSecurityModuleEdgeSelect = { + cursor?: boolean; + node?: { + select: UserSettingsSecurityModuleSelect; + }; +}; /** A `UserStateModule` edge in the connection. */ export interface UserStateModuleEdge { cursor?: string | null; diff --git a/sdk/constructive-cli/src/modules/orm/models/capabilitiesModule.ts b/sdk/constructive-cli/src/modules/orm/models/capabilitiesModule.ts new file mode 100644 index 0000000000..60aa4dabf4 --- /dev/null +++ b/sdk/constructive-cli/src/modules/orm/models/capabilitiesModule.ts @@ -0,0 +1,245 @@ +/** + * CapabilitiesModule 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 { + CapabilitiesModule, + CapabilitiesModuleWithRelations, + CapabilitiesModuleSelect, + CapabilitiesModuleFilter, + CapabilitiesModuleOrderBy, + CreateCapabilitiesModuleInput, + UpdateCapabilitiesModuleInput, + CapabilitiesModulePatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class CapabilitiesModuleModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + capabilitiesModules: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'CapabilitiesModule', + 'capabilitiesModules', + 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, + }, + 'CapabilitiesModuleFilter', + 'CapabilitiesModuleOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'CapabilitiesModule', + fieldName: 'capabilitiesModules', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + capabilitiesModule: InferSelectResult | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'CapabilitiesModule', + 'capabilitiesModules', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'CapabilitiesModuleFilter', + 'CapabilitiesModuleOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'CapabilitiesModule', + fieldName: 'capabilitiesModule', + document, + variables, + transform: (data: { + capabilitiesModules?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + capabilitiesModule: data.capabilitiesModules?.nodes?.[0] ?? null, + }), + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + capabilitiesModule: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'CapabilitiesModule', + 'capabilitiesModules', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'CapabilitiesModuleFilter', + 'CapabilitiesModuleOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'CapabilitiesModule', + fieldName: 'capabilitiesModule', + document, + variables, + transform: (data: { + capabilitiesModules?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + capabilitiesModule: data.capabilitiesModules?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createCapabilitiesModule: { + capabilitiesModule: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'CapabilitiesModule', + 'createCapabilitiesModule', + 'capabilitiesModule', + args.select, + args.data, + 'CreateCapabilitiesModuleInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'CapabilitiesModule', + fieldName: 'createCapabilitiesModule', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + CapabilitiesModulePatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateCapabilitiesModule: { + capabilitiesModule: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'CapabilitiesModule', + 'updateCapabilitiesModule', + 'capabilitiesModule', + args.select, + args.where.id, + args.data, + 'UpdateCapabilitiesModuleInput', + 'id', + 'capabilitiesModulePatch', + connectionFieldsMap, + undefined + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'CapabilitiesModule', + fieldName: 'updateCapabilitiesModule', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteCapabilitiesModule: { + capabilitiesModule: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'CapabilitiesModule', + 'deleteCapabilitiesModule', + 'capabilitiesModule', + { + id: args.where.id, + }, + 'DeleteCapabilitiesModuleInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'CapabilitiesModule', + fieldName: 'deleteCapabilitiesModule', + document, + variables, + }); + } +} diff --git a/sdk/constructive-cli/src/modules/orm/models/contentPresetModule.ts b/sdk/constructive-cli/src/modules/orm/models/contentPresetModule.ts new file mode 100644 index 0000000000..b756c7a1b2 --- /dev/null +++ b/sdk/constructive-cli/src/modules/orm/models/contentPresetModule.ts @@ -0,0 +1,245 @@ +/** + * ContentPresetModule 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 { + ContentPresetModule, + ContentPresetModuleWithRelations, + ContentPresetModuleSelect, + ContentPresetModuleFilter, + ContentPresetModuleOrderBy, + CreateContentPresetModuleInput, + UpdateContentPresetModuleInput, + ContentPresetModulePatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class ContentPresetModuleModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + contentPresetModules: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'ContentPresetModule', + 'contentPresetModules', + 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, + }, + 'ContentPresetModuleFilter', + 'ContentPresetModuleOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'ContentPresetModule', + fieldName: 'contentPresetModules', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + contentPresetModule: InferSelectResult | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'ContentPresetModule', + 'contentPresetModules', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'ContentPresetModuleFilter', + 'ContentPresetModuleOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'ContentPresetModule', + fieldName: 'contentPresetModule', + document, + variables, + transform: (data: { + contentPresetModules?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + contentPresetModule: data.contentPresetModules?.nodes?.[0] ?? null, + }), + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + contentPresetModule: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'ContentPresetModule', + 'contentPresetModules', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'ContentPresetModuleFilter', + 'ContentPresetModuleOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'ContentPresetModule', + fieldName: 'contentPresetModule', + document, + variables, + transform: (data: { + contentPresetModules?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + contentPresetModule: data.contentPresetModules?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createContentPresetModule: { + contentPresetModule: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'ContentPresetModule', + 'createContentPresetModule', + 'contentPresetModule', + args.select, + args.data, + 'CreateContentPresetModuleInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'ContentPresetModule', + fieldName: 'createContentPresetModule', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + ContentPresetModulePatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateContentPresetModule: { + contentPresetModule: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'ContentPresetModule', + 'updateContentPresetModule', + 'contentPresetModule', + args.select, + args.where.id, + args.data, + 'UpdateContentPresetModuleInput', + 'id', + 'contentPresetModulePatch', + connectionFieldsMap, + undefined + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'ContentPresetModule', + fieldName: 'updateContentPresetModule', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteContentPresetModule: { + contentPresetModule: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'ContentPresetModule', + 'deleteContentPresetModule', + 'contentPresetModule', + { + id: args.where.id, + }, + 'DeleteContentPresetModuleInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'ContentPresetModule', + fieldName: 'deleteContentPresetModule', + document, + variables, + }); + } +} diff --git a/sdk/constructive-cli/src/modules/orm/models/dataCapabilitiesField.ts b/sdk/constructive-cli/src/modules/orm/models/dataCapabilitiesField.ts new file mode 100644 index 0000000000..f2d9ae971b --- /dev/null +++ b/sdk/constructive-cli/src/modules/orm/models/dataCapabilitiesField.ts @@ -0,0 +1,247 @@ +/** + * DataCapabilitiesField 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 { + DataCapabilitiesField, + DataCapabilitiesFieldWithRelations, + DataCapabilitiesFieldSelect, + DataCapabilitiesFieldFilter, + DataCapabilitiesFieldOrderBy, + CreateDataCapabilitiesFieldInput, + UpdateDataCapabilitiesFieldInput, + DataCapabilitiesFieldPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class DataCapabilitiesFieldModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + dataCapabilitiesFields: ConnectionResult< + InferSelectResult + >; + }> { + const { document, variables } = buildFindManyDocument( + 'DataCapabilitiesField', + 'dataCapabilitiesFields', + 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, + }, + 'DataCapabilitiesFieldFilter', + 'DataCapabilitiesFieldOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'DataCapabilitiesField', + fieldName: 'dataCapabilitiesFields', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + dataCapabilitiesField: InferSelectResult | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'DataCapabilitiesField', + 'dataCapabilitiesFields', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'DataCapabilitiesFieldFilter', + 'DataCapabilitiesFieldOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'DataCapabilitiesField', + fieldName: 'dataCapabilitiesField', + document, + variables, + transform: (data: { + dataCapabilitiesFields?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + dataCapabilitiesField: data.dataCapabilitiesFields?.nodes?.[0] ?? null, + }), + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + dataCapabilitiesField: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'DataCapabilitiesField', + 'dataCapabilitiesFields', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'DataCapabilitiesFieldFilter', + 'DataCapabilitiesFieldOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'DataCapabilitiesField', + fieldName: 'dataCapabilitiesField', + document, + variables, + transform: (data: { + dataCapabilitiesFields?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + dataCapabilitiesField: data.dataCapabilitiesFields?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createDataCapabilitiesField: { + dataCapabilitiesField: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'DataCapabilitiesField', + 'createDataCapabilitiesField', + 'dataCapabilitiesField', + args.select, + args.data, + 'CreateDataCapabilitiesFieldInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'DataCapabilitiesField', + fieldName: 'createDataCapabilitiesField', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + DataCapabilitiesFieldPatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateDataCapabilitiesField: { + dataCapabilitiesField: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'DataCapabilitiesField', + 'updateDataCapabilitiesField', + 'dataCapabilitiesField', + args.select, + args.where.id, + args.data, + 'UpdateDataCapabilitiesFieldInput', + 'id', + 'dataCapabilitiesFieldPatch', + connectionFieldsMap, + undefined + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'DataCapabilitiesField', + fieldName: 'updateDataCapabilitiesField', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteDataCapabilitiesField: { + dataCapabilitiesField: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'DataCapabilitiesField', + 'deleteDataCapabilitiesField', + 'dataCapabilitiesField', + { + id: args.where.id, + }, + 'DeleteDataCapabilitiesFieldInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'DataCapabilitiesField', + fieldName: 'deleteDataCapabilitiesField', + document, + variables, + }); + } +} diff --git a/sdk/constructive-cli/src/modules/orm/models/permissionsModule.ts b/sdk/constructive-cli/src/modules/orm/models/emailSenderModule.ts similarity index 51% rename from sdk/constructive-cli/src/modules/orm/models/permissionsModule.ts rename to sdk/constructive-cli/src/modules/orm/models/emailSenderModule.ts index 2a330457b5..3f5f0f6385 100644 --- a/sdk/constructive-cli/src/modules/orm/models/permissionsModule.ts +++ b/sdk/constructive-cli/src/modules/orm/models/emailSenderModule.ts @@ -1,5 +1,5 @@ /** - * PermissionsModule model for ORM client + * EmailSenderModule 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 { - PermissionsModule, - PermissionsModuleWithRelations, - PermissionsModuleSelect, - PermissionsModuleFilter, - PermissionsModuleOrderBy, - CreatePermissionsModuleInput, - UpdatePermissionsModuleInput, - PermissionsModulePatch, + EmailSenderModule, + EmailSenderModuleWithRelations, + EmailSenderModuleSelect, + EmailSenderModuleFilter, + EmailSenderModuleOrderBy, + CreateEmailSenderModuleInput, + UpdateEmailSenderModuleInput, + EmailSenderModulePatch, } from '../input-types'; import { connectionFieldsMap } from '../input-types'; -export class PermissionsModuleModel { +export class EmailSenderModuleModel { constructor(private client: OrmClient) {} - findMany( - args: FindManyArgs & { + findMany( + args: FindManyArgs & { select: S; - } & StrictSelect + } & StrictSelect ): QueryBuilder<{ - permissionsModules: ConnectionResult>; + emailSenderModules: ConnectionResult>; }> { const { document, variables } = buildFindManyDocument( - 'PermissionsModule', - 'permissionsModules', + 'EmailSenderModule', + 'emailSenderModules', args.select, { where: args?.where, @@ -56,65 +56,65 @@ export class PermissionsModuleModel { before: args?.before, offset: args?.offset, }, - 'PermissionsModuleFilter', - 'PermissionsModuleOrderBy', + 'EmailSenderModuleFilter', + 'EmailSenderModuleOrderBy', connectionFieldsMap ); return new QueryBuilder({ client: this.client, operation: 'query', - operationName: 'PermissionsModule', - fieldName: 'permissionsModules', + operationName: 'EmailSenderModule', + fieldName: 'emailSenderModules', document, variables, }); } - findFirst( - args: FindFirstArgs & { + findFirst( + args: FindFirstArgs & { select: S; - } & StrictSelect + } & StrictSelect ): QueryBuilder<{ - permissionsModule: InferSelectResult | null; + emailSenderModule: InferSelectResult | null; }> { const { document, variables } = buildFindFirstDocument( - 'PermissionsModule', - 'permissionsModules', + 'EmailSenderModule', + 'emailSenderModules', args.select, { where: args?.where, orderBy: args?.orderBy as string[] | undefined, }, - 'PermissionsModuleFilter', - 'PermissionsModuleOrderBy', + 'EmailSenderModuleFilter', + 'EmailSenderModuleOrderBy', connectionFieldsMap ); return new QueryBuilder({ client: this.client, operation: 'query', - operationName: 'PermissionsModule', - fieldName: 'permissionsModule', + operationName: 'EmailSenderModule', + fieldName: 'emailSenderModule', document, variables, transform: (data: { - permissionsModules?: { - nodes?: InferSelectResult[]; + emailSenderModules?: { + nodes?: InferSelectResult[]; }; }) => ({ - permissionsModule: data.permissionsModules?.nodes?.[0] ?? null, + emailSenderModule: data.emailSenderModules?.nodes?.[0] ?? null, }), }); } - findOne( + findOne( args: { id: string; select: S; - } & StrictSelect + } & StrictSelect ): QueryBuilder<{ - permissionsModule: InferSelectResult | null; + emailSenderModule: InferSelectResult | null; }> { const { document, variables } = buildFindManyDocument( - 'PermissionsModule', - 'permissionsModules', + 'EmailSenderModule', + 'emailSenderModules', args.select, { where: { @@ -124,91 +124,91 @@ export class PermissionsModuleModel { }, first: 1, }, - 'PermissionsModuleFilter', - 'PermissionsModuleOrderBy', + 'EmailSenderModuleFilter', + 'EmailSenderModuleOrderBy', connectionFieldsMap ); return new QueryBuilder({ client: this.client, operation: 'query', - operationName: 'PermissionsModule', - fieldName: 'permissionsModule', + operationName: 'EmailSenderModule', + fieldName: 'emailSenderModule', document, variables, transform: (data: { - permissionsModules?: { - nodes?: InferSelectResult[]; + emailSenderModules?: { + nodes?: InferSelectResult[]; }; }) => ({ - permissionsModule: data.permissionsModules?.nodes?.[0] ?? null, + emailSenderModule: data.emailSenderModules?.nodes?.[0] ?? null, }), }); } - create( - args: CreateArgs & { + create( + args: CreateArgs & { select: S; - } & StrictSelect + } & StrictSelect ): QueryBuilder<{ - createPermissionsModule: { - permissionsModule: InferSelectResult; + createEmailSenderModule: { + emailSenderModule: InferSelectResult; }; }> { const { document, variables } = buildCreateDocument( - 'PermissionsModule', - 'createPermissionsModule', - 'permissionsModule', + 'EmailSenderModule', + 'createEmailSenderModule', + 'emailSenderModule', args.select, args.data, - 'CreatePermissionsModuleInput', + 'CreateEmailSenderModuleInput', connectionFieldsMap ); return new QueryBuilder({ client: this.client, operation: 'mutation', - operationName: 'PermissionsModule', - fieldName: 'createPermissionsModule', + operationName: 'EmailSenderModule', + fieldName: 'createEmailSenderModule', document, variables, }); } - update( + update( args: UpdateArgs< S, { id: string; }, - PermissionsModulePatch + EmailSenderModulePatch > & { select: S; - } & StrictSelect + } & StrictSelect ): QueryBuilder<{ - updatePermissionsModule: { - permissionsModule: InferSelectResult; + updateEmailSenderModule: { + emailSenderModule: InferSelectResult; }; }> { const { document, variables } = buildUpdateByPkDocument( - 'PermissionsModule', - 'updatePermissionsModule', - 'permissionsModule', + 'EmailSenderModule', + 'updateEmailSenderModule', + 'emailSenderModule', args.select, args.where.id, args.data, - 'UpdatePermissionsModuleInput', + 'UpdateEmailSenderModuleInput', 'id', - 'permissionsModulePatch', + 'emailSenderModulePatch', connectionFieldsMap, undefined ); return new QueryBuilder({ client: this.client, operation: 'mutation', - operationName: 'PermissionsModule', - fieldName: 'updatePermissionsModule', + operationName: 'EmailSenderModule', + fieldName: 'updateEmailSenderModule', document, variables, }); } - delete( + delete( args: DeleteArgs< { id: string; @@ -216,28 +216,28 @@ export class PermissionsModuleModel { S > & { select: S; - } & StrictSelect + } & StrictSelect ): QueryBuilder<{ - deletePermissionsModule: { - permissionsModule: InferSelectResult; + deleteEmailSenderModule: { + emailSenderModule: InferSelectResult; }; }> { const { document, variables } = buildDeleteByPkDocument( - 'PermissionsModule', - 'deletePermissionsModule', - 'permissionsModule', + 'EmailSenderModule', + 'deleteEmailSenderModule', + 'emailSenderModule', { id: args.where.id, }, - 'DeletePermissionsModuleInput', + 'DeleteEmailSenderModuleInput', args.select, connectionFieldsMap ); return new QueryBuilder({ client: this.client, operation: 'mutation', - operationName: 'PermissionsModule', - fieldName: 'deletePermissionsModule', + operationName: 'EmailSenderModule', + fieldName: 'deleteEmailSenderModule', document, variables, }); diff --git a/sdk/constructive-cli/src/modules/orm/models/fileRefField.ts b/sdk/constructive-cli/src/modules/orm/models/fileRefField.ts new file mode 100644 index 0000000000..130f0d6858 --- /dev/null +++ b/sdk/constructive-cli/src/modules/orm/models/fileRefField.ts @@ -0,0 +1,245 @@ +/** + * FileRefField 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 { + FileRefField, + FileRefFieldWithRelations, + FileRefFieldSelect, + FileRefFieldFilter, + FileRefFieldOrderBy, + CreateFileRefFieldInput, + UpdateFileRefFieldInput, + FileRefFieldPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class FileRefFieldModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + fileRefFields: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'FileRefField', + 'fileRefFields', + 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, + }, + 'FileRefFieldFilter', + 'FileRefFieldOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'FileRefField', + fieldName: 'fileRefFields', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + fileRefField: InferSelectResult | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'FileRefField', + 'fileRefFields', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'FileRefFieldFilter', + 'FileRefFieldOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'FileRefField', + fieldName: 'fileRefField', + document, + variables, + transform: (data: { + fileRefFields?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + fileRefField: data.fileRefFields?.nodes?.[0] ?? null, + }), + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + fileRefField: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'FileRefField', + 'fileRefFields', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'FileRefFieldFilter', + 'FileRefFieldOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'FileRefField', + fieldName: 'fileRefField', + document, + variables, + transform: (data: { + fileRefFields?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + fileRefField: data.fileRefFields?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createFileRefField: { + fileRefField: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'FileRefField', + 'createFileRefField', + 'fileRefField', + args.select, + args.data, + 'CreateFileRefFieldInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'FileRefField', + fieldName: 'createFileRefField', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + FileRefFieldPatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateFileRefField: { + fileRefField: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'FileRefField', + 'updateFileRefField', + 'fileRefField', + args.select, + args.where.id, + args.data, + 'UpdateFileRefFieldInput', + 'id', + 'fileRefFieldPatch', + connectionFieldsMap, + undefined + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'FileRefField', + fieldName: 'updateFileRefField', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteFileRefField: { + fileRefField: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'FileRefField', + 'deleteFileRefField', + 'fileRefField', + { + id: args.where.id, + }, + 'DeleteFileRefFieldInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'FileRefField', + fieldName: 'deleteFileRefField', + document, + variables, + }); + } +} diff --git a/sdk/constructive-cli/src/modules/orm/models/index.ts b/sdk/constructive-cli/src/modules/orm/models/index.ts index 55e18104c1..beb1e2e872 100644 --- a/sdk/constructive-cli/src/modules/orm/models/index.ts +++ b/sdk/constructive-cli/src/modules/orm/models/index.ts @@ -11,12 +11,15 @@ export { BillingProviderModuleModel } from './billingProviderModule'; export { BlueprintModel } from './blueprint'; export { BlueprintConstructionModel } from './blueprintConstruction'; export { BlueprintTemplateModel } from './blueprintTemplate'; +export { CapabilitiesModuleModel } from './capabilitiesModule'; export { CatalogModuleModel } from './catalogModule'; export { ComputeLogModuleModel } from './computeLogModule'; export { ConfigSecretsUserModuleModel } from './configSecretsUserModule'; export { ConnectedAccountsModuleModel } from './connectedAccountsModule'; +export { ContentPresetModuleModel } from './contentPresetModule'; export { CryptoAddressesModuleModel } from './cryptoAddressesModule'; export { CryptoAuthModuleModel } from './cryptoAuthModule'; +export { DataCapabilitiesFieldModel } from './dataCapabilitiesField'; export { DatabaseProvisionModuleModel } from './databaseProvisionModule'; export { DatabaseSettingsModuleModel } from './databaseSettingsModule'; export { DbPoolConfigModel } from './dbPoolConfig'; @@ -27,9 +30,11 @@ export { DefaultIdsModuleModel } from './defaultIdsModule'; export { DenormalizedTableFieldModel } from './denormalizedTableField'; export { DevicesModuleModel } from './devicesModule'; export { DomainModuleModel } from './domainModule'; +export { EmailSenderModuleModel } from './emailSenderModule'; export { EmailsModuleModel } from './emailsModule'; export { EntityTypeProvisionModel } from './entityTypeProvision'; export { EventsModuleModel } from './eventsModule'; +export { FileRefFieldModel } from './fileRefField'; export { FunctionDeploymentModuleModel } from './functionDeploymentModule'; export { FunctionInvocationModuleModel } from './functionInvocationModule'; export { FunctionModuleModel } from './functionModule'; @@ -51,8 +56,8 @@ export { MembershipsModuleModel } from './membershipsModule'; export { MerkleStoreModuleModel } from './merkleStoreModule'; export { NamespaceModuleModel } from './namespaceModule'; export { NotificationsModuleModel } from './notificationsModule'; +export { OauthRequestsModuleModel } from './oauthRequestsModule'; export { PagesModuleModel } from './pagesModule'; -export { PermissionsModuleModel } from './permissionsModule'; export { PhoneNumbersModuleModel } from './phoneNumbersModule'; export { PlansModuleModel } from './plansModule'; export { PrincipalAuthModuleModel } from './principalAuthModule'; @@ -64,6 +69,7 @@ export { RelationProvisionModel } from './relationProvision'; export { ResourceModuleModel } from './resourceModule'; export { RlsModuleModel } from './rlsModule'; export { RouteModuleModel } from './routeModule'; +export { ScopeTypesModuleModel } from './scopeTypesModule'; export { SecureTableProvisionModel } from './secureTableProvision'; export { SessionSecretsModuleModel } from './sessionSecretsModule'; export { SessionsModuleModel } from './sessionsModule'; @@ -74,6 +80,7 @@ export { TransferLogModuleModel } from './transferLogModule'; export { UserAuthModuleModel } from './userAuthModule'; export { UserCredentialsModuleModel } from './userCredentialsModule'; export { UserSettingsModuleModel } from './userSettingsModule'; +export { UserSettingsSecurityModuleModel } from './userSettingsSecurityModule'; export { UserStateModuleModel } from './userStateModule'; export { UsersModuleModel } from './usersModule'; export { WebauthnAuthModuleModel } from './webauthnAuthModule'; diff --git a/sdk/constructive-cli/src/modules/orm/models/oauthRequestsModule.ts b/sdk/constructive-cli/src/modules/orm/models/oauthRequestsModule.ts new file mode 100644 index 0000000000..a874125a9e --- /dev/null +++ b/sdk/constructive-cli/src/modules/orm/models/oauthRequestsModule.ts @@ -0,0 +1,245 @@ +/** + * OauthRequestsModule 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 { + OauthRequestsModule, + OauthRequestsModuleWithRelations, + OauthRequestsModuleSelect, + OauthRequestsModuleFilter, + OauthRequestsModuleOrderBy, + CreateOauthRequestsModuleInput, + UpdateOauthRequestsModuleInput, + OauthRequestsModulePatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class OauthRequestsModuleModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + oauthRequestsModules: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'OauthRequestsModule', + 'oauthRequestsModules', + 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, + }, + 'OauthRequestsModuleFilter', + 'OauthRequestsModuleOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'OauthRequestsModule', + fieldName: 'oauthRequestsModules', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + oauthRequestsModule: InferSelectResult | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'OauthRequestsModule', + 'oauthRequestsModules', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'OauthRequestsModuleFilter', + 'OauthRequestsModuleOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'OauthRequestsModule', + fieldName: 'oauthRequestsModule', + document, + variables, + transform: (data: { + oauthRequestsModules?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + oauthRequestsModule: data.oauthRequestsModules?.nodes?.[0] ?? null, + }), + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + oauthRequestsModule: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'OauthRequestsModule', + 'oauthRequestsModules', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'OauthRequestsModuleFilter', + 'OauthRequestsModuleOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'OauthRequestsModule', + fieldName: 'oauthRequestsModule', + document, + variables, + transform: (data: { + oauthRequestsModules?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + oauthRequestsModule: data.oauthRequestsModules?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createOauthRequestsModule: { + oauthRequestsModule: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'OauthRequestsModule', + 'createOauthRequestsModule', + 'oauthRequestsModule', + args.select, + args.data, + 'CreateOauthRequestsModuleInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'OauthRequestsModule', + fieldName: 'createOauthRequestsModule', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + OauthRequestsModulePatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateOauthRequestsModule: { + oauthRequestsModule: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'OauthRequestsModule', + 'updateOauthRequestsModule', + 'oauthRequestsModule', + args.select, + args.where.id, + args.data, + 'UpdateOauthRequestsModuleInput', + 'id', + 'oauthRequestsModulePatch', + connectionFieldsMap, + undefined + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'OauthRequestsModule', + fieldName: 'updateOauthRequestsModule', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteOauthRequestsModule: { + oauthRequestsModule: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'OauthRequestsModule', + 'deleteOauthRequestsModule', + 'oauthRequestsModule', + { + id: args.where.id, + }, + 'DeleteOauthRequestsModuleInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'OauthRequestsModule', + fieldName: 'deleteOauthRequestsModule', + document, + variables, + }); + } +} diff --git a/sdk/constructive-cli/src/modules/orm/models/scopeTypesModule.ts b/sdk/constructive-cli/src/modules/orm/models/scopeTypesModule.ts new file mode 100644 index 0000000000..1cbd281d05 --- /dev/null +++ b/sdk/constructive-cli/src/modules/orm/models/scopeTypesModule.ts @@ -0,0 +1,245 @@ +/** + * ScopeTypesModule 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 { + ScopeTypesModule, + ScopeTypesModuleWithRelations, + ScopeTypesModuleSelect, + ScopeTypesModuleFilter, + ScopeTypesModuleOrderBy, + CreateScopeTypesModuleInput, + UpdateScopeTypesModuleInput, + ScopeTypesModulePatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class ScopeTypesModuleModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + scopeTypesModules: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'ScopeTypesModule', + 'scopeTypesModules', + 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, + }, + 'ScopeTypesModuleFilter', + 'ScopeTypesModuleOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'ScopeTypesModule', + fieldName: 'scopeTypesModules', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + scopeTypesModule: InferSelectResult | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'ScopeTypesModule', + 'scopeTypesModules', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'ScopeTypesModuleFilter', + 'ScopeTypesModuleOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'ScopeTypesModule', + fieldName: 'scopeTypesModule', + document, + variables, + transform: (data: { + scopeTypesModules?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + scopeTypesModule: data.scopeTypesModules?.nodes?.[0] ?? null, + }), + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + scopeTypesModule: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'ScopeTypesModule', + 'scopeTypesModules', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'ScopeTypesModuleFilter', + 'ScopeTypesModuleOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'ScopeTypesModule', + fieldName: 'scopeTypesModule', + document, + variables, + transform: (data: { + scopeTypesModules?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + scopeTypesModule: data.scopeTypesModules?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createScopeTypesModule: { + scopeTypesModule: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'ScopeTypesModule', + 'createScopeTypesModule', + 'scopeTypesModule', + args.select, + args.data, + 'CreateScopeTypesModuleInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'ScopeTypesModule', + fieldName: 'createScopeTypesModule', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + ScopeTypesModulePatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateScopeTypesModule: { + scopeTypesModule: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'ScopeTypesModule', + 'updateScopeTypesModule', + 'scopeTypesModule', + args.select, + args.where.id, + args.data, + 'UpdateScopeTypesModuleInput', + 'id', + 'scopeTypesModulePatch', + connectionFieldsMap, + undefined + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'ScopeTypesModule', + fieldName: 'updateScopeTypesModule', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteScopeTypesModule: { + scopeTypesModule: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'ScopeTypesModule', + 'deleteScopeTypesModule', + 'scopeTypesModule', + { + id: args.where.id, + }, + 'DeleteScopeTypesModuleInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'ScopeTypesModule', + fieldName: 'deleteScopeTypesModule', + document, + variables, + }); + } +} diff --git a/sdk/constructive-cli/src/modules/orm/models/userSettingsSecurityModule.ts b/sdk/constructive-cli/src/modules/orm/models/userSettingsSecurityModule.ts new file mode 100644 index 0000000000..13b7c87010 --- /dev/null +++ b/sdk/constructive-cli/src/modules/orm/models/userSettingsSecurityModule.ts @@ -0,0 +1,253 @@ +/** + * UserSettingsSecurityModule 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 { + UserSettingsSecurityModule, + UserSettingsSecurityModuleWithRelations, + UserSettingsSecurityModuleSelect, + UserSettingsSecurityModuleFilter, + UserSettingsSecurityModuleOrderBy, + CreateUserSettingsSecurityModuleInput, + UpdateUserSettingsSecurityModuleInput, + UserSettingsSecurityModulePatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class UserSettingsSecurityModuleModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + userSettingsSecurityModules: ConnectionResult< + InferSelectResult + >; + }> { + const { document, variables } = buildFindManyDocument( + 'UserSettingsSecurityModule', + 'userSettingsSecurityModules', + 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, + }, + 'UserSettingsSecurityModuleFilter', + 'UserSettingsSecurityModuleOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'UserSettingsSecurityModule', + fieldName: 'userSettingsSecurityModules', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + userSettingsSecurityModule: InferSelectResult< + UserSettingsSecurityModuleWithRelations, + S + > | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'UserSettingsSecurityModule', + 'userSettingsSecurityModules', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'UserSettingsSecurityModuleFilter', + 'UserSettingsSecurityModuleOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'UserSettingsSecurityModule', + fieldName: 'userSettingsSecurityModule', + document, + variables, + transform: (data: { + userSettingsSecurityModules?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + userSettingsSecurityModule: data.userSettingsSecurityModules?.nodes?.[0] ?? null, + }), + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + userSettingsSecurityModule: InferSelectResult< + UserSettingsSecurityModuleWithRelations, + S + > | null; + }> { + const { document, variables } = buildFindManyDocument( + 'UserSettingsSecurityModule', + 'userSettingsSecurityModules', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'UserSettingsSecurityModuleFilter', + 'UserSettingsSecurityModuleOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'UserSettingsSecurityModule', + fieldName: 'userSettingsSecurityModule', + document, + variables, + transform: (data: { + userSettingsSecurityModules?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + userSettingsSecurityModule: data.userSettingsSecurityModules?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createUserSettingsSecurityModule: { + userSettingsSecurityModule: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'UserSettingsSecurityModule', + 'createUserSettingsSecurityModule', + 'userSettingsSecurityModule', + args.select, + args.data, + 'CreateUserSettingsSecurityModuleInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'UserSettingsSecurityModule', + fieldName: 'createUserSettingsSecurityModule', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + UserSettingsSecurityModulePatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateUserSettingsSecurityModule: { + userSettingsSecurityModule: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'UserSettingsSecurityModule', + 'updateUserSettingsSecurityModule', + 'userSettingsSecurityModule', + args.select, + args.where.id, + args.data, + 'UpdateUserSettingsSecurityModuleInput', + 'id', + 'userSettingsSecurityModulePatch', + connectionFieldsMap, + undefined + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'UserSettingsSecurityModule', + fieldName: 'updateUserSettingsSecurityModule', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteUserSettingsSecurityModule: { + userSettingsSecurityModule: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'UserSettingsSecurityModule', + 'deleteUserSettingsSecurityModule', + 'userSettingsSecurityModule', + { + id: args.where.id, + }, + 'DeleteUserSettingsSecurityModuleInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'UserSettingsSecurityModule', + fieldName: 'deleteUserSettingsSecurityModule', + document, + variables, + }); + } +} diff --git a/sdk/constructive-cli/src/modules/orm/mutation/index.ts b/sdk/constructive-cli/src/modules/orm/mutation/index.ts index 60041efadb..5450eca294 100644 --- a/sdk/constructive-cli/src/modules/orm/mutation/index.ts +++ b/sdk/constructive-cli/src/modules/orm/mutation/index.ts @@ -10,33 +10,12 @@ import type { ConstructBlueprintInput, CopyTemplateToBlueprintInput, ProvisionBucketInput, - ProvisionCheckConstraintInput, - ProvisionFullTextSearchInput, - ProvisionIndexInput, - ProvisionRelationInput, - ProvisionSpatialRelationInput, - ProvisionTableInput, - ProvisionUniqueConstraintInput, ConstructBlueprintPayload, CopyTemplateToBlueprintPayload, ProvisionBucketPayload, - ProvisionCheckConstraintPayload, - ProvisionFullTextSearchPayload, - ProvisionIndexPayload, - ProvisionRelationPayload, - ProvisionSpatialRelationPayload, - ProvisionTablePayload, - ProvisionUniqueConstraintPayload, ConstructBlueprintPayloadSelect, CopyTemplateToBlueprintPayloadSelect, ProvisionBucketPayloadSelect, - ProvisionCheckConstraintPayloadSelect, - ProvisionFullTextSearchPayloadSelect, - ProvisionIndexPayloadSelect, - ProvisionRelationPayloadSelect, - ProvisionSpatialRelationPayloadSelect, - ProvisionTablePayloadSelect, - ProvisionUniqueConstraintPayloadSelect, } from '../input-types'; import { connectionFieldsMap } from '../input-types'; /** @@ -63,55 +42,6 @@ and lifecycle settings. export interface ProvisionBucketVariables { input: ProvisionBucketInput; } -/** - * Variables for provisionCheckConstraint - * 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. - */ -export interface ProvisionCheckConstraintVariables { - input: ProvisionCheckConstraintInput; -} -/** - * Variables for provisionFullTextSearch - * 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. - */ -export interface ProvisionFullTextSearchVariables { - input: ProvisionFullTextSearchInput; -} -/** - * Variables for provisionIndex - * 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. - */ -export interface ProvisionIndexVariables { - input: ProvisionIndexInput; -} -/** - * Variables for provisionRelation - * 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). - */ -export interface ProvisionRelationVariables { - input: ProvisionRelationInput; -} -/** - * Variables for provisionSpatialRelation - * 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. - */ -export interface ProvisionSpatialRelationVariables { - input: ProvisionSpatialRelationInput; -} -/** - * 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). - */ -export interface ProvisionTableVariables { - input: ProvisionTableInput; -} -/** - * Variables for provisionUniqueConstraint - * 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. - */ -export interface ProvisionUniqueConstraintVariables { - input: ProvisionUniqueConstraintInput; -} export function createMutationOperations(client: OrmClient) { return { constructBlueprint: ( @@ -201,208 +131,5 @@ export function createMutationOperations(client: OrmClient) { 'ProvisionBucketPayload' ), }), - provisionCheckConstraint: ( - args: ProvisionCheckConstraintVariables, - options: { - select: S; - } & StrictSelect - ) => - new QueryBuilder<{ - provisionCheckConstraint: InferSelectResult | null; - }>({ - client, - operation: 'mutation', - operationName: 'ProvisionCheckConstraint', - fieldName: 'provisionCheckConstraint', - ...buildCustomDocument( - 'mutation', - 'ProvisionCheckConstraint', - 'provisionCheckConstraint', - options.select, - args, - [ - { - name: 'input', - type: 'ProvisionCheckConstraintInput!', - }, - ], - connectionFieldsMap, - 'ProvisionCheckConstraintPayload' - ), - }), - provisionFullTextSearch: ( - args: ProvisionFullTextSearchVariables, - options: { - select: S; - } & StrictSelect - ) => - new QueryBuilder<{ - provisionFullTextSearch: InferSelectResult | null; - }>({ - client, - operation: 'mutation', - operationName: 'ProvisionFullTextSearch', - fieldName: 'provisionFullTextSearch', - ...buildCustomDocument( - 'mutation', - 'ProvisionFullTextSearch', - 'provisionFullTextSearch', - options.select, - args, - [ - { - name: 'input', - type: 'ProvisionFullTextSearchInput!', - }, - ], - connectionFieldsMap, - 'ProvisionFullTextSearchPayload' - ), - }), - provisionIndex: ( - args: ProvisionIndexVariables, - options: { - select: S; - } & StrictSelect - ) => - new QueryBuilder<{ - provisionIndex: InferSelectResult | null; - }>({ - client, - operation: 'mutation', - operationName: 'ProvisionIndex', - fieldName: 'provisionIndex', - ...buildCustomDocument( - 'mutation', - 'ProvisionIndex', - 'provisionIndex', - options.select, - args, - [ - { - name: 'input', - type: 'ProvisionIndexInput!', - }, - ], - connectionFieldsMap, - 'ProvisionIndexPayload' - ), - }), - provisionRelation: ( - args: ProvisionRelationVariables, - options: { - select: S; - } & StrictSelect - ) => - new QueryBuilder<{ - provisionRelation: InferSelectResult | null; - }>({ - client, - operation: 'mutation', - operationName: 'ProvisionRelation', - fieldName: 'provisionRelation', - ...buildCustomDocument( - 'mutation', - 'ProvisionRelation', - 'provisionRelation', - options.select, - args, - [ - { - name: 'input', - type: 'ProvisionRelationInput!', - }, - ], - connectionFieldsMap, - 'ProvisionRelationPayload' - ), - }), - provisionSpatialRelation: ( - args: ProvisionSpatialRelationVariables, - options: { - select: S; - } & StrictSelect - ) => - new QueryBuilder<{ - provisionSpatialRelation: InferSelectResult | null; - }>({ - client, - operation: 'mutation', - operationName: 'ProvisionSpatialRelation', - fieldName: 'provisionSpatialRelation', - ...buildCustomDocument( - 'mutation', - 'ProvisionSpatialRelation', - 'provisionSpatialRelation', - options.select, - args, - [ - { - name: 'input', - type: 'ProvisionSpatialRelationInput!', - }, - ], - connectionFieldsMap, - 'ProvisionSpatialRelationPayload' - ), - }), - provisionTable: ( - args: ProvisionTableVariables, - options: { - select: S; - } & StrictSelect - ) => - new QueryBuilder<{ - provisionTable: InferSelectResult | null; - }>({ - client, - operation: 'mutation', - operationName: 'ProvisionTable', - fieldName: 'provisionTable', - ...buildCustomDocument( - 'mutation', - 'ProvisionTable', - 'provisionTable', - options.select, - args, - [ - { - name: 'input', - type: 'ProvisionTableInput!', - }, - ], - connectionFieldsMap, - 'ProvisionTablePayload' - ), - }), - provisionUniqueConstraint: ( - args: ProvisionUniqueConstraintVariables, - options: { - select: S; - } & StrictSelect - ) => - new QueryBuilder<{ - provisionUniqueConstraint: InferSelectResult | null; - }>({ - client, - operation: 'mutation', - operationName: 'ProvisionUniqueConstraint', - fieldName: 'provisionUniqueConstraint', - ...buildCustomDocument( - 'mutation', - 'ProvisionUniqueConstraint', - 'provisionUniqueConstraint', - options.select, - args, - [ - { - name: 'input', - type: 'ProvisionUniqueConstraintInput!', - }, - ], - connectionFieldsMap, - 'ProvisionUniqueConstraintPayload' - ), - }), }; } diff --git a/sdk/constructive-cli/src/modules/orm/query/index.ts b/sdk/constructive-cli/src/modules/orm/query/index.ts deleted file mode 100644 index 70496d57ba..0000000000 --- a/sdk/constructive-cli/src/modules/orm/query/index.ts +++ /dev/null @@ -1,115 +0,0 @@ -/** - * Custom query operations - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ -import { OrmClient } from '../client'; -import { QueryBuilder, buildCustomDocument } from '../query-builder'; -import type { InferSelectResult, StrictSelect } from '../select-types'; -import { connectionFieldsMap } from '../input-types'; -/** - * Variables for resolveBlueprintField - * 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. - */ -export interface ResolveBlueprintFieldVariables { - databaseId?: string; - fieldName?: string; - tableId?: string; -} -/** - * Variables for resolveBlueprintTable - * 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. - */ -export interface ResolveBlueprintTableVariables { - databaseId?: string; - defaultSchemaId?: string; - schemaName?: string; - tableMap?: unknown; - tableName?: string; -} -export function createQueryOperations(client: OrmClient) { - return { - resolveBlueprintField: ( - args: ResolveBlueprintFieldVariables, - options?: { - select?: Record; - } - ) => - new QueryBuilder<{ - resolveBlueprintField: string | null; - }>({ - client, - operation: 'query', - operationName: 'ResolveBlueprintField', - fieldName: 'resolveBlueprintField', - ...buildCustomDocument( - 'query', - 'ResolveBlueprintField', - 'resolveBlueprintField', - options?.select, - args, - [ - { - name: 'databaseId', - type: 'UUID', - }, - { - name: 'fieldName', - type: 'String', - }, - { - name: 'tableId', - type: 'UUID', - }, - ], - connectionFieldsMap, - undefined - ), - }), - resolveBlueprintTable: ( - args: ResolveBlueprintTableVariables, - options?: { - select?: Record; - } - ) => - new QueryBuilder<{ - resolveBlueprintTable: string | null; - }>({ - client, - operation: 'query', - operationName: 'ResolveBlueprintTable', - fieldName: 'resolveBlueprintTable', - ...buildCustomDocument( - 'query', - 'ResolveBlueprintTable', - 'resolveBlueprintTable', - options?.select, - args, - [ - { - name: 'databaseId', - type: 'UUID', - }, - { - name: 'defaultSchemaId', - type: 'UUID', - }, - { - name: 'schemaName', - type: 'String', - }, - { - name: 'tableMap', - type: 'JSON', - }, - { - name: 'tableName', - type: 'String', - }, - ], - connectionFieldsMap, - undefined - ), - }), - }; -} diff --git a/sdk/constructive-cli/src/objects/README.md b/sdk/constructive-cli/src/objects/README.md index 12fb58cf20..7d8e4c1ac0 100644 --- a/sdk/constructive-cli/src/objects/README.md +++ b/sdk/constructive-cli/src/objects/README.md @@ -10,7 +10,7 @@ - **Tables:** 5 - **Custom queries:** 0 -- **Custom mutations:** 4 +- **Custom mutations:** 7 **Generators:** ORM, CLI diff --git a/sdk/constructive-cli/src/objects/cli/README.md b/sdk/constructive-cli/src/objects/cli/README.md index e4314fc6e7..b0f3cea7c8 100644 --- a/sdk/constructive-cli/src/objects/cli/README.md +++ b/sdk/constructive-cli/src/objects/cli/README.md @@ -33,11 +33,14 @@ csdk auth set-token | `store` | store CRUD operations | | `init-empty-repo` | initEmptyRepo | | `insert-node-at-path` | insertNodeAtPath | +| `insert-nodes-at-paths` | insertNodesAtPaths | | `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, and lifecycle settings. | +| `set-and-commit` | setAndCommit | | `set-data-at-path` | setDataAtPath | +| `set-many-and-commit` | setManyAndCommit | ## Infrastructure Commands @@ -243,6 +246,23 @@ insertNodeAtPath | `--input.root` | UUID | | `--input.sId` | UUID | +### `insert-nodes-at-paths` + +insertNodesAtPaths + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `--input.clientMutationId` | String | + | `--input.datas` | JSON | + | `--input.kidsList` | JSON | + | `--input.ktreeList` | JSON | + | `--input.paths` | JSON | + | `--input.root` | UUID | + | `--input.sId` | UUID | + ### `provision-bucket` Provision an S3 bucket for a logical bucket in the database. @@ -258,6 +278,25 @@ and lifecycle settings. | `--input.bucketKey` | String (required) | | `--input.ownerId` | UUID | +### `set-and-commit` + +setAndCommit + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `--input.clientMutationId` | String | + | `--input.data` | JSON | + | `--input.kids` | UUID | + | `--input.ktree` | String | + | `--input.message` | String | + | `--input.path` | String | + | `--input.refname` | String | + | `--input.sId` | UUID | + | `--input.storeId` | UUID | + ### `set-data-at-path` setDataAtPath @@ -273,6 +312,22 @@ setDataAtPath | `--input.root` | UUID | | `--input.sId` | UUID | +### `set-many-and-commit` + +setManyAndCommit + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `--input.clientMutationId` | String | + | `--input.entries` | JSON | + | `--input.message` | String | + | `--input.refname` | String | + | `--input.sId` | UUID | + | `--input.storeId` | UUID | + ## Output All commands output JSON to stdout. Pipe to `jq` for formatting: diff --git a/sdk/constructive-cli/src/objects/cli/commands.ts b/sdk/constructive-cli/src/objects/cli/commands.ts index e04db329a7..601e2e2f66 100644 --- a/sdk/constructive-cli/src/objects/cli/commands.ts +++ b/sdk/constructive-cli/src/objects/cli/commands.ts @@ -13,8 +13,11 @@ import refCmd from './commands/ref'; import storeCmd from './commands/store'; import initEmptyRepoCmd from './commands/init-empty-repo'; import insertNodeAtPathCmd from './commands/insert-node-at-path'; +import insertNodesAtPathsCmd from './commands/insert-nodes-at-paths'; import provisionBucketCmd from './commands/provision-bucket'; +import setAndCommitCmd from './commands/set-and-commit'; import setDataAtPathCmd from './commands/set-data-at-path'; +import setManyAndCommitCmd from './commands/set-many-and-commit'; const createCommandMap: () => Record< string, ( @@ -32,11 +35,14 @@ const createCommandMap: () => Record< store: storeCmd, 'init-empty-repo': initEmptyRepoCmd, 'insert-node-at-path': insertNodeAtPathCmd, + 'insert-nodes-at-paths': insertNodesAtPathsCmd, 'provision-bucket': provisionBucketCmd, + 'set-and-commit': setAndCommitCmd, 'set-data-at-path': setDataAtPathCmd, + 'set-many-and-commit': setManyAndCommitCmd, }); const usage = - '\ncsdk \n\nCommands:\n context Manage API contexts\n auth Manage authentication\n commit commit CRUD operations\n get-all-tree-nodes-record getAllTreeNodesRecord CRUD operations\n object object CRUD operations\n ref ref CRUD operations\n store store CRUD operations\n init-empty-repo initEmptyRepo\n insert-node-at-path insertNodeAtPath\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 set-data-at-path setDataAtPath\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 commit commit CRUD operations\n get-all-tree-nodes-record getAllTreeNodesRecord CRUD operations\n object object CRUD operations\n ref ref CRUD operations\n store store CRUD operations\n init-empty-repo initEmptyRepo\n insert-node-at-path insertNodeAtPath\n insert-nodes-at-paths insertNodesAtPaths\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 set-and-commit setAndCommit\n set-data-at-path setDataAtPath\n set-many-and-commit setManyAndCommit\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/objects/cli/commands/insert-nodes-at-paths.ts b/sdk/constructive-cli/src/objects/cli/commands/insert-nodes-at-paths.ts new file mode 100644 index 0000000000..30d2c129a1 --- /dev/null +++ b/sdk/constructive-cli/src/objects/cli/commands/insert-nodes-at-paths.ts @@ -0,0 +1,53 @@ +/** + * CLI command for mutation insertNodesAtPaths + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ +import { CLIOptions, Inquirerer } from 'inquirerer'; +import { getClient } from '../executor'; +import { unflattenDotNotation, buildSelectFromPaths } from '../utils'; +import type { InsertNodesAtPathsVariables } from '../../orm/mutation'; +import type { InsertNodesAtPathsPayloadSelect } from '../../orm/input-types'; +export default async ( + argv: Partial>, + prompter: Inquirerer, + _options: CLIOptions +) => { + try { + if (argv.help || argv.h) { + console.log( + 'insert-nodes-at-paths - insertNodesAtPaths\n\nUsage: insert-nodes-at-paths [OPTIONS]\n' + ); + process.exit(0); + } + const answers = await prompter.prompt(argv, [ + { + type: 'text', + name: 'input', + message: + 'The exclusive input argument for this mutation. An object type, make sure to see documentation for this object\u2019s fields.', + required: true, + }, + ]); + const client = getClient(); + const parsedAnswers = unflattenDotNotation(answers); + const selectFields = buildSelectFromPaths((argv.select as string) ?? 'clientMutationId'); + const result = await client.mutation + .insertNodesAtPaths( + parsedAnswers as unknown as InsertNodesAtPathsVariables, + { + select: selectFields, + } as unknown as { + select: InsertNodesAtPathsPayloadSelect; + } + ) + .execute(); + console.log(JSON.stringify(result, null, 2)); + } catch (error) { + console.error('Failed: insertNodesAtPaths'); + if (error instanceof Error) { + console.error(error.message); + } + process.exit(1); + } +}; diff --git a/sdk/constructive-cli/src/objects/cli/commands/set-and-commit.ts b/sdk/constructive-cli/src/objects/cli/commands/set-and-commit.ts new file mode 100644 index 0000000000..cb702ff301 --- /dev/null +++ b/sdk/constructive-cli/src/objects/cli/commands/set-and-commit.ts @@ -0,0 +1,51 @@ +/** + * CLI command for mutation setAndCommit + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ +import { CLIOptions, Inquirerer } from 'inquirerer'; +import { getClient } from '../executor'; +import { unflattenDotNotation, buildSelectFromPaths } from '../utils'; +import type { SetAndCommitVariables } from '../../orm/mutation'; +import type { SetAndCommitPayloadSelect } from '../../orm/input-types'; +export default async ( + argv: Partial>, + prompter: Inquirerer, + _options: CLIOptions +) => { + try { + if (argv.help || argv.h) { + console.log('set-and-commit - setAndCommit\n\nUsage: set-and-commit [OPTIONS]\n'); + process.exit(0); + } + const answers = await prompter.prompt(argv, [ + { + type: 'text', + name: 'input', + message: + 'The exclusive input argument for this mutation. An object type, make sure to see documentation for this object\u2019s fields.', + required: true, + }, + ]); + const client = getClient(); + const parsedAnswers = unflattenDotNotation(answers); + const selectFields = buildSelectFromPaths((argv.select as string) ?? 'clientMutationId'); + const result = await client.mutation + .setAndCommit( + parsedAnswers as unknown as SetAndCommitVariables, + { + select: selectFields, + } as unknown as { + select: SetAndCommitPayloadSelect; + } + ) + .execute(); + console.log(JSON.stringify(result, null, 2)); + } catch (error) { + console.error('Failed: setAndCommit'); + if (error instanceof Error) { + console.error(error.message); + } + process.exit(1); + } +}; diff --git a/sdk/constructive-cli/src/objects/cli/commands/set-many-and-commit.ts b/sdk/constructive-cli/src/objects/cli/commands/set-many-and-commit.ts new file mode 100644 index 0000000000..8b1d8dba43 --- /dev/null +++ b/sdk/constructive-cli/src/objects/cli/commands/set-many-and-commit.ts @@ -0,0 +1,53 @@ +/** + * CLI command for mutation setManyAndCommit + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ +import { CLIOptions, Inquirerer } from 'inquirerer'; +import { getClient } from '../executor'; +import { unflattenDotNotation, buildSelectFromPaths } from '../utils'; +import type { SetManyAndCommitVariables } from '../../orm/mutation'; +import type { SetManyAndCommitPayloadSelect } from '../../orm/input-types'; +export default async ( + argv: Partial>, + prompter: Inquirerer, + _options: CLIOptions +) => { + try { + if (argv.help || argv.h) { + console.log( + 'set-many-and-commit - setManyAndCommit\n\nUsage: set-many-and-commit [OPTIONS]\n' + ); + process.exit(0); + } + const answers = await prompter.prompt(argv, [ + { + type: 'text', + name: 'input', + message: + 'The exclusive input argument for this mutation. An object type, make sure to see documentation for this object\u2019s fields.', + required: true, + }, + ]); + const client = getClient(); + const parsedAnswers = unflattenDotNotation(answers); + const selectFields = buildSelectFromPaths((argv.select as string) ?? 'clientMutationId'); + const result = await client.mutation + .setManyAndCommit( + parsedAnswers as unknown as SetManyAndCommitVariables, + { + select: selectFields, + } as unknown as { + select: SetManyAndCommitPayloadSelect; + } + ) + .execute(); + console.log(JSON.stringify(result, null, 2)); + } catch (error) { + console.error('Failed: setManyAndCommit'); + if (error instanceof Error) { + console.error(error.message); + } + process.exit(1); + } +}; diff --git a/sdk/constructive-cli/src/objects/orm/README.md b/sdk/constructive-cli/src/objects/orm/README.md index 2a09348ad0..e112c19ae0 100644 --- a/sdk/constructive-cli/src/objects/orm/README.md +++ b/sdk/constructive-cli/src/objects/orm/README.md @@ -228,6 +228,21 @@ insertNodeAtPath const result = await db.mutation.insertNodeAtPath({ input: '' }).execute(); ``` +### `db.mutation.insertNodesAtPaths` + +insertNodesAtPaths + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | InsertNodesAtPathsInput (required) | + +```typescript +const result = await db.mutation.insertNodesAtPaths({ input: '' }).execute(); +``` + ### `db.mutation.provisionBucket` Provision an S3 bucket for a logical bucket in the database. @@ -246,6 +261,21 @@ and lifecycle settings. const result = await db.mutation.provisionBucket({ input: { bucketKey: '', ownerId: '' } }).execute(); ``` +### `db.mutation.setAndCommit` + +setAndCommit + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | SetAndCommitInput (required) | + +```typescript +const result = await db.mutation.setAndCommit({ input: '' }).execute(); +``` + ### `db.mutation.setDataAtPath` setDataAtPath @@ -261,6 +291,21 @@ setDataAtPath const result = await db.mutation.setDataAtPath({ input: { data: '', path: '', root: '', sId: '' } }).execute(); ``` +### `db.mutation.setManyAndCommit` + +setManyAndCommit + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | SetManyAndCommitInput (required) | + +```typescript +const result = await db.mutation.setManyAndCommit({ input: { entries: '', message: '', refname: '', sId: '', storeId: '' } }).execute(); +``` + --- Built by the [Constructive](https://constructive.io) team. diff --git a/sdk/constructive-cli/src/objects/orm/input-types.ts b/sdk/constructive-cli/src/objects/orm/input-types.ts index bab07456e0..1ca44bc9d7 100644 --- a/sdk/constructive-cli/src/objects/orm/input-types.ts +++ b/sdk/constructive-cli/src/objects/orm/input-types.ts @@ -665,6 +665,15 @@ export interface InsertNodeAtPathInput { root?: string; sId?: string; } +export interface InsertNodesAtPathsInput { + clientMutationId?: string; + datas?: Record[]; + kidsList?: Record; + ktreeList?: Record; + paths?: Record; + root?: string; + sId?: string; +} export interface ProvisionBucketInput { /** The logical bucket key (e.g., "public", "private") */ bucketKey: string; @@ -674,6 +683,17 @@ export interface ProvisionBucketInput { */ ownerId?: string; } +export interface SetAndCommitInput { + clientMutationId?: string; + data?: Record; + kids?: string[]; + ktree?: string[]; + message?: string; + path?: string[]; + refname?: string; + sId?: string; + storeId?: string; +} export interface SetDataAtPathInput { clientMutationId?: string; data?: Record; @@ -681,6 +701,14 @@ export interface SetDataAtPathInput { root?: string; sId?: string; } +export interface SetManyAndCommitInput { + clientMutationId?: string; + entries?: Record; + message?: string; + refname?: string; + sId?: string; + storeId?: string; +} /** An input for mutations affecting `Commit` */ export interface CommitInput { /** User who authored the changes */ @@ -758,6 +786,14 @@ export type InsertNodeAtPathPayloadSelect = { clientMutationId?: boolean; result?: boolean; }; +export interface InsertNodesAtPathsPayload { + clientMutationId?: string | null; + result?: string | null; +} +export type InsertNodesAtPathsPayloadSelect = { + clientMutationId?: boolean; + result?: boolean; +}; export interface ProvisionBucketPayload { /** The access type applied */ accessType: string; @@ -780,6 +816,20 @@ export type ProvisionBucketPayloadSelect = { provider?: boolean; success?: boolean; }; +export interface SetAndCommitPayload { + clientMutationId?: string | null; + commitEdge?: CommitEdge | null; + result?: Commit | null; +} +export type SetAndCommitPayloadSelect = { + clientMutationId?: boolean; + commitEdge?: { + select: CommitEdgeSelect; + }; + result?: { + select: CommitSelect; + }; +}; export interface SetDataAtPathPayload { clientMutationId?: string | null; result?: string | null; @@ -788,6 +838,20 @@ export type SetDataAtPathPayloadSelect = { clientMutationId?: boolean; result?: boolean; }; +export interface SetManyAndCommitPayload { + clientMutationId?: string | null; + commitEdge?: CommitEdge | null; + result?: Commit | null; +} +export type SetManyAndCommitPayloadSelect = { + clientMutationId?: boolean; + commitEdge?: { + select: CommitEdgeSelect; + }; + result?: { + select: CommitSelect; + }; +}; export interface CreateCommitPayload { clientMutationId?: string | null; /** The `Commit` that was created by this mutation. */ diff --git a/sdk/constructive-cli/src/objects/orm/mutation/index.ts b/sdk/constructive-cli/src/objects/orm/mutation/index.ts index a0c21cb2bd..7d08bdc42e 100644 --- a/sdk/constructive-cli/src/objects/orm/mutation/index.ts +++ b/sdk/constructive-cli/src/objects/orm/mutation/index.ts @@ -9,16 +9,25 @@ import type { InferSelectResult, StrictSelect } from '../select-types'; import type { InitEmptyRepoInput, InsertNodeAtPathInput, + InsertNodesAtPathsInput, ProvisionBucketInput, + SetAndCommitInput, SetDataAtPathInput, + SetManyAndCommitInput, InitEmptyRepoPayload, InsertNodeAtPathPayload, + InsertNodesAtPathsPayload, ProvisionBucketPayload, + SetAndCommitPayload, SetDataAtPathPayload, + SetManyAndCommitPayload, InitEmptyRepoPayloadSelect, InsertNodeAtPathPayloadSelect, + InsertNodesAtPathsPayloadSelect, ProvisionBucketPayloadSelect, + SetAndCommitPayloadSelect, SetDataAtPathPayloadSelect, + SetManyAndCommitPayloadSelect, } from '../input-types'; import { connectionFieldsMap } from '../input-types'; export interface InitEmptyRepoVariables { @@ -27,6 +36,9 @@ export interface InitEmptyRepoVariables { export interface InsertNodeAtPathVariables { input: InsertNodeAtPathInput; } +export interface InsertNodesAtPathsVariables { + input: InsertNodesAtPathsInput; +} /** * Variables for provisionBucket * Provision an S3 bucket for a logical bucket in the database. @@ -37,9 +49,15 @@ and lifecycle settings. export interface ProvisionBucketVariables { input: ProvisionBucketInput; } +export interface SetAndCommitVariables { + input: SetAndCommitInput; +} export interface SetDataAtPathVariables { input: SetDataAtPathInput; } +export interface SetManyAndCommitVariables { + input: SetManyAndCommitInput; +} export function createMutationOperations(client: OrmClient) { return { initEmptyRepo: ( @@ -100,6 +118,35 @@ export function createMutationOperations(client: OrmClient) { 'InsertNodeAtPathPayload' ), }), + insertNodesAtPaths: ( + args: InsertNodesAtPathsVariables, + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + insertNodesAtPaths: InferSelectResult | null; + }>({ + client, + operation: 'mutation', + operationName: 'InsertNodesAtPaths', + fieldName: 'insertNodesAtPaths', + ...buildCustomDocument( + 'mutation', + 'InsertNodesAtPaths', + 'insertNodesAtPaths', + options.select, + args, + [ + { + name: 'input', + type: 'InsertNodesAtPathsInput!', + }, + ], + connectionFieldsMap, + 'InsertNodesAtPathsPayload' + ), + }), provisionBucket: ( args: ProvisionBucketVariables, options: { @@ -129,6 +176,35 @@ export function createMutationOperations(client: OrmClient) { 'ProvisionBucketPayload' ), }), + setAndCommit: ( + args: SetAndCommitVariables, + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + setAndCommit: InferSelectResult | null; + }>({ + client, + operation: 'mutation', + operationName: 'SetAndCommit', + fieldName: 'setAndCommit', + ...buildCustomDocument( + 'mutation', + 'SetAndCommit', + 'setAndCommit', + options.select, + args, + [ + { + name: 'input', + type: 'SetAndCommitInput!', + }, + ], + connectionFieldsMap, + 'SetAndCommitPayload' + ), + }), setDataAtPath: ( args: SetDataAtPathVariables, options: { @@ -158,5 +234,34 @@ export function createMutationOperations(client: OrmClient) { 'SetDataAtPathPayload' ), }), + setManyAndCommit: ( + args: SetManyAndCommitVariables, + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + setManyAndCommit: InferSelectResult | null; + }>({ + client, + operation: 'mutation', + operationName: 'SetManyAndCommit', + fieldName: 'setManyAndCommit', + ...buildCustomDocument( + 'mutation', + 'SetManyAndCommit', + 'setManyAndCommit', + options.select, + args, + [ + { + name: 'input', + type: 'SetManyAndCommitInput!', + }, + ], + connectionFieldsMap, + 'SetManyAndCommitPayload' + ), + }), }; } diff --git a/sdk/constructive-cli/src/usage/README.md b/sdk/constructive-cli/src/usage/README.md index 00bdfd5968..ac51a01000 100644 --- a/sdk/constructive-cli/src/usage/README.md +++ b/sdk/constructive-cli/src/usage/README.md @@ -9,7 +9,7 @@ ## Overview - **Tables:** 18 -- **Custom queries:** 0 +- **Custom queries:** 2 - **Custom mutations:** 5 **Generators:** ORM, CLI diff --git a/sdk/constructive-cli/src/usage/cli/README.md b/sdk/constructive-cli/src/usage/cli/README.md index 0930cbfe0b..5a203782c5 100644 --- a/sdk/constructive-cli/src/usage/cli/README.md +++ b/sdk/constructive-cli/src/usage/cli/README.md @@ -44,6 +44,8 @@ csdk auth set-token | `org-limit-default` | orgLimitDefault CRUD operations | | `org-limit-event` | orgLimitEvent CRUD operations | | `org-limit-warning` | orgLimitWarning CRUD operations | +| `capture-app-limit-defaults` | captureAppLimitDefaults | +| `capture-org-limit-defaults` | captureOrgLimitDefaults | | `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, @@ -601,6 +603,20 @@ CRUD operations for OrgLimitWarning records. ## Custom Operations +### `capture-app-limit-defaults` + +captureAppLimitDefaults + +- **Type:** query +- **Arguments:** none + +### `capture-org-limit-defaults` + +captureOrgLimitDefaults + +- **Type:** query +- **Arguments:** none + ### `provision-bucket` Provision an S3 bucket for a logical bucket in the database. diff --git a/sdk/constructive-cli/src/usage/cli/commands.ts b/sdk/constructive-cli/src/usage/cli/commands.ts index 42ca3d0cfd..f1a0b81f4c 100644 --- a/sdk/constructive-cli/src/usage/cli/commands.ts +++ b/sdk/constructive-cli/src/usage/cli/commands.ts @@ -24,6 +24,8 @@ import orgLimitCreditCmd from './commands/org-limit-credit'; import orgLimitDefaultCmd from './commands/org-limit-default'; import orgLimitEventCmd from './commands/org-limit-event'; import orgLimitWarningCmd from './commands/org-limit-warning'; +import captureAppLimitDefaultsCmd from './commands/capture-app-limit-defaults'; +import captureOrgLimitDefaultsCmd from './commands/capture-org-limit-defaults'; import provisionBucketCmd from './commands/provision-bucket'; import seedAppLimitCapsDefaultsCmd from './commands/seed-app-limit-caps-defaults'; import seedAppLimitDefaultsCmd from './commands/seed-app-limit-defaults'; @@ -57,6 +59,8 @@ const createCommandMap: () => Record< 'org-limit-default': orgLimitDefaultCmd, 'org-limit-event': orgLimitEventCmd, 'org-limit-warning': orgLimitWarningCmd, + 'capture-app-limit-defaults': captureAppLimitDefaultsCmd, + 'capture-org-limit-defaults': captureOrgLimitDefaultsCmd, 'provision-bucket': provisionBucketCmd, 'seed-app-limit-caps-defaults': seedAppLimitCapsDefaultsCmd, 'seed-app-limit-defaults': seedAppLimitDefaultsCmd, @@ -64,7 +68,7 @@ const createCommandMap: () => Record< 'seed-org-limit-defaults': seedOrgLimitDefaultsCmd, }); const usage = - '\ncsdk \n\nCommands:\n context Manage API contexts\n auth Manage authentication\n app-limit-cap appLimitCap CRUD operations\n app-limit-caps-default appLimitCapsDefault CRUD operations\n app-limit appLimit CRUD operations\n app-limit-credit-code appLimitCreditCode CRUD operations\n app-limit-credit-code-item appLimitCreditCodeItem CRUD operations\n app-limit-credit appLimitCredit CRUD operations\n app-limit-credit-redemption appLimitCreditRedemption CRUD operations\n app-limit-default appLimitDefault CRUD operations\n app-limit-event appLimitEvent CRUD operations\n app-limit-warning appLimitWarning CRUD operations\n org-limit-aggregate orgLimitAggregate CRUD operations\n org-limit-cap orgLimitCap CRUD operations\n org-limit-caps-default orgLimitCapsDefault CRUD operations\n org-limit orgLimit CRUD operations\n org-limit-credit orgLimitCredit CRUD operations\n org-limit-default orgLimitDefault CRUD operations\n org-limit-event orgLimitEvent CRUD operations\n org-limit-warning orgLimitWarning CRUD operations\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 seed-app-limit-caps-defaults seedAppLimitCapsDefaults\n seed-app-limit-defaults seedAppLimitDefaults\n seed-org-limit-caps-defaults seedOrgLimitCapsDefaults\n seed-org-limit-defaults seedOrgLimitDefaults\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 app-limit-cap appLimitCap CRUD operations\n app-limit-caps-default appLimitCapsDefault CRUD operations\n app-limit appLimit CRUD operations\n app-limit-credit-code appLimitCreditCode CRUD operations\n app-limit-credit-code-item appLimitCreditCodeItem CRUD operations\n app-limit-credit appLimitCredit CRUD operations\n app-limit-credit-redemption appLimitCreditRedemption CRUD operations\n app-limit-default appLimitDefault CRUD operations\n app-limit-event appLimitEvent CRUD operations\n app-limit-warning appLimitWarning CRUD operations\n org-limit-aggregate orgLimitAggregate CRUD operations\n org-limit-cap orgLimitCap CRUD operations\n org-limit-caps-default orgLimitCapsDefault CRUD operations\n org-limit orgLimit CRUD operations\n org-limit-credit orgLimitCredit CRUD operations\n org-limit-default orgLimitDefault CRUD operations\n org-limit-event orgLimitEvent CRUD operations\n org-limit-warning orgLimitWarning CRUD operations\n capture-app-limit-defaults captureAppLimitDefaults\n capture-org-limit-defaults captureOrgLimitDefaults\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 seed-app-limit-caps-defaults seedAppLimitCapsDefaults\n seed-app-limit-defaults seedAppLimitDefaults\n seed-org-limit-caps-defaults seedOrgLimitCapsDefaults\n seed-org-limit-defaults seedOrgLimitDefaults\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/org-permissions-get-mask.ts b/sdk/constructive-cli/src/usage/cli/commands/capture-app-limit-defaults.ts similarity index 52% rename from sdk/constructive-cli/src/admin/cli/commands/org-permissions-get-mask.ts rename to sdk/constructive-cli/src/usage/cli/commands/capture-app-limit-defaults.ts index 7045bd2006..0656f568ba 100644 --- a/sdk/constructive-cli/src/admin/cli/commands/org-permissions-get-mask.ts +++ b/sdk/constructive-cli/src/usage/cli/commands/capture-app-limit-defaults.ts @@ -1,11 +1,10 @@ /** - * CLI command for query orgPermissionsGetMask + * CLI command for query captureAppLimitDefaults * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ import { CLIOptions, Inquirerer } from 'inquirerer'; import { getClient } from '../executor'; -import type { OrgPermissionsGetMaskVariables } from '../../orm/query'; export default async ( argv: Partial>, prompter: Inquirerer, @@ -14,24 +13,15 @@ export default async ( try { if (argv.help || argv.h) { console.log( - 'org-permissions-get-mask - orgPermissionsGetMask\n\nUsage: org-permissions-get-mask [OPTIONS]\n' + 'capture-app-limit-defaults - captureAppLimitDefaults\n\nUsage: capture-app-limit-defaults [OPTIONS]\n' ); process.exit(0); } - const answers = await prompter.prompt(argv, [ - { - type: 'text', - name: 'ids', - message: 'ids', - }, - ]); const client = getClient(); - const result = await client.query - .orgPermissionsGetMask(answers as unknown as OrgPermissionsGetMaskVariables) - .execute(); + const result = await client.query.captureAppLimitDefaults().execute(); console.log(JSON.stringify(result, null, 2)); } catch (error) { - console.error('Failed: orgPermissionsGetMask'); + console.error('Failed: captureAppLimitDefaults'); if (error instanceof Error) { console.error(error.message); } diff --git a/sdk/constructive-cli/src/admin/cli/commands/app-permissions-get-mask.ts b/sdk/constructive-cli/src/usage/cli/commands/capture-org-limit-defaults.ts similarity index 52% rename from sdk/constructive-cli/src/admin/cli/commands/app-permissions-get-mask.ts rename to sdk/constructive-cli/src/usage/cli/commands/capture-org-limit-defaults.ts index f40cf36074..68ccf23538 100644 --- a/sdk/constructive-cli/src/admin/cli/commands/app-permissions-get-mask.ts +++ b/sdk/constructive-cli/src/usage/cli/commands/capture-org-limit-defaults.ts @@ -1,11 +1,10 @@ /** - * CLI command for query appPermissionsGetMask + * CLI command for query captureOrgLimitDefaults * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ import { CLIOptions, Inquirerer } from 'inquirerer'; import { getClient } from '../executor'; -import type { AppPermissionsGetMaskVariables } from '../../orm/query'; export default async ( argv: Partial>, prompter: Inquirerer, @@ -14,24 +13,15 @@ export default async ( try { if (argv.help || argv.h) { console.log( - 'app-permissions-get-mask - appPermissionsGetMask\n\nUsage: app-permissions-get-mask [OPTIONS]\n' + 'capture-org-limit-defaults - captureOrgLimitDefaults\n\nUsage: capture-org-limit-defaults [OPTIONS]\n' ); process.exit(0); } - const answers = await prompter.prompt(argv, [ - { - type: 'text', - name: 'ids', - message: 'ids', - }, - ]); const client = getClient(); - const result = await client.query - .appPermissionsGetMask(answers as unknown as AppPermissionsGetMaskVariables) - .execute(); + const result = await client.query.captureOrgLimitDefaults().execute(); console.log(JSON.stringify(result, null, 2)); } catch (error) { - console.error('Failed: appPermissionsGetMask'); + console.error('Failed: captureOrgLimitDefaults'); if (error instanceof Error) { console.error(error.message); } diff --git a/sdk/constructive-cli/src/usage/orm/README.md b/sdk/constructive-cli/src/usage/orm/README.md index dfcec601ac..99c23e9f50 100644 --- a/sdk/constructive-cli/src/usage/orm/README.md +++ b/sdk/constructive-cli/src/usage/orm/README.md @@ -678,6 +678,28 @@ const deleted = await db.orgLimitWarning.delete({ where: { id: '' } }).exe ## Custom Operations +### `db.query.captureAppLimitDefaults` + +captureAppLimitDefaults + +- **Type:** query +- **Arguments:** none + +```typescript +const result = await db.query.captureAppLimitDefaults().execute(); +``` + +### `db.query.captureOrgLimitDefaults` + +captureOrgLimitDefaults + +- **Type:** query +- **Arguments:** none + +```typescript +const result = await db.query.captureOrgLimitDefaults().execute(); +``` + ### `db.mutation.provisionBucket` Provision an S3 bucket for a logical bucket in the database. diff --git a/sdk/constructive-cli/src/usage/orm/index.ts b/sdk/constructive-cli/src/usage/orm/index.ts index 7d48027d3b..04e02a468b 100644 --- a/sdk/constructive-cli/src/usage/orm/index.ts +++ b/sdk/constructive-cli/src/usage/orm/index.ts @@ -23,12 +23,14 @@ import { OrgLimitCreditModel } from './models/orgLimitCredit'; import { OrgLimitDefaultModel } from './models/orgLimitDefault'; import { OrgLimitEventModel } from './models/orgLimitEvent'; import { OrgLimitWarningModel } from './models/orgLimitWarning'; +import { createQueryOperations } from './query'; import { createMutationOperations } from './mutation'; export type { OrmClientConfig, QueryResult, GraphQLError, GraphQLAdapter } from './client'; export { GraphQLRequestError, FetchAdapter } from './client'; export { QueryBuilder } from './query-builder'; export * from './select-types'; export * from './models'; +export { createQueryOperations } from './query'; export { createMutationOperations } from './mutation'; /** * Create an ORM client instance @@ -74,6 +76,7 @@ export function createClient(config: OrmClientConfig) { orgLimitDefault: new OrgLimitDefaultModel(client), orgLimitEvent: new OrgLimitEventModel(client), orgLimitWarning: new OrgLimitWarningModel(client), + query: createQueryOperations(client), mutation: createMutationOperations(client), }; } diff --git a/sdk/constructive-cli/src/usage/orm/input-types.ts b/sdk/constructive-cli/src/usage/orm/input-types.ts index f8df1c43d8..330559a4a4 100644 --- a/sdk/constructive-cli/src/usage/orm/input-types.ts +++ b/sdk/constructive-cli/src/usage/orm/input-types.ts @@ -266,7 +266,7 @@ export interface AppLimit { organizationId?: string | null; /** Temporary credits for the current billing window. Resets to 0 on window expiry. */ periodCredits?: string | null; - /** Ceiling set by the active plan via apply_plan(). Window reset does not change this value. */ + /** Ceiling pinned for this actor by the active plan via apply_plan(). NULL means the ceiling follows the tenant default in the default-limits table, so raising a default reaches rows that already exist. Window reset does not change this value. */ planMax?: string | null; /** Permanent credits from purchases, admin grants, or lifetime rewards. Survives window reset. */ purchasedCredits?: string | null; @@ -277,7 +277,7 @@ export interface AppLimit { /** Start of the current metering window; NULL means no time window */ windowStart?: string | null; } -/** Redeemable credit codes managed by admins with the add_credits permission */ +/** Redeemable credit codes managed by admins with the add_credits capability */ export interface AppLimitCreditCode { /** Human-readable credit code (case-insensitive, unique) */ code?: string | null; @@ -394,7 +394,7 @@ export interface OrgLimitAggregate { organizationId?: string | null; /** Temporary credits for the current billing window. Resets to 0 on window expiry. */ periodCredits?: string | null; - /** Ceiling set by the active plan via apply_plan(). Window reset does not change this value. */ + /** Ceiling pinned for this entity by the active plan via apply_plan(). NULL means the ceiling follows the tenant default in the default-limits table, so raising a default reaches rows that already exist. Window reset does not change this value. */ planMax?: string | null; /** Permanent credits from purchases, admin grants, or lifetime rewards. Survives window reset. */ purchasedCredits?: string | null; @@ -443,7 +443,7 @@ export interface OrgLimit { organizationId?: string | null; /** Temporary credits for the current billing window. Resets to 0 on window expiry. */ periodCredits?: string | null; - /** Ceiling set by the active plan via apply_plan(). Window reset does not change this value. */ + /** Ceiling pinned for this actor by the active plan via apply_plan(). NULL means the ceiling follows the tenant default in the default-limits table, so raising a default reaches rows that already exist. Window reset does not change this value. */ planMax?: string | null; /** Permanent credits from purchases, admin grants, or lifetime rewards. Survives window reset. */ purchasedCredits?: string | null; @@ -2229,7 +2229,7 @@ export interface AppLimitInput { organizationId?: string; /** Temporary credits for the current billing window. Resets to 0 on window expiry. */ periodCredits?: string; - /** Ceiling set by the active plan via apply_plan(). Window reset does not change this value. */ + /** Ceiling pinned for this actor by the active plan via apply_plan(). NULL means the ceiling follows the tenant default in the default-limits table, so raising a default reaches rows that already exist. Window reset does not change this value. */ planMax?: string; /** Permanent credits from purchases, admin grants, or lifetime rewards. Survives window reset. */ purchasedCredits?: string; @@ -2376,7 +2376,7 @@ export interface OrgLimitAggregateInput { organizationId?: string; /** Temporary credits for the current billing window. Resets to 0 on window expiry. */ periodCredits?: string; - /** Ceiling set by the active plan via apply_plan(). Window reset does not change this value. */ + /** Ceiling pinned for this entity by the active plan via apply_plan(). NULL means the ceiling follows the tenant default in the default-limits table, so raising a default reaches rows that already exist. Window reset does not change this value. */ planMax?: string; /** Permanent credits from purchases, admin grants, or lifetime rewards. Survives window reset. */ purchasedCredits?: string; @@ -2425,7 +2425,7 @@ export interface OrgLimitInput { organizationId?: string; /** Temporary credits for the current billing window. Resets to 0 on window expiry. */ periodCredits?: string; - /** Ceiling set by the active plan via apply_plan(). Window reset does not change this value. */ + /** Ceiling pinned for this actor by the active plan via apply_plan(). NULL means the ceiling follows the tenant default in the default-limits table, so raising a default reaches rows that already exist. Window reset does not change this value. */ planMax?: string; /** Permanent credits from purchases, admin grants, or lifetime rewards. Survives window reset. */ purchasedCredits?: string; diff --git a/sdk/constructive-cli/src/usage/orm/query/index.ts b/sdk/constructive-cli/src/usage/orm/query/index.ts new file mode 100644 index 0000000000..4972b387c7 --- /dev/null +++ b/sdk/constructive-cli/src/usage/orm/query/index.ts @@ -0,0 +1,51 @@ +/** + * Custom query operations + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ +import { OrmClient } from '../client'; +import { QueryBuilder, buildCustomDocument } from '../query-builder'; +import type { InferSelectResult, StrictSelect } from '../select-types'; +import { connectionFieldsMap } from '../input-types'; +export function createQueryOperations(client: OrmClient) { + return { + captureAppLimitDefaults: (options?: { select?: Record }) => + new QueryBuilder<{ + captureAppLimitDefaults: unknown | null; + }>({ + client, + operation: 'query', + operationName: 'CaptureAppLimitDefaults', + fieldName: 'captureAppLimitDefaults', + ...buildCustomDocument( + 'query', + 'CaptureAppLimitDefaults', + 'captureAppLimitDefaults', + options?.select, + undefined, + [], + connectionFieldsMap, + undefined + ), + }), + captureOrgLimitDefaults: (options?: { select?: Record }) => + new QueryBuilder<{ + captureOrgLimitDefaults: unknown | null; + }>({ + client, + operation: 'query', + operationName: 'CaptureOrgLimitDefaults', + fieldName: 'captureOrgLimitDefaults', + ...buildCustomDocument( + 'query', + 'CaptureOrgLimitDefaults', + 'captureOrgLimitDefaults', + options?.select, + undefined, + [], + connectionFieldsMap, + undefined + ), + }), + }; +} diff --git a/sdk/constructive-react/src/admin/README.md b/sdk/constructive-react/src/admin/README.md index 99dd47ec2e..0c2f27c116 100644 --- a/sdk/constructive-react/src/admin/README.md +++ b/sdk/constructive-react/src/admin/README.md @@ -8,8 +8,8 @@ ## Overview -- **Tables:** 30 -- **Custom queries:** 9 +- **Tables:** 26 +- **Custom queries:** 1 - **Custom mutations:** 3 **Generators:** ORM, React Query diff --git a/sdk/constructive-react/src/admin/hooks/README.md b/sdk/constructive-react/src/admin/hooks/README.md index 5479468c79..bf93fd06bd 100644 --- a/sdk/constructive-react/src/admin/hooks/README.md +++ b/sdk/constructive-react/src/admin/hooks/README.md @@ -37,26 +37,36 @@ function App() { | `useCreateAppAdminGrantMutation` | Mutation | Records of admin role grants and revocations between members | | `useUpdateAppAdminGrantMutation` | Mutation | Records of admin role grants and revocations between members | | `useDeleteAppAdminGrantMutation` | Mutation | Records of admin role grants and revocations between members | +| `useAppCapabilityDefaultCapabilitiesQuery` | Query | Join table linking capability defaults to individual capabilities; recompute trigger rebuilds the defaults bitmask | +| `useAppCapabilityDefaultCapabilityQuery` | Query | Join table linking capability defaults to individual capabilities; recompute trigger rebuilds the defaults bitmask | +| `useCreateAppCapabilityDefaultCapabilityMutation` | Mutation | Join table linking capability defaults to individual capabilities; recompute trigger rebuilds the defaults bitmask | +| `useUpdateAppCapabilityDefaultCapabilityMutation` | Mutation | Join table linking capability defaults to individual capabilities; recompute trigger rebuilds the defaults bitmask | +| `useDeleteAppCapabilityDefaultCapabilityMutation` | Mutation | Join table linking capability defaults to individual capabilities; recompute trigger rebuilds the defaults bitmask | +| `useAppCapabilityDefaultGrantsQuery` | Query | Audit log of capability additions and removals from the defaults bitmask | +| `useAppCapabilityDefaultGrantQuery` | Query | Audit log of capability additions and removals from the defaults bitmask | +| `useCreateAppCapabilityDefaultGrantMutation` | Mutation | Audit log of capability additions and removals from the defaults bitmask | +| `useUpdateAppCapabilityDefaultGrantMutation` | Mutation | Audit log of capability additions and removals from the defaults bitmask | +| `useDeleteAppCapabilityDefaultGrantMutation` | Mutation | Audit log of capability additions and removals from the defaults bitmask | | `useAppClaimedInvitesQuery` | Query | Records of successfully claimed invitations, linking senders to receivers | | `useAppClaimedInviteQuery` | Query | Records of successfully claimed invitations, linking senders to receivers | | `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 | -| `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 | +| `useAppGrantsQuery` | Query | Records of individual capability grants and revocations for members via bitmask | +| `useAppGrantQuery` | Query | Records of individual capability grants and revocations for members via bitmask | +| `useCreateAppGrantMutation` | Mutation | Records of individual capability grants and revocations for members via bitmask | +| `useUpdateAppGrantMutation` | Mutation | Records of individual capability grants and revocations for members via bitmask | +| `useDeleteAppGrantMutation` | Mutation | Records of individual capability grants and revocations for members via bitmask | | `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 | -| `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 | +| `useAppMembershipsQuery` | Query | Tracks membership records linking actors to entities with capability bitmasks, ownership, and admin status | +| `useAppMembershipQuery` | Query | Tracks membership records linking actors to entities with capability bitmasks, ownership, and admin status | +| `useCreateAppMembershipMutation` | Mutation | Tracks membership records linking actors to entities with capability bitmasks, ownership, and admin status | +| `useUpdateAppMembershipMutation` | Mutation | Tracks membership records linking actors to entities with capability bitmasks, ownership, and admin status | +| `useDeleteAppMembershipMutation` | Mutation | Tracks membership records linking actors to entities with capability bitmasks, ownership, and admin status | | `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 | @@ -67,26 +77,6 @@ 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 | -| `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 | -| `useUpdateAppPermissionMutation` | Mutation | Defines available permissions as named bits within a bitmask, used by the RBAC system for access control | -| `useDeleteAppPermissionMutation` | Mutation | Defines available permissions as named bits within a bitmask, used by the RBAC system for access control | -| `useAppPermissionDefaultsQuery` | Query | Stores the default permission bitmask assigned to new members upon joining | -| `useAppPermissionDefaultQuery` | Query | Stores the default permission bitmask assigned to new members upon joining | -| `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 | -| `useAppPermissionDefaultGrantsQuery` | Query | Audit log of permission additions and removals from the defaults bitmask | -| `useAppPermissionDefaultGrantQuery` | Query | Audit log of permission additions and removals from the defaults bitmask | -| `useCreateAppPermissionDefaultGrantMutation` | Mutation | Audit log of permission additions and removals from the defaults bitmask | -| `useUpdateAppPermissionDefaultGrantMutation` | Mutation | Audit log of permission additions and removals from the defaults bitmask | -| `useDeleteAppPermissionDefaultGrantMutation` | Mutation | Audit log of permission additions and removals from the defaults bitmask | -| `useAppPermissionDefaultPermissionsQuery` | Query | Join table linking permission defaults to individual permissions; recompute trigger rebuilds the defaults bitmask | -| `useAppPermissionDefaultPermissionQuery` | Query | Join table linking permission defaults to individual permissions; recompute trigger rebuilds the defaults bitmask | -| `useCreateAppPermissionDefaultPermissionMutation` | Mutation | Join table linking permission defaults to individual permissions; recompute trigger rebuilds the defaults bitmask | -| `useUpdateAppPermissionDefaultPermissionMutation` | Mutation | Join table linking permission defaults to individual permissions; recompute trigger rebuilds the defaults bitmask | -| `useDeleteAppPermissionDefaultPermissionMutation` | Mutation | Join table linking permission defaults to individual permissions; recompute trigger rebuilds the defaults bitmask | | `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) | @@ -97,6 +87,16 @@ function App() { | `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 | +| `useOrgCapabilityDefaultCapabilitiesQuery` | Query | Join table linking capability defaults to individual capabilities; recompute trigger rebuilds the defaults bitmask | +| `useOrgCapabilityDefaultCapabilityQuery` | Query | Join table linking capability defaults to individual capabilities; recompute trigger rebuilds the defaults bitmask | +| `useCreateOrgCapabilityDefaultCapabilityMutation` | Mutation | Join table linking capability defaults to individual capabilities; recompute trigger rebuilds the defaults bitmask | +| `useUpdateOrgCapabilityDefaultCapabilityMutation` | Mutation | Join table linking capability defaults to individual capabilities; recompute trigger rebuilds the defaults bitmask | +| `useDeleteOrgCapabilityDefaultCapabilityMutation` | Mutation | Join table linking capability defaults to individual capabilities; recompute trigger rebuilds the defaults bitmask | +| `useOrgCapabilityDefaultGrantsQuery` | Query | Audit log of capability additions and removals from the defaults bitmask | +| `useOrgCapabilityDefaultGrantQuery` | Query | Audit log of capability additions and removals from the defaults bitmask | +| `useCreateOrgCapabilityDefaultGrantMutation` | Mutation | Audit log of capability additions and removals from the defaults bitmask | +| `useUpdateOrgCapabilityDefaultGrantMutation` | Mutation | Audit log of capability additions and removals from the defaults bitmask | +| `useDeleteOrgCapabilityDefaultGrantMutation` | Mutation | Audit log of capability additions and removals from the defaults 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 | @@ -116,11 +116,11 @@ function App() { | `useCreateOrgGetManagersRecordMutation` | Mutation | Create a orgGetManagersRecord | | `useOrgGetSubordinatesQuery` | Query | List all orgGetSubordinates | | `useCreateOrgGetSubordinatesRecordMutation` | Mutation | Create a orgGetSubordinatesRecord | -| `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 | +| `useOrgGrantsQuery` | Query | Records of individual capability grants and revocations for members via bitmask | +| `useOrgGrantQuery` | Query | Records of individual capability grants and revocations for members via bitmask | +| `useCreateOrgGrantMutation` | Mutation | Records of individual capability grants and revocations for members via bitmask | +| `useUpdateOrgGrantMutation` | Mutation | Records of individual capability grants and revocations for members via bitmask | +| `useDeleteOrgGrantMutation` | Mutation | Records of individual capability grants and revocations for members via bitmask | | `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 | @@ -136,11 +136,11 @@ function App() { | `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) | -| `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 | +| `useOrgMembershipsQuery` | Query | Tracks membership records linking actors to entities with capability bitmasks, ownership, and admin status | +| `useOrgMembershipQuery` | Query | Tracks membership records linking actors to entities with capability bitmasks, ownership, and admin status | +| `useCreateOrgMembershipMutation` | Mutation | Tracks membership records linking actors to entities with capability bitmasks, ownership, and admin status | +| `useUpdateOrgMembershipMutation` | Mutation | Tracks membership records linking actors to entities with capability bitmasks, ownership, and admin status | +| `useDeleteOrgMembershipMutation` | Mutation | Tracks membership records linking actors to entities with capability bitmasks, ownership, and admin status | | `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 | @@ -156,35 +156,7 @@ function App() { | `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 | -| `useOrgPermissionsQuery` | Query | Defines available permissions as named bits within a bitmask, used by the RBAC system for access control | -| `useOrgPermissionQuery` | Query | Defines available permissions as named bits within a bitmask, used by the RBAC system for access control | -| `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 | -| `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 | -| `useOrgPermissionDefaultGrantsQuery` | Query | Audit log of permission additions and removals from the defaults bitmask | -| `useOrgPermissionDefaultGrantQuery` | Query | Audit log of permission additions and removals from the defaults bitmask | -| `useCreateOrgPermissionDefaultGrantMutation` | Mutation | Audit log of permission additions and removals from the defaults bitmask | -| `useUpdateOrgPermissionDefaultGrantMutation` | Mutation | Audit log of permission additions and removals from the defaults bitmask | -| `useDeleteOrgPermissionDefaultGrantMutation` | Mutation | Audit log of permission additions and removals from the defaults bitmask | -| `useOrgPermissionDefaultPermissionsQuery` | Query | Join table linking permission defaults to individual permissions; recompute trigger rebuilds the defaults bitmask | -| `useOrgPermissionDefaultPermissionQuery` | Query | Join table linking permission defaults to individual permissions; recompute trigger rebuilds the defaults bitmask | -| `useCreateOrgPermissionDefaultPermissionMutation` | Mutation | Join table linking permission defaults to individual permissions; recompute trigger rebuilds the defaults bitmask | -| `useUpdateOrgPermissionDefaultPermissionMutation` | Mutation | Join table linking permission defaults to individual permissions; recompute trigger rebuilds the defaults bitmask | -| `useDeleteOrgPermissionDefaultPermissionMutation` | Mutation | Join table linking permission defaults to individual permissions; recompute trigger rebuilds the defaults bitmask | -| `useAppPermissionsGetByMaskQuery` | Query | Reads and enables pagination through a set of `AppPermission`. | -| `useAppPermissionsGetMaskQuery` | Query | appPermissionsGetMask | -| `useAppPermissionsGetMaskByNamesQuery` | Query | appPermissionsGetMaskByNames | -| `useAppPermissionsGetPaddedMaskQuery` | Query | appPermissionsGetPaddedMask | | `useOrgIsManagerOfQuery` | Query | orgIsManagerOf | -| `useOrgPermissionsGetByMaskQuery` | Query | Reads and enables pagination through a set of `OrgPermission`. | -| `useOrgPermissionsGetMaskQuery` | Query | orgPermissionsGetMask | -| `useOrgPermissionsGetMaskByNamesQuery` | Query | orgPermissionsGetMaskByNames | -| `useOrgPermissionsGetPaddedMaskQuery` | Query | orgPermissionsGetPaddedMask | | `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, @@ -215,6 +187,48 @@ const { mutate: create } = useCreateAppAdminGrantMutation({ create({ actorId: '', grantorId: '', isGrant: '' }); ``` +### AppCapabilityDefaultCapability + +```typescript +// List all appCapabilityDefaultCapabilities +const { data, isLoading } = useAppCapabilityDefaultCapabilitiesQuery({ + selection: { fields: { capabilityId: true, createdAt: true, id: true, updatedAt: true } }, +}); + +// Get one appCapabilityDefaultCapability +const { data: item } = useAppCapabilityDefaultCapabilityQuery({ + id: '', + selection: { fields: { capabilityId: true, createdAt: true, id: true, updatedAt: true } }, +}); + +// Create a appCapabilityDefaultCapability +const { mutate: create } = useCreateAppCapabilityDefaultCapabilityMutation({ + selection: { fields: { id: true } }, +}); +create({ capabilityId: '' }); +``` + +### AppCapabilityDefaultGrant + +```typescript +// List all appCapabilityDefaultGrants +const { data, isLoading } = useAppCapabilityDefaultGrantsQuery({ + selection: { fields: { capabilityId: true, createdAt: true, grantorId: true, id: true, isGrant: true, updatedAt: true } }, +}); + +// Get one appCapabilityDefaultGrant +const { data: item } = useAppCapabilityDefaultGrantQuery({ + id: '', + selection: { fields: { capabilityId: true, createdAt: true, grantorId: true, id: true, isGrant: true, updatedAt: true } }, +}); + +// Create a appCapabilityDefaultGrant +const { mutate: create } = useCreateAppCapabilityDefaultGrantMutation({ + selection: { fields: { id: true } }, +}); +create({ capabilityId: '', grantorId: '', isGrant: '' }); +``` + ### AppClaimedInvite ```typescript @@ -241,20 +255,20 @@ create({ data: '', receiverId: '', senderId: '' }); ```typescript // List all appGrants const { data, isLoading } = useAppGrantsQuery({ - selection: { fields: { actorId: true, createdAt: true, grantorId: true, id: true, isGrant: true, permissions: true, updatedAt: true } }, + selection: { fields: { actorId: true, capabilities: true, createdAt: true, grantorId: true, id: true, isGrant: true, updatedAt: true } }, }); // Get one appGrant const { data: item } = useAppGrantQuery({ id: '', - selection: { fields: { actorId: true, createdAt: true, grantorId: true, id: true, isGrant: true, permissions: true, updatedAt: true } }, + selection: { fields: { actorId: true, capabilities: true, createdAt: true, grantorId: true, id: true, isGrant: true, updatedAt: true } }, }); // Create a appGrant const { mutate: create } = useCreateAppGrantMutation({ selection: { fields: { id: true } }, }); -create({ actorId: '', grantorId: '', isGrant: '', permissions: '' }); +create({ actorId: '', capabilities: '', grantorId: '', isGrant: '' }); ``` ### AppInvite @@ -283,20 +297,20 @@ create({ channel: '', data: '', email: '', expiresAt: '', - selection: { fields: { actorId: true, createdAt: true, createdBy: true, granted: true, id: true, isActive: true, isAdmin: true, isApproved: true, isBanned: true, isDisabled: true, isOwner: true, isVerified: true, permissions: true, profileId: true, updatedAt: true, updatedBy: true } }, + selection: { fields: { actorId: true, capabilities: true, createdAt: true, createdBy: true, granted: true, id: true, isActive: true, isAdmin: true, isApproved: true, isBanned: true, isDisabled: true, isOwner: true, isVerified: true, profileId: true, updatedAt: true, updatedBy: true } }, }); // Create a appMembership const { mutate: create } = useCreateAppMembershipMutation({ selection: { fields: { id: true } }, }); -create({ actorId: '', createdBy: '', granted: '', isActive: '', isAdmin: '', isApproved: '', isBanned: '', isDisabled: '', isOwner: '', isVerified: '', permissions: '', profileId: '', updatedBy: '' }); +create({ actorId: '', capabilities: '', createdBy: '', granted: '', isActive: '', isAdmin: '', isApproved: '', isBanned: '', isDisabled: '', isOwner: '', isVerified: '', profileId: '', updatedBy: '' }); ``` ### AppMembershipDefault @@ -341,130 +355,88 @@ const { mutate: create } = useCreateAppOwnerGrantMutation({ create({ actorId: '', grantorId: '', isGrant: '' }); ``` -### AppPermission - -```typescript -// List all appPermissions -const { data, isLoading } = useAppPermissionsQuery({ - selection: { fields: { bitnum: true, bitstr: true, description: true, id: true, name: true } }, -}); - -// Get one appPermission -const { data: item } = useAppPermissionQuery({ - id: '', - selection: { fields: { bitnum: true, bitstr: true, description: true, id: true, name: true } }, -}); - -// Create a appPermission -const { mutate: create } = useCreateAppPermissionMutation({ - selection: { fields: { id: true } }, -}); -create({ bitnum: '', bitstr: '', description: '', name: '' }); -``` - -### AppPermissionDefault +### MembershipType ```typescript -// List all appPermissionDefaults -const { data, isLoading } = useAppPermissionDefaultsQuery({ - selection: { fields: { id: true, permissions: true } }, +// List all membershipTypes +const { data, isLoading } = useMembershipTypesQuery({ + selection: { fields: { description: true, hasUsersTableEntry: true, id: true, name: true, parentMembershipType: true, scope: true } }, }); -// Get one appPermissionDefault -const { data: item } = useAppPermissionDefaultQuery({ - id: '', - selection: { fields: { id: true, permissions: true } }, +// Get one membershipType +const { data: item } = useMembershipTypeQuery({ + id: '', + selection: { fields: { description: true, hasUsersTableEntry: true, id: true, name: true, parentMembershipType: true, scope: true } }, }); -// Create a appPermissionDefault -const { mutate: create } = useCreateAppPermissionDefaultMutation({ +// Create a membershipType +const { mutate: create } = useCreateMembershipTypeMutation({ selection: { fields: { id: true } }, }); -create({ permissions: '' }); +create({ description: '', hasUsersTableEntry: '', name: '', parentMembershipType: '', scope: '' }); ``` -### AppPermissionDefaultGrant +### OrgAdminGrant ```typescript -// List all appPermissionDefaultGrants -const { data, isLoading } = useAppPermissionDefaultGrantsQuery({ - selection: { fields: { createdAt: true, grantorId: true, id: true, isGrant: true, permissionId: true, updatedAt: true } }, +// List all orgAdminGrants +const { data, isLoading } = useOrgAdminGrantsQuery({ + selection: { fields: { actorId: true, createdAt: true, entityId: true, grantorId: true, id: true, isGrant: true, updatedAt: true } }, }); -// Get one appPermissionDefaultGrant -const { data: item } = useAppPermissionDefaultGrantQuery({ +// Get one orgAdminGrant +const { data: item } = useOrgAdminGrantQuery({ id: '', - selection: { fields: { createdAt: true, grantorId: true, id: true, isGrant: true, permissionId: true, updatedAt: true } }, + selection: { fields: { actorId: true, createdAt: true, entityId: true, grantorId: true, id: true, isGrant: true, updatedAt: true } }, }); -// Create a appPermissionDefaultGrant -const { mutate: create } = useCreateAppPermissionDefaultGrantMutation({ +// Create a orgAdminGrant +const { mutate: create } = useCreateOrgAdminGrantMutation({ selection: { fields: { id: true } }, }); -create({ grantorId: '', isGrant: '', permissionId: '' }); +create({ actorId: '', entityId: '', grantorId: '', isGrant: '' }); ``` -### AppPermissionDefaultPermission +### OrgCapabilityDefaultCapability ```typescript -// List all appPermissionDefaultPermissions -const { data, isLoading } = useAppPermissionDefaultPermissionsQuery({ - selection: { fields: { createdAt: true, id: true, permissionId: true, updatedAt: true } }, +// List all orgCapabilityDefaultCapabilities +const { data, isLoading } = useOrgCapabilityDefaultCapabilitiesQuery({ + selection: { fields: { capabilityId: true, createdAt: true, entityId: true, id: true, updatedAt: true } }, }); -// Get one appPermissionDefaultPermission -const { data: item } = useAppPermissionDefaultPermissionQuery({ +// Get one orgCapabilityDefaultCapability +const { data: item } = useOrgCapabilityDefaultCapabilityQuery({ id: '', - selection: { fields: { createdAt: true, id: true, permissionId: true, updatedAt: true } }, -}); - -// Create a appPermissionDefaultPermission -const { mutate: create } = useCreateAppPermissionDefaultPermissionMutation({ - selection: { fields: { id: true } }, -}); -create({ permissionId: '' }); -``` - -### MembershipType - -```typescript -// List all membershipTypes -const { data, isLoading } = useMembershipTypesQuery({ - selection: { fields: { description: true, hasUsersTableEntry: true, id: true, name: true, parentMembershipType: true, scope: true } }, -}); - -// Get one membershipType -const { data: item } = useMembershipTypeQuery({ - id: '', - selection: { fields: { description: true, hasUsersTableEntry: true, id: true, name: true, parentMembershipType: true, scope: true } }, + selection: { fields: { capabilityId: true, createdAt: true, entityId: true, id: true, updatedAt: true } }, }); -// Create a membershipType -const { mutate: create } = useCreateMembershipTypeMutation({ +// Create a orgCapabilityDefaultCapability +const { mutate: create } = useCreateOrgCapabilityDefaultCapabilityMutation({ selection: { fields: { id: true } }, }); -create({ description: '', hasUsersTableEntry: '', name: '', parentMembershipType: '', scope: '' }); +create({ capabilityId: '', entityId: '' }); ``` -### OrgAdminGrant +### OrgCapabilityDefaultGrant ```typescript -// List all orgAdminGrants -const { data, isLoading } = useOrgAdminGrantsQuery({ - selection: { fields: { actorId: true, createdAt: true, entityId: true, grantorId: true, id: true, isGrant: true, updatedAt: true } }, +// List all orgCapabilityDefaultGrants +const { data, isLoading } = useOrgCapabilityDefaultGrantsQuery({ + selection: { fields: { capabilityId: true, createdAt: true, entityId: true, grantorId: true, id: true, isGrant: true, updatedAt: true } }, }); -// Get one orgAdminGrant -const { data: item } = useOrgAdminGrantQuery({ +// Get one orgCapabilityDefaultGrant +const { data: item } = useOrgCapabilityDefaultGrantQuery({ id: '', - selection: { fields: { actorId: true, createdAt: true, entityId: true, grantorId: true, id: true, isGrant: true, updatedAt: true } }, + selection: { fields: { capabilityId: true, createdAt: true, entityId: true, grantorId: true, id: true, isGrant: true, updatedAt: true } }, }); -// Create a orgAdminGrant -const { mutate: create } = useCreateOrgAdminGrantMutation({ +// Create a orgCapabilityDefaultGrant +const { mutate: create } = useCreateOrgCapabilityDefaultGrantMutation({ selection: { fields: { id: true } }, }); -create({ actorId: '', entityId: '', grantorId: '', isGrant: '' }); +create({ capabilityId: '', entityId: '', grantorId: '', isGrant: '' }); ``` ### OrgChartEdge @@ -565,20 +537,20 @@ create({ depth: '', userId: '' }); ```typescript // List all orgGrants const { data, isLoading } = useOrgGrantsQuery({ - selection: { fields: { actorId: true, createdAt: true, entityId: true, grantorId: true, id: true, isGrant: true, permissions: true, updatedAt: true } }, + selection: { fields: { actorId: true, capabilities: true, createdAt: true, entityId: true, grantorId: true, id: true, isGrant: true, updatedAt: true } }, }); // Get one orgGrant const { data: item } = useOrgGrantQuery({ id: '', - selection: { fields: { actorId: true, createdAt: true, entityId: true, grantorId: true, id: true, isGrant: true, permissions: true, updatedAt: true } }, + selection: { fields: { actorId: true, capabilities: true, createdAt: true, entityId: true, grantorId: true, id: true, isGrant: true, updatedAt: true } }, }); // Create a orgGrant const { mutate: create } = useCreateOrgGrantMutation({ selection: { fields: { id: true } }, }); -create({ actorId: '', entityId: '', grantorId: '', isGrant: '', permissions: '' }); +create({ actorId: '', capabilities: '', entityId: '', grantorId: '', isGrant: '' }); ``` ### OrgInvite @@ -649,20 +621,20 @@ create({ actorId: '', bio: '', displayName: '', email: '', - selection: { fields: { actorId: true, createdAt: true, createdBy: true, entityId: true, granted: true, id: true, isActive: true, isAdmin: true, isApproved: true, isBanned: true, isDisabled: true, isExternal: true, isOwner: true, isReadOnly: true, permissions: true, profileId: true, updatedAt: true, updatedBy: true } }, + selection: { fields: { actorId: true, capabilities: true, createdAt: true, createdBy: true, entityId: true, granted: true, id: true, isActive: true, isAdmin: true, isApproved: true, isBanned: true, isDisabled: true, isExternal: true, isOwner: true, isReadOnly: true, profileId: true, updatedAt: true, updatedBy: true } }, }); // Create a orgMembership const { mutate: create } = useCreateOrgMembershipMutation({ selection: { fields: { id: true } }, }); -create({ actorId: '', createdBy: '', entityId: '', granted: '', isActive: '', isAdmin: '', isApproved: '', isBanned: '', isDisabled: '', isExternal: '', isOwner: '', isReadOnly: '', permissions: '', profileId: '', updatedBy: '' }); +create({ actorId: '', capabilities: '', createdBy: '', entityId: '', granted: '', isActive: '', isAdmin: '', isApproved: '', isBanned: '', isDisabled: '', isExternal: '', isOwner: '', isReadOnly: '', profileId: '', updatedBy: '' }); ``` ### OrgMembershipDefault @@ -728,139 +700,8 @@ const { mutate: create } = useCreateOrgOwnerGrantMutation({ create({ actorId: '', entityId: '', grantorId: '', isGrant: '' }); ``` -### OrgPermission - -```typescript -// List all orgPermissions -const { data, isLoading } = useOrgPermissionsQuery({ - selection: { fields: { bitnum: true, bitstr: true, description: true, id: true, name: true } }, -}); - -// Get one orgPermission -const { data: item } = useOrgPermissionQuery({ - id: '', - selection: { fields: { bitnum: true, bitstr: true, description: true, id: true, name: true } }, -}); - -// Create a orgPermission -const { mutate: create } = useCreateOrgPermissionMutation({ - selection: { fields: { id: true } }, -}); -create({ bitnum: '', bitstr: '', description: '', name: '' }); -``` - -### OrgPermissionDefault - -```typescript -// List all orgPermissionDefaults -const { data, isLoading } = useOrgPermissionDefaultsQuery({ - selection: { fields: { entityId: true, id: true, permissions: true } }, -}); - -// Get one orgPermissionDefault -const { data: item } = useOrgPermissionDefaultQuery({ - id: '', - selection: { fields: { entityId: true, id: true, permissions: true } }, -}); - -// Create a orgPermissionDefault -const { mutate: create } = useCreateOrgPermissionDefaultMutation({ - selection: { fields: { id: true } }, -}); -create({ entityId: '', permissions: '' }); -``` - -### OrgPermissionDefaultGrant - -```typescript -// List all orgPermissionDefaultGrants -const { data, isLoading } = useOrgPermissionDefaultGrantsQuery({ - selection: { fields: { createdAt: true, entityId: true, grantorId: true, id: true, isGrant: true, permissionId: true, updatedAt: true } }, -}); - -// Get one orgPermissionDefaultGrant -const { data: item } = useOrgPermissionDefaultGrantQuery({ - id: '', - selection: { fields: { createdAt: true, entityId: true, grantorId: true, id: true, isGrant: true, permissionId: true, updatedAt: true } }, -}); - -// Create a orgPermissionDefaultGrant -const { mutate: create } = useCreateOrgPermissionDefaultGrantMutation({ - selection: { fields: { id: true } }, -}); -create({ entityId: '', grantorId: '', isGrant: '', permissionId: '' }); -``` - -### OrgPermissionDefaultPermission - -```typescript -// List all orgPermissionDefaultPermissions -const { data, isLoading } = useOrgPermissionDefaultPermissionsQuery({ - selection: { fields: { createdAt: true, entityId: true, id: true, permissionId: true, updatedAt: true } }, -}); - -// Get one orgPermissionDefaultPermission -const { data: item } = useOrgPermissionDefaultPermissionQuery({ - id: '', - selection: { fields: { createdAt: true, entityId: true, id: true, permissionId: true, updatedAt: true } }, -}); - -// Create a orgPermissionDefaultPermission -const { mutate: create } = useCreateOrgPermissionDefaultPermissionMutation({ - selection: { fields: { id: true } }, -}); -create({ entityId: '', permissionId: '' }); -``` - ## Custom Operation Hooks -### `useAppPermissionsGetByMaskQuery` - -Reads and enables pagination through a set of `AppPermission`. - -- **Type:** query -- **Arguments:** - - | Argument | Type | - |----------|------| - | `after` | Cursor | - | `first` | Int | - | `mask` | BitString | - | `offset` | Int | - -### `useAppPermissionsGetMaskQuery` - -appPermissionsGetMask - -- **Type:** query -- **Arguments:** - - | Argument | Type | - |----------|------| - | `ids` | [UUID] | - -### `useAppPermissionsGetMaskByNamesQuery` - -appPermissionsGetMaskByNames - -- **Type:** query -- **Arguments:** - - | Argument | Type | - |----------|------| - | `names` | [String] | - -### `useAppPermissionsGetPaddedMaskQuery` - -appPermissionsGetPaddedMask - -- **Type:** query -- **Arguments:** - - | Argument | Type | - |----------|------| - | `mask` | BitString | - ### `useOrgIsManagerOfQuery` orgIsManagerOf @@ -875,53 +716,6 @@ orgIsManagerOf | `targetEntityId` | UUID | | `userId` | UUID | -### `useOrgPermissionsGetByMaskQuery` - -Reads and enables pagination through a set of `OrgPermission`. - -- **Type:** query -- **Arguments:** - - | Argument | Type | - |----------|------| - | `after` | Cursor | - | `first` | Int | - | `mask` | BitString | - | `offset` | Int | - -### `useOrgPermissionsGetMaskQuery` - -orgPermissionsGetMask - -- **Type:** query -- **Arguments:** - - | Argument | Type | - |----------|------| - | `ids` | [UUID] | - -### `useOrgPermissionsGetMaskByNamesQuery` - -orgPermissionsGetMaskByNames - -- **Type:** query -- **Arguments:** - - | Argument | Type | - |----------|------| - | `names` | [String] | - -### `useOrgPermissionsGetPaddedMaskQuery` - -orgPermissionsGetPaddedMask - -- **Type:** query -- **Arguments:** - - | Argument | Type | - |----------|------| - | `mask` | BitString | - ### `useProvisionBucketMutation` Provision an S3 bucket for a logical bucket in the database. diff --git a/sdk/constructive-react/src/admin/hooks/index.ts b/sdk/constructive-react/src/admin/hooks/index.ts index a876e66797..5f6729cf08 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: AppAdminGrant, AppClaimedInvite, AppGrant, AppInvite, AppMembership, AppMembershipDefault, AppOwnerGrant, AppPermission, AppPermissionDefault, AppPermissionDefaultGrant, AppPermissionDefaultPermission, MembershipType, OrgAdminGrant, OrgChartEdge, OrgChartEdgeGrant, OrgClaimedInvite, OrgGetManagersRecord, OrgGetSubordinatesRecord, OrgGrant, OrgInvite, OrgMember, OrgMemberProfile, OrgMembership, OrgMembershipDefault, OrgMembershipSetting, OrgOwnerGrant, OrgPermission, OrgPermissionDefault, OrgPermissionDefaultGrant, OrgPermissionDefaultPermission + * Tables: AppAdminGrant, AppCapabilityDefaultCapability, AppCapabilityDefaultGrant, AppClaimedInvite, AppGrant, AppInvite, AppMembership, AppMembershipDefault, AppOwnerGrant, MembershipType, OrgAdminGrant, OrgCapabilityDefaultCapability, OrgCapabilityDefaultGrant, OrgChartEdge, OrgChartEdgeGrant, OrgClaimedInvite, OrgGetManagersRecord, OrgGetSubordinatesRecord, OrgGrant, OrgInvite, OrgMember, OrgMemberProfile, OrgMembership, OrgMembershipDefault, OrgMembershipSetting, OrgOwnerGrant * * Usage: * diff --git a/sdk/constructive-react/src/admin/hooks/invalidation.ts b/sdk/constructive-react/src/admin/hooks/invalidation.ts index a75fef3e02..90e322dcf4 100644 --- a/sdk/constructive-react/src/admin/hooks/invalidation.ts +++ b/sdk/constructive-react/src/admin/hooks/invalidation.ts @@ -16,18 +16,18 @@ import type { QueryClient } from '@tanstack/react-query'; import { appAdminGrantKeys, + appCapabilityDefaultCapabilityKeys, + appCapabilityDefaultGrantKeys, appClaimedInviteKeys, appGrantKeys, appInviteKeys, appMembershipKeys, appMembershipDefaultKeys, appOwnerGrantKeys, - appPermissionKeys, - appPermissionDefaultKeys, - appPermissionDefaultGrantKeys, - appPermissionDefaultPermissionKeys, membershipTypeKeys, orgAdminGrantKeys, + orgCapabilityDefaultCapabilityKeys, + orgCapabilityDefaultGrantKeys, orgChartEdgeKeys, orgChartEdgeGrantKeys, orgClaimedInviteKeys, @@ -41,10 +41,6 @@ import { orgMembershipDefaultKeys, orgMembershipSettingKeys, orgOwnerGrantKeys, - orgPermissionKeys, - orgPermissionDefaultKeys, - orgPermissionDefaultGrantKeys, - orgPermissionDefaultPermissionKeys, } from './query-keys'; /** // ============================================================================ @@ -83,6 +79,42 @@ export const invalidate = { queryKey: appAdminGrantKeys.detail(id), }), }, + /** Invalidate appCapabilityDefaultCapability queries */ appCapabilityDefaultCapability: { + /** Invalidate all appCapabilityDefaultCapability queries */ all: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: appCapabilityDefaultCapabilityKeys.all, + }), + /** Invalidate appCapabilityDefaultCapability list queries */ lists: ( + queryClient: QueryClient + ) => + queryClient.invalidateQueries({ + queryKey: appCapabilityDefaultCapabilityKeys.lists(), + }), + /** Invalidate a specific appCapabilityDefaultCapability */ detail: ( + queryClient: QueryClient, + id: string | number + ) => + queryClient.invalidateQueries({ + queryKey: appCapabilityDefaultCapabilityKeys.detail(id), + }), + }, + /** Invalidate appCapabilityDefaultGrant queries */ appCapabilityDefaultGrant: { + /** Invalidate all appCapabilityDefaultGrant queries */ all: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: appCapabilityDefaultGrantKeys.all, + }), + /** Invalidate appCapabilityDefaultGrant list queries */ lists: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: appCapabilityDefaultGrantKeys.lists(), + }), + /** Invalidate a specific appCapabilityDefaultGrant */ detail: ( + queryClient: QueryClient, + id: string | number + ) => + queryClient.invalidateQueries({ + queryKey: appCapabilityDefaultGrantKeys.detail(id), + }), + }, /** Invalidate appClaimedInvite queries */ appClaimedInvite: { /** Invalidate all appClaimedInvite queries */ all: (queryClient: QueryClient) => queryClient.invalidateQueries({ @@ -182,108 +214,74 @@ export const invalidate = { queryKey: appOwnerGrantKeys.detail(id), }), }, - /** Invalidate appPermission queries */ appPermission: { - /** Invalidate all appPermission queries */ all: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: appPermissionKeys.all, - }), - /** Invalidate appPermission list queries */ lists: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: appPermissionKeys.lists(), - }), - /** Invalidate a specific appPermission */ detail: ( - queryClient: QueryClient, - id: string | number - ) => - queryClient.invalidateQueries({ - queryKey: appPermissionKeys.detail(id), - }), - }, - /** Invalidate appPermissionDefault queries */ appPermissionDefault: { - /** Invalidate all appPermissionDefault queries */ all: (queryClient: QueryClient) => + /** Invalidate membershipType queries */ membershipType: { + /** Invalidate all membershipType queries */ all: (queryClient: QueryClient) => queryClient.invalidateQueries({ - queryKey: appPermissionDefaultKeys.all, + queryKey: membershipTypeKeys.all, }), - /** Invalidate appPermissionDefault list queries */ lists: (queryClient: QueryClient) => + /** Invalidate membershipType list queries */ lists: (queryClient: QueryClient) => queryClient.invalidateQueries({ - queryKey: appPermissionDefaultKeys.lists(), + queryKey: membershipTypeKeys.lists(), }), - /** Invalidate a specific appPermissionDefault */ detail: ( + /** Invalidate a specific membershipType */ detail: ( queryClient: QueryClient, id: string | number ) => queryClient.invalidateQueries({ - queryKey: appPermissionDefaultKeys.detail(id), + queryKey: membershipTypeKeys.detail(id), }), }, - /** Invalidate appPermissionDefaultGrant queries */ appPermissionDefaultGrant: { - /** Invalidate all appPermissionDefaultGrant queries */ all: (queryClient: QueryClient) => + /** Invalidate orgAdminGrant queries */ orgAdminGrant: { + /** Invalidate all orgAdminGrant queries */ all: (queryClient: QueryClient) => queryClient.invalidateQueries({ - queryKey: appPermissionDefaultGrantKeys.all, + queryKey: orgAdminGrantKeys.all, }), - /** Invalidate appPermissionDefaultGrant list queries */ lists: (queryClient: QueryClient) => + /** Invalidate orgAdminGrant list queries */ lists: (queryClient: QueryClient) => queryClient.invalidateQueries({ - queryKey: appPermissionDefaultGrantKeys.lists(), + queryKey: orgAdminGrantKeys.lists(), }), - /** Invalidate a specific appPermissionDefaultGrant */ detail: ( + /** Invalidate a specific orgAdminGrant */ detail: ( queryClient: QueryClient, id: string | number ) => queryClient.invalidateQueries({ - queryKey: appPermissionDefaultGrantKeys.detail(id), + queryKey: orgAdminGrantKeys.detail(id), }), }, - /** Invalidate appPermissionDefaultPermission queries */ appPermissionDefaultPermission: { - /** Invalidate all appPermissionDefaultPermission queries */ all: (queryClient: QueryClient) => + /** Invalidate orgCapabilityDefaultCapability queries */ orgCapabilityDefaultCapability: { + /** Invalidate all orgCapabilityDefaultCapability queries */ all: (queryClient: QueryClient) => queryClient.invalidateQueries({ - queryKey: appPermissionDefaultPermissionKeys.all, + queryKey: orgCapabilityDefaultCapabilityKeys.all, }), - /** Invalidate appPermissionDefaultPermission list queries */ lists: ( + /** Invalidate orgCapabilityDefaultCapability list queries */ lists: ( queryClient: QueryClient ) => queryClient.invalidateQueries({ - queryKey: appPermissionDefaultPermissionKeys.lists(), + queryKey: orgCapabilityDefaultCapabilityKeys.lists(), }), - /** Invalidate a specific appPermissionDefaultPermission */ detail: ( + /** Invalidate a specific orgCapabilityDefaultCapability */ detail: ( queryClient: QueryClient, id: string | number ) => queryClient.invalidateQueries({ - queryKey: appPermissionDefaultPermissionKeys.detail(id), - }), - }, - /** Invalidate membershipType queries */ membershipType: { - /** Invalidate all membershipType queries */ all: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: membershipTypeKeys.all, - }), - /** Invalidate membershipType list queries */ lists: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: membershipTypeKeys.lists(), - }), - /** Invalidate a specific membershipType */ detail: ( - queryClient: QueryClient, - id: string | number - ) => - queryClient.invalidateQueries({ - queryKey: membershipTypeKeys.detail(id), + queryKey: orgCapabilityDefaultCapabilityKeys.detail(id), }), }, - /** Invalidate orgAdminGrant queries */ orgAdminGrant: { - /** Invalidate all orgAdminGrant queries */ all: (queryClient: QueryClient) => + /** Invalidate orgCapabilityDefaultGrant queries */ orgCapabilityDefaultGrant: { + /** Invalidate all orgCapabilityDefaultGrant queries */ all: (queryClient: QueryClient) => queryClient.invalidateQueries({ - queryKey: orgAdminGrantKeys.all, + queryKey: orgCapabilityDefaultGrantKeys.all, }), - /** Invalidate orgAdminGrant list queries */ lists: (queryClient: QueryClient) => + /** Invalidate orgCapabilityDefaultGrant list queries */ lists: (queryClient: QueryClient) => queryClient.invalidateQueries({ - queryKey: orgAdminGrantKeys.lists(), + queryKey: orgCapabilityDefaultGrantKeys.lists(), }), - /** Invalidate a specific orgAdminGrant */ detail: ( + /** Invalidate a specific orgCapabilityDefaultGrant */ detail: ( queryClient: QueryClient, id: string | number ) => queryClient.invalidateQueries({ - queryKey: orgAdminGrantKeys.detail(id), + queryKey: orgCapabilityDefaultGrantKeys.detail(id), }), }, /** Invalidate orgChartEdge queries */ orgChartEdge: { @@ -504,76 +502,6 @@ export const invalidate = { queryKey: orgOwnerGrantKeys.detail(id), }), }, - /** Invalidate orgPermission queries */ orgPermission: { - /** Invalidate all orgPermission queries */ all: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: orgPermissionKeys.all, - }), - /** Invalidate orgPermission list queries */ lists: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: orgPermissionKeys.lists(), - }), - /** Invalidate a specific orgPermission */ detail: ( - queryClient: QueryClient, - id: string | number - ) => - queryClient.invalidateQueries({ - queryKey: orgPermissionKeys.detail(id), - }), - }, - /** Invalidate orgPermissionDefault queries */ orgPermissionDefault: { - /** Invalidate all orgPermissionDefault queries */ all: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: orgPermissionDefaultKeys.all, - }), - /** Invalidate orgPermissionDefault list queries */ lists: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: orgPermissionDefaultKeys.lists(), - }), - /** Invalidate a specific orgPermissionDefault */ detail: ( - queryClient: QueryClient, - id: string | number - ) => - queryClient.invalidateQueries({ - queryKey: orgPermissionDefaultKeys.detail(id), - }), - }, - /** Invalidate orgPermissionDefaultGrant queries */ orgPermissionDefaultGrant: { - /** Invalidate all orgPermissionDefaultGrant queries */ all: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: orgPermissionDefaultGrantKeys.all, - }), - /** Invalidate orgPermissionDefaultGrant list queries */ lists: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: orgPermissionDefaultGrantKeys.lists(), - }), - /** Invalidate a specific orgPermissionDefaultGrant */ detail: ( - queryClient: QueryClient, - id: string | number - ) => - queryClient.invalidateQueries({ - queryKey: orgPermissionDefaultGrantKeys.detail(id), - }), - }, - /** Invalidate orgPermissionDefaultPermission queries */ orgPermissionDefaultPermission: { - /** Invalidate all orgPermissionDefaultPermission queries */ all: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: orgPermissionDefaultPermissionKeys.all, - }), - /** Invalidate orgPermissionDefaultPermission list queries */ lists: ( - queryClient: QueryClient - ) => - queryClient.invalidateQueries({ - queryKey: orgPermissionDefaultPermissionKeys.lists(), - }), - /** Invalidate a specific orgPermissionDefaultPermission */ detail: ( - queryClient: QueryClient, - id: string | number - ) => - queryClient.invalidateQueries({ - queryKey: orgPermissionDefaultPermissionKeys.detail(id), - }), - }, } as const; /** @@ -595,6 +523,22 @@ export const remove = { queryKey: appAdminGrantKeys.detail(id), }); }, + /** Remove appCapabilityDefaultCapability from cache */ appCapabilityDefaultCapability: ( + queryClient: QueryClient, + id: string | number + ) => { + queryClient.removeQueries({ + queryKey: appCapabilityDefaultCapabilityKeys.detail(id), + }); + }, + /** Remove appCapabilityDefaultGrant from cache */ appCapabilityDefaultGrant: ( + queryClient: QueryClient, + id: string | number + ) => { + queryClient.removeQueries({ + queryKey: appCapabilityDefaultGrantKeys.detail(id), + }); + }, /** Remove appClaimedInvite from cache */ appClaimedInvite: ( queryClient: QueryClient, id: string | number @@ -637,52 +581,36 @@ export const remove = { queryKey: appOwnerGrantKeys.detail(id), }); }, - /** Remove appPermission from cache */ appPermission: ( - queryClient: QueryClient, - id: string | number - ) => { - queryClient.removeQueries({ - queryKey: appPermissionKeys.detail(id), - }); - }, - /** Remove appPermissionDefault from cache */ appPermissionDefault: ( - queryClient: QueryClient, - id: string | number - ) => { - queryClient.removeQueries({ - queryKey: appPermissionDefaultKeys.detail(id), - }); - }, - /** Remove appPermissionDefaultGrant from cache */ appPermissionDefaultGrant: ( + /** Remove membershipType from cache */ membershipType: ( queryClient: QueryClient, id: string | number ) => { queryClient.removeQueries({ - queryKey: appPermissionDefaultGrantKeys.detail(id), + queryKey: membershipTypeKeys.detail(id), }); }, - /** Remove appPermissionDefaultPermission from cache */ appPermissionDefaultPermission: ( + /** Remove orgAdminGrant from cache */ orgAdminGrant: ( queryClient: QueryClient, id: string | number ) => { queryClient.removeQueries({ - queryKey: appPermissionDefaultPermissionKeys.detail(id), + queryKey: orgAdminGrantKeys.detail(id), }); }, - /** Remove membershipType from cache */ membershipType: ( + /** Remove orgCapabilityDefaultCapability from cache */ orgCapabilityDefaultCapability: ( queryClient: QueryClient, id: string | number ) => { queryClient.removeQueries({ - queryKey: membershipTypeKeys.detail(id), + queryKey: orgCapabilityDefaultCapabilityKeys.detail(id), }); }, - /** Remove orgAdminGrant from cache */ orgAdminGrant: ( + /** Remove orgCapabilityDefaultGrant from cache */ orgCapabilityDefaultGrant: ( queryClient: QueryClient, id: string | number ) => { queryClient.removeQueries({ - queryKey: orgAdminGrantKeys.detail(id), + queryKey: orgCapabilityDefaultGrantKeys.detail(id), }); }, /** Remove orgChartEdge from cache */ orgChartEdge: ( @@ -780,36 +708,4 @@ export const remove = { queryKey: orgOwnerGrantKeys.detail(id), }); }, - /** Remove orgPermission from cache */ orgPermission: ( - queryClient: QueryClient, - id: string | number - ) => { - queryClient.removeQueries({ - queryKey: orgPermissionKeys.detail(id), - }); - }, - /** Remove orgPermissionDefault from cache */ orgPermissionDefault: ( - queryClient: QueryClient, - id: string | number - ) => { - queryClient.removeQueries({ - queryKey: orgPermissionDefaultKeys.detail(id), - }); - }, - /** Remove orgPermissionDefaultGrant from cache */ orgPermissionDefaultGrant: ( - queryClient: QueryClient, - id: string | number - ) => { - queryClient.removeQueries({ - queryKey: orgPermissionDefaultGrantKeys.detail(id), - }); - }, - /** Remove orgPermissionDefaultPermission from cache */ orgPermissionDefaultPermission: ( - queryClient: QueryClient, - id: string | number - ) => { - queryClient.removeQueries({ - queryKey: orgPermissionDefaultPermissionKeys.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 4f6b7a0083..275a2c73f6 100644 --- a/sdk/constructive-react/src/admin/hooks/mutation-keys.ts +++ b/sdk/constructive-react/src/admin/hooks/mutation-keys.ts @@ -27,6 +27,30 @@ export const appAdminGrantMutationKeys = { /** Delete appAdminGrant mutation key */ delete: (id: string | number) => ['mutation', 'appadmingrant', 'delete', id] as const, } as const; +export const appCapabilityDefaultCapabilityMutationKeys = { + /** All appCapabilityDefaultCapability mutation keys */ all: [ + 'mutation', + 'appcapabilitydefaultcapability', + ] as const, + /** Create appCapabilityDefaultCapability mutation key */ create: () => + ['mutation', 'appcapabilitydefaultcapability', 'create'] as const, + /** Update appCapabilityDefaultCapability mutation key */ update: (id: string | number) => + ['mutation', 'appcapabilitydefaultcapability', 'update', id] as const, + /** Delete appCapabilityDefaultCapability mutation key */ delete: (id: string | number) => + ['mutation', 'appcapabilitydefaultcapability', 'delete', id] as const, +} as const; +export const appCapabilityDefaultGrantMutationKeys = { + /** All appCapabilityDefaultGrant mutation keys */ all: [ + 'mutation', + 'appcapabilitydefaultgrant', + ] as const, + /** Create appCapabilityDefaultGrant mutation key */ create: () => + ['mutation', 'appcapabilitydefaultgrant', 'create'] as const, + /** Update appCapabilityDefaultGrant mutation key */ update: (id: string | number) => + ['mutation', 'appcapabilitydefaultgrant', 'update', id] as const, + /** Delete appCapabilityDefaultGrant mutation key */ delete: (id: string | number) => + ['mutation', 'appcapabilitydefaultgrant', 'delete', id] as const, +} as const; export const appClaimedInviteMutationKeys = { /** All appClaimedInvite mutation keys */ all: ['mutation', 'appclaimedinvite'] as const, /** Create appClaimedInvite mutation key */ create: () => @@ -79,48 +103,6 @@ export const appOwnerGrantMutationKeys = { /** Delete appOwnerGrant mutation key */ delete: (id: string | number) => ['mutation', 'appownergrant', 'delete', id] as const, } as const; -export const appPermissionMutationKeys = { - /** All appPermission mutation keys */ all: ['mutation', 'apppermission'] as const, - /** Create appPermission mutation key */ create: () => - ['mutation', 'apppermission', 'create'] as const, - /** Update appPermission mutation key */ update: (id: string | number) => - ['mutation', 'apppermission', 'update', id] as const, - /** Delete appPermission mutation key */ delete: (id: string | number) => - ['mutation', 'apppermission', 'delete', id] as const, -} as const; -export const appPermissionDefaultMutationKeys = { - /** All appPermissionDefault mutation keys */ all: ['mutation', 'apppermissiondefault'] as const, - /** Create appPermissionDefault mutation key */ create: () => - ['mutation', 'apppermissiondefault', 'create'] as const, - /** Update appPermissionDefault mutation key */ update: (id: string | number) => - ['mutation', 'apppermissiondefault', 'update', id] as const, - /** Delete appPermissionDefault mutation key */ delete: (id: string | number) => - ['mutation', 'apppermissiondefault', 'delete', id] as const, -} as const; -export const appPermissionDefaultGrantMutationKeys = { - /** All appPermissionDefaultGrant mutation keys */ all: [ - 'mutation', - 'apppermissiondefaultgrant', - ] as const, - /** Create appPermissionDefaultGrant mutation key */ create: () => - ['mutation', 'apppermissiondefaultgrant', 'create'] as const, - /** Update appPermissionDefaultGrant mutation key */ update: (id: string | number) => - ['mutation', 'apppermissiondefaultgrant', 'update', id] as const, - /** Delete appPermissionDefaultGrant mutation key */ delete: (id: string | number) => - ['mutation', 'apppermissiondefaultgrant', 'delete', id] as const, -} as const; -export const appPermissionDefaultPermissionMutationKeys = { - /** All appPermissionDefaultPermission mutation keys */ all: [ - 'mutation', - 'apppermissiondefaultpermission', - ] as const, - /** Create appPermissionDefaultPermission mutation key */ create: () => - ['mutation', 'apppermissiondefaultpermission', 'create'] as const, - /** Update appPermissionDefaultPermission mutation key */ update: (id: string | number) => - ['mutation', 'apppermissiondefaultpermission', 'update', id] as const, - /** Delete appPermissionDefaultPermission mutation key */ delete: (id: string | number) => - ['mutation', 'apppermissiondefaultpermission', 'delete', id] as const, -} as const; export const membershipTypeMutationKeys = { /** All membershipType mutation keys */ all: ['mutation', 'membershiptype'] as const, /** Create membershipType mutation key */ create: () => @@ -139,6 +121,30 @@ export const orgAdminGrantMutationKeys = { /** Delete orgAdminGrant mutation key */ delete: (id: string | number) => ['mutation', 'orgadmingrant', 'delete', id] as const, } as const; +export const orgCapabilityDefaultCapabilityMutationKeys = { + /** All orgCapabilityDefaultCapability mutation keys */ all: [ + 'mutation', + 'orgcapabilitydefaultcapability', + ] as const, + /** Create orgCapabilityDefaultCapability mutation key */ create: () => + ['mutation', 'orgcapabilitydefaultcapability', 'create'] as const, + /** Update orgCapabilityDefaultCapability mutation key */ update: (id: string | number) => + ['mutation', 'orgcapabilitydefaultcapability', 'update', id] as const, + /** Delete orgCapabilityDefaultCapability mutation key */ delete: (id: string | number) => + ['mutation', 'orgcapabilitydefaultcapability', 'delete', id] as const, +} as const; +export const orgCapabilityDefaultGrantMutationKeys = { + /** All orgCapabilityDefaultGrant mutation keys */ all: [ + 'mutation', + 'orgcapabilitydefaultgrant', + ] as const, + /** Create orgCapabilityDefaultGrant mutation key */ create: () => + ['mutation', 'orgcapabilitydefaultgrant', 'create'] as const, + /** Update orgCapabilityDefaultGrant mutation key */ update: (id: string | number) => + ['mutation', 'orgcapabilitydefaultgrant', 'update', id] as const, + /** Delete orgCapabilityDefaultGrant mutation key */ delete: (id: string | number) => + ['mutation', 'orgcapabilitydefaultgrant', 'delete', id] as const, +} as const; export const orgChartEdgeMutationKeys = { /** All orgChartEdge mutation keys */ all: ['mutation', 'orgchartedge'] as const, /** Create orgChartEdge mutation key */ create: () => @@ -256,48 +262,6 @@ export const orgOwnerGrantMutationKeys = { /** Delete orgOwnerGrant mutation key */ delete: (id: string | number) => ['mutation', 'orgownergrant', 'delete', id] as const, } as const; -export const orgPermissionMutationKeys = { - /** All orgPermission mutation keys */ all: ['mutation', 'orgpermission'] as const, - /** Create orgPermission mutation key */ create: () => - ['mutation', 'orgpermission', 'create'] as const, - /** Update orgPermission mutation key */ update: (id: string | number) => - ['mutation', 'orgpermission', 'update', id] as const, - /** Delete orgPermission mutation key */ delete: (id: string | number) => - ['mutation', 'orgpermission', '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 orgPermissionDefaultGrantMutationKeys = { - /** All orgPermissionDefaultGrant mutation keys */ all: [ - 'mutation', - 'orgpermissiondefaultgrant', - ] as const, - /** Create orgPermissionDefaultGrant mutation key */ create: () => - ['mutation', 'orgpermissiondefaultgrant', 'create'] as const, - /** Update orgPermissionDefaultGrant mutation key */ update: (id: string | number) => - ['mutation', 'orgpermissiondefaultgrant', 'update', id] as const, - /** Delete orgPermissionDefaultGrant mutation key */ delete: (id: string | number) => - ['mutation', 'orgpermissiondefaultgrant', 'delete', id] as const, -} as const; -export const orgPermissionDefaultPermissionMutationKeys = { - /** All orgPermissionDefaultPermission mutation keys */ all: [ - 'mutation', - 'orgpermissiondefaultpermission', - ] as const, - /** Create orgPermissionDefaultPermission mutation key */ create: () => - ['mutation', 'orgpermissiondefaultpermission', 'create'] as const, - /** Update orgPermissionDefaultPermission mutation key */ update: (id: string | number) => - ['mutation', 'orgpermissiondefaultpermission', 'update', id] as const, - /** Delete orgPermissionDefaultPermission mutation key */ delete: (id: string | number) => - ['mutation', 'orgpermissiondefaultpermission', 'delete', id] as const, -} as const; // ============================================================================ // Custom Mutation Keys @@ -341,18 +305,18 @@ export const customMutationKeys = { */ export const mutationKeys = { appAdminGrant: appAdminGrantMutationKeys, + appCapabilityDefaultCapability: appCapabilityDefaultCapabilityMutationKeys, + appCapabilityDefaultGrant: appCapabilityDefaultGrantMutationKeys, appClaimedInvite: appClaimedInviteMutationKeys, appGrant: appGrantMutationKeys, appInvite: appInviteMutationKeys, appMembership: appMembershipMutationKeys, appMembershipDefault: appMembershipDefaultMutationKeys, appOwnerGrant: appOwnerGrantMutationKeys, - appPermission: appPermissionMutationKeys, - appPermissionDefault: appPermissionDefaultMutationKeys, - appPermissionDefaultGrant: appPermissionDefaultGrantMutationKeys, - appPermissionDefaultPermission: appPermissionDefaultPermissionMutationKeys, membershipType: membershipTypeMutationKeys, orgAdminGrant: orgAdminGrantMutationKeys, + orgCapabilityDefaultCapability: orgCapabilityDefaultCapabilityMutationKeys, + orgCapabilityDefaultGrant: orgCapabilityDefaultGrantMutationKeys, orgChartEdge: orgChartEdgeMutationKeys, orgChartEdgeGrant: orgChartEdgeGrantMutationKeys, orgClaimedInvite: orgClaimedInviteMutationKeys, @@ -366,9 +330,5 @@ export const mutationKeys = { orgMembershipDefault: orgMembershipDefaultMutationKeys, orgMembershipSetting: orgMembershipSettingMutationKeys, orgOwnerGrant: orgOwnerGrantMutationKeys, - orgPermission: orgPermissionMutationKeys, - orgPermissionDefault: orgPermissionDefaultMutationKeys, - orgPermissionDefaultGrant: orgPermissionDefaultGrantMutationKeys, - orgPermissionDefaultPermission: orgPermissionDefaultPermissionMutationKeys, 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 6220313876..bf417864fc 100644 --- a/sdk/constructive-react/src/admin/hooks/mutations/index.ts +++ b/sdk/constructive-react/src/admin/hooks/mutations/index.ts @@ -6,6 +6,12 @@ export * from './useCreateAppAdminGrantMutation'; export * from './useUpdateAppAdminGrantMutation'; export * from './useDeleteAppAdminGrantMutation'; +export * from './useCreateAppCapabilityDefaultCapabilityMutation'; +export * from './useUpdateAppCapabilityDefaultCapabilityMutation'; +export * from './useDeleteAppCapabilityDefaultCapabilityMutation'; +export * from './useCreateAppCapabilityDefaultGrantMutation'; +export * from './useUpdateAppCapabilityDefaultGrantMutation'; +export * from './useDeleteAppCapabilityDefaultGrantMutation'; export * from './useCreateAppClaimedInviteMutation'; export * from './useUpdateAppClaimedInviteMutation'; export * from './useDeleteAppClaimedInviteMutation'; @@ -24,24 +30,18 @@ export * from './useDeleteAppMembershipDefaultMutation'; export * from './useCreateAppOwnerGrantMutation'; export * from './useUpdateAppOwnerGrantMutation'; export * from './useDeleteAppOwnerGrantMutation'; -export * from './useCreateAppPermissionMutation'; -export * from './useUpdateAppPermissionMutation'; -export * from './useDeleteAppPermissionMutation'; -export * from './useCreateAppPermissionDefaultMutation'; -export * from './useUpdateAppPermissionDefaultMutation'; -export * from './useDeleteAppPermissionDefaultMutation'; -export * from './useCreateAppPermissionDefaultGrantMutation'; -export * from './useUpdateAppPermissionDefaultGrantMutation'; -export * from './useDeleteAppPermissionDefaultGrantMutation'; -export * from './useCreateAppPermissionDefaultPermissionMutation'; -export * from './useUpdateAppPermissionDefaultPermissionMutation'; -export * from './useDeleteAppPermissionDefaultPermissionMutation'; export * from './useCreateMembershipTypeMutation'; export * from './useUpdateMembershipTypeMutation'; export * from './useDeleteMembershipTypeMutation'; export * from './useCreateOrgAdminGrantMutation'; export * from './useUpdateOrgAdminGrantMutation'; export * from './useDeleteOrgAdminGrantMutation'; +export * from './useCreateOrgCapabilityDefaultCapabilityMutation'; +export * from './useUpdateOrgCapabilityDefaultCapabilityMutation'; +export * from './useDeleteOrgCapabilityDefaultCapabilityMutation'; +export * from './useCreateOrgCapabilityDefaultGrantMutation'; +export * from './useUpdateOrgCapabilityDefaultGrantMutation'; +export * from './useDeleteOrgCapabilityDefaultGrantMutation'; export * from './useCreateOrgChartEdgeMutation'; export * from './useUpdateOrgChartEdgeMutation'; export * from './useDeleteOrgChartEdgeMutation'; @@ -77,18 +77,6 @@ export * from './useDeleteOrgMembershipSettingMutation'; export * from './useCreateOrgOwnerGrantMutation'; export * from './useUpdateOrgOwnerGrantMutation'; export * from './useDeleteOrgOwnerGrantMutation'; -export * from './useCreateOrgPermissionMutation'; -export * from './useUpdateOrgPermissionMutation'; -export * from './useDeleteOrgPermissionMutation'; -export * from './useCreateOrgPermissionDefaultMutation'; -export * from './useUpdateOrgPermissionDefaultMutation'; -export * from './useDeleteOrgPermissionDefaultMutation'; -export * from './useCreateOrgPermissionDefaultGrantMutation'; -export * from './useUpdateOrgPermissionDefaultGrantMutation'; -export * from './useDeleteOrgPermissionDefaultGrantMutation'; -export * from './useCreateOrgPermissionDefaultPermissionMutation'; -export * from './useUpdateOrgPermissionDefaultPermissionMutation'; -export * from './useDeleteOrgPermissionDefaultPermissionMutation'; export * from './useProvisionBucketMutation'; export * from './useSubmitAppInviteCodeMutation'; export * from './useSubmitOrgInviteCodeMutation'; diff --git a/sdk/constructive-react/src/admin/hooks/mutations/useCreateAppCapabilityDefaultCapabilityMutation.ts b/sdk/constructive-react/src/admin/hooks/mutations/useCreateAppCapabilityDefaultCapabilityMutation.ts new file mode 100644 index 0000000000..5b49c8754a --- /dev/null +++ b/sdk/constructive-react/src/admin/hooks/mutations/useCreateAppCapabilityDefaultCapabilityMutation.ts @@ -0,0 +1,105 @@ +/** + * Join table linking capability defaults to individual capabilities; recompute trigger rebuilds the defaults bitmask + * @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 { appCapabilityDefaultCapabilityKeys } from '../query-keys'; +import { appCapabilityDefaultCapabilityMutationKeys } from '../mutation-keys'; +import type { + AppCapabilityDefaultCapabilitySelect, + AppCapabilityDefaultCapabilityWithRelations, + CreateAppCapabilityDefaultCapabilityInput, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + AppCapabilityDefaultCapabilitySelect, + AppCapabilityDefaultCapabilityWithRelations, + CreateAppCapabilityDefaultCapabilityInput, +} from '../../orm/input-types'; +/** + * Join table linking capability defaults to individual capabilities; recompute trigger rebuilds the defaults bitmask + * + * @example + * ```tsx + * const { mutate, isPending } = useCreateAppCapabilityDefaultCapabilityMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ name: 'New item' }); + * ``` + */ +export function useCreateAppCapabilityDefaultCapabilityMutation< + S extends AppCapabilityDefaultCapabilitySelect, +>( + params: { + selection: { + fields: S & AppCapabilityDefaultCapabilitySelect; + } & HookStrictSelect, AppCapabilityDefaultCapabilitySelect>; + } & Omit< + UseMutationOptions< + { + createAppCapabilityDefaultCapability: { + appCapabilityDefaultCapability: InferSelectResult< + AppCapabilityDefaultCapabilityWithRelations, + S + >; + }; + }, + Error, + CreateAppCapabilityDefaultCapabilityInput['appCapabilityDefaultCapability'] + >, + 'mutationFn' + > +): UseMutationResult< + { + createAppCapabilityDefaultCapability: { + appCapabilityDefaultCapability: InferSelectResult< + AppCapabilityDefaultCapabilityWithRelations, + S + >; + }; + }, + Error, + CreateAppCapabilityDefaultCapabilityInput['appCapabilityDefaultCapability'] +>; +export function useCreateAppCapabilityDefaultCapabilityMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions< + any, + Error, + CreateAppCapabilityDefaultCapabilityInput['appCapabilityDefaultCapability'] + >, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: appCapabilityDefaultCapabilityMutationKeys.create(), + mutationFn: ( + data: CreateAppCapabilityDefaultCapabilityInput['appCapabilityDefaultCapability'] + ) => + getClient() + .appCapabilityDefaultCapability.create({ + data, + select: args.select, + }) + .unwrap(), + onSuccess: () => { + queryClient.invalidateQueries({ + queryKey: appCapabilityDefaultCapabilityKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/admin/hooks/mutations/useCreateAppCapabilityDefaultGrantMutation.ts b/sdk/constructive-react/src/admin/hooks/mutations/useCreateAppCapabilityDefaultGrantMutation.ts new file mode 100644 index 0000000000..4d2382b594 --- /dev/null +++ b/sdk/constructive-react/src/admin/hooks/mutations/useCreateAppCapabilityDefaultGrantMutation.ts @@ -0,0 +1,97 @@ +/** + * Audit log of capability additions and removals from the defaults bitmask + * @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 { appCapabilityDefaultGrantKeys } from '../query-keys'; +import { appCapabilityDefaultGrantMutationKeys } from '../mutation-keys'; +import type { + AppCapabilityDefaultGrantSelect, + AppCapabilityDefaultGrantWithRelations, + CreateAppCapabilityDefaultGrantInput, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + AppCapabilityDefaultGrantSelect, + AppCapabilityDefaultGrantWithRelations, + CreateAppCapabilityDefaultGrantInput, +} from '../../orm/input-types'; +/** + * Audit log of capability additions and removals from the defaults bitmask + * + * @example + * ```tsx + * const { mutate, isPending } = useCreateAppCapabilityDefaultGrantMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ name: 'New item' }); + * ``` + */ +export function useCreateAppCapabilityDefaultGrantMutation< + S extends AppCapabilityDefaultGrantSelect, +>( + params: { + selection: { + fields: S & AppCapabilityDefaultGrantSelect; + } & HookStrictSelect, AppCapabilityDefaultGrantSelect>; + } & Omit< + UseMutationOptions< + { + createAppCapabilityDefaultGrant: { + appCapabilityDefaultGrant: InferSelectResult; + }; + }, + Error, + CreateAppCapabilityDefaultGrantInput['appCapabilityDefaultGrant'] + >, + 'mutationFn' + > +): UseMutationResult< + { + createAppCapabilityDefaultGrant: { + appCapabilityDefaultGrant: InferSelectResult; + }; + }, + Error, + CreateAppCapabilityDefaultGrantInput['appCapabilityDefaultGrant'] +>; +export function useCreateAppCapabilityDefaultGrantMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions< + any, + Error, + CreateAppCapabilityDefaultGrantInput['appCapabilityDefaultGrant'] + >, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: appCapabilityDefaultGrantMutationKeys.create(), + mutationFn: (data: CreateAppCapabilityDefaultGrantInput['appCapabilityDefaultGrant']) => + getClient() + .appCapabilityDefaultGrant.create({ + data, + select: args.select, + }) + .unwrap(), + onSuccess: () => { + queryClient.invalidateQueries({ + queryKey: appCapabilityDefaultGrantKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/admin/hooks/mutations/useCreateAppGrantMutation.ts b/sdk/constructive-react/src/admin/hooks/mutations/useCreateAppGrantMutation.ts index c3ae518e14..f6dc880f4a 100644 --- a/sdk/constructive-react/src/admin/hooks/mutations/useCreateAppGrantMutation.ts +++ b/sdk/constructive-react/src/admin/hooks/mutations/useCreateAppGrantMutation.ts @@ -1,5 +1,5 @@ /** - * Records of individual permission grants and revocations for members via bitmask + * Records of individual capability grants and revocations for members via bitmask * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -23,7 +23,7 @@ export type { CreateAppGrantInput, } from '../../orm/input-types'; /** - * Records of individual permission grants and revocations for members via bitmask + * Records of individual capability grants and revocations for members via bitmask * * @example * ```tsx diff --git a/sdk/constructive-react/src/admin/hooks/mutations/useCreateAppMembershipMutation.ts b/sdk/constructive-react/src/admin/hooks/mutations/useCreateAppMembershipMutation.ts index e991ed8fd6..99c40ea7e3 100644 --- a/sdk/constructive-react/src/admin/hooks/mutations/useCreateAppMembershipMutation.ts +++ b/sdk/constructive-react/src/admin/hooks/mutations/useCreateAppMembershipMutation.ts @@ -1,5 +1,5 @@ /** - * Tracks membership records linking actors to entities with permission bitmasks, ownership, and admin status + * Tracks membership records linking actors to entities with capability bitmasks, ownership, and admin status * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -23,7 +23,7 @@ export type { CreateAppMembershipInput, } from '../../orm/input-types'; /** - * Tracks membership records linking actors to entities with permission bitmasks, ownership, and admin status + * Tracks membership records linking actors to entities with capability bitmasks, ownership, and admin status * * @example * ```tsx diff --git a/sdk/constructive-react/src/admin/hooks/mutations/useCreateAppPermissionDefaultGrantMutation.ts b/sdk/constructive-react/src/admin/hooks/mutations/useCreateAppPermissionDefaultGrantMutation.ts deleted file mode 100644 index 695d905384..0000000000 --- a/sdk/constructive-react/src/admin/hooks/mutations/useCreateAppPermissionDefaultGrantMutation.ts +++ /dev/null @@ -1,97 +0,0 @@ -/** - * Audit log of permission additions and removals from the defaults bitmask - * @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 { appPermissionDefaultGrantKeys } from '../query-keys'; -import { appPermissionDefaultGrantMutationKeys } from '../mutation-keys'; -import type { - AppPermissionDefaultGrantSelect, - AppPermissionDefaultGrantWithRelations, - CreateAppPermissionDefaultGrantInput, -} from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { - AppPermissionDefaultGrantSelect, - AppPermissionDefaultGrantWithRelations, - CreateAppPermissionDefaultGrantInput, -} from '../../orm/input-types'; -/** - * Audit log of permission additions and removals from the defaults bitmask - * - * @example - * ```tsx - * const { mutate, isPending } = useCreateAppPermissionDefaultGrantMutation({ - * selection: { fields: { id: true, name: true } }, - * }); - * - * mutate({ name: 'New item' }); - * ``` - */ -export function useCreateAppPermissionDefaultGrantMutation< - S extends AppPermissionDefaultGrantSelect, ->( - params: { - selection: { - fields: S & AppPermissionDefaultGrantSelect; - } & HookStrictSelect, AppPermissionDefaultGrantSelect>; - } & Omit< - UseMutationOptions< - { - createAppPermissionDefaultGrant: { - appPermissionDefaultGrant: InferSelectResult; - }; - }, - Error, - CreateAppPermissionDefaultGrantInput['appPermissionDefaultGrant'] - >, - 'mutationFn' - > -): UseMutationResult< - { - createAppPermissionDefaultGrant: { - appPermissionDefaultGrant: InferSelectResult; - }; - }, - Error, - CreateAppPermissionDefaultGrantInput['appPermissionDefaultGrant'] ->; -export function useCreateAppPermissionDefaultGrantMutation( - params: { - selection: SelectionConfig; - } & Omit< - UseMutationOptions< - any, - Error, - CreateAppPermissionDefaultGrantInput['appPermissionDefaultGrant'] - >, - 'mutationFn' - > -) { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...mutationOptions } = params ?? {}; - void _selection; - const queryClient = useQueryClient(); - return useMutation({ - mutationKey: appPermissionDefaultGrantMutationKeys.create(), - mutationFn: (data: CreateAppPermissionDefaultGrantInput['appPermissionDefaultGrant']) => - getClient() - .appPermissionDefaultGrant.create({ - data, - select: args.select, - }) - .unwrap(), - onSuccess: () => { - queryClient.invalidateQueries({ - queryKey: appPermissionDefaultGrantKeys.lists(), - }); - }, - ...mutationOptions, - }); -} diff --git a/sdk/constructive-react/src/admin/hooks/mutations/useCreateAppPermissionDefaultMutation.ts b/sdk/constructive-react/src/admin/hooks/mutations/useCreateAppPermissionDefaultMutation.ts deleted file mode 100644 index 1246a1892d..0000000000 --- a/sdk/constructive-react/src/admin/hooks/mutations/useCreateAppPermissionDefaultMutation.ts +++ /dev/null @@ -1,91 +0,0 @@ -/** - * Stores the default permission bitmask assigned to new members upon joining - * @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 { appPermissionDefaultKeys } from '../query-keys'; -import { appPermissionDefaultMutationKeys } from '../mutation-keys'; -import type { - AppPermissionDefaultSelect, - AppPermissionDefaultWithRelations, - CreateAppPermissionDefaultInput, -} from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { - AppPermissionDefaultSelect, - AppPermissionDefaultWithRelations, - CreateAppPermissionDefaultInput, -} from '../../orm/input-types'; -/** - * Stores the default permission bitmask assigned to new members upon joining - * - * @example - * ```tsx - * const { mutate, isPending } = useCreateAppPermissionDefaultMutation({ - * selection: { fields: { id: true, name: true } }, - * }); - * - * mutate({ name: 'New item' }); - * ``` - */ -export function useCreateAppPermissionDefaultMutation( - params: { - selection: { - fields: S & AppPermissionDefaultSelect; - } & HookStrictSelect, AppPermissionDefaultSelect>; - } & Omit< - UseMutationOptions< - { - createAppPermissionDefault: { - appPermissionDefault: InferSelectResult; - }; - }, - Error, - CreateAppPermissionDefaultInput['appPermissionDefault'] - >, - 'mutationFn' - > -): UseMutationResult< - { - createAppPermissionDefault: { - appPermissionDefault: InferSelectResult; - }; - }, - Error, - CreateAppPermissionDefaultInput['appPermissionDefault'] ->; -export function useCreateAppPermissionDefaultMutation( - params: { - selection: SelectionConfig; - } & Omit< - UseMutationOptions, - 'mutationFn' - > -) { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...mutationOptions } = params ?? {}; - void _selection; - const queryClient = useQueryClient(); - return useMutation({ - mutationKey: appPermissionDefaultMutationKeys.create(), - mutationFn: (data: CreateAppPermissionDefaultInput['appPermissionDefault']) => - getClient() - .appPermissionDefault.create({ - data, - select: args.select, - }) - .unwrap(), - onSuccess: () => { - queryClient.invalidateQueries({ - queryKey: appPermissionDefaultKeys.lists(), - }); - }, - ...mutationOptions, - }); -} diff --git a/sdk/constructive-react/src/admin/hooks/mutations/useCreateAppPermissionDefaultPermissionMutation.ts b/sdk/constructive-react/src/admin/hooks/mutations/useCreateAppPermissionDefaultPermissionMutation.ts deleted file mode 100644 index e954908380..0000000000 --- a/sdk/constructive-react/src/admin/hooks/mutations/useCreateAppPermissionDefaultPermissionMutation.ts +++ /dev/null @@ -1,105 +0,0 @@ -/** - * Join table linking permission defaults to individual permissions; recompute trigger rebuilds the defaults bitmask - * @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 { appPermissionDefaultPermissionKeys } from '../query-keys'; -import { appPermissionDefaultPermissionMutationKeys } from '../mutation-keys'; -import type { - AppPermissionDefaultPermissionSelect, - AppPermissionDefaultPermissionWithRelations, - CreateAppPermissionDefaultPermissionInput, -} from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { - AppPermissionDefaultPermissionSelect, - AppPermissionDefaultPermissionWithRelations, - CreateAppPermissionDefaultPermissionInput, -} from '../../orm/input-types'; -/** - * Join table linking permission defaults to individual permissions; recompute trigger rebuilds the defaults bitmask - * - * @example - * ```tsx - * const { mutate, isPending } = useCreateAppPermissionDefaultPermissionMutation({ - * selection: { fields: { id: true, name: true } }, - * }); - * - * mutate({ name: 'New item' }); - * ``` - */ -export function useCreateAppPermissionDefaultPermissionMutation< - S extends AppPermissionDefaultPermissionSelect, ->( - params: { - selection: { - fields: S & AppPermissionDefaultPermissionSelect; - } & HookStrictSelect, AppPermissionDefaultPermissionSelect>; - } & Omit< - UseMutationOptions< - { - createAppPermissionDefaultPermission: { - appPermissionDefaultPermission: InferSelectResult< - AppPermissionDefaultPermissionWithRelations, - S - >; - }; - }, - Error, - CreateAppPermissionDefaultPermissionInput['appPermissionDefaultPermission'] - >, - 'mutationFn' - > -): UseMutationResult< - { - createAppPermissionDefaultPermission: { - appPermissionDefaultPermission: InferSelectResult< - AppPermissionDefaultPermissionWithRelations, - S - >; - }; - }, - Error, - CreateAppPermissionDefaultPermissionInput['appPermissionDefaultPermission'] ->; -export function useCreateAppPermissionDefaultPermissionMutation( - params: { - selection: SelectionConfig; - } & Omit< - UseMutationOptions< - any, - Error, - CreateAppPermissionDefaultPermissionInput['appPermissionDefaultPermission'] - >, - 'mutationFn' - > -) { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...mutationOptions } = params ?? {}; - void _selection; - const queryClient = useQueryClient(); - return useMutation({ - mutationKey: appPermissionDefaultPermissionMutationKeys.create(), - mutationFn: ( - data: CreateAppPermissionDefaultPermissionInput['appPermissionDefaultPermission'] - ) => - getClient() - .appPermissionDefaultPermission.create({ - data, - select: args.select, - }) - .unwrap(), - onSuccess: () => { - queryClient.invalidateQueries({ - queryKey: appPermissionDefaultPermissionKeys.lists(), - }); - }, - ...mutationOptions, - }); -} diff --git a/sdk/constructive-react/src/admin/hooks/mutations/useCreateAppPermissionMutation.ts b/sdk/constructive-react/src/admin/hooks/mutations/useCreateAppPermissionMutation.ts deleted file mode 100644 index c76e9081ad..0000000000 --- a/sdk/constructive-react/src/admin/hooks/mutations/useCreateAppPermissionMutation.ts +++ /dev/null @@ -1,88 +0,0 @@ -/** - * Defines available permissions as named bits within a bitmask, used by the RBAC system for access control - * @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 { appPermissionKeys } from '../query-keys'; -import { appPermissionMutationKeys } from '../mutation-keys'; -import type { - AppPermissionSelect, - AppPermissionWithRelations, - CreateAppPermissionInput, -} from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { - AppPermissionSelect, - AppPermissionWithRelations, - CreateAppPermissionInput, -} from '../../orm/input-types'; -/** - * Defines available permissions as named bits within a bitmask, used by the RBAC system for access control - * - * @example - * ```tsx - * const { mutate, isPending } = useCreateAppPermissionMutation({ - * selection: { fields: { id: true, name: true } }, - * }); - * - * mutate({ name: 'New item' }); - * ``` - */ -export function useCreateAppPermissionMutation( - params: { - selection: { - fields: S & AppPermissionSelect; - } & HookStrictSelect, AppPermissionSelect>; - } & Omit< - UseMutationOptions< - { - createAppPermission: { - appPermission: InferSelectResult; - }; - }, - Error, - CreateAppPermissionInput['appPermission'] - >, - 'mutationFn' - > -): UseMutationResult< - { - createAppPermission: { - appPermission: InferSelectResult; - }; - }, - Error, - CreateAppPermissionInput['appPermission'] ->; -export function useCreateAppPermissionMutation( - params: { - selection: SelectionConfig; - } & Omit, 'mutationFn'> -) { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...mutationOptions } = params ?? {}; - void _selection; - const queryClient = useQueryClient(); - return useMutation({ - mutationKey: appPermissionMutationKeys.create(), - mutationFn: (data: CreateAppPermissionInput['appPermission']) => - getClient() - .appPermission.create({ - data, - select: args.select, - }) - .unwrap(), - onSuccess: () => { - queryClient.invalidateQueries({ - queryKey: appPermissionKeys.lists(), - }); - }, - ...mutationOptions, - }); -} diff --git a/sdk/constructive-react/src/admin/hooks/mutations/useCreateOrgCapabilityDefaultCapabilityMutation.ts b/sdk/constructive-react/src/admin/hooks/mutations/useCreateOrgCapabilityDefaultCapabilityMutation.ts new file mode 100644 index 0000000000..9fa2ece220 --- /dev/null +++ b/sdk/constructive-react/src/admin/hooks/mutations/useCreateOrgCapabilityDefaultCapabilityMutation.ts @@ -0,0 +1,105 @@ +/** + * Join table linking capability defaults to individual capabilities; recompute trigger rebuilds the defaults bitmask + * @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 { orgCapabilityDefaultCapabilityKeys } from '../query-keys'; +import { orgCapabilityDefaultCapabilityMutationKeys } from '../mutation-keys'; +import type { + OrgCapabilityDefaultCapabilitySelect, + OrgCapabilityDefaultCapabilityWithRelations, + CreateOrgCapabilityDefaultCapabilityInput, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + OrgCapabilityDefaultCapabilitySelect, + OrgCapabilityDefaultCapabilityWithRelations, + CreateOrgCapabilityDefaultCapabilityInput, +} from '../../orm/input-types'; +/** + * Join table linking capability defaults to individual capabilities; recompute trigger rebuilds the defaults bitmask + * + * @example + * ```tsx + * const { mutate, isPending } = useCreateOrgCapabilityDefaultCapabilityMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ name: 'New item' }); + * ``` + */ +export function useCreateOrgCapabilityDefaultCapabilityMutation< + S extends OrgCapabilityDefaultCapabilitySelect, +>( + params: { + selection: { + fields: S & OrgCapabilityDefaultCapabilitySelect; + } & HookStrictSelect, OrgCapabilityDefaultCapabilitySelect>; + } & Omit< + UseMutationOptions< + { + createOrgCapabilityDefaultCapability: { + orgCapabilityDefaultCapability: InferSelectResult< + OrgCapabilityDefaultCapabilityWithRelations, + S + >; + }; + }, + Error, + CreateOrgCapabilityDefaultCapabilityInput['orgCapabilityDefaultCapability'] + >, + 'mutationFn' + > +): UseMutationResult< + { + createOrgCapabilityDefaultCapability: { + orgCapabilityDefaultCapability: InferSelectResult< + OrgCapabilityDefaultCapabilityWithRelations, + S + >; + }; + }, + Error, + CreateOrgCapabilityDefaultCapabilityInput['orgCapabilityDefaultCapability'] +>; +export function useCreateOrgCapabilityDefaultCapabilityMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions< + any, + Error, + CreateOrgCapabilityDefaultCapabilityInput['orgCapabilityDefaultCapability'] + >, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: orgCapabilityDefaultCapabilityMutationKeys.create(), + mutationFn: ( + data: CreateOrgCapabilityDefaultCapabilityInput['orgCapabilityDefaultCapability'] + ) => + getClient() + .orgCapabilityDefaultCapability.create({ + data, + select: args.select, + }) + .unwrap(), + onSuccess: () => { + queryClient.invalidateQueries({ + queryKey: orgCapabilityDefaultCapabilityKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/admin/hooks/mutations/useCreateOrgCapabilityDefaultGrantMutation.ts b/sdk/constructive-react/src/admin/hooks/mutations/useCreateOrgCapabilityDefaultGrantMutation.ts new file mode 100644 index 0000000000..3194d60569 --- /dev/null +++ b/sdk/constructive-react/src/admin/hooks/mutations/useCreateOrgCapabilityDefaultGrantMutation.ts @@ -0,0 +1,97 @@ +/** + * Audit log of capability additions and removals from the defaults bitmask + * @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 { orgCapabilityDefaultGrantKeys } from '../query-keys'; +import { orgCapabilityDefaultGrantMutationKeys } from '../mutation-keys'; +import type { + OrgCapabilityDefaultGrantSelect, + OrgCapabilityDefaultGrantWithRelations, + CreateOrgCapabilityDefaultGrantInput, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + OrgCapabilityDefaultGrantSelect, + OrgCapabilityDefaultGrantWithRelations, + CreateOrgCapabilityDefaultGrantInput, +} from '../../orm/input-types'; +/** + * Audit log of capability additions and removals from the defaults bitmask + * + * @example + * ```tsx + * const { mutate, isPending } = useCreateOrgCapabilityDefaultGrantMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ name: 'New item' }); + * ``` + */ +export function useCreateOrgCapabilityDefaultGrantMutation< + S extends OrgCapabilityDefaultGrantSelect, +>( + params: { + selection: { + fields: S & OrgCapabilityDefaultGrantSelect; + } & HookStrictSelect, OrgCapabilityDefaultGrantSelect>; + } & Omit< + UseMutationOptions< + { + createOrgCapabilityDefaultGrant: { + orgCapabilityDefaultGrant: InferSelectResult; + }; + }, + Error, + CreateOrgCapabilityDefaultGrantInput['orgCapabilityDefaultGrant'] + >, + 'mutationFn' + > +): UseMutationResult< + { + createOrgCapabilityDefaultGrant: { + orgCapabilityDefaultGrant: InferSelectResult; + }; + }, + Error, + CreateOrgCapabilityDefaultGrantInput['orgCapabilityDefaultGrant'] +>; +export function useCreateOrgCapabilityDefaultGrantMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions< + any, + Error, + CreateOrgCapabilityDefaultGrantInput['orgCapabilityDefaultGrant'] + >, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: orgCapabilityDefaultGrantMutationKeys.create(), + mutationFn: (data: CreateOrgCapabilityDefaultGrantInput['orgCapabilityDefaultGrant']) => + getClient() + .orgCapabilityDefaultGrant.create({ + data, + select: args.select, + }) + .unwrap(), + onSuccess: () => { + queryClient.invalidateQueries({ + queryKey: orgCapabilityDefaultGrantKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/admin/hooks/mutations/useCreateOrgGrantMutation.ts b/sdk/constructive-react/src/admin/hooks/mutations/useCreateOrgGrantMutation.ts index 7dc4d3025e..81267c5a82 100644 --- a/sdk/constructive-react/src/admin/hooks/mutations/useCreateOrgGrantMutation.ts +++ b/sdk/constructive-react/src/admin/hooks/mutations/useCreateOrgGrantMutation.ts @@ -1,5 +1,5 @@ /** - * Records of individual permission grants and revocations for members via bitmask + * Records of individual capability grants and revocations for members via bitmask * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -23,7 +23,7 @@ export type { CreateOrgGrantInput, } from '../../orm/input-types'; /** - * Records of individual permission grants and revocations for members via bitmask + * Records of individual capability grants and revocations for members via bitmask * * @example * ```tsx diff --git a/sdk/constructive-react/src/admin/hooks/mutations/useCreateOrgMembershipMutation.ts b/sdk/constructive-react/src/admin/hooks/mutations/useCreateOrgMembershipMutation.ts index 84633ad1d6..8dc0f0a7dc 100644 --- a/sdk/constructive-react/src/admin/hooks/mutations/useCreateOrgMembershipMutation.ts +++ b/sdk/constructive-react/src/admin/hooks/mutations/useCreateOrgMembershipMutation.ts @@ -1,5 +1,5 @@ /** - * Tracks membership records linking actors to entities with permission bitmasks, ownership, and admin status + * Tracks membership records linking actors to entities with capability bitmasks, ownership, and admin status * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -23,7 +23,7 @@ export type { CreateOrgMembershipInput, } from '../../orm/input-types'; /** - * Tracks membership records linking actors to entities with permission bitmasks, ownership, and admin status + * Tracks membership records linking actors to entities with capability bitmasks, ownership, and admin status * * @example * ```tsx diff --git a/sdk/constructive-react/src/admin/hooks/mutations/useCreateOrgPermissionDefaultGrantMutation.ts b/sdk/constructive-react/src/admin/hooks/mutations/useCreateOrgPermissionDefaultGrantMutation.ts deleted file mode 100644 index 03eb33d2c8..0000000000 --- a/sdk/constructive-react/src/admin/hooks/mutations/useCreateOrgPermissionDefaultGrantMutation.ts +++ /dev/null @@ -1,97 +0,0 @@ -/** - * Audit log of permission additions and removals from the defaults bitmask - * @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 { orgPermissionDefaultGrantKeys } from '../query-keys'; -import { orgPermissionDefaultGrantMutationKeys } from '../mutation-keys'; -import type { - OrgPermissionDefaultGrantSelect, - OrgPermissionDefaultGrantWithRelations, - CreateOrgPermissionDefaultGrantInput, -} from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { - OrgPermissionDefaultGrantSelect, - OrgPermissionDefaultGrantWithRelations, - CreateOrgPermissionDefaultGrantInput, -} from '../../orm/input-types'; -/** - * Audit log of permission additions and removals from the defaults bitmask - * - * @example - * ```tsx - * const { mutate, isPending } = useCreateOrgPermissionDefaultGrantMutation({ - * selection: { fields: { id: true, name: true } }, - * }); - * - * mutate({ name: 'New item' }); - * ``` - */ -export function useCreateOrgPermissionDefaultGrantMutation< - S extends OrgPermissionDefaultGrantSelect, ->( - params: { - selection: { - fields: S & OrgPermissionDefaultGrantSelect; - } & HookStrictSelect, OrgPermissionDefaultGrantSelect>; - } & Omit< - UseMutationOptions< - { - createOrgPermissionDefaultGrant: { - orgPermissionDefaultGrant: InferSelectResult; - }; - }, - Error, - CreateOrgPermissionDefaultGrantInput['orgPermissionDefaultGrant'] - >, - 'mutationFn' - > -): UseMutationResult< - { - createOrgPermissionDefaultGrant: { - orgPermissionDefaultGrant: InferSelectResult; - }; - }, - Error, - CreateOrgPermissionDefaultGrantInput['orgPermissionDefaultGrant'] ->; -export function useCreateOrgPermissionDefaultGrantMutation( - params: { - selection: SelectionConfig; - } & Omit< - UseMutationOptions< - any, - Error, - CreateOrgPermissionDefaultGrantInput['orgPermissionDefaultGrant'] - >, - 'mutationFn' - > -) { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...mutationOptions } = params ?? {}; - void _selection; - const queryClient = useQueryClient(); - return useMutation({ - mutationKey: orgPermissionDefaultGrantMutationKeys.create(), - mutationFn: (data: CreateOrgPermissionDefaultGrantInput['orgPermissionDefaultGrant']) => - getClient() - .orgPermissionDefaultGrant.create({ - data, - select: args.select, - }) - .unwrap(), - onSuccess: () => { - queryClient.invalidateQueries({ - queryKey: orgPermissionDefaultGrantKeys.lists(), - }); - }, - ...mutationOptions, - }); -} diff --git a/sdk/constructive-react/src/admin/hooks/mutations/useCreateOrgPermissionDefaultMutation.ts b/sdk/constructive-react/src/admin/hooks/mutations/useCreateOrgPermissionDefaultMutation.ts deleted file mode 100644 index 1870514760..0000000000 --- a/sdk/constructive-react/src/admin/hooks/mutations/useCreateOrgPermissionDefaultMutation.ts +++ /dev/null @@ -1,91 +0,0 @@ -/** - * Stores the default permission bitmask assigned to new members upon joining - * @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 { orgPermissionDefaultKeys } from '../query-keys'; -import { orgPermissionDefaultMutationKeys } from '../mutation-keys'; -import type { - OrgPermissionDefaultSelect, - OrgPermissionDefaultWithRelations, - CreateOrgPermissionDefaultInput, -} from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { - OrgPermissionDefaultSelect, - OrgPermissionDefaultWithRelations, - CreateOrgPermissionDefaultInput, -} from '../../orm/input-types'; -/** - * Stores the default permission bitmask assigned to new members upon joining - * - * @example - * ```tsx - * const { mutate, isPending } = useCreateOrgPermissionDefaultMutation({ - * selection: { fields: { id: true, name: true } }, - * }); - * - * mutate({ name: 'New item' }); - * ``` - */ -export function useCreateOrgPermissionDefaultMutation( - params: { - selection: { - fields: S & OrgPermissionDefaultSelect; - } & HookStrictSelect, OrgPermissionDefaultSelect>; - } & Omit< - UseMutationOptions< - { - createOrgPermissionDefault: { - orgPermissionDefault: InferSelectResult; - }; - }, - Error, - CreateOrgPermissionDefaultInput['orgPermissionDefault'] - >, - 'mutationFn' - > -): UseMutationResult< - { - createOrgPermissionDefault: { - orgPermissionDefault: InferSelectResult; - }; - }, - Error, - CreateOrgPermissionDefaultInput['orgPermissionDefault'] ->; -export function useCreateOrgPermissionDefaultMutation( - params: { - selection: SelectionConfig; - } & Omit< - UseMutationOptions, - 'mutationFn' - > -) { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...mutationOptions } = params ?? {}; - void _selection; - const queryClient = useQueryClient(); - return useMutation({ - mutationKey: orgPermissionDefaultMutationKeys.create(), - mutationFn: (data: CreateOrgPermissionDefaultInput['orgPermissionDefault']) => - getClient() - .orgPermissionDefault.create({ - data, - select: args.select, - }) - .unwrap(), - onSuccess: () => { - queryClient.invalidateQueries({ - queryKey: orgPermissionDefaultKeys.lists(), - }); - }, - ...mutationOptions, - }); -} diff --git a/sdk/constructive-react/src/admin/hooks/mutations/useCreateOrgPermissionDefaultPermissionMutation.ts b/sdk/constructive-react/src/admin/hooks/mutations/useCreateOrgPermissionDefaultPermissionMutation.ts deleted file mode 100644 index 010f341f74..0000000000 --- a/sdk/constructive-react/src/admin/hooks/mutations/useCreateOrgPermissionDefaultPermissionMutation.ts +++ /dev/null @@ -1,105 +0,0 @@ -/** - * Join table linking permission defaults to individual permissions; recompute trigger rebuilds the defaults bitmask - * @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 { orgPermissionDefaultPermissionKeys } from '../query-keys'; -import { orgPermissionDefaultPermissionMutationKeys } from '../mutation-keys'; -import type { - OrgPermissionDefaultPermissionSelect, - OrgPermissionDefaultPermissionWithRelations, - CreateOrgPermissionDefaultPermissionInput, -} from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { - OrgPermissionDefaultPermissionSelect, - OrgPermissionDefaultPermissionWithRelations, - CreateOrgPermissionDefaultPermissionInput, -} from '../../orm/input-types'; -/** - * Join table linking permission defaults to individual permissions; recompute trigger rebuilds the defaults bitmask - * - * @example - * ```tsx - * const { mutate, isPending } = useCreateOrgPermissionDefaultPermissionMutation({ - * selection: { fields: { id: true, name: true } }, - * }); - * - * mutate({ name: 'New item' }); - * ``` - */ -export function useCreateOrgPermissionDefaultPermissionMutation< - S extends OrgPermissionDefaultPermissionSelect, ->( - params: { - selection: { - fields: S & OrgPermissionDefaultPermissionSelect; - } & HookStrictSelect, OrgPermissionDefaultPermissionSelect>; - } & Omit< - UseMutationOptions< - { - createOrgPermissionDefaultPermission: { - orgPermissionDefaultPermission: InferSelectResult< - OrgPermissionDefaultPermissionWithRelations, - S - >; - }; - }, - Error, - CreateOrgPermissionDefaultPermissionInput['orgPermissionDefaultPermission'] - >, - 'mutationFn' - > -): UseMutationResult< - { - createOrgPermissionDefaultPermission: { - orgPermissionDefaultPermission: InferSelectResult< - OrgPermissionDefaultPermissionWithRelations, - S - >; - }; - }, - Error, - CreateOrgPermissionDefaultPermissionInput['orgPermissionDefaultPermission'] ->; -export function useCreateOrgPermissionDefaultPermissionMutation( - params: { - selection: SelectionConfig; - } & Omit< - UseMutationOptions< - any, - Error, - CreateOrgPermissionDefaultPermissionInput['orgPermissionDefaultPermission'] - >, - 'mutationFn' - > -) { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...mutationOptions } = params ?? {}; - void _selection; - const queryClient = useQueryClient(); - return useMutation({ - mutationKey: orgPermissionDefaultPermissionMutationKeys.create(), - mutationFn: ( - data: CreateOrgPermissionDefaultPermissionInput['orgPermissionDefaultPermission'] - ) => - getClient() - .orgPermissionDefaultPermission.create({ - data, - select: args.select, - }) - .unwrap(), - onSuccess: () => { - queryClient.invalidateQueries({ - queryKey: orgPermissionDefaultPermissionKeys.lists(), - }); - }, - ...mutationOptions, - }); -} diff --git a/sdk/constructive-react/src/admin/hooks/mutations/useCreateOrgPermissionMutation.ts b/sdk/constructive-react/src/admin/hooks/mutations/useCreateOrgPermissionMutation.ts deleted file mode 100644 index 8c597cb085..0000000000 --- a/sdk/constructive-react/src/admin/hooks/mutations/useCreateOrgPermissionMutation.ts +++ /dev/null @@ -1,88 +0,0 @@ -/** - * Defines available permissions as named bits within a bitmask, used by the RBAC system for access control - * @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 { orgPermissionKeys } from '../query-keys'; -import { orgPermissionMutationKeys } from '../mutation-keys'; -import type { - OrgPermissionSelect, - OrgPermissionWithRelations, - CreateOrgPermissionInput, -} from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { - OrgPermissionSelect, - OrgPermissionWithRelations, - CreateOrgPermissionInput, -} from '../../orm/input-types'; -/** - * Defines available permissions as named bits within a bitmask, used by the RBAC system for access control - * - * @example - * ```tsx - * const { mutate, isPending } = useCreateOrgPermissionMutation({ - * selection: { fields: { id: true, name: true } }, - * }); - * - * mutate({ name: 'New item' }); - * ``` - */ -export function useCreateOrgPermissionMutation( - params: { - selection: { - fields: S & OrgPermissionSelect; - } & HookStrictSelect, OrgPermissionSelect>; - } & Omit< - UseMutationOptions< - { - createOrgPermission: { - orgPermission: InferSelectResult; - }; - }, - Error, - CreateOrgPermissionInput['orgPermission'] - >, - 'mutationFn' - > -): UseMutationResult< - { - createOrgPermission: { - orgPermission: InferSelectResult; - }; - }, - Error, - CreateOrgPermissionInput['orgPermission'] ->; -export function useCreateOrgPermissionMutation( - params: { - selection: SelectionConfig; - } & Omit, 'mutationFn'> -) { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...mutationOptions } = params ?? {}; - void _selection; - const queryClient = useQueryClient(); - return useMutation({ - mutationKey: orgPermissionMutationKeys.create(), - mutationFn: (data: CreateOrgPermissionInput['orgPermission']) => - getClient() - .orgPermission.create({ - data, - select: args.select, - }) - .unwrap(), - onSuccess: () => { - queryClient.invalidateQueries({ - queryKey: orgPermissionKeys.lists(), - }); - }, - ...mutationOptions, - }); -} diff --git a/sdk/constructive-react/src/admin/hooks/mutations/useDeleteAppPermissionDefaultPermissionMutation.ts b/sdk/constructive-react/src/admin/hooks/mutations/useDeleteAppCapabilityDefaultCapabilityMutation.ts similarity index 51% rename from sdk/constructive-react/src/admin/hooks/mutations/useDeleteAppPermissionDefaultPermissionMutation.ts rename to sdk/constructive-react/src/admin/hooks/mutations/useDeleteAppCapabilityDefaultCapabilityMutation.ts index 1efbf6a931..46c3c889f7 100644 --- a/sdk/constructive-react/src/admin/hooks/mutations/useDeleteAppPermissionDefaultPermissionMutation.ts +++ b/sdk/constructive-react/src/admin/hooks/mutations/useDeleteAppCapabilityDefaultCapabilityMutation.ts @@ -1,5 +1,5 @@ /** - * Join table linking permission defaults to individual permissions; recompute trigger rebuilds the defaults bitmask + * Join table linking capability defaults to individual capabilities; recompute trigger rebuilds the defaults bitmask * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -9,42 +9,42 @@ import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-quer import { getClient } from '../client'; import { buildSelectionArgs } from '../selection'; import type { SelectionConfig } from '../selection'; -import { appPermissionDefaultPermissionKeys } from '../query-keys'; -import { appPermissionDefaultPermissionMutationKeys } from '../mutation-keys'; +import { appCapabilityDefaultCapabilityKeys } from '../query-keys'; +import { appCapabilityDefaultCapabilityMutationKeys } from '../mutation-keys'; import type { - AppPermissionDefaultPermissionSelect, - AppPermissionDefaultPermissionWithRelations, + AppCapabilityDefaultCapabilitySelect, + AppCapabilityDefaultCapabilityWithRelations, } from '../../orm/input-types'; import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; export type { - AppPermissionDefaultPermissionSelect, - AppPermissionDefaultPermissionWithRelations, + AppCapabilityDefaultCapabilitySelect, + AppCapabilityDefaultCapabilityWithRelations, } from '../../orm/input-types'; /** - * Join table linking permission defaults to individual permissions; recompute trigger rebuilds the defaults bitmask + * Join table linking capability defaults to individual capabilities; recompute trigger rebuilds the defaults bitmask * * @example * ```tsx - * const { mutate, isPending } = useDeleteAppPermissionDefaultPermissionMutation({ + * const { mutate, isPending } = useDeleteAppCapabilityDefaultCapabilityMutation({ * selection: { fields: { id: true } }, * }); * * mutate({ id: 'value-to-delete' }); * ``` */ -export function useDeleteAppPermissionDefaultPermissionMutation< - S extends AppPermissionDefaultPermissionSelect, +export function useDeleteAppCapabilityDefaultCapabilityMutation< + S extends AppCapabilityDefaultCapabilitySelect, >( params: { selection: { - fields: S & AppPermissionDefaultPermissionSelect; - } & HookStrictSelect, AppPermissionDefaultPermissionSelect>; + fields: S & AppCapabilityDefaultCapabilitySelect; + } & HookStrictSelect, AppCapabilityDefaultCapabilitySelect>; } & Omit< UseMutationOptions< { - deleteAppPermissionDefaultPermission: { - appPermissionDefaultPermission: InferSelectResult< - AppPermissionDefaultPermissionWithRelations, + deleteAppCapabilityDefaultCapability: { + appCapabilityDefaultCapability: InferSelectResult< + AppCapabilityDefaultCapabilityWithRelations, S >; }; @@ -58,9 +58,9 @@ export function useDeleteAppPermissionDefaultPermissionMutation< > ): UseMutationResult< { - deleteAppPermissionDefaultPermission: { - appPermissionDefaultPermission: InferSelectResult< - AppPermissionDefaultPermissionWithRelations, + deleteAppCapabilityDefaultCapability: { + appCapabilityDefaultCapability: InferSelectResult< + AppCapabilityDefaultCapabilityWithRelations, S >; }; @@ -70,9 +70,9 @@ export function useDeleteAppPermissionDefaultPermissionMutation< id: string; } >; -export function useDeleteAppPermissionDefaultPermissionMutation( +export function useDeleteAppCapabilityDefaultCapabilityMutation( params: { - selection: SelectionConfig; + selection: SelectionConfig; } & Omit< UseMutationOptions< any, @@ -84,15 +84,15 @@ export function useDeleteAppPermissionDefaultPermissionMutation( 'mutationFn' > ) { - const args = buildSelectionArgs(params.selection); + const args = buildSelectionArgs(params.selection); const { selection: _selection, ...mutationOptions } = params ?? {}; void _selection; const queryClient = useQueryClient(); return useMutation({ - mutationKey: appPermissionDefaultPermissionMutationKeys.all, + mutationKey: appCapabilityDefaultCapabilityMutationKeys.all, mutationFn: ({ id }: { id: string }) => getClient() - .appPermissionDefaultPermission.delete({ + .appCapabilityDefaultCapability.delete({ where: { id, }, @@ -101,10 +101,10 @@ export function useDeleteAppPermissionDefaultPermissionMutation( .unwrap(), onSuccess: (_, variables) => { queryClient.removeQueries({ - queryKey: appPermissionDefaultPermissionKeys.detail(variables.id), + queryKey: appCapabilityDefaultCapabilityKeys.detail(variables.id), }); queryClient.invalidateQueries({ - queryKey: appPermissionDefaultPermissionKeys.lists(), + queryKey: appCapabilityDefaultCapabilityKeys.lists(), }); }, ...mutationOptions, diff --git a/sdk/constructive-react/src/admin/hooks/mutations/useDeleteOrgPermissionDefaultGrantMutation.ts b/sdk/constructive-react/src/admin/hooks/mutations/useDeleteAppCapabilityDefaultGrantMutation.ts similarity index 55% rename from sdk/constructive-react/src/admin/hooks/mutations/useDeleteOrgPermissionDefaultGrantMutation.ts rename to sdk/constructive-react/src/admin/hooks/mutations/useDeleteAppCapabilityDefaultGrantMutation.ts index 1b2e20d5bf..47b19ceaf3 100644 --- a/sdk/constructive-react/src/admin/hooks/mutations/useDeleteOrgPermissionDefaultGrantMutation.ts +++ b/sdk/constructive-react/src/admin/hooks/mutations/useDeleteAppCapabilityDefaultGrantMutation.ts @@ -1,5 +1,5 @@ /** - * Audit log of permission additions and removals from the defaults bitmask + * Audit log of capability additions and removals from the defaults bitmask * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -9,41 +9,41 @@ import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-quer import { getClient } from '../client'; import { buildSelectionArgs } from '../selection'; import type { SelectionConfig } from '../selection'; -import { orgPermissionDefaultGrantKeys } from '../query-keys'; -import { orgPermissionDefaultGrantMutationKeys } from '../mutation-keys'; +import { appCapabilityDefaultGrantKeys } from '../query-keys'; +import { appCapabilityDefaultGrantMutationKeys } from '../mutation-keys'; import type { - OrgPermissionDefaultGrantSelect, - OrgPermissionDefaultGrantWithRelations, + AppCapabilityDefaultGrantSelect, + AppCapabilityDefaultGrantWithRelations, } from '../../orm/input-types'; import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; export type { - OrgPermissionDefaultGrantSelect, - OrgPermissionDefaultGrantWithRelations, + AppCapabilityDefaultGrantSelect, + AppCapabilityDefaultGrantWithRelations, } from '../../orm/input-types'; /** - * Audit log of permission additions and removals from the defaults bitmask + * Audit log of capability additions and removals from the defaults bitmask * * @example * ```tsx - * const { mutate, isPending } = useDeleteOrgPermissionDefaultGrantMutation({ + * const { mutate, isPending } = useDeleteAppCapabilityDefaultGrantMutation({ * selection: { fields: { id: true } }, * }); * * mutate({ id: 'value-to-delete' }); * ``` */ -export function useDeleteOrgPermissionDefaultGrantMutation< - S extends OrgPermissionDefaultGrantSelect, +export function useDeleteAppCapabilityDefaultGrantMutation< + S extends AppCapabilityDefaultGrantSelect, >( params: { selection: { - fields: S & OrgPermissionDefaultGrantSelect; - } & HookStrictSelect, OrgPermissionDefaultGrantSelect>; + fields: S & AppCapabilityDefaultGrantSelect; + } & HookStrictSelect, AppCapabilityDefaultGrantSelect>; } & Omit< UseMutationOptions< { - deleteOrgPermissionDefaultGrant: { - orgPermissionDefaultGrant: InferSelectResult; + deleteAppCapabilityDefaultGrant: { + appCapabilityDefaultGrant: InferSelectResult; }; }, Error, @@ -55,8 +55,8 @@ export function useDeleteOrgPermissionDefaultGrantMutation< > ): UseMutationResult< { - deleteOrgPermissionDefaultGrant: { - orgPermissionDefaultGrant: InferSelectResult; + deleteAppCapabilityDefaultGrant: { + appCapabilityDefaultGrant: InferSelectResult; }; }, Error, @@ -64,9 +64,9 @@ export function useDeleteOrgPermissionDefaultGrantMutation< id: string; } >; -export function useDeleteOrgPermissionDefaultGrantMutation( +export function useDeleteAppCapabilityDefaultGrantMutation( params: { - selection: SelectionConfig; + selection: SelectionConfig; } & Omit< UseMutationOptions< any, @@ -78,15 +78,15 @@ export function useDeleteOrgPermissionDefaultGrantMutation( 'mutationFn' > ) { - const args = buildSelectionArgs(params.selection); + const args = buildSelectionArgs(params.selection); const { selection: _selection, ...mutationOptions } = params ?? {}; void _selection; const queryClient = useQueryClient(); return useMutation({ - mutationKey: orgPermissionDefaultGrantMutationKeys.all, + mutationKey: appCapabilityDefaultGrantMutationKeys.all, mutationFn: ({ id }: { id: string }) => getClient() - .orgPermissionDefaultGrant.delete({ + .appCapabilityDefaultGrant.delete({ where: { id, }, @@ -95,10 +95,10 @@ export function useDeleteOrgPermissionDefaultGrantMutation( .unwrap(), onSuccess: (_, variables) => { queryClient.removeQueries({ - queryKey: orgPermissionDefaultGrantKeys.detail(variables.id), + queryKey: appCapabilityDefaultGrantKeys.detail(variables.id), }); queryClient.invalidateQueries({ - queryKey: orgPermissionDefaultGrantKeys.lists(), + queryKey: appCapabilityDefaultGrantKeys.lists(), }); }, ...mutationOptions, diff --git a/sdk/constructive-react/src/admin/hooks/mutations/useDeleteAppGrantMutation.ts b/sdk/constructive-react/src/admin/hooks/mutations/useDeleteAppGrantMutation.ts index 16814431f7..1b48ee8e8d 100644 --- a/sdk/constructive-react/src/admin/hooks/mutations/useDeleteAppGrantMutation.ts +++ b/sdk/constructive-react/src/admin/hooks/mutations/useDeleteAppGrantMutation.ts @@ -1,5 +1,5 @@ /** - * Records of individual permission grants and revocations for members via bitmask + * Records of individual capability grants and revocations for members via bitmask * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -15,7 +15,7 @@ import type { AppGrantSelect, AppGrantWithRelations } from '../../orm/input-type import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; export type { AppGrantSelect, AppGrantWithRelations } from '../../orm/input-types'; /** - * Records of individual permission grants and revocations for members via bitmask + * Records of individual capability grants and revocations for members via bitmask * * @example * ```tsx diff --git a/sdk/constructive-react/src/admin/hooks/mutations/useDeleteAppMembershipMutation.ts b/sdk/constructive-react/src/admin/hooks/mutations/useDeleteAppMembershipMutation.ts index 03a601e74f..11c5515e63 100644 --- a/sdk/constructive-react/src/admin/hooks/mutations/useDeleteAppMembershipMutation.ts +++ b/sdk/constructive-react/src/admin/hooks/mutations/useDeleteAppMembershipMutation.ts @@ -1,5 +1,5 @@ /** - * Tracks membership records linking actors to entities with permission bitmasks, ownership, and admin status + * Tracks membership records linking actors to entities with capability bitmasks, ownership, and admin status * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -15,7 +15,7 @@ import type { AppMembershipSelect, AppMembershipWithRelations } from '../../orm/ import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; export type { AppMembershipSelect, AppMembershipWithRelations } from '../../orm/input-types'; /** - * Tracks membership records linking actors to entities with permission bitmasks, ownership, and admin status + * Tracks membership records linking actors to entities with capability bitmasks, ownership, and admin status * * @example * ```tsx diff --git a/sdk/constructive-react/src/admin/hooks/mutations/useDeleteOrgPermissionDefaultPermissionMutation.ts b/sdk/constructive-react/src/admin/hooks/mutations/useDeleteOrgCapabilityDefaultCapabilityMutation.ts similarity index 51% rename from sdk/constructive-react/src/admin/hooks/mutations/useDeleteOrgPermissionDefaultPermissionMutation.ts rename to sdk/constructive-react/src/admin/hooks/mutations/useDeleteOrgCapabilityDefaultCapabilityMutation.ts index 5cca833805..9d68244b82 100644 --- a/sdk/constructive-react/src/admin/hooks/mutations/useDeleteOrgPermissionDefaultPermissionMutation.ts +++ b/sdk/constructive-react/src/admin/hooks/mutations/useDeleteOrgCapabilityDefaultCapabilityMutation.ts @@ -1,5 +1,5 @@ /** - * Join table linking permission defaults to individual permissions; recompute trigger rebuilds the defaults bitmask + * Join table linking capability defaults to individual capabilities; recompute trigger rebuilds the defaults bitmask * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -9,42 +9,42 @@ import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-quer import { getClient } from '../client'; import { buildSelectionArgs } from '../selection'; import type { SelectionConfig } from '../selection'; -import { orgPermissionDefaultPermissionKeys } from '../query-keys'; -import { orgPermissionDefaultPermissionMutationKeys } from '../mutation-keys'; +import { orgCapabilityDefaultCapabilityKeys } from '../query-keys'; +import { orgCapabilityDefaultCapabilityMutationKeys } from '../mutation-keys'; import type { - OrgPermissionDefaultPermissionSelect, - OrgPermissionDefaultPermissionWithRelations, + OrgCapabilityDefaultCapabilitySelect, + OrgCapabilityDefaultCapabilityWithRelations, } from '../../orm/input-types'; import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; export type { - OrgPermissionDefaultPermissionSelect, - OrgPermissionDefaultPermissionWithRelations, + OrgCapabilityDefaultCapabilitySelect, + OrgCapabilityDefaultCapabilityWithRelations, } from '../../orm/input-types'; /** - * Join table linking permission defaults to individual permissions; recompute trigger rebuilds the defaults bitmask + * Join table linking capability defaults to individual capabilities; recompute trigger rebuilds the defaults bitmask * * @example * ```tsx - * const { mutate, isPending } = useDeleteOrgPermissionDefaultPermissionMutation({ + * const { mutate, isPending } = useDeleteOrgCapabilityDefaultCapabilityMutation({ * selection: { fields: { id: true } }, * }); * * mutate({ id: 'value-to-delete' }); * ``` */ -export function useDeleteOrgPermissionDefaultPermissionMutation< - S extends OrgPermissionDefaultPermissionSelect, +export function useDeleteOrgCapabilityDefaultCapabilityMutation< + S extends OrgCapabilityDefaultCapabilitySelect, >( params: { selection: { - fields: S & OrgPermissionDefaultPermissionSelect; - } & HookStrictSelect, OrgPermissionDefaultPermissionSelect>; + fields: S & OrgCapabilityDefaultCapabilitySelect; + } & HookStrictSelect, OrgCapabilityDefaultCapabilitySelect>; } & Omit< UseMutationOptions< { - deleteOrgPermissionDefaultPermission: { - orgPermissionDefaultPermission: InferSelectResult< - OrgPermissionDefaultPermissionWithRelations, + deleteOrgCapabilityDefaultCapability: { + orgCapabilityDefaultCapability: InferSelectResult< + OrgCapabilityDefaultCapabilityWithRelations, S >; }; @@ -58,9 +58,9 @@ export function useDeleteOrgPermissionDefaultPermissionMutation< > ): UseMutationResult< { - deleteOrgPermissionDefaultPermission: { - orgPermissionDefaultPermission: InferSelectResult< - OrgPermissionDefaultPermissionWithRelations, + deleteOrgCapabilityDefaultCapability: { + orgCapabilityDefaultCapability: InferSelectResult< + OrgCapabilityDefaultCapabilityWithRelations, S >; }; @@ -70,9 +70,9 @@ export function useDeleteOrgPermissionDefaultPermissionMutation< id: string; } >; -export function useDeleteOrgPermissionDefaultPermissionMutation( +export function useDeleteOrgCapabilityDefaultCapabilityMutation( params: { - selection: SelectionConfig; + selection: SelectionConfig; } & Omit< UseMutationOptions< any, @@ -84,15 +84,15 @@ export function useDeleteOrgPermissionDefaultPermissionMutation( 'mutationFn' > ) { - const args = buildSelectionArgs(params.selection); + const args = buildSelectionArgs(params.selection); const { selection: _selection, ...mutationOptions } = params ?? {}; void _selection; const queryClient = useQueryClient(); return useMutation({ - mutationKey: orgPermissionDefaultPermissionMutationKeys.all, + mutationKey: orgCapabilityDefaultCapabilityMutationKeys.all, mutationFn: ({ id }: { id: string }) => getClient() - .orgPermissionDefaultPermission.delete({ + .orgCapabilityDefaultCapability.delete({ where: { id, }, @@ -101,10 +101,10 @@ export function useDeleteOrgPermissionDefaultPermissionMutation( .unwrap(), onSuccess: (_, variables) => { queryClient.removeQueries({ - queryKey: orgPermissionDefaultPermissionKeys.detail(variables.id), + queryKey: orgCapabilityDefaultCapabilityKeys.detail(variables.id), }); queryClient.invalidateQueries({ - queryKey: orgPermissionDefaultPermissionKeys.lists(), + queryKey: orgCapabilityDefaultCapabilityKeys.lists(), }); }, ...mutationOptions, diff --git a/sdk/constructive-react/src/admin/hooks/mutations/useDeleteAppPermissionDefaultGrantMutation.ts b/sdk/constructive-react/src/admin/hooks/mutations/useDeleteOrgCapabilityDefaultGrantMutation.ts similarity index 55% rename from sdk/constructive-react/src/admin/hooks/mutations/useDeleteAppPermissionDefaultGrantMutation.ts rename to sdk/constructive-react/src/admin/hooks/mutations/useDeleteOrgCapabilityDefaultGrantMutation.ts index ad38391ff2..8ebfcc964a 100644 --- a/sdk/constructive-react/src/admin/hooks/mutations/useDeleteAppPermissionDefaultGrantMutation.ts +++ b/sdk/constructive-react/src/admin/hooks/mutations/useDeleteOrgCapabilityDefaultGrantMutation.ts @@ -1,5 +1,5 @@ /** - * Audit log of permission additions and removals from the defaults bitmask + * Audit log of capability additions and removals from the defaults bitmask * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -9,41 +9,41 @@ import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-quer import { getClient } from '../client'; import { buildSelectionArgs } from '../selection'; import type { SelectionConfig } from '../selection'; -import { appPermissionDefaultGrantKeys } from '../query-keys'; -import { appPermissionDefaultGrantMutationKeys } from '../mutation-keys'; +import { orgCapabilityDefaultGrantKeys } from '../query-keys'; +import { orgCapabilityDefaultGrantMutationKeys } from '../mutation-keys'; import type { - AppPermissionDefaultGrantSelect, - AppPermissionDefaultGrantWithRelations, + OrgCapabilityDefaultGrantSelect, + OrgCapabilityDefaultGrantWithRelations, } from '../../orm/input-types'; import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; export type { - AppPermissionDefaultGrantSelect, - AppPermissionDefaultGrantWithRelations, + OrgCapabilityDefaultGrantSelect, + OrgCapabilityDefaultGrantWithRelations, } from '../../orm/input-types'; /** - * Audit log of permission additions and removals from the defaults bitmask + * Audit log of capability additions and removals from the defaults bitmask * * @example * ```tsx - * const { mutate, isPending } = useDeleteAppPermissionDefaultGrantMutation({ + * const { mutate, isPending } = useDeleteOrgCapabilityDefaultGrantMutation({ * selection: { fields: { id: true } }, * }); * * mutate({ id: 'value-to-delete' }); * ``` */ -export function useDeleteAppPermissionDefaultGrantMutation< - S extends AppPermissionDefaultGrantSelect, +export function useDeleteOrgCapabilityDefaultGrantMutation< + S extends OrgCapabilityDefaultGrantSelect, >( params: { selection: { - fields: S & AppPermissionDefaultGrantSelect; - } & HookStrictSelect, AppPermissionDefaultGrantSelect>; + fields: S & OrgCapabilityDefaultGrantSelect; + } & HookStrictSelect, OrgCapabilityDefaultGrantSelect>; } & Omit< UseMutationOptions< { - deleteAppPermissionDefaultGrant: { - appPermissionDefaultGrant: InferSelectResult; + deleteOrgCapabilityDefaultGrant: { + orgCapabilityDefaultGrant: InferSelectResult; }; }, Error, @@ -55,8 +55,8 @@ export function useDeleteAppPermissionDefaultGrantMutation< > ): UseMutationResult< { - deleteAppPermissionDefaultGrant: { - appPermissionDefaultGrant: InferSelectResult; + deleteOrgCapabilityDefaultGrant: { + orgCapabilityDefaultGrant: InferSelectResult; }; }, Error, @@ -64,9 +64,9 @@ export function useDeleteAppPermissionDefaultGrantMutation< id: string; } >; -export function useDeleteAppPermissionDefaultGrantMutation( +export function useDeleteOrgCapabilityDefaultGrantMutation( params: { - selection: SelectionConfig; + selection: SelectionConfig; } & Omit< UseMutationOptions< any, @@ -78,15 +78,15 @@ export function useDeleteAppPermissionDefaultGrantMutation( 'mutationFn' > ) { - const args = buildSelectionArgs(params.selection); + const args = buildSelectionArgs(params.selection); const { selection: _selection, ...mutationOptions } = params ?? {}; void _selection; const queryClient = useQueryClient(); return useMutation({ - mutationKey: appPermissionDefaultGrantMutationKeys.all, + mutationKey: orgCapabilityDefaultGrantMutationKeys.all, mutationFn: ({ id }: { id: string }) => getClient() - .appPermissionDefaultGrant.delete({ + .orgCapabilityDefaultGrant.delete({ where: { id, }, @@ -95,10 +95,10 @@ export function useDeleteAppPermissionDefaultGrantMutation( .unwrap(), onSuccess: (_, variables) => { queryClient.removeQueries({ - queryKey: appPermissionDefaultGrantKeys.detail(variables.id), + queryKey: orgCapabilityDefaultGrantKeys.detail(variables.id), }); queryClient.invalidateQueries({ - queryKey: appPermissionDefaultGrantKeys.lists(), + queryKey: orgCapabilityDefaultGrantKeys.lists(), }); }, ...mutationOptions, diff --git a/sdk/constructive-react/src/admin/hooks/mutations/useDeleteOrgGrantMutation.ts b/sdk/constructive-react/src/admin/hooks/mutations/useDeleteOrgGrantMutation.ts index 3a1d1d9678..9dc7d72ad2 100644 --- a/sdk/constructive-react/src/admin/hooks/mutations/useDeleteOrgGrantMutation.ts +++ b/sdk/constructive-react/src/admin/hooks/mutations/useDeleteOrgGrantMutation.ts @@ -1,5 +1,5 @@ /** - * Records of individual permission grants and revocations for members via bitmask + * Records of individual capability grants and revocations for members via bitmask * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -15,7 +15,7 @@ import type { OrgGrantSelect, OrgGrantWithRelations } from '../../orm/input-type import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; export type { OrgGrantSelect, OrgGrantWithRelations } from '../../orm/input-types'; /** - * Records of individual permission grants and revocations for members via bitmask + * Records of individual capability grants and revocations for members via bitmask * * @example * ```tsx diff --git a/sdk/constructive-react/src/admin/hooks/mutations/useDeleteOrgMembershipMutation.ts b/sdk/constructive-react/src/admin/hooks/mutations/useDeleteOrgMembershipMutation.ts index 62654c7ee2..5c55e3e3a7 100644 --- a/sdk/constructive-react/src/admin/hooks/mutations/useDeleteOrgMembershipMutation.ts +++ b/sdk/constructive-react/src/admin/hooks/mutations/useDeleteOrgMembershipMutation.ts @@ -1,5 +1,5 @@ /** - * Tracks membership records linking actors to entities with permission bitmasks, ownership, and admin status + * Tracks membership records linking actors to entities with capability bitmasks, ownership, and admin status * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -15,7 +15,7 @@ import type { OrgMembershipSelect, OrgMembershipWithRelations } from '../../orm/ import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; export type { OrgMembershipSelect, OrgMembershipWithRelations } from '../../orm/input-types'; /** - * Tracks membership records linking actors to entities with permission bitmasks, ownership, and admin status + * Tracks membership records linking actors to entities with capability bitmasks, ownership, and admin status * * @example * ```tsx diff --git a/sdk/constructive-react/src/admin/hooks/mutations/useUpdateAppCapabilityDefaultCapabilityMutation.ts b/sdk/constructive-react/src/admin/hooks/mutations/useUpdateAppCapabilityDefaultCapabilityMutation.ts new file mode 100644 index 0000000000..5f28cbb73e --- /dev/null +++ b/sdk/constructive-react/src/admin/hooks/mutations/useUpdateAppCapabilityDefaultCapabilityMutation.ts @@ -0,0 +1,124 @@ +/** + * Join table linking capability defaults to individual capabilities; recompute trigger rebuilds the defaults bitmask + * @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 { appCapabilityDefaultCapabilityKeys } from '../query-keys'; +import { appCapabilityDefaultCapabilityMutationKeys } from '../mutation-keys'; +import type { + AppCapabilityDefaultCapabilitySelect, + AppCapabilityDefaultCapabilityWithRelations, + AppCapabilityDefaultCapabilityPatch, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + AppCapabilityDefaultCapabilitySelect, + AppCapabilityDefaultCapabilityWithRelations, + AppCapabilityDefaultCapabilityPatch, +} from '../../orm/input-types'; +/** + * Join table linking capability defaults to individual capabilities; recompute trigger rebuilds the defaults bitmask + * + * @example + * ```tsx + * const { mutate, isPending } = useUpdateAppCapabilityDefaultCapabilityMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ id: 'value-here', appCapabilityDefaultCapabilityPatch: { name: 'Updated' } }); + * ``` + */ +export function useUpdateAppCapabilityDefaultCapabilityMutation< + S extends AppCapabilityDefaultCapabilitySelect, +>( + params: { + selection: { + fields: S & AppCapabilityDefaultCapabilitySelect; + } & HookStrictSelect, AppCapabilityDefaultCapabilitySelect>; + } & Omit< + UseMutationOptions< + { + updateAppCapabilityDefaultCapability: { + appCapabilityDefaultCapability: InferSelectResult< + AppCapabilityDefaultCapabilityWithRelations, + S + >; + }; + }, + Error, + { + id: string; + appCapabilityDefaultCapabilityPatch: AppCapabilityDefaultCapabilityPatch; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + updateAppCapabilityDefaultCapability: { + appCapabilityDefaultCapability: InferSelectResult< + AppCapabilityDefaultCapabilityWithRelations, + S + >; + }; + }, + Error, + { + id: string; + appCapabilityDefaultCapabilityPatch: AppCapabilityDefaultCapabilityPatch; + } +>; +export function useUpdateAppCapabilityDefaultCapabilityMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions< + any, + Error, + { + id: string; + appCapabilityDefaultCapabilityPatch: AppCapabilityDefaultCapabilityPatch; + } + >, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: appCapabilityDefaultCapabilityMutationKeys.all, + mutationFn: ({ + id, + appCapabilityDefaultCapabilityPatch, + }: { + id: string; + appCapabilityDefaultCapabilityPatch: AppCapabilityDefaultCapabilityPatch; + }) => + getClient() + .appCapabilityDefaultCapability.update({ + where: { + id, + }, + data: appCapabilityDefaultCapabilityPatch, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.invalidateQueries({ + queryKey: appCapabilityDefaultCapabilityKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: appCapabilityDefaultCapabilityKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/admin/hooks/mutations/useUpdateAppCapabilityDefaultGrantMutation.ts b/sdk/constructive-react/src/admin/hooks/mutations/useUpdateAppCapabilityDefaultGrantMutation.ts new file mode 100644 index 0000000000..414f0c1541 --- /dev/null +++ b/sdk/constructive-react/src/admin/hooks/mutations/useUpdateAppCapabilityDefaultGrantMutation.ts @@ -0,0 +1,118 @@ +/** + * Audit log of capability additions and removals from the defaults bitmask + * @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 { appCapabilityDefaultGrantKeys } from '../query-keys'; +import { appCapabilityDefaultGrantMutationKeys } from '../mutation-keys'; +import type { + AppCapabilityDefaultGrantSelect, + AppCapabilityDefaultGrantWithRelations, + AppCapabilityDefaultGrantPatch, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + AppCapabilityDefaultGrantSelect, + AppCapabilityDefaultGrantWithRelations, + AppCapabilityDefaultGrantPatch, +} from '../../orm/input-types'; +/** + * Audit log of capability additions and removals from the defaults bitmask + * + * @example + * ```tsx + * const { mutate, isPending } = useUpdateAppCapabilityDefaultGrantMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ id: 'value-here', appCapabilityDefaultGrantPatch: { name: 'Updated' } }); + * ``` + */ +export function useUpdateAppCapabilityDefaultGrantMutation< + S extends AppCapabilityDefaultGrantSelect, +>( + params: { + selection: { + fields: S & AppCapabilityDefaultGrantSelect; + } & HookStrictSelect, AppCapabilityDefaultGrantSelect>; + } & Omit< + UseMutationOptions< + { + updateAppCapabilityDefaultGrant: { + appCapabilityDefaultGrant: InferSelectResult; + }; + }, + Error, + { + id: string; + appCapabilityDefaultGrantPatch: AppCapabilityDefaultGrantPatch; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + updateAppCapabilityDefaultGrant: { + appCapabilityDefaultGrant: InferSelectResult; + }; + }, + Error, + { + id: string; + appCapabilityDefaultGrantPatch: AppCapabilityDefaultGrantPatch; + } +>; +export function useUpdateAppCapabilityDefaultGrantMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions< + any, + Error, + { + id: string; + appCapabilityDefaultGrantPatch: AppCapabilityDefaultGrantPatch; + } + >, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: appCapabilityDefaultGrantMutationKeys.all, + mutationFn: ({ + id, + appCapabilityDefaultGrantPatch, + }: { + id: string; + appCapabilityDefaultGrantPatch: AppCapabilityDefaultGrantPatch; + }) => + getClient() + .appCapabilityDefaultGrant.update({ + where: { + id, + }, + data: appCapabilityDefaultGrantPatch, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.invalidateQueries({ + queryKey: appCapabilityDefaultGrantKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: appCapabilityDefaultGrantKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/admin/hooks/mutations/useUpdateAppGrantMutation.ts b/sdk/constructive-react/src/admin/hooks/mutations/useUpdateAppGrantMutation.ts index d0cb6ba8fc..aa8fd91ebc 100644 --- a/sdk/constructive-react/src/admin/hooks/mutations/useUpdateAppGrantMutation.ts +++ b/sdk/constructive-react/src/admin/hooks/mutations/useUpdateAppGrantMutation.ts @@ -1,5 +1,5 @@ /** - * Records of individual permission grants and revocations for members via bitmask + * Records of individual capability grants and revocations for members via bitmask * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -15,7 +15,7 @@ import type { AppGrantSelect, AppGrantWithRelations, AppGrantPatch } from '../.. import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; export type { AppGrantSelect, AppGrantWithRelations, AppGrantPatch } from '../../orm/input-types'; /** - * Records of individual permission grants and revocations for members via bitmask + * Records of individual capability grants and revocations for members via bitmask * * @example * ```tsx diff --git a/sdk/constructive-react/src/admin/hooks/mutations/useUpdateAppMembershipMutation.ts b/sdk/constructive-react/src/admin/hooks/mutations/useUpdateAppMembershipMutation.ts index 7ead9bdc26..f0b1dd2000 100644 --- a/sdk/constructive-react/src/admin/hooks/mutations/useUpdateAppMembershipMutation.ts +++ b/sdk/constructive-react/src/admin/hooks/mutations/useUpdateAppMembershipMutation.ts @@ -1,5 +1,5 @@ /** - * Tracks membership records linking actors to entities with permission bitmasks, ownership, and admin status + * Tracks membership records linking actors to entities with capability bitmasks, ownership, and admin status * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -23,7 +23,7 @@ export type { AppMembershipPatch, } from '../../orm/input-types'; /** - * Tracks membership records linking actors to entities with permission bitmasks, ownership, and admin status + * Tracks membership records linking actors to entities with capability bitmasks, ownership, and admin status * * @example * ```tsx diff --git a/sdk/constructive-react/src/admin/hooks/mutations/useUpdateAppPermissionDefaultGrantMutation.ts b/sdk/constructive-react/src/admin/hooks/mutations/useUpdateAppPermissionDefaultGrantMutation.ts deleted file mode 100644 index 8977a55082..0000000000 --- a/sdk/constructive-react/src/admin/hooks/mutations/useUpdateAppPermissionDefaultGrantMutation.ts +++ /dev/null @@ -1,118 +0,0 @@ -/** - * Audit log of permission additions and removals from the defaults bitmask - * @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 { appPermissionDefaultGrantKeys } from '../query-keys'; -import { appPermissionDefaultGrantMutationKeys } from '../mutation-keys'; -import type { - AppPermissionDefaultGrantSelect, - AppPermissionDefaultGrantWithRelations, - AppPermissionDefaultGrantPatch, -} from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { - AppPermissionDefaultGrantSelect, - AppPermissionDefaultGrantWithRelations, - AppPermissionDefaultGrantPatch, -} from '../../orm/input-types'; -/** - * Audit log of permission additions and removals from the defaults bitmask - * - * @example - * ```tsx - * const { mutate, isPending } = useUpdateAppPermissionDefaultGrantMutation({ - * selection: { fields: { id: true, name: true } }, - * }); - * - * mutate({ id: 'value-here', appPermissionDefaultGrantPatch: { name: 'Updated' } }); - * ``` - */ -export function useUpdateAppPermissionDefaultGrantMutation< - S extends AppPermissionDefaultGrantSelect, ->( - params: { - selection: { - fields: S & AppPermissionDefaultGrantSelect; - } & HookStrictSelect, AppPermissionDefaultGrantSelect>; - } & Omit< - UseMutationOptions< - { - updateAppPermissionDefaultGrant: { - appPermissionDefaultGrant: InferSelectResult; - }; - }, - Error, - { - id: string; - appPermissionDefaultGrantPatch: AppPermissionDefaultGrantPatch; - } - >, - 'mutationFn' - > -): UseMutationResult< - { - updateAppPermissionDefaultGrant: { - appPermissionDefaultGrant: InferSelectResult; - }; - }, - Error, - { - id: string; - appPermissionDefaultGrantPatch: AppPermissionDefaultGrantPatch; - } ->; -export function useUpdateAppPermissionDefaultGrantMutation( - params: { - selection: SelectionConfig; - } & Omit< - UseMutationOptions< - any, - Error, - { - id: string; - appPermissionDefaultGrantPatch: AppPermissionDefaultGrantPatch; - } - >, - 'mutationFn' - > -) { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...mutationOptions } = params ?? {}; - void _selection; - const queryClient = useQueryClient(); - return useMutation({ - mutationKey: appPermissionDefaultGrantMutationKeys.all, - mutationFn: ({ - id, - appPermissionDefaultGrantPatch, - }: { - id: string; - appPermissionDefaultGrantPatch: AppPermissionDefaultGrantPatch; - }) => - getClient() - .appPermissionDefaultGrant.update({ - where: { - id, - }, - data: appPermissionDefaultGrantPatch, - select: args.select, - }) - .unwrap(), - onSuccess: (_, variables) => { - queryClient.invalidateQueries({ - queryKey: appPermissionDefaultGrantKeys.detail(variables.id), - }); - queryClient.invalidateQueries({ - queryKey: appPermissionDefaultGrantKeys.lists(), - }); - }, - ...mutationOptions, - }); -} diff --git a/sdk/constructive-react/src/admin/hooks/mutations/useUpdateAppPermissionDefaultMutation.ts b/sdk/constructive-react/src/admin/hooks/mutations/useUpdateAppPermissionDefaultMutation.ts deleted file mode 100644 index 9933bb8ebc..0000000000 --- a/sdk/constructive-react/src/admin/hooks/mutations/useUpdateAppPermissionDefaultMutation.ts +++ /dev/null @@ -1,116 +0,0 @@ -/** - * Stores the default permission bitmask assigned to new members upon joining - * @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 { appPermissionDefaultKeys } from '../query-keys'; -import { appPermissionDefaultMutationKeys } from '../mutation-keys'; -import type { - AppPermissionDefaultSelect, - AppPermissionDefaultWithRelations, - AppPermissionDefaultPatch, -} from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { - AppPermissionDefaultSelect, - AppPermissionDefaultWithRelations, - AppPermissionDefaultPatch, -} from '../../orm/input-types'; -/** - * Stores the default permission bitmask assigned to new members upon joining - * - * @example - * ```tsx - * const { mutate, isPending } = useUpdateAppPermissionDefaultMutation({ - * selection: { fields: { id: true, name: true } }, - * }); - * - * mutate({ id: 'value-here', appPermissionDefaultPatch: { name: 'Updated' } }); - * ``` - */ -export function useUpdateAppPermissionDefaultMutation( - params: { - selection: { - fields: S & AppPermissionDefaultSelect; - } & HookStrictSelect, AppPermissionDefaultSelect>; - } & Omit< - UseMutationOptions< - { - updateAppPermissionDefault: { - appPermissionDefault: InferSelectResult; - }; - }, - Error, - { - id: string; - appPermissionDefaultPatch: AppPermissionDefaultPatch; - } - >, - 'mutationFn' - > -): UseMutationResult< - { - updateAppPermissionDefault: { - appPermissionDefault: InferSelectResult; - }; - }, - Error, - { - id: string; - appPermissionDefaultPatch: AppPermissionDefaultPatch; - } ->; -export function useUpdateAppPermissionDefaultMutation( - params: { - selection: SelectionConfig; - } & Omit< - UseMutationOptions< - any, - Error, - { - id: string; - appPermissionDefaultPatch: AppPermissionDefaultPatch; - } - >, - 'mutationFn' - > -) { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...mutationOptions } = params ?? {}; - void _selection; - const queryClient = useQueryClient(); - return useMutation({ - mutationKey: appPermissionDefaultMutationKeys.all, - mutationFn: ({ - id, - appPermissionDefaultPatch, - }: { - id: string; - appPermissionDefaultPatch: AppPermissionDefaultPatch; - }) => - getClient() - .appPermissionDefault.update({ - where: { - id, - }, - data: appPermissionDefaultPatch, - select: args.select, - }) - .unwrap(), - onSuccess: (_, variables) => { - queryClient.invalidateQueries({ - queryKey: appPermissionDefaultKeys.detail(variables.id), - }); - queryClient.invalidateQueries({ - queryKey: appPermissionDefaultKeys.lists(), - }); - }, - ...mutationOptions, - }); -} diff --git a/sdk/constructive-react/src/admin/hooks/mutations/useUpdateAppPermissionDefaultPermissionMutation.ts b/sdk/constructive-react/src/admin/hooks/mutations/useUpdateAppPermissionDefaultPermissionMutation.ts deleted file mode 100644 index 80340cd64c..0000000000 --- a/sdk/constructive-react/src/admin/hooks/mutations/useUpdateAppPermissionDefaultPermissionMutation.ts +++ /dev/null @@ -1,124 +0,0 @@ -/** - * Join table linking permission defaults to individual permissions; recompute trigger rebuilds the defaults bitmask - * @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 { appPermissionDefaultPermissionKeys } from '../query-keys'; -import { appPermissionDefaultPermissionMutationKeys } from '../mutation-keys'; -import type { - AppPermissionDefaultPermissionSelect, - AppPermissionDefaultPermissionWithRelations, - AppPermissionDefaultPermissionPatch, -} from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { - AppPermissionDefaultPermissionSelect, - AppPermissionDefaultPermissionWithRelations, - AppPermissionDefaultPermissionPatch, -} from '../../orm/input-types'; -/** - * Join table linking permission defaults to individual permissions; recompute trigger rebuilds the defaults bitmask - * - * @example - * ```tsx - * const { mutate, isPending } = useUpdateAppPermissionDefaultPermissionMutation({ - * selection: { fields: { id: true, name: true } }, - * }); - * - * mutate({ id: 'value-here', appPermissionDefaultPermissionPatch: { name: 'Updated' } }); - * ``` - */ -export function useUpdateAppPermissionDefaultPermissionMutation< - S extends AppPermissionDefaultPermissionSelect, ->( - params: { - selection: { - fields: S & AppPermissionDefaultPermissionSelect; - } & HookStrictSelect, AppPermissionDefaultPermissionSelect>; - } & Omit< - UseMutationOptions< - { - updateAppPermissionDefaultPermission: { - appPermissionDefaultPermission: InferSelectResult< - AppPermissionDefaultPermissionWithRelations, - S - >; - }; - }, - Error, - { - id: string; - appPermissionDefaultPermissionPatch: AppPermissionDefaultPermissionPatch; - } - >, - 'mutationFn' - > -): UseMutationResult< - { - updateAppPermissionDefaultPermission: { - appPermissionDefaultPermission: InferSelectResult< - AppPermissionDefaultPermissionWithRelations, - S - >; - }; - }, - Error, - { - id: string; - appPermissionDefaultPermissionPatch: AppPermissionDefaultPermissionPatch; - } ->; -export function useUpdateAppPermissionDefaultPermissionMutation( - params: { - selection: SelectionConfig; - } & Omit< - UseMutationOptions< - any, - Error, - { - id: string; - appPermissionDefaultPermissionPatch: AppPermissionDefaultPermissionPatch; - } - >, - 'mutationFn' - > -) { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...mutationOptions } = params ?? {}; - void _selection; - const queryClient = useQueryClient(); - return useMutation({ - mutationKey: appPermissionDefaultPermissionMutationKeys.all, - mutationFn: ({ - id, - appPermissionDefaultPermissionPatch, - }: { - id: string; - appPermissionDefaultPermissionPatch: AppPermissionDefaultPermissionPatch; - }) => - getClient() - .appPermissionDefaultPermission.update({ - where: { - id, - }, - data: appPermissionDefaultPermissionPatch, - select: args.select, - }) - .unwrap(), - onSuccess: (_, variables) => { - queryClient.invalidateQueries({ - queryKey: appPermissionDefaultPermissionKeys.detail(variables.id), - }); - queryClient.invalidateQueries({ - queryKey: appPermissionDefaultPermissionKeys.lists(), - }); - }, - ...mutationOptions, - }); -} diff --git a/sdk/constructive-react/src/admin/hooks/mutations/useUpdateOrgCapabilityDefaultCapabilityMutation.ts b/sdk/constructive-react/src/admin/hooks/mutations/useUpdateOrgCapabilityDefaultCapabilityMutation.ts new file mode 100644 index 0000000000..9a89101fef --- /dev/null +++ b/sdk/constructive-react/src/admin/hooks/mutations/useUpdateOrgCapabilityDefaultCapabilityMutation.ts @@ -0,0 +1,124 @@ +/** + * Join table linking capability defaults to individual capabilities; recompute trigger rebuilds the defaults bitmask + * @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 { orgCapabilityDefaultCapabilityKeys } from '../query-keys'; +import { orgCapabilityDefaultCapabilityMutationKeys } from '../mutation-keys'; +import type { + OrgCapabilityDefaultCapabilitySelect, + OrgCapabilityDefaultCapabilityWithRelations, + OrgCapabilityDefaultCapabilityPatch, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + OrgCapabilityDefaultCapabilitySelect, + OrgCapabilityDefaultCapabilityWithRelations, + OrgCapabilityDefaultCapabilityPatch, +} from '../../orm/input-types'; +/** + * Join table linking capability defaults to individual capabilities; recompute trigger rebuilds the defaults bitmask + * + * @example + * ```tsx + * const { mutate, isPending } = useUpdateOrgCapabilityDefaultCapabilityMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ id: 'value-here', orgCapabilityDefaultCapabilityPatch: { name: 'Updated' } }); + * ``` + */ +export function useUpdateOrgCapabilityDefaultCapabilityMutation< + S extends OrgCapabilityDefaultCapabilitySelect, +>( + params: { + selection: { + fields: S & OrgCapabilityDefaultCapabilitySelect; + } & HookStrictSelect, OrgCapabilityDefaultCapabilitySelect>; + } & Omit< + UseMutationOptions< + { + updateOrgCapabilityDefaultCapability: { + orgCapabilityDefaultCapability: InferSelectResult< + OrgCapabilityDefaultCapabilityWithRelations, + S + >; + }; + }, + Error, + { + id: string; + orgCapabilityDefaultCapabilityPatch: OrgCapabilityDefaultCapabilityPatch; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + updateOrgCapabilityDefaultCapability: { + orgCapabilityDefaultCapability: InferSelectResult< + OrgCapabilityDefaultCapabilityWithRelations, + S + >; + }; + }, + Error, + { + id: string; + orgCapabilityDefaultCapabilityPatch: OrgCapabilityDefaultCapabilityPatch; + } +>; +export function useUpdateOrgCapabilityDefaultCapabilityMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions< + any, + Error, + { + id: string; + orgCapabilityDefaultCapabilityPatch: OrgCapabilityDefaultCapabilityPatch; + } + >, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: orgCapabilityDefaultCapabilityMutationKeys.all, + mutationFn: ({ + id, + orgCapabilityDefaultCapabilityPatch, + }: { + id: string; + orgCapabilityDefaultCapabilityPatch: OrgCapabilityDefaultCapabilityPatch; + }) => + getClient() + .orgCapabilityDefaultCapability.update({ + where: { + id, + }, + data: orgCapabilityDefaultCapabilityPatch, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.invalidateQueries({ + queryKey: orgCapabilityDefaultCapabilityKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: orgCapabilityDefaultCapabilityKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/admin/hooks/mutations/useUpdateOrgCapabilityDefaultGrantMutation.ts b/sdk/constructive-react/src/admin/hooks/mutations/useUpdateOrgCapabilityDefaultGrantMutation.ts new file mode 100644 index 0000000000..d5d59078d2 --- /dev/null +++ b/sdk/constructive-react/src/admin/hooks/mutations/useUpdateOrgCapabilityDefaultGrantMutation.ts @@ -0,0 +1,118 @@ +/** + * Audit log of capability additions and removals from the defaults bitmask + * @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 { orgCapabilityDefaultGrantKeys } from '../query-keys'; +import { orgCapabilityDefaultGrantMutationKeys } from '../mutation-keys'; +import type { + OrgCapabilityDefaultGrantSelect, + OrgCapabilityDefaultGrantWithRelations, + OrgCapabilityDefaultGrantPatch, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + OrgCapabilityDefaultGrantSelect, + OrgCapabilityDefaultGrantWithRelations, + OrgCapabilityDefaultGrantPatch, +} from '../../orm/input-types'; +/** + * Audit log of capability additions and removals from the defaults bitmask + * + * @example + * ```tsx + * const { mutate, isPending } = useUpdateOrgCapabilityDefaultGrantMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ id: 'value-here', orgCapabilityDefaultGrantPatch: { name: 'Updated' } }); + * ``` + */ +export function useUpdateOrgCapabilityDefaultGrantMutation< + S extends OrgCapabilityDefaultGrantSelect, +>( + params: { + selection: { + fields: S & OrgCapabilityDefaultGrantSelect; + } & HookStrictSelect, OrgCapabilityDefaultGrantSelect>; + } & Omit< + UseMutationOptions< + { + updateOrgCapabilityDefaultGrant: { + orgCapabilityDefaultGrant: InferSelectResult; + }; + }, + Error, + { + id: string; + orgCapabilityDefaultGrantPatch: OrgCapabilityDefaultGrantPatch; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + updateOrgCapabilityDefaultGrant: { + orgCapabilityDefaultGrant: InferSelectResult; + }; + }, + Error, + { + id: string; + orgCapabilityDefaultGrantPatch: OrgCapabilityDefaultGrantPatch; + } +>; +export function useUpdateOrgCapabilityDefaultGrantMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions< + any, + Error, + { + id: string; + orgCapabilityDefaultGrantPatch: OrgCapabilityDefaultGrantPatch; + } + >, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: orgCapabilityDefaultGrantMutationKeys.all, + mutationFn: ({ + id, + orgCapabilityDefaultGrantPatch, + }: { + id: string; + orgCapabilityDefaultGrantPatch: OrgCapabilityDefaultGrantPatch; + }) => + getClient() + .orgCapabilityDefaultGrant.update({ + where: { + id, + }, + data: orgCapabilityDefaultGrantPatch, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.invalidateQueries({ + queryKey: orgCapabilityDefaultGrantKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: orgCapabilityDefaultGrantKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/admin/hooks/mutations/useUpdateOrgGrantMutation.ts b/sdk/constructive-react/src/admin/hooks/mutations/useUpdateOrgGrantMutation.ts index 50e7255807..2b56867d8d 100644 --- a/sdk/constructive-react/src/admin/hooks/mutations/useUpdateOrgGrantMutation.ts +++ b/sdk/constructive-react/src/admin/hooks/mutations/useUpdateOrgGrantMutation.ts @@ -1,5 +1,5 @@ /** - * Records of individual permission grants and revocations for members via bitmask + * Records of individual capability grants and revocations for members via bitmask * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -15,7 +15,7 @@ import type { OrgGrantSelect, OrgGrantWithRelations, OrgGrantPatch } from '../.. import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; export type { OrgGrantSelect, OrgGrantWithRelations, OrgGrantPatch } from '../../orm/input-types'; /** - * Records of individual permission grants and revocations for members via bitmask + * Records of individual capability grants and revocations for members via bitmask * * @example * ```tsx diff --git a/sdk/constructive-react/src/admin/hooks/mutations/useUpdateOrgMembershipMutation.ts b/sdk/constructive-react/src/admin/hooks/mutations/useUpdateOrgMembershipMutation.ts index af8939d5ed..13a8a1b06b 100644 --- a/sdk/constructive-react/src/admin/hooks/mutations/useUpdateOrgMembershipMutation.ts +++ b/sdk/constructive-react/src/admin/hooks/mutations/useUpdateOrgMembershipMutation.ts @@ -1,5 +1,5 @@ /** - * Tracks membership records linking actors to entities with permission bitmasks, ownership, and admin status + * Tracks membership records linking actors to entities with capability bitmasks, ownership, and admin status * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -23,7 +23,7 @@ export type { OrgMembershipPatch, } from '../../orm/input-types'; /** - * Tracks membership records linking actors to entities with permission bitmasks, ownership, and admin status + * Tracks membership records linking actors to entities with capability bitmasks, ownership, and admin status * * @example * ```tsx diff --git a/sdk/constructive-react/src/admin/hooks/mutations/useUpdateOrgPermissionDefaultGrantMutation.ts b/sdk/constructive-react/src/admin/hooks/mutations/useUpdateOrgPermissionDefaultGrantMutation.ts deleted file mode 100644 index 1f119f098b..0000000000 --- a/sdk/constructive-react/src/admin/hooks/mutations/useUpdateOrgPermissionDefaultGrantMutation.ts +++ /dev/null @@ -1,118 +0,0 @@ -/** - * Audit log of permission additions and removals from the defaults bitmask - * @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 { orgPermissionDefaultGrantKeys } from '../query-keys'; -import { orgPermissionDefaultGrantMutationKeys } from '../mutation-keys'; -import type { - OrgPermissionDefaultGrantSelect, - OrgPermissionDefaultGrantWithRelations, - OrgPermissionDefaultGrantPatch, -} from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { - OrgPermissionDefaultGrantSelect, - OrgPermissionDefaultGrantWithRelations, - OrgPermissionDefaultGrantPatch, -} from '../../orm/input-types'; -/** - * Audit log of permission additions and removals from the defaults bitmask - * - * @example - * ```tsx - * const { mutate, isPending } = useUpdateOrgPermissionDefaultGrantMutation({ - * selection: { fields: { id: true, name: true } }, - * }); - * - * mutate({ id: 'value-here', orgPermissionDefaultGrantPatch: { name: 'Updated' } }); - * ``` - */ -export function useUpdateOrgPermissionDefaultGrantMutation< - S extends OrgPermissionDefaultGrantSelect, ->( - params: { - selection: { - fields: S & OrgPermissionDefaultGrantSelect; - } & HookStrictSelect, OrgPermissionDefaultGrantSelect>; - } & Omit< - UseMutationOptions< - { - updateOrgPermissionDefaultGrant: { - orgPermissionDefaultGrant: InferSelectResult; - }; - }, - Error, - { - id: string; - orgPermissionDefaultGrantPatch: OrgPermissionDefaultGrantPatch; - } - >, - 'mutationFn' - > -): UseMutationResult< - { - updateOrgPermissionDefaultGrant: { - orgPermissionDefaultGrant: InferSelectResult; - }; - }, - Error, - { - id: string; - orgPermissionDefaultGrantPatch: OrgPermissionDefaultGrantPatch; - } ->; -export function useUpdateOrgPermissionDefaultGrantMutation( - params: { - selection: SelectionConfig; - } & Omit< - UseMutationOptions< - any, - Error, - { - id: string; - orgPermissionDefaultGrantPatch: OrgPermissionDefaultGrantPatch; - } - >, - 'mutationFn' - > -) { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...mutationOptions } = params ?? {}; - void _selection; - const queryClient = useQueryClient(); - return useMutation({ - mutationKey: orgPermissionDefaultGrantMutationKeys.all, - mutationFn: ({ - id, - orgPermissionDefaultGrantPatch, - }: { - id: string; - orgPermissionDefaultGrantPatch: OrgPermissionDefaultGrantPatch; - }) => - getClient() - .orgPermissionDefaultGrant.update({ - where: { - id, - }, - data: orgPermissionDefaultGrantPatch, - select: args.select, - }) - .unwrap(), - onSuccess: (_, variables) => { - queryClient.invalidateQueries({ - queryKey: orgPermissionDefaultGrantKeys.detail(variables.id), - }); - queryClient.invalidateQueries({ - queryKey: orgPermissionDefaultGrantKeys.lists(), - }); - }, - ...mutationOptions, - }); -} diff --git a/sdk/constructive-react/src/admin/hooks/mutations/useUpdateOrgPermissionDefaultMutation.ts b/sdk/constructive-react/src/admin/hooks/mutations/useUpdateOrgPermissionDefaultMutation.ts deleted file mode 100644 index b53a85a676..0000000000 --- a/sdk/constructive-react/src/admin/hooks/mutations/useUpdateOrgPermissionDefaultMutation.ts +++ /dev/null @@ -1,116 +0,0 @@ -/** - * Stores the default permission bitmask assigned to new members upon joining - * @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 { orgPermissionDefaultKeys } from '../query-keys'; -import { orgPermissionDefaultMutationKeys } from '../mutation-keys'; -import type { - OrgPermissionDefaultSelect, - OrgPermissionDefaultWithRelations, - OrgPermissionDefaultPatch, -} from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { - OrgPermissionDefaultSelect, - OrgPermissionDefaultWithRelations, - OrgPermissionDefaultPatch, -} from '../../orm/input-types'; -/** - * Stores the default permission bitmask assigned to new members upon joining - * - * @example - * ```tsx - * const { mutate, isPending } = useUpdateOrgPermissionDefaultMutation({ - * selection: { fields: { id: true, name: true } }, - * }); - * - * mutate({ id: 'value-here', orgPermissionDefaultPatch: { name: 'Updated' } }); - * ``` - */ -export function useUpdateOrgPermissionDefaultMutation( - params: { - selection: { - fields: S & OrgPermissionDefaultSelect; - } & HookStrictSelect, OrgPermissionDefaultSelect>; - } & Omit< - UseMutationOptions< - { - updateOrgPermissionDefault: { - orgPermissionDefault: InferSelectResult; - }; - }, - Error, - { - id: string; - orgPermissionDefaultPatch: OrgPermissionDefaultPatch; - } - >, - 'mutationFn' - > -): UseMutationResult< - { - updateOrgPermissionDefault: { - orgPermissionDefault: InferSelectResult; - }; - }, - Error, - { - id: string; - orgPermissionDefaultPatch: OrgPermissionDefaultPatch; - } ->; -export function useUpdateOrgPermissionDefaultMutation( - params: { - selection: SelectionConfig; - } & Omit< - UseMutationOptions< - any, - Error, - { - id: string; - orgPermissionDefaultPatch: OrgPermissionDefaultPatch; - } - >, - 'mutationFn' - > -) { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...mutationOptions } = params ?? {}; - void _selection; - const queryClient = useQueryClient(); - return useMutation({ - mutationKey: orgPermissionDefaultMutationKeys.all, - mutationFn: ({ - id, - orgPermissionDefaultPatch, - }: { - id: string; - orgPermissionDefaultPatch: OrgPermissionDefaultPatch; - }) => - getClient() - .orgPermissionDefault.update({ - where: { - id, - }, - data: orgPermissionDefaultPatch, - select: args.select, - }) - .unwrap(), - onSuccess: (_, variables) => { - queryClient.invalidateQueries({ - queryKey: orgPermissionDefaultKeys.detail(variables.id), - }); - queryClient.invalidateQueries({ - queryKey: orgPermissionDefaultKeys.lists(), - }); - }, - ...mutationOptions, - }); -} diff --git a/sdk/constructive-react/src/admin/hooks/mutations/useUpdateOrgPermissionDefaultPermissionMutation.ts b/sdk/constructive-react/src/admin/hooks/mutations/useUpdateOrgPermissionDefaultPermissionMutation.ts deleted file mode 100644 index b5cfa27980..0000000000 --- a/sdk/constructive-react/src/admin/hooks/mutations/useUpdateOrgPermissionDefaultPermissionMutation.ts +++ /dev/null @@ -1,124 +0,0 @@ -/** - * Join table linking permission defaults to individual permissions; recompute trigger rebuilds the defaults bitmask - * @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 { orgPermissionDefaultPermissionKeys } from '../query-keys'; -import { orgPermissionDefaultPermissionMutationKeys } from '../mutation-keys'; -import type { - OrgPermissionDefaultPermissionSelect, - OrgPermissionDefaultPermissionWithRelations, - OrgPermissionDefaultPermissionPatch, -} from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { - OrgPermissionDefaultPermissionSelect, - OrgPermissionDefaultPermissionWithRelations, - OrgPermissionDefaultPermissionPatch, -} from '../../orm/input-types'; -/** - * Join table linking permission defaults to individual permissions; recompute trigger rebuilds the defaults bitmask - * - * @example - * ```tsx - * const { mutate, isPending } = useUpdateOrgPermissionDefaultPermissionMutation({ - * selection: { fields: { id: true, name: true } }, - * }); - * - * mutate({ id: 'value-here', orgPermissionDefaultPermissionPatch: { name: 'Updated' } }); - * ``` - */ -export function useUpdateOrgPermissionDefaultPermissionMutation< - S extends OrgPermissionDefaultPermissionSelect, ->( - params: { - selection: { - fields: S & OrgPermissionDefaultPermissionSelect; - } & HookStrictSelect, OrgPermissionDefaultPermissionSelect>; - } & Omit< - UseMutationOptions< - { - updateOrgPermissionDefaultPermission: { - orgPermissionDefaultPermission: InferSelectResult< - OrgPermissionDefaultPermissionWithRelations, - S - >; - }; - }, - Error, - { - id: string; - orgPermissionDefaultPermissionPatch: OrgPermissionDefaultPermissionPatch; - } - >, - 'mutationFn' - > -): UseMutationResult< - { - updateOrgPermissionDefaultPermission: { - orgPermissionDefaultPermission: InferSelectResult< - OrgPermissionDefaultPermissionWithRelations, - S - >; - }; - }, - Error, - { - id: string; - orgPermissionDefaultPermissionPatch: OrgPermissionDefaultPermissionPatch; - } ->; -export function useUpdateOrgPermissionDefaultPermissionMutation( - params: { - selection: SelectionConfig; - } & Omit< - UseMutationOptions< - any, - Error, - { - id: string; - orgPermissionDefaultPermissionPatch: OrgPermissionDefaultPermissionPatch; - } - >, - 'mutationFn' - > -) { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...mutationOptions } = params ?? {}; - void _selection; - const queryClient = useQueryClient(); - return useMutation({ - mutationKey: orgPermissionDefaultPermissionMutationKeys.all, - mutationFn: ({ - id, - orgPermissionDefaultPermissionPatch, - }: { - id: string; - orgPermissionDefaultPermissionPatch: OrgPermissionDefaultPermissionPatch; - }) => - getClient() - .orgPermissionDefaultPermission.update({ - where: { - id, - }, - data: orgPermissionDefaultPermissionPatch, - select: args.select, - }) - .unwrap(), - onSuccess: (_, variables) => { - queryClient.invalidateQueries({ - queryKey: orgPermissionDefaultPermissionKeys.detail(variables.id), - }); - queryClient.invalidateQueries({ - queryKey: orgPermissionDefaultPermissionKeys.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 5b44dbf6e4..424dc47521 100644 --- a/sdk/constructive-react/src/admin/hooks/queries/index.ts +++ b/sdk/constructive-react/src/admin/hooks/queries/index.ts @@ -5,6 +5,10 @@ */ export * from './useAppAdminGrantsQuery'; export * from './useAppAdminGrantQuery'; +export * from './useAppCapabilityDefaultCapabilitiesQuery'; +export * from './useAppCapabilityDefaultCapabilityQuery'; +export * from './useAppCapabilityDefaultGrantsQuery'; +export * from './useAppCapabilityDefaultGrantQuery'; export * from './useAppClaimedInvitesQuery'; export * from './useAppClaimedInviteQuery'; export * from './useAppGrantsQuery'; @@ -17,18 +21,14 @@ export * from './useAppMembershipDefaultsQuery'; export * from './useAppMembershipDefaultQuery'; export * from './useAppOwnerGrantsQuery'; export * from './useAppOwnerGrantQuery'; -export * from './useAppPermissionsQuery'; -export * from './useAppPermissionQuery'; -export * from './useAppPermissionDefaultsQuery'; -export * from './useAppPermissionDefaultQuery'; -export * from './useAppPermissionDefaultGrantsQuery'; -export * from './useAppPermissionDefaultGrantQuery'; -export * from './useAppPermissionDefaultPermissionsQuery'; -export * from './useAppPermissionDefaultPermissionQuery'; export * from './useMembershipTypesQuery'; export * from './useMembershipTypeQuery'; export * from './useOrgAdminGrantsQuery'; export * from './useOrgAdminGrantQuery'; +export * from './useOrgCapabilityDefaultCapabilitiesQuery'; +export * from './useOrgCapabilityDefaultCapabilityQuery'; +export * from './useOrgCapabilityDefaultGrantsQuery'; +export * from './useOrgCapabilityDefaultGrantQuery'; export * from './useOrgChartEdgesQuery'; export * from './useOrgChartEdgeQuery'; export * from './useOrgChartEdgeGrantsQuery'; @@ -53,20 +53,4 @@ export * from './useOrgMembershipSettingsQuery'; export * from './useOrgMembershipSettingQuery'; export * from './useOrgOwnerGrantsQuery'; export * from './useOrgOwnerGrantQuery'; -export * from './useOrgPermissionsQuery'; -export * from './useOrgPermissionQuery'; -export * from './useOrgPermissionDefaultsQuery'; -export * from './useOrgPermissionDefaultQuery'; -export * from './useOrgPermissionDefaultGrantsQuery'; -export * from './useOrgPermissionDefaultGrantQuery'; -export * from './useOrgPermissionDefaultPermissionsQuery'; -export * from './useOrgPermissionDefaultPermissionQuery'; -export * from './useAppPermissionsGetByMaskQuery'; -export * from './useAppPermissionsGetMaskQuery'; -export * from './useAppPermissionsGetMaskByNamesQuery'; -export * from './useAppPermissionsGetPaddedMaskQuery'; export * from './useOrgIsManagerOfQuery'; -export * from './useOrgPermissionsGetByMaskQuery'; -export * from './useOrgPermissionsGetMaskQuery'; -export * from './useOrgPermissionsGetMaskByNamesQuery'; -export * from './useOrgPermissionsGetPaddedMaskQuery'; diff --git a/sdk/constructive-react/src/admin/hooks/queries/useAppCapabilityDefaultCapabilitiesQuery.ts b/sdk/constructive-react/src/admin/hooks/queries/useAppCapabilityDefaultCapabilitiesQuery.ts new file mode 100644 index 0000000000..957b434cc5 --- /dev/null +++ b/sdk/constructive-react/src/admin/hooks/queries/useAppCapabilityDefaultCapabilitiesQuery.ts @@ -0,0 +1,194 @@ +/** + * Join table linking capability defaults to individual capabilities; recompute trigger rebuilds the defaults bitmask + * @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 { appCapabilityDefaultCapabilityKeys } from '../query-keys'; +import type { + AppCapabilityDefaultCapabilitySelect, + AppCapabilityDefaultCapabilityWithRelations, + AppCapabilityDefaultCapabilityFilter, + AppCapabilityDefaultCapabilityOrderBy, +} from '../../orm/input-types'; +import type { + FindManyArgs, + InferSelectResult, + ConnectionResult, + HookStrictSelect, +} from '../../orm/select-types'; +export type { + AppCapabilityDefaultCapabilitySelect, + AppCapabilityDefaultCapabilityWithRelations, + AppCapabilityDefaultCapabilityFilter, + AppCapabilityDefaultCapabilityOrderBy, +} from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const appCapabilityDefaultCapabilitiesQueryKey = appCapabilityDefaultCapabilityKeys.list; +/** + * Join table linking capability defaults to individual capabilities; recompute trigger rebuilds the defaults bitmask + * + * @example + * ```tsx + * const { data, isLoading } = useAppCapabilityDefaultCapabilitiesQuery({ + * selection: { + * fields: { id: true, name: true }, + * where: { name: { equalTo: "example" } }, + * orderBy: ['CREATED_AT_DESC'], + * first: 10, + * }, + * }); + * ``` + */ +export function useAppCapabilityDefaultCapabilitiesQuery< + S extends AppCapabilityDefaultCapabilitySelect, + TData = { + appCapabilityDefaultCapabilities: ConnectionResult< + InferSelectResult + >; + }, +>( + params: { + selection: { + fields: S; + } & Omit< + ListSelectionConfig< + S, + AppCapabilityDefaultCapabilityFilter, + AppCapabilityDefaultCapabilityOrderBy + >, + 'fields' + > & + HookStrictSelect, AppCapabilityDefaultCapabilitySelect>; + } & Omit< + UseQueryOptions< + { + appCapabilityDefaultCapabilities: ConnectionResult< + InferSelectResult + >; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useAppCapabilityDefaultCapabilitiesQuery( + params: { + selection: ListSelectionConfig< + AppCapabilityDefaultCapabilitySelect, + AppCapabilityDefaultCapabilityFilter, + AppCapabilityDefaultCapabilityOrderBy + >; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildListSelectionArgs< + AppCapabilityDefaultCapabilitySelect, + AppCapabilityDefaultCapabilityFilter, + AppCapabilityDefaultCapabilityOrderBy + >(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: appCapabilityDefaultCapabilityKeys.list(args), + queryFn: () => getClient().appCapabilityDefaultCapability.findMany(args).unwrap(), + ...queryOptions, + }); +} +/** + * Join table linking capability defaults to individual capabilities; recompute trigger rebuilds the defaults bitmask + * + * @example + * ```ts + * const data = await fetchAppCapabilityDefaultCapabilitiesQuery({ + * selection: { + * fields: { id: true }, + * first: 10, + * }, + * }); + * ``` + */ +export async function fetchAppCapabilityDefaultCapabilitiesQuery< + S extends AppCapabilityDefaultCapabilitySelect, +>(params: { + selection: { + fields: S; + } & Omit< + ListSelectionConfig< + S, + AppCapabilityDefaultCapabilityFilter, + AppCapabilityDefaultCapabilityOrderBy + >, + 'fields' + > & + HookStrictSelect, AppCapabilityDefaultCapabilitySelect>; +}): Promise<{ + appCapabilityDefaultCapabilities: ConnectionResult< + InferSelectResult + >; +}>; +export async function fetchAppCapabilityDefaultCapabilitiesQuery(params: { + selection: ListSelectionConfig< + AppCapabilityDefaultCapabilitySelect, + AppCapabilityDefaultCapabilityFilter, + AppCapabilityDefaultCapabilityOrderBy + >; +}) { + const args = buildListSelectionArgs< + AppCapabilityDefaultCapabilitySelect, + AppCapabilityDefaultCapabilityFilter, + AppCapabilityDefaultCapabilityOrderBy + >(params.selection); + return getClient().appCapabilityDefaultCapability.findMany(args).unwrap(); +} +/** + * Join table linking capability defaults to individual capabilities; recompute trigger rebuilds the defaults bitmask + * + * @example + * ```ts + * await prefetchAppCapabilityDefaultCapabilitiesQuery(queryClient, { selection: { fields: { id: true }, first: 10 } }); + * ``` + */ +export async function prefetchAppCapabilityDefaultCapabilitiesQuery< + S extends AppCapabilityDefaultCapabilitySelect, +>( + queryClient: QueryClient, + params: { + selection: { + fields: S; + } & Omit< + ListSelectionConfig< + S, + AppCapabilityDefaultCapabilityFilter, + AppCapabilityDefaultCapabilityOrderBy + >, + 'fields' + > & + HookStrictSelect, AppCapabilityDefaultCapabilitySelect>; + } +): Promise; +export async function prefetchAppCapabilityDefaultCapabilitiesQuery( + queryClient: QueryClient, + params: { + selection: ListSelectionConfig< + AppCapabilityDefaultCapabilitySelect, + AppCapabilityDefaultCapabilityFilter, + AppCapabilityDefaultCapabilityOrderBy + >; + } +): Promise { + const args = buildListSelectionArgs< + AppCapabilityDefaultCapabilitySelect, + AppCapabilityDefaultCapabilityFilter, + AppCapabilityDefaultCapabilityOrderBy + >(params.selection); + await queryClient.prefetchQuery({ + queryKey: appCapabilityDefaultCapabilityKeys.list(args), + queryFn: () => getClient().appCapabilityDefaultCapability.findMany(args).unwrap(), + }); +} diff --git a/sdk/constructive-react/src/admin/hooks/queries/useAppCapabilityDefaultCapabilityQuery.ts b/sdk/constructive-react/src/admin/hooks/queries/useAppCapabilityDefaultCapabilityQuery.ts new file mode 100644 index 0000000000..b53c0b660c --- /dev/null +++ b/sdk/constructive-react/src/admin/hooks/queries/useAppCapabilityDefaultCapabilityQuery.ts @@ -0,0 +1,157 @@ +/** + * Join table linking capability defaults to individual capabilities; recompute trigger rebuilds the defaults bitmask + * @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 { appCapabilityDefaultCapabilityKeys } from '../query-keys'; +import type { + AppCapabilityDefaultCapabilitySelect, + AppCapabilityDefaultCapabilityWithRelations, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + AppCapabilityDefaultCapabilitySelect, + AppCapabilityDefaultCapabilityWithRelations, +} from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const appCapabilityDefaultCapabilityQueryKey = appCapabilityDefaultCapabilityKeys.detail; +/** + * Join table linking capability defaults to individual capabilities; recompute trigger rebuilds the defaults bitmask + * + * @example + * ```tsx + * const { data, isLoading } = useAppCapabilityDefaultCapabilityQuery({ + * id: 'some-id', + * selection: { fields: { id: true, name: true } }, + * }); + * ``` + */ +export function useAppCapabilityDefaultCapabilityQuery< + S extends AppCapabilityDefaultCapabilitySelect, + TData = { + appCapabilityDefaultCapability: InferSelectResult< + AppCapabilityDefaultCapabilityWithRelations, + S + > | null; + }, +>( + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, AppCapabilityDefaultCapabilitySelect>; + } & Omit< + UseQueryOptions< + { + appCapabilityDefaultCapability: InferSelectResult< + AppCapabilityDefaultCapabilityWithRelations, + S + > | null; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useAppCapabilityDefaultCapabilityQuery( + params: { + id: string; + selection: SelectionConfig; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: appCapabilityDefaultCapabilityKeys.detail(params.id), + queryFn: () => + getClient() + .appCapabilityDefaultCapability.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + ...queryOptions, + }); +} +/** + * Join table linking capability defaults to individual capabilities; recompute trigger rebuilds the defaults bitmask + * + * @example + * ```ts + * const data = await fetchAppCapabilityDefaultCapabilityQuery({ + * id: 'some-id', + * selection: { fields: { id: true } }, + * }); + * ``` + */ +export async function fetchAppCapabilityDefaultCapabilityQuery< + S extends AppCapabilityDefaultCapabilitySelect, +>(params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, AppCapabilityDefaultCapabilitySelect>; +}): Promise<{ + appCapabilityDefaultCapability: InferSelectResult< + AppCapabilityDefaultCapabilityWithRelations, + S + > | null; +}>; +export async function fetchAppCapabilityDefaultCapabilityQuery(params: { + id: string; + selection: SelectionConfig; +}): Promise { + const args = buildSelectionArgs(params.selection); + return getClient() + .appCapabilityDefaultCapability.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(); +} +/** + * Join table linking capability defaults to individual capabilities; recompute trigger rebuilds the defaults bitmask + * + * @example + * ```ts + * await prefetchAppCapabilityDefaultCapabilityQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } }); + * ``` + */ +export async function prefetchAppCapabilityDefaultCapabilityQuery< + S extends AppCapabilityDefaultCapabilitySelect, +>( + queryClient: QueryClient, + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, AppCapabilityDefaultCapabilitySelect>; + } +): Promise; +export async function prefetchAppCapabilityDefaultCapabilityQuery( + queryClient: QueryClient, + params: { + id: string; + selection: SelectionConfig; + } +): Promise { + const args = buildSelectionArgs(params.selection); + await queryClient.prefetchQuery({ + queryKey: appCapabilityDefaultCapabilityKeys.detail(params.id), + queryFn: () => + getClient() + .appCapabilityDefaultCapability.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + }); +} diff --git a/sdk/constructive-react/src/admin/hooks/queries/useOrgPermissionDefaultGrantQuery.ts b/sdk/constructive-react/src/admin/hooks/queries/useAppCapabilityDefaultGrantQuery.ts similarity index 50% rename from sdk/constructive-react/src/admin/hooks/queries/useOrgPermissionDefaultGrantQuery.ts rename to sdk/constructive-react/src/admin/hooks/queries/useAppCapabilityDefaultGrantQuery.ts index a2cec4a441..62415841bb 100644 --- a/sdk/constructive-react/src/admin/hooks/queries/useOrgPermissionDefaultGrantQuery.ts +++ b/sdk/constructive-react/src/admin/hooks/queries/useAppCapabilityDefaultGrantQuery.ts @@ -1,5 +1,5 @@ /** - * Audit log of permission additions and removals from the defaults bitmask + * Audit log of capability additions and removals from the defaults bitmask * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -9,45 +9,45 @@ import type { UseQueryOptions, UseQueryResult, QueryClient } from '@tanstack/rea import { getClient } from '../client'; import { buildSelectionArgs } from '../selection'; import type { SelectionConfig } from '../selection'; -import { orgPermissionDefaultGrantKeys } from '../query-keys'; +import { appCapabilityDefaultGrantKeys } from '../query-keys'; import type { - OrgPermissionDefaultGrantSelect, - OrgPermissionDefaultGrantWithRelations, + AppCapabilityDefaultGrantSelect, + AppCapabilityDefaultGrantWithRelations, } from '../../orm/input-types'; import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; export type { - OrgPermissionDefaultGrantSelect, - OrgPermissionDefaultGrantWithRelations, + AppCapabilityDefaultGrantSelect, + AppCapabilityDefaultGrantWithRelations, } from '../../orm/input-types'; /** Query key factory - re-exported from query-keys.ts */ -export const orgPermissionDefaultGrantQueryKey = orgPermissionDefaultGrantKeys.detail; +export const appCapabilityDefaultGrantQueryKey = appCapabilityDefaultGrantKeys.detail; /** - * Audit log of permission additions and removals from the defaults bitmask + * Audit log of capability additions and removals from the defaults bitmask * * @example * ```tsx - * const { data, isLoading } = useOrgPermissionDefaultGrantQuery({ + * const { data, isLoading } = useAppCapabilityDefaultGrantQuery({ * id: 'some-id', * selection: { fields: { id: true, name: true } }, * }); * ``` */ -export function useOrgPermissionDefaultGrantQuery< - S extends OrgPermissionDefaultGrantSelect, +export function useAppCapabilityDefaultGrantQuery< + S extends AppCapabilityDefaultGrantSelect, TData = { - orgPermissionDefaultGrant: InferSelectResult | null; + appCapabilityDefaultGrant: InferSelectResult | null; }, >( params: { id: string; selection: { fields: S; - } & HookStrictSelect, OrgPermissionDefaultGrantSelect>; + } & HookStrictSelect, AppCapabilityDefaultGrantSelect>; } & Omit< UseQueryOptions< { - orgPermissionDefaultGrant: InferSelectResult< - OrgPermissionDefaultGrantWithRelations, + appCapabilityDefaultGrant: InferSelectResult< + AppCapabilityDefaultGrantWithRelations, S > | null; }, @@ -57,20 +57,20 @@ export function useOrgPermissionDefaultGrantQuery< 'queryKey' | 'queryFn' > ): UseQueryResult; -export function useOrgPermissionDefaultGrantQuery( +export function useAppCapabilityDefaultGrantQuery( params: { id: string; - selection: SelectionConfig; + selection: SelectionConfig; } & Omit, 'queryKey' | 'queryFn'> ) { - const args = buildSelectionArgs(params.selection); + const args = buildSelectionArgs(params.selection); const { selection: _selection, ...queryOptions } = params ?? {}; void _selection; return useQuery({ - queryKey: orgPermissionDefaultGrantKeys.detail(params.id), + queryKey: appCapabilityDefaultGrantKeys.detail(params.id), queryFn: () => getClient() - .orgPermissionDefaultGrant.findOne({ + .appCapabilityDefaultGrant.findOne({ id: params.id, select: args.select, }) @@ -79,70 +79,70 @@ export function useOrgPermissionDefaultGrantQuery( }); } /** - * Audit log of permission additions and removals from the defaults bitmask + * Audit log of capability additions and removals from the defaults bitmask * * @example * ```ts - * const data = await fetchOrgPermissionDefaultGrantQuery({ + * const data = await fetchAppCapabilityDefaultGrantQuery({ * id: 'some-id', * selection: { fields: { id: true } }, * }); * ``` */ -export async function fetchOrgPermissionDefaultGrantQuery< - S extends OrgPermissionDefaultGrantSelect, +export async function fetchAppCapabilityDefaultGrantQuery< + S extends AppCapabilityDefaultGrantSelect, >(params: { id: string; selection: { fields: S; - } & HookStrictSelect, OrgPermissionDefaultGrantSelect>; + } & HookStrictSelect, AppCapabilityDefaultGrantSelect>; }): Promise<{ - orgPermissionDefaultGrant: InferSelectResult | null; + appCapabilityDefaultGrant: InferSelectResult | null; }>; -export async function fetchOrgPermissionDefaultGrantQuery(params: { +export async function fetchAppCapabilityDefaultGrantQuery(params: { id: string; - selection: SelectionConfig; + selection: SelectionConfig; }): Promise { - const args = buildSelectionArgs(params.selection); + const args = buildSelectionArgs(params.selection); return getClient() - .orgPermissionDefaultGrant.findOne({ + .appCapabilityDefaultGrant.findOne({ id: params.id, select: args.select, }) .unwrap(); } /** - * Audit log of permission additions and removals from the defaults bitmask + * Audit log of capability additions and removals from the defaults bitmask * * @example * ```ts - * await prefetchOrgPermissionDefaultGrantQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } }); + * await prefetchAppCapabilityDefaultGrantQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } }); * ``` */ -export async function prefetchOrgPermissionDefaultGrantQuery< - S extends OrgPermissionDefaultGrantSelect, +export async function prefetchAppCapabilityDefaultGrantQuery< + S extends AppCapabilityDefaultGrantSelect, >( queryClient: QueryClient, params: { id: string; selection: { fields: S; - } & HookStrictSelect, OrgPermissionDefaultGrantSelect>; + } & HookStrictSelect, AppCapabilityDefaultGrantSelect>; } ): Promise; -export async function prefetchOrgPermissionDefaultGrantQuery( +export async function prefetchAppCapabilityDefaultGrantQuery( queryClient: QueryClient, params: { id: string; - selection: SelectionConfig; + selection: SelectionConfig; } ): Promise { - const args = buildSelectionArgs(params.selection); + const args = buildSelectionArgs(params.selection); await queryClient.prefetchQuery({ - queryKey: orgPermissionDefaultGrantKeys.detail(params.id), + queryKey: appCapabilityDefaultGrantKeys.detail(params.id), queryFn: () => getClient() - .orgPermissionDefaultGrant.findOne({ + .appCapabilityDefaultGrant.findOne({ id: params.id, select: args.select, }) diff --git a/sdk/constructive-react/src/admin/hooks/queries/useAppCapabilityDefaultGrantsQuery.ts b/sdk/constructive-react/src/admin/hooks/queries/useAppCapabilityDefaultGrantsQuery.ts new file mode 100644 index 0000000000..bf97b4315f --- /dev/null +++ b/sdk/constructive-react/src/admin/hooks/queries/useAppCapabilityDefaultGrantsQuery.ts @@ -0,0 +1,182 @@ +/** + * Audit log of capability additions and removals from the defaults bitmask + * @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 { appCapabilityDefaultGrantKeys } from '../query-keys'; +import type { + AppCapabilityDefaultGrantSelect, + AppCapabilityDefaultGrantWithRelations, + AppCapabilityDefaultGrantFilter, + AppCapabilityDefaultGrantOrderBy, +} from '../../orm/input-types'; +import type { + FindManyArgs, + InferSelectResult, + ConnectionResult, + HookStrictSelect, +} from '../../orm/select-types'; +export type { + AppCapabilityDefaultGrantSelect, + AppCapabilityDefaultGrantWithRelations, + AppCapabilityDefaultGrantFilter, + AppCapabilityDefaultGrantOrderBy, +} from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const appCapabilityDefaultGrantsQueryKey = appCapabilityDefaultGrantKeys.list; +/** + * Audit log of capability additions and removals from the defaults bitmask + * + * @example + * ```tsx + * const { data, isLoading } = useAppCapabilityDefaultGrantsQuery({ + * selection: { + * fields: { id: true, name: true }, + * where: { name: { equalTo: "example" } }, + * orderBy: ['CREATED_AT_DESC'], + * first: 10, + * }, + * }); + * ``` + */ +export function useAppCapabilityDefaultGrantsQuery< + S extends AppCapabilityDefaultGrantSelect, + TData = { + appCapabilityDefaultGrants: ConnectionResult< + InferSelectResult + >; + }, +>( + params: { + selection: { + fields: S; + } & Omit< + ListSelectionConfig, + 'fields' + > & + HookStrictSelect, AppCapabilityDefaultGrantSelect>; + } & Omit< + UseQueryOptions< + { + appCapabilityDefaultGrants: ConnectionResult< + InferSelectResult + >; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useAppCapabilityDefaultGrantsQuery( + params: { + selection: ListSelectionConfig< + AppCapabilityDefaultGrantSelect, + AppCapabilityDefaultGrantFilter, + AppCapabilityDefaultGrantOrderBy + >; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildListSelectionArgs< + AppCapabilityDefaultGrantSelect, + AppCapabilityDefaultGrantFilter, + AppCapabilityDefaultGrantOrderBy + >(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: appCapabilityDefaultGrantKeys.list(args), + queryFn: () => getClient().appCapabilityDefaultGrant.findMany(args).unwrap(), + ...queryOptions, + }); +} +/** + * Audit log of capability additions and removals from the defaults bitmask + * + * @example + * ```ts + * const data = await fetchAppCapabilityDefaultGrantsQuery({ + * selection: { + * fields: { id: true }, + * first: 10, + * }, + * }); + * ``` + */ +export async function fetchAppCapabilityDefaultGrantsQuery< + S extends AppCapabilityDefaultGrantSelect, +>(params: { + selection: { + fields: S; + } & Omit< + ListSelectionConfig, + 'fields' + > & + HookStrictSelect, AppCapabilityDefaultGrantSelect>; +}): Promise<{ + appCapabilityDefaultGrants: ConnectionResult< + InferSelectResult + >; +}>; +export async function fetchAppCapabilityDefaultGrantsQuery(params: { + selection: ListSelectionConfig< + AppCapabilityDefaultGrantSelect, + AppCapabilityDefaultGrantFilter, + AppCapabilityDefaultGrantOrderBy + >; +}) { + const args = buildListSelectionArgs< + AppCapabilityDefaultGrantSelect, + AppCapabilityDefaultGrantFilter, + AppCapabilityDefaultGrantOrderBy + >(params.selection); + return getClient().appCapabilityDefaultGrant.findMany(args).unwrap(); +} +/** + * Audit log of capability additions and removals from the defaults bitmask + * + * @example + * ```ts + * await prefetchAppCapabilityDefaultGrantsQuery(queryClient, { selection: { fields: { id: true }, first: 10 } }); + * ``` + */ +export async function prefetchAppCapabilityDefaultGrantsQuery< + S extends AppCapabilityDefaultGrantSelect, +>( + queryClient: QueryClient, + params: { + selection: { + fields: S; + } & Omit< + ListSelectionConfig, + 'fields' + > & + HookStrictSelect, AppCapabilityDefaultGrantSelect>; + } +): Promise; +export async function prefetchAppCapabilityDefaultGrantsQuery( + queryClient: QueryClient, + params: { + selection: ListSelectionConfig< + AppCapabilityDefaultGrantSelect, + AppCapabilityDefaultGrantFilter, + AppCapabilityDefaultGrantOrderBy + >; + } +): Promise { + const args = buildListSelectionArgs< + AppCapabilityDefaultGrantSelect, + AppCapabilityDefaultGrantFilter, + AppCapabilityDefaultGrantOrderBy + >(params.selection); + await queryClient.prefetchQuery({ + queryKey: appCapabilityDefaultGrantKeys.list(args), + queryFn: () => getClient().appCapabilityDefaultGrant.findMany(args).unwrap(), + }); +} diff --git a/sdk/constructive-react/src/admin/hooks/queries/useAppGrantQuery.ts b/sdk/constructive-react/src/admin/hooks/queries/useAppGrantQuery.ts index a7a5d3304b..b134a063d5 100644 --- a/sdk/constructive-react/src/admin/hooks/queries/useAppGrantQuery.ts +++ b/sdk/constructive-react/src/admin/hooks/queries/useAppGrantQuery.ts @@ -1,5 +1,5 @@ /** - * Records of individual permission grants and revocations for members via bitmask + * Records of individual capability grants and revocations for members via bitmask * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -16,7 +16,7 @@ export type { AppGrantSelect, AppGrantWithRelations } from '../../orm/input-type /** Query key factory - re-exported from query-keys.ts */ export const appGrantQueryKey = appGrantKeys.detail; /** - * Records of individual permission grants and revocations for members via bitmask + * Records of individual capability grants and revocations for members via bitmask * * @example * ```tsx @@ -70,7 +70,7 @@ export function useAppGrantQuery( }); } /** - * Records of individual permission grants and revocations for members via bitmask + * Records of individual capability grants and revocations for members via bitmask * * @example * ```ts @@ -101,7 +101,7 @@ export async function fetchAppGrantQuery(params: { .unwrap(); } /** - * Records of individual permission grants and revocations for members via bitmask + * Records of individual capability grants and revocations for members via bitmask * * @example * ```ts diff --git a/sdk/constructive-react/src/admin/hooks/queries/useAppGrantsQuery.ts b/sdk/constructive-react/src/admin/hooks/queries/useAppGrantsQuery.ts index de0684b897..52634b033f 100644 --- a/sdk/constructive-react/src/admin/hooks/queries/useAppGrantsQuery.ts +++ b/sdk/constructive-react/src/admin/hooks/queries/useAppGrantsQuery.ts @@ -1,5 +1,5 @@ /** - * Records of individual permission grants and revocations for members via bitmask + * Records of individual capability grants and revocations for members via bitmask * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -31,7 +31,7 @@ export type { /** Query key factory - re-exported from query-keys.ts */ export const appGrantsQueryKey = appGrantKeys.list; /** - * Records of individual permission grants and revocations for members via bitmask + * Records of individual capability grants and revocations for members via bitmask * * @example * ```tsx @@ -84,7 +84,7 @@ export function useAppGrantsQuery( }); } /** - * Records of individual permission grants and revocations for members via bitmask + * Records of individual capability grants and revocations for members via bitmask * * @example * ```ts @@ -113,7 +113,7 @@ export async function fetchAppGrantsQuery(params: { return getClient().appGrant.findMany(args).unwrap(); } /** - * Records of individual permission grants and revocations for members via bitmask + * Records of individual capability grants and revocations for members via bitmask * * @example * ```ts diff --git a/sdk/constructive-react/src/admin/hooks/queries/useAppMembershipQuery.ts b/sdk/constructive-react/src/admin/hooks/queries/useAppMembershipQuery.ts index 53a941d1a3..904494cfeb 100644 --- a/sdk/constructive-react/src/admin/hooks/queries/useAppMembershipQuery.ts +++ b/sdk/constructive-react/src/admin/hooks/queries/useAppMembershipQuery.ts @@ -1,5 +1,5 @@ /** - * Tracks membership records linking actors to entities with permission bitmasks, ownership, and admin status + * Tracks membership records linking actors to entities with capability bitmasks, ownership, and admin status * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -16,7 +16,7 @@ export type { AppMembershipSelect, AppMembershipWithRelations } from '../../orm/ /** Query key factory - re-exported from query-keys.ts */ export const appMembershipQueryKey = appMembershipKeys.detail; /** - * Tracks membership records linking actors to entities with permission bitmasks, ownership, and admin status + * Tracks membership records linking actors to entities with capability bitmasks, ownership, and admin status * * @example * ```tsx @@ -70,7 +70,7 @@ export function useAppMembershipQuery( }); } /** - * Tracks membership records linking actors to entities with permission bitmasks, ownership, and admin status + * Tracks membership records linking actors to entities with capability bitmasks, ownership, and admin status * * @example * ```ts @@ -101,7 +101,7 @@ export async function fetchAppMembershipQuery(params: { .unwrap(); } /** - * Tracks membership records linking actors to entities with permission bitmasks, ownership, and admin status + * Tracks membership records linking actors to entities with capability bitmasks, ownership, and admin status * * @example * ```ts diff --git a/sdk/constructive-react/src/admin/hooks/queries/useAppMembershipsQuery.ts b/sdk/constructive-react/src/admin/hooks/queries/useAppMembershipsQuery.ts index 4a7406a964..71e56028e8 100644 --- a/sdk/constructive-react/src/admin/hooks/queries/useAppMembershipsQuery.ts +++ b/sdk/constructive-react/src/admin/hooks/queries/useAppMembershipsQuery.ts @@ -1,5 +1,5 @@ /** - * Tracks membership records linking actors to entities with permission bitmasks, ownership, and admin status + * Tracks membership records linking actors to entities with capability bitmasks, ownership, and admin status * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -31,7 +31,7 @@ export type { /** Query key factory - re-exported from query-keys.ts */ export const appMembershipsQueryKey = appMembershipKeys.list; /** - * Tracks membership records linking actors to entities with permission bitmasks, ownership, and admin status + * Tracks membership records linking actors to entities with capability bitmasks, ownership, and admin status * * @example * ```tsx @@ -86,7 +86,7 @@ export function useAppMembershipsQuery( }); } /** - * Tracks membership records linking actors to entities with permission bitmasks, ownership, and admin status + * Tracks membership records linking actors to entities with capability bitmasks, ownership, and admin status * * @example * ```ts @@ -117,7 +117,7 @@ export async function fetchAppMembershipsQuery(params: { return getClient().appMembership.findMany(args).unwrap(); } /** - * Tracks membership records linking actors to entities with permission bitmasks, ownership, and admin status + * Tracks membership records linking actors to entities with capability bitmasks, ownership, and admin status * * @example * ```ts diff --git a/sdk/constructive-react/src/admin/hooks/queries/useAppPermissionDefaultGrantsQuery.ts b/sdk/constructive-react/src/admin/hooks/queries/useAppPermissionDefaultGrantsQuery.ts deleted file mode 100644 index eeae2ad10f..0000000000 --- a/sdk/constructive-react/src/admin/hooks/queries/useAppPermissionDefaultGrantsQuery.ts +++ /dev/null @@ -1,182 +0,0 @@ -/** - * Audit log of permission additions and removals from the defaults bitmask - * @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 { appPermissionDefaultGrantKeys } from '../query-keys'; -import type { - AppPermissionDefaultGrantSelect, - AppPermissionDefaultGrantWithRelations, - AppPermissionDefaultGrantFilter, - AppPermissionDefaultGrantOrderBy, -} from '../../orm/input-types'; -import type { - FindManyArgs, - InferSelectResult, - ConnectionResult, - HookStrictSelect, -} from '../../orm/select-types'; -export type { - AppPermissionDefaultGrantSelect, - AppPermissionDefaultGrantWithRelations, - AppPermissionDefaultGrantFilter, - AppPermissionDefaultGrantOrderBy, -} from '../../orm/input-types'; -/** Query key factory - re-exported from query-keys.ts */ -export const appPermissionDefaultGrantsQueryKey = appPermissionDefaultGrantKeys.list; -/** - * Audit log of permission additions and removals from the defaults bitmask - * - * @example - * ```tsx - * const { data, isLoading } = useAppPermissionDefaultGrantsQuery({ - * selection: { - * fields: { id: true, name: true }, - * where: { name: { equalTo: "example" } }, - * orderBy: ['CREATED_AT_DESC'], - * first: 10, - * }, - * }); - * ``` - */ -export function useAppPermissionDefaultGrantsQuery< - S extends AppPermissionDefaultGrantSelect, - TData = { - appPermissionDefaultGrants: ConnectionResult< - InferSelectResult - >; - }, ->( - params: { - selection: { - fields: S; - } & Omit< - ListSelectionConfig, - 'fields' - > & - HookStrictSelect, AppPermissionDefaultGrantSelect>; - } & Omit< - UseQueryOptions< - { - appPermissionDefaultGrants: ConnectionResult< - InferSelectResult - >; - }, - Error, - TData - >, - 'queryKey' | 'queryFn' - > -): UseQueryResult; -export function useAppPermissionDefaultGrantsQuery( - params: { - selection: ListSelectionConfig< - AppPermissionDefaultGrantSelect, - AppPermissionDefaultGrantFilter, - AppPermissionDefaultGrantOrderBy - >; - } & Omit, 'queryKey' | 'queryFn'> -) { - const args = buildListSelectionArgs< - AppPermissionDefaultGrantSelect, - AppPermissionDefaultGrantFilter, - AppPermissionDefaultGrantOrderBy - >(params.selection); - const { selection: _selection, ...queryOptions } = params ?? {}; - void _selection; - return useQuery({ - queryKey: appPermissionDefaultGrantKeys.list(args), - queryFn: () => getClient().appPermissionDefaultGrant.findMany(args).unwrap(), - ...queryOptions, - }); -} -/** - * Audit log of permission additions and removals from the defaults bitmask - * - * @example - * ```ts - * const data = await fetchAppPermissionDefaultGrantsQuery({ - * selection: { - * fields: { id: true }, - * first: 10, - * }, - * }); - * ``` - */ -export async function fetchAppPermissionDefaultGrantsQuery< - S extends AppPermissionDefaultGrantSelect, ->(params: { - selection: { - fields: S; - } & Omit< - ListSelectionConfig, - 'fields' - > & - HookStrictSelect, AppPermissionDefaultGrantSelect>; -}): Promise<{ - appPermissionDefaultGrants: ConnectionResult< - InferSelectResult - >; -}>; -export async function fetchAppPermissionDefaultGrantsQuery(params: { - selection: ListSelectionConfig< - AppPermissionDefaultGrantSelect, - AppPermissionDefaultGrantFilter, - AppPermissionDefaultGrantOrderBy - >; -}) { - const args = buildListSelectionArgs< - AppPermissionDefaultGrantSelect, - AppPermissionDefaultGrantFilter, - AppPermissionDefaultGrantOrderBy - >(params.selection); - return getClient().appPermissionDefaultGrant.findMany(args).unwrap(); -} -/** - * Audit log of permission additions and removals from the defaults bitmask - * - * @example - * ```ts - * await prefetchAppPermissionDefaultGrantsQuery(queryClient, { selection: { fields: { id: true }, first: 10 } }); - * ``` - */ -export async function prefetchAppPermissionDefaultGrantsQuery< - S extends AppPermissionDefaultGrantSelect, ->( - queryClient: QueryClient, - params: { - selection: { - fields: S; - } & Omit< - ListSelectionConfig, - 'fields' - > & - HookStrictSelect, AppPermissionDefaultGrantSelect>; - } -): Promise; -export async function prefetchAppPermissionDefaultGrantsQuery( - queryClient: QueryClient, - params: { - selection: ListSelectionConfig< - AppPermissionDefaultGrantSelect, - AppPermissionDefaultGrantFilter, - AppPermissionDefaultGrantOrderBy - >; - } -): Promise { - const args = buildListSelectionArgs< - AppPermissionDefaultGrantSelect, - AppPermissionDefaultGrantFilter, - AppPermissionDefaultGrantOrderBy - >(params.selection); - await queryClient.prefetchQuery({ - queryKey: appPermissionDefaultGrantKeys.list(args), - queryFn: () => getClient().appPermissionDefaultGrant.findMany(args).unwrap(), - }); -} diff --git a/sdk/constructive-react/src/admin/hooks/queries/useAppPermissionDefaultPermissionQuery.ts b/sdk/constructive-react/src/admin/hooks/queries/useAppPermissionDefaultPermissionQuery.ts deleted file mode 100644 index 06aeafb892..0000000000 --- a/sdk/constructive-react/src/admin/hooks/queries/useAppPermissionDefaultPermissionQuery.ts +++ /dev/null @@ -1,157 +0,0 @@ -/** - * Join table linking permission defaults to individual permissions; recompute trigger rebuilds the defaults bitmask - * @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 { appPermissionDefaultPermissionKeys } from '../query-keys'; -import type { - AppPermissionDefaultPermissionSelect, - AppPermissionDefaultPermissionWithRelations, -} from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { - AppPermissionDefaultPermissionSelect, - AppPermissionDefaultPermissionWithRelations, -} from '../../orm/input-types'; -/** Query key factory - re-exported from query-keys.ts */ -export const appPermissionDefaultPermissionQueryKey = appPermissionDefaultPermissionKeys.detail; -/** - * Join table linking permission defaults to individual permissions; recompute trigger rebuilds the defaults bitmask - * - * @example - * ```tsx - * const { data, isLoading } = useAppPermissionDefaultPermissionQuery({ - * id: 'some-id', - * selection: { fields: { id: true, name: true } }, - * }); - * ``` - */ -export function useAppPermissionDefaultPermissionQuery< - S extends AppPermissionDefaultPermissionSelect, - TData = { - appPermissionDefaultPermission: InferSelectResult< - AppPermissionDefaultPermissionWithRelations, - S - > | null; - }, ->( - params: { - id: string; - selection: { - fields: S; - } & HookStrictSelect, AppPermissionDefaultPermissionSelect>; - } & Omit< - UseQueryOptions< - { - appPermissionDefaultPermission: InferSelectResult< - AppPermissionDefaultPermissionWithRelations, - S - > | null; - }, - Error, - TData - >, - 'queryKey' | 'queryFn' - > -): UseQueryResult; -export function useAppPermissionDefaultPermissionQuery( - params: { - id: string; - selection: SelectionConfig; - } & Omit, 'queryKey' | 'queryFn'> -) { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...queryOptions } = params ?? {}; - void _selection; - return useQuery({ - queryKey: appPermissionDefaultPermissionKeys.detail(params.id), - queryFn: () => - getClient() - .appPermissionDefaultPermission.findOne({ - id: params.id, - select: args.select, - }) - .unwrap(), - ...queryOptions, - }); -} -/** - * Join table linking permission defaults to individual permissions; recompute trigger rebuilds the defaults bitmask - * - * @example - * ```ts - * const data = await fetchAppPermissionDefaultPermissionQuery({ - * id: 'some-id', - * selection: { fields: { id: true } }, - * }); - * ``` - */ -export async function fetchAppPermissionDefaultPermissionQuery< - S extends AppPermissionDefaultPermissionSelect, ->(params: { - id: string; - selection: { - fields: S; - } & HookStrictSelect, AppPermissionDefaultPermissionSelect>; -}): Promise<{ - appPermissionDefaultPermission: InferSelectResult< - AppPermissionDefaultPermissionWithRelations, - S - > | null; -}>; -export async function fetchAppPermissionDefaultPermissionQuery(params: { - id: string; - selection: SelectionConfig; -}): Promise { - const args = buildSelectionArgs(params.selection); - return getClient() - .appPermissionDefaultPermission.findOne({ - id: params.id, - select: args.select, - }) - .unwrap(); -} -/** - * Join table linking permission defaults to individual permissions; recompute trigger rebuilds the defaults bitmask - * - * @example - * ```ts - * await prefetchAppPermissionDefaultPermissionQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } }); - * ``` - */ -export async function prefetchAppPermissionDefaultPermissionQuery< - S extends AppPermissionDefaultPermissionSelect, ->( - queryClient: QueryClient, - params: { - id: string; - selection: { - fields: S; - } & HookStrictSelect, AppPermissionDefaultPermissionSelect>; - } -): Promise; -export async function prefetchAppPermissionDefaultPermissionQuery( - queryClient: QueryClient, - params: { - id: string; - selection: SelectionConfig; - } -): Promise { - const args = buildSelectionArgs(params.selection); - await queryClient.prefetchQuery({ - queryKey: appPermissionDefaultPermissionKeys.detail(params.id), - queryFn: () => - getClient() - .appPermissionDefaultPermission.findOne({ - id: params.id, - select: args.select, - }) - .unwrap(), - }); -} diff --git a/sdk/constructive-react/src/admin/hooks/queries/useAppPermissionDefaultPermissionsQuery.ts b/sdk/constructive-react/src/admin/hooks/queries/useAppPermissionDefaultPermissionsQuery.ts deleted file mode 100644 index c83281765a..0000000000 --- a/sdk/constructive-react/src/admin/hooks/queries/useAppPermissionDefaultPermissionsQuery.ts +++ /dev/null @@ -1,194 +0,0 @@ -/** - * Join table linking permission defaults to individual permissions; recompute trigger rebuilds the defaults bitmask - * @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 { appPermissionDefaultPermissionKeys } from '../query-keys'; -import type { - AppPermissionDefaultPermissionSelect, - AppPermissionDefaultPermissionWithRelations, - AppPermissionDefaultPermissionFilter, - AppPermissionDefaultPermissionOrderBy, -} from '../../orm/input-types'; -import type { - FindManyArgs, - InferSelectResult, - ConnectionResult, - HookStrictSelect, -} from '../../orm/select-types'; -export type { - AppPermissionDefaultPermissionSelect, - AppPermissionDefaultPermissionWithRelations, - AppPermissionDefaultPermissionFilter, - AppPermissionDefaultPermissionOrderBy, -} from '../../orm/input-types'; -/** Query key factory - re-exported from query-keys.ts */ -export const appPermissionDefaultPermissionsQueryKey = appPermissionDefaultPermissionKeys.list; -/** - * Join table linking permission defaults to individual permissions; recompute trigger rebuilds the defaults bitmask - * - * @example - * ```tsx - * const { data, isLoading } = useAppPermissionDefaultPermissionsQuery({ - * selection: { - * fields: { id: true, name: true }, - * where: { name: { equalTo: "example" } }, - * orderBy: ['CREATED_AT_DESC'], - * first: 10, - * }, - * }); - * ``` - */ -export function useAppPermissionDefaultPermissionsQuery< - S extends AppPermissionDefaultPermissionSelect, - TData = { - appPermissionDefaultPermissions: ConnectionResult< - InferSelectResult - >; - }, ->( - params: { - selection: { - fields: S; - } & Omit< - ListSelectionConfig< - S, - AppPermissionDefaultPermissionFilter, - AppPermissionDefaultPermissionOrderBy - >, - 'fields' - > & - HookStrictSelect, AppPermissionDefaultPermissionSelect>; - } & Omit< - UseQueryOptions< - { - appPermissionDefaultPermissions: ConnectionResult< - InferSelectResult - >; - }, - Error, - TData - >, - 'queryKey' | 'queryFn' - > -): UseQueryResult; -export function useAppPermissionDefaultPermissionsQuery( - params: { - selection: ListSelectionConfig< - AppPermissionDefaultPermissionSelect, - AppPermissionDefaultPermissionFilter, - AppPermissionDefaultPermissionOrderBy - >; - } & Omit, 'queryKey' | 'queryFn'> -) { - const args = buildListSelectionArgs< - AppPermissionDefaultPermissionSelect, - AppPermissionDefaultPermissionFilter, - AppPermissionDefaultPermissionOrderBy - >(params.selection); - const { selection: _selection, ...queryOptions } = params ?? {}; - void _selection; - return useQuery({ - queryKey: appPermissionDefaultPermissionKeys.list(args), - queryFn: () => getClient().appPermissionDefaultPermission.findMany(args).unwrap(), - ...queryOptions, - }); -} -/** - * Join table linking permission defaults to individual permissions; recompute trigger rebuilds the defaults bitmask - * - * @example - * ```ts - * const data = await fetchAppPermissionDefaultPermissionsQuery({ - * selection: { - * fields: { id: true }, - * first: 10, - * }, - * }); - * ``` - */ -export async function fetchAppPermissionDefaultPermissionsQuery< - S extends AppPermissionDefaultPermissionSelect, ->(params: { - selection: { - fields: S; - } & Omit< - ListSelectionConfig< - S, - AppPermissionDefaultPermissionFilter, - AppPermissionDefaultPermissionOrderBy - >, - 'fields' - > & - HookStrictSelect, AppPermissionDefaultPermissionSelect>; -}): Promise<{ - appPermissionDefaultPermissions: ConnectionResult< - InferSelectResult - >; -}>; -export async function fetchAppPermissionDefaultPermissionsQuery(params: { - selection: ListSelectionConfig< - AppPermissionDefaultPermissionSelect, - AppPermissionDefaultPermissionFilter, - AppPermissionDefaultPermissionOrderBy - >; -}) { - const args = buildListSelectionArgs< - AppPermissionDefaultPermissionSelect, - AppPermissionDefaultPermissionFilter, - AppPermissionDefaultPermissionOrderBy - >(params.selection); - return getClient().appPermissionDefaultPermission.findMany(args).unwrap(); -} -/** - * Join table linking permission defaults to individual permissions; recompute trigger rebuilds the defaults bitmask - * - * @example - * ```ts - * await prefetchAppPermissionDefaultPermissionsQuery(queryClient, { selection: { fields: { id: true }, first: 10 } }); - * ``` - */ -export async function prefetchAppPermissionDefaultPermissionsQuery< - S extends AppPermissionDefaultPermissionSelect, ->( - queryClient: QueryClient, - params: { - selection: { - fields: S; - } & Omit< - ListSelectionConfig< - S, - AppPermissionDefaultPermissionFilter, - AppPermissionDefaultPermissionOrderBy - >, - 'fields' - > & - HookStrictSelect, AppPermissionDefaultPermissionSelect>; - } -): Promise; -export async function prefetchAppPermissionDefaultPermissionsQuery( - queryClient: QueryClient, - params: { - selection: ListSelectionConfig< - AppPermissionDefaultPermissionSelect, - AppPermissionDefaultPermissionFilter, - AppPermissionDefaultPermissionOrderBy - >; - } -): Promise { - const args = buildListSelectionArgs< - AppPermissionDefaultPermissionSelect, - AppPermissionDefaultPermissionFilter, - AppPermissionDefaultPermissionOrderBy - >(params.selection); - await queryClient.prefetchQuery({ - queryKey: appPermissionDefaultPermissionKeys.list(args), - queryFn: () => getClient().appPermissionDefaultPermission.findMany(args).unwrap(), - }); -} diff --git a/sdk/constructive-react/src/admin/hooks/queries/useAppPermissionDefaultQuery.ts b/sdk/constructive-react/src/admin/hooks/queries/useAppPermissionDefaultQuery.ts deleted file mode 100644 index d7c76c2a3a..0000000000 --- a/sdk/constructive-react/src/admin/hooks/queries/useAppPermissionDefaultQuery.ts +++ /dev/null @@ -1,144 +0,0 @@ -/** - * Stores the default permission bitmask assigned to new members upon joining - * @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 { appPermissionDefaultKeys } from '../query-keys'; -import type { - AppPermissionDefaultSelect, - AppPermissionDefaultWithRelations, -} from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { - AppPermissionDefaultSelect, - AppPermissionDefaultWithRelations, -} from '../../orm/input-types'; -/** Query key factory - re-exported from query-keys.ts */ -export const appPermissionDefaultQueryKey = appPermissionDefaultKeys.detail; -/** - * Stores the default permission bitmask assigned to new members upon joining - * - * @example - * ```tsx - * const { data, isLoading } = useAppPermissionDefaultQuery({ - * id: 'some-id', - * selection: { fields: { id: true, name: true } }, - * }); - * ``` - */ -export function useAppPermissionDefaultQuery< - S extends AppPermissionDefaultSelect, - TData = { - appPermissionDefault: InferSelectResult | null; - }, ->( - params: { - id: string; - selection: { - fields: S; - } & HookStrictSelect, AppPermissionDefaultSelect>; - } & Omit< - UseQueryOptions< - { - appPermissionDefault: InferSelectResult | null; - }, - Error, - TData - >, - 'queryKey' | 'queryFn' - > -): UseQueryResult; -export function useAppPermissionDefaultQuery( - params: { - id: string; - selection: SelectionConfig; - } & Omit, 'queryKey' | 'queryFn'> -) { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...queryOptions } = params ?? {}; - void _selection; - return useQuery({ - queryKey: appPermissionDefaultKeys.detail(params.id), - queryFn: () => - getClient() - .appPermissionDefault.findOne({ - id: params.id, - select: args.select, - }) - .unwrap(), - ...queryOptions, - }); -} -/** - * Stores the default permission bitmask assigned to new members upon joining - * - * @example - * ```ts - * const data = await fetchAppPermissionDefaultQuery({ - * id: 'some-id', - * selection: { fields: { id: true } }, - * }); - * ``` - */ -export async function fetchAppPermissionDefaultQuery(params: { - id: string; - selection: { - fields: S; - } & HookStrictSelect, AppPermissionDefaultSelect>; -}): Promise<{ - appPermissionDefault: InferSelectResult | null; -}>; -export async function fetchAppPermissionDefaultQuery(params: { - id: string; - selection: SelectionConfig; -}): Promise { - const args = buildSelectionArgs(params.selection); - return getClient() - .appPermissionDefault.findOne({ - id: params.id, - select: args.select, - }) - .unwrap(); -} -/** - * Stores the default permission bitmask assigned to new members upon joining - * - * @example - * ```ts - * await prefetchAppPermissionDefaultQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } }); - * ``` - */ -export async function prefetchAppPermissionDefaultQuery( - queryClient: QueryClient, - params: { - id: string; - selection: { - fields: S; - } & HookStrictSelect, AppPermissionDefaultSelect>; - } -): Promise; -export async function prefetchAppPermissionDefaultQuery( - queryClient: QueryClient, - params: { - id: string; - selection: SelectionConfig; - } -): Promise { - const args = buildSelectionArgs(params.selection); - await queryClient.prefetchQuery({ - queryKey: appPermissionDefaultKeys.detail(params.id), - queryFn: () => - getClient() - .appPermissionDefault.findOne({ - id: params.id, - select: args.select, - }) - .unwrap(), - }); -} diff --git a/sdk/constructive-react/src/admin/hooks/queries/useAppPermissionDefaultsQuery.ts b/sdk/constructive-react/src/admin/hooks/queries/useAppPermissionDefaultsQuery.ts deleted file mode 100644 index 44cdda731c..0000000000 --- a/sdk/constructive-react/src/admin/hooks/queries/useAppPermissionDefaultsQuery.ts +++ /dev/null @@ -1,178 +0,0 @@ -/** - * Stores the default permission bitmask assigned to new members upon joining - * @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 { appPermissionDefaultKeys } from '../query-keys'; -import type { - AppPermissionDefaultSelect, - AppPermissionDefaultWithRelations, - AppPermissionDefaultFilter, - AppPermissionDefaultOrderBy, -} from '../../orm/input-types'; -import type { - FindManyArgs, - InferSelectResult, - ConnectionResult, - HookStrictSelect, -} from '../../orm/select-types'; -export type { - AppPermissionDefaultSelect, - AppPermissionDefaultWithRelations, - AppPermissionDefaultFilter, - AppPermissionDefaultOrderBy, -} from '../../orm/input-types'; -/** Query key factory - re-exported from query-keys.ts */ -export const appPermissionDefaultsQueryKey = appPermissionDefaultKeys.list; -/** - * Stores the default permission bitmask assigned to new members upon joining - * - * @example - * ```tsx - * const { data, isLoading } = useAppPermissionDefaultsQuery({ - * selection: { - * fields: { id: true, name: true }, - * where: { name: { equalTo: "example" } }, - * orderBy: ['CREATED_AT_DESC'], - * first: 10, - * }, - * }); - * ``` - */ -export function useAppPermissionDefaultsQuery< - S extends AppPermissionDefaultSelect, - TData = { - appPermissionDefaults: ConnectionResult< - InferSelectResult - >; - }, ->( - params: { - selection: { - fields: S; - } & Omit< - ListSelectionConfig, - 'fields' - > & - HookStrictSelect, AppPermissionDefaultSelect>; - } & Omit< - UseQueryOptions< - { - appPermissionDefaults: ConnectionResult< - InferSelectResult - >; - }, - Error, - TData - >, - 'queryKey' | 'queryFn' - > -): UseQueryResult; -export function useAppPermissionDefaultsQuery( - params: { - selection: ListSelectionConfig< - AppPermissionDefaultSelect, - AppPermissionDefaultFilter, - AppPermissionDefaultOrderBy - >; - } & Omit, 'queryKey' | 'queryFn'> -) { - const args = buildListSelectionArgs< - AppPermissionDefaultSelect, - AppPermissionDefaultFilter, - AppPermissionDefaultOrderBy - >(params.selection); - const { selection: _selection, ...queryOptions } = params ?? {}; - void _selection; - return useQuery({ - queryKey: appPermissionDefaultKeys.list(args), - queryFn: () => getClient().appPermissionDefault.findMany(args).unwrap(), - ...queryOptions, - }); -} -/** - * Stores the default permission bitmask assigned to new members upon joining - * - * @example - * ```ts - * const data = await fetchAppPermissionDefaultsQuery({ - * selection: { - * fields: { id: true }, - * first: 10, - * }, - * }); - * ``` - */ -export async function fetchAppPermissionDefaultsQuery< - S extends AppPermissionDefaultSelect, ->(params: { - selection: { - fields: S; - } & Omit< - ListSelectionConfig, - 'fields' - > & - HookStrictSelect, AppPermissionDefaultSelect>; -}): Promise<{ - appPermissionDefaults: ConnectionResult>; -}>; -export async function fetchAppPermissionDefaultsQuery(params: { - selection: ListSelectionConfig< - AppPermissionDefaultSelect, - AppPermissionDefaultFilter, - AppPermissionDefaultOrderBy - >; -}) { - const args = buildListSelectionArgs< - AppPermissionDefaultSelect, - AppPermissionDefaultFilter, - AppPermissionDefaultOrderBy - >(params.selection); - return getClient().appPermissionDefault.findMany(args).unwrap(); -} -/** - * Stores the default permission bitmask assigned to new members upon joining - * - * @example - * ```ts - * await prefetchAppPermissionDefaultsQuery(queryClient, { selection: { fields: { id: true }, first: 10 } }); - * ``` - */ -export async function prefetchAppPermissionDefaultsQuery( - queryClient: QueryClient, - params: { - selection: { - fields: S; - } & Omit< - ListSelectionConfig, - 'fields' - > & - HookStrictSelect, AppPermissionDefaultSelect>; - } -): Promise; -export async function prefetchAppPermissionDefaultsQuery( - queryClient: QueryClient, - params: { - selection: ListSelectionConfig< - AppPermissionDefaultSelect, - AppPermissionDefaultFilter, - AppPermissionDefaultOrderBy - >; - } -): Promise { - const args = buildListSelectionArgs< - AppPermissionDefaultSelect, - AppPermissionDefaultFilter, - AppPermissionDefaultOrderBy - >(params.selection); - await queryClient.prefetchQuery({ - queryKey: appPermissionDefaultKeys.list(args), - queryFn: () => getClient().appPermissionDefault.findMany(args).unwrap(), - }); -} diff --git a/sdk/constructive-react/src/admin/hooks/queries/useAppPermissionQuery.ts b/sdk/constructive-react/src/admin/hooks/queries/useAppPermissionQuery.ts deleted file mode 100644 index b89353ec63..0000000000 --- a/sdk/constructive-react/src/admin/hooks/queries/useAppPermissionQuery.ts +++ /dev/null @@ -1,138 +0,0 @@ -/** - * Defines available permissions as named bits within a bitmask, used by the RBAC system for access control - * @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 { appPermissionKeys } from '../query-keys'; -import type { AppPermissionSelect, AppPermissionWithRelations } from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { AppPermissionSelect, AppPermissionWithRelations } from '../../orm/input-types'; -/** Query key factory - re-exported from query-keys.ts */ -export const appPermissionQueryKey = appPermissionKeys.detail; -/** - * Defines available permissions as named bits within a bitmask, used by the RBAC system for access control - * - * @example - * ```tsx - * const { data, isLoading } = useAppPermissionQuery({ - * id: 'some-id', - * selection: { fields: { id: true, name: true } }, - * }); - * ``` - */ -export function useAppPermissionQuery< - S extends AppPermissionSelect, - TData = { - appPermission: InferSelectResult | null; - }, ->( - params: { - id: string; - selection: { - fields: S; - } & HookStrictSelect, AppPermissionSelect>; - } & Omit< - UseQueryOptions< - { - appPermission: InferSelectResult | null; - }, - Error, - TData - >, - 'queryKey' | 'queryFn' - > -): UseQueryResult; -export function useAppPermissionQuery( - params: { - id: string; - selection: SelectionConfig; - } & Omit, 'queryKey' | 'queryFn'> -) { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...queryOptions } = params ?? {}; - void _selection; - return useQuery({ - queryKey: appPermissionKeys.detail(params.id), - queryFn: () => - getClient() - .appPermission.findOne({ - id: params.id, - select: args.select, - }) - .unwrap(), - ...queryOptions, - }); -} -/** - * Defines available permissions as named bits within a bitmask, used by the RBAC system for access control - * - * @example - * ```ts - * const data = await fetchAppPermissionQuery({ - * id: 'some-id', - * selection: { fields: { id: true } }, - * }); - * ``` - */ -export async function fetchAppPermissionQuery(params: { - id: string; - selection: { - fields: S; - } & HookStrictSelect, AppPermissionSelect>; -}): Promise<{ - appPermission: InferSelectResult | null; -}>; -export async function fetchAppPermissionQuery(params: { - id: string; - selection: SelectionConfig; -}): Promise { - const args = buildSelectionArgs(params.selection); - return getClient() - .appPermission.findOne({ - id: params.id, - select: args.select, - }) - .unwrap(); -} -/** - * Defines available permissions as named bits within a bitmask, used by the RBAC system for access control - * - * @example - * ```ts - * await prefetchAppPermissionQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } }); - * ``` - */ -export async function prefetchAppPermissionQuery( - queryClient: QueryClient, - params: { - id: string; - selection: { - fields: S; - } & HookStrictSelect, AppPermissionSelect>; - } -): Promise; -export async function prefetchAppPermissionQuery( - queryClient: QueryClient, - params: { - id: string; - selection: SelectionConfig; - } -): Promise { - const args = buildSelectionArgs(params.selection); - await queryClient.prefetchQuery({ - queryKey: appPermissionKeys.detail(params.id), - queryFn: () => - getClient() - .appPermission.findOne({ - id: params.id, - select: args.select, - }) - .unwrap(), - }); -} diff --git a/sdk/constructive-react/src/admin/hooks/queries/useAppPermissionsGetByMaskQuery.ts b/sdk/constructive-react/src/admin/hooks/queries/useAppPermissionsGetByMaskQuery.ts deleted file mode 100644 index f735051548..0000000000 --- a/sdk/constructive-react/src/admin/hooks/queries/useAppPermissionsGetByMaskQuery.ts +++ /dev/null @@ -1,108 +0,0 @@ -/** - * Custom query hook for appPermissionsGetByMask - * @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 { customQueryKeys } from '../query-keys'; -import type { AppPermissionsGetByMaskVariables } from '../../orm/query'; -import type { AppPermissionConnection } from '../../orm/input-types'; -export type { AppPermissionsGetByMaskVariables } from '../../orm/query'; -/** Query key factory - re-exported from query-keys.ts */ -export const appPermissionsGetByMaskQueryKey = customQueryKeys.appPermissionsGetByMask; -/** - * Reads and enables pagination through a set of `AppPermission`. - * - * @example - * ```tsx - * const { data, isLoading } = useAppPermissionsGetByMaskQuery({ variables: { after, first, mask, offset } }); - * - * if (data?.appPermissionsGetByMask) { - * console.log(data.appPermissionsGetByMask); - * } - * ``` - */ -export function useAppPermissionsGetByMaskQuery< - TData = { - appPermissionsGetByMask: AppPermissionConnection | null; - }, ->( - params?: { - variables?: AppPermissionsGetByMaskVariables; - } & Omit< - UseQueryOptions< - { - appPermissionsGetByMask: AppPermissionConnection | null; - }, - Error, - TData - >, - 'queryKey' | 'queryFn' - > -): UseQueryResult; -export function useAppPermissionsGetByMaskQuery< - TData = { - appPermissionsGetByMask: AppPermissionConnection | null; - }, ->( - params?: { - variables?: AppPermissionsGetByMaskVariables; - } & Omit< - UseQueryOptions< - { - appPermissionsGetByMask: AppPermissionConnection | null; - }, - Error, - TData - >, - 'queryKey' | 'queryFn' - > -): UseQueryResult { - const variables = params?.variables ?? {}; - const { variables: _variables, ...queryOptions } = params ?? {}; - void _variables; - return useQuery({ - queryKey: appPermissionsGetByMaskQueryKey(variables), - queryFn: () => getClient().query.appPermissionsGetByMask(variables).unwrap(), - ...queryOptions, - }); -} -/** - * Fetch appPermissionsGetByMask without React hooks - * - * @example - * ```ts - * const data = await fetchAppPermissionsGetByMaskQuery({ variables: { after, first, mask, offset } }); - * ``` - */ -export async function fetchAppPermissionsGetByMaskQuery(params?: { - variables?: AppPermissionsGetByMaskVariables; -}) { - const variables = params?.variables ?? {}; - return getClient().query.appPermissionsGetByMask(variables).unwrap(); -} -/** - * Prefetch appPermissionsGetByMask for SSR or cache warming - * - * @example - * ```ts - * await prefetchAppPermissionsGetByMaskQuery(queryClient, { variables: { after, first, mask, offset } }); - * ``` - */ -export async function prefetchAppPermissionsGetByMaskQuery( - queryClient: QueryClient, - params?: { - variables?: AppPermissionsGetByMaskVariables; - } -): Promise { - const variables = params?.variables ?? {}; - await queryClient.prefetchQuery({ - queryKey: appPermissionsGetByMaskQueryKey(variables), - queryFn: () => getClient().query.appPermissionsGetByMask(variables).unwrap(), - }); -} diff --git a/sdk/constructive-react/src/admin/hooks/queries/useAppPermissionsGetMaskByNamesQuery.ts b/sdk/constructive-react/src/admin/hooks/queries/useAppPermissionsGetMaskByNamesQuery.ts deleted file mode 100644 index cbfe1fad8f..0000000000 --- a/sdk/constructive-react/src/admin/hooks/queries/useAppPermissionsGetMaskByNamesQuery.ts +++ /dev/null @@ -1,107 +0,0 @@ -/** - * Custom query hook for appPermissionsGetMaskByNames - * @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 { customQueryKeys } from '../query-keys'; -import type { AppPermissionsGetMaskByNamesVariables } from '../../orm/query'; -export type { AppPermissionsGetMaskByNamesVariables } from '../../orm/query'; -/** Query key factory - re-exported from query-keys.ts */ -export const appPermissionsGetMaskByNamesQueryKey = customQueryKeys.appPermissionsGetMaskByNames; -/** - * Query hook for appPermissionsGetMaskByNames - * - * @example - * ```tsx - * const { data, isLoading } = useAppPermissionsGetMaskByNamesQuery({ variables: { names } }); - * - * if (data?.appPermissionsGetMaskByNames) { - * console.log(data.appPermissionsGetMaskByNames); - * } - * ``` - */ -export function useAppPermissionsGetMaskByNamesQuery< - TData = { - appPermissionsGetMaskByNames: string | null; - }, ->( - params?: { - variables?: AppPermissionsGetMaskByNamesVariables; - } & Omit< - UseQueryOptions< - { - appPermissionsGetMaskByNames: string | null; - }, - Error, - TData - >, - 'queryKey' | 'queryFn' - > -): UseQueryResult; -export function useAppPermissionsGetMaskByNamesQuery< - TData = { - appPermissionsGetMaskByNames: string | null; - }, ->( - params?: { - variables?: AppPermissionsGetMaskByNamesVariables; - } & Omit< - UseQueryOptions< - { - appPermissionsGetMaskByNames: string | null; - }, - Error, - TData - >, - 'queryKey' | 'queryFn' - > -): UseQueryResult { - const variables = params?.variables ?? {}; - const { variables: _variables, ...queryOptions } = params ?? {}; - void _variables; - return useQuery({ - queryKey: appPermissionsGetMaskByNamesQueryKey(variables), - queryFn: () => getClient().query.appPermissionsGetMaskByNames(variables).unwrap(), - ...queryOptions, - }); -} -/** - * Fetch appPermissionsGetMaskByNames without React hooks - * - * @example - * ```ts - * const data = await fetchAppPermissionsGetMaskByNamesQuery({ variables: { names } }); - * ``` - */ -export async function fetchAppPermissionsGetMaskByNamesQuery(params?: { - variables?: AppPermissionsGetMaskByNamesVariables; -}) { - const variables = params?.variables ?? {}; - return getClient().query.appPermissionsGetMaskByNames(variables).unwrap(); -} -/** - * Prefetch appPermissionsGetMaskByNames for SSR or cache warming - * - * @example - * ```ts - * await prefetchAppPermissionsGetMaskByNamesQuery(queryClient, { variables: { names } }); - * ``` - */ -export async function prefetchAppPermissionsGetMaskByNamesQuery( - queryClient: QueryClient, - params?: { - variables?: AppPermissionsGetMaskByNamesVariables; - } -): Promise { - const variables = params?.variables ?? {}; - await queryClient.prefetchQuery({ - queryKey: appPermissionsGetMaskByNamesQueryKey(variables), - queryFn: () => getClient().query.appPermissionsGetMaskByNames(variables).unwrap(), - }); -} diff --git a/sdk/constructive-react/src/admin/hooks/queries/useAppPermissionsGetMaskQuery.ts b/sdk/constructive-react/src/admin/hooks/queries/useAppPermissionsGetMaskQuery.ts deleted file mode 100644 index b1e3289da9..0000000000 --- a/sdk/constructive-react/src/admin/hooks/queries/useAppPermissionsGetMaskQuery.ts +++ /dev/null @@ -1,107 +0,0 @@ -/** - * Custom query hook for appPermissionsGetMask - * @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 { customQueryKeys } from '../query-keys'; -import type { AppPermissionsGetMaskVariables } from '../../orm/query'; -export type { AppPermissionsGetMaskVariables } from '../../orm/query'; -/** Query key factory - re-exported from query-keys.ts */ -export const appPermissionsGetMaskQueryKey = customQueryKeys.appPermissionsGetMask; -/** - * Query hook for appPermissionsGetMask - * - * @example - * ```tsx - * const { data, isLoading } = useAppPermissionsGetMaskQuery({ variables: { ids } }); - * - * if (data?.appPermissionsGetMask) { - * console.log(data.appPermissionsGetMask); - * } - * ``` - */ -export function useAppPermissionsGetMaskQuery< - TData = { - appPermissionsGetMask: string | null; - }, ->( - params?: { - variables?: AppPermissionsGetMaskVariables; - } & Omit< - UseQueryOptions< - { - appPermissionsGetMask: string | null; - }, - Error, - TData - >, - 'queryKey' | 'queryFn' - > -): UseQueryResult; -export function useAppPermissionsGetMaskQuery< - TData = { - appPermissionsGetMask: string | null; - }, ->( - params?: { - variables?: AppPermissionsGetMaskVariables; - } & Omit< - UseQueryOptions< - { - appPermissionsGetMask: string | null; - }, - Error, - TData - >, - 'queryKey' | 'queryFn' - > -): UseQueryResult { - const variables = params?.variables ?? {}; - const { variables: _variables, ...queryOptions } = params ?? {}; - void _variables; - return useQuery({ - queryKey: appPermissionsGetMaskQueryKey(variables), - queryFn: () => getClient().query.appPermissionsGetMask(variables).unwrap(), - ...queryOptions, - }); -} -/** - * Fetch appPermissionsGetMask without React hooks - * - * @example - * ```ts - * const data = await fetchAppPermissionsGetMaskQuery({ variables: { ids } }); - * ``` - */ -export async function fetchAppPermissionsGetMaskQuery(params?: { - variables?: AppPermissionsGetMaskVariables; -}) { - const variables = params?.variables ?? {}; - return getClient().query.appPermissionsGetMask(variables).unwrap(); -} -/** - * Prefetch appPermissionsGetMask for SSR or cache warming - * - * @example - * ```ts - * await prefetchAppPermissionsGetMaskQuery(queryClient, { variables: { ids } }); - * ``` - */ -export async function prefetchAppPermissionsGetMaskQuery( - queryClient: QueryClient, - params?: { - variables?: AppPermissionsGetMaskVariables; - } -): Promise { - const variables = params?.variables ?? {}; - await queryClient.prefetchQuery({ - queryKey: appPermissionsGetMaskQueryKey(variables), - queryFn: () => getClient().query.appPermissionsGetMask(variables).unwrap(), - }); -} diff --git a/sdk/constructive-react/src/admin/hooks/queries/useAppPermissionsGetPaddedMaskQuery.ts b/sdk/constructive-react/src/admin/hooks/queries/useAppPermissionsGetPaddedMaskQuery.ts deleted file mode 100644 index cb504f8105..0000000000 --- a/sdk/constructive-react/src/admin/hooks/queries/useAppPermissionsGetPaddedMaskQuery.ts +++ /dev/null @@ -1,107 +0,0 @@ -/** - * Custom query hook for appPermissionsGetPaddedMask - * @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 { customQueryKeys } from '../query-keys'; -import type { AppPermissionsGetPaddedMaskVariables } from '../../orm/query'; -export type { AppPermissionsGetPaddedMaskVariables } from '../../orm/query'; -/** Query key factory - re-exported from query-keys.ts */ -export const appPermissionsGetPaddedMaskQueryKey = customQueryKeys.appPermissionsGetPaddedMask; -/** - * Query hook for appPermissionsGetPaddedMask - * - * @example - * ```tsx - * const { data, isLoading } = useAppPermissionsGetPaddedMaskQuery({ variables: { mask } }); - * - * if (data?.appPermissionsGetPaddedMask) { - * console.log(data.appPermissionsGetPaddedMask); - * } - * ``` - */ -export function useAppPermissionsGetPaddedMaskQuery< - TData = { - appPermissionsGetPaddedMask: string | null; - }, ->( - params?: { - variables?: AppPermissionsGetPaddedMaskVariables; - } & Omit< - UseQueryOptions< - { - appPermissionsGetPaddedMask: string | null; - }, - Error, - TData - >, - 'queryKey' | 'queryFn' - > -): UseQueryResult; -export function useAppPermissionsGetPaddedMaskQuery< - TData = { - appPermissionsGetPaddedMask: string | null; - }, ->( - params?: { - variables?: AppPermissionsGetPaddedMaskVariables; - } & Omit< - UseQueryOptions< - { - appPermissionsGetPaddedMask: string | null; - }, - Error, - TData - >, - 'queryKey' | 'queryFn' - > -): UseQueryResult { - const variables = params?.variables ?? {}; - const { variables: _variables, ...queryOptions } = params ?? {}; - void _variables; - return useQuery({ - queryKey: appPermissionsGetPaddedMaskQueryKey(variables), - queryFn: () => getClient().query.appPermissionsGetPaddedMask(variables).unwrap(), - ...queryOptions, - }); -} -/** - * Fetch appPermissionsGetPaddedMask without React hooks - * - * @example - * ```ts - * const data = await fetchAppPermissionsGetPaddedMaskQuery({ variables: { mask } }); - * ``` - */ -export async function fetchAppPermissionsGetPaddedMaskQuery(params?: { - variables?: AppPermissionsGetPaddedMaskVariables; -}) { - const variables = params?.variables ?? {}; - return getClient().query.appPermissionsGetPaddedMask(variables).unwrap(); -} -/** - * Prefetch appPermissionsGetPaddedMask for SSR or cache warming - * - * @example - * ```ts - * await prefetchAppPermissionsGetPaddedMaskQuery(queryClient, { variables: { mask } }); - * ``` - */ -export async function prefetchAppPermissionsGetPaddedMaskQuery( - queryClient: QueryClient, - params?: { - variables?: AppPermissionsGetPaddedMaskVariables; - } -): Promise { - const variables = params?.variables ?? {}; - await queryClient.prefetchQuery({ - queryKey: appPermissionsGetPaddedMaskQueryKey(variables), - queryFn: () => getClient().query.appPermissionsGetPaddedMask(variables).unwrap(), - }); -} diff --git a/sdk/constructive-react/src/admin/hooks/queries/useAppPermissionsQuery.ts b/sdk/constructive-react/src/admin/hooks/queries/useAppPermissionsQuery.ts deleted file mode 100644 index 67d25dcdce..0000000000 --- a/sdk/constructive-react/src/admin/hooks/queries/useAppPermissionsQuery.ts +++ /dev/null @@ -1,151 +0,0 @@ -/** - * Defines available permissions as named bits within a bitmask, used by the RBAC system for access control - * @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 { appPermissionKeys } from '../query-keys'; -import type { - AppPermissionSelect, - AppPermissionWithRelations, - AppPermissionFilter, - AppPermissionOrderBy, -} from '../../orm/input-types'; -import type { - FindManyArgs, - InferSelectResult, - ConnectionResult, - HookStrictSelect, -} from '../../orm/select-types'; -export type { - AppPermissionSelect, - AppPermissionWithRelations, - AppPermissionFilter, - AppPermissionOrderBy, -} from '../../orm/input-types'; -/** Query key factory - re-exported from query-keys.ts */ -export const appPermissionsQueryKey = appPermissionKeys.list; -/** - * Defines available permissions as named bits within a bitmask, used by the RBAC system for access control - * - * @example - * ```tsx - * const { data, isLoading } = useAppPermissionsQuery({ - * selection: { - * fields: { id: true, name: true }, - * where: { name: { equalTo: "example" } }, - * orderBy: ['CREATED_AT_DESC'], - * first: 10, - * }, - * }); - * ``` - */ -export function useAppPermissionsQuery< - S extends AppPermissionSelect, - TData = { - appPermissions: ConnectionResult>; - }, ->( - params: { - selection: { - fields: S; - } & Omit, 'fields'> & - HookStrictSelect, AppPermissionSelect>; - } & Omit< - UseQueryOptions< - { - appPermissions: ConnectionResult>; - }, - Error, - TData - >, - 'queryKey' | 'queryFn' - > -): UseQueryResult; -export function useAppPermissionsQuery( - params: { - selection: ListSelectionConfig; - } & Omit, 'queryKey' | 'queryFn'> -) { - const args = buildListSelectionArgs< - AppPermissionSelect, - AppPermissionFilter, - AppPermissionOrderBy - >(params.selection); - const { selection: _selection, ...queryOptions } = params ?? {}; - void _selection; - return useQuery({ - queryKey: appPermissionKeys.list(args), - queryFn: () => getClient().appPermission.findMany(args).unwrap(), - ...queryOptions, - }); -} -/** - * Defines available permissions as named bits within a bitmask, used by the RBAC system for access control - * - * @example - * ```ts - * const data = await fetchAppPermissionsQuery({ - * selection: { - * fields: { id: true }, - * first: 10, - * }, - * }); - * ``` - */ -export async function fetchAppPermissionsQuery(params: { - selection: { - fields: S; - } & Omit, 'fields'> & - HookStrictSelect, AppPermissionSelect>; -}): Promise<{ - appPermissions: ConnectionResult>; -}>; -export async function fetchAppPermissionsQuery(params: { - selection: ListSelectionConfig; -}) { - const args = buildListSelectionArgs< - AppPermissionSelect, - AppPermissionFilter, - AppPermissionOrderBy - >(params.selection); - return getClient().appPermission.findMany(args).unwrap(); -} -/** - * Defines available permissions as named bits within a bitmask, used by the RBAC system for access control - * - * @example - * ```ts - * await prefetchAppPermissionsQuery(queryClient, { selection: { fields: { id: true }, first: 10 } }); - * ``` - */ -export async function prefetchAppPermissionsQuery( - queryClient: QueryClient, - params: { - selection: { - fields: S; - } & Omit, 'fields'> & - HookStrictSelect, AppPermissionSelect>; - } -): Promise; -export async function prefetchAppPermissionsQuery( - queryClient: QueryClient, - params: { - selection: ListSelectionConfig; - } -): Promise { - const args = buildListSelectionArgs< - AppPermissionSelect, - AppPermissionFilter, - AppPermissionOrderBy - >(params.selection); - await queryClient.prefetchQuery({ - queryKey: appPermissionKeys.list(args), - queryFn: () => getClient().appPermission.findMany(args).unwrap(), - }); -} diff --git a/sdk/constructive-react/src/admin/hooks/queries/useOrgCapabilityDefaultCapabilitiesQuery.ts b/sdk/constructive-react/src/admin/hooks/queries/useOrgCapabilityDefaultCapabilitiesQuery.ts new file mode 100644 index 0000000000..34e77b894e --- /dev/null +++ b/sdk/constructive-react/src/admin/hooks/queries/useOrgCapabilityDefaultCapabilitiesQuery.ts @@ -0,0 +1,194 @@ +/** + * Join table linking capability defaults to individual capabilities; recompute trigger rebuilds the defaults bitmask + * @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 { orgCapabilityDefaultCapabilityKeys } from '../query-keys'; +import type { + OrgCapabilityDefaultCapabilitySelect, + OrgCapabilityDefaultCapabilityWithRelations, + OrgCapabilityDefaultCapabilityFilter, + OrgCapabilityDefaultCapabilityOrderBy, +} from '../../orm/input-types'; +import type { + FindManyArgs, + InferSelectResult, + ConnectionResult, + HookStrictSelect, +} from '../../orm/select-types'; +export type { + OrgCapabilityDefaultCapabilitySelect, + OrgCapabilityDefaultCapabilityWithRelations, + OrgCapabilityDefaultCapabilityFilter, + OrgCapabilityDefaultCapabilityOrderBy, +} from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const orgCapabilityDefaultCapabilitiesQueryKey = orgCapabilityDefaultCapabilityKeys.list; +/** + * Join table linking capability defaults to individual capabilities; recompute trigger rebuilds the defaults bitmask + * + * @example + * ```tsx + * const { data, isLoading } = useOrgCapabilityDefaultCapabilitiesQuery({ + * selection: { + * fields: { id: true, name: true }, + * where: { name: { equalTo: "example" } }, + * orderBy: ['CREATED_AT_DESC'], + * first: 10, + * }, + * }); + * ``` + */ +export function useOrgCapabilityDefaultCapabilitiesQuery< + S extends OrgCapabilityDefaultCapabilitySelect, + TData = { + orgCapabilityDefaultCapabilities: ConnectionResult< + InferSelectResult + >; + }, +>( + params: { + selection: { + fields: S; + } & Omit< + ListSelectionConfig< + S, + OrgCapabilityDefaultCapabilityFilter, + OrgCapabilityDefaultCapabilityOrderBy + >, + 'fields' + > & + HookStrictSelect, OrgCapabilityDefaultCapabilitySelect>; + } & Omit< + UseQueryOptions< + { + orgCapabilityDefaultCapabilities: ConnectionResult< + InferSelectResult + >; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useOrgCapabilityDefaultCapabilitiesQuery( + params: { + selection: ListSelectionConfig< + OrgCapabilityDefaultCapabilitySelect, + OrgCapabilityDefaultCapabilityFilter, + OrgCapabilityDefaultCapabilityOrderBy + >; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildListSelectionArgs< + OrgCapabilityDefaultCapabilitySelect, + OrgCapabilityDefaultCapabilityFilter, + OrgCapabilityDefaultCapabilityOrderBy + >(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: orgCapabilityDefaultCapabilityKeys.list(args), + queryFn: () => getClient().orgCapabilityDefaultCapability.findMany(args).unwrap(), + ...queryOptions, + }); +} +/** + * Join table linking capability defaults to individual capabilities; recompute trigger rebuilds the defaults bitmask + * + * @example + * ```ts + * const data = await fetchOrgCapabilityDefaultCapabilitiesQuery({ + * selection: { + * fields: { id: true }, + * first: 10, + * }, + * }); + * ``` + */ +export async function fetchOrgCapabilityDefaultCapabilitiesQuery< + S extends OrgCapabilityDefaultCapabilitySelect, +>(params: { + selection: { + fields: S; + } & Omit< + ListSelectionConfig< + S, + OrgCapabilityDefaultCapabilityFilter, + OrgCapabilityDefaultCapabilityOrderBy + >, + 'fields' + > & + HookStrictSelect, OrgCapabilityDefaultCapabilitySelect>; +}): Promise<{ + orgCapabilityDefaultCapabilities: ConnectionResult< + InferSelectResult + >; +}>; +export async function fetchOrgCapabilityDefaultCapabilitiesQuery(params: { + selection: ListSelectionConfig< + OrgCapabilityDefaultCapabilitySelect, + OrgCapabilityDefaultCapabilityFilter, + OrgCapabilityDefaultCapabilityOrderBy + >; +}) { + const args = buildListSelectionArgs< + OrgCapabilityDefaultCapabilitySelect, + OrgCapabilityDefaultCapabilityFilter, + OrgCapabilityDefaultCapabilityOrderBy + >(params.selection); + return getClient().orgCapabilityDefaultCapability.findMany(args).unwrap(); +} +/** + * Join table linking capability defaults to individual capabilities; recompute trigger rebuilds the defaults bitmask + * + * @example + * ```ts + * await prefetchOrgCapabilityDefaultCapabilitiesQuery(queryClient, { selection: { fields: { id: true }, first: 10 } }); + * ``` + */ +export async function prefetchOrgCapabilityDefaultCapabilitiesQuery< + S extends OrgCapabilityDefaultCapabilitySelect, +>( + queryClient: QueryClient, + params: { + selection: { + fields: S; + } & Omit< + ListSelectionConfig< + S, + OrgCapabilityDefaultCapabilityFilter, + OrgCapabilityDefaultCapabilityOrderBy + >, + 'fields' + > & + HookStrictSelect, OrgCapabilityDefaultCapabilitySelect>; + } +): Promise; +export async function prefetchOrgCapabilityDefaultCapabilitiesQuery( + queryClient: QueryClient, + params: { + selection: ListSelectionConfig< + OrgCapabilityDefaultCapabilitySelect, + OrgCapabilityDefaultCapabilityFilter, + OrgCapabilityDefaultCapabilityOrderBy + >; + } +): Promise { + const args = buildListSelectionArgs< + OrgCapabilityDefaultCapabilitySelect, + OrgCapabilityDefaultCapabilityFilter, + OrgCapabilityDefaultCapabilityOrderBy + >(params.selection); + await queryClient.prefetchQuery({ + queryKey: orgCapabilityDefaultCapabilityKeys.list(args), + queryFn: () => getClient().orgCapabilityDefaultCapability.findMany(args).unwrap(), + }); +} diff --git a/sdk/constructive-react/src/admin/hooks/queries/useOrgCapabilityDefaultCapabilityQuery.ts b/sdk/constructive-react/src/admin/hooks/queries/useOrgCapabilityDefaultCapabilityQuery.ts new file mode 100644 index 0000000000..15305aebdd --- /dev/null +++ b/sdk/constructive-react/src/admin/hooks/queries/useOrgCapabilityDefaultCapabilityQuery.ts @@ -0,0 +1,157 @@ +/** + * Join table linking capability defaults to individual capabilities; recompute trigger rebuilds the defaults bitmask + * @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 { orgCapabilityDefaultCapabilityKeys } from '../query-keys'; +import type { + OrgCapabilityDefaultCapabilitySelect, + OrgCapabilityDefaultCapabilityWithRelations, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + OrgCapabilityDefaultCapabilitySelect, + OrgCapabilityDefaultCapabilityWithRelations, +} from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const orgCapabilityDefaultCapabilityQueryKey = orgCapabilityDefaultCapabilityKeys.detail; +/** + * Join table linking capability defaults to individual capabilities; recompute trigger rebuilds the defaults bitmask + * + * @example + * ```tsx + * const { data, isLoading } = useOrgCapabilityDefaultCapabilityQuery({ + * id: 'some-id', + * selection: { fields: { id: true, name: true } }, + * }); + * ``` + */ +export function useOrgCapabilityDefaultCapabilityQuery< + S extends OrgCapabilityDefaultCapabilitySelect, + TData = { + orgCapabilityDefaultCapability: InferSelectResult< + OrgCapabilityDefaultCapabilityWithRelations, + S + > | null; + }, +>( + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, OrgCapabilityDefaultCapabilitySelect>; + } & Omit< + UseQueryOptions< + { + orgCapabilityDefaultCapability: InferSelectResult< + OrgCapabilityDefaultCapabilityWithRelations, + S + > | null; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useOrgCapabilityDefaultCapabilityQuery( + params: { + id: string; + selection: SelectionConfig; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: orgCapabilityDefaultCapabilityKeys.detail(params.id), + queryFn: () => + getClient() + .orgCapabilityDefaultCapability.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + ...queryOptions, + }); +} +/** + * Join table linking capability defaults to individual capabilities; recompute trigger rebuilds the defaults bitmask + * + * @example + * ```ts + * const data = await fetchOrgCapabilityDefaultCapabilityQuery({ + * id: 'some-id', + * selection: { fields: { id: true } }, + * }); + * ``` + */ +export async function fetchOrgCapabilityDefaultCapabilityQuery< + S extends OrgCapabilityDefaultCapabilitySelect, +>(params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, OrgCapabilityDefaultCapabilitySelect>; +}): Promise<{ + orgCapabilityDefaultCapability: InferSelectResult< + OrgCapabilityDefaultCapabilityWithRelations, + S + > | null; +}>; +export async function fetchOrgCapabilityDefaultCapabilityQuery(params: { + id: string; + selection: SelectionConfig; +}): Promise { + const args = buildSelectionArgs(params.selection); + return getClient() + .orgCapabilityDefaultCapability.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(); +} +/** + * Join table linking capability defaults to individual capabilities; recompute trigger rebuilds the defaults bitmask + * + * @example + * ```ts + * await prefetchOrgCapabilityDefaultCapabilityQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } }); + * ``` + */ +export async function prefetchOrgCapabilityDefaultCapabilityQuery< + S extends OrgCapabilityDefaultCapabilitySelect, +>( + queryClient: QueryClient, + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, OrgCapabilityDefaultCapabilitySelect>; + } +): Promise; +export async function prefetchOrgCapabilityDefaultCapabilityQuery( + queryClient: QueryClient, + params: { + id: string; + selection: SelectionConfig; + } +): Promise { + const args = buildSelectionArgs(params.selection); + await queryClient.prefetchQuery({ + queryKey: orgCapabilityDefaultCapabilityKeys.detail(params.id), + queryFn: () => + getClient() + .orgCapabilityDefaultCapability.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + }); +} diff --git a/sdk/constructive-react/src/admin/hooks/queries/useAppPermissionDefaultGrantQuery.ts b/sdk/constructive-react/src/admin/hooks/queries/useOrgCapabilityDefaultGrantQuery.ts similarity index 50% rename from sdk/constructive-react/src/admin/hooks/queries/useAppPermissionDefaultGrantQuery.ts rename to sdk/constructive-react/src/admin/hooks/queries/useOrgCapabilityDefaultGrantQuery.ts index 1d596eba6e..f55cb45ef9 100644 --- a/sdk/constructive-react/src/admin/hooks/queries/useAppPermissionDefaultGrantQuery.ts +++ b/sdk/constructive-react/src/admin/hooks/queries/useOrgCapabilityDefaultGrantQuery.ts @@ -1,5 +1,5 @@ /** - * Audit log of permission additions and removals from the defaults bitmask + * Audit log of capability additions and removals from the defaults bitmask * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -9,45 +9,45 @@ import type { UseQueryOptions, UseQueryResult, QueryClient } from '@tanstack/rea import { getClient } from '../client'; import { buildSelectionArgs } from '../selection'; import type { SelectionConfig } from '../selection'; -import { appPermissionDefaultGrantKeys } from '../query-keys'; +import { orgCapabilityDefaultGrantKeys } from '../query-keys'; import type { - AppPermissionDefaultGrantSelect, - AppPermissionDefaultGrantWithRelations, + OrgCapabilityDefaultGrantSelect, + OrgCapabilityDefaultGrantWithRelations, } from '../../orm/input-types'; import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; export type { - AppPermissionDefaultGrantSelect, - AppPermissionDefaultGrantWithRelations, + OrgCapabilityDefaultGrantSelect, + OrgCapabilityDefaultGrantWithRelations, } from '../../orm/input-types'; /** Query key factory - re-exported from query-keys.ts */ -export const appPermissionDefaultGrantQueryKey = appPermissionDefaultGrantKeys.detail; +export const orgCapabilityDefaultGrantQueryKey = orgCapabilityDefaultGrantKeys.detail; /** - * Audit log of permission additions and removals from the defaults bitmask + * Audit log of capability additions and removals from the defaults bitmask * * @example * ```tsx - * const { data, isLoading } = useAppPermissionDefaultGrantQuery({ + * const { data, isLoading } = useOrgCapabilityDefaultGrantQuery({ * id: 'some-id', * selection: { fields: { id: true, name: true } }, * }); * ``` */ -export function useAppPermissionDefaultGrantQuery< - S extends AppPermissionDefaultGrantSelect, +export function useOrgCapabilityDefaultGrantQuery< + S extends OrgCapabilityDefaultGrantSelect, TData = { - appPermissionDefaultGrant: InferSelectResult | null; + orgCapabilityDefaultGrant: InferSelectResult | null; }, >( params: { id: string; selection: { fields: S; - } & HookStrictSelect, AppPermissionDefaultGrantSelect>; + } & HookStrictSelect, OrgCapabilityDefaultGrantSelect>; } & Omit< UseQueryOptions< { - appPermissionDefaultGrant: InferSelectResult< - AppPermissionDefaultGrantWithRelations, + orgCapabilityDefaultGrant: InferSelectResult< + OrgCapabilityDefaultGrantWithRelations, S > | null; }, @@ -57,20 +57,20 @@ export function useAppPermissionDefaultGrantQuery< 'queryKey' | 'queryFn' > ): UseQueryResult; -export function useAppPermissionDefaultGrantQuery( +export function useOrgCapabilityDefaultGrantQuery( params: { id: string; - selection: SelectionConfig; + selection: SelectionConfig; } & Omit, 'queryKey' | 'queryFn'> ) { - const args = buildSelectionArgs(params.selection); + const args = buildSelectionArgs(params.selection); const { selection: _selection, ...queryOptions } = params ?? {}; void _selection; return useQuery({ - queryKey: appPermissionDefaultGrantKeys.detail(params.id), + queryKey: orgCapabilityDefaultGrantKeys.detail(params.id), queryFn: () => getClient() - .appPermissionDefaultGrant.findOne({ + .orgCapabilityDefaultGrant.findOne({ id: params.id, select: args.select, }) @@ -79,70 +79,70 @@ export function useAppPermissionDefaultGrantQuery( }); } /** - * Audit log of permission additions and removals from the defaults bitmask + * Audit log of capability additions and removals from the defaults bitmask * * @example * ```ts - * const data = await fetchAppPermissionDefaultGrantQuery({ + * const data = await fetchOrgCapabilityDefaultGrantQuery({ * id: 'some-id', * selection: { fields: { id: true } }, * }); * ``` */ -export async function fetchAppPermissionDefaultGrantQuery< - S extends AppPermissionDefaultGrantSelect, +export async function fetchOrgCapabilityDefaultGrantQuery< + S extends OrgCapabilityDefaultGrantSelect, >(params: { id: string; selection: { fields: S; - } & HookStrictSelect, AppPermissionDefaultGrantSelect>; + } & HookStrictSelect, OrgCapabilityDefaultGrantSelect>; }): Promise<{ - appPermissionDefaultGrant: InferSelectResult | null; + orgCapabilityDefaultGrant: InferSelectResult | null; }>; -export async function fetchAppPermissionDefaultGrantQuery(params: { +export async function fetchOrgCapabilityDefaultGrantQuery(params: { id: string; - selection: SelectionConfig; + selection: SelectionConfig; }): Promise { - const args = buildSelectionArgs(params.selection); + const args = buildSelectionArgs(params.selection); return getClient() - .appPermissionDefaultGrant.findOne({ + .orgCapabilityDefaultGrant.findOne({ id: params.id, select: args.select, }) .unwrap(); } /** - * Audit log of permission additions and removals from the defaults bitmask + * Audit log of capability additions and removals from the defaults bitmask * * @example * ```ts - * await prefetchAppPermissionDefaultGrantQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } }); + * await prefetchOrgCapabilityDefaultGrantQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } }); * ``` */ -export async function prefetchAppPermissionDefaultGrantQuery< - S extends AppPermissionDefaultGrantSelect, +export async function prefetchOrgCapabilityDefaultGrantQuery< + S extends OrgCapabilityDefaultGrantSelect, >( queryClient: QueryClient, params: { id: string; selection: { fields: S; - } & HookStrictSelect, AppPermissionDefaultGrantSelect>; + } & HookStrictSelect, OrgCapabilityDefaultGrantSelect>; } ): Promise; -export async function prefetchAppPermissionDefaultGrantQuery( +export async function prefetchOrgCapabilityDefaultGrantQuery( queryClient: QueryClient, params: { id: string; - selection: SelectionConfig; + selection: SelectionConfig; } ): Promise { - const args = buildSelectionArgs(params.selection); + const args = buildSelectionArgs(params.selection); await queryClient.prefetchQuery({ - queryKey: appPermissionDefaultGrantKeys.detail(params.id), + queryKey: orgCapabilityDefaultGrantKeys.detail(params.id), queryFn: () => getClient() - .appPermissionDefaultGrant.findOne({ + .orgCapabilityDefaultGrant.findOne({ id: params.id, select: args.select, }) diff --git a/sdk/constructive-react/src/admin/hooks/queries/useOrgCapabilityDefaultGrantsQuery.ts b/sdk/constructive-react/src/admin/hooks/queries/useOrgCapabilityDefaultGrantsQuery.ts new file mode 100644 index 0000000000..ad31bb3529 --- /dev/null +++ b/sdk/constructive-react/src/admin/hooks/queries/useOrgCapabilityDefaultGrantsQuery.ts @@ -0,0 +1,182 @@ +/** + * Audit log of capability additions and removals from the defaults bitmask + * @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 { orgCapabilityDefaultGrantKeys } from '../query-keys'; +import type { + OrgCapabilityDefaultGrantSelect, + OrgCapabilityDefaultGrantWithRelations, + OrgCapabilityDefaultGrantFilter, + OrgCapabilityDefaultGrantOrderBy, +} from '../../orm/input-types'; +import type { + FindManyArgs, + InferSelectResult, + ConnectionResult, + HookStrictSelect, +} from '../../orm/select-types'; +export type { + OrgCapabilityDefaultGrantSelect, + OrgCapabilityDefaultGrantWithRelations, + OrgCapabilityDefaultGrantFilter, + OrgCapabilityDefaultGrantOrderBy, +} from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const orgCapabilityDefaultGrantsQueryKey = orgCapabilityDefaultGrantKeys.list; +/** + * Audit log of capability additions and removals from the defaults bitmask + * + * @example + * ```tsx + * const { data, isLoading } = useOrgCapabilityDefaultGrantsQuery({ + * selection: { + * fields: { id: true, name: true }, + * where: { name: { equalTo: "example" } }, + * orderBy: ['CREATED_AT_DESC'], + * first: 10, + * }, + * }); + * ``` + */ +export function useOrgCapabilityDefaultGrantsQuery< + S extends OrgCapabilityDefaultGrantSelect, + TData = { + orgCapabilityDefaultGrants: ConnectionResult< + InferSelectResult + >; + }, +>( + params: { + selection: { + fields: S; + } & Omit< + ListSelectionConfig, + 'fields' + > & + HookStrictSelect, OrgCapabilityDefaultGrantSelect>; + } & Omit< + UseQueryOptions< + { + orgCapabilityDefaultGrants: ConnectionResult< + InferSelectResult + >; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useOrgCapabilityDefaultGrantsQuery( + params: { + selection: ListSelectionConfig< + OrgCapabilityDefaultGrantSelect, + OrgCapabilityDefaultGrantFilter, + OrgCapabilityDefaultGrantOrderBy + >; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildListSelectionArgs< + OrgCapabilityDefaultGrantSelect, + OrgCapabilityDefaultGrantFilter, + OrgCapabilityDefaultGrantOrderBy + >(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: orgCapabilityDefaultGrantKeys.list(args), + queryFn: () => getClient().orgCapabilityDefaultGrant.findMany(args).unwrap(), + ...queryOptions, + }); +} +/** + * Audit log of capability additions and removals from the defaults bitmask + * + * @example + * ```ts + * const data = await fetchOrgCapabilityDefaultGrantsQuery({ + * selection: { + * fields: { id: true }, + * first: 10, + * }, + * }); + * ``` + */ +export async function fetchOrgCapabilityDefaultGrantsQuery< + S extends OrgCapabilityDefaultGrantSelect, +>(params: { + selection: { + fields: S; + } & Omit< + ListSelectionConfig, + 'fields' + > & + HookStrictSelect, OrgCapabilityDefaultGrantSelect>; +}): Promise<{ + orgCapabilityDefaultGrants: ConnectionResult< + InferSelectResult + >; +}>; +export async function fetchOrgCapabilityDefaultGrantsQuery(params: { + selection: ListSelectionConfig< + OrgCapabilityDefaultGrantSelect, + OrgCapabilityDefaultGrantFilter, + OrgCapabilityDefaultGrantOrderBy + >; +}) { + const args = buildListSelectionArgs< + OrgCapabilityDefaultGrantSelect, + OrgCapabilityDefaultGrantFilter, + OrgCapabilityDefaultGrantOrderBy + >(params.selection); + return getClient().orgCapabilityDefaultGrant.findMany(args).unwrap(); +} +/** + * Audit log of capability additions and removals from the defaults bitmask + * + * @example + * ```ts + * await prefetchOrgCapabilityDefaultGrantsQuery(queryClient, { selection: { fields: { id: true }, first: 10 } }); + * ``` + */ +export async function prefetchOrgCapabilityDefaultGrantsQuery< + S extends OrgCapabilityDefaultGrantSelect, +>( + queryClient: QueryClient, + params: { + selection: { + fields: S; + } & Omit< + ListSelectionConfig, + 'fields' + > & + HookStrictSelect, OrgCapabilityDefaultGrantSelect>; + } +): Promise; +export async function prefetchOrgCapabilityDefaultGrantsQuery( + queryClient: QueryClient, + params: { + selection: ListSelectionConfig< + OrgCapabilityDefaultGrantSelect, + OrgCapabilityDefaultGrantFilter, + OrgCapabilityDefaultGrantOrderBy + >; + } +): Promise { + const args = buildListSelectionArgs< + OrgCapabilityDefaultGrantSelect, + OrgCapabilityDefaultGrantFilter, + OrgCapabilityDefaultGrantOrderBy + >(params.selection); + await queryClient.prefetchQuery({ + queryKey: orgCapabilityDefaultGrantKeys.list(args), + queryFn: () => getClient().orgCapabilityDefaultGrant.findMany(args).unwrap(), + }); +} diff --git a/sdk/constructive-react/src/admin/hooks/queries/useOrgGrantQuery.ts b/sdk/constructive-react/src/admin/hooks/queries/useOrgGrantQuery.ts index 3d02f5cd44..6a13a7f145 100644 --- a/sdk/constructive-react/src/admin/hooks/queries/useOrgGrantQuery.ts +++ b/sdk/constructive-react/src/admin/hooks/queries/useOrgGrantQuery.ts @@ -1,5 +1,5 @@ /** - * Records of individual permission grants and revocations for members via bitmask + * Records of individual capability grants and revocations for members via bitmask * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -16,7 +16,7 @@ export type { OrgGrantSelect, OrgGrantWithRelations } from '../../orm/input-type /** Query key factory - re-exported from query-keys.ts */ export const orgGrantQueryKey = orgGrantKeys.detail; /** - * Records of individual permission grants and revocations for members via bitmask + * Records of individual capability grants and revocations for members via bitmask * * @example * ```tsx @@ -70,7 +70,7 @@ export function useOrgGrantQuery( }); } /** - * Records of individual permission grants and revocations for members via bitmask + * Records of individual capability grants and revocations for members via bitmask * * @example * ```ts @@ -101,7 +101,7 @@ export async function fetchOrgGrantQuery(params: { .unwrap(); } /** - * Records of individual permission grants and revocations for members via bitmask + * Records of individual capability grants and revocations for members via bitmask * * @example * ```ts diff --git a/sdk/constructive-react/src/admin/hooks/queries/useOrgGrantsQuery.ts b/sdk/constructive-react/src/admin/hooks/queries/useOrgGrantsQuery.ts index f402141302..d7ca4e0f8d 100644 --- a/sdk/constructive-react/src/admin/hooks/queries/useOrgGrantsQuery.ts +++ b/sdk/constructive-react/src/admin/hooks/queries/useOrgGrantsQuery.ts @@ -1,5 +1,5 @@ /** - * Records of individual permission grants and revocations for members via bitmask + * Records of individual capability grants and revocations for members via bitmask * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -31,7 +31,7 @@ export type { /** Query key factory - re-exported from query-keys.ts */ export const orgGrantsQueryKey = orgGrantKeys.list; /** - * Records of individual permission grants and revocations for members via bitmask + * Records of individual capability grants and revocations for members via bitmask * * @example * ```tsx @@ -84,7 +84,7 @@ export function useOrgGrantsQuery( }); } /** - * Records of individual permission grants and revocations for members via bitmask + * Records of individual capability grants and revocations for members via bitmask * * @example * ```ts @@ -113,7 +113,7 @@ export async function fetchOrgGrantsQuery(params: { return getClient().orgGrant.findMany(args).unwrap(); } /** - * Records of individual permission grants and revocations for members via bitmask + * Records of individual capability grants and revocations for members via bitmask * * @example * ```ts diff --git a/sdk/constructive-react/src/admin/hooks/queries/useOrgMembershipQuery.ts b/sdk/constructive-react/src/admin/hooks/queries/useOrgMembershipQuery.ts index c251c5b23b..726bca9932 100644 --- a/sdk/constructive-react/src/admin/hooks/queries/useOrgMembershipQuery.ts +++ b/sdk/constructive-react/src/admin/hooks/queries/useOrgMembershipQuery.ts @@ -1,5 +1,5 @@ /** - * Tracks membership records linking actors to entities with permission bitmasks, ownership, and admin status + * Tracks membership records linking actors to entities with capability bitmasks, ownership, and admin status * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -16,7 +16,7 @@ export type { OrgMembershipSelect, OrgMembershipWithRelations } from '../../orm/ /** Query key factory - re-exported from query-keys.ts */ export const orgMembershipQueryKey = orgMembershipKeys.detail; /** - * Tracks membership records linking actors to entities with permission bitmasks, ownership, and admin status + * Tracks membership records linking actors to entities with capability bitmasks, ownership, and admin status * * @example * ```tsx @@ -70,7 +70,7 @@ export function useOrgMembershipQuery( }); } /** - * Tracks membership records linking actors to entities with permission bitmasks, ownership, and admin status + * Tracks membership records linking actors to entities with capability bitmasks, ownership, and admin status * * @example * ```ts @@ -101,7 +101,7 @@ export async function fetchOrgMembershipQuery(params: { .unwrap(); } /** - * Tracks membership records linking actors to entities with permission bitmasks, ownership, and admin status + * Tracks membership records linking actors to entities with capability bitmasks, ownership, and admin status * * @example * ```ts diff --git a/sdk/constructive-react/src/admin/hooks/queries/useOrgMembershipsQuery.ts b/sdk/constructive-react/src/admin/hooks/queries/useOrgMembershipsQuery.ts index 2e620b4850..bdf0c4dd65 100644 --- a/sdk/constructive-react/src/admin/hooks/queries/useOrgMembershipsQuery.ts +++ b/sdk/constructive-react/src/admin/hooks/queries/useOrgMembershipsQuery.ts @@ -1,5 +1,5 @@ /** - * Tracks membership records linking actors to entities with permission bitmasks, ownership, and admin status + * Tracks membership records linking actors to entities with capability bitmasks, ownership, and admin status * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -31,7 +31,7 @@ export type { /** Query key factory - re-exported from query-keys.ts */ export const orgMembershipsQueryKey = orgMembershipKeys.list; /** - * Tracks membership records linking actors to entities with permission bitmasks, ownership, and admin status + * Tracks membership records linking actors to entities with capability bitmasks, ownership, and admin status * * @example * ```tsx @@ -86,7 +86,7 @@ export function useOrgMembershipsQuery( }); } /** - * Tracks membership records linking actors to entities with permission bitmasks, ownership, and admin status + * Tracks membership records linking actors to entities with capability bitmasks, ownership, and admin status * * @example * ```ts @@ -117,7 +117,7 @@ export async function fetchOrgMembershipsQuery(params: { return getClient().orgMembership.findMany(args).unwrap(); } /** - * Tracks membership records linking actors to entities with permission bitmasks, ownership, and admin status + * Tracks membership records linking actors to entities with capability bitmasks, ownership, and admin status * * @example * ```ts diff --git a/sdk/constructive-react/src/admin/hooks/queries/useOrgPermissionDefaultGrantsQuery.ts b/sdk/constructive-react/src/admin/hooks/queries/useOrgPermissionDefaultGrantsQuery.ts deleted file mode 100644 index 606103b3e7..0000000000 --- a/sdk/constructive-react/src/admin/hooks/queries/useOrgPermissionDefaultGrantsQuery.ts +++ /dev/null @@ -1,182 +0,0 @@ -/** - * Audit log of permission additions and removals from the defaults bitmask - * @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 { orgPermissionDefaultGrantKeys } from '../query-keys'; -import type { - OrgPermissionDefaultGrantSelect, - OrgPermissionDefaultGrantWithRelations, - OrgPermissionDefaultGrantFilter, - OrgPermissionDefaultGrantOrderBy, -} from '../../orm/input-types'; -import type { - FindManyArgs, - InferSelectResult, - ConnectionResult, - HookStrictSelect, -} from '../../orm/select-types'; -export type { - OrgPermissionDefaultGrantSelect, - OrgPermissionDefaultGrantWithRelations, - OrgPermissionDefaultGrantFilter, - OrgPermissionDefaultGrantOrderBy, -} from '../../orm/input-types'; -/** Query key factory - re-exported from query-keys.ts */ -export const orgPermissionDefaultGrantsQueryKey = orgPermissionDefaultGrantKeys.list; -/** - * Audit log of permission additions and removals from the defaults bitmask - * - * @example - * ```tsx - * const { data, isLoading } = useOrgPermissionDefaultGrantsQuery({ - * selection: { - * fields: { id: true, name: true }, - * where: { name: { equalTo: "example" } }, - * orderBy: ['CREATED_AT_DESC'], - * first: 10, - * }, - * }); - * ``` - */ -export function useOrgPermissionDefaultGrantsQuery< - S extends OrgPermissionDefaultGrantSelect, - TData = { - orgPermissionDefaultGrants: ConnectionResult< - InferSelectResult - >; - }, ->( - params: { - selection: { - fields: S; - } & Omit< - ListSelectionConfig, - 'fields' - > & - HookStrictSelect, OrgPermissionDefaultGrantSelect>; - } & Omit< - UseQueryOptions< - { - orgPermissionDefaultGrants: ConnectionResult< - InferSelectResult - >; - }, - Error, - TData - >, - 'queryKey' | 'queryFn' - > -): UseQueryResult; -export function useOrgPermissionDefaultGrantsQuery( - params: { - selection: ListSelectionConfig< - OrgPermissionDefaultGrantSelect, - OrgPermissionDefaultGrantFilter, - OrgPermissionDefaultGrantOrderBy - >; - } & Omit, 'queryKey' | 'queryFn'> -) { - const args = buildListSelectionArgs< - OrgPermissionDefaultGrantSelect, - OrgPermissionDefaultGrantFilter, - OrgPermissionDefaultGrantOrderBy - >(params.selection); - const { selection: _selection, ...queryOptions } = params ?? {}; - void _selection; - return useQuery({ - queryKey: orgPermissionDefaultGrantKeys.list(args), - queryFn: () => getClient().orgPermissionDefaultGrant.findMany(args).unwrap(), - ...queryOptions, - }); -} -/** - * Audit log of permission additions and removals from the defaults bitmask - * - * @example - * ```ts - * const data = await fetchOrgPermissionDefaultGrantsQuery({ - * selection: { - * fields: { id: true }, - * first: 10, - * }, - * }); - * ``` - */ -export async function fetchOrgPermissionDefaultGrantsQuery< - S extends OrgPermissionDefaultGrantSelect, ->(params: { - selection: { - fields: S; - } & Omit< - ListSelectionConfig, - 'fields' - > & - HookStrictSelect, OrgPermissionDefaultGrantSelect>; -}): Promise<{ - orgPermissionDefaultGrants: ConnectionResult< - InferSelectResult - >; -}>; -export async function fetchOrgPermissionDefaultGrantsQuery(params: { - selection: ListSelectionConfig< - OrgPermissionDefaultGrantSelect, - OrgPermissionDefaultGrantFilter, - OrgPermissionDefaultGrantOrderBy - >; -}) { - const args = buildListSelectionArgs< - OrgPermissionDefaultGrantSelect, - OrgPermissionDefaultGrantFilter, - OrgPermissionDefaultGrantOrderBy - >(params.selection); - return getClient().orgPermissionDefaultGrant.findMany(args).unwrap(); -} -/** - * Audit log of permission additions and removals from the defaults bitmask - * - * @example - * ```ts - * await prefetchOrgPermissionDefaultGrantsQuery(queryClient, { selection: { fields: { id: true }, first: 10 } }); - * ``` - */ -export async function prefetchOrgPermissionDefaultGrantsQuery< - S extends OrgPermissionDefaultGrantSelect, ->( - queryClient: QueryClient, - params: { - selection: { - fields: S; - } & Omit< - ListSelectionConfig, - 'fields' - > & - HookStrictSelect, OrgPermissionDefaultGrantSelect>; - } -): Promise; -export async function prefetchOrgPermissionDefaultGrantsQuery( - queryClient: QueryClient, - params: { - selection: ListSelectionConfig< - OrgPermissionDefaultGrantSelect, - OrgPermissionDefaultGrantFilter, - OrgPermissionDefaultGrantOrderBy - >; - } -): Promise { - const args = buildListSelectionArgs< - OrgPermissionDefaultGrantSelect, - OrgPermissionDefaultGrantFilter, - OrgPermissionDefaultGrantOrderBy - >(params.selection); - await queryClient.prefetchQuery({ - queryKey: orgPermissionDefaultGrantKeys.list(args), - queryFn: () => getClient().orgPermissionDefaultGrant.findMany(args).unwrap(), - }); -} diff --git a/sdk/constructive-react/src/admin/hooks/queries/useOrgPermissionDefaultPermissionQuery.ts b/sdk/constructive-react/src/admin/hooks/queries/useOrgPermissionDefaultPermissionQuery.ts deleted file mode 100644 index a8d75d8141..0000000000 --- a/sdk/constructive-react/src/admin/hooks/queries/useOrgPermissionDefaultPermissionQuery.ts +++ /dev/null @@ -1,157 +0,0 @@ -/** - * Join table linking permission defaults to individual permissions; recompute trigger rebuilds the defaults bitmask - * @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 { orgPermissionDefaultPermissionKeys } from '../query-keys'; -import type { - OrgPermissionDefaultPermissionSelect, - OrgPermissionDefaultPermissionWithRelations, -} from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { - OrgPermissionDefaultPermissionSelect, - OrgPermissionDefaultPermissionWithRelations, -} from '../../orm/input-types'; -/** Query key factory - re-exported from query-keys.ts */ -export const orgPermissionDefaultPermissionQueryKey = orgPermissionDefaultPermissionKeys.detail; -/** - * Join table linking permission defaults to individual permissions; recompute trigger rebuilds the defaults bitmask - * - * @example - * ```tsx - * const { data, isLoading } = useOrgPermissionDefaultPermissionQuery({ - * id: 'some-id', - * selection: { fields: { id: true, name: true } }, - * }); - * ``` - */ -export function useOrgPermissionDefaultPermissionQuery< - S extends OrgPermissionDefaultPermissionSelect, - TData = { - orgPermissionDefaultPermission: InferSelectResult< - OrgPermissionDefaultPermissionWithRelations, - S - > | null; - }, ->( - params: { - id: string; - selection: { - fields: S; - } & HookStrictSelect, OrgPermissionDefaultPermissionSelect>; - } & Omit< - UseQueryOptions< - { - orgPermissionDefaultPermission: InferSelectResult< - OrgPermissionDefaultPermissionWithRelations, - S - > | null; - }, - Error, - TData - >, - 'queryKey' | 'queryFn' - > -): UseQueryResult; -export function useOrgPermissionDefaultPermissionQuery( - params: { - id: string; - selection: SelectionConfig; - } & Omit, 'queryKey' | 'queryFn'> -) { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...queryOptions } = params ?? {}; - void _selection; - return useQuery({ - queryKey: orgPermissionDefaultPermissionKeys.detail(params.id), - queryFn: () => - getClient() - .orgPermissionDefaultPermission.findOne({ - id: params.id, - select: args.select, - }) - .unwrap(), - ...queryOptions, - }); -} -/** - * Join table linking permission defaults to individual permissions; recompute trigger rebuilds the defaults bitmask - * - * @example - * ```ts - * const data = await fetchOrgPermissionDefaultPermissionQuery({ - * id: 'some-id', - * selection: { fields: { id: true } }, - * }); - * ``` - */ -export async function fetchOrgPermissionDefaultPermissionQuery< - S extends OrgPermissionDefaultPermissionSelect, ->(params: { - id: string; - selection: { - fields: S; - } & HookStrictSelect, OrgPermissionDefaultPermissionSelect>; -}): Promise<{ - orgPermissionDefaultPermission: InferSelectResult< - OrgPermissionDefaultPermissionWithRelations, - S - > | null; -}>; -export async function fetchOrgPermissionDefaultPermissionQuery(params: { - id: string; - selection: SelectionConfig; -}): Promise { - const args = buildSelectionArgs(params.selection); - return getClient() - .orgPermissionDefaultPermission.findOne({ - id: params.id, - select: args.select, - }) - .unwrap(); -} -/** - * Join table linking permission defaults to individual permissions; recompute trigger rebuilds the defaults bitmask - * - * @example - * ```ts - * await prefetchOrgPermissionDefaultPermissionQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } }); - * ``` - */ -export async function prefetchOrgPermissionDefaultPermissionQuery< - S extends OrgPermissionDefaultPermissionSelect, ->( - queryClient: QueryClient, - params: { - id: string; - selection: { - fields: S; - } & HookStrictSelect, OrgPermissionDefaultPermissionSelect>; - } -): Promise; -export async function prefetchOrgPermissionDefaultPermissionQuery( - queryClient: QueryClient, - params: { - id: string; - selection: SelectionConfig; - } -): Promise { - const args = buildSelectionArgs(params.selection); - await queryClient.prefetchQuery({ - queryKey: orgPermissionDefaultPermissionKeys.detail(params.id), - queryFn: () => - getClient() - .orgPermissionDefaultPermission.findOne({ - id: params.id, - select: args.select, - }) - .unwrap(), - }); -} diff --git a/sdk/constructive-react/src/admin/hooks/queries/useOrgPermissionDefaultPermissionsQuery.ts b/sdk/constructive-react/src/admin/hooks/queries/useOrgPermissionDefaultPermissionsQuery.ts deleted file mode 100644 index 331c112c08..0000000000 --- a/sdk/constructive-react/src/admin/hooks/queries/useOrgPermissionDefaultPermissionsQuery.ts +++ /dev/null @@ -1,194 +0,0 @@ -/** - * Join table linking permission defaults to individual permissions; recompute trigger rebuilds the defaults bitmask - * @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 { orgPermissionDefaultPermissionKeys } from '../query-keys'; -import type { - OrgPermissionDefaultPermissionSelect, - OrgPermissionDefaultPermissionWithRelations, - OrgPermissionDefaultPermissionFilter, - OrgPermissionDefaultPermissionOrderBy, -} from '../../orm/input-types'; -import type { - FindManyArgs, - InferSelectResult, - ConnectionResult, - HookStrictSelect, -} from '../../orm/select-types'; -export type { - OrgPermissionDefaultPermissionSelect, - OrgPermissionDefaultPermissionWithRelations, - OrgPermissionDefaultPermissionFilter, - OrgPermissionDefaultPermissionOrderBy, -} from '../../orm/input-types'; -/** Query key factory - re-exported from query-keys.ts */ -export const orgPermissionDefaultPermissionsQueryKey = orgPermissionDefaultPermissionKeys.list; -/** - * Join table linking permission defaults to individual permissions; recompute trigger rebuilds the defaults bitmask - * - * @example - * ```tsx - * const { data, isLoading } = useOrgPermissionDefaultPermissionsQuery({ - * selection: { - * fields: { id: true, name: true }, - * where: { name: { equalTo: "example" } }, - * orderBy: ['CREATED_AT_DESC'], - * first: 10, - * }, - * }); - * ``` - */ -export function useOrgPermissionDefaultPermissionsQuery< - S extends OrgPermissionDefaultPermissionSelect, - TData = { - orgPermissionDefaultPermissions: ConnectionResult< - InferSelectResult - >; - }, ->( - params: { - selection: { - fields: S; - } & Omit< - ListSelectionConfig< - S, - OrgPermissionDefaultPermissionFilter, - OrgPermissionDefaultPermissionOrderBy - >, - 'fields' - > & - HookStrictSelect, OrgPermissionDefaultPermissionSelect>; - } & Omit< - UseQueryOptions< - { - orgPermissionDefaultPermissions: ConnectionResult< - InferSelectResult - >; - }, - Error, - TData - >, - 'queryKey' | 'queryFn' - > -): UseQueryResult; -export function useOrgPermissionDefaultPermissionsQuery( - params: { - selection: ListSelectionConfig< - OrgPermissionDefaultPermissionSelect, - OrgPermissionDefaultPermissionFilter, - OrgPermissionDefaultPermissionOrderBy - >; - } & Omit, 'queryKey' | 'queryFn'> -) { - const args = buildListSelectionArgs< - OrgPermissionDefaultPermissionSelect, - OrgPermissionDefaultPermissionFilter, - OrgPermissionDefaultPermissionOrderBy - >(params.selection); - const { selection: _selection, ...queryOptions } = params ?? {}; - void _selection; - return useQuery({ - queryKey: orgPermissionDefaultPermissionKeys.list(args), - queryFn: () => getClient().orgPermissionDefaultPermission.findMany(args).unwrap(), - ...queryOptions, - }); -} -/** - * Join table linking permission defaults to individual permissions; recompute trigger rebuilds the defaults bitmask - * - * @example - * ```ts - * const data = await fetchOrgPermissionDefaultPermissionsQuery({ - * selection: { - * fields: { id: true }, - * first: 10, - * }, - * }); - * ``` - */ -export async function fetchOrgPermissionDefaultPermissionsQuery< - S extends OrgPermissionDefaultPermissionSelect, ->(params: { - selection: { - fields: S; - } & Omit< - ListSelectionConfig< - S, - OrgPermissionDefaultPermissionFilter, - OrgPermissionDefaultPermissionOrderBy - >, - 'fields' - > & - HookStrictSelect, OrgPermissionDefaultPermissionSelect>; -}): Promise<{ - orgPermissionDefaultPermissions: ConnectionResult< - InferSelectResult - >; -}>; -export async function fetchOrgPermissionDefaultPermissionsQuery(params: { - selection: ListSelectionConfig< - OrgPermissionDefaultPermissionSelect, - OrgPermissionDefaultPermissionFilter, - OrgPermissionDefaultPermissionOrderBy - >; -}) { - const args = buildListSelectionArgs< - OrgPermissionDefaultPermissionSelect, - OrgPermissionDefaultPermissionFilter, - OrgPermissionDefaultPermissionOrderBy - >(params.selection); - return getClient().orgPermissionDefaultPermission.findMany(args).unwrap(); -} -/** - * Join table linking permission defaults to individual permissions; recompute trigger rebuilds the defaults bitmask - * - * @example - * ```ts - * await prefetchOrgPermissionDefaultPermissionsQuery(queryClient, { selection: { fields: { id: true }, first: 10 } }); - * ``` - */ -export async function prefetchOrgPermissionDefaultPermissionsQuery< - S extends OrgPermissionDefaultPermissionSelect, ->( - queryClient: QueryClient, - params: { - selection: { - fields: S; - } & Omit< - ListSelectionConfig< - S, - OrgPermissionDefaultPermissionFilter, - OrgPermissionDefaultPermissionOrderBy - >, - 'fields' - > & - HookStrictSelect, OrgPermissionDefaultPermissionSelect>; - } -): Promise; -export async function prefetchOrgPermissionDefaultPermissionsQuery( - queryClient: QueryClient, - params: { - selection: ListSelectionConfig< - OrgPermissionDefaultPermissionSelect, - OrgPermissionDefaultPermissionFilter, - OrgPermissionDefaultPermissionOrderBy - >; - } -): Promise { - const args = buildListSelectionArgs< - OrgPermissionDefaultPermissionSelect, - OrgPermissionDefaultPermissionFilter, - OrgPermissionDefaultPermissionOrderBy - >(params.selection); - await queryClient.prefetchQuery({ - queryKey: orgPermissionDefaultPermissionKeys.list(args), - queryFn: () => getClient().orgPermissionDefaultPermission.findMany(args).unwrap(), - }); -} diff --git a/sdk/constructive-react/src/admin/hooks/queries/useOrgPermissionDefaultQuery.ts b/sdk/constructive-react/src/admin/hooks/queries/useOrgPermissionDefaultQuery.ts deleted file mode 100644 index 9dc118fc7c..0000000000 --- a/sdk/constructive-react/src/admin/hooks/queries/useOrgPermissionDefaultQuery.ts +++ /dev/null @@ -1,144 +0,0 @@ -/** - * Stores the default permission bitmask assigned to new members upon joining - * @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 { orgPermissionDefaultKeys } from '../query-keys'; -import type { - OrgPermissionDefaultSelect, - OrgPermissionDefaultWithRelations, -} from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { - OrgPermissionDefaultSelect, - OrgPermissionDefaultWithRelations, -} from '../../orm/input-types'; -/** Query key factory - re-exported from query-keys.ts */ -export const orgPermissionDefaultQueryKey = orgPermissionDefaultKeys.detail; -/** - * Stores the default permission bitmask assigned to new members upon joining - * - * @example - * ```tsx - * const { data, isLoading } = useOrgPermissionDefaultQuery({ - * id: 'some-id', - * selection: { fields: { id: true, name: true } }, - * }); - * ``` - */ -export function useOrgPermissionDefaultQuery< - S extends OrgPermissionDefaultSelect, - TData = { - orgPermissionDefault: InferSelectResult | null; - }, ->( - params: { - id: string; - selection: { - fields: S; - } & HookStrictSelect, OrgPermissionDefaultSelect>; - } & Omit< - UseQueryOptions< - { - orgPermissionDefault: InferSelectResult | null; - }, - Error, - TData - >, - 'queryKey' | 'queryFn' - > -): UseQueryResult; -export function useOrgPermissionDefaultQuery( - params: { - id: string; - selection: SelectionConfig; - } & Omit, 'queryKey' | 'queryFn'> -) { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...queryOptions } = params ?? {}; - void _selection; - return useQuery({ - queryKey: orgPermissionDefaultKeys.detail(params.id), - queryFn: () => - getClient() - .orgPermissionDefault.findOne({ - id: params.id, - select: args.select, - }) - .unwrap(), - ...queryOptions, - }); -} -/** - * Stores the default permission bitmask assigned to new members upon joining - * - * @example - * ```ts - * const data = await fetchOrgPermissionDefaultQuery({ - * id: 'some-id', - * selection: { fields: { id: true } }, - * }); - * ``` - */ -export async function fetchOrgPermissionDefaultQuery(params: { - id: string; - selection: { - fields: S; - } & HookStrictSelect, OrgPermissionDefaultSelect>; -}): Promise<{ - orgPermissionDefault: InferSelectResult | null; -}>; -export async function fetchOrgPermissionDefaultQuery(params: { - id: string; - selection: SelectionConfig; -}): Promise { - const args = buildSelectionArgs(params.selection); - return getClient() - .orgPermissionDefault.findOne({ - id: params.id, - select: args.select, - }) - .unwrap(); -} -/** - * Stores the default permission bitmask assigned to new members upon joining - * - * @example - * ```ts - * await prefetchOrgPermissionDefaultQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } }); - * ``` - */ -export async function prefetchOrgPermissionDefaultQuery( - queryClient: QueryClient, - params: { - id: string; - selection: { - fields: S; - } & HookStrictSelect, OrgPermissionDefaultSelect>; - } -): Promise; -export async function prefetchOrgPermissionDefaultQuery( - queryClient: QueryClient, - params: { - id: string; - selection: SelectionConfig; - } -): Promise { - const args = buildSelectionArgs(params.selection); - await queryClient.prefetchQuery({ - queryKey: orgPermissionDefaultKeys.detail(params.id), - queryFn: () => - getClient() - .orgPermissionDefault.findOne({ - id: params.id, - select: args.select, - }) - .unwrap(), - }); -} diff --git a/sdk/constructive-react/src/admin/hooks/queries/useOrgPermissionDefaultsQuery.ts b/sdk/constructive-react/src/admin/hooks/queries/useOrgPermissionDefaultsQuery.ts deleted file mode 100644 index 8bbff22406..0000000000 --- a/sdk/constructive-react/src/admin/hooks/queries/useOrgPermissionDefaultsQuery.ts +++ /dev/null @@ -1,178 +0,0 @@ -/** - * Stores the default permission bitmask assigned to new members upon joining - * @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 { orgPermissionDefaultKeys } from '../query-keys'; -import type { - OrgPermissionDefaultSelect, - OrgPermissionDefaultWithRelations, - OrgPermissionDefaultFilter, - OrgPermissionDefaultOrderBy, -} from '../../orm/input-types'; -import type { - FindManyArgs, - InferSelectResult, - ConnectionResult, - HookStrictSelect, -} from '../../orm/select-types'; -export type { - OrgPermissionDefaultSelect, - OrgPermissionDefaultWithRelations, - OrgPermissionDefaultFilter, - OrgPermissionDefaultOrderBy, -} from '../../orm/input-types'; -/** Query key factory - re-exported from query-keys.ts */ -export const orgPermissionDefaultsQueryKey = orgPermissionDefaultKeys.list; -/** - * Stores the default permission bitmask assigned to new members upon joining - * - * @example - * ```tsx - * const { data, isLoading } = useOrgPermissionDefaultsQuery({ - * selection: { - * fields: { id: true, name: true }, - * where: { name: { equalTo: "example" } }, - * orderBy: ['CREATED_AT_DESC'], - * first: 10, - * }, - * }); - * ``` - */ -export function useOrgPermissionDefaultsQuery< - S extends OrgPermissionDefaultSelect, - TData = { - orgPermissionDefaults: ConnectionResult< - InferSelectResult - >; - }, ->( - params: { - selection: { - fields: S; - } & Omit< - ListSelectionConfig, - 'fields' - > & - HookStrictSelect, OrgPermissionDefaultSelect>; - } & Omit< - UseQueryOptions< - { - orgPermissionDefaults: ConnectionResult< - InferSelectResult - >; - }, - Error, - TData - >, - 'queryKey' | 'queryFn' - > -): UseQueryResult; -export function useOrgPermissionDefaultsQuery( - params: { - selection: ListSelectionConfig< - OrgPermissionDefaultSelect, - OrgPermissionDefaultFilter, - OrgPermissionDefaultOrderBy - >; - } & Omit, 'queryKey' | 'queryFn'> -) { - const args = buildListSelectionArgs< - OrgPermissionDefaultSelect, - OrgPermissionDefaultFilter, - OrgPermissionDefaultOrderBy - >(params.selection); - const { selection: _selection, ...queryOptions } = params ?? {}; - void _selection; - return useQuery({ - queryKey: orgPermissionDefaultKeys.list(args), - queryFn: () => getClient().orgPermissionDefault.findMany(args).unwrap(), - ...queryOptions, - }); -} -/** - * Stores the default permission bitmask assigned to new members upon joining - * - * @example - * ```ts - * const data = await fetchOrgPermissionDefaultsQuery({ - * selection: { - * fields: { id: true }, - * first: 10, - * }, - * }); - * ``` - */ -export async function fetchOrgPermissionDefaultsQuery< - S extends OrgPermissionDefaultSelect, ->(params: { - selection: { - fields: S; - } & Omit< - ListSelectionConfig, - 'fields' - > & - HookStrictSelect, OrgPermissionDefaultSelect>; -}): Promise<{ - orgPermissionDefaults: ConnectionResult>; -}>; -export async function fetchOrgPermissionDefaultsQuery(params: { - selection: ListSelectionConfig< - OrgPermissionDefaultSelect, - OrgPermissionDefaultFilter, - OrgPermissionDefaultOrderBy - >; -}) { - const args = buildListSelectionArgs< - OrgPermissionDefaultSelect, - OrgPermissionDefaultFilter, - OrgPermissionDefaultOrderBy - >(params.selection); - return getClient().orgPermissionDefault.findMany(args).unwrap(); -} -/** - * Stores the default permission bitmask assigned to new members upon joining - * - * @example - * ```ts - * await prefetchOrgPermissionDefaultsQuery(queryClient, { selection: { fields: { id: true }, first: 10 } }); - * ``` - */ -export async function prefetchOrgPermissionDefaultsQuery( - queryClient: QueryClient, - params: { - selection: { - fields: S; - } & Omit< - ListSelectionConfig, - 'fields' - > & - HookStrictSelect, OrgPermissionDefaultSelect>; - } -): Promise; -export async function prefetchOrgPermissionDefaultsQuery( - queryClient: QueryClient, - params: { - selection: ListSelectionConfig< - OrgPermissionDefaultSelect, - OrgPermissionDefaultFilter, - OrgPermissionDefaultOrderBy - >; - } -): Promise { - const args = buildListSelectionArgs< - OrgPermissionDefaultSelect, - OrgPermissionDefaultFilter, - OrgPermissionDefaultOrderBy - >(params.selection); - await queryClient.prefetchQuery({ - queryKey: orgPermissionDefaultKeys.list(args), - queryFn: () => getClient().orgPermissionDefault.findMany(args).unwrap(), - }); -} diff --git a/sdk/constructive-react/src/admin/hooks/queries/useOrgPermissionQuery.ts b/sdk/constructive-react/src/admin/hooks/queries/useOrgPermissionQuery.ts deleted file mode 100644 index 4407aaeddb..0000000000 --- a/sdk/constructive-react/src/admin/hooks/queries/useOrgPermissionQuery.ts +++ /dev/null @@ -1,138 +0,0 @@ -/** - * Defines available permissions as named bits within a bitmask, used by the RBAC system for access control - * @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 { orgPermissionKeys } from '../query-keys'; -import type { OrgPermissionSelect, OrgPermissionWithRelations } from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { OrgPermissionSelect, OrgPermissionWithRelations } from '../../orm/input-types'; -/** Query key factory - re-exported from query-keys.ts */ -export const orgPermissionQueryKey = orgPermissionKeys.detail; -/** - * Defines available permissions as named bits within a bitmask, used by the RBAC system for access control - * - * @example - * ```tsx - * const { data, isLoading } = useOrgPermissionQuery({ - * id: 'some-id', - * selection: { fields: { id: true, name: true } }, - * }); - * ``` - */ -export function useOrgPermissionQuery< - S extends OrgPermissionSelect, - TData = { - orgPermission: InferSelectResult | null; - }, ->( - params: { - id: string; - selection: { - fields: S; - } & HookStrictSelect, OrgPermissionSelect>; - } & Omit< - UseQueryOptions< - { - orgPermission: InferSelectResult | null; - }, - Error, - TData - >, - 'queryKey' | 'queryFn' - > -): UseQueryResult; -export function useOrgPermissionQuery( - params: { - id: string; - selection: SelectionConfig; - } & Omit, 'queryKey' | 'queryFn'> -) { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...queryOptions } = params ?? {}; - void _selection; - return useQuery({ - queryKey: orgPermissionKeys.detail(params.id), - queryFn: () => - getClient() - .orgPermission.findOne({ - id: params.id, - select: args.select, - }) - .unwrap(), - ...queryOptions, - }); -} -/** - * Defines available permissions as named bits within a bitmask, used by the RBAC system for access control - * - * @example - * ```ts - * const data = await fetchOrgPermissionQuery({ - * id: 'some-id', - * selection: { fields: { id: true } }, - * }); - * ``` - */ -export async function fetchOrgPermissionQuery(params: { - id: string; - selection: { - fields: S; - } & HookStrictSelect, OrgPermissionSelect>; -}): Promise<{ - orgPermission: InferSelectResult | null; -}>; -export async function fetchOrgPermissionQuery(params: { - id: string; - selection: SelectionConfig; -}): Promise { - const args = buildSelectionArgs(params.selection); - return getClient() - .orgPermission.findOne({ - id: params.id, - select: args.select, - }) - .unwrap(); -} -/** - * Defines available permissions as named bits within a bitmask, used by the RBAC system for access control - * - * @example - * ```ts - * await prefetchOrgPermissionQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } }); - * ``` - */ -export async function prefetchOrgPermissionQuery( - queryClient: QueryClient, - params: { - id: string; - selection: { - fields: S; - } & HookStrictSelect, OrgPermissionSelect>; - } -): Promise; -export async function prefetchOrgPermissionQuery( - queryClient: QueryClient, - params: { - id: string; - selection: SelectionConfig; - } -): Promise { - const args = buildSelectionArgs(params.selection); - await queryClient.prefetchQuery({ - queryKey: orgPermissionKeys.detail(params.id), - queryFn: () => - getClient() - .orgPermission.findOne({ - id: params.id, - select: args.select, - }) - .unwrap(), - }); -} diff --git a/sdk/constructive-react/src/admin/hooks/queries/useOrgPermissionsGetByMaskQuery.ts b/sdk/constructive-react/src/admin/hooks/queries/useOrgPermissionsGetByMaskQuery.ts deleted file mode 100644 index db38f6b5eb..0000000000 --- a/sdk/constructive-react/src/admin/hooks/queries/useOrgPermissionsGetByMaskQuery.ts +++ /dev/null @@ -1,108 +0,0 @@ -/** - * Custom query hook for orgPermissionsGetByMask - * @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 { customQueryKeys } from '../query-keys'; -import type { OrgPermissionsGetByMaskVariables } from '../../orm/query'; -import type { OrgPermissionConnection } from '../../orm/input-types'; -export type { OrgPermissionsGetByMaskVariables } from '../../orm/query'; -/** Query key factory - re-exported from query-keys.ts */ -export const orgPermissionsGetByMaskQueryKey = customQueryKeys.orgPermissionsGetByMask; -/** - * Reads and enables pagination through a set of `OrgPermission`. - * - * @example - * ```tsx - * const { data, isLoading } = useOrgPermissionsGetByMaskQuery({ variables: { after, first, mask, offset } }); - * - * if (data?.orgPermissionsGetByMask) { - * console.log(data.orgPermissionsGetByMask); - * } - * ``` - */ -export function useOrgPermissionsGetByMaskQuery< - TData = { - orgPermissionsGetByMask: OrgPermissionConnection | null; - }, ->( - params?: { - variables?: OrgPermissionsGetByMaskVariables; - } & Omit< - UseQueryOptions< - { - orgPermissionsGetByMask: OrgPermissionConnection | null; - }, - Error, - TData - >, - 'queryKey' | 'queryFn' - > -): UseQueryResult; -export function useOrgPermissionsGetByMaskQuery< - TData = { - orgPermissionsGetByMask: OrgPermissionConnection | null; - }, ->( - params?: { - variables?: OrgPermissionsGetByMaskVariables; - } & Omit< - UseQueryOptions< - { - orgPermissionsGetByMask: OrgPermissionConnection | null; - }, - Error, - TData - >, - 'queryKey' | 'queryFn' - > -): UseQueryResult { - const variables = params?.variables ?? {}; - const { variables: _variables, ...queryOptions } = params ?? {}; - void _variables; - return useQuery({ - queryKey: orgPermissionsGetByMaskQueryKey(variables), - queryFn: () => getClient().query.orgPermissionsGetByMask(variables).unwrap(), - ...queryOptions, - }); -} -/** - * Fetch orgPermissionsGetByMask without React hooks - * - * @example - * ```ts - * const data = await fetchOrgPermissionsGetByMaskQuery({ variables: { after, first, mask, offset } }); - * ``` - */ -export async function fetchOrgPermissionsGetByMaskQuery(params?: { - variables?: OrgPermissionsGetByMaskVariables; -}) { - const variables = params?.variables ?? {}; - return getClient().query.orgPermissionsGetByMask(variables).unwrap(); -} -/** - * Prefetch orgPermissionsGetByMask for SSR or cache warming - * - * @example - * ```ts - * await prefetchOrgPermissionsGetByMaskQuery(queryClient, { variables: { after, first, mask, offset } }); - * ``` - */ -export async function prefetchOrgPermissionsGetByMaskQuery( - queryClient: QueryClient, - params?: { - variables?: OrgPermissionsGetByMaskVariables; - } -): Promise { - const variables = params?.variables ?? {}; - await queryClient.prefetchQuery({ - queryKey: orgPermissionsGetByMaskQueryKey(variables), - queryFn: () => getClient().query.orgPermissionsGetByMask(variables).unwrap(), - }); -} diff --git a/sdk/constructive-react/src/admin/hooks/queries/useOrgPermissionsGetMaskByNamesQuery.ts b/sdk/constructive-react/src/admin/hooks/queries/useOrgPermissionsGetMaskByNamesQuery.ts deleted file mode 100644 index 99199bceeb..0000000000 --- a/sdk/constructive-react/src/admin/hooks/queries/useOrgPermissionsGetMaskByNamesQuery.ts +++ /dev/null @@ -1,107 +0,0 @@ -/** - * Custom query hook for orgPermissionsGetMaskByNames - * @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 { customQueryKeys } from '../query-keys'; -import type { OrgPermissionsGetMaskByNamesVariables } from '../../orm/query'; -export type { OrgPermissionsGetMaskByNamesVariables } from '../../orm/query'; -/** Query key factory - re-exported from query-keys.ts */ -export const orgPermissionsGetMaskByNamesQueryKey = customQueryKeys.orgPermissionsGetMaskByNames; -/** - * Query hook for orgPermissionsGetMaskByNames - * - * @example - * ```tsx - * const { data, isLoading } = useOrgPermissionsGetMaskByNamesQuery({ variables: { names } }); - * - * if (data?.orgPermissionsGetMaskByNames) { - * console.log(data.orgPermissionsGetMaskByNames); - * } - * ``` - */ -export function useOrgPermissionsGetMaskByNamesQuery< - TData = { - orgPermissionsGetMaskByNames: string | null; - }, ->( - params?: { - variables?: OrgPermissionsGetMaskByNamesVariables; - } & Omit< - UseQueryOptions< - { - orgPermissionsGetMaskByNames: string | null; - }, - Error, - TData - >, - 'queryKey' | 'queryFn' - > -): UseQueryResult; -export function useOrgPermissionsGetMaskByNamesQuery< - TData = { - orgPermissionsGetMaskByNames: string | null; - }, ->( - params?: { - variables?: OrgPermissionsGetMaskByNamesVariables; - } & Omit< - UseQueryOptions< - { - orgPermissionsGetMaskByNames: string | null; - }, - Error, - TData - >, - 'queryKey' | 'queryFn' - > -): UseQueryResult { - const variables = params?.variables ?? {}; - const { variables: _variables, ...queryOptions } = params ?? {}; - void _variables; - return useQuery({ - queryKey: orgPermissionsGetMaskByNamesQueryKey(variables), - queryFn: () => getClient().query.orgPermissionsGetMaskByNames(variables).unwrap(), - ...queryOptions, - }); -} -/** - * Fetch orgPermissionsGetMaskByNames without React hooks - * - * @example - * ```ts - * const data = await fetchOrgPermissionsGetMaskByNamesQuery({ variables: { names } }); - * ``` - */ -export async function fetchOrgPermissionsGetMaskByNamesQuery(params?: { - variables?: OrgPermissionsGetMaskByNamesVariables; -}) { - const variables = params?.variables ?? {}; - return getClient().query.orgPermissionsGetMaskByNames(variables).unwrap(); -} -/** - * Prefetch orgPermissionsGetMaskByNames for SSR or cache warming - * - * @example - * ```ts - * await prefetchOrgPermissionsGetMaskByNamesQuery(queryClient, { variables: { names } }); - * ``` - */ -export async function prefetchOrgPermissionsGetMaskByNamesQuery( - queryClient: QueryClient, - params?: { - variables?: OrgPermissionsGetMaskByNamesVariables; - } -): Promise { - const variables = params?.variables ?? {}; - await queryClient.prefetchQuery({ - queryKey: orgPermissionsGetMaskByNamesQueryKey(variables), - queryFn: () => getClient().query.orgPermissionsGetMaskByNames(variables).unwrap(), - }); -} diff --git a/sdk/constructive-react/src/admin/hooks/queries/useOrgPermissionsGetMaskQuery.ts b/sdk/constructive-react/src/admin/hooks/queries/useOrgPermissionsGetMaskQuery.ts deleted file mode 100644 index dad45181bf..0000000000 --- a/sdk/constructive-react/src/admin/hooks/queries/useOrgPermissionsGetMaskQuery.ts +++ /dev/null @@ -1,107 +0,0 @@ -/** - * Custom query hook for orgPermissionsGetMask - * @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 { customQueryKeys } from '../query-keys'; -import type { OrgPermissionsGetMaskVariables } from '../../orm/query'; -export type { OrgPermissionsGetMaskVariables } from '../../orm/query'; -/** Query key factory - re-exported from query-keys.ts */ -export const orgPermissionsGetMaskQueryKey = customQueryKeys.orgPermissionsGetMask; -/** - * Query hook for orgPermissionsGetMask - * - * @example - * ```tsx - * const { data, isLoading } = useOrgPermissionsGetMaskQuery({ variables: { ids } }); - * - * if (data?.orgPermissionsGetMask) { - * console.log(data.orgPermissionsGetMask); - * } - * ``` - */ -export function useOrgPermissionsGetMaskQuery< - TData = { - orgPermissionsGetMask: string | null; - }, ->( - params?: { - variables?: OrgPermissionsGetMaskVariables; - } & Omit< - UseQueryOptions< - { - orgPermissionsGetMask: string | null; - }, - Error, - TData - >, - 'queryKey' | 'queryFn' - > -): UseQueryResult; -export function useOrgPermissionsGetMaskQuery< - TData = { - orgPermissionsGetMask: string | null; - }, ->( - params?: { - variables?: OrgPermissionsGetMaskVariables; - } & Omit< - UseQueryOptions< - { - orgPermissionsGetMask: string | null; - }, - Error, - TData - >, - 'queryKey' | 'queryFn' - > -): UseQueryResult { - const variables = params?.variables ?? {}; - const { variables: _variables, ...queryOptions } = params ?? {}; - void _variables; - return useQuery({ - queryKey: orgPermissionsGetMaskQueryKey(variables), - queryFn: () => getClient().query.orgPermissionsGetMask(variables).unwrap(), - ...queryOptions, - }); -} -/** - * Fetch orgPermissionsGetMask without React hooks - * - * @example - * ```ts - * const data = await fetchOrgPermissionsGetMaskQuery({ variables: { ids } }); - * ``` - */ -export async function fetchOrgPermissionsGetMaskQuery(params?: { - variables?: OrgPermissionsGetMaskVariables; -}) { - const variables = params?.variables ?? {}; - return getClient().query.orgPermissionsGetMask(variables).unwrap(); -} -/** - * Prefetch orgPermissionsGetMask for SSR or cache warming - * - * @example - * ```ts - * await prefetchOrgPermissionsGetMaskQuery(queryClient, { variables: { ids } }); - * ``` - */ -export async function prefetchOrgPermissionsGetMaskQuery( - queryClient: QueryClient, - params?: { - variables?: OrgPermissionsGetMaskVariables; - } -): Promise { - const variables = params?.variables ?? {}; - await queryClient.prefetchQuery({ - queryKey: orgPermissionsGetMaskQueryKey(variables), - queryFn: () => getClient().query.orgPermissionsGetMask(variables).unwrap(), - }); -} diff --git a/sdk/constructive-react/src/admin/hooks/queries/useOrgPermissionsGetPaddedMaskQuery.ts b/sdk/constructive-react/src/admin/hooks/queries/useOrgPermissionsGetPaddedMaskQuery.ts deleted file mode 100644 index 4b4f80e725..0000000000 --- a/sdk/constructive-react/src/admin/hooks/queries/useOrgPermissionsGetPaddedMaskQuery.ts +++ /dev/null @@ -1,107 +0,0 @@ -/** - * Custom query hook for orgPermissionsGetPaddedMask - * @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 { customQueryKeys } from '../query-keys'; -import type { OrgPermissionsGetPaddedMaskVariables } from '../../orm/query'; -export type { OrgPermissionsGetPaddedMaskVariables } from '../../orm/query'; -/** Query key factory - re-exported from query-keys.ts */ -export const orgPermissionsGetPaddedMaskQueryKey = customQueryKeys.orgPermissionsGetPaddedMask; -/** - * Query hook for orgPermissionsGetPaddedMask - * - * @example - * ```tsx - * const { data, isLoading } = useOrgPermissionsGetPaddedMaskQuery({ variables: { mask } }); - * - * if (data?.orgPermissionsGetPaddedMask) { - * console.log(data.orgPermissionsGetPaddedMask); - * } - * ``` - */ -export function useOrgPermissionsGetPaddedMaskQuery< - TData = { - orgPermissionsGetPaddedMask: string | null; - }, ->( - params?: { - variables?: OrgPermissionsGetPaddedMaskVariables; - } & Omit< - UseQueryOptions< - { - orgPermissionsGetPaddedMask: string | null; - }, - Error, - TData - >, - 'queryKey' | 'queryFn' - > -): UseQueryResult; -export function useOrgPermissionsGetPaddedMaskQuery< - TData = { - orgPermissionsGetPaddedMask: string | null; - }, ->( - params?: { - variables?: OrgPermissionsGetPaddedMaskVariables; - } & Omit< - UseQueryOptions< - { - orgPermissionsGetPaddedMask: string | null; - }, - Error, - TData - >, - 'queryKey' | 'queryFn' - > -): UseQueryResult { - const variables = params?.variables ?? {}; - const { variables: _variables, ...queryOptions } = params ?? {}; - void _variables; - return useQuery({ - queryKey: orgPermissionsGetPaddedMaskQueryKey(variables), - queryFn: () => getClient().query.orgPermissionsGetPaddedMask(variables).unwrap(), - ...queryOptions, - }); -} -/** - * Fetch orgPermissionsGetPaddedMask without React hooks - * - * @example - * ```ts - * const data = await fetchOrgPermissionsGetPaddedMaskQuery({ variables: { mask } }); - * ``` - */ -export async function fetchOrgPermissionsGetPaddedMaskQuery(params?: { - variables?: OrgPermissionsGetPaddedMaskVariables; -}) { - const variables = params?.variables ?? {}; - return getClient().query.orgPermissionsGetPaddedMask(variables).unwrap(); -} -/** - * Prefetch orgPermissionsGetPaddedMask for SSR or cache warming - * - * @example - * ```ts - * await prefetchOrgPermissionsGetPaddedMaskQuery(queryClient, { variables: { mask } }); - * ``` - */ -export async function prefetchOrgPermissionsGetPaddedMaskQuery( - queryClient: QueryClient, - params?: { - variables?: OrgPermissionsGetPaddedMaskVariables; - } -): Promise { - const variables = params?.variables ?? {}; - await queryClient.prefetchQuery({ - queryKey: orgPermissionsGetPaddedMaskQueryKey(variables), - queryFn: () => getClient().query.orgPermissionsGetPaddedMask(variables).unwrap(), - }); -} diff --git a/sdk/constructive-react/src/admin/hooks/queries/useOrgPermissionsQuery.ts b/sdk/constructive-react/src/admin/hooks/queries/useOrgPermissionsQuery.ts deleted file mode 100644 index b5272fe6fe..0000000000 --- a/sdk/constructive-react/src/admin/hooks/queries/useOrgPermissionsQuery.ts +++ /dev/null @@ -1,151 +0,0 @@ -/** - * Defines available permissions as named bits within a bitmask, used by the RBAC system for access control - * @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 { orgPermissionKeys } from '../query-keys'; -import type { - OrgPermissionSelect, - OrgPermissionWithRelations, - OrgPermissionFilter, - OrgPermissionOrderBy, -} from '../../orm/input-types'; -import type { - FindManyArgs, - InferSelectResult, - ConnectionResult, - HookStrictSelect, -} from '../../orm/select-types'; -export type { - OrgPermissionSelect, - OrgPermissionWithRelations, - OrgPermissionFilter, - OrgPermissionOrderBy, -} from '../../orm/input-types'; -/** Query key factory - re-exported from query-keys.ts */ -export const orgPermissionsQueryKey = orgPermissionKeys.list; -/** - * Defines available permissions as named bits within a bitmask, used by the RBAC system for access control - * - * @example - * ```tsx - * const { data, isLoading } = useOrgPermissionsQuery({ - * selection: { - * fields: { id: true, name: true }, - * where: { name: { equalTo: "example" } }, - * orderBy: ['CREATED_AT_DESC'], - * first: 10, - * }, - * }); - * ``` - */ -export function useOrgPermissionsQuery< - S extends OrgPermissionSelect, - TData = { - orgPermissions: ConnectionResult>; - }, ->( - params: { - selection: { - fields: S; - } & Omit, 'fields'> & - HookStrictSelect, OrgPermissionSelect>; - } & Omit< - UseQueryOptions< - { - orgPermissions: ConnectionResult>; - }, - Error, - TData - >, - 'queryKey' | 'queryFn' - > -): UseQueryResult; -export function useOrgPermissionsQuery( - params: { - selection: ListSelectionConfig; - } & Omit, 'queryKey' | 'queryFn'> -) { - const args = buildListSelectionArgs< - OrgPermissionSelect, - OrgPermissionFilter, - OrgPermissionOrderBy - >(params.selection); - const { selection: _selection, ...queryOptions } = params ?? {}; - void _selection; - return useQuery({ - queryKey: orgPermissionKeys.list(args), - queryFn: () => getClient().orgPermission.findMany(args).unwrap(), - ...queryOptions, - }); -} -/** - * Defines available permissions as named bits within a bitmask, used by the RBAC system for access control - * - * @example - * ```ts - * const data = await fetchOrgPermissionsQuery({ - * selection: { - * fields: { id: true }, - * first: 10, - * }, - * }); - * ``` - */ -export async function fetchOrgPermissionsQuery(params: { - selection: { - fields: S; - } & Omit, 'fields'> & - HookStrictSelect, OrgPermissionSelect>; -}): Promise<{ - orgPermissions: ConnectionResult>; -}>; -export async function fetchOrgPermissionsQuery(params: { - selection: ListSelectionConfig; -}) { - const args = buildListSelectionArgs< - OrgPermissionSelect, - OrgPermissionFilter, - OrgPermissionOrderBy - >(params.selection); - return getClient().orgPermission.findMany(args).unwrap(); -} -/** - * Defines available permissions as named bits within a bitmask, used by the RBAC system for access control - * - * @example - * ```ts - * await prefetchOrgPermissionsQuery(queryClient, { selection: { fields: { id: true }, first: 10 } }); - * ``` - */ -export async function prefetchOrgPermissionsQuery( - queryClient: QueryClient, - params: { - selection: { - fields: S; - } & Omit, 'fields'> & - HookStrictSelect, OrgPermissionSelect>; - } -): Promise; -export async function prefetchOrgPermissionsQuery( - queryClient: QueryClient, - params: { - selection: ListSelectionConfig; - } -): Promise { - const args = buildListSelectionArgs< - OrgPermissionSelect, - OrgPermissionFilter, - OrgPermissionOrderBy - >(params.selection); - await queryClient.prefetchQuery({ - queryKey: orgPermissionKeys.list(args), - queryFn: () => getClient().orgPermission.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 fc847018db..eeb0a529ca 100644 --- a/sdk/constructive-react/src/admin/hooks/query-keys.ts +++ b/sdk/constructive-react/src/admin/hooks/query-keys.ts @@ -28,6 +28,27 @@ export const appAdminGrantKeys = { /** Detail query key for specific item */ detail: (id: string | number) => [...appAdminGrantKeys.details(), id] as const, } as const; +export const appCapabilityDefaultCapabilityKeys = { + /** All appCapabilityDefaultCapability queries */ all: [ + 'appcapabilitydefaultcapability', + ] as const, + /** List query keys */ lists: () => [...appCapabilityDefaultCapabilityKeys.all, 'list'] as const, + /** List query key with variables */ list: (variables?: object) => + [...appCapabilityDefaultCapabilityKeys.lists(), variables] as const, + /** Detail query keys */ details: () => + [...appCapabilityDefaultCapabilityKeys.all, 'detail'] as const, + /** Detail query key for specific item */ detail: (id: string | number) => + [...appCapabilityDefaultCapabilityKeys.details(), id] as const, +} as const; +export const appCapabilityDefaultGrantKeys = { + /** All appCapabilityDefaultGrant queries */ all: ['appcapabilitydefaultgrant'] as const, + /** List query keys */ lists: () => [...appCapabilityDefaultGrantKeys.all, 'list'] as const, + /** List query key with variables */ list: (variables?: object) => + [...appCapabilityDefaultGrantKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...appCapabilityDefaultGrantKeys.all, 'detail'] as const, + /** Detail query key for specific item */ detail: (id: string | number) => + [...appCapabilityDefaultGrantKeys.details(), id] as const, +} as const; export const appClaimedInviteKeys = { /** All appClaimedInvite queries */ all: ['appclaimedinvite'] as const, /** List query keys */ lists: () => [...appClaimedInviteKeys.all, 'list'] as const, @@ -82,45 +103,6 @@ export const appOwnerGrantKeys = { /** Detail query key for specific item */ detail: (id: string | number) => [...appOwnerGrantKeys.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, - /** List query key with variables */ list: (variables?: object) => - [...appPermissionKeys.lists(), variables] as const, - /** Detail query keys */ details: () => [...appPermissionKeys.all, 'detail'] as const, - /** Detail query key for specific item */ detail: (id: string | number) => - [...appPermissionKeys.details(), id] as const, -} as const; -export const appPermissionDefaultKeys = { - /** All appPermissionDefault queries */ all: ['apppermissiondefault'] as const, - /** List query keys */ lists: () => [...appPermissionDefaultKeys.all, 'list'] as const, - /** List query key with variables */ list: (variables?: object) => - [...appPermissionDefaultKeys.lists(), variables] as const, - /** Detail query keys */ details: () => [...appPermissionDefaultKeys.all, 'detail'] as const, - /** Detail query key for specific item */ detail: (id: string | number) => - [...appPermissionDefaultKeys.details(), id] as const, -} as const; -export const appPermissionDefaultGrantKeys = { - /** All appPermissionDefaultGrant queries */ all: ['apppermissiondefaultgrant'] as const, - /** List query keys */ lists: () => [...appPermissionDefaultGrantKeys.all, 'list'] as const, - /** List query key with variables */ list: (variables?: object) => - [...appPermissionDefaultGrantKeys.lists(), variables] as const, - /** Detail query keys */ details: () => [...appPermissionDefaultGrantKeys.all, 'detail'] as const, - /** Detail query key for specific item */ detail: (id: string | number) => - [...appPermissionDefaultGrantKeys.details(), id] as const, -} as const; -export const appPermissionDefaultPermissionKeys = { - /** All appPermissionDefaultPermission queries */ all: [ - 'apppermissiondefaultpermission', - ] as const, - /** List query keys */ lists: () => [...appPermissionDefaultPermissionKeys.all, 'list'] as const, - /** List query key with variables */ list: (variables?: object) => - [...appPermissionDefaultPermissionKeys.lists(), variables] as const, - /** Detail query keys */ details: () => - [...appPermissionDefaultPermissionKeys.all, 'detail'] as const, - /** Detail query key for specific item */ detail: (id: string | number) => - [...appPermissionDefaultPermissionKeys.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, @@ -139,6 +121,27 @@ export const orgAdminGrantKeys = { /** Detail query key for specific item */ detail: (id: string | number) => [...orgAdminGrantKeys.details(), id] as const, } as const; +export const orgCapabilityDefaultCapabilityKeys = { + /** All orgCapabilityDefaultCapability queries */ all: [ + 'orgcapabilitydefaultcapability', + ] as const, + /** List query keys */ lists: () => [...orgCapabilityDefaultCapabilityKeys.all, 'list'] as const, + /** List query key with variables */ list: (variables?: object) => + [...orgCapabilityDefaultCapabilityKeys.lists(), variables] as const, + /** Detail query keys */ details: () => + [...orgCapabilityDefaultCapabilityKeys.all, 'detail'] as const, + /** Detail query key for specific item */ detail: (id: string | number) => + [...orgCapabilityDefaultCapabilityKeys.details(), id] as const, +} as const; +export const orgCapabilityDefaultGrantKeys = { + /** All orgCapabilityDefaultGrant queries */ all: ['orgcapabilitydefaultgrant'] as const, + /** List query keys */ lists: () => [...orgCapabilityDefaultGrantKeys.all, 'list'] as const, + /** List query key with variables */ list: (variables?: object) => + [...orgCapabilityDefaultGrantKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...orgCapabilityDefaultGrantKeys.all, 'detail'] as const, + /** Detail query key for specific item */ detail: (id: string | number) => + [...orgCapabilityDefaultGrantKeys.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, @@ -256,73 +259,14 @@ export const orgOwnerGrantKeys = { /** Detail query key for specific item */ detail: (id: string | number) => [...orgOwnerGrantKeys.details(), id] as const, } as const; -export const orgPermissionKeys = { - /** All orgPermission queries */ all: ['orgpermission'] as const, - /** List query keys */ lists: () => [...orgPermissionKeys.all, 'list'] as const, - /** List query key with variables */ list: (variables?: object) => - [...orgPermissionKeys.lists(), variables] as const, - /** Detail query keys */ details: () => [...orgPermissionKeys.all, 'detail'] as const, - /** Detail query key for specific item */ detail: (id: string | number) => - [...orgPermissionKeys.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 orgPermissionDefaultGrantKeys = { - /** All orgPermissionDefaultGrant queries */ all: ['orgpermissiondefaultgrant'] as const, - /** List query keys */ lists: () => [...orgPermissionDefaultGrantKeys.all, 'list'] as const, - /** List query key with variables */ list: (variables?: object) => - [...orgPermissionDefaultGrantKeys.lists(), variables] as const, - /** Detail query keys */ details: () => [...orgPermissionDefaultGrantKeys.all, 'detail'] as const, - /** Detail query key for specific item */ detail: (id: string | number) => - [...orgPermissionDefaultGrantKeys.details(), id] as const, -} as const; -export const orgPermissionDefaultPermissionKeys = { - /** All orgPermissionDefaultPermission queries */ all: [ - 'orgpermissiondefaultpermission', - ] as const, - /** List query keys */ lists: () => [...orgPermissionDefaultPermissionKeys.all, 'list'] as const, - /** List query key with variables */ list: (variables?: object) => - [...orgPermissionDefaultPermissionKeys.lists(), variables] as const, - /** Detail query keys */ details: () => - [...orgPermissionDefaultPermissionKeys.all, 'detail'] as const, - /** Detail query key for specific item */ detail: (id: string | number) => - [...orgPermissionDefaultPermissionKeys.details(), id] as const, -} as const; // ============================================================================ // Custom Query Keys // ============================================================================ export const customQueryKeys = { - /** Query key for appPermissionsGetByMask */ appPermissionsGetByMask: (variables?: object) => - ['appPermissionsGetByMask', variables] as const, - /** Query key for appPermissionsGetMask */ appPermissionsGetMask: (variables?: object) => - ['appPermissionsGetMask', variables] as const, - /** Query key for appPermissionsGetMaskByNames */ appPermissionsGetMaskByNames: ( - variables?: object - ) => ['appPermissionsGetMaskByNames', variables] as const, - /** Query key for appPermissionsGetPaddedMask */ appPermissionsGetPaddedMask: ( - variables?: object - ) => ['appPermissionsGetPaddedMask', variables] as const, /** Query key for orgIsManagerOf */ orgIsManagerOf: (variables?: object) => ['orgIsManagerOf', variables] as const, - /** Query key for orgPermissionsGetByMask */ orgPermissionsGetByMask: (variables?: object) => - ['orgPermissionsGetByMask', variables] as const, - /** Query key for orgPermissionsGetMask */ orgPermissionsGetMask: (variables?: object) => - ['orgPermissionsGetMask', variables] as const, - /** Query key for orgPermissionsGetMaskByNames */ orgPermissionsGetMaskByNames: ( - variables?: object - ) => ['orgPermissionsGetMaskByNames', variables] as const, - /** Query key for orgPermissionsGetPaddedMask */ orgPermissionsGetPaddedMask: ( - variables?: object - ) => ['orgPermissionsGetPaddedMask', variables] as const, } as const; /** @@ -348,18 +292,18 @@ export const customQueryKeys = { */ export const queryKeys = { appAdminGrant: appAdminGrantKeys, + appCapabilityDefaultCapability: appCapabilityDefaultCapabilityKeys, + appCapabilityDefaultGrant: appCapabilityDefaultGrantKeys, appClaimedInvite: appClaimedInviteKeys, appGrant: appGrantKeys, appInvite: appInviteKeys, appMembership: appMembershipKeys, appMembershipDefault: appMembershipDefaultKeys, appOwnerGrant: appOwnerGrantKeys, - appPermission: appPermissionKeys, - appPermissionDefault: appPermissionDefaultKeys, - appPermissionDefaultGrant: appPermissionDefaultGrantKeys, - appPermissionDefaultPermission: appPermissionDefaultPermissionKeys, membershipType: membershipTypeKeys, orgAdminGrant: orgAdminGrantKeys, + orgCapabilityDefaultCapability: orgCapabilityDefaultCapabilityKeys, + orgCapabilityDefaultGrant: orgCapabilityDefaultGrantKeys, orgChartEdge: orgChartEdgeKeys, orgChartEdgeGrant: orgChartEdgeGrantKeys, orgClaimedInvite: orgClaimedInviteKeys, @@ -373,10 +317,6 @@ export const queryKeys = { orgMembershipDefault: orgMembershipDefaultKeys, orgMembershipSetting: orgMembershipSettingKeys, orgOwnerGrant: orgOwnerGrantKeys, - orgPermission: orgPermissionKeys, - orgPermissionDefault: orgPermissionDefaultKeys, - orgPermissionDefaultGrant: orgPermissionDefaultGrantKeys, - orgPermissionDefaultPermission: orgPermissionDefaultPermissionKeys, 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 c5a36159a7..29954ce8ff 100644 --- a/sdk/constructive-react/src/admin/orm/README.md +++ b/sdk/constructive-react/src/admin/orm/README.md @@ -22,18 +22,18 @@ const db = createClient({ | Model | Operations | |-------|------------| | `appAdminGrant` | findMany, findOne, create, update, delete | +| `appCapabilityDefaultCapability` | findMany, findOne, create, update, delete | +| `appCapabilityDefaultGrant` | findMany, findOne, create, update, delete | | `appClaimedInvite` | findMany, findOne, create, update, delete | | `appGrant` | findMany, findOne, create, update, delete | | `appInvite` | findMany, findOne, create, update, delete | | `appMembership` | findMany, findOne, create, update, delete | | `appMembershipDefault` | findMany, findOne, create, update, delete | | `appOwnerGrant` | findMany, findOne, create, update, delete | -| `appPermission` | findMany, findOne, create, update, delete | -| `appPermissionDefault` | findMany, findOne, create, update, delete | -| `appPermissionDefaultGrant` | findMany, findOne, create, update, delete | -| `appPermissionDefaultPermission` | findMany, findOne, create, update, delete | | `membershipType` | findMany, findOne, create, update, delete | | `orgAdminGrant` | findMany, findOne, create, update, delete | +| `orgCapabilityDefaultCapability` | findMany, findOne, create, update, delete | +| `orgCapabilityDefaultGrant` | findMany, findOne, create, update, delete | | `orgChartEdge` | findMany, findOne, create, update, delete | | `orgChartEdgeGrant` | findMany, findOne, create, update, delete | | `orgClaimedInvite` | findMany, findOne, create, update, delete | @@ -47,10 +47,6 @@ const db = createClient({ | `orgMembershipDefault` | findMany, findOne, create, update, delete | | `orgMembershipSetting` | findMany, findOne, create, update, delete | | `orgOwnerGrant` | findMany, findOne, create, update, delete | -| `orgPermission` | findMany, findOne, create, update, delete | -| `orgPermissionDefault` | findMany, findOne, create, update, delete | -| `orgPermissionDefaultGrant` | findMany, findOne, create, update, delete | -| `orgPermissionDefaultPermission` | findMany, findOne, create, update, delete | ## Table Operations @@ -88,6 +84,72 @@ const updated = await db.appAdminGrant.update({ where: { id: '' }, data: { const deleted = await db.appAdminGrant.delete({ where: { id: '' } }).execute(); ``` +### `db.appCapabilityDefaultCapability` + +CRUD operations for AppCapabilityDefaultCapability records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `capabilityId` | UUID | Yes | +| `createdAt` | Datetime | No | +| `id` | UUID | No | +| `updatedAt` | Datetime | No | + +**Operations:** + +```typescript +// List all appCapabilityDefaultCapability records +const items = await db.appCapabilityDefaultCapability.findMany({ select: { capabilityId: true, createdAt: true, id: true, updatedAt: true } }).execute(); + +// Get one by id +const item = await db.appCapabilityDefaultCapability.findOne({ id: '', select: { capabilityId: true, createdAt: true, id: true, updatedAt: true } }).execute(); + +// Create +const created = await db.appCapabilityDefaultCapability.create({ data: { capabilityId: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.appCapabilityDefaultCapability.update({ where: { id: '' }, data: { capabilityId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.appCapabilityDefaultCapability.delete({ where: { id: '' } }).execute(); +``` + +### `db.appCapabilityDefaultGrant` + +CRUD operations for AppCapabilityDefaultGrant records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `capabilityId` | UUID | Yes | +| `createdAt` | Datetime | No | +| `grantorId` | UUID | Yes | +| `id` | UUID | No | +| `isGrant` | Boolean | Yes | +| `updatedAt` | Datetime | No | + +**Operations:** + +```typescript +// List all appCapabilityDefaultGrant records +const items = await db.appCapabilityDefaultGrant.findMany({ select: { capabilityId: true, createdAt: true, grantorId: true, id: true, isGrant: true, updatedAt: true } }).execute(); + +// Get one by id +const item = await db.appCapabilityDefaultGrant.findOne({ id: '', select: { capabilityId: true, createdAt: true, grantorId: true, id: true, isGrant: true, updatedAt: true } }).execute(); + +// Create +const created = await db.appCapabilityDefaultGrant.create({ data: { capabilityId: '', grantorId: '', isGrant: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.appCapabilityDefaultGrant.update({ where: { id: '' }, data: { capabilityId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.appCapabilityDefaultGrant.delete({ where: { id: '' } }).execute(); +``` + ### `db.appClaimedInvite` CRUD operations for AppClaimedInvite records. @@ -131,24 +193,24 @@ CRUD operations for AppGrant records. | Field | Type | Editable | |-------|------|----------| | `actorId` | UUID | Yes | +| `capabilities` | BitString | Yes | | `createdAt` | Datetime | No | | `grantorId` | UUID | Yes | | `id` | UUID | No | | `isGrant` | Boolean | Yes | -| `permissions` | BitString | Yes | | `updatedAt` | Datetime | No | **Operations:** ```typescript // List all appGrant records -const items = await db.appGrant.findMany({ select: { actorId: true, createdAt: true, grantorId: true, id: true, isGrant: true, permissions: true, updatedAt: true } }).execute(); +const items = await db.appGrant.findMany({ select: { actorId: true, capabilities: true, createdAt: true, grantorId: true, id: true, isGrant: true, updatedAt: true } }).execute(); // Get one by id -const item = await db.appGrant.findOne({ id: '', select: { actorId: true, createdAt: true, grantorId: true, id: true, isGrant: true, permissions: true, updatedAt: true } }).execute(); +const item = await db.appGrant.findOne({ id: '', select: { actorId: true, capabilities: true, createdAt: true, grantorId: true, id: true, isGrant: true, updatedAt: true } }).execute(); // Create -const created = await db.appGrant.create({ data: { actorId: '', grantorId: '', isGrant: '', permissions: '' }, select: { id: true } }).execute(); +const created = await db.appGrant.create({ data: { actorId: '', capabilities: '', grantorId: '', isGrant: '' }, select: { id: true } }).execute(); // Update const updated = await db.appGrant.update({ where: { id: '' }, data: { actorId: '' }, select: { id: true } }).execute(); @@ -209,6 +271,7 @@ CRUD operations for AppMembership records. | Field | Type | Editable | |-------|------|----------| | `actorId` | UUID | Yes | +| `capabilities` | BitString | Yes | | `createdAt` | Datetime | No | | `createdBy` | UUID | Yes | | `granted` | BitString | Yes | @@ -220,7 +283,6 @@ CRUD operations for AppMembership records. | `isDisabled` | Boolean | Yes | | `isOwner` | Boolean | Yes | | `isVerified` | Boolean | Yes | -| `permissions` | BitString | Yes | | `profileId` | UUID | Yes | | `updatedAt` | Datetime | No | | `updatedBy` | UUID | Yes | @@ -229,13 +291,13 @@ CRUD operations for AppMembership records. ```typescript // List all appMembership records -const items = await db.appMembership.findMany({ select: { actorId: true, createdAt: true, createdBy: true, granted: true, id: true, isActive: true, isAdmin: true, isApproved: true, isBanned: true, isDisabled: true, isOwner: true, isVerified: true, permissions: true, profileId: true, updatedAt: true, updatedBy: true } }).execute(); +const items = await db.appMembership.findMany({ select: { actorId: true, capabilities: true, createdAt: true, createdBy: true, granted: true, id: true, isActive: true, isAdmin: true, isApproved: true, isBanned: true, isDisabled: true, isOwner: true, isVerified: true, profileId: true, updatedAt: true, updatedBy: true } }).execute(); // Get one by id -const item = await db.appMembership.findOne({ id: '', select: { actorId: true, createdAt: true, createdBy: true, granted: true, id: true, isActive: true, isAdmin: true, isApproved: true, isBanned: true, isDisabled: true, isOwner: true, isVerified: true, permissions: true, profileId: true, updatedAt: true, updatedBy: true } }).execute(); +const item = await db.appMembership.findOne({ id: '', select: { actorId: true, capabilities: true, createdAt: true, createdBy: true, granted: true, id: true, isActive: true, isAdmin: true, isApproved: true, isBanned: true, isDisabled: true, isOwner: true, isVerified: true, profileId: true, updatedAt: true, updatedBy: true } }).execute(); // Create -const created = await db.appMembership.create({ data: { actorId: '', createdBy: '', granted: '', isActive: '', isAdmin: '', isApproved: '', isBanned: '', isDisabled: '', isOwner: '', isVerified: '', permissions: '', profileId: '', updatedBy: '' }, select: { id: true } }).execute(); +const created = await db.appMembership.create({ data: { actorId: '', capabilities: '', createdBy: '', granted: '', isActive: '', isAdmin: '', isApproved: '', isBanned: '', isDisabled: '', isOwner: '', isVerified: '', profileId: '', updatedBy: '' }, select: { id: true } }).execute(); // Update const updated = await db.appMembership.update({ where: { id: '' }, data: { actorId: '' }, select: { id: true } }).execute(); @@ -313,178 +375,117 @@ const updated = await db.appOwnerGrant.update({ where: { id: '' }, data: { const deleted = await db.appOwnerGrant.delete({ where: { id: '' } }).execute(); ``` -### `db.appPermission` +### `db.membershipType` -CRUD operations for AppPermission records. +CRUD operations for MembershipType records. **Fields:** | Field | Type | Editable | |-------|------|----------| -| `bitnum` | Int | Yes | -| `bitstr` | BitString | Yes | | `description` | String | Yes | -| `id` | UUID | No | +| `hasUsersTableEntry` | Boolean | Yes | +| `id` | Int | No | | `name` | String | Yes | +| `parentMembershipType` | Int | Yes | +| `scope` | String | Yes | **Operations:** ```typescript -// List all appPermission records -const items = await db.appPermission.findMany({ select: { bitnum: true, bitstr: true, description: true, id: true, name: true } }).execute(); - -// Get one by id -const item = await db.appPermission.findOne({ id: '', select: { bitnum: true, bitstr: true, description: true, id: true, name: true } }).execute(); - -// Create -const created = await db.appPermission.create({ data: { bitnum: '', bitstr: '', description: '', name: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.appPermission.update({ where: { id: '' }, data: { bitnum: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.appPermission.delete({ where: { id: '' } }).execute(); -``` - -### `db.appPermissionDefault` - -CRUD operations for AppPermissionDefault records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `permissions` | BitString | Yes | - -**Operations:** - -```typescript -// List all appPermissionDefault records -const items = await db.appPermissionDefault.findMany({ select: { id: true, permissions: true } }).execute(); +// List all membershipType records +const items = await db.membershipType.findMany({ select: { description: true, hasUsersTableEntry: true, id: true, name: true, parentMembershipType: true, scope: true } }).execute(); // Get one by id -const item = await db.appPermissionDefault.findOne({ id: '', select: { id: true, permissions: true } }).execute(); +const item = await db.membershipType.findOne({ id: '', select: { description: true, hasUsersTableEntry: true, id: true, name: true, parentMembershipType: true, scope: true } }).execute(); // Create -const created = await db.appPermissionDefault.create({ data: { permissions: '' }, select: { id: true } }).execute(); +const created = await db.membershipType.create({ data: { description: '', hasUsersTableEntry: '', name: '', parentMembershipType: '', scope: '' }, select: { id: true } }).execute(); // Update -const updated = await db.appPermissionDefault.update({ where: { id: '' }, data: { permissions: '' }, select: { id: true } }).execute(); +const updated = await db.membershipType.update({ where: { id: '' }, data: { description: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.appPermissionDefault.delete({ where: { id: '' } }).execute(); +const deleted = await db.membershipType.delete({ where: { id: '' } }).execute(); ``` -### `db.appPermissionDefaultGrant` +### `db.orgAdminGrant` -CRUD operations for AppPermissionDefaultGrant records. +CRUD operations for OrgAdminGrant records. **Fields:** | Field | Type | Editable | |-------|------|----------| +| `actorId` | UUID | Yes | | `createdAt` | Datetime | No | +| `entityId` | UUID | Yes | | `grantorId` | UUID | Yes | | `id` | UUID | No | | `isGrant` | Boolean | Yes | -| `permissionId` | UUID | Yes | | `updatedAt` | Datetime | No | **Operations:** ```typescript -// List all appPermissionDefaultGrant records -const items = await db.appPermissionDefaultGrant.findMany({ select: { createdAt: true, grantorId: true, id: true, isGrant: true, permissionId: true, updatedAt: true } }).execute(); +// List all orgAdminGrant records +const items = await db.orgAdminGrant.findMany({ select: { actorId: true, createdAt: true, entityId: true, grantorId: true, id: true, isGrant: true, updatedAt: true } }).execute(); // Get one by id -const item = await db.appPermissionDefaultGrant.findOne({ id: '', select: { createdAt: true, grantorId: true, id: true, isGrant: true, permissionId: true, updatedAt: true } }).execute(); +const item = await db.orgAdminGrant.findOne({ id: '', select: { actorId: true, createdAt: true, entityId: true, grantorId: true, id: true, isGrant: true, updatedAt: true } }).execute(); // Create -const created = await db.appPermissionDefaultGrant.create({ data: { grantorId: '', isGrant: '', permissionId: '' }, select: { id: true } }).execute(); +const created = await db.orgAdminGrant.create({ data: { actorId: '', entityId: '', grantorId: '', isGrant: '' }, select: { id: true } }).execute(); // Update -const updated = await db.appPermissionDefaultGrant.update({ where: { id: '' }, data: { grantorId: '' }, select: { id: true } }).execute(); +const updated = await db.orgAdminGrant.update({ where: { id: '' }, data: { actorId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.appPermissionDefaultGrant.delete({ where: { id: '' } }).execute(); +const deleted = await db.orgAdminGrant.delete({ where: { id: '' } }).execute(); ``` -### `db.appPermissionDefaultPermission` +### `db.orgCapabilityDefaultCapability` -CRUD operations for AppPermissionDefaultPermission records. +CRUD operations for OrgCapabilityDefaultCapability records. **Fields:** | Field | Type | Editable | |-------|------|----------| +| `capabilityId` | UUID | Yes | | `createdAt` | Datetime | No | +| `entityId` | UUID | Yes | | `id` | UUID | No | -| `permissionId` | UUID | Yes | | `updatedAt` | Datetime | No | **Operations:** ```typescript -// List all appPermissionDefaultPermission records -const items = await db.appPermissionDefaultPermission.findMany({ select: { createdAt: true, id: true, permissionId: true, updatedAt: true } }).execute(); - -// Get one by id -const item = await db.appPermissionDefaultPermission.findOne({ id: '', select: { createdAt: true, id: true, permissionId: true, updatedAt: true } }).execute(); - -// Create -const created = await db.appPermissionDefaultPermission.create({ data: { permissionId: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.appPermissionDefaultPermission.update({ where: { id: '' }, data: { permissionId: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.appPermissionDefaultPermission.delete({ where: { id: '' } }).execute(); -``` - -### `db.membershipType` - -CRUD operations for MembershipType records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `description` | String | Yes | -| `hasUsersTableEntry` | Boolean | Yes | -| `id` | Int | No | -| `name` | String | Yes | -| `parentMembershipType` | Int | Yes | -| `scope` | String | Yes | - -**Operations:** - -```typescript -// List all membershipType records -const items = await db.membershipType.findMany({ select: { description: true, hasUsersTableEntry: true, id: true, name: true, parentMembershipType: true, scope: true } }).execute(); +// List all orgCapabilityDefaultCapability records +const items = await db.orgCapabilityDefaultCapability.findMany({ select: { capabilityId: true, createdAt: true, entityId: true, id: true, updatedAt: true } }).execute(); // Get one by id -const item = await db.membershipType.findOne({ id: '', select: { description: true, hasUsersTableEntry: true, id: true, name: true, parentMembershipType: true, scope: true } }).execute(); +const item = await db.orgCapabilityDefaultCapability.findOne({ id: '', select: { capabilityId: true, createdAt: true, entityId: true, id: true, updatedAt: true } }).execute(); // Create -const created = await db.membershipType.create({ data: { description: '', hasUsersTableEntry: '', name: '', parentMembershipType: '', scope: '' }, select: { id: true } }).execute(); +const created = await db.orgCapabilityDefaultCapability.create({ data: { capabilityId: '', entityId: '' }, select: { id: true } }).execute(); // Update -const updated = await db.membershipType.update({ where: { id: '' }, data: { description: '' }, select: { id: true } }).execute(); +const updated = await db.orgCapabilityDefaultCapability.update({ where: { id: '' }, data: { capabilityId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.membershipType.delete({ where: { id: '' } }).execute(); +const deleted = await db.orgCapabilityDefaultCapability.delete({ where: { id: '' } }).execute(); ``` -### `db.orgAdminGrant` +### `db.orgCapabilityDefaultGrant` -CRUD operations for OrgAdminGrant records. +CRUD operations for OrgCapabilityDefaultGrant records. **Fields:** | Field | Type | Editable | |-------|------|----------| -| `actorId` | UUID | Yes | +| `capabilityId` | UUID | Yes | | `createdAt` | Datetime | No | | `entityId` | UUID | Yes | | `grantorId` | UUID | Yes | @@ -495,20 +496,20 @@ CRUD operations for OrgAdminGrant records. **Operations:** ```typescript -// List all orgAdminGrant records -const items = await db.orgAdminGrant.findMany({ select: { actorId: true, createdAt: true, entityId: true, grantorId: true, id: true, isGrant: true, updatedAt: true } }).execute(); +// List all orgCapabilityDefaultGrant records +const items = await db.orgCapabilityDefaultGrant.findMany({ select: { capabilityId: true, createdAt: true, entityId: true, grantorId: true, id: true, isGrant: true, updatedAt: true } }).execute(); // Get one by id -const item = await db.orgAdminGrant.findOne({ id: '', select: { actorId: true, createdAt: true, entityId: true, grantorId: true, id: true, isGrant: true, updatedAt: true } }).execute(); +const item = await db.orgCapabilityDefaultGrant.findOne({ id: '', select: { capabilityId: true, createdAt: true, entityId: true, grantorId: true, id: true, isGrant: true, updatedAt: true } }).execute(); // Create -const created = await db.orgAdminGrant.create({ data: { actorId: '', entityId: '', grantorId: '', isGrant: '' }, select: { id: true } }).execute(); +const created = await db.orgCapabilityDefaultGrant.create({ data: { capabilityId: '', entityId: '', grantorId: '', isGrant: '' }, select: { id: true } }).execute(); // Update -const updated = await db.orgAdminGrant.update({ where: { id: '' }, data: { actorId: '' }, select: { id: true } }).execute(); +const updated = await db.orgCapabilityDefaultGrant.update({ where: { id: '' }, data: { capabilityId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.orgAdminGrant.delete({ where: { id: '' } }).execute(); +const deleted = await db.orgCapabilityDefaultGrant.delete({ where: { id: '' } }).execute(); ``` ### `db.orgChartEdge` @@ -688,25 +689,25 @@ CRUD operations for OrgGrant records. | Field | Type | Editable | |-------|------|----------| | `actorId` | UUID | Yes | +| `capabilities` | BitString | Yes | | `createdAt` | Datetime | No | | `entityId` | UUID | Yes | | `grantorId` | UUID | Yes | | `id` | UUID | No | | `isGrant` | Boolean | Yes | -| `permissions` | BitString | Yes | | `updatedAt` | Datetime | No | **Operations:** ```typescript // List all orgGrant records -const items = await db.orgGrant.findMany({ select: { actorId: true, createdAt: true, entityId: true, grantorId: true, id: true, isGrant: true, permissions: true, updatedAt: true } }).execute(); +const items = await db.orgGrant.findMany({ select: { actorId: true, capabilities: true, createdAt: true, entityId: true, grantorId: true, id: true, isGrant: true, updatedAt: true } }).execute(); // Get one by id -const item = await db.orgGrant.findOne({ id: '', select: { actorId: true, createdAt: true, entityId: true, grantorId: true, id: true, isGrant: true, permissions: true, updatedAt: true } }).execute(); +const item = await db.orgGrant.findOne({ id: '', select: { actorId: true, capabilities: true, createdAt: true, entityId: true, grantorId: true, id: true, isGrant: true, updatedAt: true } }).execute(); // Create -const created = await db.orgGrant.create({ data: { actorId: '', entityId: '', grantorId: '', isGrant: '', permissions: '' }, select: { id: true } }).execute(); +const created = await db.orgGrant.create({ data: { actorId: '', capabilities: '', entityId: '', grantorId: '', isGrant: '' }, select: { id: true } }).execute(); // Update const updated = await db.orgGrant.update({ where: { id: '' }, data: { actorId: '' }, select: { id: true } }).execute(); @@ -841,6 +842,7 @@ CRUD operations for OrgMembership records. | Field | Type | Editable | |-------|------|----------| | `actorId` | UUID | Yes | +| `capabilities` | BitString | Yes | | `createdAt` | Datetime | No | | `createdBy` | UUID | Yes | | `entityId` | UUID | Yes | @@ -854,7 +856,6 @@ CRUD operations for OrgMembership records. | `isExternal` | Boolean | Yes | | `isOwner` | Boolean | Yes | | `isReadOnly` | Boolean | Yes | -| `permissions` | BitString | Yes | | `profileId` | UUID | Yes | | `updatedAt` | Datetime | No | | `updatedBy` | UUID | Yes | @@ -863,13 +864,13 @@ CRUD operations for OrgMembership records. ```typescript // List all orgMembership records -const items = await db.orgMembership.findMany({ select: { actorId: true, createdAt: true, createdBy: true, entityId: true, granted: true, id: true, isActive: true, isAdmin: true, isApproved: true, isBanned: true, isDisabled: true, isExternal: true, isOwner: true, isReadOnly: true, permissions: true, profileId: true, updatedAt: true, updatedBy: true } }).execute(); +const items = await db.orgMembership.findMany({ select: { actorId: true, capabilities: true, createdAt: true, createdBy: true, entityId: true, granted: true, id: true, isActive: true, isAdmin: true, isApproved: true, isBanned: true, isDisabled: true, isExternal: true, isOwner: true, isReadOnly: true, profileId: true, updatedAt: true, updatedBy: true } }).execute(); // Get one by id -const item = await db.orgMembership.findOne({ id: '', select: { actorId: true, createdAt: true, createdBy: true, entityId: true, granted: true, id: true, isActive: true, isAdmin: true, isApproved: true, isBanned: true, isDisabled: true, isExternal: true, isOwner: true, isReadOnly: true, permissions: true, profileId: true, updatedAt: true, updatedBy: true } }).execute(); +const item = await db.orgMembership.findOne({ id: '', select: { actorId: true, capabilities: true, createdAt: true, createdBy: true, entityId: true, granted: true, id: true, isActive: true, isAdmin: true, isApproved: true, isBanned: true, isDisabled: true, isExternal: true, isOwner: true, isReadOnly: true, profileId: true, updatedAt: true, updatedBy: true } }).execute(); // Create -const created = await db.orgMembership.create({ data: { actorId: '', createdBy: '', entityId: '', granted: '', isActive: '', isAdmin: '', isApproved: '', isBanned: '', isDisabled: '', isExternal: '', isOwner: '', isReadOnly: '', permissions: '', profileId: '', updatedBy: '' }, select: { id: true } }).execute(); +const created = await db.orgMembership.create({ data: { actorId: '', capabilities: '', createdBy: '', entityId: '', granted: '', isActive: '', isAdmin: '', isApproved: '', isBanned: '', isDisabled: '', isExternal: '', isOwner: '', isReadOnly: '', profileId: '', updatedBy: '' }, select: { id: true } }).execute(); // Update const updated = await db.orgMembership.update({ where: { id: '' }, data: { actorId: '' }, select: { id: true } }).execute(); @@ -990,203 +991,8 @@ const updated = await db.orgOwnerGrant.update({ where: { id: '' }, data: { const deleted = await db.orgOwnerGrant.delete({ where: { id: '' } }).execute(); ``` -### `db.orgPermission` - -CRUD operations for OrgPermission records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `bitnum` | Int | Yes | -| `bitstr` | BitString | Yes | -| `description` | String | Yes | -| `id` | UUID | No | -| `name` | String | Yes | - -**Operations:** - -```typescript -// List all orgPermission records -const items = await db.orgPermission.findMany({ select: { bitnum: true, bitstr: true, description: true, id: true, name: true } }).execute(); - -// Get one by id -const item = await db.orgPermission.findOne({ id: '', select: { bitnum: true, bitstr: true, description: true, id: true, name: true } }).execute(); - -// Create -const created = await db.orgPermission.create({ data: { bitnum: '', bitstr: '', description: '', name: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.orgPermission.update({ where: { id: '' }, data: { bitnum: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.orgPermission.delete({ where: { id: '' } }).execute(); -``` - -### `db.orgPermissionDefault` - -CRUD operations for OrgPermissionDefault records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `entityId` | UUID | Yes | -| `id` | UUID | No | -| `permissions` | BitString | Yes | - -**Operations:** - -```typescript -// List all orgPermissionDefault records -const items = await db.orgPermissionDefault.findMany({ select: { entityId: true, id: true, permissions: true } }).execute(); - -// Get one by id -const item = await db.orgPermissionDefault.findOne({ id: '', select: { entityId: true, id: true, permissions: true } }).execute(); - -// Create -const created = await db.orgPermissionDefault.create({ data: { entityId: '', permissions: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.orgPermissionDefault.update({ where: { id: '' }, data: { entityId: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.orgPermissionDefault.delete({ where: { id: '' } }).execute(); -``` - -### `db.orgPermissionDefaultGrant` - -CRUD operations for OrgPermissionDefaultGrant records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `createdAt` | Datetime | No | -| `entityId` | UUID | Yes | -| `grantorId` | UUID | Yes | -| `id` | UUID | No | -| `isGrant` | Boolean | Yes | -| `permissionId` | UUID | Yes | -| `updatedAt` | Datetime | No | - -**Operations:** - -```typescript -// List all orgPermissionDefaultGrant records -const items = await db.orgPermissionDefaultGrant.findMany({ select: { createdAt: true, entityId: true, grantorId: true, id: true, isGrant: true, permissionId: true, updatedAt: true } }).execute(); - -// Get one by id -const item = await db.orgPermissionDefaultGrant.findOne({ id: '', select: { createdAt: true, entityId: true, grantorId: true, id: true, isGrant: true, permissionId: true, updatedAt: true } }).execute(); - -// Create -const created = await db.orgPermissionDefaultGrant.create({ data: { entityId: '', grantorId: '', isGrant: '', permissionId: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.orgPermissionDefaultGrant.update({ where: { id: '' }, data: { entityId: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.orgPermissionDefaultGrant.delete({ where: { id: '' } }).execute(); -``` - -### `db.orgPermissionDefaultPermission` - -CRUD operations for OrgPermissionDefaultPermission records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `createdAt` | Datetime | No | -| `entityId` | UUID | Yes | -| `id` | UUID | No | -| `permissionId` | UUID | Yes | -| `updatedAt` | Datetime | No | - -**Operations:** - -```typescript -// List all orgPermissionDefaultPermission records -const items = await db.orgPermissionDefaultPermission.findMany({ select: { createdAt: true, entityId: true, id: true, permissionId: true, updatedAt: true } }).execute(); - -// Get one by id -const item = await db.orgPermissionDefaultPermission.findOne({ id: '', select: { createdAt: true, entityId: true, id: true, permissionId: true, updatedAt: true } }).execute(); - -// Create -const created = await db.orgPermissionDefaultPermission.create({ data: { entityId: '', permissionId: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.orgPermissionDefaultPermission.update({ where: { id: '' }, data: { entityId: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.orgPermissionDefaultPermission.delete({ where: { id: '' } }).execute(); -``` - ## Custom Operations -### `db.query.appPermissionsGetByMask` - -Reads and enables pagination through a set of `AppPermission`. - -- **Type:** query -- **Arguments:** - - | Argument | Type | - |----------|------| - | `after` | Cursor | - | `first` | Int | - | `mask` | BitString | - | `offset` | Int | - -```typescript -const result = await db.query.appPermissionsGetByMask({ after: '', first: '', mask: '', offset: '' }).execute(); -``` - -### `db.query.appPermissionsGetMask` - -appPermissionsGetMask - -- **Type:** query -- **Arguments:** - - | Argument | Type | - |----------|------| - | `ids` | [UUID] | - -```typescript -const result = await db.query.appPermissionsGetMask({ ids: '' }).execute(); -``` - -### `db.query.appPermissionsGetMaskByNames` - -appPermissionsGetMaskByNames - -- **Type:** query -- **Arguments:** - - | Argument | Type | - |----------|------| - | `names` | [String] | - -```typescript -const result = await db.query.appPermissionsGetMaskByNames({ names: '' }).execute(); -``` - -### `db.query.appPermissionsGetPaddedMask` - -appPermissionsGetPaddedMask - -- **Type:** query -- **Arguments:** - - | Argument | Type | - |----------|------| - | `mask` | BitString | - -```typescript -const result = await db.query.appPermissionsGetPaddedMask({ mask: '' }).execute(); -``` - ### `db.query.orgIsManagerOf` orgIsManagerOf @@ -1205,69 +1011,6 @@ orgIsManagerOf const result = await db.query.orgIsManagerOf({ managerId: '', maxDepth: '', targetEntityId: '', userId: '' }).execute(); ``` -### `db.query.orgPermissionsGetByMask` - -Reads and enables pagination through a set of `OrgPermission`. - -- **Type:** query -- **Arguments:** - - | Argument | Type | - |----------|------| - | `after` | Cursor | - | `first` | Int | - | `mask` | BitString | - | `offset` | Int | - -```typescript -const result = await db.query.orgPermissionsGetByMask({ after: '', first: '', mask: '', offset: '' }).execute(); -``` - -### `db.query.orgPermissionsGetMask` - -orgPermissionsGetMask - -- **Type:** query -- **Arguments:** - - | Argument | Type | - |----------|------| - | `ids` | [UUID] | - -```typescript -const result = await db.query.orgPermissionsGetMask({ ids: '' }).execute(); -``` - -### `db.query.orgPermissionsGetMaskByNames` - -orgPermissionsGetMaskByNames - -- **Type:** query -- **Arguments:** - - | Argument | Type | - |----------|------| - | `names` | [String] | - -```typescript -const result = await db.query.orgPermissionsGetMaskByNames({ names: '' }).execute(); -``` - -### `db.query.orgPermissionsGetPaddedMask` - -orgPermissionsGetPaddedMask - -- **Type:** query -- **Arguments:** - - | Argument | Type | - |----------|------| - | `mask` | BitString | - -```typescript -const result = await db.query.orgPermissionsGetPaddedMask({ mask: '' }).execute(); -``` - ### `db.mutation.provisionBucket` Provision an S3 bucket for a logical bucket in the database. diff --git a/sdk/constructive-react/src/admin/orm/index.ts b/sdk/constructive-react/src/admin/orm/index.ts index 5a87e5498e..91f3ff0c09 100644 --- a/sdk/constructive-react/src/admin/orm/index.ts +++ b/sdk/constructive-react/src/admin/orm/index.ts @@ -6,18 +6,18 @@ import { OrmClient } from './client'; import type { OrmClientConfig } from './client'; import { AppAdminGrantModel } from './models/appAdminGrant'; +import { AppCapabilityDefaultCapabilityModel } from './models/appCapabilityDefaultCapability'; +import { AppCapabilityDefaultGrantModel } from './models/appCapabilityDefaultGrant'; import { AppClaimedInviteModel } from './models/appClaimedInvite'; import { AppGrantModel } from './models/appGrant'; import { AppInviteModel } from './models/appInvite'; import { AppMembershipModel } from './models/appMembership'; import { AppMembershipDefaultModel } from './models/appMembershipDefault'; import { AppOwnerGrantModel } from './models/appOwnerGrant'; -import { AppPermissionModel } from './models/appPermission'; -import { AppPermissionDefaultModel } from './models/appPermissionDefault'; -import { AppPermissionDefaultGrantModel } from './models/appPermissionDefaultGrant'; -import { AppPermissionDefaultPermissionModel } from './models/appPermissionDefaultPermission'; import { MembershipTypeModel } from './models/membershipType'; import { OrgAdminGrantModel } from './models/orgAdminGrant'; +import { OrgCapabilityDefaultCapabilityModel } from './models/orgCapabilityDefaultCapability'; +import { OrgCapabilityDefaultGrantModel } from './models/orgCapabilityDefaultGrant'; import { OrgChartEdgeModel } from './models/orgChartEdge'; import { OrgChartEdgeGrantModel } from './models/orgChartEdgeGrant'; import { OrgClaimedInviteModel } from './models/orgClaimedInvite'; @@ -31,10 +31,6 @@ import { OrgMembershipModel } from './models/orgMembership'; import { OrgMembershipDefaultModel } from './models/orgMembershipDefault'; import { OrgMembershipSettingModel } from './models/orgMembershipSetting'; import { OrgOwnerGrantModel } from './models/orgOwnerGrant'; -import { OrgPermissionModel } from './models/orgPermission'; -import { OrgPermissionDefaultModel } from './models/orgPermissionDefault'; -import { OrgPermissionDefaultGrantModel } from './models/orgPermissionDefaultGrant'; -import { OrgPermissionDefaultPermissionModel } from './models/orgPermissionDefaultPermission'; import { createQueryOperations } from './query'; import { createMutationOperations } from './mutation'; export type { OrmClientConfig, QueryResult, GraphQLError, GraphQLAdapter } from './client'; @@ -71,18 +67,18 @@ export function createClient(config: OrmClientConfig) { const client = new OrmClient(config); return { appAdminGrant: new AppAdminGrantModel(client), + appCapabilityDefaultCapability: new AppCapabilityDefaultCapabilityModel(client), + appCapabilityDefaultGrant: new AppCapabilityDefaultGrantModel(client), appClaimedInvite: new AppClaimedInviteModel(client), appGrant: new AppGrantModel(client), appInvite: new AppInviteModel(client), appMembership: new AppMembershipModel(client), appMembershipDefault: new AppMembershipDefaultModel(client), appOwnerGrant: new AppOwnerGrantModel(client), - appPermission: new AppPermissionModel(client), - appPermissionDefault: new AppPermissionDefaultModel(client), - appPermissionDefaultGrant: new AppPermissionDefaultGrantModel(client), - appPermissionDefaultPermission: new AppPermissionDefaultPermissionModel(client), membershipType: new MembershipTypeModel(client), orgAdminGrant: new OrgAdminGrantModel(client), + orgCapabilityDefaultCapability: new OrgCapabilityDefaultCapabilityModel(client), + orgCapabilityDefaultGrant: new OrgCapabilityDefaultGrantModel(client), orgChartEdge: new OrgChartEdgeModel(client), orgChartEdgeGrant: new OrgChartEdgeGrantModel(client), orgClaimedInvite: new OrgClaimedInviteModel(client), @@ -96,10 +92,6 @@ export function createClient(config: OrmClientConfig) { orgMembershipDefault: new OrgMembershipDefaultModel(client), orgMembershipSetting: new OrgMembershipSettingModel(client), orgOwnerGrant: new OrgOwnerGrantModel(client), - orgPermission: new OrgPermissionModel(client), - orgPermissionDefault: new OrgPermissionDefaultModel(client), - orgPermissionDefaultGrant: new OrgPermissionDefaultGrantModel(client), - orgPermissionDefaultPermission: new OrgPermissionDefaultPermissionModel(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 8942c14919..25b8b53218 100644 --- a/sdk/constructive-react/src/admin/orm/input-types.ts +++ b/sdk/constructive-react/src/admin/orm/input-types.ts @@ -245,6 +245,25 @@ export interface AppAdminGrant { isGrant?: boolean | null; updatedAt?: string | null; } +/** Join table linking capability defaults to individual capabilities; recompute trigger rebuilds the defaults bitmask */ +export interface AppCapabilityDefaultCapability { + /** References the capability included in the defaults bundle */ + capabilityId?: string | null; + createdAt?: string | null; + id: string; + updatedAt?: string | null; +} +/** Audit log of capability additions and removals from the defaults bitmask */ +export interface AppCapabilityDefaultGrant { + /** References the capability being added to or removed from defaults */ + capabilityId?: string | null; + createdAt?: string | null; + grantorId?: string | null; + id: string; + /** True to add the capability to defaults, false to remove it */ + isGrant?: boolean | null; + updatedAt?: string | null; +} /** Records of successfully claimed invitations, linking senders to receivers */ export interface AppClaimedInvite { createdAt?: string | null; @@ -257,17 +276,17 @@ export interface AppClaimedInvite { senderId?: string | null; updatedAt?: string | null; } -/** Records of individual permission grants and revocations for members via bitmask */ +/** Records of individual capability grants and revocations for members via bitmask */ export interface AppGrant { - /** The member receiving or losing the permission grant; NULL if user was deleted */ + /** The member receiving or losing the capability grant; NULL if user was deleted */ actorId?: string | null; + /** Bitmask of capabilities being granted or revoked */ + capabilities?: string | null; createdAt?: string | null; grantorId?: string | null; id: string; - /** True to grant the permissions, false to revoke them */ + /** True to grant the capabilities, false to revoke them */ isGrant?: boolean | null; - /** Bitmask of permissions being granted or revoked */ - permissions?: string | null; updatedAt?: string | null; } /** Invitation records sent to prospective members via email, with token-based redemption and expiration */ @@ -300,13 +319,15 @@ export interface AppInvite { senderId?: string | null; updatedAt?: string | null; } -/** Tracks membership records linking actors to entities with permission bitmasks, ownership, and admin status */ +/** Tracks membership records linking actors to entities with capability bitmasks, ownership, and admin status */ export interface AppMembership { /** References the user who holds this membership */ actorId?: string | null; + /** Aggregated capability bitmask combining profile-based and directly granted capabilities */ + capabilities?: string | null; createdAt?: string | null; createdBy?: string | null; - /** Bitmask of permissions directly granted to this member (not from profiles) */ + /** Bitmask of capabilities directly granted to this member (not from profiles) */ granted?: string | null; id: string; /** Computed field indicating the membership is approved, verified, not banned, and not disabled */ @@ -323,8 +344,6 @@ export interface AppMembership { isOwner?: boolean | null; /** Whether this member has been verified (e.g. email confirmation) */ isVerified?: boolean | null; - /** Aggregated permission bitmask combining profile-based and directly granted permissions */ - permissions?: string | null; profileId?: string | null; updatedAt?: string | null; updatedBy?: string | null; @@ -352,43 +371,6 @@ export interface AppOwnerGrant { isGrant?: boolean | null; updatedAt?: string | null; } -/** Defines available permissions as named bits within a bitmask, used by the RBAC system for access control */ -export interface AppPermission { - /** Position of this permission in the bitmask (1-indexed), must be unique per permission set */ - bitnum?: number | null; - /** Pre-computed bitmask with only this permission bit set, used for bitwise OR/AND operations */ - bitstr?: string | null; - /** Human-readable description of what this permission allows */ - description?: string | null; - id: string; - /** Human-readable permission name (e.g. read, write, manage) */ - name?: string | null; -} -/** Stores the default permission bitmask assigned to new members upon joining */ -export interface AppPermissionDefault { - id: string; - /** Default permission bitmask applied to new members */ - permissions?: string | null; -} -/** Audit log of permission additions and removals from the defaults bitmask */ -export interface AppPermissionDefaultGrant { - createdAt?: string | null; - grantorId?: string | null; - id: string; - /** True to add the permission to defaults, false to remove it */ - isGrant?: boolean | null; - /** References the permission being added to or removed from defaults */ - permissionId?: string | null; - updatedAt?: string | null; -} -/** Join table linking permission defaults to individual permissions; recompute trigger rebuilds the defaults bitmask */ -export interface AppPermissionDefaultPermission { - createdAt?: string | null; - id: string; - /** References the permission included in the defaults bundle */ - permissionId?: string | null; - updatedAt?: string | null; -} /** Defines the different scopes of membership (e.g. App Member, Organization Member, Group Member) */ export interface MembershipType { /** Description of what this membership type represents */ @@ -417,6 +399,29 @@ export interface OrgAdminGrant { isGrant?: boolean | null; updatedAt?: string | null; } +/** Join table linking capability defaults to individual capabilities; recompute trigger rebuilds the defaults bitmask */ +export interface OrgCapabilityDefaultCapability { + /** References the capability included in the defaults bundle */ + capabilityId?: string | null; + createdAt?: string | null; + /** Scopes this default capability to a specific entity */ + entityId?: string | null; + id: string; + updatedAt?: string | null; +} +/** Audit log of capability additions and removals from the defaults bitmask */ +export interface OrgCapabilityDefaultGrant { + /** References the capability being added to or removed from defaults */ + capabilityId?: string | null; + createdAt?: string | null; + /** Scopes this audit entry to a specific entity */ + entityId?: string | null; + grantorId?: string | null; + id: string; + /** True to add the capability to defaults, false to remove it */ + isGrant?: boolean | null; + updatedAt?: string | null; +} /** Organizational chart edges defining parent-child reporting relationships between members within an entity */ export interface OrgChartEdge { /** User ID of the subordinate (employee) in this reporting relationship */ @@ -474,19 +479,19 @@ export interface OrgGetSubordinatesRecord { depth?: number | null; userId?: string | null; } -/** Records of individual permission grants and revocations for members via bitmask */ +/** Records of individual capability grants and revocations for members via bitmask */ export interface OrgGrant { - /** The member receiving or losing the permission grant; NULL if user was deleted */ + /** The member receiving or losing the capability grant; NULL if user was deleted */ actorId?: string | null; + /** Bitmask of capabilities being granted or revoked */ + capabilities?: string | null; createdAt?: string | null; - /** The entity (org or group) this permission grant applies to */ + /** The entity (org or group) this capability grant applies to */ entityId?: string | null; grantorId?: string | null; id: string; - /** True to grant the permissions, false to revoke them */ + /** True to grant the capabilities, false to revoke them */ isGrant?: boolean | null; - /** Bitmask of permissions being granted or revoked */ - permissions?: string | null; updatedAt?: string | null; } /** Invitation records sent to prospective members via email, with token-based redemption and expiration */ @@ -556,15 +561,17 @@ export interface OrgMemberProfile { title?: string | null; updatedAt?: string | null; } -/** Tracks membership records linking actors to entities with permission bitmasks, ownership, and admin status */ +/** Tracks membership records linking actors to entities with capability bitmasks, ownership, and admin status */ export interface OrgMembership { /** References the user who holds this membership */ actorId?: string | null; + /** Aggregated capability bitmask combining profile-based and directly granted capabilities */ + capabilities?: string | null; createdAt?: string | null; createdBy?: string | null; /** References the entity (org or group) this membership belongs to */ entityId?: string | null; - /** Bitmask of permissions directly granted to this member (not from profiles) */ + /** Bitmask of capabilities directly granted to this member (not from profiles) */ granted?: string | null; id: string; /** Computed field indicating the membership is approved, verified, not banned, and not disabled */ @@ -577,14 +584,12 @@ export interface OrgMembership { isBanned?: boolean | null; /** Whether this membership is temporarily disabled */ isDisabled?: boolean | null; - /** Whether this member is external (not a member of the parent scope). External members may have restricted permissions. */ + /** Whether this member is external (not a member of the parent scope). External members may have restricted capabilities. */ isExternal?: boolean | null; /** Whether the actor is the owner of this entity */ isOwner?: boolean | null; /** Whether this member has read-only access (blocks mutations when true) */ isReadOnly?: boolean | null; - /** Aggregated permission bitmask combining profile-based and directly granted permissions */ - permissions?: string | null; profileId?: string | null; updatedAt?: string | null; updatedBy?: string | null; @@ -618,7 +623,7 @@ export interface OrgMembershipSetting { /** References the entity these settings apply to */ entityId?: string | null; id: string; - /** Controls how profile assignment on invites is validated: strict (permission + subset check), permission_only (permission only), or subset_only (subset check only) */ + /** Controls how profile assignment on invites is validated: strict (capability + subset check), capability_only (capability only), or subset_only (subset check only) */ inviteProfileAssignmentMode?: string | 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; @@ -640,49 +645,6 @@ export interface OrgOwnerGrant { isGrant?: boolean | null; updatedAt?: string | null; } -/** Defines available permissions as named bits within a bitmask, used by the RBAC system for access control */ -export interface OrgPermission { - /** Position of this permission in the bitmask (1-indexed), must be unique per permission set */ - bitnum?: number | null; - /** Pre-computed bitmask with only this permission bit set, used for bitwise OR/AND operations */ - bitstr?: string | null; - /** Human-readable description of what this permission allows */ - description?: string | null; - id: string; - /** Human-readable permission name (e.g. read, write, manage) */ - name?: string | null; -} -/** Stores the default permission bitmask assigned to new members upon joining */ -export interface OrgPermissionDefault { - /** References the entity these default permissions apply to */ - entityId?: string | null; - id: string; - /** Default permission bitmask applied to new members */ - permissions?: string | null; -} -/** Audit log of permission additions and removals from the defaults bitmask */ -export interface OrgPermissionDefaultGrant { - createdAt?: string | null; - /** Scopes this audit entry to a specific entity */ - entityId?: string | null; - grantorId?: string | null; - id: string; - /** True to add the permission to defaults, false to remove it */ - isGrant?: boolean | null; - /** References the permission being added to or removed from defaults */ - permissionId?: string | null; - updatedAt?: string | null; -} -/** Join table linking permission defaults to individual permissions; recompute trigger rebuilds the defaults bitmask */ -export interface OrgPermissionDefaultPermission { - createdAt?: string | null; - /** Scopes this default permission to a specific entity */ - entityId?: string | null; - id: string; - /** References the permission included in the defaults bundle */ - permissionId?: string | null; - updatedAt?: string | null; -} // ============ Relation Helper Types ============ export interface ConnectionResult { nodes: T[]; @@ -697,25 +659,18 @@ export interface PageInfo { } // ============ Entity Relation Types ============ export interface AppAdminGrantRelations {} +export interface AppCapabilityDefaultCapabilityRelations {} +export interface AppCapabilityDefaultGrantRelations {} export interface AppClaimedInviteRelations {} export interface AppGrantRelations {} export interface AppInviteRelations {} export interface AppMembershipRelations {} export interface AppMembershipDefaultRelations {} export interface AppOwnerGrantRelations {} -export interface AppPermissionRelations { - appPermissionDefaultPermissionByPermissionId?: AppPermissionDefaultPermission | null; - appPermissionDefaultGrantsByPermissionId?: ConnectionResult; -} -export interface AppPermissionDefaultRelations {} -export interface AppPermissionDefaultGrantRelations { - permission?: AppPermission | null; -} -export interface AppPermissionDefaultPermissionRelations { - permission?: AppPermission | null; -} export interface MembershipTypeRelations {} export interface OrgAdminGrantRelations {} +export interface OrgCapabilityDefaultCapabilityRelations {} +export interface OrgCapabilityDefaultGrantRelations {} export interface OrgChartEdgeRelations {} export interface OrgChartEdgeGrantRelations {} export interface OrgClaimedInviteRelations {} @@ -733,19 +688,12 @@ export interface OrgMembershipRelations { export interface OrgMembershipDefaultRelations {} export interface OrgMembershipSettingRelations {} export interface OrgOwnerGrantRelations {} -export interface OrgPermissionRelations { - orgPermissionDefaultGrantsByPermissionId?: ConnectionResult; - orgPermissionDefaultPermissionsByPermissionId?: ConnectionResult; -} -export interface OrgPermissionDefaultRelations {} -export interface OrgPermissionDefaultGrantRelations { - permission?: OrgPermission | null; -} -export interface OrgPermissionDefaultPermissionRelations { - permission?: OrgPermission | null; -} // ============ Entity Types With Relations ============ export type AppAdminGrantWithRelations = AppAdminGrant & AppAdminGrantRelations; +export type AppCapabilityDefaultCapabilityWithRelations = AppCapabilityDefaultCapability & + AppCapabilityDefaultCapabilityRelations; +export type AppCapabilityDefaultGrantWithRelations = AppCapabilityDefaultGrant & + AppCapabilityDefaultGrantRelations; export type AppClaimedInviteWithRelations = AppClaimedInvite & AppClaimedInviteRelations; export type AppGrantWithRelations = AppGrant & AppGrantRelations; export type AppInviteWithRelations = AppInvite & AppInviteRelations; @@ -753,15 +701,12 @@ export type AppMembershipWithRelations = AppMembership & AppMembershipRelations; export type AppMembershipDefaultWithRelations = AppMembershipDefault & AppMembershipDefaultRelations; export type AppOwnerGrantWithRelations = AppOwnerGrant & AppOwnerGrantRelations; -export type AppPermissionWithRelations = AppPermission & AppPermissionRelations; -export type AppPermissionDefaultWithRelations = AppPermissionDefault & - AppPermissionDefaultRelations; -export type AppPermissionDefaultGrantWithRelations = AppPermissionDefaultGrant & - AppPermissionDefaultGrantRelations; -export type AppPermissionDefaultPermissionWithRelations = AppPermissionDefaultPermission & - AppPermissionDefaultPermissionRelations; export type MembershipTypeWithRelations = MembershipType & MembershipTypeRelations; export type OrgAdminGrantWithRelations = OrgAdminGrant & OrgAdminGrantRelations; +export type OrgCapabilityDefaultCapabilityWithRelations = OrgCapabilityDefaultCapability & + OrgCapabilityDefaultCapabilityRelations; +export type OrgCapabilityDefaultGrantWithRelations = OrgCapabilityDefaultGrant & + OrgCapabilityDefaultGrantRelations; export type OrgChartEdgeWithRelations = OrgChartEdge & OrgChartEdgeRelations; export type OrgChartEdgeGrantWithRelations = OrgChartEdgeGrant & OrgChartEdgeGrantRelations; export type OrgClaimedInviteWithRelations = OrgClaimedInvite & OrgClaimedInviteRelations; @@ -779,13 +724,6 @@ export type OrgMembershipDefaultWithRelations = OrgMembershipDefault & export type OrgMembershipSettingWithRelations = OrgMembershipSetting & OrgMembershipSettingRelations; export type OrgOwnerGrantWithRelations = OrgOwnerGrant & OrgOwnerGrantRelations; -export type OrgPermissionWithRelations = OrgPermission & OrgPermissionRelations; -export type OrgPermissionDefaultWithRelations = OrgPermissionDefault & - OrgPermissionDefaultRelations; -export type OrgPermissionDefaultGrantWithRelations = OrgPermissionDefaultGrant & - OrgPermissionDefaultGrantRelations; -export type OrgPermissionDefaultPermissionWithRelations = OrgPermissionDefaultPermission & - OrgPermissionDefaultPermissionRelations; // ============ Entity Select Types ============ export type AppAdminGrantSelect = { actorId?: boolean; @@ -795,6 +733,20 @@ export type AppAdminGrantSelect = { isGrant?: boolean; updatedAt?: boolean; }; +export type AppCapabilityDefaultCapabilitySelect = { + capabilityId?: boolean; + createdAt?: boolean; + id?: boolean; + updatedAt?: boolean; +}; +export type AppCapabilityDefaultGrantSelect = { + capabilityId?: boolean; + createdAt?: boolean; + grantorId?: boolean; + id?: boolean; + isGrant?: boolean; + updatedAt?: boolean; +}; export type AppClaimedInviteSelect = { createdAt?: boolean; data?: boolean; @@ -805,11 +757,11 @@ export type AppClaimedInviteSelect = { }; export type AppGrantSelect = { actorId?: boolean; + capabilities?: boolean; createdAt?: boolean; grantorId?: boolean; id?: boolean; isGrant?: boolean; - permissions?: boolean; updatedAt?: boolean; }; export type AppInviteSelect = { @@ -831,6 +783,7 @@ export type AppInviteSelect = { }; export type AppMembershipSelect = { actorId?: boolean; + capabilities?: boolean; createdAt?: boolean; createdBy?: boolean; granted?: boolean; @@ -842,7 +795,6 @@ export type AppMembershipSelect = { isDisabled?: boolean; isOwner?: boolean; isVerified?: boolean; - permissions?: boolean; profileId?: boolean; updatedAt?: boolean; updatedBy?: boolean; @@ -864,56 +816,32 @@ export type AppOwnerGrantSelect = { isGrant?: boolean; updatedAt?: boolean; }; -export type AppPermissionSelect = { - bitnum?: boolean; - bitstr?: boolean; +export type MembershipTypeSelect = { description?: boolean; + hasUsersTableEntry?: boolean; id?: boolean; name?: boolean; - appPermissionDefaultPermissionByPermissionId?: { - select: AppPermissionDefaultPermissionSelect; - }; - appPermissionDefaultGrantsByPermissionId?: { - select: AppPermissionDefaultGrantSelect; - first?: number; - filter?: AppPermissionDefaultGrantFilter; - orderBy?: AppPermissionDefaultGrantOrderBy[]; - }; -}; -export type AppPermissionDefaultSelect = { - id?: boolean; - permissions?: boolean; + parentMembershipType?: boolean; + scope?: boolean; }; -export type AppPermissionDefaultGrantSelect = { +export type OrgAdminGrantSelect = { + actorId?: boolean; createdAt?: boolean; + entityId?: boolean; grantorId?: boolean; id?: boolean; isGrant?: boolean; - permissionId?: boolean; updatedAt?: boolean; - permission?: { - select: AppPermissionSelect; - }; }; -export type AppPermissionDefaultPermissionSelect = { +export type OrgCapabilityDefaultCapabilitySelect = { + capabilityId?: boolean; createdAt?: boolean; + entityId?: boolean; id?: boolean; - permissionId?: boolean; updatedAt?: boolean; - permission?: { - select: AppPermissionSelect; - }; -}; -export type MembershipTypeSelect = { - description?: boolean; - hasUsersTableEntry?: boolean; - id?: boolean; - name?: boolean; - parentMembershipType?: boolean; - scope?: boolean; }; -export type OrgAdminGrantSelect = { - actorId?: boolean; +export type OrgCapabilityDefaultGrantSelect = { + capabilityId?: boolean; createdAt?: boolean; entityId?: boolean; grantorId?: boolean; @@ -961,12 +889,12 @@ export type OrgGetSubordinatesRecordSelect = { }; export type OrgGrantSelect = { actorId?: boolean; + capabilities?: boolean; createdAt?: boolean; entityId?: boolean; grantorId?: boolean; id?: boolean; isGrant?: boolean; - permissions?: boolean; updatedAt?: boolean; }; export type OrgInviteSelect = { @@ -1013,6 +941,7 @@ export type OrgMemberProfileSelect = { }; export type OrgMembershipSelect = { actorId?: boolean; + capabilities?: boolean; createdAt?: boolean; createdBy?: boolean; entityId?: boolean; @@ -1026,7 +955,6 @@ export type OrgMembershipSelect = { isExternal?: boolean; isOwner?: boolean; isReadOnly?: boolean; - permissions?: boolean; profileId?: boolean; updatedAt?: boolean; updatedBy?: boolean; @@ -1068,52 +996,6 @@ export type OrgOwnerGrantSelect = { isGrant?: boolean; updatedAt?: boolean; }; -export type OrgPermissionSelect = { - bitnum?: boolean; - bitstr?: boolean; - description?: boolean; - id?: boolean; - name?: boolean; - orgPermissionDefaultGrantsByPermissionId?: { - select: OrgPermissionDefaultGrantSelect; - first?: number; - filter?: OrgPermissionDefaultGrantFilter; - orderBy?: OrgPermissionDefaultGrantOrderBy[]; - }; - orgPermissionDefaultPermissionsByPermissionId?: { - select: OrgPermissionDefaultPermissionSelect; - first?: number; - filter?: OrgPermissionDefaultPermissionFilter; - orderBy?: OrgPermissionDefaultPermissionOrderBy[]; - }; -}; -export type OrgPermissionDefaultSelect = { - entityId?: boolean; - id?: boolean; - permissions?: boolean; -}; -export type OrgPermissionDefaultGrantSelect = { - createdAt?: boolean; - entityId?: boolean; - grantorId?: boolean; - id?: boolean; - isGrant?: boolean; - permissionId?: boolean; - updatedAt?: boolean; - permission?: { - select: OrgPermissionSelect; - }; -}; -export type OrgPermissionDefaultPermissionSelect = { - createdAt?: boolean; - entityId?: boolean; - id?: boolean; - permissionId?: boolean; - updatedAt?: boolean; - permission?: { - select: OrgPermissionSelect; - }; -}; // ============ Table Filter Types ============ export interface AppAdminGrantFilter { /** Filter by the object’s `actorId` field. */ @@ -1135,6 +1017,42 @@ export interface AppAdminGrantFilter { /** Filter by the object’s `updatedAt` field. */ updatedAt?: DatetimeFilter; } +export interface AppCapabilityDefaultCapabilityFilter { + /** Checks for all expressions in this list. */ + and?: AppCapabilityDefaultCapabilityFilter[]; + /** Filter by the object’s `capabilityId` field. */ + capabilityId?: UUIDFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Negates the expression. */ + not?: AppCapabilityDefaultCapabilityFilter; + /** Checks for any expressions in this list. */ + or?: AppCapabilityDefaultCapabilityFilter[]; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; +} +export interface AppCapabilityDefaultGrantFilter { + /** Checks for all expressions in this list. */ + and?: AppCapabilityDefaultGrantFilter[]; + /** Filter by the object’s `capabilityId` field. */ + capabilityId?: UUIDFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `grantorId` field. */ + grantorId?: UUIDFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `isGrant` field. */ + isGrant?: BooleanFilter; + /** Negates the expression. */ + not?: AppCapabilityDefaultGrantFilter; + /** Checks for any expressions in this list. */ + or?: AppCapabilityDefaultGrantFilter[]; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; +} export interface AppClaimedInviteFilter { /** Checks for all expressions in this list. */ and?: AppClaimedInviteFilter[]; @@ -1158,6 +1076,8 @@ export interface AppGrantFilter { actorId?: UUIDFilter; /** Checks for all expressions in this list. */ and?: AppGrantFilter[]; + /** Filter by the object’s `capabilities` field. */ + capabilities?: BitStringFilter; /** Filter by the object’s `createdAt` field. */ createdAt?: DatetimeFilter; /** Filter by the object’s `grantorId` field. */ @@ -1170,8 +1090,6 @@ export interface AppGrantFilter { not?: AppGrantFilter; /** Checks for any expressions in this list. */ or?: AppGrantFilter[]; - /** Filter by the object’s `permissions` field. */ - permissions?: BitStringFilter; /** Filter by the object’s `updatedAt` field. */ updatedAt?: DatetimeFilter; } @@ -1216,6 +1134,8 @@ export interface AppMembershipFilter { actorId?: UUIDFilter; /** Checks for all expressions in this list. */ and?: AppMembershipFilter[]; + /** Filter by the object’s `capabilities` field. */ + capabilities?: BitStringFilter; /** Filter by the object’s `createdAt` field. */ createdAt?: DatetimeFilter; /** Filter by the object’s `createdBy` field. */ @@ -1242,8 +1162,6 @@ export interface AppMembershipFilter { not?: AppMembershipFilter; /** Checks for any expressions in this list. */ or?: AppMembershipFilter[]; - /** Filter by the object’s `permissions` field. */ - permissions?: BitStringFilter; /** Filter by the object’s `profileId` field. */ profileId?: UUIDFilter; /** Filter by the object’s `updatedAt` field. */ @@ -1293,49 +1211,35 @@ export interface AppOwnerGrantFilter { /** Filter by the object’s `updatedAt` field. */ updatedAt?: DatetimeFilter; } -export interface AppPermissionFilter { +export interface MembershipTypeFilter { /** Checks for all expressions in this list. */ - and?: AppPermissionFilter[]; - /** Filter by the object’s `appPermissionDefaultGrantsByPermissionId` relation. */ - appPermissionDefaultGrantsByPermissionId?: AppPermissionToManyAppPermissionDefaultGrantFilter; - /** `appPermissionDefaultGrantsByPermissionId` exist. */ - appPermissionDefaultGrantsByPermissionIdExist?: boolean; - /** Filter by the object’s `appPermissionDefaultPermissionByPermissionId` relation. */ - appPermissionDefaultPermissionByPermissionId?: AppPermissionDefaultPermissionFilter; - /** A related `appPermissionDefaultPermissionByPermissionId` exists. */ - appPermissionDefaultPermissionByPermissionIdExists?: boolean; - /** Filter by the object’s `bitnum` field. */ - bitnum?: IntFilter; - /** Filter by the object’s `bitstr` field. */ - bitstr?: BitStringFilter; + and?: MembershipTypeFilter[]; /** Filter by the object’s `description` field. */ description?: StringFilter; + /** Filter by the object’s `hasUsersTableEntry` field. */ + hasUsersTableEntry?: BooleanFilter; /** Filter by the object’s `id` field. */ - id?: UUIDFilter; + id?: IntFilter; /** Filter by the object’s `name` field. */ name?: StringFilter; /** Negates the expression. */ - not?: AppPermissionFilter; - /** Checks for any expressions in this list. */ - or?: AppPermissionFilter[]; -} -export interface AppPermissionDefaultFilter { - /** Checks for all expressions in this list. */ - and?: AppPermissionDefaultFilter[]; - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Negates the expression. */ - not?: AppPermissionDefaultFilter; + not?: MembershipTypeFilter; /** Checks for any expressions in this list. */ - or?: AppPermissionDefaultFilter[]; - /** Filter by the object’s `permissions` field. */ - permissions?: BitStringFilter; + or?: MembershipTypeFilter[]; + /** Filter by the object’s `parentMembershipType` field. */ + parentMembershipType?: IntFilter; + /** Filter by the object’s `scope` field. */ + scope?: StringFilter; } -export interface AppPermissionDefaultGrantFilter { +export interface OrgAdminGrantFilter { + /** Filter by the object’s `actorId` field. */ + actorId?: UUIDFilter; /** Checks for all expressions in this list. */ - and?: AppPermissionDefaultGrantFilter[]; + and?: OrgAdminGrantFilter[]; /** Filter by the object’s `createdAt` field. */ createdAt?: DatetimeFilter; + /** Filter by the object’s `entityId` field. */ + entityId?: UUIDFilter; /** Filter by the object’s `grantorId` field. */ grantorId?: UUIDFilter; /** Filter by the object’s `id` field. */ @@ -1343,59 +1247,35 @@ export interface AppPermissionDefaultGrantFilter { /** Filter by the object’s `isGrant` field. */ isGrant?: BooleanFilter; /** Negates the expression. */ - not?: AppPermissionDefaultGrantFilter; + not?: OrgAdminGrantFilter; /** Checks for any expressions in this list. */ - or?: AppPermissionDefaultGrantFilter[]; - /** Filter by the object’s `permission` relation. */ - permission?: AppPermissionFilter; - /** Filter by the object’s `permissionId` field. */ - permissionId?: UUIDFilter; + or?: OrgAdminGrantFilter[]; /** Filter by the object’s `updatedAt` field. */ updatedAt?: DatetimeFilter; } -export interface AppPermissionDefaultPermissionFilter { +export interface OrgCapabilityDefaultCapabilityFilter { /** Checks for all expressions in this list. */ - and?: AppPermissionDefaultPermissionFilter[]; + and?: OrgCapabilityDefaultCapabilityFilter[]; + /** Filter by the object’s `capabilityId` field. */ + capabilityId?: UUIDFilter; /** Filter by the object’s `createdAt` field. */ createdAt?: DatetimeFilter; + /** Filter by the object’s `entityId` field. */ + entityId?: UUIDFilter; /** Filter by the object’s `id` field. */ id?: UUIDFilter; /** Negates the expression. */ - not?: AppPermissionDefaultPermissionFilter; + not?: OrgCapabilityDefaultCapabilityFilter; /** Checks for any expressions in this list. */ - or?: AppPermissionDefaultPermissionFilter[]; - /** Filter by the object’s `permission` relation. */ - permission?: AppPermissionFilter; - /** Filter by the object’s `permissionId` field. */ - permissionId?: UUIDFilter; + or?: OrgCapabilityDefaultCapabilityFilter[]; /** Filter by the object’s `updatedAt` field. */ updatedAt?: DatetimeFilter; } -export interface MembershipTypeFilter { - /** Checks for all expressions in this list. */ - and?: MembershipTypeFilter[]; - /** Filter by the object’s `description` field. */ - description?: StringFilter; - /** Filter by the object’s `hasUsersTableEntry` field. */ - hasUsersTableEntry?: BooleanFilter; - /** Filter by the object’s `id` field. */ - id?: IntFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Negates the expression. */ - not?: MembershipTypeFilter; - /** Checks for any expressions in this list. */ - or?: MembershipTypeFilter[]; - /** Filter by the object’s `parentMembershipType` field. */ - parentMembershipType?: IntFilter; - /** Filter by the object’s `scope` field. */ - scope?: StringFilter; -} -export interface OrgAdminGrantFilter { - /** Filter by the object’s `actorId` field. */ - actorId?: UUIDFilter; +export interface OrgCapabilityDefaultGrantFilter { /** Checks for all expressions in this list. */ - and?: OrgAdminGrantFilter[]; + and?: OrgCapabilityDefaultGrantFilter[]; + /** Filter by the object’s `capabilityId` field. */ + capabilityId?: UUIDFilter; /** Filter by the object’s `createdAt` field. */ createdAt?: DatetimeFilter; /** Filter by the object’s `entityId` field. */ @@ -1407,9 +1287,9 @@ export interface OrgAdminGrantFilter { /** Filter by the object’s `isGrant` field. */ isGrant?: BooleanFilter; /** Negates the expression. */ - not?: OrgAdminGrantFilter; + not?: OrgCapabilityDefaultGrantFilter; /** Checks for any expressions in this list. */ - or?: OrgAdminGrantFilter[]; + or?: OrgCapabilityDefaultGrantFilter[]; /** Filter by the object’s `updatedAt` field. */ updatedAt?: DatetimeFilter; } @@ -1502,6 +1382,8 @@ export interface OrgGrantFilter { actorId?: UUIDFilter; /** Checks for all expressions in this list. */ and?: OrgGrantFilter[]; + /** Filter by the object’s `capabilities` field. */ + capabilities?: BitStringFilter; /** Filter by the object’s `createdAt` field. */ createdAt?: DatetimeFilter; /** Filter by the object’s `entityId` field. */ @@ -1516,8 +1398,6 @@ export interface OrgGrantFilter { not?: OrgGrantFilter; /** Checks for any expressions in this list. */ or?: OrgGrantFilter[]; - /** Filter by the object’s `permissions` field. */ - permissions?: BitStringFilter; /** Filter by the object’s `updatedAt` field. */ updatedAt?: DatetimeFilter; } @@ -1616,6 +1496,8 @@ export interface OrgMembershipFilter { actorId?: UUIDFilter; /** Checks for all expressions in this list. */ and?: OrgMembershipFilter[]; + /** Filter by the object’s `capabilities` field. */ + capabilities?: BitStringFilter; /** Filter by the object’s `createdAt` field. */ createdAt?: DatetimeFilter; /** Filter by the object’s `createdBy` field. */ @@ -1650,8 +1532,6 @@ export interface OrgMembershipFilter { orgMemberProfileByMembershipId?: OrgMemberProfileFilter; /** A related `orgMemberProfileByMembershipId` exists. */ orgMemberProfileByMembershipIdExists?: boolean; - /** Filter by the object’s `permissions` field. */ - permissions?: BitStringFilter; /** Filter by the object’s `profileId` field. */ profileId?: UUIDFilter; /** Filter by the object’s `updatedAt` field. */ @@ -1739,90 +1619,6 @@ export interface OrgOwnerGrantFilter { /** Filter by the object’s `updatedAt` field. */ updatedAt?: DatetimeFilter; } -export interface OrgPermissionFilter { - /** Checks for all expressions in this list. */ - and?: OrgPermissionFilter[]; - /** 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 `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Negates the expression. */ - not?: OrgPermissionFilter; - /** Checks for any expressions in this list. */ - or?: OrgPermissionFilter[]; - /** Filter by the object’s `orgPermissionDefaultGrantsByPermissionId` relation. */ - orgPermissionDefaultGrantsByPermissionId?: OrgPermissionToManyOrgPermissionDefaultGrantFilter; - /** `orgPermissionDefaultGrantsByPermissionId` exist. */ - orgPermissionDefaultGrantsByPermissionIdExist?: boolean; - /** Filter by the object’s `orgPermissionDefaultPermissionsByPermissionId` relation. */ - orgPermissionDefaultPermissionsByPermissionId?: OrgPermissionToManyOrgPermissionDefaultPermissionFilter; - /** `orgPermissionDefaultPermissionsByPermissionId` exist. */ - orgPermissionDefaultPermissionsByPermissionIdExist?: boolean; -} -export interface OrgPermissionDefaultFilter { - /** Checks for all expressions in this list. */ - and?: OrgPermissionDefaultFilter[]; - /** Filter by the object’s `entityId` field. */ - entityId?: UUIDFilter; - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Negates the expression. */ - not?: OrgPermissionDefaultFilter; - /** Checks for any expressions in this list. */ - or?: OrgPermissionDefaultFilter[]; - /** Filter by the object’s `permissions` field. */ - permissions?: BitStringFilter; -} -export interface OrgPermissionDefaultGrantFilter { - /** Checks for all expressions in this list. */ - and?: OrgPermissionDefaultGrantFilter[]; - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; - /** Filter by the object’s `entityId` field. */ - entityId?: UUIDFilter; - /** Filter by the object’s `grantorId` field. */ - grantorId?: UUIDFilter; - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `isGrant` field. */ - isGrant?: BooleanFilter; - /** Negates the expression. */ - not?: OrgPermissionDefaultGrantFilter; - /** Checks for any expressions in this list. */ - or?: OrgPermissionDefaultGrantFilter[]; - /** Filter by the object’s `permission` relation. */ - permission?: OrgPermissionFilter; - /** Filter by the object’s `permissionId` field. */ - permissionId?: UUIDFilter; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; -} -export interface OrgPermissionDefaultPermissionFilter { - /** Checks for all expressions in this list. */ - and?: OrgPermissionDefaultPermissionFilter[]; - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; - /** Filter by the object’s `entityId` field. */ - entityId?: UUIDFilter; - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Negates the expression. */ - not?: OrgPermissionDefaultPermissionFilter; - /** Checks for any expressions in this list. */ - or?: OrgPermissionDefaultPermissionFilter[]; - /** Filter by the object’s `permission` relation. */ - permission?: OrgPermissionFilter; - /** Filter by the object’s `permissionId` field. */ - permissionId?: UUIDFilter; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; -} // ============ OrderBy Types ============ export type AppAdminGrantOrderBy = | 'ACTOR_ID_ASC' @@ -1840,25 +1636,21 @@ export type AppAdminGrantOrderBy = | 'PRIMARY_KEY_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC'; -export type AppClaimedInviteOrderBy = +export type AppCapabilityDefaultCapabilityOrderBy = + | 'CAPABILITY_ID_ASC' + | 'CAPABILITY_ID_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' - | 'DATA_ASC' - | 'DATA_DESC' | 'ID_ASC' | 'ID_DESC' | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' - | 'RECEIVER_ID_ASC' - | 'RECEIVER_ID_DESC' - | 'SENDER_ID_ASC' - | 'SENDER_ID_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC'; -export type AppGrantOrderBy = - | 'ACTOR_ID_ASC' - | 'ACTOR_ID_DESC' +export type AppCapabilityDefaultGrantOrderBy = + | 'CAPABILITY_ID_ASC' + | 'CAPABILITY_ID_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' | 'GRANTOR_ID_ASC' @@ -1868,14 +1660,46 @@ export type AppGrantOrderBy = | 'IS_GRANT_ASC' | 'IS_GRANT_DESC' | 'NATURAL' - | 'PERMISSIONS_ASC' - | 'PERMISSIONS_DESC' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC'; -export type AppInviteOrderBy = - | 'CHANNEL_ASC' +export type AppClaimedInviteOrderBy = + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'DATA_ASC' + | 'DATA_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'RECEIVER_ID_ASC' + | 'RECEIVER_ID_DESC' + | 'SENDER_ID_ASC' + | 'SENDER_ID_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC'; +export type AppGrantOrderBy = + | 'ACTOR_ID_ASC' + | 'ACTOR_ID_DESC' + | 'CAPABILITIES_ASC' + | 'CAPABILITIES_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'GRANTOR_ID_ASC' + | 'GRANTOR_ID_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'IS_GRANT_ASC' + | 'IS_GRANT_DESC' + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC'; +export type AppInviteOrderBy = + | 'CHANNEL_ASC' | 'CHANNEL_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' @@ -1911,6 +1735,8 @@ export type AppInviteOrderBy = export type AppMembershipOrderBy = | 'ACTOR_ID_ASC' | 'ACTOR_ID_DESC' + | 'CAPABILITIES_ASC' + | 'CAPABILITIES_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' | 'CREATED_BY_ASC' @@ -1934,8 +1760,6 @@ export type AppMembershipOrderBy = | 'IS_VERIFIED_ASC' | 'IS_VERIFIED_DESC' | 'NATURAL' - | 'PERMISSIONS_ASC' - | 'PERMISSIONS_DESC' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'PROFILE_ID_ASC' @@ -1978,31 +1802,29 @@ export type AppOwnerGrantOrderBy = | 'PRIMARY_KEY_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC'; -export type AppPermissionOrderBy = - | 'BITNUM_ASC' - | 'BITNUM_DESC' - | 'BITSTR_ASC' - | 'BITSTR_DESC' +export type MembershipTypeOrderBy = | 'DESCRIPTION_ASC' | 'DESCRIPTION_DESC' + | 'HAS_USERS_TABLE_ENTRY_ASC' + | 'HAS_USERS_TABLE_ENTRY_DESC' | 'ID_ASC' | 'ID_DESC' | 'NAME_ASC' | 'NAME_DESC' | 'NATURAL' + | 'PARENT_MEMBERSHIP_TYPE_ASC' + | 'PARENT_MEMBERSHIP_TYPE_DESC' | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC'; -export type AppPermissionDefaultOrderBy = - | 'ID_ASC' - | 'ID_DESC' - | 'NATURAL' - | 'PERMISSIONS_ASC' - | 'PERMISSIONS_DESC' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC'; -export type AppPermissionDefaultGrantOrderBy = + | 'PRIMARY_KEY_DESC' + | 'SCOPE_ASC' + | 'SCOPE_DESC'; +export type OrgAdminGrantOrderBy = + | 'ACTOR_ID_ASC' + | 'ACTOR_ID_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' + | 'ENTITY_ID_ASC' + | 'ENTITY_ID_DESC' | 'GRANTOR_ID_ASC' | 'GRANTOR_ID_DESC' | 'ID_ASC' @@ -2010,43 +1832,27 @@ export type AppPermissionDefaultGrantOrderBy = | 'IS_GRANT_ASC' | 'IS_GRANT_DESC' | 'NATURAL' - | 'PERMISSION_ID_ASC' - | 'PERMISSION_ID_DESC' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC'; -export type AppPermissionDefaultPermissionOrderBy = +export type OrgCapabilityDefaultCapabilityOrderBy = + | 'CAPABILITY_ID_ASC' + | 'CAPABILITY_ID_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' + | 'ENTITY_ID_ASC' + | 'ENTITY_ID_DESC' | 'ID_ASC' | 'ID_DESC' | 'NATURAL' - | 'PERMISSION_ID_ASC' - | 'PERMISSION_ID_DESC' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC'; -export type MembershipTypeOrderBy = - | 'DESCRIPTION_ASC' - | 'DESCRIPTION_DESC' - | 'HAS_USERS_TABLE_ENTRY_ASC' - | 'HAS_USERS_TABLE_ENTRY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'NAME_ASC' - | 'NAME_DESC' - | 'NATURAL' - | 'PARENT_MEMBERSHIP_TYPE_ASC' - | 'PARENT_MEMBERSHIP_TYPE_DESC' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'SCOPE_ASC' - | 'SCOPE_DESC'; -export type OrgAdminGrantOrderBy = - | 'ACTOR_ID_ASC' - | 'ACTOR_ID_DESC' +export type OrgCapabilityDefaultGrantOrderBy = + | 'CAPABILITY_ID_ASC' + | 'CAPABILITY_ID_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' | 'ENTITY_ID_ASC' @@ -2141,6 +1947,8 @@ export type OrgGetSubordinatesRecordsOrderBy = export type OrgGrantOrderBy = | 'ACTOR_ID_ASC' | 'ACTOR_ID_DESC' + | 'CAPABILITIES_ASC' + | 'CAPABILITIES_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' | 'ENTITY_ID_ASC' @@ -2152,8 +1960,6 @@ export type OrgGrantOrderBy = | 'IS_GRANT_ASC' | 'IS_GRANT_DESC' | 'NATURAL' - | 'PERMISSIONS_ASC' - | 'PERMISSIONS_DESC' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'UPDATED_AT_ASC' @@ -2239,6 +2045,8 @@ export type OrgMemberProfileOrderBy = export type OrgMembershipOrderBy = | 'ACTOR_ID_ASC' | 'ACTOR_ID_DESC' + | 'CAPABILITIES_ASC' + | 'CAPABILITIES_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' | 'CREATED_BY_ASC' @@ -2266,8 +2074,6 @@ export type OrgMembershipOrderBy = | 'IS_READ_ONLY_ASC' | 'IS_READ_ONLY_DESC' | 'NATURAL' - | 'PERMISSIONS_ASC' - | 'PERMISSIONS_DESC' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'PROFILE_ID_ASC' @@ -2344,62 +2150,6 @@ export type OrgOwnerGrantOrderBy = | 'PRIMARY_KEY_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC'; -export type OrgPermissionOrderBy = - | 'BITNUM_ASC' - | 'BITNUM_DESC' - | 'BITSTR_ASC' - | 'BITSTR_DESC' - | 'DESCRIPTION_ASC' - | 'DESCRIPTION_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'NAME_ASC' - | 'NAME_DESC' - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC'; -export type OrgPermissionDefaultOrderBy = - | 'ENTITY_ID_ASC' - | 'ENTITY_ID_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'NATURAL' - | 'PERMISSIONS_ASC' - | 'PERMISSIONS_DESC' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC'; -export type OrgPermissionDefaultGrantOrderBy = - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'ENTITY_ID_ASC' - | 'ENTITY_ID_DESC' - | 'GRANTOR_ID_ASC' - | 'GRANTOR_ID_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'IS_GRANT_ASC' - | 'IS_GRANT_DESC' - | 'NATURAL' - | 'PERMISSION_ID_ASC' - | 'PERMISSION_ID_DESC' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC'; -export type OrgPermissionDefaultPermissionOrderBy = - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'ENTITY_ID_ASC' - | 'ENTITY_ID_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'NATURAL' - | 'PERMISSION_ID_ASC' - | 'PERMISSION_ID_DESC' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC'; // ============ CRUD Input Types ============ export interface CreateAppAdminGrantInput { clientMutationId?: string; @@ -2423,6 +2173,46 @@ export interface DeleteAppAdminGrantInput { clientMutationId?: string; id: string; } +export interface CreateAppCapabilityDefaultCapabilityInput { + clientMutationId?: string; + appCapabilityDefaultCapability: { + capabilityId: string; + }; +} +export interface AppCapabilityDefaultCapabilityPatch { + capabilityId?: string | null; +} +export interface UpdateAppCapabilityDefaultCapabilityInput { + clientMutationId?: string; + id: string; + appCapabilityDefaultCapabilityPatch: AppCapabilityDefaultCapabilityPatch; +} +export interface DeleteAppCapabilityDefaultCapabilityInput { + clientMutationId?: string; + id: string; +} +export interface CreateAppCapabilityDefaultGrantInput { + clientMutationId?: string; + appCapabilityDefaultGrant: { + capabilityId: string; + grantorId?: string; + isGrant?: boolean; + }; +} +export interface AppCapabilityDefaultGrantPatch { + capabilityId?: string | null; + grantorId?: string | null; + isGrant?: boolean | null; +} +export interface UpdateAppCapabilityDefaultGrantInput { + clientMutationId?: string; + id: string; + appCapabilityDefaultGrantPatch: AppCapabilityDefaultGrantPatch; +} +export interface DeleteAppCapabilityDefaultGrantInput { + clientMutationId?: string; + id: string; +} export interface CreateAppClaimedInviteInput { clientMutationId?: string; appClaimedInvite: { @@ -2449,16 +2239,16 @@ export interface CreateAppGrantInput { clientMutationId?: string; appGrant: { actorId?: string; + capabilities?: string; grantorId?: string; isGrant?: boolean; - permissions?: string; }; } export interface AppGrantPatch { actorId?: string | null; + capabilities?: string | null; grantorId?: string | null; isGrant?: boolean | null; - permissions?: string | null; } export interface UpdateAppGrantInput { clientMutationId?: string; @@ -2513,6 +2303,7 @@ export interface CreateAppMembershipInput { clientMutationId?: string; appMembership: { actorId: string; + capabilities?: string; createdBy?: string; granted?: string; isActive?: boolean; @@ -2522,13 +2313,13 @@ export interface CreateAppMembershipInput { isDisabled?: boolean; isOwner?: boolean; isVerified?: boolean; - permissions?: string; profileId?: string; updatedBy?: string; }; } export interface AppMembershipPatch { actorId?: string | null; + capabilities?: string | null; createdBy?: string | null; granted?: string | null; isActive?: boolean | null; @@ -2538,7 +2329,6 @@ export interface AppMembershipPatch { isDisabled?: boolean | null; isOwner?: boolean | null; isVerified?: boolean | null; - permissions?: string | null; profileId?: string | null; updatedBy?: string | null; } @@ -2597,88 +2387,6 @@ export interface DeleteAppOwnerGrantInput { clientMutationId?: string; id: string; } -export interface CreateAppPermissionInput { - clientMutationId?: string; - appPermission: { - bitnum?: number; - bitstr?: string; - description?: string; - name?: string; - }; -} -export interface AppPermissionPatch { - bitnum?: number | null; - bitstr?: string | null; - description?: string | null; - name?: string | null; -} -export interface UpdateAppPermissionInput { - clientMutationId?: string; - id: string; - appPermissionPatch: AppPermissionPatch; -} -export interface DeleteAppPermissionInput { - clientMutationId?: string; - id: string; -} -export interface CreateAppPermissionDefaultInput { - clientMutationId?: string; - appPermissionDefault: { - permissions?: string; - }; -} -export interface AppPermissionDefaultPatch { - permissions?: string | null; -} -export interface UpdateAppPermissionDefaultInput { - clientMutationId?: string; - id: string; - appPermissionDefaultPatch: AppPermissionDefaultPatch; -} -export interface DeleteAppPermissionDefaultInput { - clientMutationId?: string; - id: string; -} -export interface CreateAppPermissionDefaultGrantInput { - clientMutationId?: string; - appPermissionDefaultGrant: { - grantorId?: string; - isGrant?: boolean; - permissionId: string; - }; -} -export interface AppPermissionDefaultGrantPatch { - grantorId?: string | null; - isGrant?: boolean | null; - permissionId?: string | null; -} -export interface UpdateAppPermissionDefaultGrantInput { - clientMutationId?: string; - id: string; - appPermissionDefaultGrantPatch: AppPermissionDefaultGrantPatch; -} -export interface DeleteAppPermissionDefaultGrantInput { - clientMutationId?: string; - id: string; -} -export interface CreateAppPermissionDefaultPermissionInput { - clientMutationId?: string; - appPermissionDefaultPermission: { - permissionId: string; - }; -} -export interface AppPermissionDefaultPermissionPatch { - permissionId?: string | null; -} -export interface UpdateAppPermissionDefaultPermissionInput { - clientMutationId?: string; - id: string; - appPermissionDefaultPermissionPatch: AppPermissionDefaultPermissionPatch; -} -export interface DeleteAppPermissionDefaultPermissionInput { - clientMutationId?: string; - id: string; -} export interface CreateMembershipTypeInput { clientMutationId?: string; membershipType: { @@ -2729,6 +2437,50 @@ export interface DeleteOrgAdminGrantInput { clientMutationId?: string; id: string; } +export interface CreateOrgCapabilityDefaultCapabilityInput { + clientMutationId?: string; + orgCapabilityDefaultCapability: { + capabilityId: string; + entityId: string; + }; +} +export interface OrgCapabilityDefaultCapabilityPatch { + capabilityId?: string | null; + entityId?: string | null; +} +export interface UpdateOrgCapabilityDefaultCapabilityInput { + clientMutationId?: string; + id: string; + orgCapabilityDefaultCapabilityPatch: OrgCapabilityDefaultCapabilityPatch; +} +export interface DeleteOrgCapabilityDefaultCapabilityInput { + clientMutationId?: string; + id: string; +} +export interface CreateOrgCapabilityDefaultGrantInput { + clientMutationId?: string; + orgCapabilityDefaultGrant: { + capabilityId: string; + entityId: string; + grantorId?: string; + isGrant?: boolean; + }; +} +export interface OrgCapabilityDefaultGrantPatch { + capabilityId?: string | null; + entityId?: string | null; + grantorId?: string | null; + isGrant?: boolean | null; +} +export interface UpdateOrgCapabilityDefaultGrantInput { + clientMutationId?: string; + id: string; + orgCapabilityDefaultGrantPatch: OrgCapabilityDefaultGrantPatch; +} +export interface DeleteOrgCapabilityDefaultGrantInput { + clientMutationId?: string; + id: string; +} export interface CreateOrgChartEdgeInput { clientMutationId?: string; orgChartEdge: { @@ -2853,18 +2605,18 @@ export interface CreateOrgGrantInput { clientMutationId?: string; orgGrant: { actorId?: string; + capabilities?: string; entityId: string; grantorId?: string; isGrant?: boolean; - permissions?: string; }; } export interface OrgGrantPatch { actorId?: string | null; + capabilities?: string | null; entityId?: string | null; grantorId?: string | null; isGrant?: boolean | null; - permissions?: string | null; } export interface UpdateOrgGrantInput { clientMutationId?: string; @@ -2980,6 +2732,7 @@ export interface CreateOrgMembershipInput { clientMutationId?: string; orgMembership: { actorId: string; + capabilities?: string; createdBy?: string; entityId: string; granted?: string; @@ -2991,13 +2744,13 @@ export interface CreateOrgMembershipInput { isExternal?: boolean; isOwner?: boolean; isReadOnly?: boolean; - permissions?: string; profileId?: string; updatedBy?: string; }; } export interface OrgMembershipPatch { actorId?: string | null; + capabilities?: string | null; createdBy?: string | null; entityId?: string | null; granted?: string | null; @@ -3009,7 +2762,6 @@ export interface OrgMembershipPatch { isExternal?: boolean | null; isOwner?: boolean | null; isReadOnly?: boolean | null; - permissions?: string | null; profileId?: string | null; updatedBy?: string | null; } @@ -3108,121 +2860,25 @@ export interface DeleteOrgOwnerGrantInput { clientMutationId?: string; id: string; } -export interface CreateOrgPermissionInput { - clientMutationId?: string; - orgPermission: { - bitnum?: number; - bitstr?: string; - description?: string; - name?: string; - }; -} -export interface OrgPermissionPatch { - bitnum?: number | null; - bitstr?: string | null; - description?: string | null; - name?: string | null; -} -export interface UpdateOrgPermissionInput { - clientMutationId?: string; - id: string; - orgPermissionPatch: OrgPermissionPatch; -} -export interface DeleteOrgPermissionInput { - clientMutationId?: string; - id: string; -} -export interface CreateOrgPermissionDefaultInput { - clientMutationId?: string; - orgPermissionDefault: { - entityId: string; - permissions?: string; - }; -} -export interface OrgPermissionDefaultPatch { - entityId?: string | null; - permissions?: string | null; -} -export interface UpdateOrgPermissionDefaultInput { - clientMutationId?: string; - id: string; - orgPermissionDefaultPatch: OrgPermissionDefaultPatch; +// ============ Connection Fields Map ============ +export const connectionFieldsMap = {} as Record>; +// ============ Custom Input Types (from schema) ============ +export interface ProvisionBucketInput { + /** The logical bucket key (e.g., "public", "private") */ + bucketKey: string; + /** + * Owner entity ID for entity-scoped bucket provisioning. + * Omit for app-level (database-wide) storage. + */ + ownerId?: string; } -export interface DeleteOrgPermissionDefaultInput { +export interface SubmitAppInviteCodeInput { clientMutationId?: string; - id: string; + token?: string; } -export interface CreateOrgPermissionDefaultGrantInput { +export interface SubmitOrgInviteCodeInput { clientMutationId?: string; - orgPermissionDefaultGrant: { - entityId: string; - grantorId?: string; - isGrant?: boolean; - permissionId: string; - }; -} -export interface OrgPermissionDefaultGrantPatch { - entityId?: string | null; - grantorId?: string | null; - isGrant?: boolean | null; - permissionId?: string | null; -} -export interface UpdateOrgPermissionDefaultGrantInput { - clientMutationId?: string; - id: string; - orgPermissionDefaultGrantPatch: OrgPermissionDefaultGrantPatch; -} -export interface DeleteOrgPermissionDefaultGrantInput { - clientMutationId?: string; - id: string; -} -export interface CreateOrgPermissionDefaultPermissionInput { - clientMutationId?: string; - orgPermissionDefaultPermission: { - entityId: string; - permissionId: string; - }; -} -export interface OrgPermissionDefaultPermissionPatch { - entityId?: string | null; - permissionId?: string | null; -} -export interface UpdateOrgPermissionDefaultPermissionInput { - clientMutationId?: string; - id: string; - orgPermissionDefaultPermissionPatch: OrgPermissionDefaultPermissionPatch; -} -export interface DeleteOrgPermissionDefaultPermissionInput { - clientMutationId?: string; - id: string; -} -// ============ Connection Fields Map ============ -export const connectionFieldsMap = { - AppPermission: { - appPermissionDefaultGrantsByPermissionId: 'AppPermissionDefaultGrant', - }, - OrgPermission: { - orgPermissionDefaultGrantsByPermissionId: 'OrgPermissionDefaultGrant', - orgPermissionDefaultPermissionsByPermissionId: 'OrgPermissionDefaultPermission', - }, -} as Record>; -// ============ Custom Input Types (from schema) ============ -export interface ProvisionBucketInput { - /** The logical bucket key (e.g., "public", "private") */ - bucketKey: string; - /** - * Owner entity ID for entity-scoped bucket provisioning. - * Omit for app-level (database-wide) storage. - */ - ownerId?: string; -} -export interface SubmitAppInviteCodeInput { - clientMutationId?: string; - token?: string; -} -export interface SubmitOrgInviteCodeInput { - clientMutationId?: string; - token?: string; + token?: string; } /** A filter to be used against ConstructiveInternalTypeEmail fields. All fields are combined with a logical ‘and.’ */ export interface ConstructiveInternalTypeEmailFilter { @@ -3301,15 +2957,6 @@ export interface ConstructiveInternalTypeEmailFilter { /** Starts with the specified string (case-insensitive). */ startsWithInsensitive?: ConstructiveInternalTypeEmail; } -/** A filter to be used against many `AppPermissionDefaultGrant` object types. All fields are combined with a logical ‘and.’ */ -export interface AppPermissionToManyAppPermissionDefaultGrantFilter { - /** Filters to entities where every related entity matches. */ - every?: AppPermissionDefaultGrantFilter; - /** Filters to entities where no related entity matches. */ - none?: AppPermissionDefaultGrantFilter; - /** Filters to entities where at least one related entity matches. */ - some?: AppPermissionDefaultGrantFilter; -} /** A filter to be used against ConstructiveInternalTypeImage fields. All fields are combined with a logical ‘and.’ */ export interface ConstructiveInternalTypeImageFilter { /** Contained by the specified JSON. */ @@ -3345,24 +2992,6 @@ export interface ConstructiveInternalTypeImageFilter { /** Not included in the specified list. */ notIn?: ConstructiveInternalTypeImage[]; } -/** A filter to be used against many `OrgPermissionDefaultGrant` object types. All fields are combined with a logical ‘and.’ */ -export interface OrgPermissionToManyOrgPermissionDefaultGrantFilter { - /** Filters to entities where every related entity matches. */ - every?: OrgPermissionDefaultGrantFilter; - /** Filters to entities where no related entity matches. */ - none?: OrgPermissionDefaultGrantFilter; - /** Filters to entities where at least one related entity matches. */ - some?: OrgPermissionDefaultGrantFilter; -} -/** A filter to be used against many `OrgPermissionDefaultPermission` object types. All fields are combined with a logical ‘and.’ */ -export interface OrgPermissionToManyOrgPermissionDefaultPermissionFilter { - /** Filters to entities where every related entity matches. */ - every?: OrgPermissionDefaultPermissionFilter; - /** Filters to entities where no related entity matches. */ - none?: OrgPermissionDefaultPermissionFilter; - /** Filters to entities where at least one related entity matches. */ - some?: OrgPermissionDefaultPermissionFilter; -} /** An input for mutations affecting `AppAdminGrant` */ export interface AppAdminGrantInput { /** The member receiving or losing the admin grant; NULL if user was deleted */ @@ -3374,6 +3003,25 @@ export interface AppAdminGrantInput { isGrant?: boolean; updatedAt?: string; } +/** An input for mutations affecting `AppCapabilityDefaultCapability` */ +export interface AppCapabilityDefaultCapabilityInput { + /** References the capability included in the defaults bundle */ + capabilityId: string; + createdAt?: string; + id?: string; + updatedAt?: string; +} +/** An input for mutations affecting `AppCapabilityDefaultGrant` */ +export interface AppCapabilityDefaultGrantInput { + /** References the capability being added to or removed from defaults */ + capabilityId: string; + createdAt?: string; + grantorId?: string; + id?: string; + /** True to add the capability to defaults, false to remove it */ + isGrant?: boolean; + updatedAt?: string; +} /** An input for mutations affecting `AppClaimedInvite` */ export interface AppClaimedInviteInput { createdAt?: string; @@ -3388,15 +3036,15 @@ export interface AppClaimedInviteInput { } /** An input for mutations affecting `AppGrant` */ export interface AppGrantInput { - /** The member receiving or losing the permission grant; NULL if user was deleted */ + /** The member receiving or losing the capability grant; NULL if user was deleted */ actorId?: string; + /** Bitmask of capabilities being granted or revoked */ + capabilities?: string; createdAt?: string; grantorId?: string; id?: string; - /** True to grant the permissions, false to revoke them */ + /** True to grant the capabilities, false to revoke them */ isGrant?: boolean; - /** Bitmask of permissions being granted or revoked */ - permissions?: string; updatedAt?: string; } /** An input for mutations affecting `AppInvite` */ @@ -3433,9 +3081,11 @@ export interface AppInviteInput { export interface AppMembershipInput { /** References the user who holds this membership */ actorId: string; + /** Aggregated capability bitmask combining profile-based and directly granted capabilities */ + capabilities?: string; createdAt?: string; createdBy?: string; - /** Bitmask of permissions directly granted to this member (not from profiles) */ + /** Bitmask of capabilities directly granted to this member (not from profiles) */ granted?: string; id?: string; /** Computed field indicating the membership is approved, verified, not banned, and not disabled */ @@ -3452,8 +3102,6 @@ export interface AppMembershipInput { isOwner?: boolean; /** Whether this member has been verified (e.g. email confirmation) */ isVerified?: boolean; - /** Aggregated permission bitmask combining profile-based and directly granted permissions */ - permissions?: string; profileId?: string; updatedAt?: string; updatedBy?: string; @@ -3481,43 +3129,6 @@ export interface AppOwnerGrantInput { isGrant?: boolean; updatedAt?: string; } -/** An input for mutations affecting `AppPermission` */ -export interface AppPermissionInput { - /** 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; - id?: string; - /** Human-readable permission name (e.g. read, write, manage) */ - name?: string; -} -/** An input for mutations affecting `AppPermissionDefault` */ -export interface AppPermissionDefaultInput { - id?: string; - /** Default permission bitmask applied to new members */ - permissions?: string; -} -/** An input for mutations affecting `AppPermissionDefaultGrant` */ -export interface AppPermissionDefaultGrantInput { - createdAt?: string; - grantorId?: string; - id?: string; - /** True to add the permission to defaults, false to remove it */ - isGrant?: boolean; - /** References the permission being added to or removed from defaults */ - permissionId: string; - updatedAt?: string; -} -/** An input for mutations affecting `AppPermissionDefaultPermission` */ -export interface AppPermissionDefaultPermissionInput { - createdAt?: string; - id?: string; - /** References the permission included in the defaults bundle */ - permissionId: string; - updatedAt?: string; -} /** An input for mutations affecting `MembershipType` */ export interface MembershipTypeInput { /** Description of what this membership type represents */ @@ -3546,6 +3157,29 @@ export interface OrgAdminGrantInput { isGrant?: boolean; updatedAt?: string; } +/** An input for mutations affecting `OrgCapabilityDefaultCapability` */ +export interface OrgCapabilityDefaultCapabilityInput { + /** References the capability included in the defaults bundle */ + capabilityId: string; + createdAt?: string; + /** Scopes this default capability to a specific entity */ + entityId: string; + id?: string; + updatedAt?: string; +} +/** An input for mutations affecting `OrgCapabilityDefaultGrant` */ +export interface OrgCapabilityDefaultGrantInput { + /** References the capability being added to or removed from defaults */ + capabilityId: string; + createdAt?: string; + /** Scopes this audit entry to a specific entity */ + entityId: string; + grantorId?: string; + id?: string; + /** True to add the capability to defaults, false to remove it */ + isGrant?: boolean; + updatedAt?: string; +} /** An input for mutations affecting `OrgChartEdge` */ export interface OrgChartEdgeInput { /** User ID of the subordinate (employee) in this reporting relationship */ @@ -3597,17 +3231,17 @@ export interface OrgClaimedInviteInput { } /** An input for mutations affecting `OrgGrant` */ export interface OrgGrantInput { - /** The member receiving or losing the permission grant; NULL if user was deleted */ + /** The member receiving or losing the capability grant; NULL if user was deleted */ actorId?: string; + /** Bitmask of capabilities being granted or revoked */ + capabilities?: string; createdAt?: string; - /** The entity (org or group) this permission grant applies to */ + /** The entity (org or group) this capability grant applies to */ entityId: string; grantorId?: string; id?: string; - /** True to grant the permissions, false to revoke them */ + /** True to grant the capabilities, false to revoke them */ isGrant?: boolean; - /** Bitmask of permissions being granted or revoked */ - permissions?: string; updatedAt?: string; } /** An input for mutations affecting `OrgInvite` */ @@ -3681,11 +3315,13 @@ export interface OrgMemberProfileInput { export interface OrgMembershipInput { /** References the user who holds this membership */ actorId: string; + /** Aggregated capability bitmask combining profile-based and directly granted capabilities */ + capabilities?: string; createdAt?: string; createdBy?: string; /** References the entity (org or group) this membership belongs to */ entityId: string; - /** Bitmask of permissions directly granted to this member (not from profiles) */ + /** Bitmask of capabilities directly granted to this member (not from profiles) */ granted?: string; id?: string; /** Computed field indicating the membership is approved, verified, not banned, and not disabled */ @@ -3698,14 +3334,12 @@ export interface OrgMembershipInput { isBanned?: boolean; /** Whether this membership is temporarily disabled */ isDisabled?: boolean; - /** Whether this member is external (not a member of the parent scope). External members may have restricted permissions. */ + /** Whether this member is external (not a member of the parent scope). External members may have restricted capabilities. */ isExternal?: boolean; /** Whether the actor is the owner of this entity */ isOwner?: boolean; /** Whether this member has read-only access (blocks mutations when true) */ isReadOnly?: boolean; - /** Aggregated permission bitmask combining profile-based and directly granted permissions */ - permissions?: string; profileId?: string; updatedAt?: string; updatedBy?: string; @@ -3739,7 +3373,7 @@ export interface OrgMembershipSettingInput { /** References the entity these settings apply to */ entityId: string; id?: string; - /** Controls how profile assignment on invites is validated: strict (permission + subset check), permission_only (permission only), or subset_only (subset check only) */ + /** Controls how profile assignment on invites is validated: strict (capability + subset check), capability_only (capability only), or subset_only (subset check only) */ inviteProfileAssignmentMode?: 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; @@ -3761,432 +3395,7 @@ export interface OrgOwnerGrantInput { isGrant?: boolean; updatedAt?: string; } -/** An input for mutations affecting `OrgPermission` */ -export interface OrgPermissionInput { - /** 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; - id?: string; - /** Human-readable permission name (e.g. read, write, manage) */ - name?: string; -} -/** An input for mutations affecting `OrgPermissionDefault` */ -export interface OrgPermissionDefaultInput { - /** References the entity these default permissions apply to */ - entityId: string; - id?: string; - /** Default permission bitmask applied to new members */ - permissions?: string; -} -/** An input for mutations affecting `OrgPermissionDefaultGrant` */ -export interface OrgPermissionDefaultGrantInput { - createdAt?: string; - /** Scopes this audit entry to a specific entity */ - entityId: string; - grantorId?: string; - id?: string; - /** True to add the permission to defaults, false to remove it */ - isGrant?: boolean; - /** References the permission being added to or removed from defaults */ - permissionId: string; - updatedAt?: string; -} -/** An input for mutations affecting `OrgPermissionDefaultPermission` */ -export interface OrgPermissionDefaultPermissionInput { - createdAt?: string; - /** Scopes this default permission to a specific entity */ - entityId: string; - id?: string; - /** References the permission included in the defaults bundle */ - permissionId: string; - updatedAt?: string; -} -/** A filter to be used against `AppPermissionDefaultGrant` object types. All fields are combined with a logical ‘and.’ */ -export interface AppPermissionDefaultGrantFilter { - /** Checks for all expressions in this list. */ - and?: AppPermissionDefaultGrantFilter[]; - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; - /** Filter by the object’s `grantorId` field. */ - grantorId?: UUIDFilter; - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `isGrant` field. */ - isGrant?: BooleanFilter; - /** Negates the expression. */ - not?: AppPermissionDefaultGrantFilter; - /** Checks for any expressions in this list. */ - or?: AppPermissionDefaultGrantFilter[]; - /** Filter by the object’s `permission` relation. */ - permission?: AppPermissionFilter; - /** Filter by the object’s `permissionId` field. */ - permissionId?: UUIDFilter; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; -} -/** A filter to be used against `OrgPermissionDefaultGrant` object types. All fields are combined with a logical ‘and.’ */ -export interface OrgPermissionDefaultGrantFilter { - /** Checks for all expressions in this list. */ - and?: OrgPermissionDefaultGrantFilter[]; - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; - /** Filter by the object’s `entityId` field. */ - entityId?: UUIDFilter; - /** Filter by the object’s `grantorId` field. */ - grantorId?: UUIDFilter; - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `isGrant` field. */ - isGrant?: BooleanFilter; - /** Negates the expression. */ - not?: OrgPermissionDefaultGrantFilter; - /** Checks for any expressions in this list. */ - or?: OrgPermissionDefaultGrantFilter[]; - /** Filter by the object’s `permission` relation. */ - permission?: OrgPermissionFilter; - /** Filter by the object’s `permissionId` field. */ - permissionId?: UUIDFilter; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; -} -/** A filter to be used against `OrgPermissionDefaultPermission` object types. All fields are combined with a logical ‘and.’ */ -export interface OrgPermissionDefaultPermissionFilter { - /** Checks for all expressions in this list. */ - and?: OrgPermissionDefaultPermissionFilter[]; - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; - /** Filter by the object’s `entityId` field. */ - entityId?: UUIDFilter; - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Negates the expression. */ - not?: OrgPermissionDefaultPermissionFilter; - /** Checks for any expressions in this list. */ - or?: OrgPermissionDefaultPermissionFilter[]; - /** Filter by the object’s `permission` relation. */ - permission?: OrgPermissionFilter; - /** Filter by the object’s `permissionId` field. */ - permissionId?: UUIDFilter; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; -} -/** A filter to be used against Datetime fields. All fields are combined with a logical ‘and.’ */ -export interface DatetimeFilter { - /** Not equal to the specified value, treating null like an ordinary value. */ - distinctFrom?: string; - /** Equal to the specified value. */ - equalTo?: string; - /** Greater than the specified value. */ - greaterThan?: string; - /** Greater than or equal to the specified value. */ - greaterThanOrEqualTo?: string; - /** Included in the specified list. */ - in?: string[]; - /** Is null (if `true` is specified) or is not null (if `false` is specified). */ - isNull?: boolean; - /** Less than the specified value. */ - lessThan?: string; - /** Less than or equal to the specified value. */ - lessThanOrEqualTo?: string; - /** Equal to the specified value, treating null like an ordinary value. */ - notDistinctFrom?: string; - /** Not equal to the specified value. */ - notEqualTo?: string; - /** Not included in the specified list. */ - notIn?: string[]; -} -/** A filter to be used against UUID fields. All fields are combined with a logical ‘and.’ */ -export interface UUIDFilter { - /** Not equal to the specified value, treating null like an ordinary value. */ - distinctFrom?: string; - /** Equal to the specified value. */ - equalTo?: string; - /** Greater than the specified value. */ - greaterThan?: string; - /** Greater than or equal to the specified value. */ - greaterThanOrEqualTo?: string; - /** Included in the specified list. */ - in?: string[]; - /** Is null (if `true` is specified) or is not null (if `false` is specified). */ - isNull?: boolean; - /** Less than the specified value. */ - lessThan?: string; - /** Less than or equal to the specified value. */ - lessThanOrEqualTo?: string; - /** Equal to the specified value, treating null like an ordinary value. */ - notDistinctFrom?: string; - /** Not equal to the specified value. */ - notEqualTo?: string; - /** Not included in the specified list. */ - notIn?: string[]; -} -/** A filter to be used against Boolean fields. All fields are combined with a logical ‘and.’ */ -export interface BooleanFilter { - /** Not equal to the specified value, treating null like an ordinary value. */ - distinctFrom?: boolean; - /** Equal to the specified value. */ - equalTo?: boolean; - /** Greater than the specified value. */ - greaterThan?: boolean; - /** Greater than or equal to the specified value. */ - greaterThanOrEqualTo?: boolean; - /** Included in the specified list. */ - in?: boolean[]; - /** Is null (if `true` is specified) or is not null (if `false` is specified). */ - isNull?: boolean; - /** Less than the specified value. */ - lessThan?: boolean; - /** Less than or equal to the specified value. */ - lessThanOrEqualTo?: boolean; - /** Equal to the specified value, treating null like an ordinary value. */ - notDistinctFrom?: boolean; - /** Not equal to the specified value. */ - notEqualTo?: boolean; - /** Not included in the specified list. */ - notIn?: boolean[]; -} -/** A filter to be used against `AppPermission` object types. All fields are combined with a logical ‘and.’ */ -export interface AppPermissionFilter { - /** Checks for all expressions in this list. */ - and?: AppPermissionFilter[]; - /** Filter by the object’s `appPermissionDefaultGrantsByPermissionId` relation. */ - appPermissionDefaultGrantsByPermissionId?: AppPermissionToManyAppPermissionDefaultGrantFilter; - /** `appPermissionDefaultGrantsByPermissionId` exist. */ - appPermissionDefaultGrantsByPermissionIdExist?: boolean; - /** Filter by the object’s `appPermissionDefaultPermissionByPermissionId` relation. */ - appPermissionDefaultPermissionByPermissionId?: AppPermissionDefaultPermissionFilter; - /** A related `appPermissionDefaultPermissionByPermissionId` exists. */ - appPermissionDefaultPermissionByPermissionIdExists?: boolean; - /** 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 `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Negates the expression. */ - not?: AppPermissionFilter; - /** Checks for any expressions in this list. */ - or?: AppPermissionFilter[]; -} -/** A filter to be used against `OrgPermission` object types. All fields are combined with a logical ‘and.’ */ -export interface OrgPermissionFilter { - /** Checks for all expressions in this list. */ - and?: OrgPermissionFilter[]; - /** 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 `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Negates the expression. */ - not?: OrgPermissionFilter; - /** Checks for any expressions in this list. */ - or?: OrgPermissionFilter[]; - /** Filter by the object’s `orgPermissionDefaultGrantsByPermissionId` relation. */ - orgPermissionDefaultGrantsByPermissionId?: OrgPermissionToManyOrgPermissionDefaultGrantFilter; - /** `orgPermissionDefaultGrantsByPermissionId` exist. */ - orgPermissionDefaultGrantsByPermissionIdExist?: boolean; - /** Filter by the object’s `orgPermissionDefaultPermissionsByPermissionId` relation. */ - orgPermissionDefaultPermissionsByPermissionId?: OrgPermissionToManyOrgPermissionDefaultPermissionFilter; - /** `orgPermissionDefaultPermissionsByPermissionId` exist. */ - orgPermissionDefaultPermissionsByPermissionIdExist?: boolean; -} -/** A filter to be used against `AppPermissionDefaultPermission` object types. All fields are combined with a logical ‘and.’ */ -export interface AppPermissionDefaultPermissionFilter { - /** Checks for all expressions in this list. */ - and?: AppPermissionDefaultPermissionFilter[]; - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Negates the expression. */ - not?: AppPermissionDefaultPermissionFilter; - /** Checks for any expressions in this list. */ - or?: AppPermissionDefaultPermissionFilter[]; - /** Filter by the object’s `permission` relation. */ - permission?: AppPermissionFilter; - /** Filter by the object’s `permissionId` field. */ - permissionId?: UUIDFilter; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; -} -/** A filter to be used against Int fields. All fields are combined with a logical ‘and.’ */ -export interface IntFilter { - /** Not equal to the specified value, treating null like an ordinary value. */ - distinctFrom?: number; - /** Equal to the specified value. */ - equalTo?: number; - /** Greater than the specified value. */ - greaterThan?: number; - /** Greater than or equal to the specified value. */ - greaterThanOrEqualTo?: number; - /** Included in the specified list. */ - in?: number[]; - /** Is null (if `true` is specified) or is not null (if `false` is specified). */ - isNull?: boolean; - /** Less than the specified value. */ - lessThan?: number; - /** Less than or equal to the specified value. */ - lessThanOrEqualTo?: number; - /** Equal to the specified value, treating null like an ordinary value. */ - notDistinctFrom?: number; - /** Not equal to the specified value. */ - notEqualTo?: number; - /** Not included in the specified list. */ - notIn?: number[]; -} -/** A filter to be used against BitString fields. All fields are combined with a logical ‘and.’ */ -export interface BitStringFilter { - /** Not equal to the specified value, treating null like an ordinary value. */ - distinctFrom?: string; - /** Equal to the specified value. */ - equalTo?: string; - /** Greater than the specified value. */ - greaterThan?: string; - /** Greater than or equal to the specified value. */ - greaterThanOrEqualTo?: string; - /** Included in the specified list. */ - in?: string[]; - /** Is null (if `true` is specified) or is not null (if `false` is specified). */ - isNull?: boolean; - /** Less than the specified value. */ - lessThan?: string; - /** Less than or equal to the specified value. */ - lessThanOrEqualTo?: string; - /** Equal to the specified value, treating null like an ordinary value. */ - notDistinctFrom?: string; - /** Not equal to the specified value. */ - notEqualTo?: string; - /** Not included in the specified list. */ - notIn?: string[]; -} -/** A filter to be used against String fields. All fields are combined with a logical ‘and.’ */ -export interface StringFilter { - /** Not equal to the specified value, treating null like an ordinary value. */ - distinctFrom?: string; - /** Not equal to the specified value, treating null like an ordinary value (case-insensitive). */ - distinctFromInsensitive?: string; - /** Ends with the specified string (case-sensitive). */ - endsWith?: string; - /** Ends with the specified string (case-insensitive). */ - endsWithInsensitive?: string; - /** Equal to the specified value. */ - equalTo?: string; - /** Equal to the specified value (case-insensitive). */ - equalToInsensitive?: string; - /** Greater than the specified value. */ - greaterThan?: string; - /** Greater than the specified value (case-insensitive). */ - greaterThanInsensitive?: string; - /** Greater than or equal to the specified value. */ - greaterThanOrEqualTo?: string; - /** Greater than or equal to the specified value (case-insensitive). */ - greaterThanOrEqualToInsensitive?: string; - /** Included in the specified list. */ - in?: string[]; - /** Included in the specified list (case-insensitive). */ - inInsensitive?: string[]; - /** Contains the specified string (case-sensitive). */ - includes?: string; - /** Contains the specified string (case-insensitive). */ - includesInsensitive?: string; - /** Is null (if `true` is specified) or is not null (if `false` is specified). */ - isNull?: boolean; - /** Less than the specified value. */ - lessThan?: string; - /** Less than the specified value (case-insensitive). */ - lessThanInsensitive?: string; - /** Less than or equal to the specified value. */ - lessThanOrEqualTo?: string; - /** Less than or equal to the specified value (case-insensitive). */ - lessThanOrEqualToInsensitive?: string; - /** Matches the specified pattern (case-sensitive). An underscore (_) matches any single character; a percent sign (%) matches any sequence of zero or more characters. */ - like?: string; - /** Matches the specified pattern (case-insensitive). An underscore (_) matches any single character; a percent sign (%) matches any sequence of zero or more characters. */ - likeInsensitive?: string; - /** Equal to the specified value, treating null like an ordinary value. */ - notDistinctFrom?: string; - /** Equal to the specified value, treating null like an ordinary value (case-insensitive). */ - notDistinctFromInsensitive?: string; - /** Does not end with the specified string (case-sensitive). */ - notEndsWith?: string; - /** Does not end with the specified string (case-insensitive). */ - notEndsWithInsensitive?: string; - /** Not equal to the specified value. */ - notEqualTo?: string; - /** Not equal to the specified value (case-insensitive). */ - notEqualToInsensitive?: string; - /** Not included in the specified list. */ - notIn?: string[]; - /** Not included in the specified list (case-insensitive). */ - notInInsensitive?: string[]; - /** Does not contain the specified string (case-sensitive). */ - notIncludes?: string; - /** Does not contain the specified string (case-insensitive). */ - notIncludesInsensitive?: 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; - /** Does not match the specified pattern (case-insensitive). An underscore (_) matches any single character; a percent sign (%) matches any sequence of zero or more characters. */ - notLikeInsensitive?: string; - /** Does not start with the specified string (case-sensitive). */ - notStartsWith?: string; - /** Does not start with the specified string (case-insensitive). */ - notStartsWithInsensitive?: string; - /** Starts with the specified string (case-sensitive). */ - startsWith?: string; - /** Starts with the specified string (case-insensitive). */ - startsWithInsensitive?: string; -} -/** A connection to a list of `AppPermission` values. */ // ============ Payload/Return Types (for custom operations) ============ -export interface AppPermissionConnection { - edges: AppPermissionEdge[]; - nodes: AppPermission[]; - pageInfo: PageInfo; - totalCount: number; -} -export type AppPermissionConnectionSelect = { - edges?: { - select: AppPermissionEdgeSelect; - }; - nodes?: { - select: AppPermissionSelect; - }; - pageInfo?: { - select: PageInfoSelect; - }; - totalCount?: boolean; -}; -/** A connection to a list of `OrgPermission` values. */ -export interface OrgPermissionConnection { - edges: OrgPermissionEdge[]; - nodes: OrgPermission[]; - pageInfo: PageInfo; - totalCount: number; -} -export type OrgPermissionConnectionSelect = { - edges?: { - select: OrgPermissionEdgeSelect; - }; - nodes?: { - select: OrgPermissionSelect; - }; - pageInfo?: { - select: PageInfoSelect; - }; - totalCount?: boolean; -}; export interface ProvisionBucketPayload { /** The access type applied */ accessType: string; @@ -4255,18 +3464,108 @@ export type UpdateAppAdminGrantPayloadSelect = { }; clientMutationId?: boolean; }; -export interface DeleteAppAdminGrantPayload { - /** The `AppAdminGrant` that was deleted by this mutation. */ - appAdminGrant?: AppAdminGrant | null; - appAdminGrantEdge?: AppAdminGrantEdge | null; +export interface DeleteAppAdminGrantPayload { + /** The `AppAdminGrant` that was deleted by this mutation. */ + appAdminGrant?: AppAdminGrant | null; + appAdminGrantEdge?: AppAdminGrantEdge | null; + clientMutationId?: string | null; +} +export type DeleteAppAdminGrantPayloadSelect = { + appAdminGrant?: { + select: AppAdminGrantSelect; + }; + appAdminGrantEdge?: { + select: AppAdminGrantEdgeSelect; + }; + clientMutationId?: boolean; +}; +export interface CreateAppCapabilityDefaultCapabilityPayload { + /** The `AppCapabilityDefaultCapability` that was created by this mutation. */ + appCapabilityDefaultCapability?: AppCapabilityDefaultCapability | null; + appCapabilityDefaultCapabilityEdge?: AppCapabilityDefaultCapabilityEdge | null; + clientMutationId?: string | null; +} +export type CreateAppCapabilityDefaultCapabilityPayloadSelect = { + appCapabilityDefaultCapability?: { + select: AppCapabilityDefaultCapabilitySelect; + }; + appCapabilityDefaultCapabilityEdge?: { + select: AppCapabilityDefaultCapabilityEdgeSelect; + }; + clientMutationId?: boolean; +}; +export interface UpdateAppCapabilityDefaultCapabilityPayload { + /** The `AppCapabilityDefaultCapability` that was updated by this mutation. */ + appCapabilityDefaultCapability?: AppCapabilityDefaultCapability | null; + appCapabilityDefaultCapabilityEdge?: AppCapabilityDefaultCapabilityEdge | null; + clientMutationId?: string | null; +} +export type UpdateAppCapabilityDefaultCapabilityPayloadSelect = { + appCapabilityDefaultCapability?: { + select: AppCapabilityDefaultCapabilitySelect; + }; + appCapabilityDefaultCapabilityEdge?: { + select: AppCapabilityDefaultCapabilityEdgeSelect; + }; + clientMutationId?: boolean; +}; +export interface DeleteAppCapabilityDefaultCapabilityPayload { + /** The `AppCapabilityDefaultCapability` that was deleted by this mutation. */ + appCapabilityDefaultCapability?: AppCapabilityDefaultCapability | null; + appCapabilityDefaultCapabilityEdge?: AppCapabilityDefaultCapabilityEdge | null; + clientMutationId?: string | null; +} +export type DeleteAppCapabilityDefaultCapabilityPayloadSelect = { + appCapabilityDefaultCapability?: { + select: AppCapabilityDefaultCapabilitySelect; + }; + appCapabilityDefaultCapabilityEdge?: { + select: AppCapabilityDefaultCapabilityEdgeSelect; + }; + clientMutationId?: boolean; +}; +export interface CreateAppCapabilityDefaultGrantPayload { + /** The `AppCapabilityDefaultGrant` that was created by this mutation. */ + appCapabilityDefaultGrant?: AppCapabilityDefaultGrant | null; + appCapabilityDefaultGrantEdge?: AppCapabilityDefaultGrantEdge | null; + clientMutationId?: string | null; +} +export type CreateAppCapabilityDefaultGrantPayloadSelect = { + appCapabilityDefaultGrant?: { + select: AppCapabilityDefaultGrantSelect; + }; + appCapabilityDefaultGrantEdge?: { + select: AppCapabilityDefaultGrantEdgeSelect; + }; + clientMutationId?: boolean; +}; +export interface UpdateAppCapabilityDefaultGrantPayload { + /** The `AppCapabilityDefaultGrant` that was updated by this mutation. */ + appCapabilityDefaultGrant?: AppCapabilityDefaultGrant | null; + appCapabilityDefaultGrantEdge?: AppCapabilityDefaultGrantEdge | null; + clientMutationId?: string | null; +} +export type UpdateAppCapabilityDefaultGrantPayloadSelect = { + appCapabilityDefaultGrant?: { + select: AppCapabilityDefaultGrantSelect; + }; + appCapabilityDefaultGrantEdge?: { + select: AppCapabilityDefaultGrantEdgeSelect; + }; + clientMutationId?: boolean; +}; +export interface DeleteAppCapabilityDefaultGrantPayload { + /** The `AppCapabilityDefaultGrant` that was deleted by this mutation. */ + appCapabilityDefaultGrant?: AppCapabilityDefaultGrant | null; + appCapabilityDefaultGrantEdge?: AppCapabilityDefaultGrantEdge | null; clientMutationId?: string | null; } -export type DeleteAppAdminGrantPayloadSelect = { - appAdminGrant?: { - select: AppAdminGrantSelect; +export type DeleteAppCapabilityDefaultGrantPayloadSelect = { + appCapabilityDefaultGrant?: { + select: AppCapabilityDefaultGrantSelect; }; - appAdminGrantEdge?: { - select: AppAdminGrantEdgeSelect; + appCapabilityDefaultGrantEdge?: { + select: AppCapabilityDefaultGrantEdgeSelect; }; clientMutationId?: boolean; }; @@ -4540,186 +3839,6 @@ export type DeleteAppOwnerGrantPayloadSelect = { }; clientMutationId?: boolean; }; -export interface CreateAppPermissionPayload { - /** The `AppPermission` that was created by this mutation. */ - appPermission?: AppPermission | null; - appPermissionEdge?: AppPermissionEdge | null; - clientMutationId?: string | null; -} -export type CreateAppPermissionPayloadSelect = { - appPermission?: { - select: AppPermissionSelect; - }; - appPermissionEdge?: { - select: AppPermissionEdgeSelect; - }; - clientMutationId?: boolean; -}; -export interface UpdateAppPermissionPayload { - /** The `AppPermission` that was updated by this mutation. */ - appPermission?: AppPermission | null; - appPermissionEdge?: AppPermissionEdge | null; - clientMutationId?: string | null; -} -export type UpdateAppPermissionPayloadSelect = { - appPermission?: { - select: AppPermissionSelect; - }; - appPermissionEdge?: { - select: AppPermissionEdgeSelect; - }; - clientMutationId?: boolean; -}; -export interface DeleteAppPermissionPayload { - /** The `AppPermission` that was deleted by this mutation. */ - appPermission?: AppPermission | null; - appPermissionEdge?: AppPermissionEdge | null; - clientMutationId?: string | null; -} -export type DeleteAppPermissionPayloadSelect = { - appPermission?: { - select: AppPermissionSelect; - }; - appPermissionEdge?: { - select: AppPermissionEdgeSelect; - }; - clientMutationId?: boolean; -}; -export interface CreateAppPermissionDefaultPayload { - /** The `AppPermissionDefault` that was created by this mutation. */ - appPermissionDefault?: AppPermissionDefault | null; - appPermissionDefaultEdge?: AppPermissionDefaultEdge | null; - clientMutationId?: string | null; -} -export type CreateAppPermissionDefaultPayloadSelect = { - appPermissionDefault?: { - select: AppPermissionDefaultSelect; - }; - appPermissionDefaultEdge?: { - select: AppPermissionDefaultEdgeSelect; - }; - clientMutationId?: boolean; -}; -export interface UpdateAppPermissionDefaultPayload { - /** The `AppPermissionDefault` that was updated by this mutation. */ - appPermissionDefault?: AppPermissionDefault | null; - appPermissionDefaultEdge?: AppPermissionDefaultEdge | null; - clientMutationId?: string | null; -} -export type UpdateAppPermissionDefaultPayloadSelect = { - appPermissionDefault?: { - select: AppPermissionDefaultSelect; - }; - appPermissionDefaultEdge?: { - select: AppPermissionDefaultEdgeSelect; - }; - clientMutationId?: boolean; -}; -export interface DeleteAppPermissionDefaultPayload { - /** The `AppPermissionDefault` that was deleted by this mutation. */ - appPermissionDefault?: AppPermissionDefault | null; - appPermissionDefaultEdge?: AppPermissionDefaultEdge | null; - clientMutationId?: string | null; -} -export type DeleteAppPermissionDefaultPayloadSelect = { - appPermissionDefault?: { - select: AppPermissionDefaultSelect; - }; - appPermissionDefaultEdge?: { - select: AppPermissionDefaultEdgeSelect; - }; - clientMutationId?: boolean; -}; -export interface CreateAppPermissionDefaultGrantPayload { - /** The `AppPermissionDefaultGrant` that was created by this mutation. */ - appPermissionDefaultGrant?: AppPermissionDefaultGrant | null; - appPermissionDefaultGrantEdge?: AppPermissionDefaultGrantEdge | null; - clientMutationId?: string | null; -} -export type CreateAppPermissionDefaultGrantPayloadSelect = { - appPermissionDefaultGrant?: { - select: AppPermissionDefaultGrantSelect; - }; - appPermissionDefaultGrantEdge?: { - select: AppPermissionDefaultGrantEdgeSelect; - }; - clientMutationId?: boolean; -}; -export interface UpdateAppPermissionDefaultGrantPayload { - /** The `AppPermissionDefaultGrant` that was updated by this mutation. */ - appPermissionDefaultGrant?: AppPermissionDefaultGrant | null; - appPermissionDefaultGrantEdge?: AppPermissionDefaultGrantEdge | null; - clientMutationId?: string | null; -} -export type UpdateAppPermissionDefaultGrantPayloadSelect = { - appPermissionDefaultGrant?: { - select: AppPermissionDefaultGrantSelect; - }; - appPermissionDefaultGrantEdge?: { - select: AppPermissionDefaultGrantEdgeSelect; - }; - clientMutationId?: boolean; -}; -export interface DeleteAppPermissionDefaultGrantPayload { - /** The `AppPermissionDefaultGrant` that was deleted by this mutation. */ - appPermissionDefaultGrant?: AppPermissionDefaultGrant | null; - appPermissionDefaultGrantEdge?: AppPermissionDefaultGrantEdge | null; - clientMutationId?: string | null; -} -export type DeleteAppPermissionDefaultGrantPayloadSelect = { - appPermissionDefaultGrant?: { - select: AppPermissionDefaultGrantSelect; - }; - appPermissionDefaultGrantEdge?: { - select: AppPermissionDefaultGrantEdgeSelect; - }; - clientMutationId?: boolean; -}; -export interface CreateAppPermissionDefaultPermissionPayload { - /** The `AppPermissionDefaultPermission` that was created by this mutation. */ - appPermissionDefaultPermission?: AppPermissionDefaultPermission | null; - appPermissionDefaultPermissionEdge?: AppPermissionDefaultPermissionEdge | null; - clientMutationId?: string | null; -} -export type CreateAppPermissionDefaultPermissionPayloadSelect = { - appPermissionDefaultPermission?: { - select: AppPermissionDefaultPermissionSelect; - }; - appPermissionDefaultPermissionEdge?: { - select: AppPermissionDefaultPermissionEdgeSelect; - }; - clientMutationId?: boolean; -}; -export interface UpdateAppPermissionDefaultPermissionPayload { - /** The `AppPermissionDefaultPermission` that was updated by this mutation. */ - appPermissionDefaultPermission?: AppPermissionDefaultPermission | null; - appPermissionDefaultPermissionEdge?: AppPermissionDefaultPermissionEdge | null; - clientMutationId?: string | null; -} -export type UpdateAppPermissionDefaultPermissionPayloadSelect = { - appPermissionDefaultPermission?: { - select: AppPermissionDefaultPermissionSelect; - }; - appPermissionDefaultPermissionEdge?: { - select: AppPermissionDefaultPermissionEdgeSelect; - }; - clientMutationId?: boolean; -}; -export interface DeleteAppPermissionDefaultPermissionPayload { - /** The `AppPermissionDefaultPermission` that was deleted by this mutation. */ - appPermissionDefaultPermission?: AppPermissionDefaultPermission | null; - appPermissionDefaultPermissionEdge?: AppPermissionDefaultPermissionEdge | null; - clientMutationId?: string | null; -} -export type DeleteAppPermissionDefaultPermissionPayloadSelect = { - appPermissionDefaultPermission?: { - select: AppPermissionDefaultPermissionSelect; - }; - appPermissionDefaultPermissionEdge?: { - select: AppPermissionDefaultPermissionEdgeSelect; - }; - clientMutationId?: boolean; -}; export interface CreateMembershipTypePayload { clientMutationId?: string | null; /** The `MembershipType` that was created by this mutation. */ @@ -4810,6 +3929,96 @@ export type DeleteOrgAdminGrantPayloadSelect = { select: OrgAdminGrantEdgeSelect; }; }; +export interface CreateOrgCapabilityDefaultCapabilityPayload { + clientMutationId?: string | null; + /** The `OrgCapabilityDefaultCapability` that was created by this mutation. */ + orgCapabilityDefaultCapability?: OrgCapabilityDefaultCapability | null; + orgCapabilityDefaultCapabilityEdge?: OrgCapabilityDefaultCapabilityEdge | null; +} +export type CreateOrgCapabilityDefaultCapabilityPayloadSelect = { + clientMutationId?: boolean; + orgCapabilityDefaultCapability?: { + select: OrgCapabilityDefaultCapabilitySelect; + }; + orgCapabilityDefaultCapabilityEdge?: { + select: OrgCapabilityDefaultCapabilityEdgeSelect; + }; +}; +export interface UpdateOrgCapabilityDefaultCapabilityPayload { + clientMutationId?: string | null; + /** The `OrgCapabilityDefaultCapability` that was updated by this mutation. */ + orgCapabilityDefaultCapability?: OrgCapabilityDefaultCapability | null; + orgCapabilityDefaultCapabilityEdge?: OrgCapabilityDefaultCapabilityEdge | null; +} +export type UpdateOrgCapabilityDefaultCapabilityPayloadSelect = { + clientMutationId?: boolean; + orgCapabilityDefaultCapability?: { + select: OrgCapabilityDefaultCapabilitySelect; + }; + orgCapabilityDefaultCapabilityEdge?: { + select: OrgCapabilityDefaultCapabilityEdgeSelect; + }; +}; +export interface DeleteOrgCapabilityDefaultCapabilityPayload { + clientMutationId?: string | null; + /** The `OrgCapabilityDefaultCapability` that was deleted by this mutation. */ + orgCapabilityDefaultCapability?: OrgCapabilityDefaultCapability | null; + orgCapabilityDefaultCapabilityEdge?: OrgCapabilityDefaultCapabilityEdge | null; +} +export type DeleteOrgCapabilityDefaultCapabilityPayloadSelect = { + clientMutationId?: boolean; + orgCapabilityDefaultCapability?: { + select: OrgCapabilityDefaultCapabilitySelect; + }; + orgCapabilityDefaultCapabilityEdge?: { + select: OrgCapabilityDefaultCapabilityEdgeSelect; + }; +}; +export interface CreateOrgCapabilityDefaultGrantPayload { + clientMutationId?: string | null; + /** The `OrgCapabilityDefaultGrant` that was created by this mutation. */ + orgCapabilityDefaultGrant?: OrgCapabilityDefaultGrant | null; + orgCapabilityDefaultGrantEdge?: OrgCapabilityDefaultGrantEdge | null; +} +export type CreateOrgCapabilityDefaultGrantPayloadSelect = { + clientMutationId?: boolean; + orgCapabilityDefaultGrant?: { + select: OrgCapabilityDefaultGrantSelect; + }; + orgCapabilityDefaultGrantEdge?: { + select: OrgCapabilityDefaultGrantEdgeSelect; + }; +}; +export interface UpdateOrgCapabilityDefaultGrantPayload { + clientMutationId?: string | null; + /** The `OrgCapabilityDefaultGrant` that was updated by this mutation. */ + orgCapabilityDefaultGrant?: OrgCapabilityDefaultGrant | null; + orgCapabilityDefaultGrantEdge?: OrgCapabilityDefaultGrantEdge | null; +} +export type UpdateOrgCapabilityDefaultGrantPayloadSelect = { + clientMutationId?: boolean; + orgCapabilityDefaultGrant?: { + select: OrgCapabilityDefaultGrantSelect; + }; + orgCapabilityDefaultGrantEdge?: { + select: OrgCapabilityDefaultGrantEdgeSelect; + }; +}; +export interface DeleteOrgCapabilityDefaultGrantPayload { + clientMutationId?: string | null; + /** The `OrgCapabilityDefaultGrant` that was deleted by this mutation. */ + orgCapabilityDefaultGrant?: OrgCapabilityDefaultGrant | null; + orgCapabilityDefaultGrantEdge?: OrgCapabilityDefaultGrantEdge | null; +} +export type DeleteOrgCapabilityDefaultGrantPayloadSelect = { + clientMutationId?: boolean; + orgCapabilityDefaultGrant?: { + select: OrgCapabilityDefaultGrantSelect; + }; + orgCapabilityDefaultGrantEdge?: { + select: OrgCapabilityDefaultGrantEdgeSelect; + }; +}; export interface CreateOrgChartEdgePayload { clientMutationId?: string | null; /** The `OrgChartEdge` that was created by this mutation. */ @@ -5305,237 +4514,40 @@ export type DeleteOrgOwnerGrantPayloadSelect = { select: OrgOwnerGrantEdgeSelect; }; }; -export interface CreateOrgPermissionPayload { - clientMutationId?: string | null; - /** The `OrgPermission` that was created by this mutation. */ - orgPermission?: OrgPermission | null; - orgPermissionEdge?: OrgPermissionEdge | null; -} -export type CreateOrgPermissionPayloadSelect = { - clientMutationId?: boolean; - orgPermission?: { - select: OrgPermissionSelect; - }; - orgPermissionEdge?: { - select: OrgPermissionEdgeSelect; - }; -}; -export interface UpdateOrgPermissionPayload { - clientMutationId?: string | null; - /** The `OrgPermission` that was updated by this mutation. */ - orgPermission?: OrgPermission | null; - orgPermissionEdge?: OrgPermissionEdge | null; -} -export type UpdateOrgPermissionPayloadSelect = { - clientMutationId?: boolean; - orgPermission?: { - select: OrgPermissionSelect; - }; - orgPermissionEdge?: { - select: OrgPermissionEdgeSelect; - }; -}; -export interface DeleteOrgPermissionPayload { - clientMutationId?: string | null; - /** The `OrgPermission` that was deleted by this mutation. */ - orgPermission?: OrgPermission | null; - orgPermissionEdge?: OrgPermissionEdge | null; -} -export type DeleteOrgPermissionPayloadSelect = { - clientMutationId?: boolean; - orgPermission?: { - select: OrgPermissionSelect; - }; - orgPermissionEdge?: { - select: OrgPermissionEdgeSelect; - }; -}; -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 CreateOrgPermissionDefaultGrantPayload { - clientMutationId?: string | null; - /** The `OrgPermissionDefaultGrant` that was created by this mutation. */ - orgPermissionDefaultGrant?: OrgPermissionDefaultGrant | null; - orgPermissionDefaultGrantEdge?: OrgPermissionDefaultGrantEdge | null; -} -export type CreateOrgPermissionDefaultGrantPayloadSelect = { - clientMutationId?: boolean; - orgPermissionDefaultGrant?: { - select: OrgPermissionDefaultGrantSelect; - }; - orgPermissionDefaultGrantEdge?: { - select: OrgPermissionDefaultGrantEdgeSelect; - }; -}; -export interface UpdateOrgPermissionDefaultGrantPayload { - clientMutationId?: string | null; - /** The `OrgPermissionDefaultGrant` that was updated by this mutation. */ - orgPermissionDefaultGrant?: OrgPermissionDefaultGrant | null; - orgPermissionDefaultGrantEdge?: OrgPermissionDefaultGrantEdge | null; -} -export type UpdateOrgPermissionDefaultGrantPayloadSelect = { - clientMutationId?: boolean; - orgPermissionDefaultGrant?: { - select: OrgPermissionDefaultGrantSelect; - }; - orgPermissionDefaultGrantEdge?: { - select: OrgPermissionDefaultGrantEdgeSelect; - }; -}; -export interface DeleteOrgPermissionDefaultGrantPayload { - clientMutationId?: string | null; - /** The `OrgPermissionDefaultGrant` that was deleted by this mutation. */ - orgPermissionDefaultGrant?: OrgPermissionDefaultGrant | null; - orgPermissionDefaultGrantEdge?: OrgPermissionDefaultGrantEdge | null; -} -export type DeleteOrgPermissionDefaultGrantPayloadSelect = { - clientMutationId?: boolean; - orgPermissionDefaultGrant?: { - select: OrgPermissionDefaultGrantSelect; - }; - orgPermissionDefaultGrantEdge?: { - select: OrgPermissionDefaultGrantEdgeSelect; - }; -}; -export interface CreateOrgPermissionDefaultPermissionPayload { - clientMutationId?: string | null; - /** The `OrgPermissionDefaultPermission` that was created by this mutation. */ - orgPermissionDefaultPermission?: OrgPermissionDefaultPermission | null; - orgPermissionDefaultPermissionEdge?: OrgPermissionDefaultPermissionEdge | null; -} -export type CreateOrgPermissionDefaultPermissionPayloadSelect = { - clientMutationId?: boolean; - orgPermissionDefaultPermission?: { - select: OrgPermissionDefaultPermissionSelect; - }; - orgPermissionDefaultPermissionEdge?: { - select: OrgPermissionDefaultPermissionEdgeSelect; - }; -}; -export interface UpdateOrgPermissionDefaultPermissionPayload { - clientMutationId?: string | null; - /** The `OrgPermissionDefaultPermission` that was updated by this mutation. */ - orgPermissionDefaultPermission?: OrgPermissionDefaultPermission | null; - orgPermissionDefaultPermissionEdge?: OrgPermissionDefaultPermissionEdge | null; -} -export type UpdateOrgPermissionDefaultPermissionPayloadSelect = { - clientMutationId?: boolean; - orgPermissionDefaultPermission?: { - select: OrgPermissionDefaultPermissionSelect; - }; - orgPermissionDefaultPermissionEdge?: { - select: OrgPermissionDefaultPermissionEdgeSelect; - }; -}; -export interface DeleteOrgPermissionDefaultPermissionPayload { - clientMutationId?: string | null; - /** The `OrgPermissionDefaultPermission` that was deleted by this mutation. */ - orgPermissionDefaultPermission?: OrgPermissionDefaultPermission | null; - orgPermissionDefaultPermissionEdge?: OrgPermissionDefaultPermissionEdge | null; -} -export type DeleteOrgPermissionDefaultPermissionPayloadSelect = { - clientMutationId?: boolean; - orgPermissionDefaultPermission?: { - select: OrgPermissionDefaultPermissionSelect; - }; - orgPermissionDefaultPermissionEdge?: { - select: OrgPermissionDefaultPermissionEdgeSelect; - }; -}; -/** A `AppPermission` edge in the connection. */ -export interface AppPermissionEdge { +/** A `AppAdminGrant` edge in the connection. */ +export interface AppAdminGrantEdge { cursor?: string | null; - /** The `AppPermission` at the end of the edge. */ - node?: AppPermission | null; + /** The `AppAdminGrant` at the end of the edge. */ + node?: AppAdminGrant | null; } -export type AppPermissionEdgeSelect = { +export type AppAdminGrantEdgeSelect = { cursor?: boolean; node?: { - select: AppPermissionSelect; + select: AppAdminGrantSelect; }; }; -/** Information about pagination in a connection. */ -export interface PageInfo { - /** When paginating forwards, the cursor to continue. */ - endCursor?: string | null; - /** When paginating forwards, are there more items? */ - hasNextPage: boolean; - /** When paginating backwards, are there more items? */ - hasPreviousPage: boolean; - /** When paginating backwards, the cursor to continue. */ - startCursor?: string | null; -} -export type PageInfoSelect = { - endCursor?: boolean; - hasNextPage?: boolean; - hasPreviousPage?: boolean; - startCursor?: boolean; -}; -/** A `OrgPermission` edge in the connection. */ -export interface OrgPermissionEdge { +/** A `AppCapabilityDefaultCapability` edge in the connection. */ +export interface AppCapabilityDefaultCapabilityEdge { cursor?: string | null; - /** The `OrgPermission` at the end of the edge. */ - node?: OrgPermission | null; + /** The `AppCapabilityDefaultCapability` at the end of the edge. */ + node?: AppCapabilityDefaultCapability | null; } -export type OrgPermissionEdgeSelect = { +export type AppCapabilityDefaultCapabilityEdgeSelect = { cursor?: boolean; node?: { - select: OrgPermissionSelect; + select: AppCapabilityDefaultCapabilitySelect; }; }; -/** A `AppAdminGrant` edge in the connection. */ -export interface AppAdminGrantEdge { +/** A `AppCapabilityDefaultGrant` edge in the connection. */ +export interface AppCapabilityDefaultGrantEdge { cursor?: string | null; - /** The `AppAdminGrant` at the end of the edge. */ - node?: AppAdminGrant | null; + /** The `AppCapabilityDefaultGrant` at the end of the edge. */ + node?: AppCapabilityDefaultGrant | null; } -export type AppAdminGrantEdgeSelect = { +export type AppCapabilityDefaultGrantEdgeSelect = { cursor?: boolean; node?: { - select: AppAdminGrantSelect; + select: AppCapabilityDefaultGrantSelect; }; }; /** A `AppClaimedInvite` edge in the connection. */ @@ -5610,42 +4622,6 @@ export type AppOwnerGrantEdgeSelect = { select: AppOwnerGrantSelect; }; }; -/** A `AppPermissionDefault` edge in the connection. */ -export interface AppPermissionDefaultEdge { - cursor?: string | null; - /** The `AppPermissionDefault` at the end of the edge. */ - node?: AppPermissionDefault | null; -} -export type AppPermissionDefaultEdgeSelect = { - cursor?: boolean; - node?: { - select: AppPermissionDefaultSelect; - }; -}; -/** A `AppPermissionDefaultGrant` edge in the connection. */ -export interface AppPermissionDefaultGrantEdge { - cursor?: string | null; - /** The `AppPermissionDefaultGrant` at the end of the edge. */ - node?: AppPermissionDefaultGrant | null; -} -export type AppPermissionDefaultGrantEdgeSelect = { - cursor?: boolean; - node?: { - select: AppPermissionDefaultGrantSelect; - }; -}; -/** A `AppPermissionDefaultPermission` edge in the connection. */ -export interface AppPermissionDefaultPermissionEdge { - cursor?: string | null; - /** The `AppPermissionDefaultPermission` at the end of the edge. */ - node?: AppPermissionDefaultPermission | null; -} -export type AppPermissionDefaultPermissionEdgeSelect = { - cursor?: boolean; - node?: { - select: AppPermissionDefaultPermissionSelect; - }; -}; /** A `MembershipType` edge in the connection. */ export interface MembershipTypeEdge { cursor?: string | null; @@ -5670,6 +4646,30 @@ export type OrgAdminGrantEdgeSelect = { select: OrgAdminGrantSelect; }; }; +/** A `OrgCapabilityDefaultCapability` edge in the connection. */ +export interface OrgCapabilityDefaultCapabilityEdge { + cursor?: string | null; + /** The `OrgCapabilityDefaultCapability` at the end of the edge. */ + node?: OrgCapabilityDefaultCapability | null; +} +export type OrgCapabilityDefaultCapabilityEdgeSelect = { + cursor?: boolean; + node?: { + select: OrgCapabilityDefaultCapabilitySelect; + }; +}; +/** A `OrgCapabilityDefaultGrant` edge in the connection. */ +export interface OrgCapabilityDefaultGrantEdge { + cursor?: string | null; + /** The `OrgCapabilityDefaultGrant` at the end of the edge. */ + node?: OrgCapabilityDefaultGrant | null; +} +export type OrgCapabilityDefaultGrantEdgeSelect = { + cursor?: boolean; + node?: { + select: OrgCapabilityDefaultGrantSelect; + }; +}; /** A `OrgChartEdge` edge in the connection. */ export interface OrgChartEdgeEdge { cursor?: string | null; @@ -5802,39 +4802,3 @@ export type OrgOwnerGrantEdgeSelect = { select: OrgOwnerGrantSelect; }; }; -/** A `OrgPermissionDefault` edge in the connection. */ -export interface OrgPermissionDefaultEdge { - cursor?: string | null; - /** The `OrgPermissionDefault` at the end of the edge. */ - node?: OrgPermissionDefault | null; -} -export type OrgPermissionDefaultEdgeSelect = { - cursor?: boolean; - node?: { - select: OrgPermissionDefaultSelect; - }; -}; -/** A `OrgPermissionDefaultGrant` edge in the connection. */ -export interface OrgPermissionDefaultGrantEdge { - cursor?: string | null; - /** The `OrgPermissionDefaultGrant` at the end of the edge. */ - node?: OrgPermissionDefaultGrant | null; -} -export type OrgPermissionDefaultGrantEdgeSelect = { - cursor?: boolean; - node?: { - select: OrgPermissionDefaultGrantSelect; - }; -}; -/** A `OrgPermissionDefaultPermission` edge in the connection. */ -export interface OrgPermissionDefaultPermissionEdge { - cursor?: string | null; - /** The `OrgPermissionDefaultPermission` at the end of the edge. */ - node?: OrgPermissionDefaultPermission | null; -} -export type OrgPermissionDefaultPermissionEdgeSelect = { - cursor?: boolean; - node?: { - select: OrgPermissionDefaultPermissionSelect; - }; -}; diff --git a/sdk/constructive-react/src/admin/orm/models/appCapabilityDefaultCapability.ts b/sdk/constructive-react/src/admin/orm/models/appCapabilityDefaultCapability.ts new file mode 100644 index 0000000000..2f90833f58 --- /dev/null +++ b/sdk/constructive-react/src/admin/orm/models/appCapabilityDefaultCapability.ts @@ -0,0 +1,273 @@ +/** + * AppCapabilityDefaultCapability 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 { + AppCapabilityDefaultCapability, + AppCapabilityDefaultCapabilityWithRelations, + AppCapabilityDefaultCapabilitySelect, + AppCapabilityDefaultCapabilityFilter, + AppCapabilityDefaultCapabilityOrderBy, + CreateAppCapabilityDefaultCapabilityInput, + UpdateAppCapabilityDefaultCapabilityInput, + AppCapabilityDefaultCapabilityPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class AppCapabilityDefaultCapabilityModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs< + S, + AppCapabilityDefaultCapabilityFilter, + AppCapabilityDefaultCapabilityOrderBy + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + appCapabilityDefaultCapabilities: ConnectionResult< + InferSelectResult + >; + }> { + const { document, variables } = buildFindManyDocument( + 'AppCapabilityDefaultCapability', + 'appCapabilityDefaultCapabilities', + 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, + }, + 'AppCapabilityDefaultCapabilityFilter', + 'AppCapabilityDefaultCapabilityOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'AppCapabilityDefaultCapability', + fieldName: 'appCapabilityDefaultCapabilities', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs< + S, + AppCapabilityDefaultCapabilityFilter, + AppCapabilityDefaultCapabilityOrderBy + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + appCapabilityDefaultCapability: InferSelectResult< + AppCapabilityDefaultCapabilityWithRelations, + S + > | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'AppCapabilityDefaultCapability', + 'appCapabilityDefaultCapabilities', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'AppCapabilityDefaultCapabilityFilter', + 'AppCapabilityDefaultCapabilityOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'AppCapabilityDefaultCapability', + fieldName: 'appCapabilityDefaultCapability', + document, + variables, + transform: (data: { + appCapabilityDefaultCapabilities?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + appCapabilityDefaultCapability: data.appCapabilityDefaultCapabilities?.nodes?.[0] ?? null, + }), + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + appCapabilityDefaultCapability: InferSelectResult< + AppCapabilityDefaultCapabilityWithRelations, + S + > | null; + }> { + const { document, variables } = buildFindManyDocument( + 'AppCapabilityDefaultCapability', + 'appCapabilityDefaultCapabilities', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'AppCapabilityDefaultCapabilityFilter', + 'AppCapabilityDefaultCapabilityOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'AppCapabilityDefaultCapability', + fieldName: 'appCapabilityDefaultCapability', + document, + variables, + transform: (data: { + appCapabilityDefaultCapabilities?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + appCapabilityDefaultCapability: data.appCapabilityDefaultCapabilities?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs< + S, + CreateAppCapabilityDefaultCapabilityInput['appCapabilityDefaultCapability'] + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createAppCapabilityDefaultCapability: { + appCapabilityDefaultCapability: InferSelectResult< + AppCapabilityDefaultCapabilityWithRelations, + S + >; + }; + }> { + const { document, variables } = buildCreateDocument( + 'AppCapabilityDefaultCapability', + 'createAppCapabilityDefaultCapability', + 'appCapabilityDefaultCapability', + args.select, + args.data, + 'CreateAppCapabilityDefaultCapabilityInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'AppCapabilityDefaultCapability', + fieldName: 'createAppCapabilityDefaultCapability', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + AppCapabilityDefaultCapabilityPatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateAppCapabilityDefaultCapability: { + appCapabilityDefaultCapability: InferSelectResult< + AppCapabilityDefaultCapabilityWithRelations, + S + >; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'AppCapabilityDefaultCapability', + 'updateAppCapabilityDefaultCapability', + 'appCapabilityDefaultCapability', + args.select, + args.where.id, + args.data, + 'UpdateAppCapabilityDefaultCapabilityInput', + 'id', + 'appCapabilityDefaultCapabilityPatch', + connectionFieldsMap, + undefined + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'AppCapabilityDefaultCapability', + fieldName: 'updateAppCapabilityDefaultCapability', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteAppCapabilityDefaultCapability: { + appCapabilityDefaultCapability: InferSelectResult< + AppCapabilityDefaultCapabilityWithRelations, + S + >; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'AppCapabilityDefaultCapability', + 'deleteAppCapabilityDefaultCapability', + 'appCapabilityDefaultCapability', + { + id: args.where.id, + }, + 'DeleteAppCapabilityDefaultCapabilityInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'AppCapabilityDefaultCapability', + fieldName: 'deleteAppCapabilityDefaultCapability', + document, + variables, + }); + } +} diff --git a/sdk/constructive-react/src/admin/orm/models/appCapabilityDefaultGrant.ts b/sdk/constructive-react/src/admin/orm/models/appCapabilityDefaultGrant.ts new file mode 100644 index 0000000000..174d579999 --- /dev/null +++ b/sdk/constructive-react/src/admin/orm/models/appCapabilityDefaultGrant.ts @@ -0,0 +1,247 @@ +/** + * AppCapabilityDefaultGrant 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 { + AppCapabilityDefaultGrant, + AppCapabilityDefaultGrantWithRelations, + AppCapabilityDefaultGrantSelect, + AppCapabilityDefaultGrantFilter, + AppCapabilityDefaultGrantOrderBy, + CreateAppCapabilityDefaultGrantInput, + UpdateAppCapabilityDefaultGrantInput, + AppCapabilityDefaultGrantPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class AppCapabilityDefaultGrantModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + appCapabilityDefaultGrants: ConnectionResult< + InferSelectResult + >; + }> { + const { document, variables } = buildFindManyDocument( + 'AppCapabilityDefaultGrant', + 'appCapabilityDefaultGrants', + 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, + }, + 'AppCapabilityDefaultGrantFilter', + 'AppCapabilityDefaultGrantOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'AppCapabilityDefaultGrant', + fieldName: 'appCapabilityDefaultGrants', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + appCapabilityDefaultGrant: InferSelectResult | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'AppCapabilityDefaultGrant', + 'appCapabilityDefaultGrants', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'AppCapabilityDefaultGrantFilter', + 'AppCapabilityDefaultGrantOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'AppCapabilityDefaultGrant', + fieldName: 'appCapabilityDefaultGrant', + document, + variables, + transform: (data: { + appCapabilityDefaultGrants?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + appCapabilityDefaultGrant: data.appCapabilityDefaultGrants?.nodes?.[0] ?? null, + }), + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + appCapabilityDefaultGrant: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'AppCapabilityDefaultGrant', + 'appCapabilityDefaultGrants', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'AppCapabilityDefaultGrantFilter', + 'AppCapabilityDefaultGrantOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'AppCapabilityDefaultGrant', + fieldName: 'appCapabilityDefaultGrant', + document, + variables, + transform: (data: { + appCapabilityDefaultGrants?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + appCapabilityDefaultGrant: data.appCapabilityDefaultGrants?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createAppCapabilityDefaultGrant: { + appCapabilityDefaultGrant: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'AppCapabilityDefaultGrant', + 'createAppCapabilityDefaultGrant', + 'appCapabilityDefaultGrant', + args.select, + args.data, + 'CreateAppCapabilityDefaultGrantInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'AppCapabilityDefaultGrant', + fieldName: 'createAppCapabilityDefaultGrant', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + AppCapabilityDefaultGrantPatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateAppCapabilityDefaultGrant: { + appCapabilityDefaultGrant: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'AppCapabilityDefaultGrant', + 'updateAppCapabilityDefaultGrant', + 'appCapabilityDefaultGrant', + args.select, + args.where.id, + args.data, + 'UpdateAppCapabilityDefaultGrantInput', + 'id', + 'appCapabilityDefaultGrantPatch', + connectionFieldsMap, + undefined + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'AppCapabilityDefaultGrant', + fieldName: 'updateAppCapabilityDefaultGrant', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteAppCapabilityDefaultGrant: { + appCapabilityDefaultGrant: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'AppCapabilityDefaultGrant', + 'deleteAppCapabilityDefaultGrant', + 'appCapabilityDefaultGrant', + { + id: args.where.id, + }, + 'DeleteAppCapabilityDefaultGrantInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'AppCapabilityDefaultGrant', + fieldName: 'deleteAppCapabilityDefaultGrant', + document, + variables, + }); + } +} diff --git a/sdk/constructive-react/src/admin/orm/models/appPermissionDefault.ts b/sdk/constructive-react/src/admin/orm/models/appPermissionDefault.ts deleted file mode 100644 index c967364f31..0000000000 --- a/sdk/constructive-react/src/admin/orm/models/appPermissionDefault.ts +++ /dev/null @@ -1,247 +0,0 @@ -/** - * AppPermissionDefault 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 { - AppPermissionDefault, - AppPermissionDefaultWithRelations, - AppPermissionDefaultSelect, - AppPermissionDefaultFilter, - AppPermissionDefaultOrderBy, - CreateAppPermissionDefaultInput, - UpdateAppPermissionDefaultInput, - AppPermissionDefaultPatch, -} from '../input-types'; -import { connectionFieldsMap } from '../input-types'; -export class AppPermissionDefaultModel { - constructor(private client: OrmClient) {} - findMany( - args: FindManyArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - appPermissionDefaults: ConnectionResult< - InferSelectResult - >; - }> { - const { document, variables } = buildFindManyDocument( - 'AppPermissionDefault', - 'appPermissionDefaults', - 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, - }, - 'AppPermissionDefaultFilter', - 'AppPermissionDefaultOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'AppPermissionDefault', - fieldName: 'appPermissionDefaults', - document, - variables, - }); - } - findFirst( - args: FindFirstArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - appPermissionDefault: InferSelectResult | null; - }> { - const { document, variables } = buildFindFirstDocument( - 'AppPermissionDefault', - 'appPermissionDefaults', - args.select, - { - where: args?.where, - orderBy: args?.orderBy as string[] | undefined, - }, - 'AppPermissionDefaultFilter', - 'AppPermissionDefaultOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'AppPermissionDefault', - fieldName: 'appPermissionDefault', - document, - variables, - transform: (data: { - appPermissionDefaults?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - appPermissionDefault: data.appPermissionDefaults?.nodes?.[0] ?? null, - }), - }); - } - findOne( - args: { - id: string; - select: S; - } & StrictSelect - ): QueryBuilder<{ - appPermissionDefault: InferSelectResult | null; - }> { - const { document, variables } = buildFindManyDocument( - 'AppPermissionDefault', - 'appPermissionDefaults', - args.select, - { - where: { - id: { - equalTo: args.id, - }, - }, - first: 1, - }, - 'AppPermissionDefaultFilter', - 'AppPermissionDefaultOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'AppPermissionDefault', - fieldName: 'appPermissionDefault', - document, - variables, - transform: (data: { - appPermissionDefaults?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - appPermissionDefault: data.appPermissionDefaults?.nodes?.[0] ?? null, - }), - }); - } - create( - args: CreateArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createAppPermissionDefault: { - appPermissionDefault: InferSelectResult; - }; - }> { - const { document, variables } = buildCreateDocument( - 'AppPermissionDefault', - 'createAppPermissionDefault', - 'appPermissionDefault', - args.select, - args.data, - 'CreateAppPermissionDefaultInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'AppPermissionDefault', - fieldName: 'createAppPermissionDefault', - document, - variables, - }); - } - update( - args: UpdateArgs< - S, - { - id: string; - }, - AppPermissionDefaultPatch - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - updateAppPermissionDefault: { - appPermissionDefault: InferSelectResult; - }; - }> { - const { document, variables } = buildUpdateByPkDocument( - 'AppPermissionDefault', - 'updateAppPermissionDefault', - 'appPermissionDefault', - args.select, - args.where.id, - args.data, - 'UpdateAppPermissionDefaultInput', - 'id', - 'appPermissionDefaultPatch', - connectionFieldsMap, - undefined - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'AppPermissionDefault', - fieldName: 'updateAppPermissionDefault', - document, - variables, - }); - } - delete( - args: DeleteArgs< - { - id: string; - }, - S - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - deleteAppPermissionDefault: { - appPermissionDefault: InferSelectResult; - }; - }> { - const { document, variables } = buildDeleteByPkDocument( - 'AppPermissionDefault', - 'deleteAppPermissionDefault', - 'appPermissionDefault', - { - id: args.where.id, - }, - 'DeleteAppPermissionDefaultInput', - args.select, - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'AppPermissionDefault', - fieldName: 'deleteAppPermissionDefault', - document, - variables, - }); - } -} diff --git a/sdk/constructive-react/src/admin/orm/models/appPermissionDefaultGrant.ts b/sdk/constructive-react/src/admin/orm/models/appPermissionDefaultGrant.ts deleted file mode 100644 index b6a3b10748..0000000000 --- a/sdk/constructive-react/src/admin/orm/models/appPermissionDefaultGrant.ts +++ /dev/null @@ -1,247 +0,0 @@ -/** - * AppPermissionDefaultGrant 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 { - AppPermissionDefaultGrant, - AppPermissionDefaultGrantWithRelations, - AppPermissionDefaultGrantSelect, - AppPermissionDefaultGrantFilter, - AppPermissionDefaultGrantOrderBy, - CreateAppPermissionDefaultGrantInput, - UpdateAppPermissionDefaultGrantInput, - AppPermissionDefaultGrantPatch, -} from '../input-types'; -import { connectionFieldsMap } from '../input-types'; -export class AppPermissionDefaultGrantModel { - constructor(private client: OrmClient) {} - findMany( - args: FindManyArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - appPermissionDefaultGrants: ConnectionResult< - InferSelectResult - >; - }> { - const { document, variables } = buildFindManyDocument( - 'AppPermissionDefaultGrant', - 'appPermissionDefaultGrants', - 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, - }, - 'AppPermissionDefaultGrantFilter', - 'AppPermissionDefaultGrantOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'AppPermissionDefaultGrant', - fieldName: 'appPermissionDefaultGrants', - document, - variables, - }); - } - findFirst( - args: FindFirstArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - appPermissionDefaultGrant: InferSelectResult | null; - }> { - const { document, variables } = buildFindFirstDocument( - 'AppPermissionDefaultGrant', - 'appPermissionDefaultGrants', - args.select, - { - where: args?.where, - orderBy: args?.orderBy as string[] | undefined, - }, - 'AppPermissionDefaultGrantFilter', - 'AppPermissionDefaultGrantOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'AppPermissionDefaultGrant', - fieldName: 'appPermissionDefaultGrant', - document, - variables, - transform: (data: { - appPermissionDefaultGrants?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - appPermissionDefaultGrant: data.appPermissionDefaultGrants?.nodes?.[0] ?? null, - }), - }); - } - findOne( - args: { - id: string; - select: S; - } & StrictSelect - ): QueryBuilder<{ - appPermissionDefaultGrant: InferSelectResult | null; - }> { - const { document, variables } = buildFindManyDocument( - 'AppPermissionDefaultGrant', - 'appPermissionDefaultGrants', - args.select, - { - where: { - id: { - equalTo: args.id, - }, - }, - first: 1, - }, - 'AppPermissionDefaultGrantFilter', - 'AppPermissionDefaultGrantOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'AppPermissionDefaultGrant', - fieldName: 'appPermissionDefaultGrant', - document, - variables, - transform: (data: { - appPermissionDefaultGrants?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - appPermissionDefaultGrant: data.appPermissionDefaultGrants?.nodes?.[0] ?? null, - }), - }); - } - create( - args: CreateArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createAppPermissionDefaultGrant: { - appPermissionDefaultGrant: InferSelectResult; - }; - }> { - const { document, variables } = buildCreateDocument( - 'AppPermissionDefaultGrant', - 'createAppPermissionDefaultGrant', - 'appPermissionDefaultGrant', - args.select, - args.data, - 'CreateAppPermissionDefaultGrantInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'AppPermissionDefaultGrant', - fieldName: 'createAppPermissionDefaultGrant', - document, - variables, - }); - } - update( - args: UpdateArgs< - S, - { - id: string; - }, - AppPermissionDefaultGrantPatch - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - updateAppPermissionDefaultGrant: { - appPermissionDefaultGrant: InferSelectResult; - }; - }> { - const { document, variables } = buildUpdateByPkDocument( - 'AppPermissionDefaultGrant', - 'updateAppPermissionDefaultGrant', - 'appPermissionDefaultGrant', - args.select, - args.where.id, - args.data, - 'UpdateAppPermissionDefaultGrantInput', - 'id', - 'appPermissionDefaultGrantPatch', - connectionFieldsMap, - undefined - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'AppPermissionDefaultGrant', - fieldName: 'updateAppPermissionDefaultGrant', - document, - variables, - }); - } - delete( - args: DeleteArgs< - { - id: string; - }, - S - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - deleteAppPermissionDefaultGrant: { - appPermissionDefaultGrant: InferSelectResult; - }; - }> { - const { document, variables } = buildDeleteByPkDocument( - 'AppPermissionDefaultGrant', - 'deleteAppPermissionDefaultGrant', - 'appPermissionDefaultGrant', - { - id: args.where.id, - }, - 'DeleteAppPermissionDefaultGrantInput', - args.select, - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'AppPermissionDefaultGrant', - fieldName: 'deleteAppPermissionDefaultGrant', - document, - variables, - }); - } -} diff --git a/sdk/constructive-react/src/admin/orm/models/appPermissionDefaultPermission.ts b/sdk/constructive-react/src/admin/orm/models/appPermissionDefaultPermission.ts deleted file mode 100644 index 6e47d9eeec..0000000000 --- a/sdk/constructive-react/src/admin/orm/models/appPermissionDefaultPermission.ts +++ /dev/null @@ -1,273 +0,0 @@ -/** - * AppPermissionDefaultPermission 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 { - AppPermissionDefaultPermission, - AppPermissionDefaultPermissionWithRelations, - AppPermissionDefaultPermissionSelect, - AppPermissionDefaultPermissionFilter, - AppPermissionDefaultPermissionOrderBy, - CreateAppPermissionDefaultPermissionInput, - UpdateAppPermissionDefaultPermissionInput, - AppPermissionDefaultPermissionPatch, -} from '../input-types'; -import { connectionFieldsMap } from '../input-types'; -export class AppPermissionDefaultPermissionModel { - constructor(private client: OrmClient) {} - findMany( - args: FindManyArgs< - S, - AppPermissionDefaultPermissionFilter, - AppPermissionDefaultPermissionOrderBy - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - appPermissionDefaultPermissions: ConnectionResult< - InferSelectResult - >; - }> { - const { document, variables } = buildFindManyDocument( - 'AppPermissionDefaultPermission', - 'appPermissionDefaultPermissions', - 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, - }, - 'AppPermissionDefaultPermissionFilter', - 'AppPermissionDefaultPermissionOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'AppPermissionDefaultPermission', - fieldName: 'appPermissionDefaultPermissions', - document, - variables, - }); - } - findFirst( - args: FindFirstArgs< - S, - AppPermissionDefaultPermissionFilter, - AppPermissionDefaultPermissionOrderBy - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - appPermissionDefaultPermission: InferSelectResult< - AppPermissionDefaultPermissionWithRelations, - S - > | null; - }> { - const { document, variables } = buildFindFirstDocument( - 'AppPermissionDefaultPermission', - 'appPermissionDefaultPermissions', - args.select, - { - where: args?.where, - orderBy: args?.orderBy as string[] | undefined, - }, - 'AppPermissionDefaultPermissionFilter', - 'AppPermissionDefaultPermissionOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'AppPermissionDefaultPermission', - fieldName: 'appPermissionDefaultPermission', - document, - variables, - transform: (data: { - appPermissionDefaultPermissions?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - appPermissionDefaultPermission: data.appPermissionDefaultPermissions?.nodes?.[0] ?? null, - }), - }); - } - findOne( - args: { - id: string; - select: S; - } & StrictSelect - ): QueryBuilder<{ - appPermissionDefaultPermission: InferSelectResult< - AppPermissionDefaultPermissionWithRelations, - S - > | null; - }> { - const { document, variables } = buildFindManyDocument( - 'AppPermissionDefaultPermission', - 'appPermissionDefaultPermissions', - args.select, - { - where: { - id: { - equalTo: args.id, - }, - }, - first: 1, - }, - 'AppPermissionDefaultPermissionFilter', - 'AppPermissionDefaultPermissionOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'AppPermissionDefaultPermission', - fieldName: 'appPermissionDefaultPermission', - document, - variables, - transform: (data: { - appPermissionDefaultPermissions?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - appPermissionDefaultPermission: data.appPermissionDefaultPermissions?.nodes?.[0] ?? null, - }), - }); - } - create( - args: CreateArgs< - S, - CreateAppPermissionDefaultPermissionInput['appPermissionDefaultPermission'] - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createAppPermissionDefaultPermission: { - appPermissionDefaultPermission: InferSelectResult< - AppPermissionDefaultPermissionWithRelations, - S - >; - }; - }> { - const { document, variables } = buildCreateDocument( - 'AppPermissionDefaultPermission', - 'createAppPermissionDefaultPermission', - 'appPermissionDefaultPermission', - args.select, - args.data, - 'CreateAppPermissionDefaultPermissionInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'AppPermissionDefaultPermission', - fieldName: 'createAppPermissionDefaultPermission', - document, - variables, - }); - } - update( - args: UpdateArgs< - S, - { - id: string; - }, - AppPermissionDefaultPermissionPatch - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - updateAppPermissionDefaultPermission: { - appPermissionDefaultPermission: InferSelectResult< - AppPermissionDefaultPermissionWithRelations, - S - >; - }; - }> { - const { document, variables } = buildUpdateByPkDocument( - 'AppPermissionDefaultPermission', - 'updateAppPermissionDefaultPermission', - 'appPermissionDefaultPermission', - args.select, - args.where.id, - args.data, - 'UpdateAppPermissionDefaultPermissionInput', - 'id', - 'appPermissionDefaultPermissionPatch', - connectionFieldsMap, - undefined - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'AppPermissionDefaultPermission', - fieldName: 'updateAppPermissionDefaultPermission', - document, - variables, - }); - } - delete( - args: DeleteArgs< - { - id: string; - }, - S - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - deleteAppPermissionDefaultPermission: { - appPermissionDefaultPermission: InferSelectResult< - AppPermissionDefaultPermissionWithRelations, - S - >; - }; - }> { - const { document, variables } = buildDeleteByPkDocument( - 'AppPermissionDefaultPermission', - 'deleteAppPermissionDefaultPermission', - 'appPermissionDefaultPermission', - { - id: args.where.id, - }, - 'DeleteAppPermissionDefaultPermissionInput', - args.select, - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'AppPermissionDefaultPermission', - fieldName: 'deleteAppPermissionDefaultPermission', - 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 b952c1e1d9..f14d099d6e 100644 --- a/sdk/constructive-react/src/admin/orm/models/index.ts +++ b/sdk/constructive-react/src/admin/orm/models/index.ts @@ -4,18 +4,18 @@ * DO NOT EDIT - changes will be overwritten */ export { AppAdminGrantModel } from './appAdminGrant'; +export { AppCapabilityDefaultCapabilityModel } from './appCapabilityDefaultCapability'; +export { AppCapabilityDefaultGrantModel } from './appCapabilityDefaultGrant'; export { AppClaimedInviteModel } from './appClaimedInvite'; export { AppGrantModel } from './appGrant'; export { AppInviteModel } from './appInvite'; export { AppMembershipModel } from './appMembership'; export { AppMembershipDefaultModel } from './appMembershipDefault'; export { AppOwnerGrantModel } from './appOwnerGrant'; -export { AppPermissionModel } from './appPermission'; -export { AppPermissionDefaultModel } from './appPermissionDefault'; -export { AppPermissionDefaultGrantModel } from './appPermissionDefaultGrant'; -export { AppPermissionDefaultPermissionModel } from './appPermissionDefaultPermission'; export { MembershipTypeModel } from './membershipType'; export { OrgAdminGrantModel } from './orgAdminGrant'; +export { OrgCapabilityDefaultCapabilityModel } from './orgCapabilityDefaultCapability'; +export { OrgCapabilityDefaultGrantModel } from './orgCapabilityDefaultGrant'; export { OrgChartEdgeModel } from './orgChartEdge'; export { OrgChartEdgeGrantModel } from './orgChartEdgeGrant'; export { OrgClaimedInviteModel } from './orgClaimedInvite'; @@ -29,7 +29,3 @@ export { OrgMembershipModel } from './orgMembership'; export { OrgMembershipDefaultModel } from './orgMembershipDefault'; export { OrgMembershipSettingModel } from './orgMembershipSetting'; export { OrgOwnerGrantModel } from './orgOwnerGrant'; -export { OrgPermissionModel } from './orgPermission'; -export { OrgPermissionDefaultModel } from './orgPermissionDefault'; -export { OrgPermissionDefaultGrantModel } from './orgPermissionDefaultGrant'; -export { OrgPermissionDefaultPermissionModel } from './orgPermissionDefaultPermission'; diff --git a/sdk/constructive-react/src/admin/orm/models/orgCapabilityDefaultCapability.ts b/sdk/constructive-react/src/admin/orm/models/orgCapabilityDefaultCapability.ts new file mode 100644 index 0000000000..5f902d96ac --- /dev/null +++ b/sdk/constructive-react/src/admin/orm/models/orgCapabilityDefaultCapability.ts @@ -0,0 +1,273 @@ +/** + * OrgCapabilityDefaultCapability 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 { + OrgCapabilityDefaultCapability, + OrgCapabilityDefaultCapabilityWithRelations, + OrgCapabilityDefaultCapabilitySelect, + OrgCapabilityDefaultCapabilityFilter, + OrgCapabilityDefaultCapabilityOrderBy, + CreateOrgCapabilityDefaultCapabilityInput, + UpdateOrgCapabilityDefaultCapabilityInput, + OrgCapabilityDefaultCapabilityPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class OrgCapabilityDefaultCapabilityModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs< + S, + OrgCapabilityDefaultCapabilityFilter, + OrgCapabilityDefaultCapabilityOrderBy + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + orgCapabilityDefaultCapabilities: ConnectionResult< + InferSelectResult + >; + }> { + const { document, variables } = buildFindManyDocument( + 'OrgCapabilityDefaultCapability', + 'orgCapabilityDefaultCapabilities', + 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, + }, + 'OrgCapabilityDefaultCapabilityFilter', + 'OrgCapabilityDefaultCapabilityOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'OrgCapabilityDefaultCapability', + fieldName: 'orgCapabilityDefaultCapabilities', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs< + S, + OrgCapabilityDefaultCapabilityFilter, + OrgCapabilityDefaultCapabilityOrderBy + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + orgCapabilityDefaultCapability: InferSelectResult< + OrgCapabilityDefaultCapabilityWithRelations, + S + > | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'OrgCapabilityDefaultCapability', + 'orgCapabilityDefaultCapabilities', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'OrgCapabilityDefaultCapabilityFilter', + 'OrgCapabilityDefaultCapabilityOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'OrgCapabilityDefaultCapability', + fieldName: 'orgCapabilityDefaultCapability', + document, + variables, + transform: (data: { + orgCapabilityDefaultCapabilities?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + orgCapabilityDefaultCapability: data.orgCapabilityDefaultCapabilities?.nodes?.[0] ?? null, + }), + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + orgCapabilityDefaultCapability: InferSelectResult< + OrgCapabilityDefaultCapabilityWithRelations, + S + > | null; + }> { + const { document, variables } = buildFindManyDocument( + 'OrgCapabilityDefaultCapability', + 'orgCapabilityDefaultCapabilities', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'OrgCapabilityDefaultCapabilityFilter', + 'OrgCapabilityDefaultCapabilityOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'OrgCapabilityDefaultCapability', + fieldName: 'orgCapabilityDefaultCapability', + document, + variables, + transform: (data: { + orgCapabilityDefaultCapabilities?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + orgCapabilityDefaultCapability: data.orgCapabilityDefaultCapabilities?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs< + S, + CreateOrgCapabilityDefaultCapabilityInput['orgCapabilityDefaultCapability'] + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createOrgCapabilityDefaultCapability: { + orgCapabilityDefaultCapability: InferSelectResult< + OrgCapabilityDefaultCapabilityWithRelations, + S + >; + }; + }> { + const { document, variables } = buildCreateDocument( + 'OrgCapabilityDefaultCapability', + 'createOrgCapabilityDefaultCapability', + 'orgCapabilityDefaultCapability', + args.select, + args.data, + 'CreateOrgCapabilityDefaultCapabilityInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'OrgCapabilityDefaultCapability', + fieldName: 'createOrgCapabilityDefaultCapability', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + OrgCapabilityDefaultCapabilityPatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateOrgCapabilityDefaultCapability: { + orgCapabilityDefaultCapability: InferSelectResult< + OrgCapabilityDefaultCapabilityWithRelations, + S + >; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'OrgCapabilityDefaultCapability', + 'updateOrgCapabilityDefaultCapability', + 'orgCapabilityDefaultCapability', + args.select, + args.where.id, + args.data, + 'UpdateOrgCapabilityDefaultCapabilityInput', + 'id', + 'orgCapabilityDefaultCapabilityPatch', + connectionFieldsMap, + undefined + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'OrgCapabilityDefaultCapability', + fieldName: 'updateOrgCapabilityDefaultCapability', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteOrgCapabilityDefaultCapability: { + orgCapabilityDefaultCapability: InferSelectResult< + OrgCapabilityDefaultCapabilityWithRelations, + S + >; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'OrgCapabilityDefaultCapability', + 'deleteOrgCapabilityDefaultCapability', + 'orgCapabilityDefaultCapability', + { + id: args.where.id, + }, + 'DeleteOrgCapabilityDefaultCapabilityInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'OrgCapabilityDefaultCapability', + fieldName: 'deleteOrgCapabilityDefaultCapability', + document, + variables, + }); + } +} diff --git a/sdk/constructive-react/src/admin/orm/models/orgCapabilityDefaultGrant.ts b/sdk/constructive-react/src/admin/orm/models/orgCapabilityDefaultGrant.ts new file mode 100644 index 0000000000..9cce27ce2b --- /dev/null +++ b/sdk/constructive-react/src/admin/orm/models/orgCapabilityDefaultGrant.ts @@ -0,0 +1,247 @@ +/** + * OrgCapabilityDefaultGrant 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 { + OrgCapabilityDefaultGrant, + OrgCapabilityDefaultGrantWithRelations, + OrgCapabilityDefaultGrantSelect, + OrgCapabilityDefaultGrantFilter, + OrgCapabilityDefaultGrantOrderBy, + CreateOrgCapabilityDefaultGrantInput, + UpdateOrgCapabilityDefaultGrantInput, + OrgCapabilityDefaultGrantPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class OrgCapabilityDefaultGrantModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + orgCapabilityDefaultGrants: ConnectionResult< + InferSelectResult + >; + }> { + const { document, variables } = buildFindManyDocument( + 'OrgCapabilityDefaultGrant', + 'orgCapabilityDefaultGrants', + 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, + }, + 'OrgCapabilityDefaultGrantFilter', + 'OrgCapabilityDefaultGrantOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'OrgCapabilityDefaultGrant', + fieldName: 'orgCapabilityDefaultGrants', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + orgCapabilityDefaultGrant: InferSelectResult | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'OrgCapabilityDefaultGrant', + 'orgCapabilityDefaultGrants', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'OrgCapabilityDefaultGrantFilter', + 'OrgCapabilityDefaultGrantOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'OrgCapabilityDefaultGrant', + fieldName: 'orgCapabilityDefaultGrant', + document, + variables, + transform: (data: { + orgCapabilityDefaultGrants?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + orgCapabilityDefaultGrant: data.orgCapabilityDefaultGrants?.nodes?.[0] ?? null, + }), + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + orgCapabilityDefaultGrant: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'OrgCapabilityDefaultGrant', + 'orgCapabilityDefaultGrants', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'OrgCapabilityDefaultGrantFilter', + 'OrgCapabilityDefaultGrantOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'OrgCapabilityDefaultGrant', + fieldName: 'orgCapabilityDefaultGrant', + document, + variables, + transform: (data: { + orgCapabilityDefaultGrants?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + orgCapabilityDefaultGrant: data.orgCapabilityDefaultGrants?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createOrgCapabilityDefaultGrant: { + orgCapabilityDefaultGrant: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'OrgCapabilityDefaultGrant', + 'createOrgCapabilityDefaultGrant', + 'orgCapabilityDefaultGrant', + args.select, + args.data, + 'CreateOrgCapabilityDefaultGrantInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'OrgCapabilityDefaultGrant', + fieldName: 'createOrgCapabilityDefaultGrant', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + OrgCapabilityDefaultGrantPatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateOrgCapabilityDefaultGrant: { + orgCapabilityDefaultGrant: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'OrgCapabilityDefaultGrant', + 'updateOrgCapabilityDefaultGrant', + 'orgCapabilityDefaultGrant', + args.select, + args.where.id, + args.data, + 'UpdateOrgCapabilityDefaultGrantInput', + 'id', + 'orgCapabilityDefaultGrantPatch', + connectionFieldsMap, + undefined + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'OrgCapabilityDefaultGrant', + fieldName: 'updateOrgCapabilityDefaultGrant', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteOrgCapabilityDefaultGrant: { + orgCapabilityDefaultGrant: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'OrgCapabilityDefaultGrant', + 'deleteOrgCapabilityDefaultGrant', + 'orgCapabilityDefaultGrant', + { + id: args.where.id, + }, + 'DeleteOrgCapabilityDefaultGrantInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'OrgCapabilityDefaultGrant', + fieldName: 'deleteOrgCapabilityDefaultGrant', + document, + variables, + }); + } +} diff --git a/sdk/constructive-react/src/admin/orm/models/orgPermissionDefault.ts b/sdk/constructive-react/src/admin/orm/models/orgPermissionDefault.ts deleted file mode 100644 index 20ed957d15..0000000000 --- a/sdk/constructive-react/src/admin/orm/models/orgPermissionDefault.ts +++ /dev/null @@ -1,247 +0,0 @@ -/** - * OrgPermissionDefault 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 { - OrgPermissionDefault, - OrgPermissionDefaultWithRelations, - OrgPermissionDefaultSelect, - OrgPermissionDefaultFilter, - OrgPermissionDefaultOrderBy, - CreateOrgPermissionDefaultInput, - UpdateOrgPermissionDefaultInput, - OrgPermissionDefaultPatch, -} from '../input-types'; -import { connectionFieldsMap } from '../input-types'; -export class OrgPermissionDefaultModel { - constructor(private client: OrmClient) {} - findMany( - args: FindManyArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - orgPermissionDefaults: ConnectionResult< - InferSelectResult - >; - }> { - const { document, variables } = buildFindManyDocument( - 'OrgPermissionDefault', - 'orgPermissionDefaults', - 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, - }, - 'OrgPermissionDefaultFilter', - 'OrgPermissionDefaultOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'OrgPermissionDefault', - fieldName: 'orgPermissionDefaults', - document, - variables, - }); - } - findFirst( - args: FindFirstArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - orgPermissionDefault: InferSelectResult | null; - }> { - const { document, variables } = buildFindFirstDocument( - 'OrgPermissionDefault', - 'orgPermissionDefaults', - args.select, - { - where: args?.where, - orderBy: args?.orderBy as string[] | undefined, - }, - 'OrgPermissionDefaultFilter', - 'OrgPermissionDefaultOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'OrgPermissionDefault', - fieldName: 'orgPermissionDefault', - document, - variables, - transform: (data: { - orgPermissionDefaults?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - orgPermissionDefault: data.orgPermissionDefaults?.nodes?.[0] ?? null, - }), - }); - } - findOne( - args: { - id: string; - select: S; - } & StrictSelect - ): QueryBuilder<{ - orgPermissionDefault: InferSelectResult | null; - }> { - const { document, variables } = buildFindManyDocument( - 'OrgPermissionDefault', - 'orgPermissionDefaults', - args.select, - { - where: { - id: { - equalTo: args.id, - }, - }, - first: 1, - }, - 'OrgPermissionDefaultFilter', - 'OrgPermissionDefaultOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'OrgPermissionDefault', - fieldName: 'orgPermissionDefault', - document, - variables, - transform: (data: { - orgPermissionDefaults?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - orgPermissionDefault: data.orgPermissionDefaults?.nodes?.[0] ?? null, - }), - }); - } - create( - args: CreateArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createOrgPermissionDefault: { - orgPermissionDefault: InferSelectResult; - }; - }> { - const { document, variables } = buildCreateDocument( - 'OrgPermissionDefault', - 'createOrgPermissionDefault', - 'orgPermissionDefault', - args.select, - args.data, - 'CreateOrgPermissionDefaultInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'OrgPermissionDefault', - fieldName: 'createOrgPermissionDefault', - document, - variables, - }); - } - update( - args: UpdateArgs< - S, - { - id: string; - }, - OrgPermissionDefaultPatch - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - updateOrgPermissionDefault: { - orgPermissionDefault: InferSelectResult; - }; - }> { - const { document, variables } = buildUpdateByPkDocument( - 'OrgPermissionDefault', - 'updateOrgPermissionDefault', - 'orgPermissionDefault', - args.select, - args.where.id, - args.data, - 'UpdateOrgPermissionDefaultInput', - 'id', - 'orgPermissionDefaultPatch', - connectionFieldsMap, - undefined - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'OrgPermissionDefault', - fieldName: 'updateOrgPermissionDefault', - document, - variables, - }); - } - delete( - args: DeleteArgs< - { - id: string; - }, - S - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - deleteOrgPermissionDefault: { - orgPermissionDefault: InferSelectResult; - }; - }> { - const { document, variables } = buildDeleteByPkDocument( - 'OrgPermissionDefault', - 'deleteOrgPermissionDefault', - 'orgPermissionDefault', - { - id: args.where.id, - }, - 'DeleteOrgPermissionDefaultInput', - args.select, - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'OrgPermissionDefault', - fieldName: 'deleteOrgPermissionDefault', - document, - variables, - }); - } -} diff --git a/sdk/constructive-react/src/admin/orm/models/orgPermissionDefaultGrant.ts b/sdk/constructive-react/src/admin/orm/models/orgPermissionDefaultGrant.ts deleted file mode 100644 index 07d5976acb..0000000000 --- a/sdk/constructive-react/src/admin/orm/models/orgPermissionDefaultGrant.ts +++ /dev/null @@ -1,247 +0,0 @@ -/** - * OrgPermissionDefaultGrant 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 { - OrgPermissionDefaultGrant, - OrgPermissionDefaultGrantWithRelations, - OrgPermissionDefaultGrantSelect, - OrgPermissionDefaultGrantFilter, - OrgPermissionDefaultGrantOrderBy, - CreateOrgPermissionDefaultGrantInput, - UpdateOrgPermissionDefaultGrantInput, - OrgPermissionDefaultGrantPatch, -} from '../input-types'; -import { connectionFieldsMap } from '../input-types'; -export class OrgPermissionDefaultGrantModel { - constructor(private client: OrmClient) {} - findMany( - args: FindManyArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - orgPermissionDefaultGrants: ConnectionResult< - InferSelectResult - >; - }> { - const { document, variables } = buildFindManyDocument( - 'OrgPermissionDefaultGrant', - 'orgPermissionDefaultGrants', - 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, - }, - 'OrgPermissionDefaultGrantFilter', - 'OrgPermissionDefaultGrantOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'OrgPermissionDefaultGrant', - fieldName: 'orgPermissionDefaultGrants', - document, - variables, - }); - } - findFirst( - args: FindFirstArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - orgPermissionDefaultGrant: InferSelectResult | null; - }> { - const { document, variables } = buildFindFirstDocument( - 'OrgPermissionDefaultGrant', - 'orgPermissionDefaultGrants', - args.select, - { - where: args?.where, - orderBy: args?.orderBy as string[] | undefined, - }, - 'OrgPermissionDefaultGrantFilter', - 'OrgPermissionDefaultGrantOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'OrgPermissionDefaultGrant', - fieldName: 'orgPermissionDefaultGrant', - document, - variables, - transform: (data: { - orgPermissionDefaultGrants?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - orgPermissionDefaultGrant: data.orgPermissionDefaultGrants?.nodes?.[0] ?? null, - }), - }); - } - findOne( - args: { - id: string; - select: S; - } & StrictSelect - ): QueryBuilder<{ - orgPermissionDefaultGrant: InferSelectResult | null; - }> { - const { document, variables } = buildFindManyDocument( - 'OrgPermissionDefaultGrant', - 'orgPermissionDefaultGrants', - args.select, - { - where: { - id: { - equalTo: args.id, - }, - }, - first: 1, - }, - 'OrgPermissionDefaultGrantFilter', - 'OrgPermissionDefaultGrantOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'OrgPermissionDefaultGrant', - fieldName: 'orgPermissionDefaultGrant', - document, - variables, - transform: (data: { - orgPermissionDefaultGrants?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - orgPermissionDefaultGrant: data.orgPermissionDefaultGrants?.nodes?.[0] ?? null, - }), - }); - } - create( - args: CreateArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createOrgPermissionDefaultGrant: { - orgPermissionDefaultGrant: InferSelectResult; - }; - }> { - const { document, variables } = buildCreateDocument( - 'OrgPermissionDefaultGrant', - 'createOrgPermissionDefaultGrant', - 'orgPermissionDefaultGrant', - args.select, - args.data, - 'CreateOrgPermissionDefaultGrantInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'OrgPermissionDefaultGrant', - fieldName: 'createOrgPermissionDefaultGrant', - document, - variables, - }); - } - update( - args: UpdateArgs< - S, - { - id: string; - }, - OrgPermissionDefaultGrantPatch - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - updateOrgPermissionDefaultGrant: { - orgPermissionDefaultGrant: InferSelectResult; - }; - }> { - const { document, variables } = buildUpdateByPkDocument( - 'OrgPermissionDefaultGrant', - 'updateOrgPermissionDefaultGrant', - 'orgPermissionDefaultGrant', - args.select, - args.where.id, - args.data, - 'UpdateOrgPermissionDefaultGrantInput', - 'id', - 'orgPermissionDefaultGrantPatch', - connectionFieldsMap, - undefined - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'OrgPermissionDefaultGrant', - fieldName: 'updateOrgPermissionDefaultGrant', - document, - variables, - }); - } - delete( - args: DeleteArgs< - { - id: string; - }, - S - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - deleteOrgPermissionDefaultGrant: { - orgPermissionDefaultGrant: InferSelectResult; - }; - }> { - const { document, variables } = buildDeleteByPkDocument( - 'OrgPermissionDefaultGrant', - 'deleteOrgPermissionDefaultGrant', - 'orgPermissionDefaultGrant', - { - id: args.where.id, - }, - 'DeleteOrgPermissionDefaultGrantInput', - args.select, - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'OrgPermissionDefaultGrant', - fieldName: 'deleteOrgPermissionDefaultGrant', - document, - variables, - }); - } -} diff --git a/sdk/constructive-react/src/admin/orm/models/orgPermissionDefaultPermission.ts b/sdk/constructive-react/src/admin/orm/models/orgPermissionDefaultPermission.ts deleted file mode 100644 index 3339ceaeca..0000000000 --- a/sdk/constructive-react/src/admin/orm/models/orgPermissionDefaultPermission.ts +++ /dev/null @@ -1,273 +0,0 @@ -/** - * OrgPermissionDefaultPermission 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 { - OrgPermissionDefaultPermission, - OrgPermissionDefaultPermissionWithRelations, - OrgPermissionDefaultPermissionSelect, - OrgPermissionDefaultPermissionFilter, - OrgPermissionDefaultPermissionOrderBy, - CreateOrgPermissionDefaultPermissionInput, - UpdateOrgPermissionDefaultPermissionInput, - OrgPermissionDefaultPermissionPatch, -} from '../input-types'; -import { connectionFieldsMap } from '../input-types'; -export class OrgPermissionDefaultPermissionModel { - constructor(private client: OrmClient) {} - findMany( - args: FindManyArgs< - S, - OrgPermissionDefaultPermissionFilter, - OrgPermissionDefaultPermissionOrderBy - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - orgPermissionDefaultPermissions: ConnectionResult< - InferSelectResult - >; - }> { - const { document, variables } = buildFindManyDocument( - 'OrgPermissionDefaultPermission', - 'orgPermissionDefaultPermissions', - 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, - }, - 'OrgPermissionDefaultPermissionFilter', - 'OrgPermissionDefaultPermissionOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'OrgPermissionDefaultPermission', - fieldName: 'orgPermissionDefaultPermissions', - document, - variables, - }); - } - findFirst( - args: FindFirstArgs< - S, - OrgPermissionDefaultPermissionFilter, - OrgPermissionDefaultPermissionOrderBy - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - orgPermissionDefaultPermission: InferSelectResult< - OrgPermissionDefaultPermissionWithRelations, - S - > | null; - }> { - const { document, variables } = buildFindFirstDocument( - 'OrgPermissionDefaultPermission', - 'orgPermissionDefaultPermissions', - args.select, - { - where: args?.where, - orderBy: args?.orderBy as string[] | undefined, - }, - 'OrgPermissionDefaultPermissionFilter', - 'OrgPermissionDefaultPermissionOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'OrgPermissionDefaultPermission', - fieldName: 'orgPermissionDefaultPermission', - document, - variables, - transform: (data: { - orgPermissionDefaultPermissions?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - orgPermissionDefaultPermission: data.orgPermissionDefaultPermissions?.nodes?.[0] ?? null, - }), - }); - } - findOne( - args: { - id: string; - select: S; - } & StrictSelect - ): QueryBuilder<{ - orgPermissionDefaultPermission: InferSelectResult< - OrgPermissionDefaultPermissionWithRelations, - S - > | null; - }> { - const { document, variables } = buildFindManyDocument( - 'OrgPermissionDefaultPermission', - 'orgPermissionDefaultPermissions', - args.select, - { - where: { - id: { - equalTo: args.id, - }, - }, - first: 1, - }, - 'OrgPermissionDefaultPermissionFilter', - 'OrgPermissionDefaultPermissionOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'OrgPermissionDefaultPermission', - fieldName: 'orgPermissionDefaultPermission', - document, - variables, - transform: (data: { - orgPermissionDefaultPermissions?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - orgPermissionDefaultPermission: data.orgPermissionDefaultPermissions?.nodes?.[0] ?? null, - }), - }); - } - create( - args: CreateArgs< - S, - CreateOrgPermissionDefaultPermissionInput['orgPermissionDefaultPermission'] - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createOrgPermissionDefaultPermission: { - orgPermissionDefaultPermission: InferSelectResult< - OrgPermissionDefaultPermissionWithRelations, - S - >; - }; - }> { - const { document, variables } = buildCreateDocument( - 'OrgPermissionDefaultPermission', - 'createOrgPermissionDefaultPermission', - 'orgPermissionDefaultPermission', - args.select, - args.data, - 'CreateOrgPermissionDefaultPermissionInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'OrgPermissionDefaultPermission', - fieldName: 'createOrgPermissionDefaultPermission', - document, - variables, - }); - } - update( - args: UpdateArgs< - S, - { - id: string; - }, - OrgPermissionDefaultPermissionPatch - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - updateOrgPermissionDefaultPermission: { - orgPermissionDefaultPermission: InferSelectResult< - OrgPermissionDefaultPermissionWithRelations, - S - >; - }; - }> { - const { document, variables } = buildUpdateByPkDocument( - 'OrgPermissionDefaultPermission', - 'updateOrgPermissionDefaultPermission', - 'orgPermissionDefaultPermission', - args.select, - args.where.id, - args.data, - 'UpdateOrgPermissionDefaultPermissionInput', - 'id', - 'orgPermissionDefaultPermissionPatch', - connectionFieldsMap, - undefined - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'OrgPermissionDefaultPermission', - fieldName: 'updateOrgPermissionDefaultPermission', - document, - variables, - }); - } - delete( - args: DeleteArgs< - { - id: string; - }, - S - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - deleteOrgPermissionDefaultPermission: { - orgPermissionDefaultPermission: InferSelectResult< - OrgPermissionDefaultPermissionWithRelations, - S - >; - }; - }> { - const { document, variables } = buildDeleteByPkDocument( - 'OrgPermissionDefaultPermission', - 'deleteOrgPermissionDefaultPermission', - 'orgPermissionDefaultPermission', - { - id: args.where.id, - }, - 'DeleteOrgPermissionDefaultPermissionInput', - args.select, - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'OrgPermissionDefaultPermission', - fieldName: 'deleteOrgPermissionDefaultPermission', - document, - variables, - }); - } -} diff --git a/sdk/constructive-react/src/admin/orm/query/index.ts b/sdk/constructive-react/src/admin/orm/query/index.ts index 6d5f48130e..0e78db2c2c 100644 --- a/sdk/constructive-react/src/admin/orm/query/index.ts +++ b/sdk/constructive-react/src/admin/orm/query/index.ts @@ -6,186 +6,15 @@ import { OrmClient } from '../client'; import { QueryBuilder, buildCustomDocument } from '../query-builder'; import type { InferSelectResult, StrictSelect } from '../select-types'; -import type { AppPermissionConnection, OrgPermissionConnection } from '../input-types'; import { connectionFieldsMap } from '../input-types'; -export interface AppPermissionsGetByMaskVariables { - /** Read all values in the set after (below) this cursor. */ - after?: string; - /** Only read the first `n` values of the set. */ - first?: number; - mask?: string; - /** - * Skip the first `n` values from our `after` cursor, an alternative to cursor - * based pagination. May not be used with `last`. - */ - offset?: number; -} -export interface AppPermissionsGetMaskVariables { - ids?: string[]; -} -export interface AppPermissionsGetMaskByNamesVariables { - names?: string[]; -} -export interface AppPermissionsGetPaddedMaskVariables { - mask?: string; -} export interface OrgIsManagerOfVariables { managerId?: string; maxDepth?: number; targetEntityId?: string; userId?: string; } -export interface OrgPermissionsGetByMaskVariables { - /** Read all values in the set after (below) this cursor. */ - after?: string; - /** Only read the first `n` values of the set. */ - first?: number; - mask?: string; - /** - * Skip the first `n` values from our `after` cursor, an alternative to cursor - * based pagination. May not be used with `last`. - */ - offset?: number; -} -export interface OrgPermissionsGetMaskVariables { - ids?: string[]; -} -export interface OrgPermissionsGetMaskByNamesVariables { - names?: string[]; -} -export interface OrgPermissionsGetPaddedMaskVariables { - mask?: string; -} export function createQueryOperations(client: OrmClient) { return { - appPermissionsGetByMask: ( - args: AppPermissionsGetByMaskVariables, - options?: { - select?: Record; - } - ) => - new QueryBuilder<{ - appPermissionsGetByMask: AppPermissionConnection | null; - }>({ - client, - operation: 'query', - operationName: 'AppPermissionsGetByMask', - fieldName: 'appPermissionsGetByMask', - ...buildCustomDocument( - 'query', - 'AppPermissionsGetByMask', - 'appPermissionsGetByMask', - options?.select, - args, - [ - { - name: 'after', - type: 'Cursor', - }, - { - name: 'first', - type: 'Int', - }, - { - name: 'mask', - type: 'BitString', - }, - { - name: 'offset', - type: 'Int', - }, - ], - connectionFieldsMap, - undefined - ), - }), - appPermissionsGetMask: ( - args: AppPermissionsGetMaskVariables, - options?: { - select?: Record; - } - ) => - new QueryBuilder<{ - appPermissionsGetMask: string | null; - }>({ - client, - operation: 'query', - operationName: 'AppPermissionsGetMask', - fieldName: 'appPermissionsGetMask', - ...buildCustomDocument( - 'query', - 'AppPermissionsGetMask', - 'appPermissionsGetMask', - options?.select, - args, - [ - { - name: 'ids', - type: '[UUID]', - }, - ], - connectionFieldsMap, - undefined - ), - }), - appPermissionsGetMaskByNames: ( - args: AppPermissionsGetMaskByNamesVariables, - options?: { - select?: Record; - } - ) => - new QueryBuilder<{ - appPermissionsGetMaskByNames: string | null; - }>({ - client, - operation: 'query', - operationName: 'AppPermissionsGetMaskByNames', - fieldName: 'appPermissionsGetMaskByNames', - ...buildCustomDocument( - 'query', - 'AppPermissionsGetMaskByNames', - 'appPermissionsGetMaskByNames', - options?.select, - args, - [ - { - name: 'names', - type: '[String]', - }, - ], - connectionFieldsMap, - undefined - ), - }), - appPermissionsGetPaddedMask: ( - args: AppPermissionsGetPaddedMaskVariables, - options?: { - select?: Record; - } - ) => - new QueryBuilder<{ - appPermissionsGetPaddedMask: string | null; - }>({ - client, - operation: 'query', - operationName: 'AppPermissionsGetPaddedMask', - fieldName: 'appPermissionsGetPaddedMask', - ...buildCustomDocument( - 'query', - 'AppPermissionsGetPaddedMask', - 'appPermissionsGetPaddedMask', - options?.select, - args, - [ - { - name: 'mask', - type: 'BitString', - }, - ], - connectionFieldsMap, - undefined - ), - }), orgIsManagerOf: ( args: OrgIsManagerOfVariables, options?: { @@ -227,133 +56,5 @@ export function createQueryOperations(client: OrmClient) { undefined ), }), - orgPermissionsGetByMask: ( - args: OrgPermissionsGetByMaskVariables, - options?: { - select?: Record; - } - ) => - new QueryBuilder<{ - orgPermissionsGetByMask: OrgPermissionConnection | null; - }>({ - client, - operation: 'query', - operationName: 'OrgPermissionsGetByMask', - fieldName: 'orgPermissionsGetByMask', - ...buildCustomDocument( - 'query', - 'OrgPermissionsGetByMask', - 'orgPermissionsGetByMask', - options?.select, - args, - [ - { - name: 'after', - type: 'Cursor', - }, - { - name: 'first', - type: 'Int', - }, - { - name: 'mask', - type: 'BitString', - }, - { - name: 'offset', - type: 'Int', - }, - ], - connectionFieldsMap, - undefined - ), - }), - orgPermissionsGetMask: ( - args: OrgPermissionsGetMaskVariables, - options?: { - select?: Record; - } - ) => - new QueryBuilder<{ - orgPermissionsGetMask: string | null; - }>({ - client, - operation: 'query', - operationName: 'OrgPermissionsGetMask', - fieldName: 'orgPermissionsGetMask', - ...buildCustomDocument( - 'query', - 'OrgPermissionsGetMask', - 'orgPermissionsGetMask', - options?.select, - args, - [ - { - name: 'ids', - type: '[UUID]', - }, - ], - connectionFieldsMap, - undefined - ), - }), - orgPermissionsGetMaskByNames: ( - args: OrgPermissionsGetMaskByNamesVariables, - options?: { - select?: Record; - } - ) => - new QueryBuilder<{ - orgPermissionsGetMaskByNames: string | null; - }>({ - client, - operation: 'query', - operationName: 'OrgPermissionsGetMaskByNames', - fieldName: 'orgPermissionsGetMaskByNames', - ...buildCustomDocument( - 'query', - 'OrgPermissionsGetMaskByNames', - 'orgPermissionsGetMaskByNames', - options?.select, - args, - [ - { - name: 'names', - type: '[String]', - }, - ], - connectionFieldsMap, - undefined - ), - }), - orgPermissionsGetPaddedMask: ( - args: OrgPermissionsGetPaddedMaskVariables, - options?: { - select?: Record; - } - ) => - new QueryBuilder<{ - orgPermissionsGetPaddedMask: string | null; - }>({ - client, - operation: 'query', - operationName: 'OrgPermissionsGetPaddedMask', - fieldName: 'orgPermissionsGetPaddedMask', - ...buildCustomDocument( - 'query', - 'OrgPermissionsGetPaddedMask', - 'orgPermissionsGetPaddedMask', - options?.select, - args, - [ - { - name: 'mask', - type: 'BitString', - }, - ], - connectionFieldsMap, - undefined - ), - }), }; } diff --git a/sdk/constructive-react/src/admin/schema-types.ts b/sdk/constructive-react/src/admin/schema-types.ts index c4c56f5ded..f3ac8ec233 100644 --- a/sdk/constructive-react/src/admin/schema-types.ts +++ b/sdk/constructive-react/src/admin/schema-types.ts @@ -6,18 +6,18 @@ import type { AppAdminGrant, + AppCapabilityDefaultCapability, + AppCapabilityDefaultGrant, AppClaimedInvite, AppGrant, AppInvite, AppMembership, AppMembershipDefault, AppOwnerGrant, - AppPermission, - AppPermissionDefault, - AppPermissionDefaultGrant, - AppPermissionDefaultPermission, MembershipType, OrgAdminGrant, + OrgCapabilityDefaultCapability, + OrgCapabilityDefaultGrant, OrgChartEdge, OrgChartEdgeGrant, OrgClaimedInvite, @@ -31,10 +31,6 @@ import type { OrgMembershipDefault, OrgMembershipSetting, OrgOwnerGrant, - OrgPermission, - OrgPermissionDefault, - OrgPermissionDefaultGrant, - OrgPermissionDefaultPermission, BigFloatFilter, BigIntFilter, BitStringFilter, @@ -72,6 +68,36 @@ export type AppAdminGrantOrderBy = | 'PRIMARY_KEY_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC'; +/** Methods to use when ordering `AppCapabilityDefaultCapability`. */ +export type AppCapabilityDefaultCapabilityOrderBy = + | 'CAPABILITY_ID_ASC' + | 'CAPABILITY_ID_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC'; +/** Methods to use when ordering `AppCapabilityDefaultGrant`. */ +export type AppCapabilityDefaultGrantOrderBy = + | 'CAPABILITY_ID_ASC' + | 'CAPABILITY_ID_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'GRANTOR_ID_ASC' + | 'GRANTOR_ID_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'IS_GRANT_ASC' + | 'IS_GRANT_DESC' + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC'; /** Methods to use when ordering `AppClaimedInvite`. */ export type AppClaimedInviteOrderBy = | 'CREATED_AT_ASC' @@ -93,6 +119,8 @@ export type AppClaimedInviteOrderBy = export type AppGrantOrderBy = | 'ACTOR_ID_ASC' | 'ACTOR_ID_DESC' + | 'CAPABILITIES_ASC' + | 'CAPABILITIES_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' | 'GRANTOR_ID_ASC' @@ -102,8 +130,6 @@ export type AppGrantOrderBy = | 'IS_GRANT_ASC' | 'IS_GRANT_DESC' | 'NATURAL' - | 'PERMISSIONS_ASC' - | 'PERMISSIONS_DESC' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'UPDATED_AT_ASC' @@ -166,6 +192,8 @@ export type AppMembershipDefaultOrderBy = export type AppMembershipOrderBy = | 'ACTOR_ID_ASC' | 'ACTOR_ID_DESC' + | 'CAPABILITIES_ASC' + | 'CAPABILITIES_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' | 'CREATED_BY_ASC' @@ -189,8 +217,6 @@ export type AppMembershipOrderBy = | 'IS_VERIFIED_ASC' | 'IS_VERIFIED_DESC' | 'NATURAL' - | 'PERMISSIONS_ASC' - | 'PERMISSIONS_DESC' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'PROFILE_ID_ASC' @@ -216,10 +242,31 @@ export type AppOwnerGrantOrderBy = | 'PRIMARY_KEY_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC'; -/** Methods to use when ordering `AppPermissionDefaultGrant`. */ -export type AppPermissionDefaultGrantOrderBy = +/** Methods to use when ordering `MembershipType`. */ +export type MembershipTypeOrderBy = + | 'DESCRIPTION_ASC' + | 'DESCRIPTION_DESC' + | 'HAS_USERS_TABLE_ENTRY_ASC' + | 'HAS_USERS_TABLE_ENTRY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'NATURAL' + | 'PARENT_MEMBERSHIP_TYPE_ASC' + | 'PARENT_MEMBERSHIP_TYPE_DESC' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'SCOPE_ASC' + | 'SCOPE_DESC'; +/** Methods to use when ordering `OrgAdminGrant`. */ +export type OrgAdminGrantOrderBy = + | 'ACTOR_ID_ASC' + | 'ACTOR_ID_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' + | 'ENTITY_ID_ASC' + | 'ENTITY_ID_DESC' | 'GRANTOR_ID_ASC' | 'GRANTOR_ID_DESC' | 'ID_ASC' @@ -227,70 +274,29 @@ export type AppPermissionDefaultGrantOrderBy = | 'IS_GRANT_ASC' | 'IS_GRANT_DESC' | 'NATURAL' - | 'PERMISSION_ID_ASC' - | 'PERMISSION_ID_DESC' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC'; -/** Methods to use when ordering `AppPermissionDefault`. */ -export type AppPermissionDefaultOrderBy = - | 'ID_ASC' - | 'ID_DESC' - | 'NATURAL' - | 'PERMISSIONS_ASC' - | 'PERMISSIONS_DESC' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC'; -/** Methods to use when ordering `AppPermissionDefaultPermission`. */ -export type AppPermissionDefaultPermissionOrderBy = +/** Methods to use when ordering `OrgCapabilityDefaultCapability`. */ +export type OrgCapabilityDefaultCapabilityOrderBy = + | 'CAPABILITY_ID_ASC' + | 'CAPABILITY_ID_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' + | 'ENTITY_ID_ASC' + | 'ENTITY_ID_DESC' | 'ID_ASC' | 'ID_DESC' | 'NATURAL' - | 'PERMISSION_ID_ASC' - | 'PERMISSION_ID_DESC' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC'; -/** Methods to use when ordering `AppPermission`. */ -export type AppPermissionOrderBy = - | 'BITNUM_ASC' - | 'BITNUM_DESC' - | 'BITSTR_ASC' - | 'BITSTR_DESC' - | 'DESCRIPTION_ASC' - | 'DESCRIPTION_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'NAME_ASC' - | 'NAME_DESC' - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC'; -/** Methods to use when ordering `MembershipType`. */ -export type MembershipTypeOrderBy = - | 'DESCRIPTION_ASC' - | 'DESCRIPTION_DESC' - | 'HAS_USERS_TABLE_ENTRY_ASC' - | 'HAS_USERS_TABLE_ENTRY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'NAME_ASC' - | 'NAME_DESC' - | 'NATURAL' - | 'PARENT_MEMBERSHIP_TYPE_ASC' - | 'PARENT_MEMBERSHIP_TYPE_DESC' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'SCOPE_ASC' - | 'SCOPE_DESC'; -/** Methods to use when ordering `OrgAdminGrant`. */ -export type OrgAdminGrantOrderBy = - | 'ACTOR_ID_ASC' - | 'ACTOR_ID_DESC' +/** Methods to use when ordering `OrgCapabilityDefaultGrant`. */ +export type OrgCapabilityDefaultGrantOrderBy = + | 'CAPABILITY_ID_ASC' + | 'CAPABILITY_ID_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' | 'ENTITY_ID_ASC' @@ -373,6 +379,8 @@ export type OrgClaimedInviteOrderBy = export type OrgGrantOrderBy = | 'ACTOR_ID_ASC' | 'ACTOR_ID_DESC' + | 'CAPABILITIES_ASC' + | 'CAPABILITIES_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' | 'ENTITY_ID_ASC' @@ -384,8 +392,6 @@ export type OrgGrantOrderBy = | 'IS_GRANT_ASC' | 'IS_GRANT_DESC' | 'NATURAL' - | 'PERMISSIONS_ASC' - | 'PERMISSIONS_DESC' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'UPDATED_AT_ASC' @@ -494,6 +500,8 @@ export type OrgMembershipDefaultOrderBy = export type OrgMembershipOrderBy = | 'ACTOR_ID_ASC' | 'ACTOR_ID_DESC' + | 'CAPABILITIES_ASC' + | 'CAPABILITIES_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' | 'CREATED_BY_ASC' @@ -521,8 +529,6 @@ export type OrgMembershipOrderBy = | 'IS_READ_ONLY_ASC' | 'IS_READ_ONLY_DESC' | 'NATURAL' - | 'PERMISSIONS_ASC' - | 'PERMISSIONS_DESC' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'PROFILE_ID_ASC' @@ -583,66 +589,6 @@ export type OrgOwnerGrantOrderBy = | 'PRIMARY_KEY_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC'; -/** Methods to use when ordering `OrgPermissionDefaultGrant`. */ -export type OrgPermissionDefaultGrantOrderBy = - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'ENTITY_ID_ASC' - | 'ENTITY_ID_DESC' - | 'GRANTOR_ID_ASC' - | 'GRANTOR_ID_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'IS_GRANT_ASC' - | 'IS_GRANT_DESC' - | 'NATURAL' - | 'PERMISSION_ID_ASC' - | 'PERMISSION_ID_DESC' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC'; -/** Methods to use when ordering `OrgPermissionDefault`. */ -export type OrgPermissionDefaultOrderBy = - | 'ENTITY_ID_ASC' - | 'ENTITY_ID_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'NATURAL' - | 'PERMISSIONS_ASC' - | 'PERMISSIONS_DESC' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC'; -/** Methods to use when ordering `OrgPermissionDefaultPermission`. */ -export type OrgPermissionDefaultPermissionOrderBy = - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'ENTITY_ID_ASC' - | 'ENTITY_ID_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'NATURAL' - | 'PERMISSION_ID_ASC' - | 'PERMISSION_ID_DESC' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC'; -/** Methods to use when ordering `OrgPermission`. */ -export type OrgPermissionOrderBy = - | 'BITNUM_ASC' - | 'BITNUM_DESC' - | 'BITSTR_ASC' - | 'BITSTR_DESC' - | 'DESCRIPTION_ASC' - | 'DESCRIPTION_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'NAME_ASC' - | 'NAME_DESC' - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC'; /** 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 `actorId` field. */ @@ -686,6 +632,82 @@ export interface AppAdminGrantPatch { isGrant?: boolean; updatedAt?: string; } +/** A filter to be used against `AppCapabilityDefaultCapability` object types. All fields are combined with a logical ‘and.’ */ +export interface AppCapabilityDefaultCapabilityFilter { + /** Checks for all expressions in this list. */ + and?: AppCapabilityDefaultCapabilityFilter[]; + /** Filter by the object’s `capabilityId` field. */ + capabilityId?: UUIDFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Negates the expression. */ + not?: AppCapabilityDefaultCapabilityFilter; + /** Checks for any expressions in this list. */ + or?: AppCapabilityDefaultCapabilityFilter[]; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; +} +/** An input for mutations affecting `AppCapabilityDefaultCapability` */ +export interface AppCapabilityDefaultCapabilityInput { + /** References the capability included in the defaults bundle */ + capabilityId: string; + createdAt?: string; + id?: string; + updatedAt?: string; +} +/** Represents an update to a `AppCapabilityDefaultCapability`. Fields that are set will be updated. */ +export interface AppCapabilityDefaultCapabilityPatch { + /** References the capability included in the defaults bundle */ + capabilityId?: string; + createdAt?: string; + id?: string; + updatedAt?: string; +} +/** A filter to be used against `AppCapabilityDefaultGrant` object types. All fields are combined with a logical ‘and.’ */ +export interface AppCapabilityDefaultGrantFilter { + /** Checks for all expressions in this list. */ + and?: AppCapabilityDefaultGrantFilter[]; + /** Filter by the object’s `capabilityId` field. */ + capabilityId?: UUIDFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `grantorId` field. */ + grantorId?: UUIDFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `isGrant` field. */ + isGrant?: BooleanFilter; + /** Negates the expression. */ + not?: AppCapabilityDefaultGrantFilter; + /** Checks for any expressions in this list. */ + or?: AppCapabilityDefaultGrantFilter[]; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; +} +/** An input for mutations affecting `AppCapabilityDefaultGrant` */ +export interface AppCapabilityDefaultGrantInput { + /** References the capability being added to or removed from defaults */ + capabilityId: string; + createdAt?: string; + grantorId?: string; + id?: string; + /** True to add the capability to defaults, false to remove it */ + isGrant?: boolean; + updatedAt?: string; +} +/** Represents an update to a `AppCapabilityDefaultGrant`. Fields that are set will be updated. */ +export interface AppCapabilityDefaultGrantPatch { + /** References the capability being added to or removed from defaults */ + capabilityId?: string; + createdAt?: string; + grantorId?: string; + id?: string; + /** True to add the capability to defaults, false to remove it */ + isGrant?: boolean; + updatedAt?: string; +} /** A filter to be used against `AppClaimedInvite` object types. All fields are combined with a logical ‘and.’ */ export interface AppClaimedInviteFilter { /** Checks for all expressions in this list. */ @@ -735,6 +757,8 @@ export interface AppGrantFilter { actorId?: UUIDFilter; /** Checks for all expressions in this list. */ and?: AppGrantFilter[]; + /** Filter by the object’s `capabilities` field. */ + capabilities?: BitStringFilter; /** Filter by the object’s `createdAt` field. */ createdAt?: DatetimeFilter; /** Filter by the object’s `grantorId` field. */ @@ -747,35 +771,33 @@ export interface AppGrantFilter { not?: AppGrantFilter; /** Checks for any expressions in this list. */ or?: AppGrantFilter[]; - /** Filter by the object’s `permissions` field. */ - permissions?: BitStringFilter; /** Filter by the object’s `updatedAt` field. */ updatedAt?: DatetimeFilter; } /** An input for mutations affecting `AppGrant` */ export interface AppGrantInput { - /** The member receiving or losing the permission grant; NULL if user was deleted */ + /** The member receiving or losing the capability grant; NULL if user was deleted */ actorId?: string; + /** Bitmask of capabilities being granted or revoked */ + capabilities?: string; createdAt?: string; grantorId?: string; id?: string; - /** True to grant the permissions, false to revoke them */ + /** True to grant the capabilities, false to revoke them */ isGrant?: boolean; - /** Bitmask of permissions being granted or revoked */ - permissions?: string; updatedAt?: string; } /** Represents an update to a `AppGrant`. Fields that are set will be updated. */ export interface AppGrantPatch { - /** The member receiving or losing the permission grant; NULL if user was deleted */ + /** The member receiving or losing the capability grant; NULL if user was deleted */ actorId?: string; + /** Bitmask of capabilities being granted or revoked */ + capabilities?: string; createdAt?: string; grantorId?: string; id?: string; - /** True to grant the permissions, false to revoke them */ + /** True to grant the capabilities, false to revoke them */ isGrant?: boolean; - /** Bitmask of permissions being granted or revoked */ - permissions?: string; updatedAt?: string; } /** A filter to be used against `AppInvite` object types. All fields are combined with a logical ‘and.’ */ @@ -928,6 +950,8 @@ export interface AppMembershipFilter { actorId?: UUIDFilter; /** Checks for all expressions in this list. */ and?: AppMembershipFilter[]; + /** Filter by the object’s `capabilities` field. */ + capabilities?: BitStringFilter; /** Filter by the object’s `createdAt` field. */ createdAt?: DatetimeFilter; /** Filter by the object’s `createdBy` field. */ @@ -954,8 +978,6 @@ export interface AppMembershipFilter { not?: AppMembershipFilter; /** Checks for any expressions in this list. */ or?: AppMembershipFilter[]; - /** Filter by the object’s `permissions` field. */ - permissions?: BitStringFilter; /** Filter by the object’s `profileId` field. */ profileId?: UUIDFilter; /** Filter by the object’s `updatedAt` field. */ @@ -967,9 +989,11 @@ export interface AppMembershipFilter { export interface AppMembershipInput { /** References the user who holds this membership */ actorId: string; + /** Aggregated capability bitmask combining profile-based and directly granted capabilities */ + capabilities?: string; createdAt?: string; createdBy?: string; - /** Bitmask of permissions directly granted to this member (not from profiles) */ + /** Bitmask of capabilities directly granted to this member (not from profiles) */ granted?: string; id?: string; /** Computed field indicating the membership is approved, verified, not banned, and not disabled */ @@ -986,8 +1010,6 @@ export interface AppMembershipInput { isOwner?: boolean; /** Whether this member has been verified (e.g. email confirmation) */ isVerified?: boolean; - /** Aggregated permission bitmask combining profile-based and directly granted permissions */ - permissions?: string; profileId?: string; updatedAt?: string; updatedBy?: string; @@ -996,9 +1018,11 @@ export interface AppMembershipInput { export interface AppMembershipPatch { /** References the user who holds this membership */ actorId?: string; + /** Aggregated capability bitmask combining profile-based and directly granted capabilities */ + capabilities?: string; createdAt?: string; createdBy?: string; - /** Bitmask of permissions directly granted to this member (not from profiles) */ + /** Bitmask of capabilities directly granted to this member (not from profiles) */ granted?: string; id?: string; /** Computed field indicating the membership is approved, verified, not banned, and not disabled */ @@ -1015,8 +1039,6 @@ export interface AppMembershipPatch { isOwner?: boolean; /** Whether this member has been verified (e.g. email confirmation) */ isVerified?: boolean; - /** Aggregated permission bitmask combining profile-based and directly granted permissions */ - permissions?: string; profileId?: string; updatedAt?: string; updatedBy?: string; @@ -1064,171 +1086,6 @@ export interface AppOwnerGrantPatch { isGrant?: boolean; updatedAt?: string; } -/** A filter to be used against `AppPermissionDefault` object types. All fields are combined with a logical ‘and.’ */ -export interface AppPermissionDefaultFilter { - /** Checks for all expressions in this list. */ - and?: AppPermissionDefaultFilter[]; - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Negates the expression. */ - not?: AppPermissionDefaultFilter; - /** Checks for any expressions in this list. */ - or?: AppPermissionDefaultFilter[]; - /** Filter by the object’s `permissions` field. */ - permissions?: BitStringFilter; -} -/** A filter to be used against `AppPermissionDefaultGrant` object types. All fields are combined with a logical ‘and.’ */ -export interface AppPermissionDefaultGrantFilter { - /** Checks for all expressions in this list. */ - and?: AppPermissionDefaultGrantFilter[]; - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; - /** Filter by the object’s `grantorId` field. */ - grantorId?: UUIDFilter; - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `isGrant` field. */ - isGrant?: BooleanFilter; - /** Negates the expression. */ - not?: AppPermissionDefaultGrantFilter; - /** Checks for any expressions in this list. */ - or?: AppPermissionDefaultGrantFilter[]; - /** Filter by the object’s `permission` relation. */ - permission?: AppPermissionFilter; - /** Filter by the object’s `permissionId` field. */ - permissionId?: UUIDFilter; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; -} -/** An input for mutations affecting `AppPermissionDefaultGrant` */ -export interface AppPermissionDefaultGrantInput { - createdAt?: string; - grantorId?: string; - id?: string; - /** True to add the permission to defaults, false to remove it */ - isGrant?: boolean; - /** References the permission being added to or removed from defaults */ - permissionId: string; - updatedAt?: string; -} -/** Represents an update to a `AppPermissionDefaultGrant`. Fields that are set will be updated. */ -export interface AppPermissionDefaultGrantPatch { - createdAt?: string; - grantorId?: string; - id?: string; - /** True to add the permission to defaults, false to remove it */ - isGrant?: boolean; - /** References the permission being added to or removed from defaults */ - permissionId?: string; - updatedAt?: string; -} -/** An input for mutations affecting `AppPermissionDefault` */ -export interface AppPermissionDefaultInput { - id?: string; - /** Default permission bitmask applied to new members */ - permissions?: string; -} -/** Represents an update to a `AppPermissionDefault`. Fields that are set will be updated. */ -export interface AppPermissionDefaultPatch { - id?: string; - /** Default permission bitmask applied to new members */ - permissions?: string; -} -/** A filter to be used against `AppPermissionDefaultPermission` object types. All fields are combined with a logical ‘and.’ */ -export interface AppPermissionDefaultPermissionFilter { - /** Checks for all expressions in this list. */ - and?: AppPermissionDefaultPermissionFilter[]; - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Negates the expression. */ - not?: AppPermissionDefaultPermissionFilter; - /** Checks for any expressions in this list. */ - or?: AppPermissionDefaultPermissionFilter[]; - /** Filter by the object’s `permission` relation. */ - permission?: AppPermissionFilter; - /** Filter by the object’s `permissionId` field. */ - permissionId?: UUIDFilter; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; -} -/** An input for mutations affecting `AppPermissionDefaultPermission` */ -export interface AppPermissionDefaultPermissionInput { - createdAt?: string; - id?: string; - /** References the permission included in the defaults bundle */ - permissionId: string; - updatedAt?: string; -} -/** Represents an update to a `AppPermissionDefaultPermission`. Fields that are set will be updated. */ -export interface AppPermissionDefaultPermissionPatch { - createdAt?: string; - id?: string; - /** References the permission included in the defaults bundle */ - permissionId?: string; - updatedAt?: string; -} -/** A filter to be used against `AppPermission` object types. All fields are combined with a logical ‘and.’ */ -export interface AppPermissionFilter { - /** Checks for all expressions in this list. */ - and?: AppPermissionFilter[]; - /** Filter by the object’s `appPermissionDefaultGrantsByPermissionId` relation. */ - appPermissionDefaultGrantsByPermissionId?: AppPermissionToManyAppPermissionDefaultGrantFilter; - /** `appPermissionDefaultGrantsByPermissionId` exist. */ - appPermissionDefaultGrantsByPermissionIdExist?: boolean; - /** Filter by the object’s `appPermissionDefaultPermissionByPermissionId` relation. */ - appPermissionDefaultPermissionByPermissionId?: AppPermissionDefaultPermissionFilter; - /** A related `appPermissionDefaultPermissionByPermissionId` exists. */ - appPermissionDefaultPermissionByPermissionIdExists?: boolean; - /** 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 `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Negates the expression. */ - not?: AppPermissionFilter; - /** Checks for any expressions in this list. */ - or?: AppPermissionFilter[]; -} -/** An input for mutations affecting `AppPermission` */ -export interface AppPermissionInput { - /** 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; - id?: string; - /** Human-readable permission name (e.g. read, write, manage) */ - name?: string; -} -/** Represents an update to a `AppPermission`. Fields that are set will be updated. */ -export interface AppPermissionPatch { - /** 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; - id?: string; - /** Human-readable permission name (e.g. read, write, manage) */ - name?: string; -} -/** A filter to be used against many `AppPermissionDefaultGrant` object types. All fields are combined with a logical ‘and.’ */ -export interface AppPermissionToManyAppPermissionDefaultGrantFilter { - /** Filters to entities where every related entity matches. */ - every?: AppPermissionDefaultGrantFilter; - /** Filters to entities where no related entity matches. */ - none?: AppPermissionDefaultGrantFilter; - /** Filters to entities where at least one related entity matches. */ - some?: AppPermissionDefaultGrantFilter; -} /** A filter to be used against ConstructiveInternalTypeEmail fields. All fields are combined with a logical ‘and.’ */ export interface ConstructiveInternalTypeEmailFilter { /** Not equal to the specified value, treating null like an ordinary value. */ @@ -1346,6 +1203,16 @@ export interface CreateAppAdminGrantInput { appAdminGrant: AppAdminGrantInput; clientMutationId?: string; } +export interface CreateAppCapabilityDefaultCapabilityInput { + /** The `AppCapabilityDefaultCapability` to be created by this mutation. */ + appCapabilityDefaultCapability: AppCapabilityDefaultCapabilityInput; + clientMutationId?: string; +} +export interface CreateAppCapabilityDefaultGrantInput { + /** The `AppCapabilityDefaultGrant` to be created by this mutation. */ + appCapabilityDefaultGrant: AppCapabilityDefaultGrantInput; + clientMutationId?: string; +} export interface CreateAppClaimedInviteInput { /** The `AppClaimedInvite` to be created by this mutation. */ appClaimedInvite: AppClaimedInviteInput; @@ -1376,26 +1243,6 @@ export interface CreateAppOwnerGrantInput { appOwnerGrant: AppOwnerGrantInput; clientMutationId?: string; } -export interface CreateAppPermissionDefaultGrantInput { - /** The `AppPermissionDefaultGrant` to be created by this mutation. */ - appPermissionDefaultGrant: AppPermissionDefaultGrantInput; - clientMutationId?: string; -} -export interface CreateAppPermissionDefaultInput { - /** The `AppPermissionDefault` to be created by this mutation. */ - appPermissionDefault: AppPermissionDefaultInput; - clientMutationId?: string; -} -export interface CreateAppPermissionDefaultPermissionInput { - /** The `AppPermissionDefaultPermission` to be created by this mutation. */ - appPermissionDefaultPermission: AppPermissionDefaultPermissionInput; - clientMutationId?: string; -} -export interface CreateAppPermissionInput { - /** The `AppPermission` to be created by this mutation. */ - appPermission: AppPermissionInput; - clientMutationId?: string; -} export interface CreateMembershipTypeInput { clientMutationId?: string; /** The `MembershipType` to be created by this mutation. */ @@ -1406,6 +1253,16 @@ export interface CreateOrgAdminGrantInput { /** The `OrgAdminGrant` to be created by this mutation. */ orgAdminGrant: OrgAdminGrantInput; } +export interface CreateOrgCapabilityDefaultCapabilityInput { + clientMutationId?: string; + /** The `OrgCapabilityDefaultCapability` to be created by this mutation. */ + orgCapabilityDefaultCapability: OrgCapabilityDefaultCapabilityInput; +} +export interface CreateOrgCapabilityDefaultGrantInput { + clientMutationId?: string; + /** The `OrgCapabilityDefaultGrant` to be created by this mutation. */ + orgCapabilityDefaultGrant: OrgCapabilityDefaultGrantInput; +} export interface CreateOrgChartEdgeGrantInput { clientMutationId?: string; /** The `OrgChartEdgeGrant` to be created by this mutation. */ @@ -1461,27 +1318,15 @@ export interface CreateOrgOwnerGrantInput { /** The `OrgOwnerGrant` to be created by this mutation. */ orgOwnerGrant: OrgOwnerGrantInput; } -export interface CreateOrgPermissionDefaultGrantInput { - clientMutationId?: string; - /** The `OrgPermissionDefaultGrant` to be created by this mutation. */ - orgPermissionDefaultGrant: OrgPermissionDefaultGrantInput; -} -export interface CreateOrgPermissionDefaultInput { - clientMutationId?: string; - /** The `OrgPermissionDefault` to be created by this mutation. */ - orgPermissionDefault: OrgPermissionDefaultInput; -} -export interface CreateOrgPermissionDefaultPermissionInput { +export interface DeleteAppAdminGrantInput { clientMutationId?: string; - /** The `OrgPermissionDefaultPermission` to be created by this mutation. */ - orgPermissionDefaultPermission: OrgPermissionDefaultPermissionInput; + id: string; } -export interface CreateOrgPermissionInput { +export interface DeleteAppCapabilityDefaultCapabilityInput { clientMutationId?: string; - /** The `OrgPermission` to be created by this mutation. */ - orgPermission: OrgPermissionInput; + id: string; } -export interface DeleteAppAdminGrantInput { +export interface DeleteAppCapabilityDefaultGrantInput { clientMutationId?: string; id: string; } @@ -1509,28 +1354,20 @@ export interface DeleteAppOwnerGrantInput { clientMutationId?: string; id: string; } -export interface DeleteAppPermissionDefaultGrantInput { - clientMutationId?: string; - id: string; -} -export interface DeleteAppPermissionDefaultInput { +export interface DeleteMembershipTypeInput { clientMutationId?: string; - id: string; + /** Integer identifier for the membership type (1=App, 2=Organization, 3=Group) */ + id: number; } -export interface DeleteAppPermissionDefaultPermissionInput { +export interface DeleteOrgAdminGrantInput { clientMutationId?: string; id: string; } -export interface DeleteAppPermissionInput { +export interface DeleteOrgCapabilityDefaultCapabilityInput { 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 DeleteOrgAdminGrantInput { +export interface DeleteOrgCapabilityDefaultGrantInput { clientMutationId?: string; id: string; } @@ -1578,22 +1415,6 @@ export interface DeleteOrgOwnerGrantInput { clientMutationId?: string; id: string; } -export interface DeleteOrgPermissionDefaultGrantInput { - clientMutationId?: string; - id: string; -} -export interface DeleteOrgPermissionDefaultInput { - clientMutationId?: string; - id: string; -} -export interface DeleteOrgPermissionDefaultPermissionInput { - clientMutationId?: string; - id: string; -} -export interface DeleteOrgPermissionInput { - clientMutationId?: string; - id: string; -} /** A filter to be used against `MembershipType` object types. All fields are combined with a logical ‘and.’ */ export interface MembershipTypeFilter { /** Checks for all expressions in this list. */ @@ -1690,7 +1511,95 @@ export interface OrgAdminGrantPatch { entityId?: string; grantorId?: string; id?: string; - /** True to grant admin, false to revoke admin */ + /** True to grant admin, false to revoke admin */ + isGrant?: boolean; + updatedAt?: string; +} +/** A filter to be used against `OrgCapabilityDefaultCapability` object types. All fields are combined with a logical ‘and.’ */ +export interface OrgCapabilityDefaultCapabilityFilter { + /** Checks for all expressions in this list. */ + and?: OrgCapabilityDefaultCapabilityFilter[]; + /** Filter by the object’s `capabilityId` field. */ + capabilityId?: UUIDFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `entityId` field. */ + entityId?: UUIDFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Negates the expression. */ + not?: OrgCapabilityDefaultCapabilityFilter; + /** Checks for any expressions in this list. */ + or?: OrgCapabilityDefaultCapabilityFilter[]; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; +} +/** An input for mutations affecting `OrgCapabilityDefaultCapability` */ +export interface OrgCapabilityDefaultCapabilityInput { + /** References the capability included in the defaults bundle */ + capabilityId: string; + createdAt?: string; + /** Scopes this default capability to a specific entity */ + entityId: string; + id?: string; + updatedAt?: string; +} +/** Represents an update to a `OrgCapabilityDefaultCapability`. Fields that are set will be updated. */ +export interface OrgCapabilityDefaultCapabilityPatch { + /** References the capability included in the defaults bundle */ + capabilityId?: string; + createdAt?: string; + /** Scopes this default capability to a specific entity */ + entityId?: string; + id?: string; + updatedAt?: string; +} +/** A filter to be used against `OrgCapabilityDefaultGrant` object types. All fields are combined with a logical ‘and.’ */ +export interface OrgCapabilityDefaultGrantFilter { + /** Checks for all expressions in this list. */ + and?: OrgCapabilityDefaultGrantFilter[]; + /** Filter by the object’s `capabilityId` field. */ + capabilityId?: UUIDFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `entityId` field. */ + entityId?: UUIDFilter; + /** Filter by the object’s `grantorId` field. */ + grantorId?: UUIDFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `isGrant` field. */ + isGrant?: BooleanFilter; + /** Negates the expression. */ + not?: OrgCapabilityDefaultGrantFilter; + /** Checks for any expressions in this list. */ + or?: OrgCapabilityDefaultGrantFilter[]; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; +} +/** An input for mutations affecting `OrgCapabilityDefaultGrant` */ +export interface OrgCapabilityDefaultGrantInput { + /** References the capability being added to or removed from defaults */ + capabilityId: string; + createdAt?: string; + /** Scopes this audit entry to a specific entity */ + entityId: string; + grantorId?: string; + id?: string; + /** True to add the capability to defaults, false to remove it */ + isGrant?: boolean; + updatedAt?: string; +} +/** Represents an update to a `OrgCapabilityDefaultGrant`. Fields that are set will be updated. */ +export interface OrgCapabilityDefaultGrantPatch { + /** References the capability being added to or removed from defaults */ + capabilityId?: string; + createdAt?: string; + /** Scopes this audit entry to a specific entity */ + entityId?: string; + grantorId?: string; + id?: string; + /** True to add the capability to defaults, false to remove it */ isGrant?: boolean; updatedAt?: string; } @@ -1871,6 +1780,8 @@ export interface OrgGrantFilter { actorId?: UUIDFilter; /** Checks for all expressions in this list. */ and?: OrgGrantFilter[]; + /** Filter by the object’s `capabilities` field. */ + capabilities?: BitStringFilter; /** Filter by the object’s `createdAt` field. */ createdAt?: DatetimeFilter; /** Filter by the object’s `entityId` field. */ @@ -1885,39 +1796,37 @@ export interface OrgGrantFilter { not?: OrgGrantFilter; /** Checks for any expressions in this list. */ or?: OrgGrantFilter[]; - /** Filter by the object’s `permissions` field. */ - permissions?: BitStringFilter; /** Filter by the object’s `updatedAt` field. */ updatedAt?: DatetimeFilter; } /** An input for mutations affecting `OrgGrant` */ export interface OrgGrantInput { - /** The member receiving or losing the permission grant; NULL if user was deleted */ + /** The member receiving or losing the capability grant; NULL if user was deleted */ actorId?: string; + /** Bitmask of capabilities being granted or revoked */ + capabilities?: string; createdAt?: string; - /** The entity (org or group) this permission grant applies to */ + /** The entity (org or group) this capability grant applies to */ entityId: string; grantorId?: string; id?: string; - /** True to grant the permissions, false to revoke them */ + /** True to grant the capabilities, false to revoke them */ isGrant?: boolean; - /** Bitmask of permissions being granted or revoked */ - permissions?: string; updatedAt?: string; } /** Represents an update to a `OrgGrant`. Fields that are set will be updated. */ export interface OrgGrantPatch { - /** The member receiving or losing the permission grant; NULL if user was deleted */ + /** The member receiving or losing the capability grant; NULL if user was deleted */ actorId?: string; + /** Bitmask of capabilities being granted or revoked */ + capabilities?: string; createdAt?: string; - /** The entity (org or group) this permission grant applies to */ + /** The entity (org or group) this capability grant applies to */ entityId?: string; grantorId?: string; id?: string; - /** True to grant the permissions, false to revoke them */ + /** True to grant the capabilities, false to revoke them */ isGrant?: boolean; - /** Bitmask of permissions being granted or revoked */ - permissions?: string; updatedAt?: string; } /** A filter to be used against `OrgInvite` object types. All fields are combined with a logical ‘and.’ */ @@ -2202,6 +2111,8 @@ export interface OrgMembershipFilter { actorId?: UUIDFilter; /** Checks for all expressions in this list. */ and?: OrgMembershipFilter[]; + /** Filter by the object’s `capabilities` field. */ + capabilities?: BitStringFilter; /** Filter by the object’s `createdAt` field. */ createdAt?: DatetimeFilter; /** Filter by the object’s `createdBy` field. */ @@ -2236,8 +2147,6 @@ export interface OrgMembershipFilter { orgMemberProfileByMembershipId?: OrgMemberProfileFilter; /** A related `orgMemberProfileByMembershipId` exists. */ orgMemberProfileByMembershipIdExists?: boolean; - /** Filter by the object’s `permissions` field. */ - permissions?: BitStringFilter; /** Filter by the object’s `profileId` field. */ profileId?: UUIDFilter; /** Filter by the object’s `updatedAt` field. */ @@ -2249,11 +2158,13 @@ export interface OrgMembershipFilter { export interface OrgMembershipInput { /** References the user who holds this membership */ actorId: string; + /** Aggregated capability bitmask combining profile-based and directly granted capabilities */ + capabilities?: string; createdAt?: string; createdBy?: string; /** References the entity (org or group) this membership belongs to */ entityId: string; - /** Bitmask of permissions directly granted to this member (not from profiles) */ + /** Bitmask of capabilities directly granted to this member (not from profiles) */ granted?: string; id?: string; /** Computed field indicating the membership is approved, verified, not banned, and not disabled */ @@ -2266,14 +2177,12 @@ export interface OrgMembershipInput { isBanned?: boolean; /** Whether this membership is temporarily disabled */ isDisabled?: boolean; - /** Whether this member is external (not a member of the parent scope). External members may have restricted permissions. */ + /** Whether this member is external (not a member of the parent scope). External members may have restricted capabilities. */ isExternal?: boolean; /** Whether the actor is the owner of this entity */ isOwner?: boolean; /** Whether this member has read-only access (blocks mutations when true) */ isReadOnly?: boolean; - /** Aggregated permission bitmask combining profile-based and directly granted permissions */ - permissions?: string; profileId?: string; updatedAt?: string; updatedBy?: string; @@ -2282,11 +2191,13 @@ export interface OrgMembershipInput { export interface OrgMembershipPatch { /** References the user who holds this membership */ actorId?: string; + /** Aggregated capability bitmask combining profile-based and directly granted capabilities */ + capabilities?: string; createdAt?: string; createdBy?: string; /** References the entity (org or group) this membership belongs to */ entityId?: string; - /** Bitmask of permissions directly granted to this member (not from profiles) */ + /** Bitmask of capabilities directly granted to this member (not from profiles) */ granted?: string; id?: string; /** Computed field indicating the membership is approved, verified, not banned, and not disabled */ @@ -2299,14 +2210,12 @@ export interface OrgMembershipPatch { isBanned?: boolean; /** Whether this membership is temporarily disabled */ isDisabled?: boolean; - /** Whether this member is external (not a member of the parent scope). External members may have restricted permissions. */ + /** Whether this member is external (not a member of the parent scope). External members may have restricted capabilities. */ isExternal?: boolean; /** Whether the actor is the owner of this entity */ isOwner?: boolean; /** Whether this member has read-only access (blocks mutations when true) */ isReadOnly?: boolean; - /** Aggregated permission bitmask combining profile-based and directly granted permissions */ - permissions?: string; profileId?: string; updatedAt?: string; updatedBy?: string; @@ -2365,7 +2274,7 @@ export interface OrgMembershipSettingInput { /** References the entity these settings apply to */ entityId: string; id?: string; - /** Controls how profile assignment on invites is validated: strict (permission + subset check), permission_only (permission only), or subset_only (subset check only) */ + /** Controls how profile assignment on invites is validated: strict (capability + subset check), capability_only (capability only), or subset_only (subset check only) */ inviteProfileAssignmentMode?: 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; @@ -2391,7 +2300,7 @@ export interface OrgMembershipSettingPatch { /** References the entity these settings apply to */ entityId?: string; id?: string; - /** Controls how profile assignment on invites is validated: strict (permission + subset check), permission_only (permission only), or subset_only (subset check only) */ + /** Controls how profile assignment on invites is validated: strict (capability + subset check), capability_only (capability only), or subset_only (subset check only) */ inviteProfileAssignmentMode?: 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; @@ -2449,198 +2358,6 @@ export interface OrgOwnerGrantPatch { isGrant?: boolean; updatedAt?: string; } -/** A filter to be used against `OrgPermissionDefault` object types. All fields are combined with a logical ‘and.’ */ -export interface OrgPermissionDefaultFilter { - /** Checks for all expressions in this list. */ - and?: OrgPermissionDefaultFilter[]; - /** Filter by the object’s `entityId` field. */ - entityId?: UUIDFilter; - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Negates the expression. */ - not?: OrgPermissionDefaultFilter; - /** Checks for any expressions in this list. */ - or?: OrgPermissionDefaultFilter[]; - /** Filter by the object’s `permissions` field. */ - permissions?: BitStringFilter; -} -/** A filter to be used against `OrgPermissionDefaultGrant` object types. All fields are combined with a logical ‘and.’ */ -export interface OrgPermissionDefaultGrantFilter { - /** Checks for all expressions in this list. */ - and?: OrgPermissionDefaultGrantFilter[]; - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; - /** Filter by the object’s `entityId` field. */ - entityId?: UUIDFilter; - /** Filter by the object’s `grantorId` field. */ - grantorId?: UUIDFilter; - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `isGrant` field. */ - isGrant?: BooleanFilter; - /** Negates the expression. */ - not?: OrgPermissionDefaultGrantFilter; - /** Checks for any expressions in this list. */ - or?: OrgPermissionDefaultGrantFilter[]; - /** Filter by the object’s `permission` relation. */ - permission?: OrgPermissionFilter; - /** Filter by the object’s `permissionId` field. */ - permissionId?: UUIDFilter; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; -} -/** An input for mutations affecting `OrgPermissionDefaultGrant` */ -export interface OrgPermissionDefaultGrantInput { - createdAt?: string; - /** Scopes this audit entry to a specific entity */ - entityId: string; - grantorId?: string; - id?: string; - /** True to add the permission to defaults, false to remove it */ - isGrant?: boolean; - /** References the permission being added to or removed from defaults */ - permissionId: string; - updatedAt?: string; -} -/** Represents an update to a `OrgPermissionDefaultGrant`. Fields that are set will be updated. */ -export interface OrgPermissionDefaultGrantPatch { - createdAt?: string; - /** Scopes this audit entry to a specific entity */ - entityId?: string; - grantorId?: string; - id?: string; - /** True to add the permission to defaults, false to remove it */ - isGrant?: boolean; - /** References the permission being added to or removed from defaults */ - permissionId?: string; - updatedAt?: string; -} -/** An input for mutations affecting `OrgPermissionDefault` */ -export interface OrgPermissionDefaultInput { - /** References the entity these default permissions apply to */ - entityId: string; - id?: string; - /** Default permission bitmask applied to new members */ - permissions?: string; -} -/** Represents an update to a `OrgPermissionDefault`. Fields that are set will be updated. */ -export interface OrgPermissionDefaultPatch { - /** References the entity these default permissions apply to */ - entityId?: string; - id?: string; - /** Default permission bitmask applied to new members */ - permissions?: string; -} -/** A filter to be used against `OrgPermissionDefaultPermission` object types. All fields are combined with a logical ‘and.’ */ -export interface OrgPermissionDefaultPermissionFilter { - /** Checks for all expressions in this list. */ - and?: OrgPermissionDefaultPermissionFilter[]; - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; - /** Filter by the object’s `entityId` field. */ - entityId?: UUIDFilter; - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Negates the expression. */ - not?: OrgPermissionDefaultPermissionFilter; - /** Checks for any expressions in this list. */ - or?: OrgPermissionDefaultPermissionFilter[]; - /** Filter by the object’s `permission` relation. */ - permission?: OrgPermissionFilter; - /** Filter by the object’s `permissionId` field. */ - permissionId?: UUIDFilter; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; -} -/** An input for mutations affecting `OrgPermissionDefaultPermission` */ -export interface OrgPermissionDefaultPermissionInput { - createdAt?: string; - /** Scopes this default permission to a specific entity */ - entityId: string; - id?: string; - /** References the permission included in the defaults bundle */ - permissionId: string; - updatedAt?: string; -} -/** Represents an update to a `OrgPermissionDefaultPermission`. Fields that are set will be updated. */ -export interface OrgPermissionDefaultPermissionPatch { - createdAt?: string; - /** Scopes this default permission to a specific entity */ - entityId?: string; - id?: string; - /** References the permission included in the defaults bundle */ - permissionId?: string; - updatedAt?: string; -} -/** A filter to be used against `OrgPermission` object types. All fields are combined with a logical ‘and.’ */ -export interface OrgPermissionFilter { - /** Checks for all expressions in this list. */ - and?: OrgPermissionFilter[]; - /** 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 `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Negates the expression. */ - not?: OrgPermissionFilter; - /** Checks for any expressions in this list. */ - or?: OrgPermissionFilter[]; - /** Filter by the object’s `orgPermissionDefaultGrantsByPermissionId` relation. */ - orgPermissionDefaultGrantsByPermissionId?: OrgPermissionToManyOrgPermissionDefaultGrantFilter; - /** `orgPermissionDefaultGrantsByPermissionId` exist. */ - orgPermissionDefaultGrantsByPermissionIdExist?: boolean; - /** Filter by the object’s `orgPermissionDefaultPermissionsByPermissionId` relation. */ - orgPermissionDefaultPermissionsByPermissionId?: OrgPermissionToManyOrgPermissionDefaultPermissionFilter; - /** `orgPermissionDefaultPermissionsByPermissionId` exist. */ - orgPermissionDefaultPermissionsByPermissionIdExist?: boolean; -} -/** An input for mutations affecting `OrgPermission` */ -export interface OrgPermissionInput { - /** 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; - id?: string; - /** Human-readable permission name (e.g. read, write, manage) */ - name?: string; -} -/** Represents an update to a `OrgPermission`. Fields that are set will be updated. */ -export interface OrgPermissionPatch { - /** 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; - id?: string; - /** Human-readable permission name (e.g. read, write, manage) */ - name?: string; -} -/** A filter to be used against many `OrgPermissionDefaultGrant` object types. All fields are combined with a logical ‘and.’ */ -export interface OrgPermissionToManyOrgPermissionDefaultGrantFilter { - /** Filters to entities where every related entity matches. */ - every?: OrgPermissionDefaultGrantFilter; - /** Filters to entities where no related entity matches. */ - none?: OrgPermissionDefaultGrantFilter; - /** Filters to entities where at least one related entity matches. */ - some?: OrgPermissionDefaultGrantFilter; -} -/** A filter to be used against many `OrgPermissionDefaultPermission` object types. All fields are combined with a logical ‘and.’ */ -export interface OrgPermissionToManyOrgPermissionDefaultPermissionFilter { - /** Filters to entities where every related entity matches. */ - every?: OrgPermissionDefaultPermissionFilter; - /** Filters to entities where no related entity matches. */ - none?: OrgPermissionDefaultPermissionFilter; - /** Filters to entities where at least one related entity matches. */ - some?: OrgPermissionDefaultPermissionFilter; -} export interface ProvisionBucketInput { /** The logical bucket key (e.g., "public", "private") */ bucketKey: string; @@ -2664,6 +2381,18 @@ export interface UpdateAppAdminGrantInput { clientMutationId?: string; id: string; } +export interface UpdateAppCapabilityDefaultCapabilityInput { + /** An object where the defined keys will be set on the `AppCapabilityDefaultCapability` being updated. */ + appCapabilityDefaultCapabilityPatch: AppCapabilityDefaultCapabilityPatch; + clientMutationId?: string; + id: string; +} +export interface UpdateAppCapabilityDefaultGrantInput { + /** An object where the defined keys will be set on the `AppCapabilityDefaultGrant` being updated. */ + appCapabilityDefaultGrantPatch: AppCapabilityDefaultGrantPatch; + clientMutationId?: string; + id: string; +} export interface UpdateAppClaimedInviteInput { /** An object where the defined keys will be set on the `AppClaimedInvite` being updated. */ appClaimedInvitePatch: AppClaimedInvitePatch; @@ -2700,30 +2429,6 @@ export interface UpdateAppOwnerGrantInput { clientMutationId?: string; id: string; } -export interface UpdateAppPermissionDefaultGrantInput { - /** An object where the defined keys will be set on the `AppPermissionDefaultGrant` being updated. */ - appPermissionDefaultGrantPatch: AppPermissionDefaultGrantPatch; - clientMutationId?: string; - id: string; -} -export interface UpdateAppPermissionDefaultInput { - /** An object where the defined keys will be set on the `AppPermissionDefault` being updated. */ - appPermissionDefaultPatch: AppPermissionDefaultPatch; - clientMutationId?: string; - id: string; -} -export interface UpdateAppPermissionDefaultPermissionInput { - /** An object where the defined keys will be set on the `AppPermissionDefaultPermission` being updated. */ - appPermissionDefaultPermissionPatch: AppPermissionDefaultPermissionPatch; - clientMutationId?: string; - id: string; -} -export interface UpdateAppPermissionInput { - /** An object where the defined keys will be set on the `AppPermission` being updated. */ - appPermissionPatch: AppPermissionPatch; - clientMutationId?: string; - id: string; -} export interface UpdateMembershipTypeInput { clientMutationId?: string; /** Integer identifier for the membership type (1=App, 2=Organization, 3=Group) */ @@ -2737,6 +2442,18 @@ export interface UpdateOrgAdminGrantInput { /** An object where the defined keys will be set on the `OrgAdminGrant` being updated. */ orgAdminGrantPatch: OrgAdminGrantPatch; } +export interface UpdateOrgCapabilityDefaultCapabilityInput { + clientMutationId?: string; + id: string; + /** An object where the defined keys will be set on the `OrgCapabilityDefaultCapability` being updated. */ + orgCapabilityDefaultCapabilityPatch: OrgCapabilityDefaultCapabilityPatch; +} +export interface UpdateOrgCapabilityDefaultGrantInput { + clientMutationId?: string; + id: string; + /** An object where the defined keys will be set on the `OrgCapabilityDefaultGrant` being updated. */ + orgCapabilityDefaultGrantPatch: OrgCapabilityDefaultGrantPatch; +} export interface UpdateOrgChartEdgeGrantInput { clientMutationId?: string; id: string; @@ -2803,30 +2520,6 @@ export interface UpdateOrgOwnerGrantInput { /** An object where the defined keys will be set on the `OrgOwnerGrant` being updated. */ orgOwnerGrantPatch: OrgOwnerGrantPatch; } -export interface UpdateOrgPermissionDefaultGrantInput { - clientMutationId?: string; - id: string; - /** An object where the defined keys will be set on the `OrgPermissionDefaultGrant` being updated. */ - orgPermissionDefaultGrantPatch: OrgPermissionDefaultGrantPatch; -} -export interface UpdateOrgPermissionDefaultInput { - clientMutationId?: string; - id: string; - /** An object where the defined keys will be set on the `OrgPermissionDefault` being updated. */ - orgPermissionDefaultPatch: OrgPermissionDefaultPatch; -} -export interface UpdateOrgPermissionDefaultPermissionInput { - clientMutationId?: string; - id: string; - /** An object where the defined keys will be set on the `OrgPermissionDefaultPermission` being updated. */ - orgPermissionDefaultPermissionPatch: OrgPermissionDefaultPermissionPatch; -} -export interface UpdateOrgPermissionInput { - clientMutationId?: string; - id: string; - /** An object where the defined keys will be set on the `OrgPermission` being updated. */ - orgPermissionPatch: OrgPermissionPatch; -} /** Root meta schema type */ export interface MetaSchema { tables: MetaTable[]; @@ -2838,6 +2531,20 @@ export interface AppAdminGrantConnection { pageInfo: PageInfo; totalCount: number; } +/** A connection to a list of `AppCapabilityDefaultCapability` values. */ +export interface AppCapabilityDefaultCapabilityConnection { + edges: AppCapabilityDefaultCapabilityEdge[]; + nodes: AppCapabilityDefaultCapability[]; + pageInfo: PageInfo; + totalCount: number; +} +/** A connection to a list of `AppCapabilityDefaultGrant` values. */ +export interface AppCapabilityDefaultGrantConnection { + edges: AppCapabilityDefaultGrantEdge[]; + nodes: AppCapabilityDefaultGrant[]; + pageInfo: PageInfo; + totalCount: number; +} /** A connection to a list of `AppClaimedInvite` values. */ export interface AppClaimedInviteConnection { edges: AppClaimedInviteEdge[]; @@ -2880,34 +2587,6 @@ export interface AppOwnerGrantConnection { pageInfo: PageInfo; totalCount: number; } -/** A connection to a list of `AppPermissionDefaultGrant` values. */ -export interface AppPermissionDefaultGrantConnection { - edges: AppPermissionDefaultGrantEdge[]; - nodes: AppPermissionDefaultGrant[]; - pageInfo: PageInfo; - totalCount: number; -} -/** A connection to a list of `AppPermissionDefaultPermission` values. */ -export interface AppPermissionDefaultPermissionConnection { - edges: AppPermissionDefaultPermissionEdge[]; - nodes: AppPermissionDefaultPermission[]; - pageInfo: PageInfo; - totalCount: number; -} -/** A connection to a list of `AppPermissionDefault` values. */ -export interface AppPermissionDefaultConnection { - edges: AppPermissionDefaultEdge[]; - nodes: AppPermissionDefault[]; - pageInfo: PageInfo; - totalCount: number; -} -/** A connection to a list of `AppPermission` values. */ -export interface AppPermissionConnection { - edges: AppPermissionEdge[]; - nodes: AppPermission[]; - pageInfo: PageInfo; - totalCount: number; -} /** A connection to a list of `MembershipType` values. */ export interface MembershipTypeConnection { edges: MembershipTypeEdge[]; @@ -2922,6 +2601,20 @@ export interface OrgAdminGrantConnection { pageInfo: PageInfo; totalCount: number; } +/** A connection to a list of `OrgCapabilityDefaultCapability` values. */ +export interface OrgCapabilityDefaultCapabilityConnection { + edges: OrgCapabilityDefaultCapabilityEdge[]; + nodes: OrgCapabilityDefaultCapability[]; + pageInfo: PageInfo; + totalCount: number; +} +/** A connection to a list of `OrgCapabilityDefaultGrant` values. */ +export interface OrgCapabilityDefaultGrantConnection { + edges: OrgCapabilityDefaultGrantEdge[]; + nodes: OrgCapabilityDefaultGrant[]; + pageInfo: PageInfo; + totalCount: number; +} /** A connection to a list of `OrgChartEdgeGrant` values. */ export interface OrgChartEdgeGrantConnection { edges: OrgChartEdgeGrantEdge[]; @@ -3013,40 +2706,24 @@ export interface OrgOwnerGrantConnection { pageInfo: PageInfo; totalCount: number; } -/** A connection to a list of `OrgPermissionDefaultGrant` values. */ -export interface OrgPermissionDefaultGrantConnection { - edges: OrgPermissionDefaultGrantEdge[]; - nodes: OrgPermissionDefaultGrant[]; - pageInfo: PageInfo; - totalCount: number; -} -/** A connection to a list of `OrgPermissionDefaultPermission` values. */ -export interface OrgPermissionDefaultPermissionConnection { - edges: OrgPermissionDefaultPermissionEdge[]; - nodes: OrgPermissionDefaultPermission[]; - pageInfo: PageInfo; - totalCount: number; -} -/** A connection to a list of `OrgPermissionDefault` values. */ -export interface OrgPermissionDefaultConnection { - edges: OrgPermissionDefaultEdge[]; - nodes: OrgPermissionDefault[]; - pageInfo: PageInfo; - totalCount: number; -} -/** A connection to a list of `OrgPermission` values. */ -export interface OrgPermissionConnection { - edges: OrgPermissionEdge[]; - nodes: OrgPermission[]; - pageInfo: PageInfo; - totalCount: number; -} export interface CreateAppAdminGrantPayload { /** The `AppAdminGrant` that was created by this mutation. */ appAdminGrant?: AppAdminGrant | null; appAdminGrantEdge?: AppAdminGrantEdge | null; clientMutationId?: string | null; } +export interface CreateAppCapabilityDefaultCapabilityPayload { + /** The `AppCapabilityDefaultCapability` that was created by this mutation. */ + appCapabilityDefaultCapability?: AppCapabilityDefaultCapability | null; + appCapabilityDefaultCapabilityEdge?: AppCapabilityDefaultCapabilityEdge | null; + clientMutationId?: string | null; +} +export interface CreateAppCapabilityDefaultGrantPayload { + /** The `AppCapabilityDefaultGrant` that was created by this mutation. */ + appCapabilityDefaultGrant?: AppCapabilityDefaultGrant | null; + appCapabilityDefaultGrantEdge?: AppCapabilityDefaultGrantEdge | null; + clientMutationId?: string | null; +} export interface CreateAppClaimedInvitePayload { /** The `AppClaimedInvite` that was created by this mutation. */ appClaimedInvite?: AppClaimedInvite | null; @@ -3083,30 +2760,6 @@ export interface CreateAppOwnerGrantPayload { appOwnerGrantEdge?: AppOwnerGrantEdge | null; clientMutationId?: string | null; } -export interface CreateAppPermissionPayload { - /** The `AppPermission` that was created by this mutation. */ - appPermission?: AppPermission | null; - appPermissionEdge?: AppPermissionEdge | null; - clientMutationId?: string | null; -} -export interface CreateAppPermissionDefaultPayload { - /** The `AppPermissionDefault` that was created by this mutation. */ - appPermissionDefault?: AppPermissionDefault | null; - appPermissionDefaultEdge?: AppPermissionDefaultEdge | null; - clientMutationId?: string | null; -} -export interface CreateAppPermissionDefaultGrantPayload { - /** The `AppPermissionDefaultGrant` that was created by this mutation. */ - appPermissionDefaultGrant?: AppPermissionDefaultGrant | null; - appPermissionDefaultGrantEdge?: AppPermissionDefaultGrantEdge | null; - clientMutationId?: string | null; -} -export interface CreateAppPermissionDefaultPermissionPayload { - /** The `AppPermissionDefaultPermission` that was created by this mutation. */ - appPermissionDefaultPermission?: AppPermissionDefaultPermission | null; - appPermissionDefaultPermissionEdge?: AppPermissionDefaultPermissionEdge | null; - clientMutationId?: string | null; -} export interface CreateMembershipTypePayload { clientMutationId?: string | null; /** The `MembershipType` that was created by this mutation. */ @@ -3119,6 +2772,18 @@ export interface CreateOrgAdminGrantPayload { orgAdminGrant?: OrgAdminGrant | null; orgAdminGrantEdge?: OrgAdminGrantEdge | null; } +export interface CreateOrgCapabilityDefaultCapabilityPayload { + clientMutationId?: string | null; + /** The `OrgCapabilityDefaultCapability` that was created by this mutation. */ + orgCapabilityDefaultCapability?: OrgCapabilityDefaultCapability | null; + orgCapabilityDefaultCapabilityEdge?: OrgCapabilityDefaultCapabilityEdge | null; +} +export interface CreateOrgCapabilityDefaultGrantPayload { + clientMutationId?: string | null; + /** The `OrgCapabilityDefaultGrant` that was created by this mutation. */ + orgCapabilityDefaultGrant?: OrgCapabilityDefaultGrant | null; + orgCapabilityDefaultGrantEdge?: OrgCapabilityDefaultGrantEdge | null; +} export interface CreateOrgChartEdgePayload { clientMutationId?: string | null; /** The `OrgChartEdge` that was created by this mutation. */ @@ -3185,36 +2850,24 @@ export interface CreateOrgOwnerGrantPayload { orgOwnerGrant?: OrgOwnerGrant | null; orgOwnerGrantEdge?: OrgOwnerGrantEdge | null; } -export interface CreateOrgPermissionPayload { - clientMutationId?: string | null; - /** The `OrgPermission` that was created by this mutation. */ - orgPermission?: OrgPermission | null; - orgPermissionEdge?: OrgPermissionEdge | null; -} -export interface CreateOrgPermissionDefaultPayload { - clientMutationId?: string | null; - /** The `OrgPermissionDefault` that was created by this mutation. */ - orgPermissionDefault?: OrgPermissionDefault | null; - orgPermissionDefaultEdge?: OrgPermissionDefaultEdge | null; -} -export interface CreateOrgPermissionDefaultGrantPayload { - clientMutationId?: string | null; - /** The `OrgPermissionDefaultGrant` that was created by this mutation. */ - orgPermissionDefaultGrant?: OrgPermissionDefaultGrant | null; - orgPermissionDefaultGrantEdge?: OrgPermissionDefaultGrantEdge | null; -} -export interface CreateOrgPermissionDefaultPermissionPayload { - clientMutationId?: string | null; - /** The `OrgPermissionDefaultPermission` that was created by this mutation. */ - orgPermissionDefaultPermission?: OrgPermissionDefaultPermission | null; - orgPermissionDefaultPermissionEdge?: OrgPermissionDefaultPermissionEdge | null; -} export interface DeleteAppAdminGrantPayload { /** The `AppAdminGrant` that was deleted by this mutation. */ appAdminGrant?: AppAdminGrant | null; appAdminGrantEdge?: AppAdminGrantEdge | null; clientMutationId?: string | null; } +export interface DeleteAppCapabilityDefaultCapabilityPayload { + /** The `AppCapabilityDefaultCapability` that was deleted by this mutation. */ + appCapabilityDefaultCapability?: AppCapabilityDefaultCapability | null; + appCapabilityDefaultCapabilityEdge?: AppCapabilityDefaultCapabilityEdge | null; + clientMutationId?: string | null; +} +export interface DeleteAppCapabilityDefaultGrantPayload { + /** The `AppCapabilityDefaultGrant` that was deleted by this mutation. */ + appCapabilityDefaultGrant?: AppCapabilityDefaultGrant | null; + appCapabilityDefaultGrantEdge?: AppCapabilityDefaultGrantEdge | null; + clientMutationId?: string | null; +} export interface DeleteAppClaimedInvitePayload { /** The `AppClaimedInvite` that was deleted by this mutation. */ appClaimedInvite?: AppClaimedInvite | null; @@ -3251,30 +2904,6 @@ export interface DeleteAppOwnerGrantPayload { appOwnerGrantEdge?: AppOwnerGrantEdge | null; clientMutationId?: string | null; } -export interface DeleteAppPermissionPayload { - /** The `AppPermission` that was deleted by this mutation. */ - appPermission?: AppPermission | null; - appPermissionEdge?: AppPermissionEdge | null; - clientMutationId?: string | null; -} -export interface DeleteAppPermissionDefaultPayload { - /** The `AppPermissionDefault` that was deleted by this mutation. */ - appPermissionDefault?: AppPermissionDefault | null; - appPermissionDefaultEdge?: AppPermissionDefaultEdge | null; - clientMutationId?: string | null; -} -export interface DeleteAppPermissionDefaultGrantPayload { - /** The `AppPermissionDefaultGrant` that was deleted by this mutation. */ - appPermissionDefaultGrant?: AppPermissionDefaultGrant | null; - appPermissionDefaultGrantEdge?: AppPermissionDefaultGrantEdge | null; - clientMutationId?: string | null; -} -export interface DeleteAppPermissionDefaultPermissionPayload { - /** The `AppPermissionDefaultPermission` that was deleted by this mutation. */ - appPermissionDefaultPermission?: AppPermissionDefaultPermission | null; - appPermissionDefaultPermissionEdge?: AppPermissionDefaultPermissionEdge | null; - clientMutationId?: string | null; -} export interface DeleteMembershipTypePayload { clientMutationId?: string | null; /** The `MembershipType` that was deleted by this mutation. */ @@ -3287,6 +2916,18 @@ export interface DeleteOrgAdminGrantPayload { orgAdminGrant?: OrgAdminGrant | null; orgAdminGrantEdge?: OrgAdminGrantEdge | null; } +export interface DeleteOrgCapabilityDefaultCapabilityPayload { + clientMutationId?: string | null; + /** The `OrgCapabilityDefaultCapability` that was deleted by this mutation. */ + orgCapabilityDefaultCapability?: OrgCapabilityDefaultCapability | null; + orgCapabilityDefaultCapabilityEdge?: OrgCapabilityDefaultCapabilityEdge | null; +} +export interface DeleteOrgCapabilityDefaultGrantPayload { + clientMutationId?: string | null; + /** The `OrgCapabilityDefaultGrant` that was deleted by this mutation. */ + orgCapabilityDefaultGrant?: OrgCapabilityDefaultGrant | null; + orgCapabilityDefaultGrantEdge?: OrgCapabilityDefaultGrantEdge | null; +} export interface DeleteOrgChartEdgePayload { clientMutationId?: string | null; /** The `OrgChartEdge` that was deleted by this mutation. */ @@ -3353,30 +2994,6 @@ export interface DeleteOrgOwnerGrantPayload { orgOwnerGrant?: OrgOwnerGrant | null; orgOwnerGrantEdge?: OrgOwnerGrantEdge | null; } -export interface DeleteOrgPermissionPayload { - clientMutationId?: string | null; - /** The `OrgPermission` that was deleted by this mutation. */ - orgPermission?: OrgPermission | null; - orgPermissionEdge?: OrgPermissionEdge | null; -} -export interface DeleteOrgPermissionDefaultPayload { - clientMutationId?: string | null; - /** The `OrgPermissionDefault` that was deleted by this mutation. */ - orgPermissionDefault?: OrgPermissionDefault | null; - orgPermissionDefaultEdge?: OrgPermissionDefaultEdge | null; -} -export interface DeleteOrgPermissionDefaultGrantPayload { - clientMutationId?: string | null; - /** The `OrgPermissionDefaultGrant` that was deleted by this mutation. */ - orgPermissionDefaultGrant?: OrgPermissionDefaultGrant | null; - orgPermissionDefaultGrantEdge?: OrgPermissionDefaultGrantEdge | null; -} -export interface DeleteOrgPermissionDefaultPermissionPayload { - clientMutationId?: string | null; - /** The `OrgPermissionDefaultPermission` that was deleted by this mutation. */ - orgPermissionDefaultPermission?: OrgPermissionDefaultPermission | null; - orgPermissionDefaultPermissionEdge?: OrgPermissionDefaultPermissionEdge | null; -} export interface ProvisionBucketPayload { /** The access type applied */ accessType: string; @@ -3405,6 +3022,18 @@ export interface UpdateAppAdminGrantPayload { appAdminGrantEdge?: AppAdminGrantEdge | null; clientMutationId?: string | null; } +export interface UpdateAppCapabilityDefaultCapabilityPayload { + /** The `AppCapabilityDefaultCapability` that was updated by this mutation. */ + appCapabilityDefaultCapability?: AppCapabilityDefaultCapability | null; + appCapabilityDefaultCapabilityEdge?: AppCapabilityDefaultCapabilityEdge | null; + clientMutationId?: string | null; +} +export interface UpdateAppCapabilityDefaultGrantPayload { + /** The `AppCapabilityDefaultGrant` that was updated by this mutation. */ + appCapabilityDefaultGrant?: AppCapabilityDefaultGrant | null; + appCapabilityDefaultGrantEdge?: AppCapabilityDefaultGrantEdge | null; + clientMutationId?: string | null; +} export interface UpdateAppClaimedInvitePayload { /** The `AppClaimedInvite` that was updated by this mutation. */ appClaimedInvite?: AppClaimedInvite | null; @@ -3441,30 +3070,6 @@ export interface UpdateAppOwnerGrantPayload { appOwnerGrantEdge?: AppOwnerGrantEdge | null; clientMutationId?: string | null; } -export interface UpdateAppPermissionPayload { - /** The `AppPermission` that was updated by this mutation. */ - appPermission?: AppPermission | null; - appPermissionEdge?: AppPermissionEdge | null; - clientMutationId?: string | null; -} -export interface UpdateAppPermissionDefaultPayload { - /** The `AppPermissionDefault` that was updated by this mutation. */ - appPermissionDefault?: AppPermissionDefault | null; - appPermissionDefaultEdge?: AppPermissionDefaultEdge | null; - clientMutationId?: string | null; -} -export interface UpdateAppPermissionDefaultGrantPayload { - /** The `AppPermissionDefaultGrant` that was updated by this mutation. */ - appPermissionDefaultGrant?: AppPermissionDefaultGrant | null; - appPermissionDefaultGrantEdge?: AppPermissionDefaultGrantEdge | null; - clientMutationId?: string | null; -} -export interface UpdateAppPermissionDefaultPermissionPayload { - /** The `AppPermissionDefaultPermission` that was updated by this mutation. */ - appPermissionDefaultPermission?: AppPermissionDefaultPermission | null; - appPermissionDefaultPermissionEdge?: AppPermissionDefaultPermissionEdge | null; - clientMutationId?: string | null; -} export interface UpdateMembershipTypePayload { clientMutationId?: string | null; /** The `MembershipType` that was updated by this mutation. */ @@ -3477,6 +3082,18 @@ export interface UpdateOrgAdminGrantPayload { orgAdminGrant?: OrgAdminGrant | null; orgAdminGrantEdge?: OrgAdminGrantEdge | null; } +export interface UpdateOrgCapabilityDefaultCapabilityPayload { + clientMutationId?: string | null; + /** The `OrgCapabilityDefaultCapability` that was updated by this mutation. */ + orgCapabilityDefaultCapability?: OrgCapabilityDefaultCapability | null; + orgCapabilityDefaultCapabilityEdge?: OrgCapabilityDefaultCapabilityEdge | null; +} +export interface UpdateOrgCapabilityDefaultGrantPayload { + clientMutationId?: string | null; + /** The `OrgCapabilityDefaultGrant` that was updated by this mutation. */ + orgCapabilityDefaultGrant?: OrgCapabilityDefaultGrant | null; + orgCapabilityDefaultGrantEdge?: OrgCapabilityDefaultGrantEdge | null; +} export interface UpdateOrgChartEdgePayload { clientMutationId?: string | null; /** The `OrgChartEdge` that was updated by this mutation. */ @@ -3543,30 +3160,6 @@ export interface UpdateOrgOwnerGrantPayload { orgOwnerGrant?: OrgOwnerGrant | null; orgOwnerGrantEdge?: OrgOwnerGrantEdge | null; } -export interface UpdateOrgPermissionPayload { - clientMutationId?: string | null; - /** The `OrgPermission` that was updated by this mutation. */ - orgPermission?: OrgPermission | null; - orgPermissionEdge?: OrgPermissionEdge | null; -} -export interface UpdateOrgPermissionDefaultPayload { - clientMutationId?: string | null; - /** The `OrgPermissionDefault` that was updated by this mutation. */ - orgPermissionDefault?: OrgPermissionDefault | null; - orgPermissionDefaultEdge?: OrgPermissionDefaultEdge | null; -} -export interface UpdateOrgPermissionDefaultGrantPayload { - clientMutationId?: string | null; - /** The `OrgPermissionDefaultGrant` that was updated by this mutation. */ - orgPermissionDefaultGrant?: OrgPermissionDefaultGrant | null; - orgPermissionDefaultGrantEdge?: OrgPermissionDefaultGrantEdge | null; -} -export interface UpdateOrgPermissionDefaultPermissionPayload { - clientMutationId?: string | null; - /** The `OrgPermissionDefaultPermission` that was updated by this mutation. */ - orgPermissionDefaultPermission?: OrgPermissionDefaultPermission | null; - orgPermissionDefaultPermissionEdge?: OrgPermissionDefaultPermissionEdge | null; -} /** Information about a database table */ export interface MetaTable { constraints: MetaConstraints; @@ -3611,6 +3204,18 @@ export interface PageInfo { /** When paginating backwards, the cursor to continue. */ startCursor?: string | null; } +/** A `AppCapabilityDefaultCapability` edge in the connection. */ +export interface AppCapabilityDefaultCapabilityEdge { + cursor?: string | null; + /** The `AppCapabilityDefaultCapability` at the end of the edge. */ + node?: AppCapabilityDefaultCapability | null; +} +/** A `AppCapabilityDefaultGrant` edge in the connection. */ +export interface AppCapabilityDefaultGrantEdge { + cursor?: string | null; + /** The `AppCapabilityDefaultGrant` at the end of the edge. */ + node?: AppCapabilityDefaultGrant | null; +} /** A `AppClaimedInvite` edge in the connection. */ export interface AppClaimedInviteEdge { cursor?: string | null; @@ -3647,30 +3252,6 @@ export interface AppOwnerGrantEdge { /** The `AppOwnerGrant` at the end of the edge. */ node?: AppOwnerGrant | null; } -/** A `AppPermissionDefaultGrant` edge in the connection. */ -export interface AppPermissionDefaultGrantEdge { - cursor?: string | null; - /** The `AppPermissionDefaultGrant` at the end of the edge. */ - node?: AppPermissionDefaultGrant | null; -} -/** A `AppPermissionDefaultPermission` edge in the connection. */ -export interface AppPermissionDefaultPermissionEdge { - cursor?: string | null; - /** The `AppPermissionDefaultPermission` at the end of the edge. */ - node?: AppPermissionDefaultPermission | null; -} -/** A `AppPermissionDefault` edge in the connection. */ -export interface AppPermissionDefaultEdge { - cursor?: string | null; - /** The `AppPermissionDefault` at the end of the edge. */ - node?: AppPermissionDefault | null; -} -/** A `AppPermission` edge in the connection. */ -export interface AppPermissionEdge { - cursor?: string | null; - /** The `AppPermission` at the end of the edge. */ - node?: AppPermission | null; -} /** A `MembershipType` edge in the connection. */ export interface MembershipTypeEdge { cursor?: string | null; @@ -3683,6 +3264,18 @@ export interface OrgAdminGrantEdge { /** The `OrgAdminGrant` at the end of the edge. */ node?: OrgAdminGrant | null; } +/** A `OrgCapabilityDefaultCapability` edge in the connection. */ +export interface OrgCapabilityDefaultCapabilityEdge { + cursor?: string | null; + /** The `OrgCapabilityDefaultCapability` at the end of the edge. */ + node?: OrgCapabilityDefaultCapability | null; +} +/** A `OrgCapabilityDefaultGrant` edge in the connection. */ +export interface OrgCapabilityDefaultGrantEdge { + cursor?: string | null; + /** The `OrgCapabilityDefaultGrant` at the end of the edge. */ + node?: OrgCapabilityDefaultGrant | null; +} /** A `OrgChartEdgeGrant` edge in the connection. */ export interface OrgChartEdgeGrantEdge { cursor?: string | null; @@ -3761,30 +3354,6 @@ export interface OrgOwnerGrantEdge { /** The `OrgOwnerGrant` at the end of the edge. */ node?: OrgOwnerGrant | null; } -/** A `OrgPermissionDefaultGrant` edge in the connection. */ -export interface OrgPermissionDefaultGrantEdge { - cursor?: string | null; - /** The `OrgPermissionDefaultGrant` at the end of the edge. */ - node?: OrgPermissionDefaultGrant | null; -} -/** A `OrgPermissionDefaultPermission` edge in the connection. */ -export interface OrgPermissionDefaultPermissionEdge { - cursor?: string | null; - /** The `OrgPermissionDefaultPermission` at the end of the edge. */ - node?: OrgPermissionDefaultPermission | 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 `OrgPermission` edge in the connection. */ -export interface OrgPermissionEdge { - cursor?: string | null; - /** The `OrgPermission` at the end of the edge. */ - node?: OrgPermission | null; -} /** Table constraints */ export interface MetaConstraints { foreignKey: MetaForeignKeyConstraint[]; diff --git a/sdk/constructive-react/src/admin/types.ts b/sdk/constructive-react/src/admin/types.ts index 74c91661c5..093166acc4 100644 --- a/sdk/constructive-react/src/admin/types.ts +++ b/sdk/constructive-react/src/admin/types.ts @@ -13,6 +13,20 @@ export interface AppAdminGrant { isGrant: boolean | null; updatedAt: string | null; } +export interface AppCapabilityDefaultCapability { + capabilityId: string | null; + createdAt: string | null; + id: string | null; + updatedAt: string | null; +} +export interface AppCapabilityDefaultGrant { + capabilityId: string | null; + createdAt: string | null; + grantorId: string | null; + id: string | null; + isGrant: boolean | null; + updatedAt: string | null; +} export interface AppClaimedInvite { createdAt: string | null; data: unknown | null; @@ -23,11 +37,11 @@ export interface AppClaimedInvite { } export interface AppGrant { actorId: string | null; + capabilities: string | null; createdAt: string | null; grantorId: string | null; id: string | null; isGrant: boolean | null; - permissions: string | null; updatedAt: string | null; } export interface AppInvite { @@ -49,6 +63,7 @@ export interface AppInvite { } export interface AppMembership { actorId: string | null; + capabilities: string | null; createdAt: string | null; createdBy: string | null; granted: string | null; @@ -60,7 +75,6 @@ export interface AppMembership { isDisabled: boolean | null; isOwner: boolean | null; isVerified: boolean | null; - permissions: string | null; profileId: string | null; updatedAt: string | null; updatedBy: string | null; @@ -82,41 +96,32 @@ export interface AppOwnerGrant { isGrant: boolean | null; updatedAt: string | null; } -export interface AppPermission { - bitnum: number | null; - bitstr: string | null; +export interface MembershipType { description: string | null; - id: string | null; + hasUsersTableEntry: boolean | null; + id: number | null; name: string | null; + parentMembershipType: number | null; + scope: string | null; } -export interface AppPermissionDefault { - id: string | null; - permissions: string | null; -} -export interface AppPermissionDefaultGrant { +export interface OrgAdminGrant { + actorId: string | null; createdAt: string | null; + entityId: string | null; grantorId: string | null; id: string | null; isGrant: boolean | null; - permissionId: string | null; updatedAt: string | null; } -export interface AppPermissionDefaultPermission { +export interface OrgCapabilityDefaultCapability { + capabilityId: string | null; createdAt: string | null; + entityId: string | null; id: string | null; - permissionId: string | null; updatedAt: string | null; } -export interface MembershipType { - description: string | null; - hasUsersTableEntry: boolean | null; - id: number | null; - name: string | null; - parentMembershipType: number | null; - scope: string | null; -} -export interface OrgAdminGrant { - actorId: string | null; +export interface OrgCapabilityDefaultGrant { + capabilityId: string | null; createdAt: string | null; entityId: string | null; grantorId: string | null; @@ -164,12 +169,12 @@ export interface OrgGetSubordinatesRecord { } export interface OrgGrant { actorId: string | null; + capabilities: string | null; createdAt: string | null; entityId: string | null; grantorId: string | null; id: string | null; isGrant: boolean | null; - permissions: string | null; updatedAt: string | null; } export interface OrgInvite { @@ -213,6 +218,7 @@ export interface OrgMemberProfile { } export interface OrgMembership { actorId: string | null; + capabilities: string | null; createdAt: string | null; createdBy: string | null; entityId: string | null; @@ -226,7 +232,6 @@ export interface OrgMembership { isExternal: boolean | null; isOwner: boolean | null; isReadOnly: boolean | null; - permissions: string | null; profileId: string | null; updatedAt: string | null; updatedBy: string | null; @@ -265,34 +270,6 @@ export interface OrgOwnerGrant { isGrant: boolean | null; updatedAt: string | null; } -export interface OrgPermission { - bitnum: number | null; - bitstr: string | null; - description: string | null; - id: string | null; - name: string | null; -} -export interface OrgPermissionDefault { - entityId: string | null; - id: string | null; - permissions: string | null; -} -export interface OrgPermissionDefaultGrant { - createdAt: string | null; - entityId: string | null; - grantorId: string | null; - id: string | null; - isGrant: boolean | null; - permissionId: string | null; - updatedAt: string | null; -} -export interface OrgPermissionDefaultPermission { - createdAt: string | null; - entityId: string | null; - id: string | null; - permissionId: string | null; - updatedAt: string | null; -} export interface StringFilter { isNull?: boolean; equalTo?: string; diff --git a/sdk/constructive-react/src/api/README.md b/sdk/constructive-react/src/api/README.md index 967d2f751b..495429af13 100644 --- a/sdk/constructive-react/src/api/README.md +++ b/sdk/constructive-react/src/api/README.md @@ -8,7 +8,7 @@ ## Overview -- **Tables:** 80 +- **Tables:** 86 - **Custom queries:** 6 - **Custom mutations:** 11 diff --git a/sdk/constructive-react/src/api/hooks/README.md b/sdk/constructive-react/src/api/hooks/README.md index 4302e4764b..ca0974f9a5 100644 --- a/sdk/constructive-react/src/api/hooks/README.md +++ b/sdk/constructive-react/src/api/hooks/README.md @@ -32,6 +32,11 @@ function App() { | Hook | Type | Description | |------|------|-------------| +| `useApisQuery` | Query | API surfaces exposed by this scope; publication makes a surface bindable from other scopes | +| `useApiQuery` | Query | API surfaces exposed by this scope; publication makes a surface bindable from other scopes | +| `useCreateApiMutation` | Mutation | API surfaces exposed by this scope; publication makes a surface bindable from other scopes | +| `useUpdateApiMutation` | Mutation | API surfaces exposed by this scope; publication makes a surface bindable from other scopes | +| `useDeleteApiMutation` | Mutation | API surfaces exposed by this scope; publication makes a surface bindable from other scopes | | `useApiSchemasQuery` | Query | Join table linking API surfaces to the metaschema schemas they expose | | `useApiSchemaQuery` | Query | Join table linking API surfaces to the metaschema schemas they expose | | `useCreateApiSchemaMutation` | Mutation | Join table linking API surfaces to the metaschema schemas they expose | @@ -42,11 +47,6 @@ function App() { | `useCreateApiSettingMutation` | Mutation | Per-API feature flag overrides; NULL columns inherit from database_settings | | `useUpdateApiSettingMutation` | Mutation | Per-API feature flag overrides; NULL columns inherit from database_settings | | `useDeleteApiSettingMutation` | Mutation | Per-API feature flag overrides; NULL columns inherit from database_settings | -| `useApisesQuery` | Query | API surfaces exposed by this scope; publication makes a surface bindable from other scopes | -| `useApisQuery` | Query | API surfaces exposed by this scope; publication makes a surface bindable from other scopes | -| `useCreateApisMutation` | Mutation | API surfaces exposed by this scope; publication makes a surface bindable from other scopes | -| `useUpdateApisMutation` | Mutation | API surfaces exposed by this scope; publication makes a surface bindable from other scopes | -| `useDeleteApisMutation` | Mutation | API surfaces exposed by this scope; publication makes a surface bindable from other scopes | | `useAstMigrationsQuery` | Query | List all astMigrations | | `useAstMigrationQuery` | Query | Get one astMigration | | `useCreateAstMigrationMutation` | Mutation | Create a astMigration | @@ -112,6 +112,21 @@ function App() { | `useCreateDomainVerificationMutation` | Mutation | Ownership verification challenges issued for a domain | | `useUpdateDomainVerificationMutation` | Mutation | Ownership verification challenges issued for a domain | | `useDeleteDomainVerificationMutation` | Mutation | Ownership verification challenges issued for a domain | +| `useEmailIdentitiesQuery` | Query | Outbound sender identity: the from/reply-to/support addresses a tenant sends as, and the provider account the mail leaves through | +| `useEmailIdentityQuery` | Query | Outbound sender identity: the from/reply-to/support addresses a tenant sends as, and the provider account the mail leaves through | +| `useCreateEmailIdentityMutation` | Mutation | Outbound sender identity: the from/reply-to/support addresses a tenant sends as, and the provider account the mail leaves through | +| `useUpdateEmailIdentityMutation` | Mutation | Outbound sender identity: the from/reply-to/support addresses a tenant sends as, and the provider account the mail leaves through | +| `useDeleteEmailIdentityMutation` | Mutation | Outbound sender identity: the from/reply-to/support addresses a tenant sends as, and the provider account the mail leaves through | +| `useEmailProviderAccountsQuery` | Query | A tenant's configured account at an email provider: provider slug, endpoint coordinates, and the NAME of the secret holding its credentials (never the credential itself) | +| `useEmailProviderAccountQuery` | Query | A tenant's configured account at an email provider: provider slug, endpoint coordinates, and the NAME of the secret holding its credentials (never the credential itself) | +| `useCreateEmailProviderAccountMutation` | Mutation | A tenant's configured account at an email provider: provider slug, endpoint coordinates, and the NAME of the secret holding its credentials (never the credential itself) | +| `useUpdateEmailProviderAccountMutation` | Mutation | A tenant's configured account at an email provider: provider slug, endpoint coordinates, and the NAME of the secret holding its credentials (never the credential itself) | +| `useDeleteEmailProviderAccountMutation` | Mutation | A tenant's configured account at an email provider: provider slug, endpoint coordinates, and the NAME of the secret holding its credentials (never the credential itself) | +| `useEmailSiteIdentitiesQuery` | Query | Binds a site to the identity it sends as. Unique on site_id: one identity per site, but many sites may share an identity. | +| `useEmailSiteIdentityQuery` | Query | Binds a site to the identity it sends as. Unique on site_id: one identity per site, but many sites may share an identity. | +| `useCreateEmailSiteIdentityMutation` | Mutation | Binds a site to the identity it sends as. Unique on site_id: one identity per site, but many sites may share an identity. | +| `useUpdateEmailSiteIdentityMutation` | Mutation | Binds a site to the identity it sends as. Unique on site_id: one identity per site, but many sites may share an identity. | +| `useDeleteEmailSiteIdentityMutation` | Mutation | Binds a site to the identity it sends as. Unique on site_id: one identity per site, but many sites may share an identity. | | `useEmbeddingChunksQuery` | Query | List all embeddingChunks | | `useEmbeddingChunkQuery` | Query | Get one embeddingChunk | | `useCreateEmbeddingChunkMutation` | Mutation | Create a embeddingChunk | @@ -192,6 +207,11 @@ function App() { | `useCreatePartitionMutation` | Mutation | Create a partition | | `useUpdatePartitionMutation` | Mutation | Update a partition | | `useDeletePartitionMutation` | Mutation | Delete a partition | +| `usePlatformApisQuery` | Query | API surfaces exposed by this scope; publication makes a surface bindable from other scopes | +| `usePlatformApiQuery` | Query | API surfaces exposed by this scope; publication makes a surface bindable from other scopes | +| `useCreatePlatformApiMutation` | Mutation | API surfaces exposed by this scope; publication makes a surface bindable from other scopes | +| `useUpdatePlatformApiMutation` | Mutation | API surfaces exposed by this scope; publication makes a surface bindable from other scopes | +| `useDeletePlatformApiMutation` | Mutation | API surfaces exposed by this scope; publication makes a surface bindable from other scopes | | `usePlatformApiSchemasQuery` | Query | Join table linking API surfaces to the metaschema schemas they expose | | `usePlatformApiSchemaQuery` | Query | Join table linking API surfaces to the metaschema schemas they expose | | `useCreatePlatformApiSchemaMutation` | Mutation | Join table linking API surfaces to the metaschema schemas they expose | @@ -202,11 +222,6 @@ function App() { | `useCreatePlatformApiSettingMutation` | Mutation | Per-API feature flag overrides; NULL columns inherit from database_settings | | `useUpdatePlatformApiSettingMutation` | Mutation | Per-API feature flag overrides; NULL columns inherit from database_settings | | `useDeletePlatformApiSettingMutation` | Mutation | Per-API feature flag overrides; NULL columns inherit from database_settings | -| `usePlatformApisesQuery` | Query | API surfaces exposed by this scope; publication makes a surface bindable from other scopes | -| `usePlatformApisQuery` | Query | API surfaces exposed by this scope; publication makes a surface bindable from other scopes | -| `useCreatePlatformApisMutation` | Mutation | API surfaces exposed by this scope; publication makes a surface bindable from other scopes | -| `useUpdatePlatformApisMutation` | Mutation | API surfaces exposed by this scope; publication makes a surface bindable from other scopes | -| `useDeletePlatformApisMutation` | Mutation | API surfaces exposed by this scope; publication makes a surface bindable from other scopes | | `usePlatformCorsSettingsQuery` | Query | Scope-wide and per-API CORS origin configuration; NULL api_id means scope-wide default | | `usePlatformCorsSettingQuery` | Query | Scope-wide and per-API CORS origin configuration; NULL api_id means scope-wide default | | `useCreatePlatformCorsSettingMutation` | Mutation | Scope-wide and per-API CORS origin configuration; NULL api_id means scope-wide default | @@ -227,6 +242,21 @@ function App() { | `useCreatePlatformDomainVerificationMutation` | Mutation | Ownership verification challenges issued for a domain | | `useUpdatePlatformDomainVerificationMutation` | Mutation | Ownership verification challenges issued for a domain | | `useDeletePlatformDomainVerificationMutation` | Mutation | Ownership verification challenges issued for a domain | +| `usePlatformEmailIdentitiesQuery` | Query | Outbound sender identity: the from/reply-to/support addresses a tenant sends as, and the provider account the mail leaves through | +| `usePlatformEmailIdentityQuery` | Query | Outbound sender identity: the from/reply-to/support addresses a tenant sends as, and the provider account the mail leaves through | +| `useCreatePlatformEmailIdentityMutation` | Mutation | Outbound sender identity: the from/reply-to/support addresses a tenant sends as, and the provider account the mail leaves through | +| `useUpdatePlatformEmailIdentityMutation` | Mutation | Outbound sender identity: the from/reply-to/support addresses a tenant sends as, and the provider account the mail leaves through | +| `useDeletePlatformEmailIdentityMutation` | Mutation | Outbound sender identity: the from/reply-to/support addresses a tenant sends as, and the provider account the mail leaves through | +| `usePlatformEmailProviderAccountsQuery` | Query | A tenant's configured account at an email provider: provider slug, endpoint coordinates, and the NAME of the secret holding its credentials (never the credential itself) | +| `usePlatformEmailProviderAccountQuery` | Query | A tenant's configured account at an email provider: provider slug, endpoint coordinates, and the NAME of the secret holding its credentials (never the credential itself) | +| `useCreatePlatformEmailProviderAccountMutation` | Mutation | A tenant's configured account at an email provider: provider slug, endpoint coordinates, and the NAME of the secret holding its credentials (never the credential itself) | +| `useUpdatePlatformEmailProviderAccountMutation` | Mutation | A tenant's configured account at an email provider: provider slug, endpoint coordinates, and the NAME of the secret holding its credentials (never the credential itself) | +| `useDeletePlatformEmailProviderAccountMutation` | Mutation | A tenant's configured account at an email provider: provider slug, endpoint coordinates, and the NAME of the secret holding its credentials (never the credential itself) | +| `usePlatformEmailSiteIdentitiesQuery` | Query | Binds a site to the identity it sends as. Unique on site_id: one identity per site, but many sites may share an identity. | +| `usePlatformEmailSiteIdentityQuery` | Query | Binds a site to the identity it sends as. Unique on site_id: one identity per site, but many sites may share an identity. | +| `useCreatePlatformEmailSiteIdentityMutation` | Mutation | Binds a site to the identity it sends as. Unique on site_id: one identity per site, but many sites may share an identity. | +| `useUpdatePlatformEmailSiteIdentityMutation` | Mutation | Binds a site to the identity it sends as. Unique on site_id: one identity per site, but many sites may share an identity. | +| `useDeletePlatformEmailSiteIdentityMutation` | Mutation | Binds a site to the identity it sends as. Unique on site_id: one identity per site, but many sites may share an identity. | | `usePlatformManagedDomainsQuery` | Query | Platform-operated hostnames whose DNS and certificate lifecycle the platform drives | | `usePlatformManagedDomainQuery` | Query | Platform-operated hostnames whose DNS and certificate lifecycle the platform drives | | `useCreatePlatformManagedDomainMutation` | Mutation | Platform-operated hostnames whose DNS and certificate lifecycle the platform drives | @@ -461,6 +491,27 @@ Example usage: ## Table Hooks +### Api + +```typescript +// List all apis +const { data, isLoading } = useApisQuery({ + selection: { fields: { anonRole: true, config: true, createdAt: true, databaseId: true, dbname: true, id: true, isPublished: true, name: true, roleName: true, updatedAt: true } }, +}); + +// Get one api +const { data: item } = useApiQuery({ + id: '', + selection: { fields: { anonRole: true, config: true, createdAt: true, databaseId: true, dbname: true, id: true, isPublished: true, name: true, roleName: true, updatedAt: true } }, +}); + +// Create a api +const { mutate: create } = useCreateApiMutation({ + selection: { fields: { id: true } }, +}); +create({ anonRole: '', config: '', databaseId: '', dbname: '', isPublished: '', name: '', roleName: '' }); +``` + ### ApiSchema ```typescript @@ -503,27 +554,6 @@ const { mutate: create } = useCreateApiSettingMutation({ create({ apiId: '', databaseId: '', enableAggregates: '', enableBulk: '', enableConnectionFilter: '', enableDirectUploads: '', enableI18N: '', enableLlm: '', enableLtree: '', enableManyToMany: '', enablePostgis: '', enablePresignedUploads: '', enableRealtime: '', enableSearch: '', options: '', statementTimeoutMs: '' }); ``` -### Apis - -```typescript -// List all apises -const { data, isLoading } = useApisesQuery({ - selection: { fields: { anonRole: true, config: true, createdAt: true, databaseId: true, dbname: true, id: true, isPublished: true, name: true, roleName: true, updatedAt: true } }, -}); - -// Get one apis -const { data: item } = useApisQuery({ - id: '', - selection: { fields: { anonRole: true, config: true, createdAt: true, databaseId: true, dbname: true, id: true, isPublished: true, name: true, roleName: true, updatedAt: true } }, -}); - -// Create a apis -const { mutate: create } = useCreateApisMutation({ - selection: { fields: { id: true } }, -}); -create({ anonRole: '', config: '', databaseId: '', dbname: '', isPublished: '', name: '', roleName: '' }); -``` - ### AstMigration ```typescript @@ -797,6 +827,69 @@ const { mutate: create } = useCreateDomainVerificationMutation({ create({ attempts: '', databaseId: '', domainId: '', error: '', expiresAt: '', lastCheckedAt: '', managedDomainId: '', method: '', recordName: '', recordType: '', recordValue: '', status: '', verifiedAt: '' }); ``` +### EmailIdentity + +```typescript +// List all emailIdentities +const { data, isLoading } = useEmailIdentitiesQuery({ + selection: { fields: { createdAt: true, databaseId: true, fromAddress: true, fromName: true, id: true, isActive: true, isDefault: true, name: true, providerAccountId: true, replyToAddress: true, supportAddress: true, transportMode: true, updatedAt: true } }, +}); + +// Get one emailIdentity +const { data: item } = useEmailIdentityQuery({ + id: '', + selection: { fields: { createdAt: true, databaseId: true, fromAddress: true, fromName: true, id: true, isActive: true, isDefault: true, name: true, providerAccountId: true, replyToAddress: true, supportAddress: true, transportMode: true, updatedAt: true } }, +}); + +// Create a emailIdentity +const { mutate: create } = useCreateEmailIdentityMutation({ + selection: { fields: { id: true } }, +}); +create({ databaseId: '', fromAddress: '', fromName: '', isActive: '', isDefault: '', name: '', providerAccountId: '', replyToAddress: '', supportAddress: '', transportMode: '' }); +``` + +### EmailProviderAccount + +```typescript +// List all emailProviderAccounts +const { data, isLoading } = useEmailProviderAccountsQuery({ + selection: { fields: { apiBaseUrl: true, createdAt: true, credentialsSecretName: true, databaseId: true, id: true, isActive: true, name: true, provider: true, providerAccountName: true, region: true, smtpHost: true, smtpPort: true, smtpSecure: true, smtpUser: true, updatedAt: true, webhookSigningSecretName: true } }, +}); + +// Get one emailProviderAccount +const { data: item } = useEmailProviderAccountQuery({ + id: '', + selection: { fields: { apiBaseUrl: true, createdAt: true, credentialsSecretName: true, databaseId: true, id: true, isActive: true, name: true, provider: true, providerAccountName: true, region: true, smtpHost: true, smtpPort: true, smtpSecure: true, smtpUser: true, updatedAt: true, webhookSigningSecretName: true } }, +}); + +// Create a emailProviderAccount +const { mutate: create } = useCreateEmailProviderAccountMutation({ + selection: { fields: { id: true } }, +}); +create({ apiBaseUrl: '', credentialsSecretName: '', databaseId: '', isActive: '', name: '', provider: '', providerAccountName: '', region: '', smtpHost: '', smtpPort: '', smtpSecure: '', smtpUser: '', webhookSigningSecretName: '' }); +``` + +### EmailSiteIdentity + +```typescript +// List all emailSiteIdentities +const { data, isLoading } = useEmailSiteIdentitiesQuery({ + selection: { fields: { createdAt: true, databaseId: true, emailIdentityId: true, id: true, siteId: true, updatedAt: true } }, +}); + +// Get one emailSiteIdentity +const { data: item } = useEmailSiteIdentityQuery({ + id: '', + selection: { fields: { createdAt: true, databaseId: true, emailIdentityId: true, id: true, siteId: true, updatedAt: true } }, +}); + +// Create a emailSiteIdentity +const { mutate: create } = useCreateEmailSiteIdentityMutation({ + selection: { fields: { id: true } }, +}); +create({ databaseId: '', emailIdentityId: '', siteId: '' }); +``` + ### EmbeddingChunk ```typescript @@ -1133,6 +1226,27 @@ const { mutate: create } = useCreatePartitionMutation({ create({ databaseId: '', interval: '', isParented: '', namingPattern: '', partitionKeyId: '', premake: '', retention: '', retentionKeepTable: '', strategy: '', tableId: '' }); ``` +### PlatformApi + +```typescript +// List all platformApis +const { data, isLoading } = usePlatformApisQuery({ + selection: { fields: { anonRole: true, config: true, createdAt: true, dbname: true, id: true, isPublished: true, name: true, roleName: true, updatedAt: true } }, +}); + +// Get one platformApi +const { data: item } = usePlatformApiQuery({ + id: '', + selection: { fields: { anonRole: true, config: true, createdAt: true, dbname: true, id: true, isPublished: true, name: true, roleName: true, updatedAt: true } }, +}); + +// Create a platformApi +const { mutate: create } = useCreatePlatformApiMutation({ + selection: { fields: { id: true } }, +}); +create({ anonRole: '', config: '', dbname: '', isPublished: '', name: '', roleName: '' }); +``` + ### PlatformApiSchema ```typescript @@ -1175,27 +1289,6 @@ const { mutate: create } = useCreatePlatformApiSettingMutation({ create({ apiId: '', enableAggregates: '', enableBulk: '', enableConnectionFilter: '', enableDirectUploads: '', enableI18N: '', enableLlm: '', enableLtree: '', enableManyToMany: '', enablePostgis: '', enablePresignedUploads: '', enableRealtime: '', enableSearch: '', options: '', statementTimeoutMs: '' }); ``` -### PlatformApis - -```typescript -// List all platformApises -const { data, isLoading } = usePlatformApisesQuery({ - selection: { fields: { anonRole: true, config: true, createdAt: true, dbname: true, id: true, isPublished: true, name: true, roleName: true, updatedAt: true } }, -}); - -// Get one platformApis -const { data: item } = usePlatformApisQuery({ - id: '', - selection: { fields: { anonRole: true, config: true, createdAt: true, dbname: true, id: true, isPublished: true, name: true, roleName: true, updatedAt: true } }, -}); - -// Create a platformApis -const { mutate: create } = useCreatePlatformApisMutation({ - selection: { fields: { id: true } }, -}); -create({ anonRole: '', config: '', dbname: '', isPublished: '', name: '', roleName: '' }); -``` - ### PlatformCorsSetting ```typescript @@ -1280,6 +1373,69 @@ const { mutate: create } = useCreatePlatformDomainVerificationMutation({ create({ attempts: '', domainId: '', error: '', expiresAt: '', lastCheckedAt: '', managedDomainId: '', method: '', recordName: '', recordType: '', recordValue: '', status: '', verifiedAt: '' }); ``` +### PlatformEmailIdentity + +```typescript +// List all platformEmailIdentities +const { data, isLoading } = usePlatformEmailIdentitiesQuery({ + selection: { fields: { createdAt: true, fromAddress: true, fromName: true, id: true, isActive: true, isDefault: true, name: true, providerAccountId: true, replyToAddress: true, supportAddress: true, transportMode: true, updatedAt: true } }, +}); + +// Get one platformEmailIdentity +const { data: item } = usePlatformEmailIdentityQuery({ + id: '', + selection: { fields: { createdAt: true, fromAddress: true, fromName: true, id: true, isActive: true, isDefault: true, name: true, providerAccountId: true, replyToAddress: true, supportAddress: true, transportMode: true, updatedAt: true } }, +}); + +// Create a platformEmailIdentity +const { mutate: create } = useCreatePlatformEmailIdentityMutation({ + selection: { fields: { id: true } }, +}); +create({ fromAddress: '', fromName: '', isActive: '', isDefault: '', name: '', providerAccountId: '', replyToAddress: '', supportAddress: '', transportMode: '' }); +``` + +### PlatformEmailProviderAccount + +```typescript +// List all platformEmailProviderAccounts +const { data, isLoading } = usePlatformEmailProviderAccountsQuery({ + selection: { fields: { apiBaseUrl: true, createdAt: true, credentialsSecretName: true, id: true, isActive: true, name: true, provider: true, providerAccountName: true, region: true, smtpHost: true, smtpPort: true, smtpSecure: true, smtpUser: true, updatedAt: true, webhookSigningSecretName: true } }, +}); + +// Get one platformEmailProviderAccount +const { data: item } = usePlatformEmailProviderAccountQuery({ + id: '', + selection: { fields: { apiBaseUrl: true, createdAt: true, credentialsSecretName: true, id: true, isActive: true, name: true, provider: true, providerAccountName: true, region: true, smtpHost: true, smtpPort: true, smtpSecure: true, smtpUser: true, updatedAt: true, webhookSigningSecretName: true } }, +}); + +// Create a platformEmailProviderAccount +const { mutate: create } = useCreatePlatformEmailProviderAccountMutation({ + selection: { fields: { id: true } }, +}); +create({ apiBaseUrl: '', credentialsSecretName: '', isActive: '', name: '', provider: '', providerAccountName: '', region: '', smtpHost: '', smtpPort: '', smtpSecure: '', smtpUser: '', webhookSigningSecretName: '' }); +``` + +### PlatformEmailSiteIdentity + +```typescript +// List all platformEmailSiteIdentities +const { data, isLoading } = usePlatformEmailSiteIdentitiesQuery({ + selection: { fields: { createdAt: true, emailIdentityId: true, id: true, siteId: true, updatedAt: true } }, +}); + +// Get one platformEmailSiteIdentity +const { data: item } = usePlatformEmailSiteIdentityQuery({ + id: '', + selection: { fields: { createdAt: true, emailIdentityId: true, id: true, siteId: true, updatedAt: true } }, +}); + +// Create a platformEmailSiteIdentity +const { mutate: create } = useCreatePlatformEmailSiteIdentityMutation({ + selection: { fields: { id: true } }, +}); +create({ emailIdentityId: '', siteId: '' }); +``` + ### PlatformManagedDomain ```typescript diff --git a/sdk/constructive-react/src/api/hooks/index.ts b/sdk/constructive-react/src/api/hooks/index.ts index 256a08f646..292c6a2ae9 100644 --- a/sdk/constructive-react/src/api/hooks/index.ts +++ b/sdk/constructive-react/src/api/hooks/index.ts @@ -2,7 +2,7 @@ * GraphQL SDK * @generated by @constructive-io/graphql-codegen * - * Tables: ApiSchema, ApiSetting, Apis, AstMigration, CheckConstraint, CompositeType, CorsSetting, Database, DatabaseSetting, DatabaseTransfer, DefaultPrivilege, Derive, Domain, DomainEvent, DomainType, DomainVerification, EmbeddingChunk, Enum, ExclusionConstraint, FieldBehavior, Field, ForeignKeyConstraintBehavior, ForeignKeyConstraint, FullTextSearch, Function, HostnameBinding, HttpRoute, Index, ManagedDomain, NodeTypeRegistry, Page, Partition, PlatformApiSchema, PlatformApiSetting, PlatformApis, PlatformCorsSetting, PlatformDomain, PlatformDomainEvent, PlatformDomainVerification, PlatformManagedDomain, PlatformPage, PlatformSiteAppLink, PlatformSite, PlatformSiteDeepLink, PlatformSiteErrorPage, PlatformSiteMetadatum, PlatformSiteModule, PlatformSiteTheme, PlatformSiteWebConfig, Policy, PrimaryKeyConstraint, PubkeySetting, RlsSetting, RouteBinding, Route, Schema, SchemaGrant, SiteAppLink, Site, SiteDeepLink, SiteErrorPage, SiteMetadatum, SiteModule, SiteTheme, SiteWebConfig, SpatialRelation, SqlAction, TableBehavior, Table, TableGrant, Trigger, TriggerFunction, UniqueConstraintBehavior, UniqueConstraint, ViewBehavior, View, ViewGrant, ViewRule, ViewTable, WebauthnSetting + * Tables: Api, ApiSchema, ApiSetting, AstMigration, CheckConstraint, CompositeType, CorsSetting, Database, DatabaseSetting, DatabaseTransfer, DefaultPrivilege, Derive, Domain, DomainEvent, DomainType, DomainVerification, EmailIdentity, EmailProviderAccount, EmailSiteIdentity, EmbeddingChunk, Enum, ExclusionConstraint, FieldBehavior, Field, ForeignKeyConstraintBehavior, ForeignKeyConstraint, FullTextSearch, Function, HostnameBinding, HttpRoute, Index, ManagedDomain, NodeTypeRegistry, Page, Partition, PlatformApi, PlatformApiSchema, PlatformApiSetting, PlatformCorsSetting, PlatformDomain, PlatformDomainEvent, PlatformDomainVerification, PlatformEmailIdentity, PlatformEmailProviderAccount, PlatformEmailSiteIdentity, PlatformManagedDomain, PlatformPage, PlatformSiteAppLink, PlatformSite, PlatformSiteDeepLink, PlatformSiteErrorPage, PlatformSiteMetadatum, PlatformSiteModule, PlatformSiteTheme, PlatformSiteWebConfig, Policy, PrimaryKeyConstraint, PubkeySetting, RlsSetting, RouteBinding, Route, Schema, SchemaGrant, SiteAppLink, Site, SiteDeepLink, SiteErrorPage, SiteMetadatum, SiteModule, SiteTheme, SiteWebConfig, SpatialRelation, SqlAction, TableBehavior, Table, TableGrant, Trigger, TriggerFunction, UniqueConstraintBehavior, UniqueConstraint, ViewBehavior, View, ViewGrant, ViewRule, ViewTable, WebauthnSetting * * Usage: * diff --git a/sdk/constructive-react/src/api/hooks/invalidation.ts b/sdk/constructive-react/src/api/hooks/invalidation.ts index affc385899..c83c3d5980 100644 --- a/sdk/constructive-react/src/api/hooks/invalidation.ts +++ b/sdk/constructive-react/src/api/hooks/invalidation.ts @@ -15,9 +15,9 @@ import type { QueryClient } from '@tanstack/react-query'; import { + apiKeys, apiSchemaKeys, apiSettingKeys, - apisKeys, astMigrationKeys, checkConstraintKeys, compositeTypeKeys, @@ -31,6 +31,9 @@ import { domainEventKeys, domainTypeKeys, domainVerificationKeys, + emailIdentityKeys, + emailProviderAccountKeys, + emailSiteIdentityKeys, embeddingChunkKeys, enumKeys, exclusionConstraintKeys, @@ -47,13 +50,16 @@ import { nodeTypeRegistryKeys, pageKeys, partitionKeys, + platformApiKeys, platformApiSchemaKeys, platformApiSettingKeys, - platformApisKeys, platformCorsSettingKeys, platformDomainKeys, platformDomainEventKeys, platformDomainVerificationKeys, + platformEmailIdentityKeys, + platformEmailProviderAccountKeys, + platformEmailSiteIdentityKeys, platformManagedDomainKeys, platformPageKeys, platformSiteAppLinkKeys, @@ -116,6 +122,20 @@ import { * ``` */ export const invalidate = { + /** Invalidate api queries */ api: { + /** Invalidate all api queries */ all: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: apiKeys.all, + }), + /** Invalidate api list queries */ lists: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: apiKeys.lists(), + }), + /** Invalidate a specific api */ detail: (queryClient: QueryClient, id: string | number) => + queryClient.invalidateQueries({ + queryKey: apiKeys.detail(id), + }), + }, /** Invalidate apiSchema queries */ apiSchema: { /** Invalidate all apiSchema queries */ all: (queryClient: QueryClient) => queryClient.invalidateQueries({ @@ -150,20 +170,6 @@ export const invalidate = { queryKey: apiSettingKeys.detail(id), }), }, - /** Invalidate apis queries */ apis: { - /** Invalidate all apis queries */ all: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: apisKeys.all, - }), - /** Invalidate apis list queries */ lists: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: apisKeys.lists(), - }), - /** Invalidate a specific apis */ detail: (queryClient: QueryClient, id: string | number) => - queryClient.invalidateQueries({ - queryKey: apisKeys.detail(id), - }), - }, /** Invalidate astMigration queries */ astMigration: { /** Invalidate all astMigration queries */ all: (queryClient: QueryClient) => queryClient.invalidateQueries({ @@ -376,6 +382,57 @@ export const invalidate = { queryKey: domainVerificationKeys.detail(id), }), }, + /** Invalidate emailIdentity queries */ emailIdentity: { + /** Invalidate all emailIdentity queries */ all: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: emailIdentityKeys.all, + }), + /** Invalidate emailIdentity list queries */ lists: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: emailIdentityKeys.lists(), + }), + /** Invalidate a specific emailIdentity */ detail: ( + queryClient: QueryClient, + id: string | number + ) => + queryClient.invalidateQueries({ + queryKey: emailIdentityKeys.detail(id), + }), + }, + /** Invalidate emailProviderAccount queries */ emailProviderAccount: { + /** Invalidate all emailProviderAccount queries */ all: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: emailProviderAccountKeys.all, + }), + /** Invalidate emailProviderAccount list queries */ lists: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: emailProviderAccountKeys.lists(), + }), + /** Invalidate a specific emailProviderAccount */ detail: ( + queryClient: QueryClient, + id: string | number + ) => + queryClient.invalidateQueries({ + queryKey: emailProviderAccountKeys.detail(id), + }), + }, + /** Invalidate emailSiteIdentity queries */ emailSiteIdentity: { + /** Invalidate all emailSiteIdentity queries */ all: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: emailSiteIdentityKeys.all, + }), + /** Invalidate emailSiteIdentity list queries */ lists: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: emailSiteIdentityKeys.lists(), + }), + /** Invalidate a specific emailSiteIdentity */ detail: ( + queryClient: QueryClient, + id: string | number + ) => + queryClient.invalidateQueries({ + queryKey: emailSiteIdentityKeys.detail(id), + }), + }, /** Invalidate embeddingChunk queries */ embeddingChunk: { /** Invalidate all embeddingChunk queries */ all: (queryClient: QueryClient) => queryClient.invalidateQueries({ @@ -633,6 +690,23 @@ export const invalidate = { queryKey: partitionKeys.detail(id), }), }, + /** Invalidate platformApi queries */ platformApi: { + /** Invalidate all platformApi queries */ all: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: platformApiKeys.all, + }), + /** Invalidate platformApi list queries */ lists: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: platformApiKeys.lists(), + }), + /** Invalidate a specific platformApi */ detail: ( + queryClient: QueryClient, + id: string | number + ) => + queryClient.invalidateQueries({ + queryKey: platformApiKeys.detail(id), + }), + }, /** Invalidate platformApiSchema queries */ platformApiSchema: { /** Invalidate all platformApiSchema queries */ all: (queryClient: QueryClient) => queryClient.invalidateQueries({ @@ -667,23 +741,6 @@ export const invalidate = { queryKey: platformApiSettingKeys.detail(id), }), }, - /** Invalidate platformApis queries */ platformApis: { - /** Invalidate all platformApis queries */ all: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: platformApisKeys.all, - }), - /** Invalidate platformApis list queries */ lists: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: platformApisKeys.lists(), - }), - /** Invalidate a specific platformApis */ detail: ( - queryClient: QueryClient, - id: string | number - ) => - queryClient.invalidateQueries({ - queryKey: platformApisKeys.detail(id), - }), - }, /** Invalidate platformCorsSetting queries */ platformCorsSetting: { /** Invalidate all platformCorsSetting queries */ all: (queryClient: QueryClient) => queryClient.invalidateQueries({ @@ -752,6 +809,57 @@ export const invalidate = { queryKey: platformDomainVerificationKeys.detail(id), }), }, + /** Invalidate platformEmailIdentity queries */ platformEmailIdentity: { + /** Invalidate all platformEmailIdentity queries */ all: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: platformEmailIdentityKeys.all, + }), + /** Invalidate platformEmailIdentity list queries */ lists: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: platformEmailIdentityKeys.lists(), + }), + /** Invalidate a specific platformEmailIdentity */ detail: ( + queryClient: QueryClient, + id: string | number + ) => + queryClient.invalidateQueries({ + queryKey: platformEmailIdentityKeys.detail(id), + }), + }, + /** Invalidate platformEmailProviderAccount queries */ platformEmailProviderAccount: { + /** Invalidate all platformEmailProviderAccount queries */ all: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: platformEmailProviderAccountKeys.all, + }), + /** Invalidate platformEmailProviderAccount list queries */ lists: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: platformEmailProviderAccountKeys.lists(), + }), + /** Invalidate a specific platformEmailProviderAccount */ detail: ( + queryClient: QueryClient, + id: string | number + ) => + queryClient.invalidateQueries({ + queryKey: platformEmailProviderAccountKeys.detail(id), + }), + }, + /** Invalidate platformEmailSiteIdentity queries */ platformEmailSiteIdentity: { + /** Invalidate all platformEmailSiteIdentity queries */ all: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: platformEmailSiteIdentityKeys.all, + }), + /** Invalidate platformEmailSiteIdentity list queries */ lists: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: platformEmailSiteIdentityKeys.lists(), + }), + /** Invalidate a specific platformEmailSiteIdentity */ detail: ( + queryClient: QueryClient, + id: string | number + ) => + queryClient.invalidateQueries({ + queryKey: platformEmailSiteIdentityKeys.detail(id), + }), + }, /** Invalidate platformManagedDomain queries */ platformManagedDomain: { /** Invalidate all platformManagedDomain queries */ all: (queryClient: QueryClient) => queryClient.invalidateQueries({ @@ -1438,6 +1546,11 @@ export const invalidate = { * instead of just invalidating (which would trigger a refetch). */ export const remove = { + /** Remove api from cache */ api: (queryClient: QueryClient, id: string | number) => { + queryClient.removeQueries({ + queryKey: apiKeys.detail(id), + }); + }, /** Remove apiSchema from cache */ apiSchema: (queryClient: QueryClient, id: string | number) => { queryClient.removeQueries({ queryKey: apiSchemaKeys.detail(id), @@ -1451,11 +1564,6 @@ export const remove = { queryKey: apiSettingKeys.detail(id), }); }, - /** Remove apis from cache */ apis: (queryClient: QueryClient, id: string | number) => { - queryClient.removeQueries({ - queryKey: apisKeys.detail(id), - }); - }, /** Remove astMigration from cache */ astMigration: ( queryClient: QueryClient, id: string | number @@ -1551,6 +1659,30 @@ export const remove = { queryKey: domainVerificationKeys.detail(id), }); }, + /** Remove emailIdentity from cache */ emailIdentity: ( + queryClient: QueryClient, + id: string | number + ) => { + queryClient.removeQueries({ + queryKey: emailIdentityKeys.detail(id), + }); + }, + /** Remove emailProviderAccount from cache */ emailProviderAccount: ( + queryClient: QueryClient, + id: string | number + ) => { + queryClient.removeQueries({ + queryKey: emailProviderAccountKeys.detail(id), + }); + }, + /** Remove emailSiteIdentity from cache */ emailSiteIdentity: ( + queryClient: QueryClient, + id: string | number + ) => { + queryClient.removeQueries({ + queryKey: emailSiteIdentityKeys.detail(id), + }); + }, /** Remove embeddingChunk from cache */ embeddingChunk: ( queryClient: QueryClient, id: string | number @@ -1658,28 +1790,28 @@ export const remove = { queryKey: partitionKeys.detail(id), }); }, - /** Remove platformApiSchema from cache */ platformApiSchema: ( + /** Remove platformApi from cache */ platformApi: ( queryClient: QueryClient, id: string | number ) => { queryClient.removeQueries({ - queryKey: platformApiSchemaKeys.detail(id), + queryKey: platformApiKeys.detail(id), }); }, - /** Remove platformApiSetting from cache */ platformApiSetting: ( + /** Remove platformApiSchema from cache */ platformApiSchema: ( queryClient: QueryClient, id: string | number ) => { queryClient.removeQueries({ - queryKey: platformApiSettingKeys.detail(id), + queryKey: platformApiSchemaKeys.detail(id), }); }, - /** Remove platformApis from cache */ platformApis: ( + /** Remove platformApiSetting from cache */ platformApiSetting: ( queryClient: QueryClient, id: string | number ) => { queryClient.removeQueries({ - queryKey: platformApisKeys.detail(id), + queryKey: platformApiSettingKeys.detail(id), }); }, /** Remove platformCorsSetting from cache */ platformCorsSetting: ( @@ -1714,6 +1846,30 @@ export const remove = { queryKey: platformDomainVerificationKeys.detail(id), }); }, + /** Remove platformEmailIdentity from cache */ platformEmailIdentity: ( + queryClient: QueryClient, + id: string | number + ) => { + queryClient.removeQueries({ + queryKey: platformEmailIdentityKeys.detail(id), + }); + }, + /** Remove platformEmailProviderAccount from cache */ platformEmailProviderAccount: ( + queryClient: QueryClient, + id: string | number + ) => { + queryClient.removeQueries({ + queryKey: platformEmailProviderAccountKeys.detail(id), + }); + }, + /** Remove platformEmailSiteIdentity from cache */ platformEmailSiteIdentity: ( + queryClient: QueryClient, + id: string | number + ) => { + queryClient.removeQueries({ + queryKey: platformEmailSiteIdentityKeys.detail(id), + }); + }, /** Remove platformManagedDomain from cache */ platformManagedDomain: ( queryClient: QueryClient, id: string | number diff --git a/sdk/constructive-react/src/api/hooks/mutation-keys.ts b/sdk/constructive-react/src/api/hooks/mutation-keys.ts index fe0df59a18..cd62e6de95 100644 --- a/sdk/constructive-react/src/api/hooks/mutation-keys.ts +++ b/sdk/constructive-react/src/api/hooks/mutation-keys.ts @@ -18,6 +18,14 @@ // Entity Mutation Keys // ============================================================================ +export const apiMutationKeys = { + /** All api mutation keys */ all: ['mutation', 'api'] as const, + /** Create api mutation key */ create: () => ['mutation', 'api', 'create'] as const, + /** Update api mutation key */ update: (id: string | number) => + ['mutation', 'api', 'update', id] as const, + /** Delete api mutation key */ delete: (id: string | number) => + ['mutation', 'api', 'delete', id] as const, +} as const; export const apiSchemaMutationKeys = { /** All apiSchema mutation keys */ all: ['mutation', 'apischema'] as const, /** Create apiSchema mutation key */ create: () => ['mutation', 'apischema', 'create'] as const, @@ -34,14 +42,6 @@ export const apiSettingMutationKeys = { /** Delete apiSetting mutation key */ delete: (id: string | number) => ['mutation', 'apisetting', 'delete', id] as const, } as const; -export const apisMutationKeys = { - /** All apis mutation keys */ all: ['mutation', 'apis'] as const, - /** Create apis mutation key */ create: () => ['mutation', 'apis', 'create'] as const, - /** Update apis mutation key */ update: (id: string | number) => - ['mutation', 'apis', 'update', id] as const, - /** Delete apis mutation key */ delete: (id: string | number) => - ['mutation', 'apis', 'delete', id] as const, -} as const; export const astMigrationMutationKeys = { /** All astMigration mutation keys */ all: ['mutation', 'astmigration'] as const, /** Create astMigration mutation key */ create: () => @@ -155,6 +155,33 @@ export const domainVerificationMutationKeys = { /** Delete domainVerification mutation key */ delete: (id: string | number) => ['mutation', 'domainverification', 'delete', id] as const, } as const; +export const emailIdentityMutationKeys = { + /** All emailIdentity mutation keys */ all: ['mutation', 'emailidentity'] as const, + /** Create emailIdentity mutation key */ create: () => + ['mutation', 'emailidentity', 'create'] as const, + /** Update emailIdentity mutation key */ update: (id: string | number) => + ['mutation', 'emailidentity', 'update', id] as const, + /** Delete emailIdentity mutation key */ delete: (id: string | number) => + ['mutation', 'emailidentity', 'delete', id] as const, +} as const; +export const emailProviderAccountMutationKeys = { + /** All emailProviderAccount mutation keys */ all: ['mutation', 'emailprovideraccount'] as const, + /** Create emailProviderAccount mutation key */ create: () => + ['mutation', 'emailprovideraccount', 'create'] as const, + /** Update emailProviderAccount mutation key */ update: (id: string | number) => + ['mutation', 'emailprovideraccount', 'update', id] as const, + /** Delete emailProviderAccount mutation key */ delete: (id: string | number) => + ['mutation', 'emailprovideraccount', 'delete', id] as const, +} as const; +export const emailSiteIdentityMutationKeys = { + /** All emailSiteIdentity mutation keys */ all: ['mutation', 'emailsiteidentity'] as const, + /** Create emailSiteIdentity mutation key */ create: () => + ['mutation', 'emailsiteidentity', 'create'] as const, + /** Update emailSiteIdentity mutation key */ update: (id: string | number) => + ['mutation', 'emailsiteidentity', 'update', id] as const, + /** Delete emailSiteIdentity mutation key */ delete: (id: string | number) => + ['mutation', 'emailsiteidentity', 'delete', id] as const, +} as const; export const embeddingChunkMutationKeys = { /** All embeddingChunk mutation keys */ all: ['mutation', 'embeddingchunk'] as const, /** Create embeddingChunk mutation key */ create: () => @@ -295,6 +322,15 @@ export const partitionMutationKeys = { /** Delete partition mutation key */ delete: (id: string | number) => ['mutation', 'partition', 'delete', id] as const, } as const; +export const platformApiMutationKeys = { + /** All platformApi mutation keys */ all: ['mutation', 'platformapi'] as const, + /** Create platformApi mutation key */ create: () => + ['mutation', 'platformapi', 'create'] as const, + /** Update platformApi mutation key */ update: (id: string | number) => + ['mutation', 'platformapi', 'update', id] as const, + /** Delete platformApi mutation key */ delete: (id: string | number) => + ['mutation', 'platformapi', 'delete', id] as const, +} as const; export const platformApiSchemaMutationKeys = { /** All platformApiSchema mutation keys */ all: ['mutation', 'platformapischema'] as const, /** Create platformApiSchema mutation key */ create: () => @@ -313,15 +349,6 @@ export const platformApiSettingMutationKeys = { /** Delete platformApiSetting mutation key */ delete: (id: string | number) => ['mutation', 'platformapisetting', 'delete', id] as const, } as const; -export const platformApisMutationKeys = { - /** All platformApis mutation keys */ all: ['mutation', 'platformapis'] as const, - /** Create platformApis mutation key */ create: () => - ['mutation', 'platformapis', 'create'] as const, - /** Update platformApis mutation key */ update: (id: string | number) => - ['mutation', 'platformapis', 'update', id] as const, - /** Delete platformApis mutation key */ delete: (id: string | number) => - ['mutation', 'platformapis', 'delete', id] as const, -} as const; export const platformCorsSettingMutationKeys = { /** All platformCorsSetting mutation keys */ all: ['mutation', 'platformcorssetting'] as const, /** Create platformCorsSetting mutation key */ create: () => @@ -361,6 +388,42 @@ export const platformDomainVerificationMutationKeys = { /** Delete platformDomainVerification mutation key */ delete: (id: string | number) => ['mutation', 'platformdomainverification', 'delete', id] as const, } as const; +export const platformEmailIdentityMutationKeys = { + /** All platformEmailIdentity mutation keys */ all: [ + 'mutation', + 'platformemailidentity', + ] as const, + /** Create platformEmailIdentity mutation key */ create: () => + ['mutation', 'platformemailidentity', 'create'] as const, + /** Update platformEmailIdentity mutation key */ update: (id: string | number) => + ['mutation', 'platformemailidentity', 'update', id] as const, + /** Delete platformEmailIdentity mutation key */ delete: (id: string | number) => + ['mutation', 'platformemailidentity', 'delete', id] as const, +} as const; +export const platformEmailProviderAccountMutationKeys = { + /** All platformEmailProviderAccount mutation keys */ all: [ + 'mutation', + 'platformemailprovideraccount', + ] as const, + /** Create platformEmailProviderAccount mutation key */ create: () => + ['mutation', 'platformemailprovideraccount', 'create'] as const, + /** Update platformEmailProviderAccount mutation key */ update: (id: string | number) => + ['mutation', 'platformemailprovideraccount', 'update', id] as const, + /** Delete platformEmailProviderAccount mutation key */ delete: (id: string | number) => + ['mutation', 'platformemailprovideraccount', 'delete', id] as const, +} as const; +export const platformEmailSiteIdentityMutationKeys = { + /** All platformEmailSiteIdentity mutation keys */ all: [ + 'mutation', + 'platformemailsiteidentity', + ] as const, + /** Create platformEmailSiteIdentity mutation key */ create: () => + ['mutation', 'platformemailsiteidentity', 'create'] as const, + /** Update platformEmailSiteIdentity mutation key */ update: (id: string | number) => + ['mutation', 'platformemailsiteidentity', 'update', id] as const, + /** Delete platformEmailSiteIdentity mutation key */ delete: (id: string | number) => + ['mutation', 'platformemailsiteidentity', 'delete', id] as const, +} as const; export const platformManagedDomainMutationKeys = { /** All platformManagedDomain mutation keys */ all: [ 'mutation', @@ -810,9 +873,9 @@ export const customMutationKeys = { * ``` */ export const mutationKeys = { + api: apiMutationKeys, apiSchema: apiSchemaMutationKeys, apiSetting: apiSettingMutationKeys, - apis: apisMutationKeys, astMigration: astMigrationMutationKeys, checkConstraint: checkConstraintMutationKeys, compositeType: compositeTypeMutationKeys, @@ -826,6 +889,9 @@ export const mutationKeys = { domainEvent: domainEventMutationKeys, domainType: domainTypeMutationKeys, domainVerification: domainVerificationMutationKeys, + emailIdentity: emailIdentityMutationKeys, + emailProviderAccount: emailProviderAccountMutationKeys, + emailSiteIdentity: emailSiteIdentityMutationKeys, embeddingChunk: embeddingChunkMutationKeys, enum: enumMutationKeys, exclusionConstraint: exclusionConstraintMutationKeys, @@ -842,13 +908,16 @@ export const mutationKeys = { nodeTypeRegistry: nodeTypeRegistryMutationKeys, page: pageMutationKeys, partition: partitionMutationKeys, + platformApi: platformApiMutationKeys, platformApiSchema: platformApiSchemaMutationKeys, platformApiSetting: platformApiSettingMutationKeys, - platformApis: platformApisMutationKeys, platformCorsSetting: platformCorsSettingMutationKeys, platformDomain: platformDomainMutationKeys, platformDomainEvent: platformDomainEventMutationKeys, platformDomainVerification: platformDomainVerificationMutationKeys, + platformEmailIdentity: platformEmailIdentityMutationKeys, + platformEmailProviderAccount: platformEmailProviderAccountMutationKeys, + platformEmailSiteIdentity: platformEmailSiteIdentityMutationKeys, platformManagedDomain: platformManagedDomainMutationKeys, platformPage: platformPageMutationKeys, platformSiteAppLink: platformSiteAppLinkMutationKeys, diff --git a/sdk/constructive-react/src/api/hooks/mutations/index.ts b/sdk/constructive-react/src/api/hooks/mutations/index.ts index e0db6a299c..4f23b7c522 100644 --- a/sdk/constructive-react/src/api/hooks/mutations/index.ts +++ b/sdk/constructive-react/src/api/hooks/mutations/index.ts @@ -3,15 +3,15 @@ * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ +export * from './useCreateApiMutation'; +export * from './useUpdateApiMutation'; +export * from './useDeleteApiMutation'; export * from './useCreateApiSchemaMutation'; export * from './useUpdateApiSchemaMutation'; export * from './useDeleteApiSchemaMutation'; export * from './useCreateApiSettingMutation'; export * from './useUpdateApiSettingMutation'; export * from './useDeleteApiSettingMutation'; -export * from './useCreateApisMutation'; -export * from './useUpdateApisMutation'; -export * from './useDeleteApisMutation'; export * from './useCreateAstMigrationMutation'; export * from './useCreateCheckConstraintMutation'; export * from './useUpdateCheckConstraintMutation'; @@ -49,6 +49,15 @@ export * from './useDeleteDomainTypeMutation'; export * from './useCreateDomainVerificationMutation'; export * from './useUpdateDomainVerificationMutation'; export * from './useDeleteDomainVerificationMutation'; +export * from './useCreateEmailIdentityMutation'; +export * from './useUpdateEmailIdentityMutation'; +export * from './useDeleteEmailIdentityMutation'; +export * from './useCreateEmailProviderAccountMutation'; +export * from './useUpdateEmailProviderAccountMutation'; +export * from './useDeleteEmailProviderAccountMutation'; +export * from './useCreateEmailSiteIdentityMutation'; +export * from './useUpdateEmailSiteIdentityMutation'; +export * from './useDeleteEmailSiteIdentityMutation'; export * from './useCreateEmbeddingChunkMutation'; export * from './useUpdateEmbeddingChunkMutation'; export * from './useDeleteEmbeddingChunkMutation'; @@ -97,15 +106,15 @@ export * from './useDeletePageMutation'; export * from './useCreatePartitionMutation'; export * from './useUpdatePartitionMutation'; export * from './useDeletePartitionMutation'; +export * from './useCreatePlatformApiMutation'; +export * from './useUpdatePlatformApiMutation'; +export * from './useDeletePlatformApiMutation'; export * from './useCreatePlatformApiSchemaMutation'; export * from './useUpdatePlatformApiSchemaMutation'; export * from './useDeletePlatformApiSchemaMutation'; export * from './useCreatePlatformApiSettingMutation'; export * from './useUpdatePlatformApiSettingMutation'; export * from './useDeletePlatformApiSettingMutation'; -export * from './useCreatePlatformApisMutation'; -export * from './useUpdatePlatformApisMutation'; -export * from './useDeletePlatformApisMutation'; export * from './useCreatePlatformCorsSettingMutation'; export * from './useUpdatePlatformCorsSettingMutation'; export * from './useDeletePlatformCorsSettingMutation'; @@ -118,6 +127,15 @@ export * from './useDeletePlatformDomainEventMutation'; export * from './useCreatePlatformDomainVerificationMutation'; export * from './useUpdatePlatformDomainVerificationMutation'; export * from './useDeletePlatformDomainVerificationMutation'; +export * from './useCreatePlatformEmailIdentityMutation'; +export * from './useUpdatePlatformEmailIdentityMutation'; +export * from './useDeletePlatformEmailIdentityMutation'; +export * from './useCreatePlatformEmailProviderAccountMutation'; +export * from './useUpdatePlatformEmailProviderAccountMutation'; +export * from './useDeletePlatformEmailProviderAccountMutation'; +export * from './useCreatePlatformEmailSiteIdentityMutation'; +export * from './useUpdatePlatformEmailSiteIdentityMutation'; +export * from './useDeletePlatformEmailSiteIdentityMutation'; export * from './useCreatePlatformManagedDomainMutation'; export * from './useUpdatePlatformManagedDomainMutation'; export * from './useDeletePlatformManagedDomainMutation'; diff --git a/sdk/constructive-react/src/api/hooks/mutations/useCreateApisMutation.ts b/sdk/constructive-react/src/api/hooks/mutations/useCreateApiMutation.ts similarity index 56% rename from sdk/constructive-react/src/api/hooks/mutations/useCreateApisMutation.ts rename to sdk/constructive-react/src/api/hooks/mutations/useCreateApiMutation.ts index eed3e05eb7..1ffaaef3f9 100644 --- a/sdk/constructive-react/src/api/hooks/mutations/useCreateApisMutation.ts +++ b/sdk/constructive-react/src/api/hooks/mutations/useCreateApiMutation.ts @@ -9,70 +9,70 @@ import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-quer import { getClient } from '../client'; import { buildSelectionArgs } from '../selection'; import type { SelectionConfig } from '../selection'; -import { apisKeys } from '../query-keys'; -import { apisMutationKeys } from '../mutation-keys'; -import type { ApisSelect, ApisWithRelations, CreateApisInput } from '../../orm/input-types'; +import { apiKeys } from '../query-keys'; +import { apiMutationKeys } from '../mutation-keys'; +import type { ApiSelect, ApiWithRelations, CreateApiInput } from '../../orm/input-types'; import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { ApisSelect, ApisWithRelations, CreateApisInput } from '../../orm/input-types'; +export type { ApiSelect, ApiWithRelations, CreateApiInput } from '../../orm/input-types'; /** * API surfaces exposed by this scope; publication makes a surface bindable from other scopes * * @example * ```tsx - * const { mutate, isPending } = useCreateApisMutation({ + * const { mutate, isPending } = useCreateApiMutation({ * selection: { fields: { id: true, name: true } }, * }); * * mutate({ name: 'New item' }); * ``` */ -export function useCreateApisMutation( +export function useCreateApiMutation( params: { selection: { - fields: S & ApisSelect; - } & HookStrictSelect, ApisSelect>; + fields: S & ApiSelect; + } & HookStrictSelect, ApiSelect>; } & Omit< UseMutationOptions< { - createApis: { - apis: InferSelectResult; + createApi: { + api: InferSelectResult; }; }, Error, - CreateApisInput['apis'] + CreateApiInput['api'] >, 'mutationFn' > ): UseMutationResult< { - createApis: { - apis: InferSelectResult; + createApi: { + api: InferSelectResult; }; }, Error, - CreateApisInput['apis'] + CreateApiInput['api'] >; -export function useCreateApisMutation( +export function useCreateApiMutation( params: { - selection: SelectionConfig; - } & Omit, 'mutationFn'> + selection: SelectionConfig; + } & Omit, 'mutationFn'> ) { - const args = buildSelectionArgs(params.selection); + const args = buildSelectionArgs(params.selection); const { selection: _selection, ...mutationOptions } = params ?? {}; void _selection; const queryClient = useQueryClient(); return useMutation({ - mutationKey: apisMutationKeys.create(), - mutationFn: (data: CreateApisInput['apis']) => + mutationKey: apiMutationKeys.create(), + mutationFn: (data: CreateApiInput['api']) => getClient() - .apis.create({ + .api.create({ data, select: args.select, }) .unwrap(), onSuccess: () => { queryClient.invalidateQueries({ - queryKey: apisKeys.lists(), + queryKey: apiKeys.lists(), }); }, ...mutationOptions, diff --git a/sdk/constructive-react/src/api/hooks/mutations/useCreateEmailIdentityMutation.ts b/sdk/constructive-react/src/api/hooks/mutations/useCreateEmailIdentityMutation.ts new file mode 100644 index 0000000000..1372a2e2d6 --- /dev/null +++ b/sdk/constructive-react/src/api/hooks/mutations/useCreateEmailIdentityMutation.ts @@ -0,0 +1,88 @@ +/** + * Outbound sender identity: the from/reply-to/support addresses a tenant sends as, and the provider account the mail leaves through + * @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 { emailIdentityKeys } from '../query-keys'; +import { emailIdentityMutationKeys } from '../mutation-keys'; +import type { + EmailIdentitySelect, + EmailIdentityWithRelations, + CreateEmailIdentityInput, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + EmailIdentitySelect, + EmailIdentityWithRelations, + CreateEmailIdentityInput, +} from '../../orm/input-types'; +/** + * Outbound sender identity: the from/reply-to/support addresses a tenant sends as, and the provider account the mail leaves through + * + * @example + * ```tsx + * const { mutate, isPending } = useCreateEmailIdentityMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ name: 'New item' }); + * ``` + */ +export function useCreateEmailIdentityMutation( + params: { + selection: { + fields: S & EmailIdentitySelect; + } & HookStrictSelect, EmailIdentitySelect>; + } & Omit< + UseMutationOptions< + { + createEmailIdentity: { + emailIdentity: InferSelectResult; + }; + }, + Error, + CreateEmailIdentityInput['emailIdentity'] + >, + 'mutationFn' + > +): UseMutationResult< + { + createEmailIdentity: { + emailIdentity: InferSelectResult; + }; + }, + Error, + CreateEmailIdentityInput['emailIdentity'] +>; +export function useCreateEmailIdentityMutation( + params: { + selection: SelectionConfig; + } & Omit, 'mutationFn'> +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: emailIdentityMutationKeys.create(), + mutationFn: (data: CreateEmailIdentityInput['emailIdentity']) => + getClient() + .emailIdentity.create({ + data, + select: args.select, + }) + .unwrap(), + onSuccess: () => { + queryClient.invalidateQueries({ + queryKey: emailIdentityKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/api/hooks/mutations/useCreateEmailProviderAccountMutation.ts b/sdk/constructive-react/src/api/hooks/mutations/useCreateEmailProviderAccountMutation.ts new file mode 100644 index 0000000000..e330b6ce18 --- /dev/null +++ b/sdk/constructive-react/src/api/hooks/mutations/useCreateEmailProviderAccountMutation.ts @@ -0,0 +1,91 @@ +/** + * A tenant's configured account at an email provider: provider slug, endpoint coordinates, and the NAME of the secret holding its credentials (never the credential itself) + * @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 { emailProviderAccountKeys } from '../query-keys'; +import { emailProviderAccountMutationKeys } from '../mutation-keys'; +import type { + EmailProviderAccountSelect, + EmailProviderAccountWithRelations, + CreateEmailProviderAccountInput, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + EmailProviderAccountSelect, + EmailProviderAccountWithRelations, + CreateEmailProviderAccountInput, +} from '../../orm/input-types'; +/** + * A tenant's configured account at an email provider: provider slug, endpoint coordinates, and the NAME of the secret holding its credentials (never the credential itself) + * + * @example + * ```tsx + * const { mutate, isPending } = useCreateEmailProviderAccountMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ name: 'New item' }); + * ``` + */ +export function useCreateEmailProviderAccountMutation( + params: { + selection: { + fields: S & EmailProviderAccountSelect; + } & HookStrictSelect, EmailProviderAccountSelect>; + } & Omit< + UseMutationOptions< + { + createEmailProviderAccount: { + emailProviderAccount: InferSelectResult; + }; + }, + Error, + CreateEmailProviderAccountInput['emailProviderAccount'] + >, + 'mutationFn' + > +): UseMutationResult< + { + createEmailProviderAccount: { + emailProviderAccount: InferSelectResult; + }; + }, + Error, + CreateEmailProviderAccountInput['emailProviderAccount'] +>; +export function useCreateEmailProviderAccountMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: emailProviderAccountMutationKeys.create(), + mutationFn: (data: CreateEmailProviderAccountInput['emailProviderAccount']) => + getClient() + .emailProviderAccount.create({ + data, + select: args.select, + }) + .unwrap(), + onSuccess: () => { + queryClient.invalidateQueries({ + queryKey: emailProviderAccountKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/api/hooks/mutations/useCreateEmailSiteIdentityMutation.ts b/sdk/constructive-react/src/api/hooks/mutations/useCreateEmailSiteIdentityMutation.ts new file mode 100644 index 0000000000..df0eef06fc --- /dev/null +++ b/sdk/constructive-react/src/api/hooks/mutations/useCreateEmailSiteIdentityMutation.ts @@ -0,0 +1,91 @@ +/** + * Binds a site to the identity it sends as. Unique on site_id: one identity per site, but many sites may share an identity. + * @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 { emailSiteIdentityKeys } from '../query-keys'; +import { emailSiteIdentityMutationKeys } from '../mutation-keys'; +import type { + EmailSiteIdentitySelect, + EmailSiteIdentityWithRelations, + CreateEmailSiteIdentityInput, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + EmailSiteIdentitySelect, + EmailSiteIdentityWithRelations, + CreateEmailSiteIdentityInput, +} from '../../orm/input-types'; +/** + * Binds a site to the identity it sends as. Unique on site_id: one identity per site, but many sites may share an identity. + * + * @example + * ```tsx + * const { mutate, isPending } = useCreateEmailSiteIdentityMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ name: 'New item' }); + * ``` + */ +export function useCreateEmailSiteIdentityMutation( + params: { + selection: { + fields: S & EmailSiteIdentitySelect; + } & HookStrictSelect, EmailSiteIdentitySelect>; + } & Omit< + UseMutationOptions< + { + createEmailSiteIdentity: { + emailSiteIdentity: InferSelectResult; + }; + }, + Error, + CreateEmailSiteIdentityInput['emailSiteIdentity'] + >, + 'mutationFn' + > +): UseMutationResult< + { + createEmailSiteIdentity: { + emailSiteIdentity: InferSelectResult; + }; + }, + Error, + CreateEmailSiteIdentityInput['emailSiteIdentity'] +>; +export function useCreateEmailSiteIdentityMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: emailSiteIdentityMutationKeys.create(), + mutationFn: (data: CreateEmailSiteIdentityInput['emailSiteIdentity']) => + getClient() + .emailSiteIdentity.create({ + data, + select: args.select, + }) + .unwrap(), + onSuccess: () => { + queryClient.invalidateQueries({ + queryKey: emailSiteIdentityKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/api/hooks/mutations/useCreatePlatformApisMutation.ts b/sdk/constructive-react/src/api/hooks/mutations/useCreatePlatformApiMutation.ts similarity index 53% rename from sdk/constructive-react/src/api/hooks/mutations/useCreatePlatformApisMutation.ts rename to sdk/constructive-react/src/api/hooks/mutations/useCreatePlatformApiMutation.ts index 3d4f64d5ac..91c2ab0235 100644 --- a/sdk/constructive-react/src/api/hooks/mutations/useCreatePlatformApisMutation.ts +++ b/sdk/constructive-react/src/api/hooks/mutations/useCreatePlatformApiMutation.ts @@ -9,78 +9,78 @@ import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-quer import { getClient } from '../client'; import { buildSelectionArgs } from '../selection'; import type { SelectionConfig } from '../selection'; -import { platformApisKeys } from '../query-keys'; -import { platformApisMutationKeys } from '../mutation-keys'; +import { platformApiKeys } from '../query-keys'; +import { platformApiMutationKeys } from '../mutation-keys'; import type { - PlatformApisSelect, - PlatformApisWithRelations, - CreatePlatformApisInput, + PlatformApiSelect, + PlatformApiWithRelations, + CreatePlatformApiInput, } from '../../orm/input-types'; import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; export type { - PlatformApisSelect, - PlatformApisWithRelations, - CreatePlatformApisInput, + PlatformApiSelect, + PlatformApiWithRelations, + CreatePlatformApiInput, } from '../../orm/input-types'; /** * API surfaces exposed by this scope; publication makes a surface bindable from other scopes * * @example * ```tsx - * const { mutate, isPending } = useCreatePlatformApisMutation({ + * const { mutate, isPending } = useCreatePlatformApiMutation({ * selection: { fields: { id: true, name: true } }, * }); * * mutate({ name: 'New item' }); * ``` */ -export function useCreatePlatformApisMutation( +export function useCreatePlatformApiMutation( params: { selection: { - fields: S & PlatformApisSelect; - } & HookStrictSelect, PlatformApisSelect>; + fields: S & PlatformApiSelect; + } & HookStrictSelect, PlatformApiSelect>; } & Omit< UseMutationOptions< { - createPlatformApis: { - platformApis: InferSelectResult; + createPlatformApi: { + platformApi: InferSelectResult; }; }, Error, - CreatePlatformApisInput['platformApis'] + CreatePlatformApiInput['platformApi'] >, 'mutationFn' > ): UseMutationResult< { - createPlatformApis: { - platformApis: InferSelectResult; + createPlatformApi: { + platformApi: InferSelectResult; }; }, Error, - CreatePlatformApisInput['platformApis'] + CreatePlatformApiInput['platformApi'] >; -export function useCreatePlatformApisMutation( +export function useCreatePlatformApiMutation( params: { - selection: SelectionConfig; - } & Omit, 'mutationFn'> + selection: SelectionConfig; + } & Omit, 'mutationFn'> ) { - const args = buildSelectionArgs(params.selection); + const args = buildSelectionArgs(params.selection); const { selection: _selection, ...mutationOptions } = params ?? {}; void _selection; const queryClient = useQueryClient(); return useMutation({ - mutationKey: platformApisMutationKeys.create(), - mutationFn: (data: CreatePlatformApisInput['platformApis']) => + mutationKey: platformApiMutationKeys.create(), + mutationFn: (data: CreatePlatformApiInput['platformApi']) => getClient() - .platformApis.create({ + .platformApi.create({ data, select: args.select, }) .unwrap(), onSuccess: () => { queryClient.invalidateQueries({ - queryKey: platformApisKeys.lists(), + queryKey: platformApiKeys.lists(), }); }, ...mutationOptions, diff --git a/sdk/constructive-react/src/api/hooks/mutations/useCreatePlatformEmailIdentityMutation.ts b/sdk/constructive-react/src/api/hooks/mutations/useCreatePlatformEmailIdentityMutation.ts new file mode 100644 index 0000000000..69c96b6ce2 --- /dev/null +++ b/sdk/constructive-react/src/api/hooks/mutations/useCreatePlatformEmailIdentityMutation.ts @@ -0,0 +1,91 @@ +/** + * Outbound sender identity: the from/reply-to/support addresses a tenant sends as, and the provider account the mail leaves through + * @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 { platformEmailIdentityKeys } from '../query-keys'; +import { platformEmailIdentityMutationKeys } from '../mutation-keys'; +import type { + PlatformEmailIdentitySelect, + PlatformEmailIdentityWithRelations, + CreatePlatformEmailIdentityInput, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + PlatformEmailIdentitySelect, + PlatformEmailIdentityWithRelations, + CreatePlatformEmailIdentityInput, +} from '../../orm/input-types'; +/** + * Outbound sender identity: the from/reply-to/support addresses a tenant sends as, and the provider account the mail leaves through + * + * @example + * ```tsx + * const { mutate, isPending } = useCreatePlatformEmailIdentityMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ name: 'New item' }); + * ``` + */ +export function useCreatePlatformEmailIdentityMutation( + params: { + selection: { + fields: S & PlatformEmailIdentitySelect; + } & HookStrictSelect, PlatformEmailIdentitySelect>; + } & Omit< + UseMutationOptions< + { + createPlatformEmailIdentity: { + platformEmailIdentity: InferSelectResult; + }; + }, + Error, + CreatePlatformEmailIdentityInput['platformEmailIdentity'] + >, + 'mutationFn' + > +): UseMutationResult< + { + createPlatformEmailIdentity: { + platformEmailIdentity: InferSelectResult; + }; + }, + Error, + CreatePlatformEmailIdentityInput['platformEmailIdentity'] +>; +export function useCreatePlatformEmailIdentityMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: platformEmailIdentityMutationKeys.create(), + mutationFn: (data: CreatePlatformEmailIdentityInput['platformEmailIdentity']) => + getClient() + .platformEmailIdentity.create({ + data, + select: args.select, + }) + .unwrap(), + onSuccess: () => { + queryClient.invalidateQueries({ + queryKey: platformEmailIdentityKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/api/hooks/mutations/useCreatePlatformEmailProviderAccountMutation.ts b/sdk/constructive-react/src/api/hooks/mutations/useCreatePlatformEmailProviderAccountMutation.ts new file mode 100644 index 0000000000..1e0d57ba0c --- /dev/null +++ b/sdk/constructive-react/src/api/hooks/mutations/useCreatePlatformEmailProviderAccountMutation.ts @@ -0,0 +1,100 @@ +/** + * A tenant's configured account at an email provider: provider slug, endpoint coordinates, and the NAME of the secret holding its credentials (never the credential itself) + * @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 { platformEmailProviderAccountKeys } from '../query-keys'; +import { platformEmailProviderAccountMutationKeys } from '../mutation-keys'; +import type { + PlatformEmailProviderAccountSelect, + PlatformEmailProviderAccountWithRelations, + CreatePlatformEmailProviderAccountInput, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + PlatformEmailProviderAccountSelect, + PlatformEmailProviderAccountWithRelations, + CreatePlatformEmailProviderAccountInput, +} from '../../orm/input-types'; +/** + * A tenant's configured account at an email provider: provider slug, endpoint coordinates, and the NAME of the secret holding its credentials (never the credential itself) + * + * @example + * ```tsx + * const { mutate, isPending } = useCreatePlatformEmailProviderAccountMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ name: 'New item' }); + * ``` + */ +export function useCreatePlatformEmailProviderAccountMutation< + S extends PlatformEmailProviderAccountSelect, +>( + params: { + selection: { + fields: S & PlatformEmailProviderAccountSelect; + } & HookStrictSelect, PlatformEmailProviderAccountSelect>; + } & Omit< + UseMutationOptions< + { + createPlatformEmailProviderAccount: { + platformEmailProviderAccount: InferSelectResult< + PlatformEmailProviderAccountWithRelations, + S + >; + }; + }, + Error, + CreatePlatformEmailProviderAccountInput['platformEmailProviderAccount'] + >, + 'mutationFn' + > +): UseMutationResult< + { + createPlatformEmailProviderAccount: { + platformEmailProviderAccount: InferSelectResult; + }; + }, + Error, + CreatePlatformEmailProviderAccountInput['platformEmailProviderAccount'] +>; +export function useCreatePlatformEmailProviderAccountMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions< + any, + Error, + CreatePlatformEmailProviderAccountInput['platformEmailProviderAccount'] + >, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: platformEmailProviderAccountMutationKeys.create(), + mutationFn: (data: CreatePlatformEmailProviderAccountInput['platformEmailProviderAccount']) => + getClient() + .platformEmailProviderAccount.create({ + data, + select: args.select, + }) + .unwrap(), + onSuccess: () => { + queryClient.invalidateQueries({ + queryKey: platformEmailProviderAccountKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/api/hooks/mutations/useCreatePlatformEmailSiteIdentityMutation.ts b/sdk/constructive-react/src/api/hooks/mutations/useCreatePlatformEmailSiteIdentityMutation.ts new file mode 100644 index 0000000000..dfd0164533 --- /dev/null +++ b/sdk/constructive-react/src/api/hooks/mutations/useCreatePlatformEmailSiteIdentityMutation.ts @@ -0,0 +1,97 @@ +/** + * Binds a site to the identity it sends as. Unique on site_id: one identity per site, but many sites may share an identity. + * @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 { platformEmailSiteIdentityKeys } from '../query-keys'; +import { platformEmailSiteIdentityMutationKeys } from '../mutation-keys'; +import type { + PlatformEmailSiteIdentitySelect, + PlatformEmailSiteIdentityWithRelations, + CreatePlatformEmailSiteIdentityInput, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + PlatformEmailSiteIdentitySelect, + PlatformEmailSiteIdentityWithRelations, + CreatePlatformEmailSiteIdentityInput, +} from '../../orm/input-types'; +/** + * Binds a site to the identity it sends as. Unique on site_id: one identity per site, but many sites may share an identity. + * + * @example + * ```tsx + * const { mutate, isPending } = useCreatePlatformEmailSiteIdentityMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ name: 'New item' }); + * ``` + */ +export function useCreatePlatformEmailSiteIdentityMutation< + S extends PlatformEmailSiteIdentitySelect, +>( + params: { + selection: { + fields: S & PlatformEmailSiteIdentitySelect; + } & HookStrictSelect, PlatformEmailSiteIdentitySelect>; + } & Omit< + UseMutationOptions< + { + createPlatformEmailSiteIdentity: { + platformEmailSiteIdentity: InferSelectResult; + }; + }, + Error, + CreatePlatformEmailSiteIdentityInput['platformEmailSiteIdentity'] + >, + 'mutationFn' + > +): UseMutationResult< + { + createPlatformEmailSiteIdentity: { + platformEmailSiteIdentity: InferSelectResult; + }; + }, + Error, + CreatePlatformEmailSiteIdentityInput['platformEmailSiteIdentity'] +>; +export function useCreatePlatformEmailSiteIdentityMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions< + any, + Error, + CreatePlatformEmailSiteIdentityInput['platformEmailSiteIdentity'] + >, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: platformEmailSiteIdentityMutationKeys.create(), + mutationFn: (data: CreatePlatformEmailSiteIdentityInput['platformEmailSiteIdentity']) => + getClient() + .platformEmailSiteIdentity.create({ + data, + select: args.select, + }) + .unwrap(), + onSuccess: () => { + queryClient.invalidateQueries({ + queryKey: platformEmailSiteIdentityKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/api/hooks/mutations/useDeleteApisMutation.ts b/sdk/constructive-react/src/api/hooks/mutations/useDeleteApiMutation.ts similarity index 65% rename from sdk/constructive-react/src/api/hooks/mutations/useDeleteApisMutation.ts rename to sdk/constructive-react/src/api/hooks/mutations/useDeleteApiMutation.ts index 29b6be869c..54c518339d 100644 --- a/sdk/constructive-react/src/api/hooks/mutations/useDeleteApisMutation.ts +++ b/sdk/constructive-react/src/api/hooks/mutations/useDeleteApiMutation.ts @@ -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 { apisKeys } from '../query-keys'; -import { apisMutationKeys } from '../mutation-keys'; -import type { ApisSelect, ApisWithRelations } from '../../orm/input-types'; +import { apiKeys } from '../query-keys'; +import { apiMutationKeys } from '../mutation-keys'; +import type { ApiSelect, ApiWithRelations } from '../../orm/input-types'; import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { ApisSelect, ApisWithRelations } from '../../orm/input-types'; +export type { ApiSelect, ApiWithRelations } from '../../orm/input-types'; /** * API surfaces exposed by this scope; publication makes a surface bindable from other scopes * * @example * ```tsx - * const { mutate, isPending } = useDeleteApisMutation({ + * const { mutate, isPending } = useDeleteApiMutation({ * selection: { fields: { id: true } }, * }); * * mutate({ id: 'value-to-delete' }); * ``` */ -export function useDeleteApisMutation( +export function useDeleteApiMutation( params: { selection: { - fields: S & ApisSelect; - } & HookStrictSelect, ApisSelect>; + fields: S & ApiSelect; + } & HookStrictSelect, ApiSelect>; } & Omit< UseMutationOptions< { - deleteApis: { - apis: InferSelectResult; + deleteApi: { + api: InferSelectResult; }; }, Error, @@ -47,8 +47,8 @@ export function useDeleteApisMutation( > ): UseMutationResult< { - deleteApis: { - apis: InferSelectResult; + deleteApi: { + api: InferSelectResult; }; }, Error, @@ -56,9 +56,9 @@ export function useDeleteApisMutation( id: string; } >; -export function useDeleteApisMutation( +export function useDeleteApiMutation( params: { - selection: SelectionConfig; + selection: SelectionConfig; } & Omit< UseMutationOptions< any, @@ -70,15 +70,15 @@ export function useDeleteApisMutation( 'mutationFn' > ) { - const args = buildSelectionArgs(params.selection); + const args = buildSelectionArgs(params.selection); const { selection: _selection, ...mutationOptions } = params ?? {}; void _selection; const queryClient = useQueryClient(); return useMutation({ - mutationKey: apisMutationKeys.all, + mutationKey: apiMutationKeys.all, mutationFn: ({ id }: { id: string }) => getClient() - .apis.delete({ + .api.delete({ where: { id, }, @@ -87,10 +87,10 @@ export function useDeleteApisMutation( .unwrap(), onSuccess: (_, variables) => { queryClient.removeQueries({ - queryKey: apisKeys.detail(variables.id), + queryKey: apiKeys.detail(variables.id), }); queryClient.invalidateQueries({ - queryKey: apisKeys.lists(), + queryKey: apiKeys.lists(), }); }, ...mutationOptions, diff --git a/sdk/constructive-react/src/api/hooks/mutations/useDeleteEmailIdentityMutation.ts b/sdk/constructive-react/src/api/hooks/mutations/useDeleteEmailIdentityMutation.ts new file mode 100644 index 0000000000..6bf948ec90 --- /dev/null +++ b/sdk/constructive-react/src/api/hooks/mutations/useDeleteEmailIdentityMutation.ts @@ -0,0 +1,98 @@ +/** + * Outbound sender identity: the from/reply-to/support addresses a tenant sends as, and the provider account the mail leaves through + * @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 { emailIdentityKeys } from '../query-keys'; +import { emailIdentityMutationKeys } from '../mutation-keys'; +import type { EmailIdentitySelect, EmailIdentityWithRelations } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { EmailIdentitySelect, EmailIdentityWithRelations } from '../../orm/input-types'; +/** + * Outbound sender identity: the from/reply-to/support addresses a tenant sends as, and the provider account the mail leaves through + * + * @example + * ```tsx + * const { mutate, isPending } = useDeleteEmailIdentityMutation({ + * selection: { fields: { id: true } }, + * }); + * + * mutate({ id: 'value-to-delete' }); + * ``` + */ +export function useDeleteEmailIdentityMutation( + params: { + selection: { + fields: S & EmailIdentitySelect; + } & HookStrictSelect, EmailIdentitySelect>; + } & Omit< + UseMutationOptions< + { + deleteEmailIdentity: { + emailIdentity: InferSelectResult; + }; + }, + Error, + { + id: string; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + deleteEmailIdentity: { + emailIdentity: InferSelectResult; + }; + }, + Error, + { + id: string; + } +>; +export function useDeleteEmailIdentityMutation( + 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: emailIdentityMutationKeys.all, + mutationFn: ({ id }: { id: string }) => + getClient() + .emailIdentity.delete({ + where: { + id, + }, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.removeQueries({ + queryKey: emailIdentityKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: emailIdentityKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/api/hooks/mutations/useDeleteEmailProviderAccountMutation.ts b/sdk/constructive-react/src/api/hooks/mutations/useDeleteEmailProviderAccountMutation.ts new file mode 100644 index 0000000000..b648970d86 --- /dev/null +++ b/sdk/constructive-react/src/api/hooks/mutations/useDeleteEmailProviderAccountMutation.ts @@ -0,0 +1,104 @@ +/** + * A tenant's configured account at an email provider: provider slug, endpoint coordinates, and the NAME of the secret holding its credentials (never the credential itself) + * @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 { emailProviderAccountKeys } from '../query-keys'; +import { emailProviderAccountMutationKeys } from '../mutation-keys'; +import type { + EmailProviderAccountSelect, + EmailProviderAccountWithRelations, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + EmailProviderAccountSelect, + EmailProviderAccountWithRelations, +} from '../../orm/input-types'; +/** + * A tenant's configured account at an email provider: provider slug, endpoint coordinates, and the NAME of the secret holding its credentials (never the credential itself) + * + * @example + * ```tsx + * const { mutate, isPending } = useDeleteEmailProviderAccountMutation({ + * selection: { fields: { id: true } }, + * }); + * + * mutate({ id: 'value-to-delete' }); + * ``` + */ +export function useDeleteEmailProviderAccountMutation( + params: { + selection: { + fields: S & EmailProviderAccountSelect; + } & HookStrictSelect, EmailProviderAccountSelect>; + } & Omit< + UseMutationOptions< + { + deleteEmailProviderAccount: { + emailProviderAccount: InferSelectResult; + }; + }, + Error, + { + id: string; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + deleteEmailProviderAccount: { + emailProviderAccount: InferSelectResult; + }; + }, + Error, + { + id: string; + } +>; +export function useDeleteEmailProviderAccountMutation( + 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: emailProviderAccountMutationKeys.all, + mutationFn: ({ id }: { id: string }) => + getClient() + .emailProviderAccount.delete({ + where: { + id, + }, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.removeQueries({ + queryKey: emailProviderAccountKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: emailProviderAccountKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/api/hooks/mutations/useDeleteEmailSiteIdentityMutation.ts b/sdk/constructive-react/src/api/hooks/mutations/useDeleteEmailSiteIdentityMutation.ts new file mode 100644 index 0000000000..73e385e7ae --- /dev/null +++ b/sdk/constructive-react/src/api/hooks/mutations/useDeleteEmailSiteIdentityMutation.ts @@ -0,0 +1,104 @@ +/** + * Binds a site to the identity it sends as. Unique on site_id: one identity per site, but many sites may share an identity. + * @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 { emailSiteIdentityKeys } from '../query-keys'; +import { emailSiteIdentityMutationKeys } from '../mutation-keys'; +import type { + EmailSiteIdentitySelect, + EmailSiteIdentityWithRelations, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + EmailSiteIdentitySelect, + EmailSiteIdentityWithRelations, +} from '../../orm/input-types'; +/** + * Binds a site to the identity it sends as. Unique on site_id: one identity per site, but many sites may share an identity. + * + * @example + * ```tsx + * const { mutate, isPending } = useDeleteEmailSiteIdentityMutation({ + * selection: { fields: { id: true } }, + * }); + * + * mutate({ id: 'value-to-delete' }); + * ``` + */ +export function useDeleteEmailSiteIdentityMutation( + params: { + selection: { + fields: S & EmailSiteIdentitySelect; + } & HookStrictSelect, EmailSiteIdentitySelect>; + } & Omit< + UseMutationOptions< + { + deleteEmailSiteIdentity: { + emailSiteIdentity: InferSelectResult; + }; + }, + Error, + { + id: string; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + deleteEmailSiteIdentity: { + emailSiteIdentity: InferSelectResult; + }; + }, + Error, + { + id: string; + } +>; +export function useDeleteEmailSiteIdentityMutation( + 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: emailSiteIdentityMutationKeys.all, + mutationFn: ({ id }: { id: string }) => + getClient() + .emailSiteIdentity.delete({ + where: { + id, + }, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.removeQueries({ + queryKey: emailSiteIdentityKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: emailSiteIdentityKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/api/hooks/mutations/useDeletePlatformApisMutation.ts b/sdk/constructive-react/src/api/hooks/mutations/useDeletePlatformApiMutation.ts similarity index 60% rename from sdk/constructive-react/src/api/hooks/mutations/useDeletePlatformApisMutation.ts rename to sdk/constructive-react/src/api/hooks/mutations/useDeletePlatformApiMutation.ts index 15ec0ad8d3..fe62269435 100644 --- a/sdk/constructive-react/src/api/hooks/mutations/useDeletePlatformApisMutation.ts +++ b/sdk/constructive-react/src/api/hooks/mutations/useDeletePlatformApiMutation.ts @@ -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 { platformApisKeys } from '../query-keys'; -import { platformApisMutationKeys } from '../mutation-keys'; -import type { PlatformApisSelect, PlatformApisWithRelations } from '../../orm/input-types'; +import { platformApiKeys } from '../query-keys'; +import { platformApiMutationKeys } from '../mutation-keys'; +import type { PlatformApiSelect, PlatformApiWithRelations } from '../../orm/input-types'; import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { PlatformApisSelect, PlatformApisWithRelations } from '../../orm/input-types'; +export type { PlatformApiSelect, PlatformApiWithRelations } from '../../orm/input-types'; /** * API surfaces exposed by this scope; publication makes a surface bindable from other scopes * * @example * ```tsx - * const { mutate, isPending } = useDeletePlatformApisMutation({ + * const { mutate, isPending } = useDeletePlatformApiMutation({ * selection: { fields: { id: true } }, * }); * * mutate({ id: 'value-to-delete' }); * ``` */ -export function useDeletePlatformApisMutation( +export function useDeletePlatformApiMutation( params: { selection: { - fields: S & PlatformApisSelect; - } & HookStrictSelect, PlatformApisSelect>; + fields: S & PlatformApiSelect; + } & HookStrictSelect, PlatformApiSelect>; } & Omit< UseMutationOptions< { - deletePlatformApis: { - platformApis: InferSelectResult; + deletePlatformApi: { + platformApi: InferSelectResult; }; }, Error, @@ -47,8 +47,8 @@ export function useDeletePlatformApisMutation( > ): UseMutationResult< { - deletePlatformApis: { - platformApis: InferSelectResult; + deletePlatformApi: { + platformApi: InferSelectResult; }; }, Error, @@ -56,9 +56,9 @@ export function useDeletePlatformApisMutation( id: string; } >; -export function useDeletePlatformApisMutation( +export function useDeletePlatformApiMutation( params: { - selection: SelectionConfig; + selection: SelectionConfig; } & Omit< UseMutationOptions< any, @@ -70,15 +70,15 @@ export function useDeletePlatformApisMutation( 'mutationFn' > ) { - const args = buildSelectionArgs(params.selection); + const args = buildSelectionArgs(params.selection); const { selection: _selection, ...mutationOptions } = params ?? {}; void _selection; const queryClient = useQueryClient(); return useMutation({ - mutationKey: platformApisMutationKeys.all, + mutationKey: platformApiMutationKeys.all, mutationFn: ({ id }: { id: string }) => getClient() - .platformApis.delete({ + .platformApi.delete({ where: { id, }, @@ -87,10 +87,10 @@ export function useDeletePlatformApisMutation( .unwrap(), onSuccess: (_, variables) => { queryClient.removeQueries({ - queryKey: platformApisKeys.detail(variables.id), + queryKey: platformApiKeys.detail(variables.id), }); queryClient.invalidateQueries({ - queryKey: platformApisKeys.lists(), + queryKey: platformApiKeys.lists(), }); }, ...mutationOptions, diff --git a/sdk/constructive-react/src/api/hooks/mutations/useDeletePlatformEmailIdentityMutation.ts b/sdk/constructive-react/src/api/hooks/mutations/useDeletePlatformEmailIdentityMutation.ts new file mode 100644 index 0000000000..bd1ceacedf --- /dev/null +++ b/sdk/constructive-react/src/api/hooks/mutations/useDeletePlatformEmailIdentityMutation.ts @@ -0,0 +1,104 @@ +/** + * Outbound sender identity: the from/reply-to/support addresses a tenant sends as, and the provider account the mail leaves through + * @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 { platformEmailIdentityKeys } from '../query-keys'; +import { platformEmailIdentityMutationKeys } from '../mutation-keys'; +import type { + PlatformEmailIdentitySelect, + PlatformEmailIdentityWithRelations, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + PlatformEmailIdentitySelect, + PlatformEmailIdentityWithRelations, +} from '../../orm/input-types'; +/** + * Outbound sender identity: the from/reply-to/support addresses a tenant sends as, and the provider account the mail leaves through + * + * @example + * ```tsx + * const { mutate, isPending } = useDeletePlatformEmailIdentityMutation({ + * selection: { fields: { id: true } }, + * }); + * + * mutate({ id: 'value-to-delete' }); + * ``` + */ +export function useDeletePlatformEmailIdentityMutation( + params: { + selection: { + fields: S & PlatformEmailIdentitySelect; + } & HookStrictSelect, PlatformEmailIdentitySelect>; + } & Omit< + UseMutationOptions< + { + deletePlatformEmailIdentity: { + platformEmailIdentity: InferSelectResult; + }; + }, + Error, + { + id: string; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + deletePlatformEmailIdentity: { + platformEmailIdentity: InferSelectResult; + }; + }, + Error, + { + id: string; + } +>; +export function useDeletePlatformEmailIdentityMutation( + 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: platformEmailIdentityMutationKeys.all, + mutationFn: ({ id }: { id: string }) => + getClient() + .platformEmailIdentity.delete({ + where: { + id, + }, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.removeQueries({ + queryKey: platformEmailIdentityKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: platformEmailIdentityKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/api/hooks/mutations/useDeletePlatformEmailProviderAccountMutation.ts b/sdk/constructive-react/src/api/hooks/mutations/useDeletePlatformEmailProviderAccountMutation.ts new file mode 100644 index 0000000000..c20023c14e --- /dev/null +++ b/sdk/constructive-react/src/api/hooks/mutations/useDeletePlatformEmailProviderAccountMutation.ts @@ -0,0 +1,109 @@ +/** + * A tenant's configured account at an email provider: provider slug, endpoint coordinates, and the NAME of the secret holding its credentials (never the credential itself) + * @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 { platformEmailProviderAccountKeys } from '../query-keys'; +import { platformEmailProviderAccountMutationKeys } from '../mutation-keys'; +import type { + PlatformEmailProviderAccountSelect, + PlatformEmailProviderAccountWithRelations, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + PlatformEmailProviderAccountSelect, + PlatformEmailProviderAccountWithRelations, +} from '../../orm/input-types'; +/** + * A tenant's configured account at an email provider: provider slug, endpoint coordinates, and the NAME of the secret holding its credentials (never the credential itself) + * + * @example + * ```tsx + * const { mutate, isPending } = useDeletePlatformEmailProviderAccountMutation({ + * selection: { fields: { id: true } }, + * }); + * + * mutate({ id: 'value-to-delete' }); + * ``` + */ +export function useDeletePlatformEmailProviderAccountMutation< + S extends PlatformEmailProviderAccountSelect, +>( + params: { + selection: { + fields: S & PlatformEmailProviderAccountSelect; + } & HookStrictSelect, PlatformEmailProviderAccountSelect>; + } & Omit< + UseMutationOptions< + { + deletePlatformEmailProviderAccount: { + platformEmailProviderAccount: InferSelectResult< + PlatformEmailProviderAccountWithRelations, + S + >; + }; + }, + Error, + { + id: string; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + deletePlatformEmailProviderAccount: { + platformEmailProviderAccount: InferSelectResult; + }; + }, + Error, + { + id: string; + } +>; +export function useDeletePlatformEmailProviderAccountMutation( + 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: platformEmailProviderAccountMutationKeys.all, + mutationFn: ({ id }: { id: string }) => + getClient() + .platformEmailProviderAccount.delete({ + where: { + id, + }, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.removeQueries({ + queryKey: platformEmailProviderAccountKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: platformEmailProviderAccountKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/api/hooks/mutations/useDeletePlatformEmailSiteIdentityMutation.ts b/sdk/constructive-react/src/api/hooks/mutations/useDeletePlatformEmailSiteIdentityMutation.ts new file mode 100644 index 0000000000..655cf867d7 --- /dev/null +++ b/sdk/constructive-react/src/api/hooks/mutations/useDeletePlatformEmailSiteIdentityMutation.ts @@ -0,0 +1,106 @@ +/** + * Binds a site to the identity it sends as. Unique on site_id: one identity per site, but many sites may share an identity. + * @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 { platformEmailSiteIdentityKeys } from '../query-keys'; +import { platformEmailSiteIdentityMutationKeys } from '../mutation-keys'; +import type { + PlatformEmailSiteIdentitySelect, + PlatformEmailSiteIdentityWithRelations, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + PlatformEmailSiteIdentitySelect, + PlatformEmailSiteIdentityWithRelations, +} from '../../orm/input-types'; +/** + * Binds a site to the identity it sends as. Unique on site_id: one identity per site, but many sites may share an identity. + * + * @example + * ```tsx + * const { mutate, isPending } = useDeletePlatformEmailSiteIdentityMutation({ + * selection: { fields: { id: true } }, + * }); + * + * mutate({ id: 'value-to-delete' }); + * ``` + */ +export function useDeletePlatformEmailSiteIdentityMutation< + S extends PlatformEmailSiteIdentitySelect, +>( + params: { + selection: { + fields: S & PlatformEmailSiteIdentitySelect; + } & HookStrictSelect, PlatformEmailSiteIdentitySelect>; + } & Omit< + UseMutationOptions< + { + deletePlatformEmailSiteIdentity: { + platformEmailSiteIdentity: InferSelectResult; + }; + }, + Error, + { + id: string; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + deletePlatformEmailSiteIdentity: { + platformEmailSiteIdentity: InferSelectResult; + }; + }, + Error, + { + id: string; + } +>; +export function useDeletePlatformEmailSiteIdentityMutation( + 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: platformEmailSiteIdentityMutationKeys.all, + mutationFn: ({ id }: { id: string }) => + getClient() + .platformEmailSiteIdentity.delete({ + where: { + id, + }, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.removeQueries({ + queryKey: platformEmailSiteIdentityKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: platformEmailSiteIdentityKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/api/hooks/mutations/useUpdateApisMutation.ts b/sdk/constructive-react/src/api/hooks/mutations/useUpdateApiMutation.ts similarity index 57% rename from sdk/constructive-react/src/api/hooks/mutations/useUpdateApisMutation.ts rename to sdk/constructive-react/src/api/hooks/mutations/useUpdateApiMutation.ts index 45ed1398bd..8b7a7de7eb 100644 --- a/sdk/constructive-react/src/api/hooks/mutations/useUpdateApisMutation.ts +++ b/sdk/constructive-react/src/api/hooks/mutations/useUpdateApiMutation.ts @@ -9,92 +9,92 @@ import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-quer import { getClient } from '../client'; import { buildSelectionArgs } from '../selection'; import type { SelectionConfig } from '../selection'; -import { apisKeys } from '../query-keys'; -import { apisMutationKeys } from '../mutation-keys'; -import type { ApisSelect, ApisWithRelations, ApisPatch } from '../../orm/input-types'; +import { apiKeys } from '../query-keys'; +import { apiMutationKeys } from '../mutation-keys'; +import type { ApiSelect, ApiWithRelations, ApiPatch } from '../../orm/input-types'; import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { ApisSelect, ApisWithRelations, ApisPatch } from '../../orm/input-types'; +export type { ApiSelect, ApiWithRelations, ApiPatch } from '../../orm/input-types'; /** * API surfaces exposed by this scope; publication makes a surface bindable from other scopes * * @example * ```tsx - * const { mutate, isPending } = useUpdateApisMutation({ + * const { mutate, isPending } = useUpdateApiMutation({ * selection: { fields: { id: true, name: true } }, * }); * - * mutate({ id: 'value-here', apisPatch: { name: 'Updated' } }); + * mutate({ id: 'value-here', apiPatch: { name: 'Updated' } }); * ``` */ -export function useUpdateApisMutation( +export function useUpdateApiMutation( params: { selection: { - fields: S & ApisSelect; - } & HookStrictSelect, ApisSelect>; + fields: S & ApiSelect; + } & HookStrictSelect, ApiSelect>; } & Omit< UseMutationOptions< { - updateApis: { - apis: InferSelectResult; + updateApi: { + api: InferSelectResult; }; }, Error, { id: string; - apisPatch: ApisPatch; + apiPatch: ApiPatch; } >, 'mutationFn' > ): UseMutationResult< { - updateApis: { - apis: InferSelectResult; + updateApi: { + api: InferSelectResult; }; }, Error, { id: string; - apisPatch: ApisPatch; + apiPatch: ApiPatch; } >; -export function useUpdateApisMutation( +export function useUpdateApiMutation( params: { - selection: SelectionConfig; + selection: SelectionConfig; } & Omit< UseMutationOptions< any, Error, { id: string; - apisPatch: ApisPatch; + apiPatch: ApiPatch; } >, 'mutationFn' > ) { - const args = buildSelectionArgs(params.selection); + const args = buildSelectionArgs(params.selection); const { selection: _selection, ...mutationOptions } = params ?? {}; void _selection; const queryClient = useQueryClient(); return useMutation({ - mutationKey: apisMutationKeys.all, - mutationFn: ({ id, apisPatch }: { id: string; apisPatch: ApisPatch }) => + mutationKey: apiMutationKeys.all, + mutationFn: ({ id, apiPatch }: { id: string; apiPatch: ApiPatch }) => getClient() - .apis.update({ + .api.update({ where: { id, }, - data: apisPatch, + data: apiPatch, select: args.select, }) .unwrap(), onSuccess: (_, variables) => { queryClient.invalidateQueries({ - queryKey: apisKeys.detail(variables.id), + queryKey: apiKeys.detail(variables.id), }); queryClient.invalidateQueries({ - queryKey: apisKeys.lists(), + queryKey: apiKeys.lists(), }); }, ...mutationOptions, diff --git a/sdk/constructive-react/src/api/hooks/mutations/useUpdateEmailIdentityMutation.ts b/sdk/constructive-react/src/api/hooks/mutations/useUpdateEmailIdentityMutation.ts new file mode 100644 index 0000000000..54a01f9aeb --- /dev/null +++ b/sdk/constructive-react/src/api/hooks/mutations/useUpdateEmailIdentityMutation.ts @@ -0,0 +1,116 @@ +/** + * Outbound sender identity: the from/reply-to/support addresses a tenant sends as, and the provider account the mail leaves through + * @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 { emailIdentityKeys } from '../query-keys'; +import { emailIdentityMutationKeys } from '../mutation-keys'; +import type { + EmailIdentitySelect, + EmailIdentityWithRelations, + EmailIdentityPatch, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + EmailIdentitySelect, + EmailIdentityWithRelations, + EmailIdentityPatch, +} from '../../orm/input-types'; +/** + * Outbound sender identity: the from/reply-to/support addresses a tenant sends as, and the provider account the mail leaves through + * + * @example + * ```tsx + * const { mutate, isPending } = useUpdateEmailIdentityMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ id: 'value-here', emailIdentityPatch: { name: 'Updated' } }); + * ``` + */ +export function useUpdateEmailIdentityMutation( + params: { + selection: { + fields: S & EmailIdentitySelect; + } & HookStrictSelect, EmailIdentitySelect>; + } & Omit< + UseMutationOptions< + { + updateEmailIdentity: { + emailIdentity: InferSelectResult; + }; + }, + Error, + { + id: string; + emailIdentityPatch: EmailIdentityPatch; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + updateEmailIdentity: { + emailIdentity: InferSelectResult; + }; + }, + Error, + { + id: string; + emailIdentityPatch: EmailIdentityPatch; + } +>; +export function useUpdateEmailIdentityMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions< + any, + Error, + { + id: string; + emailIdentityPatch: EmailIdentityPatch; + } + >, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: emailIdentityMutationKeys.all, + mutationFn: ({ + id, + emailIdentityPatch, + }: { + id: string; + emailIdentityPatch: EmailIdentityPatch; + }) => + getClient() + .emailIdentity.update({ + where: { + id, + }, + data: emailIdentityPatch, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.invalidateQueries({ + queryKey: emailIdentityKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: emailIdentityKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/api/hooks/mutations/useUpdateEmailProviderAccountMutation.ts b/sdk/constructive-react/src/api/hooks/mutations/useUpdateEmailProviderAccountMutation.ts new file mode 100644 index 0000000000..56c5ac8e9a --- /dev/null +++ b/sdk/constructive-react/src/api/hooks/mutations/useUpdateEmailProviderAccountMutation.ts @@ -0,0 +1,116 @@ +/** + * A tenant's configured account at an email provider: provider slug, endpoint coordinates, and the NAME of the secret holding its credentials (never the credential itself) + * @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 { emailProviderAccountKeys } from '../query-keys'; +import { emailProviderAccountMutationKeys } from '../mutation-keys'; +import type { + EmailProviderAccountSelect, + EmailProviderAccountWithRelations, + EmailProviderAccountPatch, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + EmailProviderAccountSelect, + EmailProviderAccountWithRelations, + EmailProviderAccountPatch, +} from '../../orm/input-types'; +/** + * A tenant's configured account at an email provider: provider slug, endpoint coordinates, and the NAME of the secret holding its credentials (never the credential itself) + * + * @example + * ```tsx + * const { mutate, isPending } = useUpdateEmailProviderAccountMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ id: 'value-here', emailProviderAccountPatch: { name: 'Updated' } }); + * ``` + */ +export function useUpdateEmailProviderAccountMutation( + params: { + selection: { + fields: S & EmailProviderAccountSelect; + } & HookStrictSelect, EmailProviderAccountSelect>; + } & Omit< + UseMutationOptions< + { + updateEmailProviderAccount: { + emailProviderAccount: InferSelectResult; + }; + }, + Error, + { + id: string; + emailProviderAccountPatch: EmailProviderAccountPatch; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + updateEmailProviderAccount: { + emailProviderAccount: InferSelectResult; + }; + }, + Error, + { + id: string; + emailProviderAccountPatch: EmailProviderAccountPatch; + } +>; +export function useUpdateEmailProviderAccountMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions< + any, + Error, + { + id: string; + emailProviderAccountPatch: EmailProviderAccountPatch; + } + >, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: emailProviderAccountMutationKeys.all, + mutationFn: ({ + id, + emailProviderAccountPatch, + }: { + id: string; + emailProviderAccountPatch: EmailProviderAccountPatch; + }) => + getClient() + .emailProviderAccount.update({ + where: { + id, + }, + data: emailProviderAccountPatch, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.invalidateQueries({ + queryKey: emailProviderAccountKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: emailProviderAccountKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/api/hooks/mutations/useUpdateEmailSiteIdentityMutation.ts b/sdk/constructive-react/src/api/hooks/mutations/useUpdateEmailSiteIdentityMutation.ts new file mode 100644 index 0000000000..48a663c172 --- /dev/null +++ b/sdk/constructive-react/src/api/hooks/mutations/useUpdateEmailSiteIdentityMutation.ts @@ -0,0 +1,116 @@ +/** + * Binds a site to the identity it sends as. Unique on site_id: one identity per site, but many sites may share an identity. + * @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 { emailSiteIdentityKeys } from '../query-keys'; +import { emailSiteIdentityMutationKeys } from '../mutation-keys'; +import type { + EmailSiteIdentitySelect, + EmailSiteIdentityWithRelations, + EmailSiteIdentityPatch, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + EmailSiteIdentitySelect, + EmailSiteIdentityWithRelations, + EmailSiteIdentityPatch, +} from '../../orm/input-types'; +/** + * Binds a site to the identity it sends as. Unique on site_id: one identity per site, but many sites may share an identity. + * + * @example + * ```tsx + * const { mutate, isPending } = useUpdateEmailSiteIdentityMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ id: 'value-here', emailSiteIdentityPatch: { name: 'Updated' } }); + * ``` + */ +export function useUpdateEmailSiteIdentityMutation( + params: { + selection: { + fields: S & EmailSiteIdentitySelect; + } & HookStrictSelect, EmailSiteIdentitySelect>; + } & Omit< + UseMutationOptions< + { + updateEmailSiteIdentity: { + emailSiteIdentity: InferSelectResult; + }; + }, + Error, + { + id: string; + emailSiteIdentityPatch: EmailSiteIdentityPatch; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + updateEmailSiteIdentity: { + emailSiteIdentity: InferSelectResult; + }; + }, + Error, + { + id: string; + emailSiteIdentityPatch: EmailSiteIdentityPatch; + } +>; +export function useUpdateEmailSiteIdentityMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions< + any, + Error, + { + id: string; + emailSiteIdentityPatch: EmailSiteIdentityPatch; + } + >, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: emailSiteIdentityMutationKeys.all, + mutationFn: ({ + id, + emailSiteIdentityPatch, + }: { + id: string; + emailSiteIdentityPatch: EmailSiteIdentityPatch; + }) => + getClient() + .emailSiteIdentity.update({ + where: { + id, + }, + data: emailSiteIdentityPatch, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.invalidateQueries({ + queryKey: emailSiteIdentityKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: emailSiteIdentityKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/api/hooks/mutations/useUpdatePlatformApisMutation.ts b/sdk/constructive-react/src/api/hooks/mutations/useUpdatePlatformApiMutation.ts similarity index 55% rename from sdk/constructive-react/src/api/hooks/mutations/useUpdatePlatformApisMutation.ts rename to sdk/constructive-react/src/api/hooks/mutations/useUpdatePlatformApiMutation.ts index fb26308115..7cf22a2193 100644 --- a/sdk/constructive-react/src/api/hooks/mutations/useUpdatePlatformApisMutation.ts +++ b/sdk/constructive-react/src/api/hooks/mutations/useUpdatePlatformApiMutation.ts @@ -9,100 +9,100 @@ import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-quer import { getClient } from '../client'; import { buildSelectionArgs } from '../selection'; import type { SelectionConfig } from '../selection'; -import { platformApisKeys } from '../query-keys'; -import { platformApisMutationKeys } from '../mutation-keys'; +import { platformApiKeys } from '../query-keys'; +import { platformApiMutationKeys } from '../mutation-keys'; import type { - PlatformApisSelect, - PlatformApisWithRelations, - PlatformApisPatch, + PlatformApiSelect, + PlatformApiWithRelations, + PlatformApiPatch, } from '../../orm/input-types'; import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; export type { - PlatformApisSelect, - PlatformApisWithRelations, - PlatformApisPatch, + PlatformApiSelect, + PlatformApiWithRelations, + PlatformApiPatch, } from '../../orm/input-types'; /** * API surfaces exposed by this scope; publication makes a surface bindable from other scopes * * @example * ```tsx - * const { mutate, isPending } = useUpdatePlatformApisMutation({ + * const { mutate, isPending } = useUpdatePlatformApiMutation({ * selection: { fields: { id: true, name: true } }, * }); * - * mutate({ id: 'value-here', platformApisPatch: { name: 'Updated' } }); + * mutate({ id: 'value-here', platformApiPatch: { name: 'Updated' } }); * ``` */ -export function useUpdatePlatformApisMutation( +export function useUpdatePlatformApiMutation( params: { selection: { - fields: S & PlatformApisSelect; - } & HookStrictSelect, PlatformApisSelect>; + fields: S & PlatformApiSelect; + } & HookStrictSelect, PlatformApiSelect>; } & Omit< UseMutationOptions< { - updatePlatformApis: { - platformApis: InferSelectResult; + updatePlatformApi: { + platformApi: InferSelectResult; }; }, Error, { id: string; - platformApisPatch: PlatformApisPatch; + platformApiPatch: PlatformApiPatch; } >, 'mutationFn' > ): UseMutationResult< { - updatePlatformApis: { - platformApis: InferSelectResult; + updatePlatformApi: { + platformApi: InferSelectResult; }; }, Error, { id: string; - platformApisPatch: PlatformApisPatch; + platformApiPatch: PlatformApiPatch; } >; -export function useUpdatePlatformApisMutation( +export function useUpdatePlatformApiMutation( params: { - selection: SelectionConfig; + selection: SelectionConfig; } & Omit< UseMutationOptions< any, Error, { id: string; - platformApisPatch: PlatformApisPatch; + platformApiPatch: PlatformApiPatch; } >, 'mutationFn' > ) { - const args = buildSelectionArgs(params.selection); + const args = buildSelectionArgs(params.selection); const { selection: _selection, ...mutationOptions } = params ?? {}; void _selection; const queryClient = useQueryClient(); return useMutation({ - mutationKey: platformApisMutationKeys.all, - mutationFn: ({ id, platformApisPatch }: { id: string; platformApisPatch: PlatformApisPatch }) => + mutationKey: platformApiMutationKeys.all, + mutationFn: ({ id, platformApiPatch }: { id: string; platformApiPatch: PlatformApiPatch }) => getClient() - .platformApis.update({ + .platformApi.update({ where: { id, }, - data: platformApisPatch, + data: platformApiPatch, select: args.select, }) .unwrap(), onSuccess: (_, variables) => { queryClient.invalidateQueries({ - queryKey: platformApisKeys.detail(variables.id), + queryKey: platformApiKeys.detail(variables.id), }); queryClient.invalidateQueries({ - queryKey: platformApisKeys.lists(), + queryKey: platformApiKeys.lists(), }); }, ...mutationOptions, diff --git a/sdk/constructive-react/src/api/hooks/mutations/useUpdatePlatformEmailIdentityMutation.ts b/sdk/constructive-react/src/api/hooks/mutations/useUpdatePlatformEmailIdentityMutation.ts new file mode 100644 index 0000000000..685c710f8d --- /dev/null +++ b/sdk/constructive-react/src/api/hooks/mutations/useUpdatePlatformEmailIdentityMutation.ts @@ -0,0 +1,116 @@ +/** + * Outbound sender identity: the from/reply-to/support addresses a tenant sends as, and the provider account the mail leaves through + * @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 { platformEmailIdentityKeys } from '../query-keys'; +import { platformEmailIdentityMutationKeys } from '../mutation-keys'; +import type { + PlatformEmailIdentitySelect, + PlatformEmailIdentityWithRelations, + PlatformEmailIdentityPatch, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + PlatformEmailIdentitySelect, + PlatformEmailIdentityWithRelations, + PlatformEmailIdentityPatch, +} from '../../orm/input-types'; +/** + * Outbound sender identity: the from/reply-to/support addresses a tenant sends as, and the provider account the mail leaves through + * + * @example + * ```tsx + * const { mutate, isPending } = useUpdatePlatformEmailIdentityMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ id: 'value-here', platformEmailIdentityPatch: { name: 'Updated' } }); + * ``` + */ +export function useUpdatePlatformEmailIdentityMutation( + params: { + selection: { + fields: S & PlatformEmailIdentitySelect; + } & HookStrictSelect, PlatformEmailIdentitySelect>; + } & Omit< + UseMutationOptions< + { + updatePlatformEmailIdentity: { + platformEmailIdentity: InferSelectResult; + }; + }, + Error, + { + id: string; + platformEmailIdentityPatch: PlatformEmailIdentityPatch; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + updatePlatformEmailIdentity: { + platformEmailIdentity: InferSelectResult; + }; + }, + Error, + { + id: string; + platformEmailIdentityPatch: PlatformEmailIdentityPatch; + } +>; +export function useUpdatePlatformEmailIdentityMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions< + any, + Error, + { + id: string; + platformEmailIdentityPatch: PlatformEmailIdentityPatch; + } + >, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: platformEmailIdentityMutationKeys.all, + mutationFn: ({ + id, + platformEmailIdentityPatch, + }: { + id: string; + platformEmailIdentityPatch: PlatformEmailIdentityPatch; + }) => + getClient() + .platformEmailIdentity.update({ + where: { + id, + }, + data: platformEmailIdentityPatch, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.invalidateQueries({ + queryKey: platformEmailIdentityKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: platformEmailIdentityKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/api/hooks/mutations/useUpdatePlatformEmailProviderAccountMutation.ts b/sdk/constructive-react/src/api/hooks/mutations/useUpdatePlatformEmailProviderAccountMutation.ts new file mode 100644 index 0000000000..341c4e3d0b --- /dev/null +++ b/sdk/constructive-react/src/api/hooks/mutations/useUpdatePlatformEmailProviderAccountMutation.ts @@ -0,0 +1,121 @@ +/** + * A tenant's configured account at an email provider: provider slug, endpoint coordinates, and the NAME of the secret holding its credentials (never the credential itself) + * @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 { platformEmailProviderAccountKeys } from '../query-keys'; +import { platformEmailProviderAccountMutationKeys } from '../mutation-keys'; +import type { + PlatformEmailProviderAccountSelect, + PlatformEmailProviderAccountWithRelations, + PlatformEmailProviderAccountPatch, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + PlatformEmailProviderAccountSelect, + PlatformEmailProviderAccountWithRelations, + PlatformEmailProviderAccountPatch, +} from '../../orm/input-types'; +/** + * A tenant's configured account at an email provider: provider slug, endpoint coordinates, and the NAME of the secret holding its credentials (never the credential itself) + * + * @example + * ```tsx + * const { mutate, isPending } = useUpdatePlatformEmailProviderAccountMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ id: 'value-here', platformEmailProviderAccountPatch: { name: 'Updated' } }); + * ``` + */ +export function useUpdatePlatformEmailProviderAccountMutation< + S extends PlatformEmailProviderAccountSelect, +>( + params: { + selection: { + fields: S & PlatformEmailProviderAccountSelect; + } & HookStrictSelect, PlatformEmailProviderAccountSelect>; + } & Omit< + UseMutationOptions< + { + updatePlatformEmailProviderAccount: { + platformEmailProviderAccount: InferSelectResult< + PlatformEmailProviderAccountWithRelations, + S + >; + }; + }, + Error, + { + id: string; + platformEmailProviderAccountPatch: PlatformEmailProviderAccountPatch; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + updatePlatformEmailProviderAccount: { + platformEmailProviderAccount: InferSelectResult; + }; + }, + Error, + { + id: string; + platformEmailProviderAccountPatch: PlatformEmailProviderAccountPatch; + } +>; +export function useUpdatePlatformEmailProviderAccountMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions< + any, + Error, + { + id: string; + platformEmailProviderAccountPatch: PlatformEmailProviderAccountPatch; + } + >, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: platformEmailProviderAccountMutationKeys.all, + mutationFn: ({ + id, + platformEmailProviderAccountPatch, + }: { + id: string; + platformEmailProviderAccountPatch: PlatformEmailProviderAccountPatch; + }) => + getClient() + .platformEmailProviderAccount.update({ + where: { + id, + }, + data: platformEmailProviderAccountPatch, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.invalidateQueries({ + queryKey: platformEmailProviderAccountKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: platformEmailProviderAccountKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/api/hooks/mutations/useUpdatePlatformEmailSiteIdentityMutation.ts b/sdk/constructive-react/src/api/hooks/mutations/useUpdatePlatformEmailSiteIdentityMutation.ts new file mode 100644 index 0000000000..099114e020 --- /dev/null +++ b/sdk/constructive-react/src/api/hooks/mutations/useUpdatePlatformEmailSiteIdentityMutation.ts @@ -0,0 +1,118 @@ +/** + * Binds a site to the identity it sends as. Unique on site_id: one identity per site, but many sites may share an identity. + * @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 { platformEmailSiteIdentityKeys } from '../query-keys'; +import { platformEmailSiteIdentityMutationKeys } from '../mutation-keys'; +import type { + PlatformEmailSiteIdentitySelect, + PlatformEmailSiteIdentityWithRelations, + PlatformEmailSiteIdentityPatch, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + PlatformEmailSiteIdentitySelect, + PlatformEmailSiteIdentityWithRelations, + PlatformEmailSiteIdentityPatch, +} from '../../orm/input-types'; +/** + * Binds a site to the identity it sends as. Unique on site_id: one identity per site, but many sites may share an identity. + * + * @example + * ```tsx + * const { mutate, isPending } = useUpdatePlatformEmailSiteIdentityMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ id: 'value-here', platformEmailSiteIdentityPatch: { name: 'Updated' } }); + * ``` + */ +export function useUpdatePlatformEmailSiteIdentityMutation< + S extends PlatformEmailSiteIdentitySelect, +>( + params: { + selection: { + fields: S & PlatformEmailSiteIdentitySelect; + } & HookStrictSelect, PlatformEmailSiteIdentitySelect>; + } & Omit< + UseMutationOptions< + { + updatePlatformEmailSiteIdentity: { + platformEmailSiteIdentity: InferSelectResult; + }; + }, + Error, + { + id: string; + platformEmailSiteIdentityPatch: PlatformEmailSiteIdentityPatch; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + updatePlatformEmailSiteIdentity: { + platformEmailSiteIdentity: InferSelectResult; + }; + }, + Error, + { + id: string; + platformEmailSiteIdentityPatch: PlatformEmailSiteIdentityPatch; + } +>; +export function useUpdatePlatformEmailSiteIdentityMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions< + any, + Error, + { + id: string; + platformEmailSiteIdentityPatch: PlatformEmailSiteIdentityPatch; + } + >, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: platformEmailSiteIdentityMutationKeys.all, + mutationFn: ({ + id, + platformEmailSiteIdentityPatch, + }: { + id: string; + platformEmailSiteIdentityPatch: PlatformEmailSiteIdentityPatch; + }) => + getClient() + .platformEmailSiteIdentity.update({ + where: { + id, + }, + data: platformEmailSiteIdentityPatch, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.invalidateQueries({ + queryKey: platformEmailSiteIdentityKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: platformEmailSiteIdentityKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/api/hooks/queries/index.ts b/sdk/constructive-react/src/api/hooks/queries/index.ts index de1eb956b2..08ba2dd1f3 100644 --- a/sdk/constructive-react/src/api/hooks/queries/index.ts +++ b/sdk/constructive-react/src/api/hooks/queries/index.ts @@ -3,12 +3,12 @@ * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ +export * from './useApisQuery'; +export * from './useApiQuery'; export * from './useApiSchemasQuery'; export * from './useApiSchemaQuery'; export * from './useApiSettingsQuery'; export * from './useApiSettingQuery'; -export * from './useApisesQuery'; -export * from './useApisQuery'; export * from './useAstMigrationsQuery'; export * from './useAstMigrationQuery'; export * from './useCheckConstraintsQuery'; @@ -35,6 +35,12 @@ export * from './useDomainTypesQuery'; export * from './useDomainTypeQuery'; export * from './useDomainVerificationsQuery'; export * from './useDomainVerificationQuery'; +export * from './useEmailIdentitiesQuery'; +export * from './useEmailIdentityQuery'; +export * from './useEmailProviderAccountsQuery'; +export * from './useEmailProviderAccountQuery'; +export * from './useEmailSiteIdentitiesQuery'; +export * from './useEmailSiteIdentityQuery'; export * from './useEmbeddingChunksQuery'; export * from './useEmbeddingChunkQuery'; export * from './useEnumsQuery'; @@ -67,12 +73,12 @@ export * from './usePagesQuery'; export * from './usePageQuery'; export * from './usePartitionsQuery'; export * from './usePartitionQuery'; +export * from './usePlatformApisQuery'; +export * from './usePlatformApiQuery'; export * from './usePlatformApiSchemasQuery'; export * from './usePlatformApiSchemaQuery'; export * from './usePlatformApiSettingsQuery'; export * from './usePlatformApiSettingQuery'; -export * from './usePlatformApisesQuery'; -export * from './usePlatformApisQuery'; export * from './usePlatformCorsSettingsQuery'; export * from './usePlatformCorsSettingQuery'; export * from './usePlatformDomainsQuery'; @@ -81,6 +87,12 @@ export * from './usePlatformDomainEventsQuery'; export * from './usePlatformDomainEventQuery'; export * from './usePlatformDomainVerificationsQuery'; export * from './usePlatformDomainVerificationQuery'; +export * from './usePlatformEmailIdentitiesQuery'; +export * from './usePlatformEmailIdentityQuery'; +export * from './usePlatformEmailProviderAccountsQuery'; +export * from './usePlatformEmailProviderAccountQuery'; +export * from './usePlatformEmailSiteIdentitiesQuery'; +export * from './usePlatformEmailSiteIdentityQuery'; export * from './usePlatformManagedDomainsQuery'; export * from './usePlatformManagedDomainQuery'; export * from './usePlatformPagesQuery'; diff --git a/sdk/constructive-react/src/api/hooks/queries/useApiQuery.ts b/sdk/constructive-react/src/api/hooks/queries/useApiQuery.ts new file mode 100644 index 0000000000..f7c45a4c09 --- /dev/null +++ b/sdk/constructive-react/src/api/hooks/queries/useApiQuery.ts @@ -0,0 +1,138 @@ +/** + * API surfaces exposed by this scope; publication makes a surface bindable from other scopes + * @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 { apiKeys } from '../query-keys'; +import type { ApiSelect, ApiWithRelations } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { ApiSelect, ApiWithRelations } from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const apiQueryKey = apiKeys.detail; +/** + * API surfaces exposed by this scope; publication makes a surface bindable from other scopes + * + * @example + * ```tsx + * const { data, isLoading } = useApiQuery({ + * id: 'some-id', + * selection: { fields: { id: true, name: true } }, + * }); + * ``` + */ +export function useApiQuery< + S extends ApiSelect, + TData = { + api: InferSelectResult | null; + }, +>( + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, ApiSelect>; + } & Omit< + UseQueryOptions< + { + api: InferSelectResult | null; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useApiQuery( + params: { + id: string; + selection: SelectionConfig; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: apiKeys.detail(params.id), + queryFn: () => + getClient() + .api.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + ...queryOptions, + }); +} +/** + * API surfaces exposed by this scope; publication makes a surface bindable from other scopes + * + * @example + * ```ts + * const data = await fetchApiQuery({ + * id: 'some-id', + * selection: { fields: { id: true } }, + * }); + * ``` + */ +export async function fetchApiQuery(params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, ApiSelect>; +}): Promise<{ + api: InferSelectResult | null; +}>; +export async function fetchApiQuery(params: { + id: string; + selection: SelectionConfig; +}): Promise { + const args = buildSelectionArgs(params.selection); + return getClient() + .api.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(); +} +/** + * API surfaces exposed by this scope; publication makes a surface bindable from other scopes + * + * @example + * ```ts + * await prefetchApiQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } }); + * ``` + */ +export async function prefetchApiQuery( + queryClient: QueryClient, + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, ApiSelect>; + } +): Promise; +export async function prefetchApiQuery( + queryClient: QueryClient, + params: { + id: string; + selection: SelectionConfig; + } +): Promise { + const args = buildSelectionArgs(params.selection); + await queryClient.prefetchQuery({ + queryKey: apiKeys.detail(params.id), + queryFn: () => + getClient() + .api.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + }); +} diff --git a/sdk/constructive-react/src/api/hooks/queries/useApisQuery.ts b/sdk/constructive-react/src/api/hooks/queries/useApisQuery.ts index a7544af975..1109f42993 100644 --- a/sdk/constructive-react/src/api/hooks/queries/useApisQuery.ts +++ b/sdk/constructive-react/src/api/hooks/queries/useApisQuery.ts @@ -7,40 +7,49 @@ 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 { apisKeys } from '../query-keys'; -import type { ApisSelect, ApisWithRelations } from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { ApisSelect, ApisWithRelations } from '../../orm/input-types'; +import { buildListSelectionArgs } from '../selection'; +import type { ListSelectionConfig } from '../selection'; +import { apiKeys } from '../query-keys'; +import type { ApiSelect, ApiWithRelations, ApiFilter, ApiOrderBy } from '../../orm/input-types'; +import type { + FindManyArgs, + InferSelectResult, + ConnectionResult, + HookStrictSelect, +} from '../../orm/select-types'; +export type { ApiSelect, ApiWithRelations, ApiFilter, ApiOrderBy } from '../../orm/input-types'; /** Query key factory - re-exported from query-keys.ts */ -export const apisQueryKey = apisKeys.detail; +export const apisQueryKey = apiKeys.list; /** * API surfaces exposed by this scope; publication makes a surface bindable from other scopes * * @example * ```tsx * const { data, isLoading } = useApisQuery({ - * id: 'some-id', - * selection: { fields: { id: true, name: true } }, + * selection: { + * fields: { id: true, name: true }, + * where: { name: { equalTo: "example" } }, + * orderBy: ['CREATED_AT_DESC'], + * first: 10, + * }, * }); * ``` */ export function useApisQuery< - S extends ApisSelect, + S extends ApiSelect, TData = { - apis: InferSelectResult | null; + apis: ConnectionResult>; }, >( params: { - id: string; selection: { fields: S; - } & HookStrictSelect, ApisSelect>; + } & Omit, 'fields'> & + HookStrictSelect, ApiSelect>; } & Omit< UseQueryOptions< { - apis: InferSelectResult | null; + apis: ConnectionResult>; }, Error, TData @@ -50,22 +59,15 @@ export function useApisQuery< ): UseQueryResult; export function useApisQuery( params: { - id: string; - selection: SelectionConfig; + selection: ListSelectionConfig; } & Omit, 'queryKey' | 'queryFn'> ) { - const args = buildSelectionArgs(params.selection); + const args = buildListSelectionArgs(params.selection); const { selection: _selection, ...queryOptions } = params ?? {}; void _selection; return useQuery({ - queryKey: apisKeys.detail(params.id), - queryFn: () => - getClient() - .apis.findOne({ - id: params.id, - select: args.select, - }) - .unwrap(), + queryKey: apiKeys.list(args), + queryFn: () => getClient().api.findMany(args).unwrap(), ...queryOptions, }); } @@ -75,64 +77,53 @@ export function useApisQuery( * @example * ```ts * const data = await fetchApisQuery({ - * id: 'some-id', - * selection: { fields: { id: true } }, + * selection: { + * fields: { id: true }, + * first: 10, + * }, * }); * ``` */ -export async function fetchApisQuery(params: { - id: string; +export async function fetchApisQuery(params: { selection: { fields: S; - } & HookStrictSelect, ApisSelect>; + } & Omit, 'fields'> & + HookStrictSelect, ApiSelect>; }): Promise<{ - apis: InferSelectResult | null; + apis: ConnectionResult>; }>; export async function fetchApisQuery(params: { - id: string; - selection: SelectionConfig; -}): Promise { - const args = buildSelectionArgs(params.selection); - return getClient() - .apis.findOne({ - id: params.id, - select: args.select, - }) - .unwrap(); + selection: ListSelectionConfig; +}) { + const args = buildListSelectionArgs(params.selection); + return getClient().api.findMany(args).unwrap(); } /** * API surfaces exposed by this scope; publication makes a surface bindable from other scopes * * @example * ```ts - * await prefetchApisQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } }); + * await prefetchApisQuery(queryClient, { selection: { fields: { id: true }, first: 10 } }); * ``` */ -export async function prefetchApisQuery( +export async function prefetchApisQuery( queryClient: QueryClient, params: { - id: string; selection: { fields: S; - } & HookStrictSelect, ApisSelect>; + } & Omit, 'fields'> & + HookStrictSelect, ApiSelect>; } ): Promise; export async function prefetchApisQuery( queryClient: QueryClient, params: { - id: string; - selection: SelectionConfig; + selection: ListSelectionConfig; } ): Promise { - const args = buildSelectionArgs(params.selection); + const args = buildListSelectionArgs(params.selection); await queryClient.prefetchQuery({ - queryKey: apisKeys.detail(params.id), - queryFn: () => - getClient() - .apis.findOne({ - id: params.id, - select: args.select, - }) - .unwrap(), + queryKey: apiKeys.list(args), + queryFn: () => getClient().api.findMany(args).unwrap(), }); } diff --git a/sdk/constructive-react/src/api/hooks/queries/useApisesQuery.ts b/sdk/constructive-react/src/api/hooks/queries/useApisesQuery.ts deleted file mode 100644 index eaddf7d664..0000000000 --- a/sdk/constructive-react/src/api/hooks/queries/useApisesQuery.ts +++ /dev/null @@ -1,129 +0,0 @@ -/** - * API surfaces exposed by this scope; publication makes a surface bindable from other scopes - * @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 { apisKeys } from '../query-keys'; -import type { ApisSelect, ApisWithRelations, ApisFilter, ApisOrderBy } from '../../orm/input-types'; -import type { - FindManyArgs, - InferSelectResult, - ConnectionResult, - HookStrictSelect, -} from '../../orm/select-types'; -export type { ApisSelect, ApisWithRelations, ApisFilter, ApisOrderBy } from '../../orm/input-types'; -/** Query key factory - re-exported from query-keys.ts */ -export const apisesQueryKey = apisKeys.list; -/** - * API surfaces exposed by this scope; publication makes a surface bindable from other scopes - * - * @example - * ```tsx - * const { data, isLoading } = useApisesQuery({ - * selection: { - * fields: { id: true, name: true }, - * where: { name: { equalTo: "example" } }, - * orderBy: ['CREATED_AT_DESC'], - * first: 10, - * }, - * }); - * ``` - */ -export function useApisesQuery< - S extends ApisSelect, - TData = { - apises: ConnectionResult>; - }, ->( - params: { - selection: { - fields: S; - } & Omit, 'fields'> & - HookStrictSelect, ApisSelect>; - } & Omit< - UseQueryOptions< - { - apises: ConnectionResult>; - }, - Error, - TData - >, - 'queryKey' | 'queryFn' - > -): UseQueryResult; -export function useApisesQuery( - params: { - selection: ListSelectionConfig; - } & Omit, 'queryKey' | 'queryFn'> -) { - const args = buildListSelectionArgs(params.selection); - const { selection: _selection, ...queryOptions } = params ?? {}; - void _selection; - return useQuery({ - queryKey: apisKeys.list(args), - queryFn: () => getClient().apis.findMany(args).unwrap(), - ...queryOptions, - }); -} -/** - * API surfaces exposed by this scope; publication makes a surface bindable from other scopes - * - * @example - * ```ts - * const data = await fetchApisesQuery({ - * selection: { - * fields: { id: true }, - * first: 10, - * }, - * }); - * ``` - */ -export async function fetchApisesQuery(params: { - selection: { - fields: S; - } & Omit, 'fields'> & - HookStrictSelect, ApisSelect>; -}): Promise<{ - apises: ConnectionResult>; -}>; -export async function fetchApisesQuery(params: { - selection: ListSelectionConfig; -}) { - const args = buildListSelectionArgs(params.selection); - return getClient().apis.findMany(args).unwrap(); -} -/** - * API surfaces exposed by this scope; publication makes a surface bindable from other scopes - * - * @example - * ```ts - * await prefetchApisesQuery(queryClient, { selection: { fields: { id: true }, first: 10 } }); - * ``` - */ -export async function prefetchApisesQuery( - queryClient: QueryClient, - params: { - selection: { - fields: S; - } & Omit, 'fields'> & - HookStrictSelect, ApisSelect>; - } -): Promise; -export async function prefetchApisesQuery( - queryClient: QueryClient, - params: { - selection: ListSelectionConfig; - } -): Promise { - const args = buildListSelectionArgs(params.selection); - await queryClient.prefetchQuery({ - queryKey: apisKeys.list(args), - queryFn: () => getClient().apis.findMany(args).unwrap(), - }); -} diff --git a/sdk/constructive-react/src/api/hooks/queries/useEmailIdentitiesQuery.ts b/sdk/constructive-react/src/api/hooks/queries/useEmailIdentitiesQuery.ts new file mode 100644 index 0000000000..6c83177391 --- /dev/null +++ b/sdk/constructive-react/src/api/hooks/queries/useEmailIdentitiesQuery.ts @@ -0,0 +1,151 @@ +/** + * Outbound sender identity: the from/reply-to/support addresses a tenant sends as, and the provider account the mail leaves through + * @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 { emailIdentityKeys } from '../query-keys'; +import type { + EmailIdentitySelect, + EmailIdentityWithRelations, + EmailIdentityFilter, + EmailIdentityOrderBy, +} from '../../orm/input-types'; +import type { + FindManyArgs, + InferSelectResult, + ConnectionResult, + HookStrictSelect, +} from '../../orm/select-types'; +export type { + EmailIdentitySelect, + EmailIdentityWithRelations, + EmailIdentityFilter, + EmailIdentityOrderBy, +} from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const emailIdentitiesQueryKey = emailIdentityKeys.list; +/** + * Outbound sender identity: the from/reply-to/support addresses a tenant sends as, and the provider account the mail leaves through + * + * @example + * ```tsx + * const { data, isLoading } = useEmailIdentitiesQuery({ + * selection: { + * fields: { id: true, name: true }, + * where: { name: { equalTo: "example" } }, + * orderBy: ['CREATED_AT_DESC'], + * first: 10, + * }, + * }); + * ``` + */ +export function useEmailIdentitiesQuery< + S extends EmailIdentitySelect, + TData = { + emailIdentities: ConnectionResult>; + }, +>( + params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, EmailIdentitySelect>; + } & Omit< + UseQueryOptions< + { + emailIdentities: ConnectionResult>; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useEmailIdentitiesQuery( + params: { + selection: ListSelectionConfig; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildListSelectionArgs< + EmailIdentitySelect, + EmailIdentityFilter, + EmailIdentityOrderBy + >(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: emailIdentityKeys.list(args), + queryFn: () => getClient().emailIdentity.findMany(args).unwrap(), + ...queryOptions, + }); +} +/** + * Outbound sender identity: the from/reply-to/support addresses a tenant sends as, and the provider account the mail leaves through + * + * @example + * ```ts + * const data = await fetchEmailIdentitiesQuery({ + * selection: { + * fields: { id: true }, + * first: 10, + * }, + * }); + * ``` + */ +export async function fetchEmailIdentitiesQuery(params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, EmailIdentitySelect>; +}): Promise<{ + emailIdentities: ConnectionResult>; +}>; +export async function fetchEmailIdentitiesQuery(params: { + selection: ListSelectionConfig; +}) { + const args = buildListSelectionArgs< + EmailIdentitySelect, + EmailIdentityFilter, + EmailIdentityOrderBy + >(params.selection); + return getClient().emailIdentity.findMany(args).unwrap(); +} +/** + * Outbound sender identity: the from/reply-to/support addresses a tenant sends as, and the provider account the mail leaves through + * + * @example + * ```ts + * await prefetchEmailIdentitiesQuery(queryClient, { selection: { fields: { id: true }, first: 10 } }); + * ``` + */ +export async function prefetchEmailIdentitiesQuery( + queryClient: QueryClient, + params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, EmailIdentitySelect>; + } +): Promise; +export async function prefetchEmailIdentitiesQuery( + queryClient: QueryClient, + params: { + selection: ListSelectionConfig; + } +): Promise { + const args = buildListSelectionArgs< + EmailIdentitySelect, + EmailIdentityFilter, + EmailIdentityOrderBy + >(params.selection); + await queryClient.prefetchQuery({ + queryKey: emailIdentityKeys.list(args), + queryFn: () => getClient().emailIdentity.findMany(args).unwrap(), + }); +} diff --git a/sdk/constructive-react/src/api/hooks/queries/useEmailIdentityQuery.ts b/sdk/constructive-react/src/api/hooks/queries/useEmailIdentityQuery.ts new file mode 100644 index 0000000000..ddccc37646 --- /dev/null +++ b/sdk/constructive-react/src/api/hooks/queries/useEmailIdentityQuery.ts @@ -0,0 +1,138 @@ +/** + * Outbound sender identity: the from/reply-to/support addresses a tenant sends as, and the provider account the mail leaves through + * @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 { emailIdentityKeys } from '../query-keys'; +import type { EmailIdentitySelect, EmailIdentityWithRelations } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { EmailIdentitySelect, EmailIdentityWithRelations } from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const emailIdentityQueryKey = emailIdentityKeys.detail; +/** + * Outbound sender identity: the from/reply-to/support addresses a tenant sends as, and the provider account the mail leaves through + * + * @example + * ```tsx + * const { data, isLoading } = useEmailIdentityQuery({ + * id: 'some-id', + * selection: { fields: { id: true, name: true } }, + * }); + * ``` + */ +export function useEmailIdentityQuery< + S extends EmailIdentitySelect, + TData = { + emailIdentity: InferSelectResult | null; + }, +>( + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, EmailIdentitySelect>; + } & Omit< + UseQueryOptions< + { + emailIdentity: InferSelectResult | null; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useEmailIdentityQuery( + params: { + id: string; + selection: SelectionConfig; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: emailIdentityKeys.detail(params.id), + queryFn: () => + getClient() + .emailIdentity.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + ...queryOptions, + }); +} +/** + * Outbound sender identity: the from/reply-to/support addresses a tenant sends as, and the provider account the mail leaves through + * + * @example + * ```ts + * const data = await fetchEmailIdentityQuery({ + * id: 'some-id', + * selection: { fields: { id: true } }, + * }); + * ``` + */ +export async function fetchEmailIdentityQuery(params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, EmailIdentitySelect>; +}): Promise<{ + emailIdentity: InferSelectResult | null; +}>; +export async function fetchEmailIdentityQuery(params: { + id: string; + selection: SelectionConfig; +}): Promise { + const args = buildSelectionArgs(params.selection); + return getClient() + .emailIdentity.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(); +} +/** + * Outbound sender identity: the from/reply-to/support addresses a tenant sends as, and the provider account the mail leaves through + * + * @example + * ```ts + * await prefetchEmailIdentityQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } }); + * ``` + */ +export async function prefetchEmailIdentityQuery( + queryClient: QueryClient, + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, EmailIdentitySelect>; + } +): Promise; +export async function prefetchEmailIdentityQuery( + queryClient: QueryClient, + params: { + id: string; + selection: SelectionConfig; + } +): Promise { + const args = buildSelectionArgs(params.selection); + await queryClient.prefetchQuery({ + queryKey: emailIdentityKeys.detail(params.id), + queryFn: () => + getClient() + .emailIdentity.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + }); +} diff --git a/sdk/constructive-react/src/api/hooks/queries/useEmailProviderAccountQuery.ts b/sdk/constructive-react/src/api/hooks/queries/useEmailProviderAccountQuery.ts new file mode 100644 index 0000000000..ae76bf5002 --- /dev/null +++ b/sdk/constructive-react/src/api/hooks/queries/useEmailProviderAccountQuery.ts @@ -0,0 +1,144 @@ +/** + * A tenant's configured account at an email provider: provider slug, endpoint coordinates, and the NAME of the secret holding its credentials (never the credential itself) + * @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 { emailProviderAccountKeys } from '../query-keys'; +import type { + EmailProviderAccountSelect, + EmailProviderAccountWithRelations, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + EmailProviderAccountSelect, + EmailProviderAccountWithRelations, +} from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const emailProviderAccountQueryKey = emailProviderAccountKeys.detail; +/** + * A tenant's configured account at an email provider: provider slug, endpoint coordinates, and the NAME of the secret holding its credentials (never the credential itself) + * + * @example + * ```tsx + * const { data, isLoading } = useEmailProviderAccountQuery({ + * id: 'some-id', + * selection: { fields: { id: true, name: true } }, + * }); + * ``` + */ +export function useEmailProviderAccountQuery< + S extends EmailProviderAccountSelect, + TData = { + emailProviderAccount: InferSelectResult | null; + }, +>( + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, EmailProviderAccountSelect>; + } & Omit< + UseQueryOptions< + { + emailProviderAccount: InferSelectResult | null; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useEmailProviderAccountQuery( + params: { + id: string; + selection: SelectionConfig; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: emailProviderAccountKeys.detail(params.id), + queryFn: () => + getClient() + .emailProviderAccount.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + ...queryOptions, + }); +} +/** + * A tenant's configured account at an email provider: provider slug, endpoint coordinates, and the NAME of the secret holding its credentials (never the credential itself) + * + * @example + * ```ts + * const data = await fetchEmailProviderAccountQuery({ + * id: 'some-id', + * selection: { fields: { id: true } }, + * }); + * ``` + */ +export async function fetchEmailProviderAccountQuery(params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, EmailProviderAccountSelect>; +}): Promise<{ + emailProviderAccount: InferSelectResult | null; +}>; +export async function fetchEmailProviderAccountQuery(params: { + id: string; + selection: SelectionConfig; +}): Promise { + const args = buildSelectionArgs(params.selection); + return getClient() + .emailProviderAccount.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(); +} +/** + * A tenant's configured account at an email provider: provider slug, endpoint coordinates, and the NAME of the secret holding its credentials (never the credential itself) + * + * @example + * ```ts + * await prefetchEmailProviderAccountQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } }); + * ``` + */ +export async function prefetchEmailProviderAccountQuery( + queryClient: QueryClient, + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, EmailProviderAccountSelect>; + } +): Promise; +export async function prefetchEmailProviderAccountQuery( + queryClient: QueryClient, + params: { + id: string; + selection: SelectionConfig; + } +): Promise { + const args = buildSelectionArgs(params.selection); + await queryClient.prefetchQuery({ + queryKey: emailProviderAccountKeys.detail(params.id), + queryFn: () => + getClient() + .emailProviderAccount.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + }); +} diff --git a/sdk/constructive-react/src/api/hooks/queries/useEmailProviderAccountsQuery.ts b/sdk/constructive-react/src/api/hooks/queries/useEmailProviderAccountsQuery.ts new file mode 100644 index 0000000000..4438add565 --- /dev/null +++ b/sdk/constructive-react/src/api/hooks/queries/useEmailProviderAccountsQuery.ts @@ -0,0 +1,178 @@ +/** + * A tenant's configured account at an email provider: provider slug, endpoint coordinates, and the NAME of the secret holding its credentials (never the credential itself) + * @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 { emailProviderAccountKeys } from '../query-keys'; +import type { + EmailProviderAccountSelect, + EmailProviderAccountWithRelations, + EmailProviderAccountFilter, + EmailProviderAccountOrderBy, +} from '../../orm/input-types'; +import type { + FindManyArgs, + InferSelectResult, + ConnectionResult, + HookStrictSelect, +} from '../../orm/select-types'; +export type { + EmailProviderAccountSelect, + EmailProviderAccountWithRelations, + EmailProviderAccountFilter, + EmailProviderAccountOrderBy, +} from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const emailProviderAccountsQueryKey = emailProviderAccountKeys.list; +/** + * A tenant's configured account at an email provider: provider slug, endpoint coordinates, and the NAME of the secret holding its credentials (never the credential itself) + * + * @example + * ```tsx + * const { data, isLoading } = useEmailProviderAccountsQuery({ + * selection: { + * fields: { id: true, name: true }, + * where: { name: { equalTo: "example" } }, + * orderBy: ['CREATED_AT_DESC'], + * first: 10, + * }, + * }); + * ``` + */ +export function useEmailProviderAccountsQuery< + S extends EmailProviderAccountSelect, + TData = { + emailProviderAccounts: ConnectionResult< + InferSelectResult + >; + }, +>( + params: { + selection: { + fields: S; + } & Omit< + ListSelectionConfig, + 'fields' + > & + HookStrictSelect, EmailProviderAccountSelect>; + } & Omit< + UseQueryOptions< + { + emailProviderAccounts: ConnectionResult< + InferSelectResult + >; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useEmailProviderAccountsQuery( + params: { + selection: ListSelectionConfig< + EmailProviderAccountSelect, + EmailProviderAccountFilter, + EmailProviderAccountOrderBy + >; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildListSelectionArgs< + EmailProviderAccountSelect, + EmailProviderAccountFilter, + EmailProviderAccountOrderBy + >(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: emailProviderAccountKeys.list(args), + queryFn: () => getClient().emailProviderAccount.findMany(args).unwrap(), + ...queryOptions, + }); +} +/** + * A tenant's configured account at an email provider: provider slug, endpoint coordinates, and the NAME of the secret holding its credentials (never the credential itself) + * + * @example + * ```ts + * const data = await fetchEmailProviderAccountsQuery({ + * selection: { + * fields: { id: true }, + * first: 10, + * }, + * }); + * ``` + */ +export async function fetchEmailProviderAccountsQuery< + S extends EmailProviderAccountSelect, +>(params: { + selection: { + fields: S; + } & Omit< + ListSelectionConfig, + 'fields' + > & + HookStrictSelect, EmailProviderAccountSelect>; +}): Promise<{ + emailProviderAccounts: ConnectionResult>; +}>; +export async function fetchEmailProviderAccountsQuery(params: { + selection: ListSelectionConfig< + EmailProviderAccountSelect, + EmailProviderAccountFilter, + EmailProviderAccountOrderBy + >; +}) { + const args = buildListSelectionArgs< + EmailProviderAccountSelect, + EmailProviderAccountFilter, + EmailProviderAccountOrderBy + >(params.selection); + return getClient().emailProviderAccount.findMany(args).unwrap(); +} +/** + * A tenant's configured account at an email provider: provider slug, endpoint coordinates, and the NAME of the secret holding its credentials (never the credential itself) + * + * @example + * ```ts + * await prefetchEmailProviderAccountsQuery(queryClient, { selection: { fields: { id: true }, first: 10 } }); + * ``` + */ +export async function prefetchEmailProviderAccountsQuery( + queryClient: QueryClient, + params: { + selection: { + fields: S; + } & Omit< + ListSelectionConfig, + 'fields' + > & + HookStrictSelect, EmailProviderAccountSelect>; + } +): Promise; +export async function prefetchEmailProviderAccountsQuery( + queryClient: QueryClient, + params: { + selection: ListSelectionConfig< + EmailProviderAccountSelect, + EmailProviderAccountFilter, + EmailProviderAccountOrderBy + >; + } +): Promise { + const args = buildListSelectionArgs< + EmailProviderAccountSelect, + EmailProviderAccountFilter, + EmailProviderAccountOrderBy + >(params.selection); + await queryClient.prefetchQuery({ + queryKey: emailProviderAccountKeys.list(args), + queryFn: () => getClient().emailProviderAccount.findMany(args).unwrap(), + }); +} diff --git a/sdk/constructive-react/src/api/hooks/queries/useEmailSiteIdentitiesQuery.ts b/sdk/constructive-react/src/api/hooks/queries/useEmailSiteIdentitiesQuery.ts new file mode 100644 index 0000000000..cd5600a834 --- /dev/null +++ b/sdk/constructive-react/src/api/hooks/queries/useEmailSiteIdentitiesQuery.ts @@ -0,0 +1,163 @@ +/** + * Binds a site to the identity it sends as. Unique on site_id: one identity per site, but many sites may share an identity. + * @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 { emailSiteIdentityKeys } from '../query-keys'; +import type { + EmailSiteIdentitySelect, + EmailSiteIdentityWithRelations, + EmailSiteIdentityFilter, + EmailSiteIdentityOrderBy, +} from '../../orm/input-types'; +import type { + FindManyArgs, + InferSelectResult, + ConnectionResult, + HookStrictSelect, +} from '../../orm/select-types'; +export type { + EmailSiteIdentitySelect, + EmailSiteIdentityWithRelations, + EmailSiteIdentityFilter, + EmailSiteIdentityOrderBy, +} from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const emailSiteIdentitiesQueryKey = emailSiteIdentityKeys.list; +/** + * Binds a site to the identity it sends as. Unique on site_id: one identity per site, but many sites may share an identity. + * + * @example + * ```tsx + * const { data, isLoading } = useEmailSiteIdentitiesQuery({ + * selection: { + * fields: { id: true, name: true }, + * where: { name: { equalTo: "example" } }, + * orderBy: ['CREATED_AT_DESC'], + * first: 10, + * }, + * }); + * ``` + */ +export function useEmailSiteIdentitiesQuery< + S extends EmailSiteIdentitySelect, + TData = { + emailSiteIdentities: ConnectionResult>; + }, +>( + params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, EmailSiteIdentitySelect>; + } & Omit< + UseQueryOptions< + { + emailSiteIdentities: ConnectionResult>; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useEmailSiteIdentitiesQuery( + params: { + selection: ListSelectionConfig< + EmailSiteIdentitySelect, + EmailSiteIdentityFilter, + EmailSiteIdentityOrderBy + >; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildListSelectionArgs< + EmailSiteIdentitySelect, + EmailSiteIdentityFilter, + EmailSiteIdentityOrderBy + >(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: emailSiteIdentityKeys.list(args), + queryFn: () => getClient().emailSiteIdentity.findMany(args).unwrap(), + ...queryOptions, + }); +} +/** + * Binds a site to the identity it sends as. Unique on site_id: one identity per site, but many sites may share an identity. + * + * @example + * ```ts + * const data = await fetchEmailSiteIdentitiesQuery({ + * selection: { + * fields: { id: true }, + * first: 10, + * }, + * }); + * ``` + */ +export async function fetchEmailSiteIdentitiesQuery(params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, EmailSiteIdentitySelect>; +}): Promise<{ + emailSiteIdentities: ConnectionResult>; +}>; +export async function fetchEmailSiteIdentitiesQuery(params: { + selection: ListSelectionConfig< + EmailSiteIdentitySelect, + EmailSiteIdentityFilter, + EmailSiteIdentityOrderBy + >; +}) { + const args = buildListSelectionArgs< + EmailSiteIdentitySelect, + EmailSiteIdentityFilter, + EmailSiteIdentityOrderBy + >(params.selection); + return getClient().emailSiteIdentity.findMany(args).unwrap(); +} +/** + * Binds a site to the identity it sends as. Unique on site_id: one identity per site, but many sites may share an identity. + * + * @example + * ```ts + * await prefetchEmailSiteIdentitiesQuery(queryClient, { selection: { fields: { id: true }, first: 10 } }); + * ``` + */ +export async function prefetchEmailSiteIdentitiesQuery( + queryClient: QueryClient, + params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, EmailSiteIdentitySelect>; + } +): Promise; +export async function prefetchEmailSiteIdentitiesQuery( + queryClient: QueryClient, + params: { + selection: ListSelectionConfig< + EmailSiteIdentitySelect, + EmailSiteIdentityFilter, + EmailSiteIdentityOrderBy + >; + } +): Promise { + const args = buildListSelectionArgs< + EmailSiteIdentitySelect, + EmailSiteIdentityFilter, + EmailSiteIdentityOrderBy + >(params.selection); + await queryClient.prefetchQuery({ + queryKey: emailSiteIdentityKeys.list(args), + queryFn: () => getClient().emailSiteIdentity.findMany(args).unwrap(), + }); +} diff --git a/sdk/constructive-react/src/api/hooks/queries/useEmailSiteIdentityQuery.ts b/sdk/constructive-react/src/api/hooks/queries/useEmailSiteIdentityQuery.ts new file mode 100644 index 0000000000..2e63e89069 --- /dev/null +++ b/sdk/constructive-react/src/api/hooks/queries/useEmailSiteIdentityQuery.ts @@ -0,0 +1,144 @@ +/** + * Binds a site to the identity it sends as. Unique on site_id: one identity per site, but many sites may share an identity. + * @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 { emailSiteIdentityKeys } from '../query-keys'; +import type { + EmailSiteIdentitySelect, + EmailSiteIdentityWithRelations, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + EmailSiteIdentitySelect, + EmailSiteIdentityWithRelations, +} from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const emailSiteIdentityQueryKey = emailSiteIdentityKeys.detail; +/** + * Binds a site to the identity it sends as. Unique on site_id: one identity per site, but many sites may share an identity. + * + * @example + * ```tsx + * const { data, isLoading } = useEmailSiteIdentityQuery({ + * id: 'some-id', + * selection: { fields: { id: true, name: true } }, + * }); + * ``` + */ +export function useEmailSiteIdentityQuery< + S extends EmailSiteIdentitySelect, + TData = { + emailSiteIdentity: InferSelectResult | null; + }, +>( + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, EmailSiteIdentitySelect>; + } & Omit< + UseQueryOptions< + { + emailSiteIdentity: InferSelectResult | null; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useEmailSiteIdentityQuery( + params: { + id: string; + selection: SelectionConfig; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: emailSiteIdentityKeys.detail(params.id), + queryFn: () => + getClient() + .emailSiteIdentity.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + ...queryOptions, + }); +} +/** + * Binds a site to the identity it sends as. Unique on site_id: one identity per site, but many sites may share an identity. + * + * @example + * ```ts + * const data = await fetchEmailSiteIdentityQuery({ + * id: 'some-id', + * selection: { fields: { id: true } }, + * }); + * ``` + */ +export async function fetchEmailSiteIdentityQuery(params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, EmailSiteIdentitySelect>; +}): Promise<{ + emailSiteIdentity: InferSelectResult | null; +}>; +export async function fetchEmailSiteIdentityQuery(params: { + id: string; + selection: SelectionConfig; +}): Promise { + const args = buildSelectionArgs(params.selection); + return getClient() + .emailSiteIdentity.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(); +} +/** + * Binds a site to the identity it sends as. Unique on site_id: one identity per site, but many sites may share an identity. + * + * @example + * ```ts + * await prefetchEmailSiteIdentityQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } }); + * ``` + */ +export async function prefetchEmailSiteIdentityQuery( + queryClient: QueryClient, + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, EmailSiteIdentitySelect>; + } +): Promise; +export async function prefetchEmailSiteIdentityQuery( + queryClient: QueryClient, + params: { + id: string; + selection: SelectionConfig; + } +): Promise { + const args = buildSelectionArgs(params.selection); + await queryClient.prefetchQuery({ + queryKey: emailSiteIdentityKeys.detail(params.id), + queryFn: () => + getClient() + .emailSiteIdentity.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + }); +} diff --git a/sdk/constructive-react/src/api/hooks/queries/usePlatformApiQuery.ts b/sdk/constructive-react/src/api/hooks/queries/usePlatformApiQuery.ts new file mode 100644 index 0000000000..d3e15ed945 --- /dev/null +++ b/sdk/constructive-react/src/api/hooks/queries/usePlatformApiQuery.ts @@ -0,0 +1,138 @@ +/** + * API surfaces exposed by this scope; publication makes a surface bindable from other scopes + * @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 { platformApiKeys } from '../query-keys'; +import type { PlatformApiSelect, PlatformApiWithRelations } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { PlatformApiSelect, PlatformApiWithRelations } from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const platformApiQueryKey = platformApiKeys.detail; +/** + * API surfaces exposed by this scope; publication makes a surface bindable from other scopes + * + * @example + * ```tsx + * const { data, isLoading } = usePlatformApiQuery({ + * id: 'some-id', + * selection: { fields: { id: true, name: true } }, + * }); + * ``` + */ +export function usePlatformApiQuery< + S extends PlatformApiSelect, + TData = { + platformApi: InferSelectResult | null; + }, +>( + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, PlatformApiSelect>; + } & Omit< + UseQueryOptions< + { + platformApi: InferSelectResult | null; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function usePlatformApiQuery( + params: { + id: string; + selection: SelectionConfig; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: platformApiKeys.detail(params.id), + queryFn: () => + getClient() + .platformApi.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + ...queryOptions, + }); +} +/** + * API surfaces exposed by this scope; publication makes a surface bindable from other scopes + * + * @example + * ```ts + * const data = await fetchPlatformApiQuery({ + * id: 'some-id', + * selection: { fields: { id: true } }, + * }); + * ``` + */ +export async function fetchPlatformApiQuery(params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, PlatformApiSelect>; +}): Promise<{ + platformApi: InferSelectResult | null; +}>; +export async function fetchPlatformApiQuery(params: { + id: string; + selection: SelectionConfig; +}): Promise { + const args = buildSelectionArgs(params.selection); + return getClient() + .platformApi.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(); +} +/** + * API surfaces exposed by this scope; publication makes a surface bindable from other scopes + * + * @example + * ```ts + * await prefetchPlatformApiQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } }); + * ``` + */ +export async function prefetchPlatformApiQuery( + queryClient: QueryClient, + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, PlatformApiSelect>; + } +): Promise; +export async function prefetchPlatformApiQuery( + queryClient: QueryClient, + params: { + id: string; + selection: SelectionConfig; + } +): Promise { + const args = buildSelectionArgs(params.selection); + await queryClient.prefetchQuery({ + queryKey: platformApiKeys.detail(params.id), + queryFn: () => + getClient() + .platformApi.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + }); +} diff --git a/sdk/constructive-react/src/api/hooks/queries/usePlatformApisQuery.ts b/sdk/constructive-react/src/api/hooks/queries/usePlatformApisQuery.ts index a7da730853..37b47ae91c 100644 --- a/sdk/constructive-react/src/api/hooks/queries/usePlatformApisQuery.ts +++ b/sdk/constructive-react/src/api/hooks/queries/usePlatformApisQuery.ts @@ -7,40 +7,59 @@ 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 { platformApisKeys } from '../query-keys'; -import type { PlatformApisSelect, PlatformApisWithRelations } from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { PlatformApisSelect, PlatformApisWithRelations } from '../../orm/input-types'; +import { buildListSelectionArgs } from '../selection'; +import type { ListSelectionConfig } from '../selection'; +import { platformApiKeys } from '../query-keys'; +import type { + PlatformApiSelect, + PlatformApiWithRelations, + PlatformApiFilter, + PlatformApiOrderBy, +} from '../../orm/input-types'; +import type { + FindManyArgs, + InferSelectResult, + ConnectionResult, + HookStrictSelect, +} from '../../orm/select-types'; +export type { + PlatformApiSelect, + PlatformApiWithRelations, + PlatformApiFilter, + PlatformApiOrderBy, +} from '../../orm/input-types'; /** Query key factory - re-exported from query-keys.ts */ -export const platformApisQueryKey = platformApisKeys.detail; +export const platformApisQueryKey = platformApiKeys.list; /** * API surfaces exposed by this scope; publication makes a surface bindable from other scopes * * @example * ```tsx * const { data, isLoading } = usePlatformApisQuery({ - * id: 'some-id', - * selection: { fields: { id: true, name: true } }, + * selection: { + * fields: { id: true, name: true }, + * where: { name: { equalTo: "example" } }, + * orderBy: ['CREATED_AT_DESC'], + * first: 10, + * }, * }); * ``` */ export function usePlatformApisQuery< - S extends PlatformApisSelect, + S extends PlatformApiSelect, TData = { - platformApis: InferSelectResult | null; + platformApis: ConnectionResult>; }, >( params: { - id: string; selection: { fields: S; - } & HookStrictSelect, PlatformApisSelect>; + } & Omit, 'fields'> & + HookStrictSelect, PlatformApiSelect>; } & Omit< UseQueryOptions< { - platformApis: InferSelectResult | null; + platformApis: ConnectionResult>; }, Error, TData @@ -50,22 +69,17 @@ export function usePlatformApisQuery< ): UseQueryResult; export function usePlatformApisQuery( params: { - id: string; - selection: SelectionConfig; + selection: ListSelectionConfig; } & Omit, 'queryKey' | 'queryFn'> ) { - const args = buildSelectionArgs(params.selection); + const args = buildListSelectionArgs( + params.selection + ); const { selection: _selection, ...queryOptions } = params ?? {}; void _selection; return useQuery({ - queryKey: platformApisKeys.detail(params.id), - queryFn: () => - getClient() - .platformApis.findOne({ - id: params.id, - select: args.select, - }) - .unwrap(), + queryKey: platformApiKeys.list(args), + queryFn: () => getClient().platformApi.findMany(args).unwrap(), ...queryOptions, }); } @@ -75,64 +89,57 @@ export function usePlatformApisQuery( * @example * ```ts * const data = await fetchPlatformApisQuery({ - * id: 'some-id', - * selection: { fields: { id: true } }, + * selection: { + * fields: { id: true }, + * first: 10, + * }, * }); * ``` */ -export async function fetchPlatformApisQuery(params: { - id: string; +export async function fetchPlatformApisQuery(params: { selection: { fields: S; - } & HookStrictSelect, PlatformApisSelect>; + } & Omit, 'fields'> & + HookStrictSelect, PlatformApiSelect>; }): Promise<{ - platformApis: InferSelectResult | null; + platformApis: ConnectionResult>; }>; export async function fetchPlatformApisQuery(params: { - id: string; - selection: SelectionConfig; -}): Promise { - const args = buildSelectionArgs(params.selection); - return getClient() - .platformApis.findOne({ - id: params.id, - select: args.select, - }) - .unwrap(); + selection: ListSelectionConfig; +}) { + const args = buildListSelectionArgs( + params.selection + ); + return getClient().platformApi.findMany(args).unwrap(); } /** * API surfaces exposed by this scope; publication makes a surface bindable from other scopes * * @example * ```ts - * await prefetchPlatformApisQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } }); + * await prefetchPlatformApisQuery(queryClient, { selection: { fields: { id: true }, first: 10 } }); * ``` */ -export async function prefetchPlatformApisQuery( +export async function prefetchPlatformApisQuery( queryClient: QueryClient, params: { - id: string; selection: { fields: S; - } & HookStrictSelect, PlatformApisSelect>; + } & Omit, 'fields'> & + HookStrictSelect, PlatformApiSelect>; } ): Promise; export async function prefetchPlatformApisQuery( queryClient: QueryClient, params: { - id: string; - selection: SelectionConfig; + selection: ListSelectionConfig; } ): Promise { - const args = buildSelectionArgs(params.selection); + const args = buildListSelectionArgs( + params.selection + ); await queryClient.prefetchQuery({ - queryKey: platformApisKeys.detail(params.id), - queryFn: () => - getClient() - .platformApis.findOne({ - id: params.id, - select: args.select, - }) - .unwrap(), + queryKey: platformApiKeys.list(args), + queryFn: () => getClient().platformApi.findMany(args).unwrap(), }); } diff --git a/sdk/constructive-react/src/api/hooks/queries/usePlatformApisesQuery.ts b/sdk/constructive-react/src/api/hooks/queries/usePlatformApisesQuery.ts deleted file mode 100644 index 1151252632..0000000000 --- a/sdk/constructive-react/src/api/hooks/queries/usePlatformApisesQuery.ts +++ /dev/null @@ -1,145 +0,0 @@ -/** - * API surfaces exposed by this scope; publication makes a surface bindable from other scopes - * @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 { platformApisKeys } from '../query-keys'; -import type { - PlatformApisSelect, - PlatformApisWithRelations, - PlatformApisFilter, - PlatformApisOrderBy, -} from '../../orm/input-types'; -import type { - FindManyArgs, - InferSelectResult, - ConnectionResult, - HookStrictSelect, -} from '../../orm/select-types'; -export type { - PlatformApisSelect, - PlatformApisWithRelations, - PlatformApisFilter, - PlatformApisOrderBy, -} from '../../orm/input-types'; -/** Query key factory - re-exported from query-keys.ts */ -export const platformApisesQueryKey = platformApisKeys.list; -/** - * API surfaces exposed by this scope; publication makes a surface bindable from other scopes - * - * @example - * ```tsx - * const { data, isLoading } = usePlatformApisesQuery({ - * selection: { - * fields: { id: true, name: true }, - * where: { name: { equalTo: "example" } }, - * orderBy: ['CREATED_AT_DESC'], - * first: 10, - * }, - * }); - * ``` - */ -export function usePlatformApisesQuery< - S extends PlatformApisSelect, - TData = { - platformApises: ConnectionResult>; - }, ->( - params: { - selection: { - fields: S; - } & Omit, 'fields'> & - HookStrictSelect, PlatformApisSelect>; - } & Omit< - UseQueryOptions< - { - platformApises: ConnectionResult>; - }, - Error, - TData - >, - 'queryKey' | 'queryFn' - > -): UseQueryResult; -export function usePlatformApisesQuery( - params: { - selection: ListSelectionConfig; - } & Omit, 'queryKey' | 'queryFn'> -) { - const args = buildListSelectionArgs( - params.selection - ); - const { selection: _selection, ...queryOptions } = params ?? {}; - void _selection; - return useQuery({ - queryKey: platformApisKeys.list(args), - queryFn: () => getClient().platformApis.findMany(args).unwrap(), - ...queryOptions, - }); -} -/** - * API surfaces exposed by this scope; publication makes a surface bindable from other scopes - * - * @example - * ```ts - * const data = await fetchPlatformApisesQuery({ - * selection: { - * fields: { id: true }, - * first: 10, - * }, - * }); - * ``` - */ -export async function fetchPlatformApisesQuery(params: { - selection: { - fields: S; - } & Omit, 'fields'> & - HookStrictSelect, PlatformApisSelect>; -}): Promise<{ - platformApises: ConnectionResult>; -}>; -export async function fetchPlatformApisesQuery(params: { - selection: ListSelectionConfig; -}) { - const args = buildListSelectionArgs( - params.selection - ); - return getClient().platformApis.findMany(args).unwrap(); -} -/** - * API surfaces exposed by this scope; publication makes a surface bindable from other scopes - * - * @example - * ```ts - * await prefetchPlatformApisesQuery(queryClient, { selection: { fields: { id: true }, first: 10 } }); - * ``` - */ -export async function prefetchPlatformApisesQuery( - queryClient: QueryClient, - params: { - selection: { - fields: S; - } & Omit, 'fields'> & - HookStrictSelect, PlatformApisSelect>; - } -): Promise; -export async function prefetchPlatformApisesQuery( - queryClient: QueryClient, - params: { - selection: ListSelectionConfig; - } -): Promise { - const args = buildListSelectionArgs( - params.selection - ); - await queryClient.prefetchQuery({ - queryKey: platformApisKeys.list(args), - queryFn: () => getClient().platformApis.findMany(args).unwrap(), - }); -} diff --git a/sdk/constructive-react/src/api/hooks/queries/usePlatformEmailIdentitiesQuery.ts b/sdk/constructive-react/src/api/hooks/queries/usePlatformEmailIdentitiesQuery.ts new file mode 100644 index 0000000000..abf6281ed4 --- /dev/null +++ b/sdk/constructive-react/src/api/hooks/queries/usePlatformEmailIdentitiesQuery.ts @@ -0,0 +1,180 @@ +/** + * Outbound sender identity: the from/reply-to/support addresses a tenant sends as, and the provider account the mail leaves through + * @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 { platformEmailIdentityKeys } from '../query-keys'; +import type { + PlatformEmailIdentitySelect, + PlatformEmailIdentityWithRelations, + PlatformEmailIdentityFilter, + PlatformEmailIdentityOrderBy, +} from '../../orm/input-types'; +import type { + FindManyArgs, + InferSelectResult, + ConnectionResult, + HookStrictSelect, +} from '../../orm/select-types'; +export type { + PlatformEmailIdentitySelect, + PlatformEmailIdentityWithRelations, + PlatformEmailIdentityFilter, + PlatformEmailIdentityOrderBy, +} from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const platformEmailIdentitiesQueryKey = platformEmailIdentityKeys.list; +/** + * Outbound sender identity: the from/reply-to/support addresses a tenant sends as, and the provider account the mail leaves through + * + * @example + * ```tsx + * const { data, isLoading } = usePlatformEmailIdentitiesQuery({ + * selection: { + * fields: { id: true, name: true }, + * where: { name: { equalTo: "example" } }, + * orderBy: ['CREATED_AT_DESC'], + * first: 10, + * }, + * }); + * ``` + */ +export function usePlatformEmailIdentitiesQuery< + S extends PlatformEmailIdentitySelect, + TData = { + platformEmailIdentities: ConnectionResult< + InferSelectResult + >; + }, +>( + params: { + selection: { + fields: S; + } & Omit< + ListSelectionConfig, + 'fields' + > & + HookStrictSelect, PlatformEmailIdentitySelect>; + } & Omit< + UseQueryOptions< + { + platformEmailIdentities: ConnectionResult< + InferSelectResult + >; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function usePlatformEmailIdentitiesQuery( + params: { + selection: ListSelectionConfig< + PlatformEmailIdentitySelect, + PlatformEmailIdentityFilter, + PlatformEmailIdentityOrderBy + >; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildListSelectionArgs< + PlatformEmailIdentitySelect, + PlatformEmailIdentityFilter, + PlatformEmailIdentityOrderBy + >(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: platformEmailIdentityKeys.list(args), + queryFn: () => getClient().platformEmailIdentity.findMany(args).unwrap(), + ...queryOptions, + }); +} +/** + * Outbound sender identity: the from/reply-to/support addresses a tenant sends as, and the provider account the mail leaves through + * + * @example + * ```ts + * const data = await fetchPlatformEmailIdentitiesQuery({ + * selection: { + * fields: { id: true }, + * first: 10, + * }, + * }); + * ``` + */ +export async function fetchPlatformEmailIdentitiesQuery< + S extends PlatformEmailIdentitySelect, +>(params: { + selection: { + fields: S; + } & Omit< + ListSelectionConfig, + 'fields' + > & + HookStrictSelect, PlatformEmailIdentitySelect>; +}): Promise<{ + platformEmailIdentities: ConnectionResult< + InferSelectResult + >; +}>; +export async function fetchPlatformEmailIdentitiesQuery(params: { + selection: ListSelectionConfig< + PlatformEmailIdentitySelect, + PlatformEmailIdentityFilter, + PlatformEmailIdentityOrderBy + >; +}) { + const args = buildListSelectionArgs< + PlatformEmailIdentitySelect, + PlatformEmailIdentityFilter, + PlatformEmailIdentityOrderBy + >(params.selection); + return getClient().platformEmailIdentity.findMany(args).unwrap(); +} +/** + * Outbound sender identity: the from/reply-to/support addresses a tenant sends as, and the provider account the mail leaves through + * + * @example + * ```ts + * await prefetchPlatformEmailIdentitiesQuery(queryClient, { selection: { fields: { id: true }, first: 10 } }); + * ``` + */ +export async function prefetchPlatformEmailIdentitiesQuery( + queryClient: QueryClient, + params: { + selection: { + fields: S; + } & Omit< + ListSelectionConfig, + 'fields' + > & + HookStrictSelect, PlatformEmailIdentitySelect>; + } +): Promise; +export async function prefetchPlatformEmailIdentitiesQuery( + queryClient: QueryClient, + params: { + selection: ListSelectionConfig< + PlatformEmailIdentitySelect, + PlatformEmailIdentityFilter, + PlatformEmailIdentityOrderBy + >; + } +): Promise { + const args = buildListSelectionArgs< + PlatformEmailIdentitySelect, + PlatformEmailIdentityFilter, + PlatformEmailIdentityOrderBy + >(params.selection); + await queryClient.prefetchQuery({ + queryKey: platformEmailIdentityKeys.list(args), + queryFn: () => getClient().platformEmailIdentity.findMany(args).unwrap(), + }); +} diff --git a/sdk/constructive-react/src/api/hooks/queries/usePlatformEmailIdentityQuery.ts b/sdk/constructive-react/src/api/hooks/queries/usePlatformEmailIdentityQuery.ts new file mode 100644 index 0000000000..b4b535f755 --- /dev/null +++ b/sdk/constructive-react/src/api/hooks/queries/usePlatformEmailIdentityQuery.ts @@ -0,0 +1,146 @@ +/** + * Outbound sender identity: the from/reply-to/support addresses a tenant sends as, and the provider account the mail leaves through + * @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 { platformEmailIdentityKeys } from '../query-keys'; +import type { + PlatformEmailIdentitySelect, + PlatformEmailIdentityWithRelations, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + PlatformEmailIdentitySelect, + PlatformEmailIdentityWithRelations, +} from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const platformEmailIdentityQueryKey = platformEmailIdentityKeys.detail; +/** + * Outbound sender identity: the from/reply-to/support addresses a tenant sends as, and the provider account the mail leaves through + * + * @example + * ```tsx + * const { data, isLoading } = usePlatformEmailIdentityQuery({ + * id: 'some-id', + * selection: { fields: { id: true, name: true } }, + * }); + * ``` + */ +export function usePlatformEmailIdentityQuery< + S extends PlatformEmailIdentitySelect, + TData = { + platformEmailIdentity: InferSelectResult | null; + }, +>( + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, PlatformEmailIdentitySelect>; + } & Omit< + UseQueryOptions< + { + platformEmailIdentity: InferSelectResult | null; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function usePlatformEmailIdentityQuery( + params: { + id: string; + selection: SelectionConfig; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: platformEmailIdentityKeys.detail(params.id), + queryFn: () => + getClient() + .platformEmailIdentity.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + ...queryOptions, + }); +} +/** + * Outbound sender identity: the from/reply-to/support addresses a tenant sends as, and the provider account the mail leaves through + * + * @example + * ```ts + * const data = await fetchPlatformEmailIdentityQuery({ + * id: 'some-id', + * selection: { fields: { id: true } }, + * }); + * ``` + */ +export async function fetchPlatformEmailIdentityQuery< + S extends PlatformEmailIdentitySelect, +>(params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, PlatformEmailIdentitySelect>; +}): Promise<{ + platformEmailIdentity: InferSelectResult | null; +}>; +export async function fetchPlatformEmailIdentityQuery(params: { + id: string; + selection: SelectionConfig; +}): Promise { + const args = buildSelectionArgs(params.selection); + return getClient() + .platformEmailIdentity.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(); +} +/** + * Outbound sender identity: the from/reply-to/support addresses a tenant sends as, and the provider account the mail leaves through + * + * @example + * ```ts + * await prefetchPlatformEmailIdentityQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } }); + * ``` + */ +export async function prefetchPlatformEmailIdentityQuery( + queryClient: QueryClient, + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, PlatformEmailIdentitySelect>; + } +): Promise; +export async function prefetchPlatformEmailIdentityQuery( + queryClient: QueryClient, + params: { + id: string; + selection: SelectionConfig; + } +): Promise { + const args = buildSelectionArgs(params.selection); + await queryClient.prefetchQuery({ + queryKey: platformEmailIdentityKeys.detail(params.id), + queryFn: () => + getClient() + .platformEmailIdentity.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + }); +} diff --git a/sdk/constructive-react/src/api/hooks/queries/usePlatformEmailProviderAccountQuery.ts b/sdk/constructive-react/src/api/hooks/queries/usePlatformEmailProviderAccountQuery.ts new file mode 100644 index 0000000000..9a631443fa --- /dev/null +++ b/sdk/constructive-react/src/api/hooks/queries/usePlatformEmailProviderAccountQuery.ts @@ -0,0 +1,157 @@ +/** + * A tenant's configured account at an email provider: provider slug, endpoint coordinates, and the NAME of the secret holding its credentials (never the credential itself) + * @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 { platformEmailProviderAccountKeys } from '../query-keys'; +import type { + PlatformEmailProviderAccountSelect, + PlatformEmailProviderAccountWithRelations, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + PlatformEmailProviderAccountSelect, + PlatformEmailProviderAccountWithRelations, +} from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const platformEmailProviderAccountQueryKey = platformEmailProviderAccountKeys.detail; +/** + * A tenant's configured account at an email provider: provider slug, endpoint coordinates, and the NAME of the secret holding its credentials (never the credential itself) + * + * @example + * ```tsx + * const { data, isLoading } = usePlatformEmailProviderAccountQuery({ + * id: 'some-id', + * selection: { fields: { id: true, name: true } }, + * }); + * ``` + */ +export function usePlatformEmailProviderAccountQuery< + S extends PlatformEmailProviderAccountSelect, + TData = { + platformEmailProviderAccount: InferSelectResult< + PlatformEmailProviderAccountWithRelations, + S + > | null; + }, +>( + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, PlatformEmailProviderAccountSelect>; + } & Omit< + UseQueryOptions< + { + platformEmailProviderAccount: InferSelectResult< + PlatformEmailProviderAccountWithRelations, + S + > | null; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function usePlatformEmailProviderAccountQuery( + params: { + id: string; + selection: SelectionConfig; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: platformEmailProviderAccountKeys.detail(params.id), + queryFn: () => + getClient() + .platformEmailProviderAccount.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + ...queryOptions, + }); +} +/** + * A tenant's configured account at an email provider: provider slug, endpoint coordinates, and the NAME of the secret holding its credentials (never the credential itself) + * + * @example + * ```ts + * const data = await fetchPlatformEmailProviderAccountQuery({ + * id: 'some-id', + * selection: { fields: { id: true } }, + * }); + * ``` + */ +export async function fetchPlatformEmailProviderAccountQuery< + S extends PlatformEmailProviderAccountSelect, +>(params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, PlatformEmailProviderAccountSelect>; +}): Promise<{ + platformEmailProviderAccount: InferSelectResult< + PlatformEmailProviderAccountWithRelations, + S + > | null; +}>; +export async function fetchPlatformEmailProviderAccountQuery(params: { + id: string; + selection: SelectionConfig; +}): Promise { + const args = buildSelectionArgs(params.selection); + return getClient() + .platformEmailProviderAccount.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(); +} +/** + * A tenant's configured account at an email provider: provider slug, endpoint coordinates, and the NAME of the secret holding its credentials (never the credential itself) + * + * @example + * ```ts + * await prefetchPlatformEmailProviderAccountQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } }); + * ``` + */ +export async function prefetchPlatformEmailProviderAccountQuery< + S extends PlatformEmailProviderAccountSelect, +>( + queryClient: QueryClient, + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, PlatformEmailProviderAccountSelect>; + } +): Promise; +export async function prefetchPlatformEmailProviderAccountQuery( + queryClient: QueryClient, + params: { + id: string; + selection: SelectionConfig; + } +): Promise { + const args = buildSelectionArgs(params.selection); + await queryClient.prefetchQuery({ + queryKey: platformEmailProviderAccountKeys.detail(params.id), + queryFn: () => + getClient() + .platformEmailProviderAccount.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + }); +} diff --git a/sdk/constructive-react/src/api/hooks/queries/usePlatformEmailProviderAccountsQuery.ts b/sdk/constructive-react/src/api/hooks/queries/usePlatformEmailProviderAccountsQuery.ts new file mode 100644 index 0000000000..f1798beddc --- /dev/null +++ b/sdk/constructive-react/src/api/hooks/queries/usePlatformEmailProviderAccountsQuery.ts @@ -0,0 +1,190 @@ +/** + * A tenant's configured account at an email provider: provider slug, endpoint coordinates, and the NAME of the secret holding its credentials (never the credential itself) + * @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 { platformEmailProviderAccountKeys } from '../query-keys'; +import type { + PlatformEmailProviderAccountSelect, + PlatformEmailProviderAccountWithRelations, + PlatformEmailProviderAccountFilter, + PlatformEmailProviderAccountOrderBy, +} from '../../orm/input-types'; +import type { + FindManyArgs, + InferSelectResult, + ConnectionResult, + HookStrictSelect, +} from '../../orm/select-types'; +export type { + PlatformEmailProviderAccountSelect, + PlatformEmailProviderAccountWithRelations, + PlatformEmailProviderAccountFilter, + PlatformEmailProviderAccountOrderBy, +} from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const platformEmailProviderAccountsQueryKey = platformEmailProviderAccountKeys.list; +/** + * A tenant's configured account at an email provider: provider slug, endpoint coordinates, and the NAME of the secret holding its credentials (never the credential itself) + * + * @example + * ```tsx + * const { data, isLoading } = usePlatformEmailProviderAccountsQuery({ + * selection: { + * fields: { id: true, name: true }, + * where: { name: { equalTo: "example" } }, + * orderBy: ['CREATED_AT_DESC'], + * first: 10, + * }, + * }); + * ``` + */ +export function usePlatformEmailProviderAccountsQuery< + S extends PlatformEmailProviderAccountSelect, + TData = { + platformEmailProviderAccounts: ConnectionResult< + InferSelectResult + >; + }, +>( + params: { + selection: { + fields: S; + } & Omit< + ListSelectionConfig< + S, + PlatformEmailProviderAccountFilter, + PlatformEmailProviderAccountOrderBy + >, + 'fields' + > & + HookStrictSelect, PlatformEmailProviderAccountSelect>; + } & Omit< + UseQueryOptions< + { + platformEmailProviderAccounts: ConnectionResult< + InferSelectResult + >; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function usePlatformEmailProviderAccountsQuery( + params: { + selection: ListSelectionConfig< + PlatformEmailProviderAccountSelect, + PlatformEmailProviderAccountFilter, + PlatformEmailProviderAccountOrderBy + >; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildListSelectionArgs< + PlatformEmailProviderAccountSelect, + PlatformEmailProviderAccountFilter, + PlatformEmailProviderAccountOrderBy + >(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: platformEmailProviderAccountKeys.list(args), + queryFn: () => getClient().platformEmailProviderAccount.findMany(args).unwrap(), + ...queryOptions, + }); +} +/** + * A tenant's configured account at an email provider: provider slug, endpoint coordinates, and the NAME of the secret holding its credentials (never the credential itself) + * + * @example + * ```ts + * const data = await fetchPlatformEmailProviderAccountsQuery({ + * selection: { + * fields: { id: true }, + * first: 10, + * }, + * }); + * ``` + */ +export async function fetchPlatformEmailProviderAccountsQuery< + S extends PlatformEmailProviderAccountSelect, +>(params: { + selection: { + fields: S; + } & Omit< + ListSelectionConfig, + 'fields' + > & + HookStrictSelect, PlatformEmailProviderAccountSelect>; +}): Promise<{ + platformEmailProviderAccounts: ConnectionResult< + InferSelectResult + >; +}>; +export async function fetchPlatformEmailProviderAccountsQuery(params: { + selection: ListSelectionConfig< + PlatformEmailProviderAccountSelect, + PlatformEmailProviderAccountFilter, + PlatformEmailProviderAccountOrderBy + >; +}) { + const args = buildListSelectionArgs< + PlatformEmailProviderAccountSelect, + PlatformEmailProviderAccountFilter, + PlatformEmailProviderAccountOrderBy + >(params.selection); + return getClient().platformEmailProviderAccount.findMany(args).unwrap(); +} +/** + * A tenant's configured account at an email provider: provider slug, endpoint coordinates, and the NAME of the secret holding its credentials (never the credential itself) + * + * @example + * ```ts + * await prefetchPlatformEmailProviderAccountsQuery(queryClient, { selection: { fields: { id: true }, first: 10 } }); + * ``` + */ +export async function prefetchPlatformEmailProviderAccountsQuery< + S extends PlatformEmailProviderAccountSelect, +>( + queryClient: QueryClient, + params: { + selection: { + fields: S; + } & Omit< + ListSelectionConfig< + S, + PlatformEmailProviderAccountFilter, + PlatformEmailProviderAccountOrderBy + >, + 'fields' + > & + HookStrictSelect, PlatformEmailProviderAccountSelect>; + } +): Promise; +export async function prefetchPlatformEmailProviderAccountsQuery( + queryClient: QueryClient, + params: { + selection: ListSelectionConfig< + PlatformEmailProviderAccountSelect, + PlatformEmailProviderAccountFilter, + PlatformEmailProviderAccountOrderBy + >; + } +): Promise { + const args = buildListSelectionArgs< + PlatformEmailProviderAccountSelect, + PlatformEmailProviderAccountFilter, + PlatformEmailProviderAccountOrderBy + >(params.selection); + await queryClient.prefetchQuery({ + queryKey: platformEmailProviderAccountKeys.list(args), + queryFn: () => getClient().platformEmailProviderAccount.findMany(args).unwrap(), + }); +} diff --git a/sdk/constructive-react/src/api/hooks/queries/usePlatformEmailSiteIdentitiesQuery.ts b/sdk/constructive-react/src/api/hooks/queries/usePlatformEmailSiteIdentitiesQuery.ts new file mode 100644 index 0000000000..a399dd7910 --- /dev/null +++ b/sdk/constructive-react/src/api/hooks/queries/usePlatformEmailSiteIdentitiesQuery.ts @@ -0,0 +1,182 @@ +/** + * Binds a site to the identity it sends as. Unique on site_id: one identity per site, but many sites may share an identity. + * @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 { platformEmailSiteIdentityKeys } from '../query-keys'; +import type { + PlatformEmailSiteIdentitySelect, + PlatformEmailSiteIdentityWithRelations, + PlatformEmailSiteIdentityFilter, + PlatformEmailSiteIdentityOrderBy, +} from '../../orm/input-types'; +import type { + FindManyArgs, + InferSelectResult, + ConnectionResult, + HookStrictSelect, +} from '../../orm/select-types'; +export type { + PlatformEmailSiteIdentitySelect, + PlatformEmailSiteIdentityWithRelations, + PlatformEmailSiteIdentityFilter, + PlatformEmailSiteIdentityOrderBy, +} from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const platformEmailSiteIdentitiesQueryKey = platformEmailSiteIdentityKeys.list; +/** + * Binds a site to the identity it sends as. Unique on site_id: one identity per site, but many sites may share an identity. + * + * @example + * ```tsx + * const { data, isLoading } = usePlatformEmailSiteIdentitiesQuery({ + * selection: { + * fields: { id: true, name: true }, + * where: { name: { equalTo: "example" } }, + * orderBy: ['CREATED_AT_DESC'], + * first: 10, + * }, + * }); + * ``` + */ +export function usePlatformEmailSiteIdentitiesQuery< + S extends PlatformEmailSiteIdentitySelect, + TData = { + platformEmailSiteIdentities: ConnectionResult< + InferSelectResult + >; + }, +>( + params: { + selection: { + fields: S; + } & Omit< + ListSelectionConfig, + 'fields' + > & + HookStrictSelect, PlatformEmailSiteIdentitySelect>; + } & Omit< + UseQueryOptions< + { + platformEmailSiteIdentities: ConnectionResult< + InferSelectResult + >; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function usePlatformEmailSiteIdentitiesQuery( + params: { + selection: ListSelectionConfig< + PlatformEmailSiteIdentitySelect, + PlatformEmailSiteIdentityFilter, + PlatformEmailSiteIdentityOrderBy + >; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildListSelectionArgs< + PlatformEmailSiteIdentitySelect, + PlatformEmailSiteIdentityFilter, + PlatformEmailSiteIdentityOrderBy + >(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: platformEmailSiteIdentityKeys.list(args), + queryFn: () => getClient().platformEmailSiteIdentity.findMany(args).unwrap(), + ...queryOptions, + }); +} +/** + * Binds a site to the identity it sends as. Unique on site_id: one identity per site, but many sites may share an identity. + * + * @example + * ```ts + * const data = await fetchPlatformEmailSiteIdentitiesQuery({ + * selection: { + * fields: { id: true }, + * first: 10, + * }, + * }); + * ``` + */ +export async function fetchPlatformEmailSiteIdentitiesQuery< + S extends PlatformEmailSiteIdentitySelect, +>(params: { + selection: { + fields: S; + } & Omit< + ListSelectionConfig, + 'fields' + > & + HookStrictSelect, PlatformEmailSiteIdentitySelect>; +}): Promise<{ + platformEmailSiteIdentities: ConnectionResult< + InferSelectResult + >; +}>; +export async function fetchPlatformEmailSiteIdentitiesQuery(params: { + selection: ListSelectionConfig< + PlatformEmailSiteIdentitySelect, + PlatformEmailSiteIdentityFilter, + PlatformEmailSiteIdentityOrderBy + >; +}) { + const args = buildListSelectionArgs< + PlatformEmailSiteIdentitySelect, + PlatformEmailSiteIdentityFilter, + PlatformEmailSiteIdentityOrderBy + >(params.selection); + return getClient().platformEmailSiteIdentity.findMany(args).unwrap(); +} +/** + * Binds a site to the identity it sends as. Unique on site_id: one identity per site, but many sites may share an identity. + * + * @example + * ```ts + * await prefetchPlatformEmailSiteIdentitiesQuery(queryClient, { selection: { fields: { id: true }, first: 10 } }); + * ``` + */ +export async function prefetchPlatformEmailSiteIdentitiesQuery< + S extends PlatformEmailSiteIdentitySelect, +>( + queryClient: QueryClient, + params: { + selection: { + fields: S; + } & Omit< + ListSelectionConfig, + 'fields' + > & + HookStrictSelect, PlatformEmailSiteIdentitySelect>; + } +): Promise; +export async function prefetchPlatformEmailSiteIdentitiesQuery( + queryClient: QueryClient, + params: { + selection: ListSelectionConfig< + PlatformEmailSiteIdentitySelect, + PlatformEmailSiteIdentityFilter, + PlatformEmailSiteIdentityOrderBy + >; + } +): Promise { + const args = buildListSelectionArgs< + PlatformEmailSiteIdentitySelect, + PlatformEmailSiteIdentityFilter, + PlatformEmailSiteIdentityOrderBy + >(params.selection); + await queryClient.prefetchQuery({ + queryKey: platformEmailSiteIdentityKeys.list(args), + queryFn: () => getClient().platformEmailSiteIdentity.findMany(args).unwrap(), + }); +} diff --git a/sdk/constructive-react/src/api/hooks/queries/usePlatformEmailSiteIdentityQuery.ts b/sdk/constructive-react/src/api/hooks/queries/usePlatformEmailSiteIdentityQuery.ts new file mode 100644 index 0000000000..6f55363512 --- /dev/null +++ b/sdk/constructive-react/src/api/hooks/queries/usePlatformEmailSiteIdentityQuery.ts @@ -0,0 +1,151 @@ +/** + * Binds a site to the identity it sends as. Unique on site_id: one identity per site, but many sites may share an identity. + * @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 { platformEmailSiteIdentityKeys } from '../query-keys'; +import type { + PlatformEmailSiteIdentitySelect, + PlatformEmailSiteIdentityWithRelations, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + PlatformEmailSiteIdentitySelect, + PlatformEmailSiteIdentityWithRelations, +} from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const platformEmailSiteIdentityQueryKey = platformEmailSiteIdentityKeys.detail; +/** + * Binds a site to the identity it sends as. Unique on site_id: one identity per site, but many sites may share an identity. + * + * @example + * ```tsx + * const { data, isLoading } = usePlatformEmailSiteIdentityQuery({ + * id: 'some-id', + * selection: { fields: { id: true, name: true } }, + * }); + * ``` + */ +export function usePlatformEmailSiteIdentityQuery< + S extends PlatformEmailSiteIdentitySelect, + TData = { + platformEmailSiteIdentity: InferSelectResult | null; + }, +>( + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, PlatformEmailSiteIdentitySelect>; + } & Omit< + UseQueryOptions< + { + platformEmailSiteIdentity: InferSelectResult< + PlatformEmailSiteIdentityWithRelations, + S + > | null; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function usePlatformEmailSiteIdentityQuery( + params: { + id: string; + selection: SelectionConfig; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: platformEmailSiteIdentityKeys.detail(params.id), + queryFn: () => + getClient() + .platformEmailSiteIdentity.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + ...queryOptions, + }); +} +/** + * Binds a site to the identity it sends as. Unique on site_id: one identity per site, but many sites may share an identity. + * + * @example + * ```ts + * const data = await fetchPlatformEmailSiteIdentityQuery({ + * id: 'some-id', + * selection: { fields: { id: true } }, + * }); + * ``` + */ +export async function fetchPlatformEmailSiteIdentityQuery< + S extends PlatformEmailSiteIdentitySelect, +>(params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, PlatformEmailSiteIdentitySelect>; +}): Promise<{ + platformEmailSiteIdentity: InferSelectResult | null; +}>; +export async function fetchPlatformEmailSiteIdentityQuery(params: { + id: string; + selection: SelectionConfig; +}): Promise { + const args = buildSelectionArgs(params.selection); + return getClient() + .platformEmailSiteIdentity.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(); +} +/** + * Binds a site to the identity it sends as. Unique on site_id: one identity per site, but many sites may share an identity. + * + * @example + * ```ts + * await prefetchPlatformEmailSiteIdentityQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } }); + * ``` + */ +export async function prefetchPlatformEmailSiteIdentityQuery< + S extends PlatformEmailSiteIdentitySelect, +>( + queryClient: QueryClient, + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, PlatformEmailSiteIdentitySelect>; + } +): Promise; +export async function prefetchPlatformEmailSiteIdentityQuery( + queryClient: QueryClient, + params: { + id: string; + selection: SelectionConfig; + } +): Promise { + const args = buildSelectionArgs(params.selection); + await queryClient.prefetchQuery({ + queryKey: platformEmailSiteIdentityKeys.detail(params.id), + queryFn: () => + getClient() + .platformEmailSiteIdentity.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + }); +} diff --git a/sdk/constructive-react/src/api/hooks/query-keys.ts b/sdk/constructive-react/src/api/hooks/query-keys.ts index 96f421966f..053f48507c 100644 --- a/sdk/constructive-react/src/api/hooks/query-keys.ts +++ b/sdk/constructive-react/src/api/hooks/query-keys.ts @@ -19,6 +19,15 @@ // Entity Query Keys // ============================================================================ +export const apiKeys = { + /** All api queries */ all: ['api'] as const, + /** List query keys */ lists: () => [...apiKeys.all, 'list'] as const, + /** List query key with variables */ list: (variables?: object) => + [...apiKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...apiKeys.all, 'detail'] as const, + /** Detail query key for specific item */ detail: (id: string | number) => + [...apiKeys.details(), id] as const, +} as const; export const apiSchemaKeys = { /** All apiSchema queries */ all: ['apischema'] as const, /** List query keys */ lists: () => [...apiSchemaKeys.all, 'list'] as const, @@ -37,15 +46,6 @@ export const apiSettingKeys = { /** Detail query key for specific item */ detail: (id: string | number) => [...apiSettingKeys.details(), id] as const, } as const; -export const apisKeys = { - /** All apis queries */ all: ['apis'] as const, - /** List query keys */ lists: () => [...apisKeys.all, 'list'] as const, - /** List query key with variables */ list: (variables?: object) => - [...apisKeys.lists(), variables] as const, - /** Detail query keys */ details: () => [...apisKeys.all, 'detail'] as const, - /** Detail query key for specific item */ detail: (id: string | number) => - [...apisKeys.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, @@ -163,6 +163,33 @@ export const domainVerificationKeys = { /** Detail query key for specific item */ detail: (id: string | number) => [...domainVerificationKeys.details(), id] as const, } as const; +export const emailIdentityKeys = { + /** All emailIdentity queries */ all: ['emailidentity'] as const, + /** List query keys */ lists: () => [...emailIdentityKeys.all, 'list'] as const, + /** List query key with variables */ list: (variables?: object) => + [...emailIdentityKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...emailIdentityKeys.all, 'detail'] as const, + /** Detail query key for specific item */ detail: (id: string | number) => + [...emailIdentityKeys.details(), id] as const, +} as const; +export const emailProviderAccountKeys = { + /** All emailProviderAccount queries */ all: ['emailprovideraccount'] as const, + /** List query keys */ lists: () => [...emailProviderAccountKeys.all, 'list'] as const, + /** List query key with variables */ list: (variables?: object) => + [...emailProviderAccountKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...emailProviderAccountKeys.all, 'detail'] as const, + /** Detail query key for specific item */ detail: (id: string | number) => + [...emailProviderAccountKeys.details(), id] as const, +} as const; +export const emailSiteIdentityKeys = { + /** All emailSiteIdentity queries */ all: ['emailsiteidentity'] as const, + /** List query keys */ lists: () => [...emailSiteIdentityKeys.all, 'list'] as const, + /** List query key with variables */ list: (variables?: object) => + [...emailSiteIdentityKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...emailSiteIdentityKeys.all, 'detail'] as const, + /** Detail query key for specific item */ detail: (id: string | number) => + [...emailSiteIdentityKeys.details(), id] as const, +} as const; export const embeddingChunkKeys = { /** All embeddingChunk queries */ all: ['embeddingchunk'] as const, /** List query keys */ lists: () => [...embeddingChunkKeys.all, 'list'] as const, @@ -308,6 +335,15 @@ export const partitionKeys = { /** Detail query key for specific item */ detail: (id: string | number) => [...partitionKeys.details(), id] as const, } as const; +export const platformApiKeys = { + /** All platformApi queries */ all: ['platformapi'] as const, + /** List query keys */ lists: () => [...platformApiKeys.all, 'list'] as const, + /** List query key with variables */ list: (variables?: object) => + [...platformApiKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...platformApiKeys.all, 'detail'] as const, + /** Detail query key for specific item */ detail: (id: string | number) => + [...platformApiKeys.details(), id] as const, +} as const; export const platformApiSchemaKeys = { /** All platformApiSchema queries */ all: ['platformapischema'] as const, /** List query keys */ lists: () => [...platformApiSchemaKeys.all, 'list'] as const, @@ -326,15 +362,6 @@ export const platformApiSettingKeys = { /** Detail query key for specific item */ detail: (id: string | number) => [...platformApiSettingKeys.details(), id] as const, } as const; -export const platformApisKeys = { - /** All platformApis queries */ all: ['platformapis'] as const, - /** List query keys */ lists: () => [...platformApisKeys.all, 'list'] as const, - /** List query key with variables */ list: (variables?: object) => - [...platformApisKeys.lists(), variables] as const, - /** Detail query keys */ details: () => [...platformApisKeys.all, 'detail'] as const, - /** Detail query key for specific item */ detail: (id: string | number) => - [...platformApisKeys.details(), id] as const, -} as const; export const platformCorsSettingKeys = { /** All platformCorsSetting queries */ all: ['platformcorssetting'] as const, /** List query keys */ lists: () => [...platformCorsSettingKeys.all, 'list'] as const, @@ -372,6 +399,34 @@ export const platformDomainVerificationKeys = { /** Detail query key for specific item */ detail: (id: string | number) => [...platformDomainVerificationKeys.details(), id] as const, } as const; +export const platformEmailIdentityKeys = { + /** All platformEmailIdentity queries */ all: ['platformemailidentity'] as const, + /** List query keys */ lists: () => [...platformEmailIdentityKeys.all, 'list'] as const, + /** List query key with variables */ list: (variables?: object) => + [...platformEmailIdentityKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...platformEmailIdentityKeys.all, 'detail'] as const, + /** Detail query key for specific item */ detail: (id: string | number) => + [...platformEmailIdentityKeys.details(), id] as const, +} as const; +export const platformEmailProviderAccountKeys = { + /** All platformEmailProviderAccount queries */ all: ['platformemailprovideraccount'] as const, + /** List query keys */ lists: () => [...platformEmailProviderAccountKeys.all, 'list'] as const, + /** List query key with variables */ list: (variables?: object) => + [...platformEmailProviderAccountKeys.lists(), variables] as const, + /** Detail query keys */ details: () => + [...platformEmailProviderAccountKeys.all, 'detail'] as const, + /** Detail query key for specific item */ detail: (id: string | number) => + [...platformEmailProviderAccountKeys.details(), id] as const, +} as const; +export const platformEmailSiteIdentityKeys = { + /** All platformEmailSiteIdentity queries */ all: ['platformemailsiteidentity'] as const, + /** List query keys */ lists: () => [...platformEmailSiteIdentityKeys.all, 'list'] as const, + /** List query key with variables */ list: (variables?: object) => + [...platformEmailSiteIdentityKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...platformEmailSiteIdentityKeys.all, 'detail'] as const, + /** Detail query key for specific item */ detail: (id: string | number) => + [...platformEmailSiteIdentityKeys.details(), id] as const, +} as const; export const platformManagedDomainKeys = { /** All platformManagedDomain queries */ all: ['platformmanageddomain'] as const, /** List query keys */ lists: () => [...platformManagedDomainKeys.all, 'list'] as const, @@ -783,9 +838,9 @@ export const customQueryKeys = { * ``` */ export const queryKeys = { + api: apiKeys, apiSchema: apiSchemaKeys, apiSetting: apiSettingKeys, - apis: apisKeys, astMigration: astMigrationKeys, checkConstraint: checkConstraintKeys, compositeType: compositeTypeKeys, @@ -799,6 +854,9 @@ export const queryKeys = { domainEvent: domainEventKeys, domainType: domainTypeKeys, domainVerification: domainVerificationKeys, + emailIdentity: emailIdentityKeys, + emailProviderAccount: emailProviderAccountKeys, + emailSiteIdentity: emailSiteIdentityKeys, embeddingChunk: embeddingChunkKeys, enum: enumKeys, exclusionConstraint: exclusionConstraintKeys, @@ -815,13 +873,16 @@ export const queryKeys = { nodeTypeRegistry: nodeTypeRegistryKeys, page: pageKeys, partition: partitionKeys, + platformApi: platformApiKeys, platformApiSchema: platformApiSchemaKeys, platformApiSetting: platformApiSettingKeys, - platformApis: platformApisKeys, platformCorsSetting: platformCorsSettingKeys, platformDomain: platformDomainKeys, platformDomainEvent: platformDomainEventKeys, platformDomainVerification: platformDomainVerificationKeys, + platformEmailIdentity: platformEmailIdentityKeys, + platformEmailProviderAccount: platformEmailProviderAccountKeys, + platformEmailSiteIdentity: platformEmailSiteIdentityKeys, platformManagedDomain: platformManagedDomainKeys, platformPage: platformPageKeys, platformSiteAppLink: platformSiteAppLinkKeys, diff --git a/sdk/constructive-react/src/api/orm/README.md b/sdk/constructive-react/src/api/orm/README.md index 485932a4b7..d9d708a558 100644 --- a/sdk/constructive-react/src/api/orm/README.md +++ b/sdk/constructive-react/src/api/orm/README.md @@ -21,9 +21,9 @@ const db = createClient({ | Model | Operations | |-------|------------| +| `api` | findMany, findOne, create, update, delete | | `apiSchema` | findMany, findOne, create, update, delete | | `apiSetting` | findMany, findOne, create, update, delete | -| `apis` | findMany, findOne, create, update, delete | | `astMigration` | findMany, findOne, create, update, delete | | `checkConstraint` | findMany, findOne, create, update, delete | | `compositeType` | findMany, findOne, create, update, delete | @@ -37,6 +37,9 @@ const db = createClient({ | `domainEvent` | findMany, findOne, create, update, delete | | `domainType` | findMany, findOne, create, update, delete | | `domainVerification` | findMany, findOne, create, update, delete | +| `emailIdentity` | findMany, findOne, create, update, delete | +| `emailProviderAccount` | findMany, findOne, create, update, delete | +| `emailSiteIdentity` | findMany, findOne, create, update, delete | | `embeddingChunk` | findMany, findOne, create, update, delete | | `enum` | findMany, findOne, create, update, delete | | `exclusionConstraint` | findMany, findOne, create, update, delete | @@ -53,13 +56,16 @@ const db = createClient({ | `nodeTypeRegistry` | findMany, findOne, create, update, delete | | `page` | findMany, findOne, create, update, delete | | `partition` | findMany, findOne, create, update, delete | +| `platformApi` | findMany, findOne, create, update, delete | | `platformApiSchema` | findMany, findOne, create, update, delete | | `platformApiSetting` | findMany, findOne, create, update, delete | -| `platformApis` | findMany, findOne, create, update, delete | | `platformCorsSetting` | findMany, findOne, create, update, delete | | `platformDomain` | findMany, findOne, create, update, delete | | `platformDomainEvent` | findMany, findOne, create, update, delete | | `platformDomainVerification` | findMany, findOne, create, update, delete | +| `platformEmailIdentity` | findMany, findOne, create, update, delete | +| `platformEmailProviderAccount` | findMany, findOne, create, update, delete | +| `platformEmailSiteIdentity` | findMany, findOne, create, update, delete | | `platformManagedDomain` | findMany, findOne, create, update, delete | | `platformPage` | findMany, findOne, create, update, delete | | `platformSiteAppLink` | findMany, findOne, create, update, delete | @@ -104,6 +110,44 @@ const db = createClient({ ## Table Operations +### `db.api` + +CRUD operations for Api records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `anonRole` | String | Yes | +| `config` | JSON | Yes | +| `createdAt` | Datetime | No | +| `databaseId` | UUID | Yes | +| `dbname` | String | Yes | +| `id` | UUID | No | +| `isPublished` | Boolean | Yes | +| `name` | String | Yes | +| `roleName` | String | Yes | +| `updatedAt` | Datetime | No | + +**Operations:** + +```typescript +// List all api records +const items = await db.api.findMany({ select: { anonRole: true, config: true, createdAt: true, databaseId: true, dbname: true, id: true, isPublished: true, name: true, roleName: true, updatedAt: true } }).execute(); + +// Get one by id +const item = await db.api.findOne({ id: '', select: { anonRole: true, config: true, createdAt: true, databaseId: true, dbname: true, id: true, isPublished: true, name: true, roleName: true, updatedAt: true } }).execute(); + +// Create +const created = await db.api.create({ data: { anonRole: '', config: '', databaseId: '', dbname: '', isPublished: '', name: '', roleName: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.api.update({ where: { id: '' }, data: { anonRole: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.api.delete({ where: { id: '' } }).execute(); +``` + ### `db.apiSchema` CRUD operations for ApiSchema records. @@ -185,44 +229,6 @@ const updated = await db.apiSetting.update({ where: { id: '' }, data: { ap const deleted = await db.apiSetting.delete({ where: { id: '' } }).execute(); ``` -### `db.apis` - -CRUD operations for Apis records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `anonRole` | String | Yes | -| `config` | JSON | Yes | -| `createdAt` | Datetime | No | -| `databaseId` | UUID | Yes | -| `dbname` | String | Yes | -| `id` | UUID | No | -| `isPublished` | Boolean | Yes | -| `name` | String | Yes | -| `roleName` | String | Yes | -| `updatedAt` | Datetime | No | - -**Operations:** - -```typescript -// List all apis records -const items = await db.apis.findMany({ select: { anonRole: true, config: true, createdAt: true, databaseId: true, dbname: true, id: true, isPublished: true, name: true, roleName: true, updatedAt: true } }).execute(); - -// Get one by id -const item = await db.apis.findOne({ id: '', select: { anonRole: true, config: true, createdAt: true, databaseId: true, dbname: true, id: true, isPublished: true, name: true, roleName: true, updatedAt: true } }).execute(); - -// Create -const created = await db.apis.create({ data: { anonRole: '', config: '', databaseId: '', dbname: '', isPublished: '', name: '', roleName: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.apis.update({ where: { id: '' }, data: { anonRole: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.apis.delete({ where: { id: '' } }).execute(); -``` - ### `db.astMigration` CRUD operations for AstMigration records. @@ -743,6 +749,125 @@ const updated = await db.domainVerification.update({ where: { id: '' }, da const deleted = await db.domainVerification.delete({ where: { id: '' } }).execute(); ``` +### `db.emailIdentity` + +CRUD operations for EmailIdentity records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `createdAt` | Datetime | No | +| `databaseId` | UUID | Yes | +| `fromAddress` | String | Yes | +| `fromName` | String | Yes | +| `id` | UUID | No | +| `isActive` | Boolean | Yes | +| `isDefault` | Boolean | Yes | +| `name` | String | Yes | +| `providerAccountId` | UUID | Yes | +| `replyToAddress` | String | Yes | +| `supportAddress` | String | Yes | +| `transportMode` | String | Yes | +| `updatedAt` | Datetime | No | + +**Operations:** + +```typescript +// List all emailIdentity records +const items = await db.emailIdentity.findMany({ select: { createdAt: true, databaseId: true, fromAddress: true, fromName: true, id: true, isActive: true, isDefault: true, name: true, providerAccountId: true, replyToAddress: true, supportAddress: true, transportMode: true, updatedAt: true } }).execute(); + +// Get one by id +const item = await db.emailIdentity.findOne({ id: '', select: { createdAt: true, databaseId: true, fromAddress: true, fromName: true, id: true, isActive: true, isDefault: true, name: true, providerAccountId: true, replyToAddress: true, supportAddress: true, transportMode: true, updatedAt: true } }).execute(); + +// Create +const created = await db.emailIdentity.create({ data: { databaseId: '', fromAddress: '', fromName: '', isActive: '', isDefault: '', name: '', providerAccountId: '', replyToAddress: '', supportAddress: '', transportMode: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.emailIdentity.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.emailIdentity.delete({ where: { id: '' } }).execute(); +``` + +### `db.emailProviderAccount` + +CRUD operations for EmailProviderAccount records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `apiBaseUrl` | String | Yes | +| `createdAt` | Datetime | No | +| `credentialsSecretName` | String | Yes | +| `databaseId` | UUID | Yes | +| `id` | UUID | No | +| `isActive` | Boolean | Yes | +| `name` | String | Yes | +| `provider` | String | Yes | +| `providerAccountName` | String | Yes | +| `region` | String | Yes | +| `smtpHost` | String | Yes | +| `smtpPort` | Int | Yes | +| `smtpSecure` | Boolean | Yes | +| `smtpUser` | String | Yes | +| `updatedAt` | Datetime | No | +| `webhookSigningSecretName` | String | Yes | + +**Operations:** + +```typescript +// List all emailProviderAccount records +const items = await db.emailProviderAccount.findMany({ select: { apiBaseUrl: true, createdAt: true, credentialsSecretName: true, databaseId: true, id: true, isActive: true, name: true, provider: true, providerAccountName: true, region: true, smtpHost: true, smtpPort: true, smtpSecure: true, smtpUser: true, updatedAt: true, webhookSigningSecretName: true } }).execute(); + +// Get one by id +const item = await db.emailProviderAccount.findOne({ id: '', select: { apiBaseUrl: true, createdAt: true, credentialsSecretName: true, databaseId: true, id: true, isActive: true, name: true, provider: true, providerAccountName: true, region: true, smtpHost: true, smtpPort: true, smtpSecure: true, smtpUser: true, updatedAt: true, webhookSigningSecretName: true } }).execute(); + +// Create +const created = await db.emailProviderAccount.create({ data: { apiBaseUrl: '', credentialsSecretName: '', databaseId: '', isActive: '', name: '', provider: '', providerAccountName: '', region: '', smtpHost: '', smtpPort: '', smtpSecure: '', smtpUser: '', webhookSigningSecretName: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.emailProviderAccount.update({ where: { id: '' }, data: { apiBaseUrl: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.emailProviderAccount.delete({ where: { id: '' } }).execute(); +``` + +### `db.emailSiteIdentity` + +CRUD operations for EmailSiteIdentity records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `createdAt` | Datetime | No | +| `databaseId` | UUID | Yes | +| `emailIdentityId` | UUID | Yes | +| `id` | UUID | No | +| `siteId` | UUID | Yes | +| `updatedAt` | Datetime | No | + +**Operations:** + +```typescript +// List all emailSiteIdentity records +const items = await db.emailSiteIdentity.findMany({ select: { createdAt: true, databaseId: true, emailIdentityId: true, id: true, siteId: true, updatedAt: true } }).execute(); + +// Get one by id +const item = await db.emailSiteIdentity.findOne({ id: '', select: { createdAt: true, databaseId: true, emailIdentityId: true, id: true, siteId: true, updatedAt: true } }).execute(); + +// Create +const created = await db.emailSiteIdentity.create({ data: { databaseId: '', emailIdentityId: '', siteId: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.emailSiteIdentity.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.emailSiteIdentity.delete({ where: { id: '' } }).execute(); +``` + ### `db.embeddingChunk` CRUD operations for EmbeddingChunk records. @@ -1394,6 +1519,43 @@ const updated = await db.partition.update({ where: { id: '' }, data: { dat const deleted = await db.partition.delete({ where: { id: '' } }).execute(); ``` +### `db.platformApi` + +CRUD operations for PlatformApi records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `anonRole` | String | Yes | +| `config` | JSON | Yes | +| `createdAt` | Datetime | No | +| `dbname` | String | Yes | +| `id` | UUID | No | +| `isPublished` | Boolean | Yes | +| `name` | String | Yes | +| `roleName` | String | Yes | +| `updatedAt` | Datetime | No | + +**Operations:** + +```typescript +// List all platformApi records +const items = await db.platformApi.findMany({ select: { anonRole: true, config: true, createdAt: true, dbname: true, id: true, isPublished: true, name: true, roleName: true, updatedAt: true } }).execute(); + +// Get one by id +const item = await db.platformApi.findOne({ id: '', select: { anonRole: true, config: true, createdAt: true, dbname: true, id: true, isPublished: true, name: true, roleName: true, updatedAt: true } }).execute(); + +// Create +const created = await db.platformApi.create({ data: { anonRole: '', config: '', dbname: '', isPublished: '', name: '', roleName: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.platformApi.update({ where: { id: '' }, data: { anonRole: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.platformApi.delete({ where: { id: '' } }).execute(); +``` + ### `db.platformApiSchema` CRUD operations for PlatformApiSchema records. @@ -1473,43 +1635,6 @@ const updated = await db.platformApiSetting.update({ where: { id: '' }, da const deleted = await db.platformApiSetting.delete({ where: { id: '' } }).execute(); ``` -### `db.platformApis` - -CRUD operations for PlatformApis records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `anonRole` | String | Yes | -| `config` | JSON | Yes | -| `createdAt` | Datetime | No | -| `dbname` | String | Yes | -| `id` | UUID | No | -| `isPublished` | Boolean | Yes | -| `name` | String | Yes | -| `roleName` | String | Yes | -| `updatedAt` | Datetime | No | - -**Operations:** - -```typescript -// List all platformApis records -const items = await db.platformApis.findMany({ select: { anonRole: true, config: true, createdAt: true, dbname: true, id: true, isPublished: true, name: true, roleName: true, updatedAt: true } }).execute(); - -// Get one by id -const item = await db.platformApis.findOne({ id: '', select: { anonRole: true, config: true, createdAt: true, dbname: true, id: true, isPublished: true, name: true, roleName: true, updatedAt: true } }).execute(); - -// Create -const created = await db.platformApis.create({ data: { anonRole: '', config: '', dbname: '', isPublished: '', name: '', roleName: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.platformApis.update({ where: { id: '' }, data: { anonRole: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.platformApis.delete({ where: { id: '' } }).execute(); -``` - ### `db.platformCorsSetting` CRUD operations for PlatformCorsSetting records. @@ -1666,6 +1791,122 @@ const updated = await db.platformDomainVerification.update({ where: { id: '' } }).execute(); ``` +### `db.platformEmailIdentity` + +CRUD operations for PlatformEmailIdentity records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `createdAt` | Datetime | No | +| `fromAddress` | String | Yes | +| `fromName` | String | Yes | +| `id` | UUID | No | +| `isActive` | Boolean | Yes | +| `isDefault` | Boolean | Yes | +| `name` | String | Yes | +| `providerAccountId` | UUID | Yes | +| `replyToAddress` | String | Yes | +| `supportAddress` | String | Yes | +| `transportMode` | String | Yes | +| `updatedAt` | Datetime | No | + +**Operations:** + +```typescript +// List all platformEmailIdentity records +const items = await db.platformEmailIdentity.findMany({ select: { createdAt: true, fromAddress: true, fromName: true, id: true, isActive: true, isDefault: true, name: true, providerAccountId: true, replyToAddress: true, supportAddress: true, transportMode: true, updatedAt: true } }).execute(); + +// Get one by id +const item = await db.platformEmailIdentity.findOne({ id: '', select: { createdAt: true, fromAddress: true, fromName: true, id: true, isActive: true, isDefault: true, name: true, providerAccountId: true, replyToAddress: true, supportAddress: true, transportMode: true, updatedAt: true } }).execute(); + +// Create +const created = await db.platformEmailIdentity.create({ data: { fromAddress: '', fromName: '', isActive: '', isDefault: '', name: '', providerAccountId: '', replyToAddress: '', supportAddress: '', transportMode: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.platformEmailIdentity.update({ where: { id: '' }, data: { fromAddress: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.platformEmailIdentity.delete({ where: { id: '' } }).execute(); +``` + +### `db.platformEmailProviderAccount` + +CRUD operations for PlatformEmailProviderAccount records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `apiBaseUrl` | String | Yes | +| `createdAt` | Datetime | No | +| `credentialsSecretName` | String | Yes | +| `id` | UUID | No | +| `isActive` | Boolean | Yes | +| `name` | String | Yes | +| `provider` | String | Yes | +| `providerAccountName` | String | Yes | +| `region` | String | Yes | +| `smtpHost` | String | Yes | +| `smtpPort` | Int | Yes | +| `smtpSecure` | Boolean | Yes | +| `smtpUser` | String | Yes | +| `updatedAt` | Datetime | No | +| `webhookSigningSecretName` | String | Yes | + +**Operations:** + +```typescript +// List all platformEmailProviderAccount records +const items = await db.platformEmailProviderAccount.findMany({ select: { apiBaseUrl: true, createdAt: true, credentialsSecretName: true, id: true, isActive: true, name: true, provider: true, providerAccountName: true, region: true, smtpHost: true, smtpPort: true, smtpSecure: true, smtpUser: true, updatedAt: true, webhookSigningSecretName: true } }).execute(); + +// Get one by id +const item = await db.platformEmailProviderAccount.findOne({ id: '', select: { apiBaseUrl: true, createdAt: true, credentialsSecretName: true, id: true, isActive: true, name: true, provider: true, providerAccountName: true, region: true, smtpHost: true, smtpPort: true, smtpSecure: true, smtpUser: true, updatedAt: true, webhookSigningSecretName: true } }).execute(); + +// Create +const created = await db.platformEmailProviderAccount.create({ data: { apiBaseUrl: '', credentialsSecretName: '', isActive: '', name: '', provider: '', providerAccountName: '', region: '', smtpHost: '', smtpPort: '', smtpSecure: '', smtpUser: '', webhookSigningSecretName: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.platformEmailProviderAccount.update({ where: { id: '' }, data: { apiBaseUrl: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.platformEmailProviderAccount.delete({ where: { id: '' } }).execute(); +``` + +### `db.platformEmailSiteIdentity` + +CRUD operations for PlatformEmailSiteIdentity records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `createdAt` | Datetime | No | +| `emailIdentityId` | UUID | Yes | +| `id` | UUID | No | +| `siteId` | UUID | Yes | +| `updatedAt` | Datetime | No | + +**Operations:** + +```typescript +// List all platformEmailSiteIdentity records +const items = await db.platformEmailSiteIdentity.findMany({ select: { createdAt: true, emailIdentityId: true, id: true, siteId: true, updatedAt: true } }).execute(); + +// Get one by id +const item = await db.platformEmailSiteIdentity.findOne({ id: '', select: { createdAt: true, emailIdentityId: true, id: true, siteId: true, updatedAt: true } }).execute(); + +// Create +const created = await db.platformEmailSiteIdentity.create({ data: { emailIdentityId: '', siteId: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.platformEmailSiteIdentity.update({ where: { id: '' }, data: { emailIdentityId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.platformEmailSiteIdentity.delete({ where: { id: '' } }).execute(); +``` + ### `db.platformManagedDomain` CRUD operations for PlatformManagedDomain records. diff --git a/sdk/constructive-react/src/api/orm/index.ts b/sdk/constructive-react/src/api/orm/index.ts index 98c5108b79..4af633de9c 100644 --- a/sdk/constructive-react/src/api/orm/index.ts +++ b/sdk/constructive-react/src/api/orm/index.ts @@ -5,9 +5,9 @@ */ import { OrmClient } from './client'; import type { OrmClientConfig } from './client'; +import { ApiModel } from './models/api'; import { ApiSchemaModel } from './models/apiSchema'; import { ApiSettingModel } from './models/apiSetting'; -import { ApisModel } from './models/apis'; import { AstMigrationModel } from './models/astMigration'; import { CheckConstraintModel } from './models/checkConstraint'; import { CompositeTypeModel } from './models/compositeType'; @@ -21,6 +21,9 @@ import { DomainModel } from './models/domain'; import { DomainEventModel } from './models/domainEvent'; import { DomainTypeModel } from './models/domainType'; import { DomainVerificationModel } from './models/domainVerification'; +import { EmailIdentityModel } from './models/emailIdentity'; +import { EmailProviderAccountModel } from './models/emailProviderAccount'; +import { EmailSiteIdentityModel } from './models/emailSiteIdentity'; import { EmbeddingChunkModel } from './models/embeddingChunk'; import { EnumModel } from './models/enum'; import { ExclusionConstraintModel } from './models/exclusionConstraint'; @@ -37,13 +40,16 @@ import { ManagedDomainModel } from './models/managedDomain'; import { NodeTypeRegistryModel } from './models/nodeTypeRegistry'; import { PageModel } from './models/page'; import { PartitionModel } from './models/partition'; +import { PlatformApiModel } from './models/platformApi'; import { PlatformApiSchemaModel } from './models/platformApiSchema'; import { PlatformApiSettingModel } from './models/platformApiSetting'; -import { PlatformApisModel } from './models/platformApis'; import { PlatformCorsSettingModel } from './models/platformCorsSetting'; import { PlatformDomainModel } from './models/platformDomain'; import { PlatformDomainEventModel } from './models/platformDomainEvent'; import { PlatformDomainVerificationModel } from './models/platformDomainVerification'; +import { PlatformEmailIdentityModel } from './models/platformEmailIdentity'; +import { PlatformEmailProviderAccountModel } from './models/platformEmailProviderAccount'; +import { PlatformEmailSiteIdentityModel } from './models/platformEmailSiteIdentity'; import { PlatformManagedDomainModel } from './models/platformManagedDomain'; import { PlatformPageModel } from './models/platformPage'; import { PlatformSiteAppLinkModel } from './models/platformSiteAppLink'; @@ -120,9 +126,9 @@ export { createMutationOperations } from './mutation'; export function createClient(config: OrmClientConfig) { const client = new OrmClient(config); return { + api: new ApiModel(client), apiSchema: new ApiSchemaModel(client), apiSetting: new ApiSettingModel(client), - apis: new ApisModel(client), astMigration: new AstMigrationModel(client), checkConstraint: new CheckConstraintModel(client), compositeType: new CompositeTypeModel(client), @@ -136,6 +142,9 @@ export function createClient(config: OrmClientConfig) { domainEvent: new DomainEventModel(client), domainType: new DomainTypeModel(client), domainVerification: new DomainVerificationModel(client), + emailIdentity: new EmailIdentityModel(client), + emailProviderAccount: new EmailProviderAccountModel(client), + emailSiteIdentity: new EmailSiteIdentityModel(client), embeddingChunk: new EmbeddingChunkModel(client), enum: new EnumModel(client), exclusionConstraint: new ExclusionConstraintModel(client), @@ -152,13 +161,16 @@ export function createClient(config: OrmClientConfig) { nodeTypeRegistry: new NodeTypeRegistryModel(client), page: new PageModel(client), partition: new PartitionModel(client), + platformApi: new PlatformApiModel(client), platformApiSchema: new PlatformApiSchemaModel(client), platformApiSetting: new PlatformApiSettingModel(client), - platformApis: new PlatformApisModel(client), platformCorsSetting: new PlatformCorsSettingModel(client), platformDomain: new PlatformDomainModel(client), platformDomainEvent: new PlatformDomainEventModel(client), platformDomainVerification: new PlatformDomainVerificationModel(client), + platformEmailIdentity: new PlatformEmailIdentityModel(client), + platformEmailProviderAccount: new PlatformEmailProviderAccountModel(client), + platformEmailSiteIdentity: new PlatformEmailSiteIdentityModel(client), platformManagedDomain: new PlatformManagedDomainModel(client), platformPage: new PlatformPageModel(client), platformSiteAppLink: new PlatformSiteAppLinkModel(client), diff --git a/sdk/constructive-react/src/api/orm/input-types.ts b/sdk/constructive-react/src/api/orm/input-types.ts index 2347f17ca6..982e890b60 100644 --- a/sdk/constructive-react/src/api/orm/input-types.ts +++ b/sdk/constructive-react/src/api/orm/input-types.ts @@ -232,11 +232,31 @@ export interface UUIDListFilter { } // ============ Enum Types ============ export type ApiExposureLevel = 'EXPOSABLE' | 'INTERNAL_ONLY' | 'NEVER_EXPOSE'; -export type ObjectCategory = 'APP' | 'AUTH' | 'CORE' | 'MEMBERSHIPS' | 'MODULE' | 'PERMISSIONS'; +export type ObjectCategory = 'APP' | 'AUTH' | 'CAPABILITIES' | 'CORE' | 'MEMBERSHIPS' | 'MODULE'; // ============ Custom Scalar Types ============ export type ConstructiveInternalTypeImage = unknown; -/** Join table linking API surfaces to the metaschema schemas they expose */ +/** API surfaces exposed by this scope; publication makes a surface bindable from other scopes */ // ============ Entity Types ============ +export interface Api { + /** Anonymous role the API executes as */ + anonRole?: string | null; + /** Module-specific configuration for this API surface */ + config?: Record | null; + createdAt?: string | null; + /** Database that owns this resource (database-scoped isolation) */ + databaseId?: string | null; + /** Database this API surface serves */ + dbname?: string | null; + id: string; + /** Whether other scopes may see and route to this API surface */ + isPublished?: boolean | null; + /** Owner-local API surface name */ + name?: string | null; + /** Authenticated role the API executes as */ + roleName?: string | null; + updatedAt?: string | null; +} +/** Join table linking API surfaces to the metaschema schemas they expose */ export interface ApiSchema { /** API surface that exposes this schema */ apiId?: string | null; @@ -286,26 +306,6 @@ export interface ApiSetting { statementTimeoutMs?: string | null; updatedAt?: string | null; } -/** API surfaces exposed by this scope; publication makes a surface bindable from other scopes */ -export interface Apis { - /** Anonymous role the API executes as */ - anonRole?: string | null; - /** Module-specific configuration for this API surface */ - config?: Record | null; - createdAt?: string | null; - /** Database that owns this resource (database-scoped isolation) */ - databaseId?: string | null; - /** Database this API surface serves */ - dbname?: string | null; - id: string; - /** Whether other scopes may see and route to this API surface */ - isPublished?: boolean | null; - /** Owner-local API surface name */ - name?: string | null; - /** Authenticated role the API executes as */ - roleName?: string | null; - updatedAt?: string | null; -} export interface AstMigration { actionId?: string | null; actionName?: string | null; @@ -546,6 +546,76 @@ export interface DomainVerification { /** When this challenge succeeded */ verifiedAt?: string | null; } +/** Outbound sender identity: the from/reply-to/support addresses a tenant sends as, and the provider account the mail leaves through */ +export interface EmailIdentity { + createdAt?: string | null; + /** Database that owns this resource (database-scoped isolation) */ + databaseId?: string | null; + /** Envelope/header From address, lower-case. Must be accepted by the sending account at the provider. */ + fromAddress?: string | null; + /** Display name shown beside the from address */ + fromName?: string | null; + id: string; + /** Whether this identity may be resolved for a send */ + isActive?: boolean | null; + /** The scope default identity, used when no site binding resolves. At most one per scope key. */ + isDefault?: boolean | null; + /** Operator-facing name for this identity (e.g. transactional, support) */ + name?: string | null; + /** Same-scope provider account this identity sends through. Required for transport_mode = own, NULL for platform_shared. */ + providerAccountId?: string | null; + /** Reply-To address when replies should not go to the from address */ + replyToAddress?: string | null; + /** Support address rendered in message bodies and footers */ + supportAddress?: string | null; + /** own = send through provider_account_id in this scope; platform_shared = send through the platform installation's shared account, an explicit recorded choice and never an implicit fallback */ + transportMode?: string | null; + updatedAt?: string | null; +} +/** A tenant's configured account at an email provider: provider slug, endpoint coordinates, and the NAME of the secret holding its credentials (never the credential itself) */ +export interface EmailProviderAccount { + /** Provider API base URL when it is not the provider default (e.g. Mailgun EU) */ + apiBaseUrl?: string | null; + createdAt?: string | null; + /** Name of the secret holding this account's API key or SMTP password. The value is resolved from the secret store at send time (realm = this row's id) and is never stored here. */ + credentialsSecretName?: string | null; + /** Database that owns this resource (database-scoped isolation) */ + databaseId?: string | null; + id: string; + /** Whether identities may send through this account. Disabling one row stops every identity that references it. */ + isActive?: boolean | null; + /** Operator-facing name for this account (e.g. transactional, marketing) */ + name?: string | null; + /** integration_providers.slug of the provider this account is at (mailgun, ses, postmark, smtp), matched by string not by FK */ + provider?: string | null; + /** Account identifier at the provider — the Mailgun sending domain, the SES verified identity, the Postmark server name */ + providerAccountName?: string | null; + /** Provider region for region-addressed providers (e.g. SES us-east-1) */ + region?: string | null; + /** SMTP host (provider = smtp, or a provider addressed over SMTP) */ + smtpHost?: string | null; + /** SMTP port */ + smtpPort?: number | null; + /** Whether the SMTP connection uses implicit TLS */ + smtpSecure?: boolean | null; + /** SMTP username; the password is a secret, addressed by credentials_secret_name */ + smtpUser?: string | null; + updatedAt?: string | null; + /** Name of the secret used to verify this provider's delivery/bounce webhooks. Name only; the value stays in the secret store. */ + webhookSigningSecretName?: string | null; +} +/** Binds a site to the identity it sends as. Unique on site_id: one identity per site, but many sites may share an identity. */ +export interface EmailSiteIdentity { + createdAt?: string | null; + /** Database that owns this resource (database-scoped isolation) */ + databaseId?: string | null; + /** Identity this site sends as */ + emailIdentityId?: string | null; + id: string; + /** Site whose mail is sent as the bound identity */ + siteId?: string | null; + updatedAt?: string | null; +} export interface EmbeddingChunk { chunkOverlap?: number | null; chunkSize?: number | null; @@ -821,6 +891,24 @@ export interface Partition { tableId?: string | null; updatedAt?: string | null; } +/** API surfaces exposed by this scope; publication makes a surface bindable from other scopes */ +export interface PlatformApi { + /** Anonymous role the API executes as */ + anonRole?: string | null; + /** Module-specific configuration for this API surface */ + config?: Record | null; + createdAt?: string | null; + /** Database this API surface serves */ + dbname?: string | null; + id: string; + /** Whether other scopes may see and route to this API surface */ + isPublished?: boolean | null; + /** Owner-local API surface name */ + name?: string | null; + /** Authenticated role the API executes as */ + roleName?: string | null; + updatedAt?: string | null; +} /** Join table linking API surfaces to the metaschema schemas they expose */ export interface PlatformApiSchema { /** API surface that exposes this schema */ @@ -867,24 +955,6 @@ export interface PlatformApiSetting { statementTimeoutMs?: string | null; updatedAt?: string | null; } -/** API surfaces exposed by this scope; publication makes a surface bindable from other scopes */ -export interface PlatformApis { - /** Anonymous role the API executes as */ - anonRole?: string | null; - /** Module-specific configuration for this API surface */ - config?: Record | null; - createdAt?: string | null; - /** Database this API surface serves */ - dbname?: string | null; - id: string; - /** Whether other scopes may see and route to this API surface */ - isPublished?: boolean | null; - /** Owner-local API surface name */ - name?: string | null; - /** Authenticated role the API executes as */ - roleName?: string | null; - updatedAt?: string | null; -} /** Scope-wide and per-API CORS origin configuration; NULL api_id means scope-wide default */ export interface PlatformCorsSetting { /** Array of allowed CORS origins (e.g. https://example.com) */ @@ -973,6 +1043,70 @@ export interface PlatformDomainVerification { /** When this challenge succeeded */ verifiedAt?: string | null; } +/** Outbound sender identity: the from/reply-to/support addresses a tenant sends as, and the provider account the mail leaves through */ +export interface PlatformEmailIdentity { + createdAt?: string | null; + /** Envelope/header From address, lower-case. Must be accepted by the sending account at the provider. */ + fromAddress?: string | null; + /** Display name shown beside the from address */ + fromName?: string | null; + id: string; + /** Whether this identity may be resolved for a send */ + isActive?: boolean | null; + /** The scope default identity, used when no site binding resolves. At most one per scope key. */ + isDefault?: boolean | null; + /** Operator-facing name for this identity (e.g. transactional, support) */ + name?: string | null; + /** Same-scope provider account this identity sends through. Required for transport_mode = own, NULL for platform_shared. */ + providerAccountId?: string | null; + /** Reply-To address when replies should not go to the from address */ + replyToAddress?: string | null; + /** Support address rendered in message bodies and footers */ + supportAddress?: string | null; + /** own = send through provider_account_id in this scope; platform_shared = send through the platform installation's shared account, an explicit recorded choice and never an implicit fallback */ + transportMode?: string | null; + updatedAt?: string | null; +} +/** A tenant's configured account at an email provider: provider slug, endpoint coordinates, and the NAME of the secret holding its credentials (never the credential itself) */ +export interface PlatformEmailProviderAccount { + /** Provider API base URL when it is not the provider default (e.g. Mailgun EU) */ + apiBaseUrl?: string | null; + createdAt?: string | null; + /** Name of the secret holding this account's API key or SMTP password. The value is resolved from the secret store at send time (realm = this row's id) and is never stored here. */ + credentialsSecretName?: string | null; + id: string; + /** Whether identities may send through this account. Disabling one row stops every identity that references it. */ + isActive?: boolean | null; + /** Operator-facing name for this account (e.g. transactional, marketing) */ + name?: string | null; + /** integration_providers.slug of the provider this account is at (mailgun, ses, postmark, smtp), matched by string not by FK */ + provider?: string | null; + /** Account identifier at the provider — the Mailgun sending domain, the SES verified identity, the Postmark server name */ + providerAccountName?: string | null; + /** Provider region for region-addressed providers (e.g. SES us-east-1) */ + region?: string | null; + /** SMTP host (provider = smtp, or a provider addressed over SMTP) */ + smtpHost?: string | null; + /** SMTP port */ + smtpPort?: number | null; + /** Whether the SMTP connection uses implicit TLS */ + smtpSecure?: boolean | null; + /** SMTP username; the password is a secret, addressed by credentials_secret_name */ + smtpUser?: string | null; + updatedAt?: string | null; + /** Name of the secret used to verify this provider's delivery/bounce webhooks. Name only; the value stays in the secret store. */ + webhookSigningSecretName?: string | null; +} +/** Binds a site to the identity it sends as. Unique on site_id: one identity per site, but many sites may share an identity. */ +export interface PlatformEmailSiteIdentity { + createdAt?: string | null; + /** Identity this site sends as */ + emailIdentityId?: string | null; + id: string; + /** Site whose mail is sent as the bound identity */ + siteId?: string | null; + updatedAt?: string | null; +} /** Platform-operated hostnames whose DNS and certificate lifecycle the platform drives */ export interface PlatformManagedDomain { /** Whether tenants may claim subdomains under this managed hostname */ @@ -1736,17 +1870,17 @@ export interface PageInfo { endCursor?: string | null; } // ============ Entity Relation Types ============ +export interface ApiRelations { + apiSetting?: ApiSetting | null; + apiSchemas?: ConnectionResult; + corsSettings?: ConnectionResult; +} export interface ApiSchemaRelations { - api?: Apis | null; + api?: Api | null; schema?: Schema | null; } export interface ApiSettingRelations { - api?: Apis | null; -} -export interface ApisRelations { - apiSettingByApiId?: ApiSetting | null; - apiSchemasByApiId?: ConnectionResult; - corsSettingsByApiId?: ConnectionResult; + api?: Api | null; } export interface AstMigrationRelations {} export interface CheckConstraintRelations { @@ -1758,7 +1892,7 @@ export interface CompositeTypeRelations { schema?: Schema | null; } export interface CorsSettingRelations { - api?: Apis | null; + api?: Api | null; } export interface DatabaseRelations { checkConstraints?: ConnectionResult; @@ -1828,6 +1962,17 @@ export interface DomainVerificationRelations { domain?: Domain | null; managedDomain?: ManagedDomain | null; } +export interface EmailIdentityRelations { + providerAccount?: EmailProviderAccount | null; + emailSiteIdentities?: ConnectionResult; +} +export interface EmailProviderAccountRelations { + emailIdentitiesByProviderAccountId?: ConnectionResult; +} +export interface EmailSiteIdentityRelations { + emailIdentity?: EmailIdentity | null; + site?: Site | null; +} export interface EmbeddingChunkRelations { chunksTable?: Table | null; database?: Database | null; @@ -1896,20 +2041,20 @@ export interface PartitionRelations { partitionKey?: Field | null; table?: Table | null; } +export interface PlatformApiRelations { + platformApiSettingByApiId?: PlatformApiSetting | null; + platformCorsSettingByApiId?: PlatformCorsSetting | null; + platformApiSchemasByApiId?: ConnectionResult; +} export interface PlatformApiSchemaRelations { - api?: PlatformApis | null; + api?: PlatformApi | null; schema?: Schema | null; } export interface PlatformApiSettingRelations { - api?: PlatformApis | null; -} -export interface PlatformApisRelations { - platformApiSettingByApiId?: PlatformApiSetting | null; - platformCorsSettingByApiId?: PlatformCorsSetting | null; - platformApiSchemasByApiId?: ConnectionResult; + api?: PlatformApi | null; } export interface PlatformCorsSettingRelations { - api?: PlatformApis | null; + api?: PlatformApi | null; } export interface PlatformDomainRelations { platformDomainEventsByDomainId?: ConnectionResult; @@ -1924,6 +2069,17 @@ export interface PlatformDomainVerificationRelations { domain?: PlatformDomain | null; managedDomain?: PlatformManagedDomain | null; } +export interface PlatformEmailIdentityRelations { + providerAccount?: PlatformEmailProviderAccount | null; + platformEmailSiteIdentitiesByEmailIdentityId?: ConnectionResult; +} +export interface PlatformEmailProviderAccountRelations { + platformEmailIdentitiesByProviderAccountId?: ConnectionResult; +} +export interface PlatformEmailSiteIdentityRelations { + emailIdentity?: PlatformEmailIdentity | null; + site?: PlatformSite | null; +} export interface PlatformManagedDomainRelations { platformDomainEventsByManagedDomainId?: ConnectionResult; platformDomainVerificationsByManagedDomainId?: ConnectionResult; @@ -1935,6 +2091,7 @@ export interface PlatformSiteAppLinkRelations { site?: PlatformSite | null; } export interface PlatformSiteRelations { + platformEmailSiteIdentityBySiteId?: PlatformEmailSiteIdentity | null; platformSiteMetadatumBySiteId?: PlatformSiteMetadatum | null; platformSiteWebConfigBySiteId?: PlatformSiteWebConfig | null; platformPagesBySiteId?: ConnectionResult; @@ -2014,6 +2171,7 @@ export interface SiteAppLinkRelations { site?: Site | null; } export interface SiteRelations { + emailSiteIdentity?: EmailSiteIdentity | null; siteMetadatum?: SiteMetadatum | null; siteWebConfig?: SiteWebConfig | null; pages?: ConnectionResult; @@ -2139,9 +2297,9 @@ export interface WebauthnSettingRelations { userField?: Field | null; } // ============ Entity Types With Relations ============ +export type ApiWithRelations = Api & ApiRelations; export type ApiSchemaWithRelations = ApiSchema & ApiSchemaRelations; export type ApiSettingWithRelations = ApiSetting & ApiSettingRelations; -export type ApisWithRelations = Apis & ApisRelations; export type AstMigrationWithRelations = AstMigration & AstMigrationRelations; export type CheckConstraintWithRelations = CheckConstraint & CheckConstraintRelations; export type CompositeTypeWithRelations = CompositeType & CompositeTypeRelations; @@ -2155,6 +2313,10 @@ export type DomainWithRelations = Domain & DomainRelations; export type DomainEventWithRelations = DomainEvent & DomainEventRelations; export type DomainTypeWithRelations = DomainType & DomainTypeRelations; export type DomainVerificationWithRelations = DomainVerification & DomainVerificationRelations; +export type EmailIdentityWithRelations = EmailIdentity & EmailIdentityRelations; +export type EmailProviderAccountWithRelations = EmailProviderAccount & + EmailProviderAccountRelations; +export type EmailSiteIdentityWithRelations = EmailSiteIdentity & EmailSiteIdentityRelations; export type EmbeddingChunkWithRelations = EmbeddingChunk & EmbeddingChunkRelations; export type EnumWithRelations = Enum & EnumRelations; export type ExclusionConstraintWithRelations = ExclusionConstraint & ExclusionConstraintRelations; @@ -2173,14 +2335,20 @@ export type ManagedDomainWithRelations = ManagedDomain & ManagedDomainRelations; export type NodeTypeRegistryWithRelations = NodeTypeRegistry & NodeTypeRegistryRelations; export type PageWithRelations = Page & PageRelations; export type PartitionWithRelations = Partition & PartitionRelations; +export type PlatformApiWithRelations = PlatformApi & PlatformApiRelations; export type PlatformApiSchemaWithRelations = PlatformApiSchema & PlatformApiSchemaRelations; export type PlatformApiSettingWithRelations = PlatformApiSetting & PlatformApiSettingRelations; -export type PlatformApisWithRelations = PlatformApis & PlatformApisRelations; export type PlatformCorsSettingWithRelations = PlatformCorsSetting & PlatformCorsSettingRelations; export type PlatformDomainWithRelations = PlatformDomain & PlatformDomainRelations; export type PlatformDomainEventWithRelations = PlatformDomainEvent & PlatformDomainEventRelations; export type PlatformDomainVerificationWithRelations = PlatformDomainVerification & PlatformDomainVerificationRelations; +export type PlatformEmailIdentityWithRelations = PlatformEmailIdentity & + PlatformEmailIdentityRelations; +export type PlatformEmailProviderAccountWithRelations = PlatformEmailProviderAccount & + PlatformEmailProviderAccountRelations; +export type PlatformEmailSiteIdentityWithRelations = PlatformEmailSiteIdentity & + PlatformEmailSiteIdentityRelations; export type PlatformManagedDomainWithRelations = PlatformManagedDomain & PlatformManagedDomainRelations; export type PlatformPageWithRelations = PlatformPage & PlatformPageRelations; @@ -2230,6 +2398,33 @@ export type ViewRuleWithRelations = ViewRule & ViewRuleRelations; export type ViewTableWithRelations = ViewTable & ViewTableRelations; export type WebauthnSettingWithRelations = WebauthnSetting & WebauthnSettingRelations; // ============ Entity Select Types ============ +export type ApiSelect = { + anonRole?: boolean; + config?: boolean; + createdAt?: boolean; + databaseId?: boolean; + dbname?: boolean; + id?: boolean; + isPublished?: boolean; + name?: boolean; + roleName?: boolean; + updatedAt?: boolean; + apiSetting?: { + select: ApiSettingSelect; + }; + apiSchemas?: { + select: ApiSchemaSelect; + first?: number; + filter?: ApiSchemaFilter; + orderBy?: ApiSchemaOrderBy[]; + }; + corsSettings?: { + select: CorsSettingSelect; + first?: number; + filter?: CorsSettingFilter; + orderBy?: CorsSettingOrderBy[]; + }; +}; export type ApiSchemaSelect = { apiId?: boolean; createdAt?: boolean; @@ -2238,7 +2433,7 @@ export type ApiSchemaSelect = { schemaId?: boolean; updatedAt?: boolean; api?: { - select: ApisSelect; + select: ApiSelect; }; schema?: { select: SchemaSelect; @@ -2265,34 +2460,7 @@ export type ApiSettingSelect = { statementTimeoutMs?: boolean; updatedAt?: boolean; api?: { - select: ApisSelect; - }; -}; -export type ApisSelect = { - anonRole?: boolean; - config?: boolean; - createdAt?: boolean; - databaseId?: boolean; - dbname?: boolean; - id?: boolean; - isPublished?: boolean; - name?: boolean; - roleName?: boolean; - updatedAt?: boolean; - apiSettingByApiId?: { - select: ApiSettingSelect; - }; - apiSchemasByApiId?: { - select: ApiSchemaSelect; - first?: number; - filter?: ApiSchemaFilter; - orderBy?: ApiSchemaOrderBy[]; - }; - corsSettingsByApiId?: { - select: CorsSettingSelect; - first?: number; - filter?: CorsSettingFilter; - orderBy?: CorsSettingOrderBy[]; + select: ApiSelect; }; }; export type AstMigrationSelect = { @@ -2358,7 +2526,7 @@ export type CorsSettingSelect = { id?: boolean; updatedAt?: boolean; api?: { - select: ApisSelect; + select: ApiSelect; }; }; export type DatabaseSelect = { @@ -2759,6 +2927,68 @@ export type DomainVerificationSelect = { select: ManagedDomainSelect; }; }; +export type EmailIdentitySelect = { + createdAt?: boolean; + databaseId?: boolean; + fromAddress?: boolean; + fromName?: boolean; + id?: boolean; + isActive?: boolean; + isDefault?: boolean; + name?: boolean; + providerAccountId?: boolean; + replyToAddress?: boolean; + supportAddress?: boolean; + transportMode?: boolean; + updatedAt?: boolean; + providerAccount?: { + select: EmailProviderAccountSelect; + }; + emailSiteIdentities?: { + select: EmailSiteIdentitySelect; + first?: number; + filter?: EmailSiteIdentityFilter; + orderBy?: EmailSiteIdentityOrderBy[]; + }; +}; +export type EmailProviderAccountSelect = { + apiBaseUrl?: boolean; + createdAt?: boolean; + credentialsSecretName?: boolean; + databaseId?: boolean; + id?: boolean; + isActive?: boolean; + name?: boolean; + provider?: boolean; + providerAccountName?: boolean; + region?: boolean; + smtpHost?: boolean; + smtpPort?: boolean; + smtpSecure?: boolean; + smtpUser?: boolean; + updatedAt?: boolean; + webhookSigningSecretName?: boolean; + emailIdentitiesByProviderAccountId?: { + select: EmailIdentitySelect; + first?: number; + filter?: EmailIdentityFilter; + orderBy?: EmailIdentityOrderBy[]; + }; +}; +export type EmailSiteIdentitySelect = { + createdAt?: boolean; + databaseId?: boolean; + emailIdentityId?: boolean; + id?: boolean; + siteId?: boolean; + updatedAt?: boolean; + emailIdentity?: { + select: EmailIdentitySelect; + }; + site?: { + select: SiteSelect; + }; +}; export type EmbeddingChunkSelect = { chunkOverlap?: boolean; chunkSize?: boolean; @@ -3135,6 +3365,29 @@ export type PartitionSelect = { select: TableSelect; }; }; +export type PlatformApiSelect = { + anonRole?: boolean; + config?: boolean; + createdAt?: boolean; + dbname?: boolean; + id?: boolean; + isPublished?: boolean; + name?: boolean; + roleName?: boolean; + updatedAt?: boolean; + platformApiSettingByApiId?: { + select: PlatformApiSettingSelect; + }; + platformCorsSettingByApiId?: { + select: PlatformCorsSettingSelect; + }; + platformApiSchemasByApiId?: { + select: PlatformApiSchemaSelect; + first?: number; + filter?: PlatformApiSchemaFilter; + orderBy?: PlatformApiSchemaOrderBy[]; + }; +}; export type PlatformApiSchemaSelect = { apiId?: boolean; createdAt?: boolean; @@ -3142,7 +3395,7 @@ export type PlatformApiSchemaSelect = { schemaId?: boolean; updatedAt?: boolean; api?: { - select: PlatformApisSelect; + select: PlatformApiSelect; }; schema?: { select: SchemaSelect; @@ -3168,30 +3421,7 @@ export type PlatformApiSettingSelect = { statementTimeoutMs?: boolean; updatedAt?: boolean; api?: { - select: PlatformApisSelect; - }; -}; -export type PlatformApisSelect = { - anonRole?: boolean; - config?: boolean; - createdAt?: boolean; - dbname?: boolean; - id?: boolean; - isPublished?: boolean; - name?: boolean; - roleName?: boolean; - updatedAt?: boolean; - platformApiSettingByApiId?: { - select: PlatformApiSettingSelect; - }; - platformCorsSettingByApiId?: { - select: PlatformCorsSettingSelect; - }; - platformApiSchemasByApiId?: { - select: PlatformApiSchemaSelect; - first?: number; - filter?: PlatformApiSchemaFilter; - orderBy?: PlatformApiSchemaOrderBy[]; + select: PlatformApiSelect; }; }; export type PlatformCorsSettingSelect = { @@ -3201,7 +3431,7 @@ export type PlatformCorsSettingSelect = { id?: boolean; updatedAt?: boolean; api?: { - select: PlatformApisSelect; + select: PlatformApiSelect; }; }; export type PlatformDomainSelect = { @@ -3276,6 +3506,65 @@ export type PlatformDomainVerificationSelect = { select: PlatformManagedDomainSelect; }; }; +export type PlatformEmailIdentitySelect = { + createdAt?: boolean; + fromAddress?: boolean; + fromName?: boolean; + id?: boolean; + isActive?: boolean; + isDefault?: boolean; + name?: boolean; + providerAccountId?: boolean; + replyToAddress?: boolean; + supportAddress?: boolean; + transportMode?: boolean; + updatedAt?: boolean; + providerAccount?: { + select: PlatformEmailProviderAccountSelect; + }; + platformEmailSiteIdentitiesByEmailIdentityId?: { + select: PlatformEmailSiteIdentitySelect; + first?: number; + filter?: PlatformEmailSiteIdentityFilter; + orderBy?: PlatformEmailSiteIdentityOrderBy[]; + }; +}; +export type PlatformEmailProviderAccountSelect = { + apiBaseUrl?: boolean; + createdAt?: boolean; + credentialsSecretName?: boolean; + id?: boolean; + isActive?: boolean; + name?: boolean; + provider?: boolean; + providerAccountName?: boolean; + region?: boolean; + smtpHost?: boolean; + smtpPort?: boolean; + smtpSecure?: boolean; + smtpUser?: boolean; + updatedAt?: boolean; + webhookSigningSecretName?: boolean; + platformEmailIdentitiesByProviderAccountId?: { + select: PlatformEmailIdentitySelect; + first?: number; + filter?: PlatformEmailIdentityFilter; + orderBy?: PlatformEmailIdentityOrderBy[]; + }; +}; +export type PlatformEmailSiteIdentitySelect = { + createdAt?: boolean; + emailIdentityId?: boolean; + id?: boolean; + siteId?: boolean; + updatedAt?: boolean; + emailIdentity?: { + select: PlatformEmailIdentitySelect; + }; + site?: { + select: PlatformSiteSelect; + }; +}; export type PlatformManagedDomainSelect = { allowPublicUsage?: boolean; annotations?: boolean; @@ -3344,6 +3633,9 @@ export type PlatformSiteSelect = { resourceId?: boolean; title?: boolean; updatedAt?: boolean; + platformEmailSiteIdentityBySiteId?: { + select: PlatformEmailSiteIdentitySelect; + }; platformSiteMetadatumBySiteId?: { select: PlatformSiteMetadatumSelect; }; @@ -3748,6 +4040,9 @@ export type SiteSelect = { resourceId?: boolean; title?: boolean; updatedAt?: boolean; + emailSiteIdentity?: { + select: EmailSiteIdentitySelect; + }; siteMetadatum?: { select: SiteMetadatumSelect; }; @@ -4365,11 +4660,51 @@ export type WebauthnSettingSelect = { }; }; // ============ Table Filter Types ============ +export interface ApiFilter { + /** Checks for all expressions in this list. */ + and?: ApiFilter[]; + /** Filter by the object’s `anonRole` field. */ + anonRole?: StringFilter; + /** Filter by the object’s `apiSchemas` relation. */ + apiSchemas?: ApiToManyApiSchemaFilter; + /** `apiSchemas` exist. */ + apiSchemasExist?: boolean; + /** Filter by the object’s `apiSetting` relation. */ + apiSetting?: ApiSettingFilter; + /** A related `apiSetting` exists. */ + apiSettingExists?: boolean; + /** Filter by the object’s `config` field. */ + config?: JSONFilter; + /** Filter by the object’s `corsSettings` relation. */ + corsSettings?: ApiToManyCorsSettingFilter; + /** `corsSettings` exist. */ + corsSettingsExist?: boolean; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `dbname` field. */ + dbname?: StringFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `isPublished` field. */ + isPublished?: BooleanFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Negates the expression. */ + not?: ApiFilter; + /** Checks for any expressions in this list. */ + or?: ApiFilter[]; + /** Filter by the object’s `roleName` field. */ + roleName?: StringFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; +} export interface ApiSchemaFilter { /** Checks for all expressions in this list. */ and?: ApiSchemaFilter[]; /** Filter by the object’s `api` relation. */ - api?: ApisFilter; + api?: ApiFilter; /** Filter by the object’s `apiId` field. */ apiId?: UUIDFilter; /** Filter by the object’s `createdAt` field. */ @@ -4393,7 +4728,7 @@ export interface ApiSettingFilter { /** Checks for all expressions in this list. */ and?: ApiSettingFilter[]; /** Filter by the object’s `api` relation. */ - api?: ApisFilter; + api?: ApiFilter; /** Filter by the object’s `apiId` field. */ apiId?: UUIDFilter; /** Filter by the object’s `createdAt` field. */ @@ -4437,46 +4772,6 @@ export interface ApiSettingFilter { /** Filter by the object’s `updatedAt` field. */ updatedAt?: DatetimeFilter; } -export interface ApisFilter { - /** Checks for all expressions in this list. */ - and?: ApisFilter[]; - /** Filter by the object’s `anonRole` field. */ - anonRole?: StringFilter; - /** Filter by the object’s `apiSchemasByApiId` relation. */ - apiSchemasByApiId?: ApisToManyApiSchemaFilter; - /** `apiSchemasByApiId` exist. */ - apiSchemasByApiIdExist?: boolean; - /** Filter by the object’s `apiSettingByApiId` relation. */ - apiSettingByApiId?: ApiSettingFilter; - /** A related `apiSettingByApiId` exists. */ - apiSettingByApiIdExists?: boolean; - /** Filter by the object’s `config` field. */ - config?: JSONFilter; - /** Filter by the object’s `corsSettingsByApiId` relation. */ - corsSettingsByApiId?: ApisToManyCorsSettingFilter; - /** `corsSettingsByApiId` exist. */ - corsSettingsByApiIdExist?: boolean; - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Filter by the object’s `dbname` field. */ - dbname?: StringFilter; - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `isPublished` field. */ - isPublished?: BooleanFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Negates the expression. */ - not?: ApisFilter; - /** Checks for any expressions in this list. */ - or?: ApisFilter[]; - /** Filter by the object’s `roleName` field. */ - roleName?: StringFilter; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; -} export interface AstMigrationFilter { /** Filter by the object’s `actionId` field. */ actionId?: UUIDFilter; @@ -4589,7 +4884,7 @@ export interface CorsSettingFilter { /** Checks for all expressions in this list. */ and?: CorsSettingFilter[]; /** Filter by the object’s `api` relation. */ - api?: ApisFilter; + api?: ApiFilter; /** A related `api` exists. */ apiExists?: boolean; /** Filter by the object’s `apiId` field. */ @@ -5093,6 +5388,116 @@ export interface DomainVerificationFilter { /** Filter by the object’s `verifiedAt` field. */ verifiedAt?: DatetimeFilter; } +export interface EmailIdentityFilter { + /** Checks for all expressions in this list. */ + and?: EmailIdentityFilter[]; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `emailSiteIdentities` relation. */ + emailSiteIdentities?: EmailIdentityToManyEmailSiteIdentityFilter; + /** `emailSiteIdentities` exist. */ + emailSiteIdentitiesExist?: boolean; + /** Filter by the object’s `fromAddress` field. */ + fromAddress?: StringFilter; + /** Filter by the object’s `fromName` field. */ + fromName?: StringFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `isActive` field. */ + isActive?: BooleanFilter; + /** Filter by the object’s `isDefault` field. */ + isDefault?: BooleanFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Negates the expression. */ + not?: EmailIdentityFilter; + /** Checks for any expressions in this list. */ + or?: EmailIdentityFilter[]; + /** Filter by the object’s `providerAccount` relation. */ + providerAccount?: EmailProviderAccountFilter; + /** A related `providerAccount` exists. */ + providerAccountExists?: boolean; + /** Filter by the object’s `providerAccountId` field. */ + providerAccountId?: UUIDFilter; + /** Filter by the object’s `replyToAddress` field. */ + replyToAddress?: StringFilter; + /** Filter by the object’s `supportAddress` field. */ + supportAddress?: StringFilter; + /** Filter by the object’s `transportMode` field. */ + transportMode?: StringFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; +} +export interface EmailProviderAccountFilter { + /** Checks for all expressions in this list. */ + and?: EmailProviderAccountFilter[]; + /** Filter by the object’s `apiBaseUrl` field. */ + apiBaseUrl?: StringFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `credentialsSecretName` field. */ + credentialsSecretName?: StringFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `emailIdentitiesByProviderAccountId` relation. */ + emailIdentitiesByProviderAccountId?: EmailProviderAccountToManyEmailIdentityFilter; + /** `emailIdentitiesByProviderAccountId` exist. */ + emailIdentitiesByProviderAccountIdExist?: boolean; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `isActive` field. */ + isActive?: BooleanFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Negates the expression. */ + not?: EmailProviderAccountFilter; + /** Checks for any expressions in this list. */ + or?: EmailProviderAccountFilter[]; + /** Filter by the object’s `provider` field. */ + provider?: StringFilter; + /** Filter by the object’s `providerAccountName` field. */ + providerAccountName?: StringFilter; + /** Filter by the object’s `region` field. */ + region?: StringFilter; + /** Filter by the object’s `smtpHost` field. */ + smtpHost?: StringFilter; + /** Filter by the object’s `smtpPort` field. */ + smtpPort?: IntFilter; + /** Filter by the object’s `smtpSecure` field. */ + smtpSecure?: BooleanFilter; + /** Filter by the object’s `smtpUser` field. */ + smtpUser?: StringFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `webhookSigningSecretName` field. */ + webhookSigningSecretName?: StringFilter; +} +export interface EmailSiteIdentityFilter { + /** Checks for all expressions in this list. */ + and?: EmailSiteIdentityFilter[]; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `emailIdentity` relation. */ + emailIdentity?: EmailIdentityFilter; + /** Filter by the object’s `emailIdentityId` field. */ + emailIdentityId?: UUIDFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Negates the expression. */ + not?: EmailSiteIdentityFilter; + /** Checks for any expressions in this list. */ + or?: EmailSiteIdentityFilter[]; + /** Filter by the object’s `site` relation. */ + site?: SiteFilter; + /** Filter by the object’s `siteId` field. */ + siteId?: UUIDFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; +} export interface EmbeddingChunkFilter { /** Checks for all expressions in this list. */ and?: EmbeddingChunkFilter[]; @@ -5727,11 +6132,49 @@ export interface PartitionFilter { /** Filter by the object’s `updatedAt` field. */ updatedAt?: DatetimeFilter; } +export interface PlatformApiFilter { + /** Checks for all expressions in this list. */ + and?: PlatformApiFilter[]; + /** Filter by the object’s `anonRole` field. */ + anonRole?: StringFilter; + /** Filter by the object’s `config` field. */ + config?: JSONFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `dbname` field. */ + dbname?: StringFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `isPublished` field. */ + isPublished?: BooleanFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Negates the expression. */ + not?: PlatformApiFilter; + /** Checks for any expressions in this list. */ + or?: PlatformApiFilter[]; + /** Filter by the object’s `platformApiSchemasByApiId` relation. */ + platformApiSchemasByApiId?: PlatformApiToManyPlatformApiSchemaFilter; + /** `platformApiSchemasByApiId` exist. */ + platformApiSchemasByApiIdExist?: boolean; + /** Filter by the object’s `platformApiSettingByApiId` relation. */ + platformApiSettingByApiId?: PlatformApiSettingFilter; + /** A related `platformApiSettingByApiId` exists. */ + platformApiSettingByApiIdExists?: boolean; + /** Filter by the object’s `platformCorsSettingByApiId` relation. */ + platformCorsSettingByApiId?: PlatformCorsSettingFilter; + /** A related `platformCorsSettingByApiId` exists. */ + platformCorsSettingByApiIdExists?: boolean; + /** Filter by the object’s `roleName` field. */ + roleName?: StringFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; +} export interface PlatformApiSchemaFilter { /** Checks for all expressions in this list. */ and?: PlatformApiSchemaFilter[]; /** Filter by the object’s `api` relation. */ - api?: PlatformApisFilter; + api?: PlatformApiFilter; /** Filter by the object’s `apiId` field. */ apiId?: UUIDFilter; /** Filter by the object’s `createdAt` field. */ @@ -5753,7 +6196,7 @@ export interface PlatformApiSettingFilter { /** Checks for all expressions in this list. */ and?: PlatformApiSettingFilter[]; /** Filter by the object’s `api` relation. */ - api?: PlatformApisFilter; + api?: PlatformApiFilter; /** Filter by the object’s `apiId` field. */ apiId?: UUIDFilter; /** Filter by the object’s `createdAt` field. */ @@ -5795,51 +6238,13 @@ export interface PlatformApiSettingFilter { /** Filter by the object’s `updatedAt` field. */ updatedAt?: DatetimeFilter; } -export interface PlatformApisFilter { - /** Checks for all expressions in this list. */ - and?: PlatformApisFilter[]; - /** Filter by the object’s `anonRole` field. */ - anonRole?: StringFilter; - /** Filter by the object’s `config` field. */ - config?: JSONFilter; - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; - /** Filter by the object’s `dbname` field. */ - dbname?: StringFilter; - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `isPublished` field. */ - isPublished?: BooleanFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Negates the expression. */ - not?: PlatformApisFilter; - /** Checks for any expressions in this list. */ - or?: PlatformApisFilter[]; - /** Filter by the object’s `platformApiSchemasByApiId` relation. */ - platformApiSchemasByApiId?: PlatformApisToManyPlatformApiSchemaFilter; - /** `platformApiSchemasByApiId` exist. */ - platformApiSchemasByApiIdExist?: boolean; - /** Filter by the object’s `platformApiSettingByApiId` relation. */ - platformApiSettingByApiId?: PlatformApiSettingFilter; - /** A related `platformApiSettingByApiId` exists. */ - platformApiSettingByApiIdExists?: boolean; - /** Filter by the object’s `platformCorsSettingByApiId` relation. */ - platformCorsSettingByApiId?: PlatformCorsSettingFilter; - /** A related `platformCorsSettingByApiId` exists. */ - platformCorsSettingByApiIdExists?: boolean; - /** Filter by the object’s `roleName` field. */ - roleName?: StringFilter; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; -} export interface PlatformCorsSettingFilter { /** Filter by the object’s `allowedOrigins` field. */ allowedOrigins?: StringListFilter; /** Checks for all expressions in this list. */ and?: PlatformCorsSettingFilter[]; /** Filter by the object’s `api` relation. */ - api?: PlatformApisFilter; + api?: PlatformApiFilter; /** A related `api` exists. */ apiExists?: boolean; /** Filter by the object’s `apiId` field. */ @@ -5985,6 +6390,110 @@ export interface PlatformDomainVerificationFilter { /** Filter by the object’s `verifiedAt` field. */ verifiedAt?: DatetimeFilter; } +export interface PlatformEmailIdentityFilter { + /** Checks for all expressions in this list. */ + and?: PlatformEmailIdentityFilter[]; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `fromAddress` field. */ + fromAddress?: StringFilter; + /** Filter by the object’s `fromName` field. */ + fromName?: StringFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `isActive` field. */ + isActive?: BooleanFilter; + /** Filter by the object’s `isDefault` field. */ + isDefault?: BooleanFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Negates the expression. */ + not?: PlatformEmailIdentityFilter; + /** Checks for any expressions in this list. */ + or?: PlatformEmailIdentityFilter[]; + /** Filter by the object’s `platformEmailSiteIdentitiesByEmailIdentityId` relation. */ + platformEmailSiteIdentitiesByEmailIdentityId?: PlatformEmailIdentityToManyPlatformEmailSiteIdentityFilter; + /** `platformEmailSiteIdentitiesByEmailIdentityId` exist. */ + platformEmailSiteIdentitiesByEmailIdentityIdExist?: boolean; + /** Filter by the object’s `providerAccount` relation. */ + providerAccount?: PlatformEmailProviderAccountFilter; + /** A related `providerAccount` exists. */ + providerAccountExists?: boolean; + /** Filter by the object’s `providerAccountId` field. */ + providerAccountId?: UUIDFilter; + /** Filter by the object’s `replyToAddress` field. */ + replyToAddress?: StringFilter; + /** Filter by the object’s `supportAddress` field. */ + supportAddress?: StringFilter; + /** Filter by the object’s `transportMode` field. */ + transportMode?: StringFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; +} +export interface PlatformEmailProviderAccountFilter { + /** Checks for all expressions in this list. */ + and?: PlatformEmailProviderAccountFilter[]; + /** Filter by the object’s `apiBaseUrl` field. */ + apiBaseUrl?: StringFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `credentialsSecretName` field. */ + credentialsSecretName?: StringFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `isActive` field. */ + isActive?: BooleanFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Negates the expression. */ + not?: PlatformEmailProviderAccountFilter; + /** Checks for any expressions in this list. */ + or?: PlatformEmailProviderAccountFilter[]; + /** Filter by the object’s `platformEmailIdentitiesByProviderAccountId` relation. */ + platformEmailIdentitiesByProviderAccountId?: PlatformEmailProviderAccountToManyPlatformEmailIdentityFilter; + /** `platformEmailIdentitiesByProviderAccountId` exist. */ + platformEmailIdentitiesByProviderAccountIdExist?: boolean; + /** Filter by the object’s `provider` field. */ + provider?: StringFilter; + /** Filter by the object’s `providerAccountName` field. */ + providerAccountName?: StringFilter; + /** Filter by the object’s `region` field. */ + region?: StringFilter; + /** Filter by the object’s `smtpHost` field. */ + smtpHost?: StringFilter; + /** Filter by the object’s `smtpPort` field. */ + smtpPort?: IntFilter; + /** Filter by the object’s `smtpSecure` field. */ + smtpSecure?: BooleanFilter; + /** Filter by the object’s `smtpUser` field. */ + smtpUser?: StringFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `webhookSigningSecretName` field. */ + webhookSigningSecretName?: StringFilter; +} +export interface PlatformEmailSiteIdentityFilter { + /** Checks for all expressions in this list. */ + and?: PlatformEmailSiteIdentityFilter[]; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `emailIdentity` relation. */ + emailIdentity?: PlatformEmailIdentityFilter; + /** Filter by the object’s `emailIdentityId` field. */ + emailIdentityId?: UUIDFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Negates the expression. */ + not?: PlatformEmailSiteIdentityFilter; + /** Checks for any expressions in this list. */ + or?: PlatformEmailSiteIdentityFilter[]; + /** Filter by the object’s `site` relation. */ + site?: PlatformSiteFilter; + /** Filter by the object’s `siteId` field. */ + siteId?: UUIDFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; +} export interface PlatformManagedDomainFilter { /** Filter by the object’s `allowPublicUsage` field. */ allowPublicUsage?: BooleanFilter; @@ -6108,6 +6617,10 @@ export interface PlatformSiteFilter { not?: PlatformSiteFilter; /** Checks for any expressions in this list. */ or?: PlatformSiteFilter[]; + /** Filter by the object’s `platformEmailSiteIdentityBySiteId` relation. */ + platformEmailSiteIdentityBySiteId?: PlatformEmailSiteIdentityFilter; + /** A related `platformEmailSiteIdentityBySiteId` exists. */ + platformEmailSiteIdentityBySiteIdExists?: boolean; /** Filter by the object’s `platformPagesBySiteId` relation. */ platformPagesBySiteId?: PlatformSiteToManyPlatformPageFilter; /** `platformPagesBySiteId` exist. */ @@ -6742,6 +7255,10 @@ export interface SiteFilter { databaseId?: UUIDFilter; /** Filter by the object’s `description` field. */ description?: StringFilter; + /** Filter by the object’s `emailSiteIdentity` relation. */ + emailSiteIdentity?: EmailSiteIdentityFilter; + /** A related `emailSiteIdentity` exists. */ + emailSiteIdentityExists?: boolean; /** Filter by the object’s `id` field. */ id?: UUIDFilter; /** Filter by the object’s `installationId` field. */ @@ -7642,30 +8159,54 @@ export interface WebauthnSettingFilter { userFieldId?: UUIDFilter; } // ============ OrderBy Types ============ -export type ApiSchemaOrderBy = - | 'API_ID_ASC' - | 'API_ID_DESC' +export type ApiOrderBy = + | 'ANON_ROLE_ASC' + | 'ANON_ROLE_DESC' + | 'CONFIG_ASC' + | 'CONFIG_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' + | 'DBNAME_ASC' + | 'DBNAME_DESC' | 'ID_ASC' | 'ID_DESC' + | 'IS_PUBLISHED_ASC' + | 'IS_PUBLISHED_DESC' + | 'NAME_ASC' + | 'NAME_DESC' | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' - | 'SCHEMA_ID_ASC' - | 'SCHEMA_ID_DESC' + | 'ROLE_NAME_ASC' + | 'ROLE_NAME_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC'; -export type ApiSettingOrderBy = +export type ApiSchemaOrderBy = | 'API_ID_ASC' | 'API_ID_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' - | 'ENABLE_AGGREGATES_ASC' + | 'ID_ASC' + | 'ID_DESC' + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'SCHEMA_ID_ASC' + | 'SCHEMA_ID_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC'; +export type ApiSettingOrderBy = + | 'API_ID_ASC' + | 'API_ID_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'ENABLE_AGGREGATES_ASC' | 'ENABLE_AGGREGATES_DESC' | 'ENABLE_BULK_ASC' | 'ENABLE_BULK_DESC' @@ -7700,30 +8241,6 @@ export type ApiSettingOrderBy = | 'STATEMENT_TIMEOUT_MS_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC'; -export type ApisOrderBy = - | 'ANON_ROLE_ASC' - | 'ANON_ROLE_DESC' - | 'CONFIG_ASC' - | 'CONFIG_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' - | 'DBNAME_ASC' - | 'DBNAME_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'IS_PUBLISHED_ASC' - | 'IS_PUBLISHED_DESC' - | 'NAME_ASC' - | 'NAME_DESC' - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ROLE_NAME_ASC' - | 'ROLE_NAME_DESC' - | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC'; export type AstMigrationOrderBy = | 'ACTION_ID_ASC' | 'ACTION_ID_DESC' @@ -8086,6 +8603,88 @@ export type DomainVerificationOrderBy = | 'UPDATED_AT_DESC' | 'VERIFIED_AT_ASC' | 'VERIFIED_AT_DESC'; +export type EmailIdentityOrderBy = + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'FROM_ADDRESS_ASC' + | 'FROM_ADDRESS_DESC' + | 'FROM_NAME_ASC' + | 'FROM_NAME_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'IS_ACTIVE_ASC' + | 'IS_ACTIVE_DESC' + | 'IS_DEFAULT_ASC' + | 'IS_DEFAULT_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'PROVIDER_ACCOUNT_ID_ASC' + | 'PROVIDER_ACCOUNT_ID_DESC' + | 'REPLY_TO_ADDRESS_ASC' + | 'REPLY_TO_ADDRESS_DESC' + | 'SUPPORT_ADDRESS_ASC' + | 'SUPPORT_ADDRESS_DESC' + | 'TRANSPORT_MODE_ASC' + | 'TRANSPORT_MODE_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC'; +export type EmailProviderAccountOrderBy = + | 'API_BASE_URL_ASC' + | 'API_BASE_URL_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'CREDENTIALS_SECRET_NAME_ASC' + | 'CREDENTIALS_SECRET_NAME_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'IS_ACTIVE_ASC' + | 'IS_ACTIVE_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'PROVIDER_ACCOUNT_NAME_ASC' + | 'PROVIDER_ACCOUNT_NAME_DESC' + | 'PROVIDER_ASC' + | 'PROVIDER_DESC' + | 'REGION_ASC' + | 'REGION_DESC' + | 'SMTP_HOST_ASC' + | 'SMTP_HOST_DESC' + | 'SMTP_PORT_ASC' + | 'SMTP_PORT_DESC' + | 'SMTP_SECURE_ASC' + | 'SMTP_SECURE_DESC' + | 'SMTP_USER_ASC' + | 'SMTP_USER_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC' + | 'WEBHOOK_SIGNING_SECRET_NAME_ASC' + | 'WEBHOOK_SIGNING_SECRET_NAME_DESC'; +export type EmailSiteIdentityOrderBy = + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'EMAIL_IDENTITY_ID_ASC' + | 'EMAIL_IDENTITY_ID_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'SITE_ID_ASC' + | 'SITE_ID_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC'; export type EmbeddingChunkOrderBy = | 'CHUNKING_TASK_NAME_ASC' | 'CHUNKING_TASK_NAME_DESC' @@ -8556,6 +9155,28 @@ export type PartitionOrderBy = | 'TABLE_ID_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC'; +export type PlatformApiOrderBy = + | 'ANON_ROLE_ASC' + | 'ANON_ROLE_DESC' + | 'CONFIG_ASC' + | 'CONFIG_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'DBNAME_ASC' + | 'DBNAME_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'IS_PUBLISHED_ASC' + | 'IS_PUBLISHED_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ROLE_NAME_ASC' + | 'ROLE_NAME_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC'; export type PlatformApiSchemaOrderBy = | 'API_ID_ASC' | 'API_ID_DESC' @@ -8610,28 +9231,6 @@ export type PlatformApiSettingOrderBy = | 'STATEMENT_TIMEOUT_MS_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC'; -export type PlatformApisOrderBy = - | 'ANON_ROLE_ASC' - | 'ANON_ROLE_DESC' - | 'CONFIG_ASC' - | 'CONFIG_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'DBNAME_ASC' - | 'DBNAME_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'IS_PUBLISHED_ASC' - | 'IS_PUBLISHED_DESC' - | 'NAME_ASC' - | 'NAME_DESC' - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ROLE_NAME_ASC' - | 'ROLE_NAME_DESC' - | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC'; export type PlatformCorsSettingOrderBy = | 'ALLOWED_ORIGINS_ASC' | 'ALLOWED_ORIGINS_DESC' @@ -8736,6 +9335,82 @@ export type PlatformDomainVerificationOrderBy = | 'UPDATED_AT_DESC' | 'VERIFIED_AT_ASC' | 'VERIFIED_AT_DESC'; +export type PlatformEmailIdentityOrderBy = + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'FROM_ADDRESS_ASC' + | 'FROM_ADDRESS_DESC' + | 'FROM_NAME_ASC' + | 'FROM_NAME_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'IS_ACTIVE_ASC' + | 'IS_ACTIVE_DESC' + | 'IS_DEFAULT_ASC' + | 'IS_DEFAULT_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'PROVIDER_ACCOUNT_ID_ASC' + | 'PROVIDER_ACCOUNT_ID_DESC' + | 'REPLY_TO_ADDRESS_ASC' + | 'REPLY_TO_ADDRESS_DESC' + | 'SUPPORT_ADDRESS_ASC' + | 'SUPPORT_ADDRESS_DESC' + | 'TRANSPORT_MODE_ASC' + | 'TRANSPORT_MODE_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC'; +export type PlatformEmailProviderAccountOrderBy = + | 'API_BASE_URL_ASC' + | 'API_BASE_URL_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'CREDENTIALS_SECRET_NAME_ASC' + | 'CREDENTIALS_SECRET_NAME_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'IS_ACTIVE_ASC' + | 'IS_ACTIVE_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'PROVIDER_ACCOUNT_NAME_ASC' + | 'PROVIDER_ACCOUNT_NAME_DESC' + | 'PROVIDER_ASC' + | 'PROVIDER_DESC' + | 'REGION_ASC' + | 'REGION_DESC' + | 'SMTP_HOST_ASC' + | 'SMTP_HOST_DESC' + | 'SMTP_PORT_ASC' + | 'SMTP_PORT_DESC' + | 'SMTP_SECURE_ASC' + | 'SMTP_SECURE_DESC' + | 'SMTP_USER_ASC' + | 'SMTP_USER_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC' + | 'WEBHOOK_SIGNING_SECRET_NAME_ASC' + | 'WEBHOOK_SIGNING_SECRET_NAME_DESC'; +export type PlatformEmailSiteIdentityOrderBy = + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'EMAIL_IDENTITY_ID_ASC' + | 'EMAIL_IDENTITY_ID_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'SITE_ID_ASC' + | 'SITE_ID_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC'; export type PlatformManagedDomainOrderBy = | 'ALLOW_PUBLIC_USAGE_ASC' | 'ALLOW_PUBLIC_USAGE_DESC' @@ -9801,6 +10476,36 @@ export type WebauthnSettingOrderBy = | 'USER_FIELD_ID_ASC' | 'USER_FIELD_ID_DESC'; // ============ CRUD Input Types ============ +export interface CreateApiInput { + clientMutationId?: string; + api: { + anonRole?: string; + config?: Record; + databaseId: string; + dbname?: string; + isPublished?: boolean; + name: string; + roleName?: string; + }; +} +export interface ApiPatch { + anonRole?: string | null; + config?: Record | null; + databaseId?: string | null; + dbname?: string | null; + isPublished?: boolean | null; + name?: string | null; + roleName?: string | null; +} +export interface UpdateApiInput { + clientMutationId?: string; + id: string; + apiPatch: ApiPatch; +} +export interface DeleteApiInput { + clientMutationId?: string; + id: string; +} export interface CreateApiSchemaInput { clientMutationId?: string; apiSchema: { @@ -9871,36 +10576,6 @@ export interface DeleteApiSettingInput { clientMutationId?: string; id: string; } -export interface CreateApisInput { - clientMutationId?: string; - apis: { - anonRole?: string; - config?: Record; - databaseId: string; - dbname?: string; - isPublished?: boolean; - name: string; - roleName?: string; - }; -} -export interface ApisPatch { - anonRole?: string | null; - config?: Record | null; - databaseId?: string | null; - dbname?: string | null; - isPublished?: boolean | null; - name?: string | null; - roleName?: string | null; -} -export interface UpdateApisInput { - clientMutationId?: string; - id: string; - apisPatch: ApisPatch; -} -export interface DeleteApisInput { - clientMutationId?: string; - id: string; -} export interface CreateAstMigrationInput { clientMutationId?: string; astMigration: { @@ -10357,6 +11032,106 @@ export interface DeleteDomainVerificationInput { clientMutationId?: string; id: string; } +export interface CreateEmailIdentityInput { + clientMutationId?: string; + emailIdentity: { + databaseId: string; + fromAddress: string; + fromName?: string; + isActive?: boolean; + isDefault?: boolean; + name: string; + providerAccountId?: string; + replyToAddress?: string; + supportAddress?: string; + transportMode?: string; + }; +} +export interface EmailIdentityPatch { + databaseId?: string | null; + fromAddress?: string | null; + fromName?: string | null; + isActive?: boolean | null; + isDefault?: boolean | null; + name?: string | null; + providerAccountId?: string | null; + replyToAddress?: string | null; + supportAddress?: string | null; + transportMode?: string | null; +} +export interface UpdateEmailIdentityInput { + clientMutationId?: string; + id: string; + emailIdentityPatch: EmailIdentityPatch; +} +export interface DeleteEmailIdentityInput { + clientMutationId?: string; + id: string; +} +export interface CreateEmailProviderAccountInput { + clientMutationId?: string; + emailProviderAccount: { + apiBaseUrl?: string; + credentialsSecretName: string; + databaseId: string; + isActive?: boolean; + name: string; + provider: string; + providerAccountName?: string; + region?: string; + smtpHost?: string; + smtpPort?: number; + smtpSecure?: boolean; + smtpUser?: string; + webhookSigningSecretName?: string; + }; +} +export interface EmailProviderAccountPatch { + apiBaseUrl?: string | null; + credentialsSecretName?: string | null; + databaseId?: string | null; + isActive?: boolean | null; + name?: string | null; + provider?: string | null; + providerAccountName?: string | null; + region?: string | null; + smtpHost?: string | null; + smtpPort?: number | null; + smtpSecure?: boolean | null; + smtpUser?: string | null; + webhookSigningSecretName?: string | null; +} +export interface UpdateEmailProviderAccountInput { + clientMutationId?: string; + id: string; + emailProviderAccountPatch: EmailProviderAccountPatch; +} +export interface DeleteEmailProviderAccountInput { + clientMutationId?: string; + id: string; +} +export interface CreateEmailSiteIdentityInput { + clientMutationId?: string; + emailSiteIdentity: { + databaseId: string; + emailIdentityId: string; + siteId: string; + }; +} +export interface EmailSiteIdentityPatch { + databaseId?: string | null; + emailIdentityId?: string | null; + siteId?: string | null; +} +export interface UpdateEmailSiteIdentityInput { + clientMutationId?: string; + id: string; + emailSiteIdentityPatch: EmailSiteIdentityPatch; +} +export interface DeleteEmailSiteIdentityInput { + clientMutationId?: string; + id: string; +} export interface CreateEmbeddingChunkInput { clientMutationId?: string; embeddingChunk: { @@ -10939,10 +11714,38 @@ export interface DeletePartitionInput { clientMutationId?: string; id: string; } -export interface CreatePlatformApiSchemaInput { +export interface CreatePlatformApiInput { clientMutationId?: string; - platformApiSchema: { - apiId: string; + platformApi: { + anonRole?: string; + config?: Record; + dbname?: string; + isPublished?: boolean; + name: string; + roleName?: string; + }; +} +export interface PlatformApiPatch { + anonRole?: string | null; + config?: Record | null; + dbname?: string | null; + isPublished?: boolean | null; + name?: string | null; + roleName?: string | null; +} +export interface UpdatePlatformApiInput { + clientMutationId?: string; + id: string; + platformApiPatch: PlatformApiPatch; +} +export interface DeletePlatformApiInput { + clientMutationId?: string; + id: string; +} +export interface CreatePlatformApiSchemaInput { + clientMutationId?: string; + platformApiSchema: { + apiId: string; schemaId: string; }; } @@ -11005,34 +11808,6 @@ export interface DeletePlatformApiSettingInput { clientMutationId?: string; id: string; } -export interface CreatePlatformApisInput { - clientMutationId?: string; - platformApis: { - anonRole?: string; - config?: Record; - dbname?: string; - isPublished?: boolean; - name: string; - roleName?: string; - }; -} -export interface PlatformApisPatch { - anonRole?: string | null; - config?: Record | null; - dbname?: string | null; - isPublished?: boolean | null; - name?: string | null; - roleName?: string | null; -} -export interface UpdatePlatformApisInput { - clientMutationId?: string; - id: string; - platformApisPatch: PlatformApisPatch; -} -export interface DeletePlatformApisInput { - clientMutationId?: string; - id: string; -} export interface CreatePlatformCorsSettingInput { clientMutationId?: string; platformCorsSetting: { @@ -11161,6 +11936,100 @@ export interface DeletePlatformDomainVerificationInput { clientMutationId?: string; id: string; } +export interface CreatePlatformEmailIdentityInput { + clientMutationId?: string; + platformEmailIdentity: { + fromAddress: string; + fromName?: string; + isActive?: boolean; + isDefault?: boolean; + name: string; + providerAccountId?: string; + replyToAddress?: string; + supportAddress?: string; + transportMode?: string; + }; +} +export interface PlatformEmailIdentityPatch { + fromAddress?: string | null; + fromName?: string | null; + isActive?: boolean | null; + isDefault?: boolean | null; + name?: string | null; + providerAccountId?: string | null; + replyToAddress?: string | null; + supportAddress?: string | null; + transportMode?: string | null; +} +export interface UpdatePlatformEmailIdentityInput { + clientMutationId?: string; + id: string; + platformEmailIdentityPatch: PlatformEmailIdentityPatch; +} +export interface DeletePlatformEmailIdentityInput { + clientMutationId?: string; + id: string; +} +export interface CreatePlatformEmailProviderAccountInput { + clientMutationId?: string; + platformEmailProviderAccount: { + apiBaseUrl?: string; + credentialsSecretName: string; + isActive?: boolean; + name: string; + provider: string; + providerAccountName?: string; + region?: string; + smtpHost?: string; + smtpPort?: number; + smtpSecure?: boolean; + smtpUser?: string; + webhookSigningSecretName?: string; + }; +} +export interface PlatformEmailProviderAccountPatch { + apiBaseUrl?: string | null; + credentialsSecretName?: string | null; + isActive?: boolean | null; + name?: string | null; + provider?: string | null; + providerAccountName?: string | null; + region?: string | null; + smtpHost?: string | null; + smtpPort?: number | null; + smtpSecure?: boolean | null; + smtpUser?: string | null; + webhookSigningSecretName?: string | null; +} +export interface UpdatePlatformEmailProviderAccountInput { + clientMutationId?: string; + id: string; + platformEmailProviderAccountPatch: PlatformEmailProviderAccountPatch; +} +export interface DeletePlatformEmailProviderAccountInput { + clientMutationId?: string; + id: string; +} +export interface CreatePlatformEmailSiteIdentityInput { + clientMutationId?: string; + platformEmailSiteIdentity: { + emailIdentityId: string; + siteId: string; + }; +} +export interface PlatformEmailSiteIdentityPatch { + emailIdentityId?: string | null; + siteId?: string | null; +} +export interface UpdatePlatformEmailSiteIdentityInput { + clientMutationId?: string; + id: string; + platformEmailSiteIdentityPatch: PlatformEmailSiteIdentityPatch; +} +export interface DeletePlatformEmailSiteIdentityInput { + clientMutationId?: string; + id: string; +} export interface CreatePlatformManagedDomainInput { clientMutationId?: string; platformManagedDomain: { @@ -12503,9 +13372,9 @@ export interface DeleteWebauthnSettingInput { } // ============ Connection Fields Map ============ export const connectionFieldsMap = { - Apis: { - apiSchemasByApiId: 'ApiSchema', - corsSettingsByApiId: 'CorsSetting', + Api: { + apiSchemas: 'ApiSchema', + corsSettings: 'CorsSetting', }, Database: { checkConstraints: 'CheckConstraint', @@ -12549,6 +13418,12 @@ export const connectionFieldsMap = { httpRoutes: 'HttpRoute', routes: 'Route', }, + EmailIdentity: { + emailSiteIdentities: 'EmailSiteIdentity', + }, + EmailProviderAccount: { + emailIdentitiesByProviderAccountId: 'EmailIdentity', + }, Field: { embeddingChunksByEmbeddingFieldId: 'EmbeddingChunk', embeddingChunksByParentFkFieldId: 'EmbeddingChunk', @@ -12564,13 +13439,19 @@ export const connectionFieldsMap = { domainEvents: 'DomainEvent', domainVerifications: 'DomainVerification', }, - PlatformApis: { + PlatformApi: { platformApiSchemasByApiId: 'PlatformApiSchema', }, PlatformDomain: { platformDomainEventsByDomainId: 'PlatformDomainEvent', platformDomainVerificationsByDomainId: 'PlatformDomainVerification', }, + PlatformEmailIdentity: { + platformEmailSiteIdentitiesByEmailIdentityId: 'PlatformEmailSiteIdentity', + }, + PlatformEmailProviderAccount: { + platformEmailIdentitiesByProviderAccountId: 'PlatformEmailIdentity', + }, PlatformManagedDomain: { platformDomainEventsByManagedDomainId: 'PlatformDomainEvent', platformDomainVerificationsByManagedDomainId: 'PlatformDomainVerification', @@ -12713,7 +13594,7 @@ export interface SitesProvisionStaticSiteInput { siteConfig?: Record; } /** A filter to be used against many `ApiSchema` object types. All fields are combined with a logical ‘and.’ */ -export interface ApisToManyApiSchemaFilter { +export interface ApiToManyApiSchemaFilter { /** Filters to entities where every related entity matches. */ every?: ApiSchemaFilter; /** Filters to entities where no related entity matches. */ @@ -12722,7 +13603,7 @@ export interface ApisToManyApiSchemaFilter { some?: ApiSchemaFilter; } /** A filter to be used against many `CorsSetting` object types. All fields are combined with a logical ‘and.’ */ -export interface ApisToManyCorsSettingFilter { +export interface ApiToManyCorsSettingFilter { /** Filters to entities where every related entity matches. */ every?: CorsSettingFilter; /** Filters to entities where no related entity matches. */ @@ -13097,6 +13978,24 @@ export interface DomainToManyRouteFilter { /** Filters to entities where at least one related entity matches. */ some?: RouteFilter; } +/** A filter to be used against many `EmailSiteIdentity` object types. All fields are combined with a logical ‘and.’ */ +export interface EmailIdentityToManyEmailSiteIdentityFilter { + /** Filters to entities where every related entity matches. */ + every?: EmailSiteIdentityFilter; + /** Filters to entities where no related entity matches. */ + none?: EmailSiteIdentityFilter; + /** Filters to entities where at least one related entity matches. */ + some?: EmailSiteIdentityFilter; +} +/** A filter to be used against many `EmailIdentity` object types. All fields are combined with a logical ‘and.’ */ +export interface EmailProviderAccountToManyEmailIdentityFilter { + /** Filters to entities where every related entity matches. */ + every?: EmailIdentityFilter; + /** Filters to entities where no related entity matches. */ + none?: EmailIdentityFilter; + /** Filters to entities where at least one related entity matches. */ + some?: EmailIdentityFilter; +} /** A filter to be used against many `EmbeddingChunk` object types. All fields are combined with a logical ‘and.’ */ export interface FieldToManyEmbeddingChunkFilter { /** Filters to entities where every related entity matches. */ @@ -13161,7 +14060,7 @@ export interface ManagedDomainToManyDomainVerificationFilter { some?: DomainVerificationFilter; } /** A filter to be used against many `PlatformApiSchema` object types. All fields are combined with a logical ‘and.’ */ -export interface PlatformApisToManyPlatformApiSchemaFilter { +export interface PlatformApiToManyPlatformApiSchemaFilter { /** Filters to entities where every related entity matches. */ every?: PlatformApiSchemaFilter; /** Filters to entities where no related entity matches. */ @@ -13187,6 +14086,24 @@ export interface PlatformDomainToManyPlatformDomainVerificationFilter { /** Filters to entities where at least one related entity matches. */ some?: PlatformDomainVerificationFilter; } +/** A filter to be used against many `PlatformEmailSiteIdentity` object types. All fields are combined with a logical ‘and.’ */ +export interface PlatformEmailIdentityToManyPlatformEmailSiteIdentityFilter { + /** Filters to entities where every related entity matches. */ + every?: PlatformEmailSiteIdentityFilter; + /** Filters to entities where no related entity matches. */ + none?: PlatformEmailSiteIdentityFilter; + /** Filters to entities where at least one related entity matches. */ + some?: PlatformEmailSiteIdentityFilter; +} +/** A filter to be used against many `PlatformEmailIdentity` object types. All fields are combined with a logical ‘and.’ */ +export interface PlatformEmailProviderAccountToManyPlatformEmailIdentityFilter { + /** Filters to entities where every related entity matches. */ + every?: PlatformEmailIdentityFilter; + /** Filters to entities where no related entity matches. */ + none?: PlatformEmailIdentityFilter; + /** Filters to entities where at least one related entity matches. */ + some?: PlatformEmailIdentityFilter; +} /** A filter to be used against many `PlatformDomainEvent` object types. All fields are combined with a logical ‘and.’ */ export interface PlatformManagedDomainToManyPlatformDomainEventFilter { /** Filters to entities where every related entity matches. */ @@ -13670,6 +14587,26 @@ export interface ViewToManyViewTableFilter { /** Filters to entities where at least one related entity matches. */ some?: ViewTableFilter; } +/** An input for mutations affecting `Api` */ +export interface ApiInput { + /** Anonymous role the API executes as */ + anonRole?: string; + /** Module-specific configuration for this API surface */ + config?: Record; + createdAt?: string; + /** Database that owns this resource (database-scoped isolation) */ + databaseId: string; + /** Database this API surface serves */ + dbname?: string; + id?: string; + /** Whether other scopes may see and route to this API surface */ + isPublished?: boolean; + /** Owner-local API surface name */ + name: string; + /** Authenticated role the API executes as */ + roleName?: string; + updatedAt?: string; +} /** An input for mutations affecting `ApiSchema` */ export interface ApiSchemaInput { /** API surface that exposes this schema */ @@ -13720,26 +14657,6 @@ export interface ApiSettingInput { statementTimeoutMs?: string; updatedAt?: string; } -/** An input for mutations affecting `Apis` */ -export interface ApisInput { - /** Anonymous role the API executes as */ - anonRole?: string; - /** Module-specific configuration for this API surface */ - config?: Record; - createdAt?: string; - /** Database that owns this resource (database-scoped isolation) */ - databaseId: string; - /** Database this API surface serves */ - dbname?: string; - id?: string; - /** Whether other scopes may see and route to this API surface */ - isPublished?: boolean; - /** Owner-local API surface name */ - name: string; - /** Authenticated role the API executes as */ - roleName?: string; - updatedAt?: string; -} /** An input for mutations affecting `CheckConstraint` */ export interface CheckConstraintInput { category?: ObjectCategory; @@ -13972,6 +14889,76 @@ export interface DomainVerificationInput { /** When this challenge succeeded */ verifiedAt?: string; } +/** An input for mutations affecting `EmailIdentity` */ +export interface EmailIdentityInput { + createdAt?: string; + /** Database that owns this resource (database-scoped isolation) */ + databaseId: string; + /** Envelope/header From address, lower-case. Must be accepted by the sending account at the provider. */ + fromAddress: string; + /** Display name shown beside the from address */ + fromName?: string; + id?: string; + /** Whether this identity may be resolved for a send */ + isActive?: boolean; + /** The scope default identity, used when no site binding resolves. At most one per scope key. */ + isDefault?: boolean; + /** Operator-facing name for this identity (e.g. transactional, support) */ + name: string; + /** Same-scope provider account this identity sends through. Required for transport_mode = own, NULL for platform_shared. */ + providerAccountId?: string; + /** Reply-To address when replies should not go to the from address */ + replyToAddress?: string; + /** Support address rendered in message bodies and footers */ + supportAddress?: string; + /** own = send through provider_account_id in this scope; platform_shared = send through the platform installation's shared account, an explicit recorded choice and never an implicit fallback */ + transportMode?: string; + updatedAt?: string; +} +/** An input for mutations affecting `EmailProviderAccount` */ +export interface EmailProviderAccountInput { + /** Provider API base URL when it is not the provider default (e.g. Mailgun EU) */ + apiBaseUrl?: string; + createdAt?: string; + /** Name of the secret holding this account's API key or SMTP password. The value is resolved from the secret store at send time (realm = this row's id) and is never stored here. */ + credentialsSecretName: string; + /** Database that owns this resource (database-scoped isolation) */ + databaseId: string; + id?: string; + /** Whether identities may send through this account. Disabling one row stops every identity that references it. */ + isActive?: boolean; + /** Operator-facing name for this account (e.g. transactional, marketing) */ + name: string; + /** integration_providers.slug of the provider this account is at (mailgun, ses, postmark, smtp), matched by string not by FK */ + provider: string; + /** Account identifier at the provider — the Mailgun sending domain, the SES verified identity, the Postmark server name */ + providerAccountName?: string; + /** Provider region for region-addressed providers (e.g. SES us-east-1) */ + region?: string; + /** SMTP host (provider = smtp, or a provider addressed over SMTP) */ + smtpHost?: string; + /** SMTP port */ + smtpPort?: number; + /** Whether the SMTP connection uses implicit TLS */ + smtpSecure?: boolean; + /** SMTP username; the password is a secret, addressed by credentials_secret_name */ + smtpUser?: string; + updatedAt?: string; + /** Name of the secret used to verify this provider's delivery/bounce webhooks. Name only; the value stays in the secret store. */ + webhookSigningSecretName?: string; +} +/** An input for mutations affecting `EmailSiteIdentity` */ +export interface EmailSiteIdentityInput { + createdAt?: string; + /** Database that owns this resource (database-scoped isolation) */ + databaseId: string; + /** Identity this site sends as */ + emailIdentityId: string; + id?: string; + /** Site whose mail is sent as the bound identity */ + siteId: string; + updatedAt?: string; +} /** An input for mutations affecting `EmbeddingChunk` */ export interface EmbeddingChunkInput { chunkOverlap?: number; @@ -14259,6 +15246,24 @@ export interface PartitionInput { tableId: string; updatedAt?: string; } +/** An input for mutations affecting `PlatformApi` */ +export interface PlatformApiInput { + /** Anonymous role the API executes as */ + anonRole?: string; + /** Module-specific configuration for this API surface */ + config?: Record; + createdAt?: string; + /** Database this API surface serves */ + dbname?: string; + id?: string; + /** Whether other scopes may see and route to this API surface */ + isPublished?: boolean; + /** Owner-local API surface name */ + name: string; + /** Authenticated role the API executes as */ + roleName?: string; + updatedAt?: string; +} /** An input for mutations affecting `PlatformApiSchema` */ export interface PlatformApiSchemaInput { /** API surface that exposes this schema */ @@ -14305,24 +15310,6 @@ export interface PlatformApiSettingInput { statementTimeoutMs?: string; updatedAt?: string; } -/** An input for mutations affecting `PlatformApis` */ -export interface PlatformApisInput { - /** Anonymous role the API executes as */ - anonRole?: string; - /** Module-specific configuration for this API surface */ - config?: Record; - createdAt?: string; - /** Database this API surface serves */ - dbname?: string; - id?: string; - /** Whether other scopes may see and route to this API surface */ - isPublished?: boolean; - /** Owner-local API surface name */ - name: string; - /** Authenticated role the API executes as */ - roleName?: string; - updatedAt?: string; -} /** An input for mutations affecting `PlatformCorsSetting` */ export interface PlatformCorsSettingInput { /** Array of allowed CORS origins (e.g. https://example.com) */ @@ -14411,6 +15398,70 @@ export interface PlatformDomainVerificationInput { /** When this challenge succeeded */ verifiedAt?: string; } +/** An input for mutations affecting `PlatformEmailIdentity` */ +export interface PlatformEmailIdentityInput { + createdAt?: string; + /** Envelope/header From address, lower-case. Must be accepted by the sending account at the provider. */ + fromAddress: string; + /** Display name shown beside the from address */ + fromName?: string; + id?: string; + /** Whether this identity may be resolved for a send */ + isActive?: boolean; + /** The scope default identity, used when no site binding resolves. At most one per scope key. */ + isDefault?: boolean; + /** Operator-facing name for this identity (e.g. transactional, support) */ + name: string; + /** Same-scope provider account this identity sends through. Required for transport_mode = own, NULL for platform_shared. */ + providerAccountId?: string; + /** Reply-To address when replies should not go to the from address */ + replyToAddress?: string; + /** Support address rendered in message bodies and footers */ + supportAddress?: string; + /** own = send through provider_account_id in this scope; platform_shared = send through the platform installation's shared account, an explicit recorded choice and never an implicit fallback */ + transportMode?: string; + updatedAt?: string; +} +/** An input for mutations affecting `PlatformEmailProviderAccount` */ +export interface PlatformEmailProviderAccountInput { + /** Provider API base URL when it is not the provider default (e.g. Mailgun EU) */ + apiBaseUrl?: string; + createdAt?: string; + /** Name of the secret holding this account's API key or SMTP password. The value is resolved from the secret store at send time (realm = this row's id) and is never stored here. */ + credentialsSecretName: string; + id?: string; + /** Whether identities may send through this account. Disabling one row stops every identity that references it. */ + isActive?: boolean; + /** Operator-facing name for this account (e.g. transactional, marketing) */ + name: string; + /** integration_providers.slug of the provider this account is at (mailgun, ses, postmark, smtp), matched by string not by FK */ + provider: string; + /** Account identifier at the provider — the Mailgun sending domain, the SES verified identity, the Postmark server name */ + providerAccountName?: string; + /** Provider region for region-addressed providers (e.g. SES us-east-1) */ + region?: string; + /** SMTP host (provider = smtp, or a provider addressed over SMTP) */ + smtpHost?: string; + /** SMTP port */ + smtpPort?: number; + /** Whether the SMTP connection uses implicit TLS */ + smtpSecure?: boolean; + /** SMTP username; the password is a secret, addressed by credentials_secret_name */ + smtpUser?: string; + updatedAt?: string; + /** Name of the secret used to verify this provider's delivery/bounce webhooks. Name only; the value stays in the secret store. */ + webhookSigningSecretName?: string; +} +/** An input for mutations affecting `PlatformEmailSiteIdentity` */ +export interface PlatformEmailSiteIdentityInput { + createdAt?: string; + /** Identity this site sends as */ + emailIdentityId: string; + id?: string; + /** Site whose mail is sent as the bound identity */ + siteId: string; + updatedAt?: string; +} /** An input for mutations affecting `PlatformManagedDomain` */ export interface PlatformManagedDomainInput { /** Whether tenants may claim subdomains under this managed hostname */ @@ -15166,7 +16217,7 @@ export interface ApiSchemaFilter { /** Checks for all expressions in this list. */ and?: ApiSchemaFilter[]; /** Filter by the object’s `api` relation. */ - api?: ApisFilter; + api?: ApiFilter; /** Filter by the object’s `apiId` field. */ apiId?: UUIDFilter; /** Filter by the object’s `createdAt` field. */ @@ -15193,7 +16244,7 @@ export interface CorsSettingFilter { /** Checks for all expressions in this list. */ and?: CorsSettingFilter[]; /** Filter by the object’s `api` relation. */ - api?: ApisFilter; + api?: ApiFilter; /** A related `api` exists. */ apiExists?: boolean; /** Filter by the object’s `apiId` field. */ @@ -16847,12 +17898,80 @@ export interface RouteFilter { /** Filter by the object’s `updatedAt` field. */ updatedAt?: DatetimeFilter; } +/** A filter to be used against `EmailSiteIdentity` object types. All fields are combined with a logical ‘and.’ */ +export interface EmailSiteIdentityFilter { + /** Checks for all expressions in this list. */ + and?: EmailSiteIdentityFilter[]; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `emailIdentity` relation. */ + emailIdentity?: EmailIdentityFilter; + /** Filter by the object’s `emailIdentityId` field. */ + emailIdentityId?: UUIDFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Negates the expression. */ + not?: EmailSiteIdentityFilter; + /** Checks for any expressions in this list. */ + or?: EmailSiteIdentityFilter[]; + /** Filter by the object’s `site` relation. */ + site?: SiteFilter; + /** Filter by the object’s `siteId` field. */ + siteId?: UUIDFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; +} +/** A filter to be used against `EmailIdentity` object types. All fields are combined with a logical ‘and.’ */ +export interface EmailIdentityFilter { + /** Checks for all expressions in this list. */ + and?: EmailIdentityFilter[]; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `emailSiteIdentities` relation. */ + emailSiteIdentities?: EmailIdentityToManyEmailSiteIdentityFilter; + /** `emailSiteIdentities` exist. */ + emailSiteIdentitiesExist?: boolean; + /** Filter by the object’s `fromAddress` field. */ + fromAddress?: StringFilter; + /** Filter by the object’s `fromName` field. */ + fromName?: StringFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `isActive` field. */ + isActive?: BooleanFilter; + /** Filter by the object’s `isDefault` field. */ + isDefault?: BooleanFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Negates the expression. */ + not?: EmailIdentityFilter; + /** Checks for any expressions in this list. */ + or?: EmailIdentityFilter[]; + /** Filter by the object’s `providerAccount` relation. */ + providerAccount?: EmailProviderAccountFilter; + /** A related `providerAccount` exists. */ + providerAccountExists?: boolean; + /** Filter by the object’s `providerAccountId` field. */ + providerAccountId?: UUIDFilter; + /** Filter by the object’s `replyToAddress` field. */ + replyToAddress?: StringFilter; + /** Filter by the object’s `supportAddress` field. */ + supportAddress?: StringFilter; + /** Filter by the object’s `transportMode` field. */ + transportMode?: StringFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; +} /** A filter to be used against `PlatformApiSchema` object types. All fields are combined with a logical ‘and.’ */ export interface PlatformApiSchemaFilter { /** Checks for all expressions in this list. */ and?: PlatformApiSchemaFilter[]; /** Filter by the object’s `api` relation. */ - api?: PlatformApisFilter; + api?: PlatformApiFilter; /** Filter by the object’s `apiId` field. */ apiId?: UUIDFilter; /** Filter by the object’s `createdAt` field. */ @@ -16958,22 +18077,86 @@ export interface PlatformDomainVerificationFilter { /** Filter by the object’s `verifiedAt` field. */ verifiedAt?: DatetimeFilter; } -/** A filter to be used against `PlatformPage` object types. All fields are combined with a logical ‘and.’ */ -export interface PlatformPageFilter { +/** A filter to be used against `PlatformEmailSiteIdentity` object types. All fields are combined with a logical ‘and.’ */ +export interface PlatformEmailSiteIdentityFilter { /** Checks for all expressions in this list. */ - and?: PlatformPageFilter[]; - /** Filter by the object’s `commitId` field. */ - commitId?: UUIDFilter; - /** Filter by the object’s `content` field. */ - content?: JSONFilter; + and?: PlatformEmailSiteIdentityFilter[]; /** Filter by the object’s `createdAt` field. */ createdAt?: DatetimeFilter; + /** Filter by the object’s `emailIdentity` relation. */ + emailIdentity?: PlatformEmailIdentityFilter; + /** Filter by the object’s `emailIdentityId` field. */ + emailIdentityId?: UUIDFilter; /** Filter by the object’s `id` field. */ id?: UUIDFilter; /** Negates the expression. */ - not?: PlatformPageFilter; + not?: PlatformEmailSiteIdentityFilter; /** Checks for any expressions in this list. */ - or?: PlatformPageFilter[]; + or?: PlatformEmailSiteIdentityFilter[]; + /** Filter by the object’s `site` relation. */ + site?: PlatformSiteFilter; + /** Filter by the object’s `siteId` field. */ + siteId?: UUIDFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; +} +/** A filter to be used against `PlatformEmailIdentity` object types. All fields are combined with a logical ‘and.’ */ +export interface PlatformEmailIdentityFilter { + /** Checks for all expressions in this list. */ + and?: PlatformEmailIdentityFilter[]; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `fromAddress` field. */ + fromAddress?: StringFilter; + /** Filter by the object’s `fromName` field. */ + fromName?: StringFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `isActive` field. */ + isActive?: BooleanFilter; + /** Filter by the object’s `isDefault` field. */ + isDefault?: BooleanFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Negates the expression. */ + not?: PlatformEmailIdentityFilter; + /** Checks for any expressions in this list. */ + or?: PlatformEmailIdentityFilter[]; + /** Filter by the object’s `platformEmailSiteIdentitiesByEmailIdentityId` relation. */ + platformEmailSiteIdentitiesByEmailIdentityId?: PlatformEmailIdentityToManyPlatformEmailSiteIdentityFilter; + /** `platformEmailSiteIdentitiesByEmailIdentityId` exist. */ + platformEmailSiteIdentitiesByEmailIdentityIdExist?: boolean; + /** Filter by the object’s `providerAccount` relation. */ + providerAccount?: PlatformEmailProviderAccountFilter; + /** A related `providerAccount` exists. */ + providerAccountExists?: boolean; + /** Filter by the object’s `providerAccountId` field. */ + providerAccountId?: UUIDFilter; + /** Filter by the object’s `replyToAddress` field. */ + replyToAddress?: StringFilter; + /** Filter by the object’s `supportAddress` field. */ + supportAddress?: StringFilter; + /** Filter by the object’s `transportMode` field. */ + transportMode?: StringFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; +} +/** A filter to be used against `PlatformPage` object types. All fields are combined with a logical ‘and.’ */ +export interface PlatformPageFilter { + /** Checks for all expressions in this list. */ + and?: PlatformPageFilter[]; + /** Filter by the object’s `commitId` field. */ + commitId?: UUIDFilter; + /** Filter by the object’s `content` field. */ + content?: JSONFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Negates the expression. */ + not?: PlatformPageFilter; + /** Checks for any expressions in this list. */ + or?: PlatformPageFilter[]; /** Filter by the object’s `site` relation. */ site?: PlatformSiteFilter; /** Filter by the object’s `siteId` field. */ @@ -17302,26 +18485,26 @@ export interface SiteThemeFilter { /** Filter by the object’s `updatedAt` field. */ updatedAt?: DatetimeFilter; } -/** A filter to be used against `Apis` object types. All fields are combined with a logical ‘and.’ */ -export interface ApisFilter { +/** A filter to be used against `Api` object types. All fields are combined with a logical ‘and.’ */ +export interface ApiFilter { /** Checks for all expressions in this list. */ - and?: ApisFilter[]; + and?: ApiFilter[]; /** Filter by the object’s `anonRole` field. */ anonRole?: StringFilter; - /** Filter by the object’s `apiSchemasByApiId` relation. */ - apiSchemasByApiId?: ApisToManyApiSchemaFilter; - /** `apiSchemasByApiId` exist. */ - apiSchemasByApiIdExist?: boolean; - /** Filter by the object’s `apiSettingByApiId` relation. */ - apiSettingByApiId?: ApiSettingFilter; - /** A related `apiSettingByApiId` exists. */ - apiSettingByApiIdExists?: boolean; + /** Filter by the object’s `apiSchemas` relation. */ + apiSchemas?: ApiToManyApiSchemaFilter; + /** `apiSchemas` exist. */ + apiSchemasExist?: boolean; + /** Filter by the object’s `apiSetting` relation. */ + apiSetting?: ApiSettingFilter; + /** A related `apiSetting` exists. */ + apiSettingExists?: boolean; /** Filter by the object’s `config` field. */ config?: JSONFilter; - /** Filter by the object’s `corsSettingsByApiId` relation. */ - corsSettingsByApiId?: ApisToManyCorsSettingFilter; - /** `corsSettingsByApiId` exist. */ - corsSettingsByApiIdExist?: boolean; + /** Filter by the object’s `corsSettings` relation. */ + corsSettings?: ApiToManyCorsSettingFilter; + /** `corsSettings` exist. */ + corsSettingsExist?: boolean; /** Filter by the object’s `createdAt` field. */ createdAt?: DatetimeFilter; /** Filter by the object’s `databaseId` field. */ @@ -17335,9 +18518,9 @@ export interface ApisFilter { /** Filter by the object’s `name` field. */ name?: StringFilter; /** Negates the expression. */ - not?: ApisFilter; + not?: ApiFilter; /** Checks for any expressions in this list. */ - or?: ApisFilter[]; + or?: ApiFilter[]; /** Filter by the object’s `roleName` field. */ roleName?: StringFilter; /** Filter by the object’s `updatedAt` field. */ @@ -17917,10 +19100,126 @@ export interface ManagedDomainFilter { /** Filter by the object’s `verifiedAt` field. */ verifiedAt?: DatetimeFilter; } -/** A filter to be used against `PlatformApis` object types. All fields are combined with a logical ‘and.’ */ -export interface PlatformApisFilter { +/** A filter to be used against `Site` object types. All fields are combined with a logical ‘and.’ */ +export interface SiteFilter { + /** Filter by the object’s `activeCommitId` field. */ + activeCommitId?: UUIDFilter; /** Checks for all expressions in this list. */ - and?: PlatformApisFilter[]; + and?: SiteFilter[]; + /** Filter by the object’s `bucketId` field. */ + bucketId?: UUIDFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `description` field. */ + description?: StringFilter; + /** Filter by the object’s `emailSiteIdentity` relation. */ + emailSiteIdentity?: EmailSiteIdentityFilter; + /** A related `emailSiteIdentity` exists. */ + emailSiteIdentityExists?: boolean; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `installationId` field. */ + installationId?: UUIDFilter; + /** Filter by the object’s `installationMemberSlug` field. */ + installationMemberSlug?: StringFilter; + /** Filter by the object’s `isPublished` field. */ + isPublished?: BooleanFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Negates the expression. */ + not?: SiteFilter; + /** Checks for any expressions in this list. */ + or?: SiteFilter[]; + /** Filter by the object’s `pages` relation. */ + pages?: SiteToManyPageFilter; + /** `pages` exist. */ + pagesExist?: boolean; + /** Filter by the object’s `resourceId` field. */ + resourceId?: UUIDFilter; + /** Filter by the object’s `siteAppLinks` relation. */ + siteAppLinks?: SiteToManySiteAppLinkFilter; + /** `siteAppLinks` exist. */ + siteAppLinksExist?: boolean; + /** Filter by the object’s `siteDeepLinks` relation. */ + siteDeepLinks?: SiteToManySiteDeepLinkFilter; + /** `siteDeepLinks` exist. */ + siteDeepLinksExist?: boolean; + /** Filter by the object’s `siteErrorPages` relation. */ + siteErrorPages?: SiteToManySiteErrorPageFilter; + /** `siteErrorPages` exist. */ + siteErrorPagesExist?: boolean; + /** Filter by the object’s `siteMetadatum` relation. */ + siteMetadatum?: SiteMetadatumFilter; + /** A related `siteMetadatum` exists. */ + siteMetadatumExists?: boolean; + /** Filter by the object’s `siteModules` relation. */ + siteModules?: SiteToManySiteModuleFilter; + /** `siteModules` exist. */ + siteModulesExist?: boolean; + /** Filter by the object’s `siteThemes` relation. */ + siteThemes?: SiteToManySiteThemeFilter; + /** `siteThemes` exist. */ + siteThemesExist?: boolean; + /** Filter by the object’s `siteWebConfig` relation. */ + siteWebConfig?: SiteWebConfigFilter; + /** A related `siteWebConfig` exists. */ + siteWebConfigExists?: boolean; + /** Filter by the object’s `title` field. */ + title?: StringFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; +} +/** A filter to be used against `EmailProviderAccount` object types. All fields are combined with a logical ‘and.’ */ +export interface EmailProviderAccountFilter { + /** Checks for all expressions in this list. */ + and?: EmailProviderAccountFilter[]; + /** Filter by the object’s `apiBaseUrl` field. */ + apiBaseUrl?: StringFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `credentialsSecretName` field. */ + credentialsSecretName?: StringFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `emailIdentitiesByProviderAccountId` relation. */ + emailIdentitiesByProviderAccountId?: EmailProviderAccountToManyEmailIdentityFilter; + /** `emailIdentitiesByProviderAccountId` exist. */ + emailIdentitiesByProviderAccountIdExist?: boolean; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `isActive` field. */ + isActive?: BooleanFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Negates the expression. */ + not?: EmailProviderAccountFilter; + /** Checks for any expressions in this list. */ + or?: EmailProviderAccountFilter[]; + /** Filter by the object’s `provider` field. */ + provider?: StringFilter; + /** Filter by the object’s `providerAccountName` field. */ + providerAccountName?: StringFilter; + /** Filter by the object’s `region` field. */ + region?: StringFilter; + /** Filter by the object’s `smtpHost` field. */ + smtpHost?: StringFilter; + /** Filter by the object’s `smtpPort` field. */ + smtpPort?: IntFilter; + /** Filter by the object’s `smtpSecure` field. */ + smtpSecure?: BooleanFilter; + /** Filter by the object’s `smtpUser` field. */ + smtpUser?: StringFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `webhookSigningSecretName` field. */ + webhookSigningSecretName?: StringFilter; +} +/** A filter to be used against `PlatformApi` object types. All fields are combined with a logical ‘and.’ */ +export interface PlatformApiFilter { + /** Checks for all expressions in this list. */ + and?: PlatformApiFilter[]; /** Filter by the object’s `anonRole` field. */ anonRole?: StringFilter; /** Filter by the object’s `config` field. */ @@ -17936,11 +19235,11 @@ export interface PlatformApisFilter { /** Filter by the object’s `name` field. */ name?: StringFilter; /** Negates the expression. */ - not?: PlatformApisFilter; + not?: PlatformApiFilter; /** Checks for any expressions in this list. */ - or?: PlatformApisFilter[]; + or?: PlatformApiFilter[]; /** Filter by the object’s `platformApiSchemasByApiId` relation. */ - platformApiSchemasByApiId?: PlatformApisToManyPlatformApiSchemaFilter; + platformApiSchemasByApiId?: PlatformApiToManyPlatformApiSchemaFilter; /** `platformApiSchemasByApiId` exist. */ platformApiSchemasByApiIdExist?: boolean; /** Filter by the object’s `platformApiSettingByApiId` relation. */ @@ -18068,6 +19367,10 @@ export interface PlatformSiteFilter { not?: PlatformSiteFilter; /** Checks for any expressions in this list. */ or?: PlatformSiteFilter[]; + /** Filter by the object’s `platformEmailSiteIdentityBySiteId` relation. */ + platformEmailSiteIdentityBySiteId?: PlatformEmailSiteIdentityFilter; + /** A related `platformEmailSiteIdentityBySiteId` exists. */ + platformEmailSiteIdentityBySiteIdExists?: boolean; /** Filter by the object’s `platformPagesBySiteId` relation. */ platformPagesBySiteId?: PlatformSiteToManyPlatformPageFilter; /** `platformPagesBySiteId` exist. */ @@ -18107,79 +19410,55 @@ export interface PlatformSiteFilter { /** Filter by the object’s `updatedAt` field. */ updatedAt?: DatetimeFilter; } -/** A filter to be used against `Site` object types. All fields are combined with a logical ‘and.’ */ -export interface SiteFilter { - /** Filter by the object’s `activeCommitId` field. */ - activeCommitId?: UUIDFilter; +/** A filter to be used against `PlatformEmailProviderAccount` object types. All fields are combined with a logical ‘and.’ */ +export interface PlatformEmailProviderAccountFilter { /** Checks for all expressions in this list. */ - and?: SiteFilter[]; - /** Filter by the object’s `bucketId` field. */ - bucketId?: UUIDFilter; + and?: PlatformEmailProviderAccountFilter[]; + /** Filter by the object’s `apiBaseUrl` field. */ + apiBaseUrl?: StringFilter; /** Filter by the object’s `createdAt` field. */ createdAt?: DatetimeFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Filter by the object’s `description` field. */ - description?: StringFilter; + /** Filter by the object’s `credentialsSecretName` field. */ + credentialsSecretName?: StringFilter; /** Filter by the object’s `id` field. */ id?: UUIDFilter; - /** Filter by the object’s `installationId` field. */ - installationId?: UUIDFilter; - /** Filter by the object’s `installationMemberSlug` field. */ - installationMemberSlug?: StringFilter; - /** Filter by the object’s `isPublished` field. */ - isPublished?: BooleanFilter; + /** Filter by the object’s `isActive` field. */ + isActive?: BooleanFilter; /** Filter by the object’s `name` field. */ name?: StringFilter; /** Negates the expression. */ - not?: SiteFilter; + not?: PlatformEmailProviderAccountFilter; /** Checks for any expressions in this list. */ - or?: SiteFilter[]; - /** Filter by the object’s `pages` relation. */ - pages?: SiteToManyPageFilter; - /** `pages` exist. */ - pagesExist?: boolean; - /** Filter by the object’s `resourceId` field. */ - resourceId?: UUIDFilter; - /** Filter by the object’s `siteAppLinks` relation. */ - siteAppLinks?: SiteToManySiteAppLinkFilter; - /** `siteAppLinks` exist. */ - siteAppLinksExist?: boolean; - /** Filter by the object’s `siteDeepLinks` relation. */ - siteDeepLinks?: SiteToManySiteDeepLinkFilter; - /** `siteDeepLinks` exist. */ - siteDeepLinksExist?: boolean; - /** Filter by the object’s `siteErrorPages` relation. */ - siteErrorPages?: SiteToManySiteErrorPageFilter; - /** `siteErrorPages` exist. */ - siteErrorPagesExist?: boolean; - /** Filter by the object’s `siteMetadatum` relation. */ - siteMetadatum?: SiteMetadatumFilter; - /** A related `siteMetadatum` exists. */ - siteMetadatumExists?: boolean; - /** Filter by the object’s `siteModules` relation. */ - siteModules?: SiteToManySiteModuleFilter; - /** `siteModules` exist. */ - siteModulesExist?: boolean; - /** Filter by the object’s `siteThemes` relation. */ - siteThemes?: SiteToManySiteThemeFilter; - /** `siteThemes` exist. */ - siteThemesExist?: boolean; - /** Filter by the object’s `siteWebConfig` relation. */ - siteWebConfig?: SiteWebConfigFilter; - /** A related `siteWebConfig` exists. */ - siteWebConfigExists?: boolean; - /** Filter by the object’s `title` field. */ - title?: StringFilter; + or?: PlatformEmailProviderAccountFilter[]; + /** Filter by the object’s `platformEmailIdentitiesByProviderAccountId` relation. */ + platformEmailIdentitiesByProviderAccountId?: PlatformEmailProviderAccountToManyPlatformEmailIdentityFilter; + /** `platformEmailIdentitiesByProviderAccountId` exist. */ + platformEmailIdentitiesByProviderAccountIdExist?: boolean; + /** Filter by the object’s `provider` field. */ + provider?: StringFilter; + /** Filter by the object’s `providerAccountName` field. */ + providerAccountName?: StringFilter; + /** Filter by the object’s `region` field. */ + region?: StringFilter; + /** Filter by the object’s `smtpHost` field. */ + smtpHost?: StringFilter; + /** Filter by the object’s `smtpPort` field. */ + smtpPort?: IntFilter; + /** Filter by the object’s `smtpSecure` field. */ + smtpSecure?: BooleanFilter; + /** Filter by the object’s `smtpUser` field. */ + smtpUser?: StringFilter; /** Filter by the object’s `updatedAt` field. */ updatedAt?: DatetimeFilter; + /** Filter by the object’s `webhookSigningSecretName` field. */ + webhookSigningSecretName?: StringFilter; } /** A filter to be used against `ApiSetting` object types. All fields are combined with a logical ‘and.’ */ export interface ApiSettingFilter { /** Checks for all expressions in this list. */ and?: ApiSettingFilter[]; /** Filter by the object’s `api` relation. */ - api?: ApisFilter; + api?: ApiFilter; /** Filter by the object’s `apiId` field. */ apiId?: UUIDFilter; /** Filter by the object’s `createdAt` field. */ @@ -18223,12 +19502,82 @@ export interface ApiSettingFilter { /** Filter by the object’s `updatedAt` field. */ updatedAt?: DatetimeFilter; } +/** A filter to be used against `SiteMetadatum` object types. All fields are combined with a logical ‘and.’ */ +export interface SiteMetadatumFilter { + /** Checks for all expressions in this list. */ + and?: SiteMetadatumFilter[]; + /** Filter by the object’s `appleTouchIcon` field. */ + appleTouchIcon?: ConstructiveInternalTypeImageFilter; + /** Filter by the object’s `canonicalUrl` field. */ + canonicalUrl?: StringFilter; + /** Filter by the object’s `commitId` field. */ + commitId?: UUIDFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `description` field. */ + description?: StringFilter; + /** Filter by the object’s `favicon` field. */ + favicon?: ConstructiveInternalTypeImageFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `logo` field. */ + logo?: ConstructiveInternalTypeImageFilter; + /** Negates the expression. */ + not?: SiteMetadatumFilter; + /** Filter by the object’s `ogImage` field. */ + ogImage?: ConstructiveInternalTypeImageFilter; + /** Checks for any expressions in this list. */ + or?: SiteMetadatumFilter[]; + /** Filter by the object’s `robots` field. */ + robots?: StringFilter; + /** Filter by the object’s `site` relation. */ + site?: SiteFilter; + /** Filter by the object’s `siteId` field. */ + siteId?: UUIDFilter; + /** Filter by the object’s `storeId` field. */ + storeId?: UUIDFilter; + /** Filter by the object’s `title` field. */ + title?: StringFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; +} +/** A filter to be used against `SiteWebConfig` object types. All fields are combined with a logical ‘and.’ */ +export interface SiteWebConfigFilter { + /** Checks for all expressions in this list. */ + and?: SiteWebConfigFilter[]; + /** Filter by the object’s `cleanUrls` field. */ + cleanUrls?: BooleanFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `indexDocument` field. */ + indexDocument?: StringFilter; + /** Filter by the object’s `metadata` field. */ + metadata?: JSONFilter; + /** Negates the expression. */ + not?: SiteWebConfigFilter; + /** Checks for any expressions in this list. */ + or?: SiteWebConfigFilter[]; + /** Filter by the object’s `site` relation. */ + site?: SiteFilter; + /** Filter by the object’s `siteId` field. */ + siteId?: UUIDFilter; + /** Filter by the object’s `spaFallback` field. */ + spaFallback?: BooleanFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; +} /** A filter to be used against `PlatformApiSetting` object types. All fields are combined with a logical ‘and.’ */ export interface PlatformApiSettingFilter { /** Checks for all expressions in this list. */ and?: PlatformApiSettingFilter[]; /** Filter by the object’s `api` relation. */ - api?: PlatformApisFilter; + api?: PlatformApiFilter; /** Filter by the object’s `apiId` field. */ apiId?: UUIDFilter; /** Filter by the object’s `createdAt` field. */ @@ -18277,7 +19626,7 @@ export interface PlatformCorsSettingFilter { /** Checks for all expressions in this list. */ and?: PlatformCorsSettingFilter[]; /** Filter by the object’s `api` relation. */ - api?: PlatformApisFilter; + api?: PlatformApiFilter; /** A related `api` exists. */ apiExists?: boolean; /** Filter by the object’s `apiId` field. */ @@ -18331,85 +19680,15 @@ export interface PlatformSiteMetadatumFilter { title?: StringFilter; /** Filter by the object’s `updatedAt` field. */ updatedAt?: DatetimeFilter; -} -/** A filter to be used against `PlatformSiteWebConfig` object types. All fields are combined with a logical ‘and.’ */ -export interface PlatformSiteWebConfigFilter { - /** Checks for all expressions in this list. */ - and?: PlatformSiteWebConfigFilter[]; - /** Filter by the object’s `cleanUrls` field. */ - cleanUrls?: BooleanFilter; - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `indexDocument` field. */ - indexDocument?: StringFilter; - /** Filter by the object’s `metadata` field. */ - metadata?: JSONFilter; - /** Negates the expression. */ - not?: PlatformSiteWebConfigFilter; - /** Checks for any expressions in this list. */ - or?: PlatformSiteWebConfigFilter[]; - /** Filter by the object’s `site` relation. */ - site?: PlatformSiteFilter; - /** Filter by the object’s `siteId` field. */ - siteId?: UUIDFilter; - /** Filter by the object’s `spaFallback` field. */ - spaFallback?: BooleanFilter; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; -} -/** A filter to be used against `SiteMetadatum` object types. All fields are combined with a logical ‘and.’ */ -export interface SiteMetadatumFilter { - /** Checks for all expressions in this list. */ - and?: SiteMetadatumFilter[]; - /** Filter by the object’s `appleTouchIcon` field. */ - appleTouchIcon?: ConstructiveInternalTypeImageFilter; - /** Filter by the object’s `canonicalUrl` field. */ - canonicalUrl?: StringFilter; - /** Filter by the object’s `commitId` field. */ - commitId?: UUIDFilter; - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Filter by the object’s `description` field. */ - description?: StringFilter; - /** Filter by the object’s `favicon` field. */ - favicon?: ConstructiveInternalTypeImageFilter; - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `logo` field. */ - logo?: ConstructiveInternalTypeImageFilter; - /** Negates the expression. */ - not?: SiteMetadatumFilter; - /** Filter by the object’s `ogImage` field. */ - ogImage?: ConstructiveInternalTypeImageFilter; - /** Checks for any expressions in this list. */ - or?: SiteMetadatumFilter[]; - /** Filter by the object’s `robots` field. */ - robots?: StringFilter; - /** Filter by the object’s `site` relation. */ - site?: SiteFilter; - /** Filter by the object’s `siteId` field. */ - siteId?: UUIDFilter; - /** Filter by the object’s `storeId` field. */ - storeId?: UUIDFilter; - /** Filter by the object’s `title` field. */ - title?: StringFilter; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; -} -/** A filter to be used against `SiteWebConfig` object types. All fields are combined with a logical ‘and.’ */ -export interface SiteWebConfigFilter { +} +/** A filter to be used against `PlatformSiteWebConfig` object types. All fields are combined with a logical ‘and.’ */ +export interface PlatformSiteWebConfigFilter { /** Checks for all expressions in this list. */ - and?: SiteWebConfigFilter[]; + and?: PlatformSiteWebConfigFilter[]; /** Filter by the object’s `cleanUrls` field. */ cleanUrls?: BooleanFilter; /** Filter by the object’s `createdAt` field. */ createdAt?: DatetimeFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; /** Filter by the object’s `id` field. */ id?: UUIDFilter; /** Filter by the object’s `indexDocument` field. */ @@ -18417,11 +19696,11 @@ export interface SiteWebConfigFilter { /** Filter by the object’s `metadata` field. */ metadata?: JSONFilter; /** Negates the expression. */ - not?: SiteWebConfigFilter; + not?: PlatformSiteWebConfigFilter; /** Checks for any expressions in this list. */ - or?: SiteWebConfigFilter[]; + or?: PlatformSiteWebConfigFilter[]; /** Filter by the object’s `site` relation. */ - site?: SiteFilter; + site?: PlatformSiteFilter; /** Filter by the object’s `siteId` field. */ siteId?: UUIDFilter; /** Filter by the object’s `spaFallback` field. */ @@ -18627,6 +19906,51 @@ export type SitesProvisionStaticSitePayloadSelect = { select: PlatformRouteSelect; }; }; +export interface CreateApiPayload { + /** The `Api` that was created by this mutation. */ + api?: Api | null; + apiEdge?: ApiEdge | null; + clientMutationId?: string | null; +} +export type CreateApiPayloadSelect = { + api?: { + select: ApiSelect; + }; + apiEdge?: { + select: ApiEdgeSelect; + }; + clientMutationId?: boolean; +}; +export interface UpdateApiPayload { + /** The `Api` that was updated by this mutation. */ + api?: Api | null; + apiEdge?: ApiEdge | null; + clientMutationId?: string | null; +} +export type UpdateApiPayloadSelect = { + api?: { + select: ApiSelect; + }; + apiEdge?: { + select: ApiEdgeSelect; + }; + clientMutationId?: boolean; +}; +export interface DeleteApiPayload { + /** The `Api` that was deleted by this mutation. */ + api?: Api | null; + apiEdge?: ApiEdge | null; + clientMutationId?: string | null; +} +export type DeleteApiPayloadSelect = { + api?: { + select: ApiSelect; + }; + apiEdge?: { + select: ApiEdgeSelect; + }; + clientMutationId?: boolean; +}; export interface CreateApiSchemaPayload { /** The `ApiSchema` that was created by this mutation. */ apiSchema?: ApiSchema | null; @@ -18717,51 +20041,6 @@ export type DeleteApiSettingPayloadSelect = { }; clientMutationId?: boolean; }; -export interface CreateApisPayload { - /** The `Apis` that was created by this mutation. */ - apis?: Apis | null; - apisEdge?: ApisEdge | null; - clientMutationId?: string | null; -} -export type CreateApisPayloadSelect = { - apis?: { - select: ApisSelect; - }; - apisEdge?: { - select: ApisEdgeSelect; - }; - clientMutationId?: boolean; -}; -export interface UpdateApisPayload { - /** The `Apis` that was updated by this mutation. */ - apis?: Apis | null; - apisEdge?: ApisEdge | null; - clientMutationId?: string | null; -} -export type UpdateApisPayloadSelect = { - apis?: { - select: ApisSelect; - }; - apisEdge?: { - select: ApisEdgeSelect; - }; - clientMutationId?: boolean; -}; -export interface DeleteApisPayload { - /** The `Apis` that was deleted by this mutation. */ - apis?: Apis | null; - apisEdge?: ApisEdge | null; - clientMutationId?: string | null; -} -export type DeleteApisPayloadSelect = { - apis?: { - select: ApisSelect; - }; - apisEdge?: { - select: ApisEdgeSelect; - }; - clientMutationId?: boolean; -}; export interface CreateCheckConstraintPayload { /** The `CheckConstraint` that was created by this mutation. */ checkConstraint?: CheckConstraint | null; @@ -19302,6 +20581,141 @@ export type DeleteDomainVerificationPayloadSelect = { select: DomainVerificationEdgeSelect; }; }; +export interface CreateEmailIdentityPayload { + clientMutationId?: string | null; + /** The `EmailIdentity` that was created by this mutation. */ + emailIdentity?: EmailIdentity | null; + emailIdentityEdge?: EmailIdentityEdge | null; +} +export type CreateEmailIdentityPayloadSelect = { + clientMutationId?: boolean; + emailIdentity?: { + select: EmailIdentitySelect; + }; + emailIdentityEdge?: { + select: EmailIdentityEdgeSelect; + }; +}; +export interface UpdateEmailIdentityPayload { + clientMutationId?: string | null; + /** The `EmailIdentity` that was updated by this mutation. */ + emailIdentity?: EmailIdentity | null; + emailIdentityEdge?: EmailIdentityEdge | null; +} +export type UpdateEmailIdentityPayloadSelect = { + clientMutationId?: boolean; + emailIdentity?: { + select: EmailIdentitySelect; + }; + emailIdentityEdge?: { + select: EmailIdentityEdgeSelect; + }; +}; +export interface DeleteEmailIdentityPayload { + clientMutationId?: string | null; + /** The `EmailIdentity` that was deleted by this mutation. */ + emailIdentity?: EmailIdentity | null; + emailIdentityEdge?: EmailIdentityEdge | null; +} +export type DeleteEmailIdentityPayloadSelect = { + clientMutationId?: boolean; + emailIdentity?: { + select: EmailIdentitySelect; + }; + emailIdentityEdge?: { + select: EmailIdentityEdgeSelect; + }; +}; +export interface CreateEmailProviderAccountPayload { + clientMutationId?: string | null; + /** The `EmailProviderAccount` that was created by this mutation. */ + emailProviderAccount?: EmailProviderAccount | null; + emailProviderAccountEdge?: EmailProviderAccountEdge | null; +} +export type CreateEmailProviderAccountPayloadSelect = { + clientMutationId?: boolean; + emailProviderAccount?: { + select: EmailProviderAccountSelect; + }; + emailProviderAccountEdge?: { + select: EmailProviderAccountEdgeSelect; + }; +}; +export interface UpdateEmailProviderAccountPayload { + clientMutationId?: string | null; + /** The `EmailProviderAccount` that was updated by this mutation. */ + emailProviderAccount?: EmailProviderAccount | null; + emailProviderAccountEdge?: EmailProviderAccountEdge | null; +} +export type UpdateEmailProviderAccountPayloadSelect = { + clientMutationId?: boolean; + emailProviderAccount?: { + select: EmailProviderAccountSelect; + }; + emailProviderAccountEdge?: { + select: EmailProviderAccountEdgeSelect; + }; +}; +export interface DeleteEmailProviderAccountPayload { + clientMutationId?: string | null; + /** The `EmailProviderAccount` that was deleted by this mutation. */ + emailProviderAccount?: EmailProviderAccount | null; + emailProviderAccountEdge?: EmailProviderAccountEdge | null; +} +export type DeleteEmailProviderAccountPayloadSelect = { + clientMutationId?: boolean; + emailProviderAccount?: { + select: EmailProviderAccountSelect; + }; + emailProviderAccountEdge?: { + select: EmailProviderAccountEdgeSelect; + }; +}; +export interface CreateEmailSiteIdentityPayload { + clientMutationId?: string | null; + /** The `EmailSiteIdentity` that was created by this mutation. */ + emailSiteIdentity?: EmailSiteIdentity | null; + emailSiteIdentityEdge?: EmailSiteIdentityEdge | null; +} +export type CreateEmailSiteIdentityPayloadSelect = { + clientMutationId?: boolean; + emailSiteIdentity?: { + select: EmailSiteIdentitySelect; + }; + emailSiteIdentityEdge?: { + select: EmailSiteIdentityEdgeSelect; + }; +}; +export interface UpdateEmailSiteIdentityPayload { + clientMutationId?: string | null; + /** The `EmailSiteIdentity` that was updated by this mutation. */ + emailSiteIdentity?: EmailSiteIdentity | null; + emailSiteIdentityEdge?: EmailSiteIdentityEdge | null; +} +export type UpdateEmailSiteIdentityPayloadSelect = { + clientMutationId?: boolean; + emailSiteIdentity?: { + select: EmailSiteIdentitySelect; + }; + emailSiteIdentityEdge?: { + select: EmailSiteIdentityEdgeSelect; + }; +}; +export interface DeleteEmailSiteIdentityPayload { + clientMutationId?: string | null; + /** The `EmailSiteIdentity` that was deleted by this mutation. */ + emailSiteIdentity?: EmailSiteIdentity | null; + emailSiteIdentityEdge?: EmailSiteIdentityEdge | null; +} +export type DeleteEmailSiteIdentityPayloadSelect = { + clientMutationId?: boolean; + emailSiteIdentity?: { + select: EmailSiteIdentitySelect; + }; + emailSiteIdentityEdge?: { + select: EmailSiteIdentityEdgeSelect; + }; +}; export interface CreateEmbeddingChunkPayload { clientMutationId?: string | null; /** The `EmbeddingChunk` that was created by this mutation. */ @@ -20022,6 +21436,51 @@ export type DeletePartitionPayloadSelect = { select: PartitionEdgeSelect; }; }; +export interface CreatePlatformApiPayload { + clientMutationId?: string | null; + /** The `PlatformApi` that was created by this mutation. */ + platformApi?: PlatformApi | null; + platformApiEdge?: PlatformApiEdge | null; +} +export type CreatePlatformApiPayloadSelect = { + clientMutationId?: boolean; + platformApi?: { + select: PlatformApiSelect; + }; + platformApiEdge?: { + select: PlatformApiEdgeSelect; + }; +}; +export interface UpdatePlatformApiPayload { + clientMutationId?: string | null; + /** The `PlatformApi` that was updated by this mutation. */ + platformApi?: PlatformApi | null; + platformApiEdge?: PlatformApiEdge | null; +} +export type UpdatePlatformApiPayloadSelect = { + clientMutationId?: boolean; + platformApi?: { + select: PlatformApiSelect; + }; + platformApiEdge?: { + select: PlatformApiEdgeSelect; + }; +}; +export interface DeletePlatformApiPayload { + clientMutationId?: string | null; + /** The `PlatformApi` that was deleted by this mutation. */ + platformApi?: PlatformApi | null; + platformApiEdge?: PlatformApiEdge | null; +} +export type DeletePlatformApiPayloadSelect = { + clientMutationId?: boolean; + platformApi?: { + select: PlatformApiSelect; + }; + platformApiEdge?: { + select: PlatformApiEdgeSelect; + }; +}; export interface CreatePlatformApiSchemaPayload { clientMutationId?: string | null; /** The `PlatformApiSchema` that was created by this mutation. */ @@ -20112,51 +21571,6 @@ export type DeletePlatformApiSettingPayloadSelect = { select: PlatformApiSettingEdgeSelect; }; }; -export interface CreatePlatformApisPayload { - clientMutationId?: string | null; - /** The `PlatformApis` that was created by this mutation. */ - platformApis?: PlatformApis | null; - platformApisEdge?: PlatformApisEdge | null; -} -export type CreatePlatformApisPayloadSelect = { - clientMutationId?: boolean; - platformApis?: { - select: PlatformApisSelect; - }; - platformApisEdge?: { - select: PlatformApisEdgeSelect; - }; -}; -export interface UpdatePlatformApisPayload { - clientMutationId?: string | null; - /** The `PlatformApis` that was updated by this mutation. */ - platformApis?: PlatformApis | null; - platformApisEdge?: PlatformApisEdge | null; -} -export type UpdatePlatformApisPayloadSelect = { - clientMutationId?: boolean; - platformApis?: { - select: PlatformApisSelect; - }; - platformApisEdge?: { - select: PlatformApisEdgeSelect; - }; -}; -export interface DeletePlatformApisPayload { - clientMutationId?: string | null; - /** The `PlatformApis` that was deleted by this mutation. */ - platformApis?: PlatformApis | null; - platformApisEdge?: PlatformApisEdge | null; -} -export type DeletePlatformApisPayloadSelect = { - clientMutationId?: boolean; - platformApis?: { - select: PlatformApisSelect; - }; - platformApisEdge?: { - select: PlatformApisEdgeSelect; - }; -}; export interface CreatePlatformCorsSettingPayload { clientMutationId?: string | null; /** The `PlatformCorsSetting` that was created by this mutation. */ @@ -20337,6 +21751,141 @@ export type DeletePlatformDomainVerificationPayloadSelect = { select: PlatformDomainVerificationEdgeSelect; }; }; +export interface CreatePlatformEmailIdentityPayload { + clientMutationId?: string | null; + /** The `PlatformEmailIdentity` that was created by this mutation. */ + platformEmailIdentity?: PlatformEmailIdentity | null; + platformEmailIdentityEdge?: PlatformEmailIdentityEdge | null; +} +export type CreatePlatformEmailIdentityPayloadSelect = { + clientMutationId?: boolean; + platformEmailIdentity?: { + select: PlatformEmailIdentitySelect; + }; + platformEmailIdentityEdge?: { + select: PlatformEmailIdentityEdgeSelect; + }; +}; +export interface UpdatePlatformEmailIdentityPayload { + clientMutationId?: string | null; + /** The `PlatformEmailIdentity` that was updated by this mutation. */ + platformEmailIdentity?: PlatformEmailIdentity | null; + platformEmailIdentityEdge?: PlatformEmailIdentityEdge | null; +} +export type UpdatePlatformEmailIdentityPayloadSelect = { + clientMutationId?: boolean; + platformEmailIdentity?: { + select: PlatformEmailIdentitySelect; + }; + platformEmailIdentityEdge?: { + select: PlatformEmailIdentityEdgeSelect; + }; +}; +export interface DeletePlatformEmailIdentityPayload { + clientMutationId?: string | null; + /** The `PlatformEmailIdentity` that was deleted by this mutation. */ + platformEmailIdentity?: PlatformEmailIdentity | null; + platformEmailIdentityEdge?: PlatformEmailIdentityEdge | null; +} +export type DeletePlatformEmailIdentityPayloadSelect = { + clientMutationId?: boolean; + platformEmailIdentity?: { + select: PlatformEmailIdentitySelect; + }; + platformEmailIdentityEdge?: { + select: PlatformEmailIdentityEdgeSelect; + }; +}; +export interface CreatePlatformEmailProviderAccountPayload { + clientMutationId?: string | null; + /** The `PlatformEmailProviderAccount` that was created by this mutation. */ + platformEmailProviderAccount?: PlatformEmailProviderAccount | null; + platformEmailProviderAccountEdge?: PlatformEmailProviderAccountEdge | null; +} +export type CreatePlatformEmailProviderAccountPayloadSelect = { + clientMutationId?: boolean; + platformEmailProviderAccount?: { + select: PlatformEmailProviderAccountSelect; + }; + platformEmailProviderAccountEdge?: { + select: PlatformEmailProviderAccountEdgeSelect; + }; +}; +export interface UpdatePlatformEmailProviderAccountPayload { + clientMutationId?: string | null; + /** The `PlatformEmailProviderAccount` that was updated by this mutation. */ + platformEmailProviderAccount?: PlatformEmailProviderAccount | null; + platformEmailProviderAccountEdge?: PlatformEmailProviderAccountEdge | null; +} +export type UpdatePlatformEmailProviderAccountPayloadSelect = { + clientMutationId?: boolean; + platformEmailProviderAccount?: { + select: PlatformEmailProviderAccountSelect; + }; + platformEmailProviderAccountEdge?: { + select: PlatformEmailProviderAccountEdgeSelect; + }; +}; +export interface DeletePlatformEmailProviderAccountPayload { + clientMutationId?: string | null; + /** The `PlatformEmailProviderAccount` that was deleted by this mutation. */ + platformEmailProviderAccount?: PlatformEmailProviderAccount | null; + platformEmailProviderAccountEdge?: PlatformEmailProviderAccountEdge | null; +} +export type DeletePlatformEmailProviderAccountPayloadSelect = { + clientMutationId?: boolean; + platformEmailProviderAccount?: { + select: PlatformEmailProviderAccountSelect; + }; + platformEmailProviderAccountEdge?: { + select: PlatformEmailProviderAccountEdgeSelect; + }; +}; +export interface CreatePlatformEmailSiteIdentityPayload { + clientMutationId?: string | null; + /** The `PlatformEmailSiteIdentity` that was created by this mutation. */ + platformEmailSiteIdentity?: PlatformEmailSiteIdentity | null; + platformEmailSiteIdentityEdge?: PlatformEmailSiteIdentityEdge | null; +} +export type CreatePlatformEmailSiteIdentityPayloadSelect = { + clientMutationId?: boolean; + platformEmailSiteIdentity?: { + select: PlatformEmailSiteIdentitySelect; + }; + platformEmailSiteIdentityEdge?: { + select: PlatformEmailSiteIdentityEdgeSelect; + }; +}; +export interface UpdatePlatformEmailSiteIdentityPayload { + clientMutationId?: string | null; + /** The `PlatformEmailSiteIdentity` that was updated by this mutation. */ + platformEmailSiteIdentity?: PlatformEmailSiteIdentity | null; + platformEmailSiteIdentityEdge?: PlatformEmailSiteIdentityEdge | null; +} +export type UpdatePlatformEmailSiteIdentityPayloadSelect = { + clientMutationId?: boolean; + platformEmailSiteIdentity?: { + select: PlatformEmailSiteIdentitySelect; + }; + platformEmailSiteIdentityEdge?: { + select: PlatformEmailSiteIdentityEdgeSelect; + }; +}; +export interface DeletePlatformEmailSiteIdentityPayload { + clientMutationId?: string | null; + /** The `PlatformEmailSiteIdentity` that was deleted by this mutation. */ + platformEmailSiteIdentity?: PlatformEmailSiteIdentity | null; + platformEmailSiteIdentityEdge?: PlatformEmailSiteIdentityEdge | null; +} +export type DeletePlatformEmailSiteIdentityPayloadSelect = { + clientMutationId?: boolean; + platformEmailSiteIdentity?: { + select: PlatformEmailSiteIdentitySelect; + }; + platformEmailSiteIdentityEdge?: { + select: PlatformEmailSiteIdentityEdgeSelect; + }; +}; export interface CreatePlatformManagedDomainPayload { clientMutationId?: string | null; /** The `PlatformManagedDomain` that was created by this mutation. */ @@ -22227,7 +23776,7 @@ export interface DatabaseProvisionModule { /** Uniform billing anchor: when the request was fulfilled with a usable database (cold provision completion or warm pool claim). Platform absorbs all provisioning compute before this point */ fulfilledAt?: string | null; id: string; - /** JSONB array of modules to install. Each element is either a string ("users_module") or a [name, options] tuple (["permissions_module", {"scope": "app"}]) */ + /** JSONB array of modules to install. Each element is either a string ("users_module") or a [name, options] tuple (["capabilities_module", {"scope": "app"}]) */ modules: Record; /** Additional configuration options for provisioning */ options: Record; @@ -22262,6 +23811,18 @@ export type DatabaseProvisionModuleSelect = { subdomain?: boolean; updatedAt?: boolean; }; +/** A `Api` edge in the connection. */ +export interface ApiEdge { + cursor?: string | null; + /** The `Api` at the end of the edge. */ + node?: Api | null; +} +export type ApiEdgeSelect = { + cursor?: boolean; + node?: { + select: ApiSelect; + }; +}; /** A `ApiSchema` edge in the connection. */ export interface ApiSchemaEdge { cursor?: string | null; @@ -22286,18 +23847,6 @@ export type ApiSettingEdgeSelect = { select: ApiSettingSelect; }; }; -/** A `Apis` edge in the connection. */ -export interface ApisEdge { - cursor?: string | null; - /** The `Apis` at the end of the edge. */ - node?: Apis | null; -} -export type ApisEdgeSelect = { - cursor?: boolean; - node?: { - select: ApisSelect; - }; -}; /** A `CheckConstraint` edge in the connection. */ export interface CheckConstraintEdge { cursor?: string | null; @@ -22430,6 +23979,42 @@ export type DomainVerificationEdgeSelect = { select: DomainVerificationSelect; }; }; +/** A `EmailIdentity` edge in the connection. */ +export interface EmailIdentityEdge { + cursor?: string | null; + /** The `EmailIdentity` at the end of the edge. */ + node?: EmailIdentity | null; +} +export type EmailIdentityEdgeSelect = { + cursor?: boolean; + node?: { + select: EmailIdentitySelect; + }; +}; +/** A `EmailProviderAccount` edge in the connection. */ +export interface EmailProviderAccountEdge { + cursor?: string | null; + /** The `EmailProviderAccount` at the end of the edge. */ + node?: EmailProviderAccount | null; +} +export type EmailProviderAccountEdgeSelect = { + cursor?: boolean; + node?: { + select: EmailProviderAccountSelect; + }; +}; +/** A `EmailSiteIdentity` edge in the connection. */ +export interface EmailSiteIdentityEdge { + cursor?: string | null; + /** The `EmailSiteIdentity` at the end of the edge. */ + node?: EmailSiteIdentity | null; +} +export type EmailSiteIdentityEdgeSelect = { + cursor?: boolean; + node?: { + select: EmailSiteIdentitySelect; + }; +}; /** A `EmbeddingChunk` edge in the connection. */ export interface EmbeddingChunkEdge { cursor?: string | null; @@ -22622,6 +24207,18 @@ export type PartitionEdgeSelect = { select: PartitionSelect; }; }; +/** A `PlatformApi` edge in the connection. */ +export interface PlatformApiEdge { + cursor?: string | null; + /** The `PlatformApi` at the end of the edge. */ + node?: PlatformApi | null; +} +export type PlatformApiEdgeSelect = { + cursor?: boolean; + node?: { + select: PlatformApiSelect; + }; +}; /** A `PlatformApiSchema` edge in the connection. */ export interface PlatformApiSchemaEdge { cursor?: string | null; @@ -22646,18 +24243,6 @@ export type PlatformApiSettingEdgeSelect = { select: PlatformApiSettingSelect; }; }; -/** A `PlatformApis` edge in the connection. */ -export interface PlatformApisEdge { - cursor?: string | null; - /** The `PlatformApis` at the end of the edge. */ - node?: PlatformApis | null; -} -export type PlatformApisEdgeSelect = { - cursor?: boolean; - node?: { - select: PlatformApisSelect; - }; -}; /** A `PlatformCorsSetting` edge in the connection. */ export interface PlatformCorsSettingEdge { cursor?: string | null; @@ -22694,6 +24279,42 @@ export type PlatformDomainVerificationEdgeSelect = { select: PlatformDomainVerificationSelect; }; }; +/** A `PlatformEmailIdentity` edge in the connection. */ +export interface PlatformEmailIdentityEdge { + cursor?: string | null; + /** The `PlatformEmailIdentity` at the end of the edge. */ + node?: PlatformEmailIdentity | null; +} +export type PlatformEmailIdentityEdgeSelect = { + cursor?: boolean; + node?: { + select: PlatformEmailIdentitySelect; + }; +}; +/** A `PlatformEmailProviderAccount` edge in the connection. */ +export interface PlatformEmailProviderAccountEdge { + cursor?: string | null; + /** The `PlatformEmailProviderAccount` at the end of the edge. */ + node?: PlatformEmailProviderAccount | null; +} +export type PlatformEmailProviderAccountEdgeSelect = { + cursor?: boolean; + node?: { + select: PlatformEmailProviderAccountSelect; + }; +}; +/** A `PlatformEmailSiteIdentity` edge in the connection. */ +export interface PlatformEmailSiteIdentityEdge { + cursor?: string | null; + /** The `PlatformEmailSiteIdentity` at the end of the edge. */ + node?: PlatformEmailSiteIdentity | null; +} +export type PlatformEmailSiteIdentityEdgeSelect = { + cursor?: boolean; + node?: { + select: PlatformEmailSiteIdentitySelect; + }; +}; /** A `PlatformManagedDomain` edge in the connection. */ export interface PlatformManagedDomainEdge { cursor?: string | null; diff --git a/sdk/constructive-cli/src/api/orm/models/apis.ts b/sdk/constructive-react/src/api/orm/models/api.ts similarity index 60% rename from sdk/constructive-cli/src/api/orm/models/apis.ts rename to sdk/constructive-react/src/api/orm/models/api.ts index a62444db0f..4d60695731 100644 --- a/sdk/constructive-cli/src/api/orm/models/apis.ts +++ b/sdk/constructive-react/src/api/orm/models/api.ts @@ -1,5 +1,5 @@ /** - * Apis model for ORM client + * Api 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 { - Apis, - ApisWithRelations, - ApisSelect, - ApisFilter, - ApisOrderBy, - CreateApisInput, - UpdateApisInput, - ApisPatch, + Api, + ApiWithRelations, + ApiSelect, + ApiFilter, + ApiOrderBy, + CreateApiInput, + UpdateApiInput, + ApiPatch, } from '../input-types'; import { connectionFieldsMap } from '../input-types'; -export class ApisModel { +export class ApiModel { constructor(private client: OrmClient) {} - findMany( - args: FindManyArgs & { + findMany( + args: FindManyArgs & { select: S; - } & StrictSelect + } & StrictSelect ): QueryBuilder<{ - apises: ConnectionResult>; + apis: ConnectionResult>; }> { const { document, variables } = buildFindManyDocument( - 'Apis', - 'apises', + 'Api', + 'apis', args.select, { where: args?.where, @@ -56,65 +56,65 @@ export class ApisModel { before: args?.before, offset: args?.offset, }, - 'ApisFilter', - 'ApisOrderBy', + 'ApiFilter', + 'ApiOrderBy', connectionFieldsMap ); return new QueryBuilder({ client: this.client, operation: 'query', - operationName: 'Apis', - fieldName: 'apises', + operationName: 'Api', + fieldName: 'apis', document, variables, }); } - findFirst( - args: FindFirstArgs & { + findFirst( + args: FindFirstArgs & { select: S; - } & StrictSelect + } & StrictSelect ): QueryBuilder<{ - apis: InferSelectResult | null; + api: InferSelectResult | null; }> { const { document, variables } = buildFindFirstDocument( - 'Apis', - 'apises', + 'Api', + 'apis', args.select, { where: args?.where, orderBy: args?.orderBy as string[] | undefined, }, - 'ApisFilter', - 'ApisOrderBy', + 'ApiFilter', + 'ApiOrderBy', connectionFieldsMap ); return new QueryBuilder({ client: this.client, operation: 'query', - operationName: 'Apis', - fieldName: 'apis', + operationName: 'Api', + fieldName: 'api', document, variables, transform: (data: { - apises?: { - nodes?: InferSelectResult[]; + apis?: { + nodes?: InferSelectResult[]; }; }) => ({ - apis: data.apises?.nodes?.[0] ?? null, + api: data.apis?.nodes?.[0] ?? null, }), }); } - findOne( + findOne( args: { id: string; select: S; - } & StrictSelect + } & StrictSelect ): QueryBuilder<{ - apis: InferSelectResult | null; + api: InferSelectResult | null; }> { const { document, variables } = buildFindManyDocument( - 'Apis', - 'apises', + 'Api', + 'apis', args.select, { where: { @@ -124,91 +124,91 @@ export class ApisModel { }, first: 1, }, - 'ApisFilter', - 'ApisOrderBy', + 'ApiFilter', + 'ApiOrderBy', connectionFieldsMap ); return new QueryBuilder({ client: this.client, operation: 'query', - operationName: 'Apis', - fieldName: 'apis', + operationName: 'Api', + fieldName: 'api', document, variables, transform: (data: { - apises?: { - nodes?: InferSelectResult[]; + apis?: { + nodes?: InferSelectResult[]; }; }) => ({ - apis: data.apises?.nodes?.[0] ?? null, + api: data.apis?.nodes?.[0] ?? null, }), }); } - create( - args: CreateArgs & { + create( + args: CreateArgs & { select: S; - } & StrictSelect + } & StrictSelect ): QueryBuilder<{ - createApis: { - apis: InferSelectResult; + createApi: { + api: InferSelectResult; }; }> { const { document, variables } = buildCreateDocument( - 'Apis', - 'createApis', - 'apis', + 'Api', + 'createApi', + 'api', args.select, args.data, - 'CreateApisInput', + 'CreateApiInput', connectionFieldsMap ); return new QueryBuilder({ client: this.client, operation: 'mutation', - operationName: 'Apis', - fieldName: 'createApis', + operationName: 'Api', + fieldName: 'createApi', document, variables, }); } - update( + update( args: UpdateArgs< S, { id: string; }, - ApisPatch + ApiPatch > & { select: S; - } & StrictSelect + } & StrictSelect ): QueryBuilder<{ - updateApis: { - apis: InferSelectResult; + updateApi: { + api: InferSelectResult; }; }> { const { document, variables } = buildUpdateByPkDocument( - 'Apis', - 'updateApis', - 'apis', + 'Api', + 'updateApi', + 'api', args.select, args.where.id, args.data, - 'UpdateApisInput', + 'UpdateApiInput', 'id', - 'apisPatch', + 'apiPatch', connectionFieldsMap, undefined ); return new QueryBuilder({ client: this.client, operation: 'mutation', - operationName: 'Apis', - fieldName: 'updateApis', + operationName: 'Api', + fieldName: 'updateApi', document, variables, }); } - delete( + delete( args: DeleteArgs< { id: string; @@ -216,28 +216,28 @@ export class ApisModel { S > & { select: S; - } & StrictSelect + } & StrictSelect ): QueryBuilder<{ - deleteApis: { - apis: InferSelectResult; + deleteApi: { + api: InferSelectResult; }; }> { const { document, variables } = buildDeleteByPkDocument( - 'Apis', - 'deleteApis', - 'apis', + 'Api', + 'deleteApi', + 'api', { id: args.where.id, }, - 'DeleteApisInput', + 'DeleteApiInput', args.select, connectionFieldsMap ); return new QueryBuilder({ client: this.client, operation: 'mutation', - operationName: 'Apis', - fieldName: 'deleteApis', + operationName: 'Api', + fieldName: 'deleteApi', document, variables, }); diff --git a/sdk/constructive-react/src/api/orm/models/emailIdentity.ts b/sdk/constructive-react/src/api/orm/models/emailIdentity.ts new file mode 100644 index 0000000000..ac0262d9d9 --- /dev/null +++ b/sdk/constructive-react/src/api/orm/models/emailIdentity.ts @@ -0,0 +1,245 @@ +/** + * EmailIdentity 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 { + EmailIdentity, + EmailIdentityWithRelations, + EmailIdentitySelect, + EmailIdentityFilter, + EmailIdentityOrderBy, + CreateEmailIdentityInput, + UpdateEmailIdentityInput, + EmailIdentityPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class EmailIdentityModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + emailIdentities: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'EmailIdentity', + 'emailIdentities', + 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, + }, + 'EmailIdentityFilter', + 'EmailIdentityOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'EmailIdentity', + fieldName: 'emailIdentities', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + emailIdentity: InferSelectResult | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'EmailIdentity', + 'emailIdentities', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'EmailIdentityFilter', + 'EmailIdentityOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'EmailIdentity', + fieldName: 'emailIdentity', + document, + variables, + transform: (data: { + emailIdentities?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + emailIdentity: data.emailIdentities?.nodes?.[0] ?? null, + }), + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + emailIdentity: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'EmailIdentity', + 'emailIdentities', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'EmailIdentityFilter', + 'EmailIdentityOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'EmailIdentity', + fieldName: 'emailIdentity', + document, + variables, + transform: (data: { + emailIdentities?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + emailIdentity: data.emailIdentities?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createEmailIdentity: { + emailIdentity: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'EmailIdentity', + 'createEmailIdentity', + 'emailIdentity', + args.select, + args.data, + 'CreateEmailIdentityInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'EmailIdentity', + fieldName: 'createEmailIdentity', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + EmailIdentityPatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateEmailIdentity: { + emailIdentity: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'EmailIdentity', + 'updateEmailIdentity', + 'emailIdentity', + args.select, + args.where.id, + args.data, + 'UpdateEmailIdentityInput', + 'id', + 'emailIdentityPatch', + connectionFieldsMap, + undefined + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'EmailIdentity', + fieldName: 'updateEmailIdentity', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteEmailIdentity: { + emailIdentity: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'EmailIdentity', + 'deleteEmailIdentity', + 'emailIdentity', + { + id: args.where.id, + }, + 'DeleteEmailIdentityInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'EmailIdentity', + fieldName: 'deleteEmailIdentity', + document, + variables, + }); + } +} diff --git a/sdk/constructive-react/src/api/orm/models/emailProviderAccount.ts b/sdk/constructive-react/src/api/orm/models/emailProviderAccount.ts new file mode 100644 index 0000000000..a720e8d015 --- /dev/null +++ b/sdk/constructive-react/src/api/orm/models/emailProviderAccount.ts @@ -0,0 +1,247 @@ +/** + * EmailProviderAccount 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 { + EmailProviderAccount, + EmailProviderAccountWithRelations, + EmailProviderAccountSelect, + EmailProviderAccountFilter, + EmailProviderAccountOrderBy, + CreateEmailProviderAccountInput, + UpdateEmailProviderAccountInput, + EmailProviderAccountPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class EmailProviderAccountModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + emailProviderAccounts: ConnectionResult< + InferSelectResult + >; + }> { + const { document, variables } = buildFindManyDocument( + 'EmailProviderAccount', + 'emailProviderAccounts', + 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, + }, + 'EmailProviderAccountFilter', + 'EmailProviderAccountOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'EmailProviderAccount', + fieldName: 'emailProviderAccounts', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + emailProviderAccount: InferSelectResult | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'EmailProviderAccount', + 'emailProviderAccounts', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'EmailProviderAccountFilter', + 'EmailProviderAccountOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'EmailProviderAccount', + fieldName: 'emailProviderAccount', + document, + variables, + transform: (data: { + emailProviderAccounts?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + emailProviderAccount: data.emailProviderAccounts?.nodes?.[0] ?? null, + }), + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + emailProviderAccount: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'EmailProviderAccount', + 'emailProviderAccounts', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'EmailProviderAccountFilter', + 'EmailProviderAccountOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'EmailProviderAccount', + fieldName: 'emailProviderAccount', + document, + variables, + transform: (data: { + emailProviderAccounts?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + emailProviderAccount: data.emailProviderAccounts?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createEmailProviderAccount: { + emailProviderAccount: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'EmailProviderAccount', + 'createEmailProviderAccount', + 'emailProviderAccount', + args.select, + args.data, + 'CreateEmailProviderAccountInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'EmailProviderAccount', + fieldName: 'createEmailProviderAccount', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + EmailProviderAccountPatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateEmailProviderAccount: { + emailProviderAccount: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'EmailProviderAccount', + 'updateEmailProviderAccount', + 'emailProviderAccount', + args.select, + args.where.id, + args.data, + 'UpdateEmailProviderAccountInput', + 'id', + 'emailProviderAccountPatch', + connectionFieldsMap, + undefined + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'EmailProviderAccount', + fieldName: 'updateEmailProviderAccount', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteEmailProviderAccount: { + emailProviderAccount: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'EmailProviderAccount', + 'deleteEmailProviderAccount', + 'emailProviderAccount', + { + id: args.where.id, + }, + 'DeleteEmailProviderAccountInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'EmailProviderAccount', + fieldName: 'deleteEmailProviderAccount', + document, + variables, + }); + } +} diff --git a/sdk/constructive-react/src/api/orm/models/emailSiteIdentity.ts b/sdk/constructive-react/src/api/orm/models/emailSiteIdentity.ts new file mode 100644 index 0000000000..408d8ffa81 --- /dev/null +++ b/sdk/constructive-react/src/api/orm/models/emailSiteIdentity.ts @@ -0,0 +1,245 @@ +/** + * EmailSiteIdentity 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 { + EmailSiteIdentity, + EmailSiteIdentityWithRelations, + EmailSiteIdentitySelect, + EmailSiteIdentityFilter, + EmailSiteIdentityOrderBy, + CreateEmailSiteIdentityInput, + UpdateEmailSiteIdentityInput, + EmailSiteIdentityPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class EmailSiteIdentityModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + emailSiteIdentities: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'EmailSiteIdentity', + 'emailSiteIdentities', + 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, + }, + 'EmailSiteIdentityFilter', + 'EmailSiteIdentityOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'EmailSiteIdentity', + fieldName: 'emailSiteIdentities', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + emailSiteIdentity: InferSelectResult | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'EmailSiteIdentity', + 'emailSiteIdentities', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'EmailSiteIdentityFilter', + 'EmailSiteIdentityOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'EmailSiteIdentity', + fieldName: 'emailSiteIdentity', + document, + variables, + transform: (data: { + emailSiteIdentities?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + emailSiteIdentity: data.emailSiteIdentities?.nodes?.[0] ?? null, + }), + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + emailSiteIdentity: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'EmailSiteIdentity', + 'emailSiteIdentities', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'EmailSiteIdentityFilter', + 'EmailSiteIdentityOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'EmailSiteIdentity', + fieldName: 'emailSiteIdentity', + document, + variables, + transform: (data: { + emailSiteIdentities?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + emailSiteIdentity: data.emailSiteIdentities?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createEmailSiteIdentity: { + emailSiteIdentity: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'EmailSiteIdentity', + 'createEmailSiteIdentity', + 'emailSiteIdentity', + args.select, + args.data, + 'CreateEmailSiteIdentityInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'EmailSiteIdentity', + fieldName: 'createEmailSiteIdentity', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + EmailSiteIdentityPatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateEmailSiteIdentity: { + emailSiteIdentity: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'EmailSiteIdentity', + 'updateEmailSiteIdentity', + 'emailSiteIdentity', + args.select, + args.where.id, + args.data, + 'UpdateEmailSiteIdentityInput', + 'id', + 'emailSiteIdentityPatch', + connectionFieldsMap, + undefined + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'EmailSiteIdentity', + fieldName: 'updateEmailSiteIdentity', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteEmailSiteIdentity: { + emailSiteIdentity: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'EmailSiteIdentity', + 'deleteEmailSiteIdentity', + 'emailSiteIdentity', + { + id: args.where.id, + }, + 'DeleteEmailSiteIdentityInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'EmailSiteIdentity', + fieldName: 'deleteEmailSiteIdentity', + document, + variables, + }); + } +} diff --git a/sdk/constructive-react/src/api/orm/models/index.ts b/sdk/constructive-react/src/api/orm/models/index.ts index a947c4f65f..c3370b199c 100644 --- a/sdk/constructive-react/src/api/orm/models/index.ts +++ b/sdk/constructive-react/src/api/orm/models/index.ts @@ -3,9 +3,9 @@ * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ +export { ApiModel } from './api'; export { ApiSchemaModel } from './apiSchema'; export { ApiSettingModel } from './apiSetting'; -export { ApisModel } from './apis'; export { AstMigrationModel } from './astMigration'; export { CheckConstraintModel } from './checkConstraint'; export { CompositeTypeModel } from './compositeType'; @@ -19,6 +19,9 @@ export { DomainModel } from './domain'; export { DomainEventModel } from './domainEvent'; export { DomainTypeModel } from './domainType'; export { DomainVerificationModel } from './domainVerification'; +export { EmailIdentityModel } from './emailIdentity'; +export { EmailProviderAccountModel } from './emailProviderAccount'; +export { EmailSiteIdentityModel } from './emailSiteIdentity'; export { EmbeddingChunkModel } from './embeddingChunk'; export { EnumModel } from './enum'; export { ExclusionConstraintModel } from './exclusionConstraint'; @@ -35,13 +38,16 @@ export { ManagedDomainModel } from './managedDomain'; export { NodeTypeRegistryModel } from './nodeTypeRegistry'; export { PageModel } from './page'; export { PartitionModel } from './partition'; +export { PlatformApiModel } from './platformApi'; export { PlatformApiSchemaModel } from './platformApiSchema'; export { PlatformApiSettingModel } from './platformApiSetting'; -export { PlatformApisModel } from './platformApis'; export { PlatformCorsSettingModel } from './platformCorsSetting'; export { PlatformDomainModel } from './platformDomain'; export { PlatformDomainEventModel } from './platformDomainEvent'; export { PlatformDomainVerificationModel } from './platformDomainVerification'; +export { PlatformEmailIdentityModel } from './platformEmailIdentity'; +export { PlatformEmailProviderAccountModel } from './platformEmailProviderAccount'; +export { PlatformEmailSiteIdentityModel } from './platformEmailSiteIdentity'; export { PlatformManagedDomainModel } from './platformManagedDomain'; export { PlatformPageModel } from './platformPage'; export { PlatformSiteAppLinkModel } from './platformSiteAppLink'; diff --git a/sdk/constructive-react/src/api/orm/models/platformApis.ts b/sdk/constructive-react/src/api/orm/models/platformApi.ts similarity index 54% rename from sdk/constructive-react/src/api/orm/models/platformApis.ts rename to sdk/constructive-react/src/api/orm/models/platformApi.ts index 43cd25c9d2..3eee59e6c8 100644 --- a/sdk/constructive-react/src/api/orm/models/platformApis.ts +++ b/sdk/constructive-react/src/api/orm/models/platformApi.ts @@ -1,5 +1,5 @@ /** - * PlatformApis model for ORM client + * PlatformApi 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 { - PlatformApis, - PlatformApisWithRelations, - PlatformApisSelect, - PlatformApisFilter, - PlatformApisOrderBy, - CreatePlatformApisInput, - UpdatePlatformApisInput, - PlatformApisPatch, + PlatformApi, + PlatformApiWithRelations, + PlatformApiSelect, + PlatformApiFilter, + PlatformApiOrderBy, + CreatePlatformApiInput, + UpdatePlatformApiInput, + PlatformApiPatch, } from '../input-types'; import { connectionFieldsMap } from '../input-types'; -export class PlatformApisModel { +export class PlatformApiModel { constructor(private client: OrmClient) {} - findMany( - args: FindManyArgs & { + findMany( + args: FindManyArgs & { select: S; - } & StrictSelect + } & StrictSelect ): QueryBuilder<{ - platformApises: ConnectionResult>; + platformApis: ConnectionResult>; }> { const { document, variables } = buildFindManyDocument( - 'PlatformApis', - 'platformApises', + 'PlatformApi', + 'platformApis', args.select, { where: args?.where, @@ -56,65 +56,65 @@ export class PlatformApisModel { before: args?.before, offset: args?.offset, }, - 'PlatformApisFilter', - 'PlatformApisOrderBy', + 'PlatformApiFilter', + 'PlatformApiOrderBy', connectionFieldsMap ); return new QueryBuilder({ client: this.client, operation: 'query', - operationName: 'PlatformApis', - fieldName: 'platformApises', + operationName: 'PlatformApi', + fieldName: 'platformApis', document, variables, }); } - findFirst( - args: FindFirstArgs & { + findFirst( + args: FindFirstArgs & { select: S; - } & StrictSelect + } & StrictSelect ): QueryBuilder<{ - platformApis: InferSelectResult | null; + platformApi: InferSelectResult | null; }> { const { document, variables } = buildFindFirstDocument( - 'PlatformApis', - 'platformApises', + 'PlatformApi', + 'platformApis', args.select, { where: args?.where, orderBy: args?.orderBy as string[] | undefined, }, - 'PlatformApisFilter', - 'PlatformApisOrderBy', + 'PlatformApiFilter', + 'PlatformApiOrderBy', connectionFieldsMap ); return new QueryBuilder({ client: this.client, operation: 'query', - operationName: 'PlatformApis', - fieldName: 'platformApis', + operationName: 'PlatformApi', + fieldName: 'platformApi', document, variables, transform: (data: { - platformApises?: { - nodes?: InferSelectResult[]; + platformApis?: { + nodes?: InferSelectResult[]; }; }) => ({ - platformApis: data.platformApises?.nodes?.[0] ?? null, + platformApi: data.platformApis?.nodes?.[0] ?? null, }), }); } - findOne( + findOne( args: { id: string; select: S; - } & StrictSelect + } & StrictSelect ): QueryBuilder<{ - platformApis: InferSelectResult | null; + platformApi: InferSelectResult | null; }> { const { document, variables } = buildFindManyDocument( - 'PlatformApis', - 'platformApises', + 'PlatformApi', + 'platformApis', args.select, { where: { @@ -124,91 +124,91 @@ export class PlatformApisModel { }, first: 1, }, - 'PlatformApisFilter', - 'PlatformApisOrderBy', + 'PlatformApiFilter', + 'PlatformApiOrderBy', connectionFieldsMap ); return new QueryBuilder({ client: this.client, operation: 'query', - operationName: 'PlatformApis', - fieldName: 'platformApis', + operationName: 'PlatformApi', + fieldName: 'platformApi', document, variables, transform: (data: { - platformApises?: { - nodes?: InferSelectResult[]; + platformApis?: { + nodes?: InferSelectResult[]; }; }) => ({ - platformApis: data.platformApises?.nodes?.[0] ?? null, + platformApi: data.platformApis?.nodes?.[0] ?? null, }), }); } - create( - args: CreateArgs & { + create( + args: CreateArgs & { select: S; - } & StrictSelect + } & StrictSelect ): QueryBuilder<{ - createPlatformApis: { - platformApis: InferSelectResult; + createPlatformApi: { + platformApi: InferSelectResult; }; }> { const { document, variables } = buildCreateDocument( - 'PlatformApis', - 'createPlatformApis', - 'platformApis', + 'PlatformApi', + 'createPlatformApi', + 'platformApi', args.select, args.data, - 'CreatePlatformApisInput', + 'CreatePlatformApiInput', connectionFieldsMap ); return new QueryBuilder({ client: this.client, operation: 'mutation', - operationName: 'PlatformApis', - fieldName: 'createPlatformApis', + operationName: 'PlatformApi', + fieldName: 'createPlatformApi', document, variables, }); } - update( + update( args: UpdateArgs< S, { id: string; }, - PlatformApisPatch + PlatformApiPatch > & { select: S; - } & StrictSelect + } & StrictSelect ): QueryBuilder<{ - updatePlatformApis: { - platformApis: InferSelectResult; + updatePlatformApi: { + platformApi: InferSelectResult; }; }> { const { document, variables } = buildUpdateByPkDocument( - 'PlatformApis', - 'updatePlatformApis', - 'platformApis', + 'PlatformApi', + 'updatePlatformApi', + 'platformApi', args.select, args.where.id, args.data, - 'UpdatePlatformApisInput', + 'UpdatePlatformApiInput', 'id', - 'platformApisPatch', + 'platformApiPatch', connectionFieldsMap, undefined ); return new QueryBuilder({ client: this.client, operation: 'mutation', - operationName: 'PlatformApis', - fieldName: 'updatePlatformApis', + operationName: 'PlatformApi', + fieldName: 'updatePlatformApi', document, variables, }); } - delete( + delete( args: DeleteArgs< { id: string; @@ -216,28 +216,28 @@ export class PlatformApisModel { S > & { select: S; - } & StrictSelect + } & StrictSelect ): QueryBuilder<{ - deletePlatformApis: { - platformApis: InferSelectResult; + deletePlatformApi: { + platformApi: InferSelectResult; }; }> { const { document, variables } = buildDeleteByPkDocument( - 'PlatformApis', - 'deletePlatformApis', - 'platformApis', + 'PlatformApi', + 'deletePlatformApi', + 'platformApi', { id: args.where.id, }, - 'DeletePlatformApisInput', + 'DeletePlatformApiInput', args.select, connectionFieldsMap ); return new QueryBuilder({ client: this.client, operation: 'mutation', - operationName: 'PlatformApis', - fieldName: 'deletePlatformApis', + operationName: 'PlatformApi', + fieldName: 'deletePlatformApi', document, variables, }); diff --git a/sdk/constructive-react/src/api/orm/models/platformEmailIdentity.ts b/sdk/constructive-react/src/api/orm/models/platformEmailIdentity.ts new file mode 100644 index 0000000000..8cc262f318 --- /dev/null +++ b/sdk/constructive-react/src/api/orm/models/platformEmailIdentity.ts @@ -0,0 +1,247 @@ +/** + * PlatformEmailIdentity 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 { + PlatformEmailIdentity, + PlatformEmailIdentityWithRelations, + PlatformEmailIdentitySelect, + PlatformEmailIdentityFilter, + PlatformEmailIdentityOrderBy, + CreatePlatformEmailIdentityInput, + UpdatePlatformEmailIdentityInput, + PlatformEmailIdentityPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class PlatformEmailIdentityModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformEmailIdentities: ConnectionResult< + InferSelectResult + >; + }> { + const { document, variables } = buildFindManyDocument( + 'PlatformEmailIdentity', + 'platformEmailIdentities', + 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, + }, + 'PlatformEmailIdentityFilter', + 'PlatformEmailIdentityOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformEmailIdentity', + fieldName: 'platformEmailIdentities', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformEmailIdentity: InferSelectResult | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'PlatformEmailIdentity', + 'platformEmailIdentities', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'PlatformEmailIdentityFilter', + 'PlatformEmailIdentityOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformEmailIdentity', + fieldName: 'platformEmailIdentity', + document, + variables, + transform: (data: { + platformEmailIdentities?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + platformEmailIdentity: data.platformEmailIdentities?.nodes?.[0] ?? null, + }), + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformEmailIdentity: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'PlatformEmailIdentity', + 'platformEmailIdentities', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'PlatformEmailIdentityFilter', + 'PlatformEmailIdentityOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformEmailIdentity', + fieldName: 'platformEmailIdentity', + document, + variables, + transform: (data: { + platformEmailIdentities?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + platformEmailIdentity: data.platformEmailIdentities?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createPlatformEmailIdentity: { + platformEmailIdentity: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'PlatformEmailIdentity', + 'createPlatformEmailIdentity', + 'platformEmailIdentity', + args.select, + args.data, + 'CreatePlatformEmailIdentityInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PlatformEmailIdentity', + fieldName: 'createPlatformEmailIdentity', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + PlatformEmailIdentityPatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updatePlatformEmailIdentity: { + platformEmailIdentity: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'PlatformEmailIdentity', + 'updatePlatformEmailIdentity', + 'platformEmailIdentity', + args.select, + args.where.id, + args.data, + 'UpdatePlatformEmailIdentityInput', + 'id', + 'platformEmailIdentityPatch', + connectionFieldsMap, + undefined + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PlatformEmailIdentity', + fieldName: 'updatePlatformEmailIdentity', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deletePlatformEmailIdentity: { + platformEmailIdentity: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'PlatformEmailIdentity', + 'deletePlatformEmailIdentity', + 'platformEmailIdentity', + { + id: args.where.id, + }, + 'DeletePlatformEmailIdentityInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PlatformEmailIdentity', + fieldName: 'deletePlatformEmailIdentity', + document, + variables, + }); + } +} diff --git a/sdk/constructive-react/src/api/orm/models/platformEmailProviderAccount.ts b/sdk/constructive-react/src/api/orm/models/platformEmailProviderAccount.ts new file mode 100644 index 0000000000..07c760f30b --- /dev/null +++ b/sdk/constructive-react/src/api/orm/models/platformEmailProviderAccount.ts @@ -0,0 +1,261 @@ +/** + * PlatformEmailProviderAccount 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 { + PlatformEmailProviderAccount, + PlatformEmailProviderAccountWithRelations, + PlatformEmailProviderAccountSelect, + PlatformEmailProviderAccountFilter, + PlatformEmailProviderAccountOrderBy, + CreatePlatformEmailProviderAccountInput, + UpdatePlatformEmailProviderAccountInput, + PlatformEmailProviderAccountPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class PlatformEmailProviderAccountModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs< + S, + PlatformEmailProviderAccountFilter, + PlatformEmailProviderAccountOrderBy + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformEmailProviderAccounts: ConnectionResult< + InferSelectResult + >; + }> { + const { document, variables } = buildFindManyDocument( + 'PlatformEmailProviderAccount', + 'platformEmailProviderAccounts', + 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, + }, + 'PlatformEmailProviderAccountFilter', + 'PlatformEmailProviderAccountOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformEmailProviderAccount', + fieldName: 'platformEmailProviderAccounts', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs< + S, + PlatformEmailProviderAccountFilter, + PlatformEmailProviderAccountOrderBy + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformEmailProviderAccount: InferSelectResult< + PlatformEmailProviderAccountWithRelations, + S + > | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'PlatformEmailProviderAccount', + 'platformEmailProviderAccounts', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'PlatformEmailProviderAccountFilter', + 'PlatformEmailProviderAccountOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformEmailProviderAccount', + fieldName: 'platformEmailProviderAccount', + document, + variables, + transform: (data: { + platformEmailProviderAccounts?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + platformEmailProviderAccount: data.platformEmailProviderAccounts?.nodes?.[0] ?? null, + }), + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformEmailProviderAccount: InferSelectResult< + PlatformEmailProviderAccountWithRelations, + S + > | null; + }> { + const { document, variables } = buildFindManyDocument( + 'PlatformEmailProviderAccount', + 'platformEmailProviderAccounts', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'PlatformEmailProviderAccountFilter', + 'PlatformEmailProviderAccountOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformEmailProviderAccount', + fieldName: 'platformEmailProviderAccount', + document, + variables, + transform: (data: { + platformEmailProviderAccounts?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + platformEmailProviderAccount: data.platformEmailProviderAccounts?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createPlatformEmailProviderAccount: { + platformEmailProviderAccount: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'PlatformEmailProviderAccount', + 'createPlatformEmailProviderAccount', + 'platformEmailProviderAccount', + args.select, + args.data, + 'CreatePlatformEmailProviderAccountInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PlatformEmailProviderAccount', + fieldName: 'createPlatformEmailProviderAccount', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + PlatformEmailProviderAccountPatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updatePlatformEmailProviderAccount: { + platformEmailProviderAccount: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'PlatformEmailProviderAccount', + 'updatePlatformEmailProviderAccount', + 'platformEmailProviderAccount', + args.select, + args.where.id, + args.data, + 'UpdatePlatformEmailProviderAccountInput', + 'id', + 'platformEmailProviderAccountPatch', + connectionFieldsMap, + undefined + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PlatformEmailProviderAccount', + fieldName: 'updatePlatformEmailProviderAccount', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deletePlatformEmailProviderAccount: { + platformEmailProviderAccount: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'PlatformEmailProviderAccount', + 'deletePlatformEmailProviderAccount', + 'platformEmailProviderAccount', + { + id: args.where.id, + }, + 'DeletePlatformEmailProviderAccountInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PlatformEmailProviderAccount', + fieldName: 'deletePlatformEmailProviderAccount', + document, + variables, + }); + } +} diff --git a/sdk/constructive-react/src/api/orm/models/platformEmailSiteIdentity.ts b/sdk/constructive-react/src/api/orm/models/platformEmailSiteIdentity.ts new file mode 100644 index 0000000000..bc3ff67daa --- /dev/null +++ b/sdk/constructive-react/src/api/orm/models/platformEmailSiteIdentity.ts @@ -0,0 +1,247 @@ +/** + * PlatformEmailSiteIdentity 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 { + PlatformEmailSiteIdentity, + PlatformEmailSiteIdentityWithRelations, + PlatformEmailSiteIdentitySelect, + PlatformEmailSiteIdentityFilter, + PlatformEmailSiteIdentityOrderBy, + CreatePlatformEmailSiteIdentityInput, + UpdatePlatformEmailSiteIdentityInput, + PlatformEmailSiteIdentityPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class PlatformEmailSiteIdentityModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformEmailSiteIdentities: ConnectionResult< + InferSelectResult + >; + }> { + const { document, variables } = buildFindManyDocument( + 'PlatformEmailSiteIdentity', + 'platformEmailSiteIdentities', + 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, + }, + 'PlatformEmailSiteIdentityFilter', + 'PlatformEmailSiteIdentityOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformEmailSiteIdentity', + fieldName: 'platformEmailSiteIdentities', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformEmailSiteIdentity: InferSelectResult | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'PlatformEmailSiteIdentity', + 'platformEmailSiteIdentities', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'PlatformEmailSiteIdentityFilter', + 'PlatformEmailSiteIdentityOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformEmailSiteIdentity', + fieldName: 'platformEmailSiteIdentity', + document, + variables, + transform: (data: { + platformEmailSiteIdentities?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + platformEmailSiteIdentity: data.platformEmailSiteIdentities?.nodes?.[0] ?? null, + }), + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformEmailSiteIdentity: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'PlatformEmailSiteIdentity', + 'platformEmailSiteIdentities', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'PlatformEmailSiteIdentityFilter', + 'PlatformEmailSiteIdentityOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformEmailSiteIdentity', + fieldName: 'platformEmailSiteIdentity', + document, + variables, + transform: (data: { + platformEmailSiteIdentities?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + platformEmailSiteIdentity: data.platformEmailSiteIdentities?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createPlatformEmailSiteIdentity: { + platformEmailSiteIdentity: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'PlatformEmailSiteIdentity', + 'createPlatformEmailSiteIdentity', + 'platformEmailSiteIdentity', + args.select, + args.data, + 'CreatePlatformEmailSiteIdentityInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PlatformEmailSiteIdentity', + fieldName: 'createPlatformEmailSiteIdentity', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + PlatformEmailSiteIdentityPatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updatePlatformEmailSiteIdentity: { + platformEmailSiteIdentity: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'PlatformEmailSiteIdentity', + 'updatePlatformEmailSiteIdentity', + 'platformEmailSiteIdentity', + args.select, + args.where.id, + args.data, + 'UpdatePlatformEmailSiteIdentityInput', + 'id', + 'platformEmailSiteIdentityPatch', + connectionFieldsMap, + undefined + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PlatformEmailSiteIdentity', + fieldName: 'updatePlatformEmailSiteIdentity', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deletePlatformEmailSiteIdentity: { + platformEmailSiteIdentity: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'PlatformEmailSiteIdentity', + 'deletePlatformEmailSiteIdentity', + 'platformEmailSiteIdentity', + { + id: args.where.id, + }, + 'DeletePlatformEmailSiteIdentityInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PlatformEmailSiteIdentity', + fieldName: 'deletePlatformEmailSiteIdentity', + document, + variables, + }); + } +} diff --git a/sdk/constructive-react/src/api/schema-types.ts b/sdk/constructive-react/src/api/schema-types.ts index 1bd400ad89..92129c844a 100644 --- a/sdk/constructive-react/src/api/schema-types.ts +++ b/sdk/constructive-react/src/api/schema-types.ts @@ -5,9 +5,9 @@ */ import type { + Api, ApiSchema, ApiSetting, - Apis, AstMigration, CheckConstraint, CompositeType, @@ -21,6 +21,9 @@ import type { DomainEvent, DomainType, DomainVerification, + EmailIdentity, + EmailProviderAccount, + EmailSiteIdentity, EmbeddingChunk, Enum, ExclusionConstraint, @@ -37,13 +40,16 @@ import type { NodeTypeRegistry, Page, Partition, + PlatformApi, PlatformApiSchema, PlatformApiSetting, - PlatformApis, PlatformCorsSetting, PlatformDomain, PlatformDomainEvent, PlatformDomainVerification, + PlatformEmailIdentity, + PlatformEmailProviderAccount, + PlatformEmailSiteIdentity, PlatformManagedDomain, PlatformPage, PlatformSite, @@ -105,6 +111,31 @@ import type { } from './types'; export type ConstructiveInternalTypeImage = unknown; export type ApiExposureLevel = 'EXPOSABLE' | 'INTERNAL_ONLY' | 'NEVER_EXPOSE'; +/** Methods to use when ordering `Api`. */ +export type ApiOrderBy = + | 'ANON_ROLE_ASC' + | 'ANON_ROLE_DESC' + | 'CONFIG_ASC' + | 'CONFIG_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'DBNAME_ASC' + | 'DBNAME_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'IS_PUBLISHED_ASC' + | 'IS_PUBLISHED_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ROLE_NAME_ASC' + | 'ROLE_NAME_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC'; /** Methods to use when ordering `ApiSchema`. */ export type ApiSchemaOrderBy = | 'API_ID_ASC' @@ -165,31 +196,6 @@ export type ApiSettingOrderBy = | 'STATEMENT_TIMEOUT_MS_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC'; -/** Methods to use when ordering `Apis`. */ -export type ApisOrderBy = - | 'ANON_ROLE_ASC' - | 'ANON_ROLE_DESC' - | 'CONFIG_ASC' - | 'CONFIG_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' - | 'DBNAME_ASC' - | 'DBNAME_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'IS_PUBLISHED_ASC' - | 'IS_PUBLISHED_DESC' - | 'NAME_ASC' - | 'NAME_DESC' - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ROLE_NAME_ASC' - | 'ROLE_NAME_DESC' - | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC'; /** Methods to use when ordering `AstMigration`. */ export type AstMigrationOrderBy = | 'ACTION_ID_ASC' @@ -565,6 +571,91 @@ export type DomainVerificationOrderBy = | 'UPDATED_AT_DESC' | 'VERIFIED_AT_ASC' | 'VERIFIED_AT_DESC'; +/** Methods to use when ordering `EmailIdentity`. */ +export type EmailIdentityOrderBy = + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'FROM_ADDRESS_ASC' + | 'FROM_ADDRESS_DESC' + | 'FROM_NAME_ASC' + | 'FROM_NAME_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'IS_ACTIVE_ASC' + | 'IS_ACTIVE_DESC' + | 'IS_DEFAULT_ASC' + | 'IS_DEFAULT_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'PROVIDER_ACCOUNT_ID_ASC' + | 'PROVIDER_ACCOUNT_ID_DESC' + | 'REPLY_TO_ADDRESS_ASC' + | 'REPLY_TO_ADDRESS_DESC' + | 'SUPPORT_ADDRESS_ASC' + | 'SUPPORT_ADDRESS_DESC' + | 'TRANSPORT_MODE_ASC' + | 'TRANSPORT_MODE_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC'; +/** Methods to use when ordering `EmailProviderAccount`. */ +export type EmailProviderAccountOrderBy = + | 'API_BASE_URL_ASC' + | 'API_BASE_URL_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'CREDENTIALS_SECRET_NAME_ASC' + | 'CREDENTIALS_SECRET_NAME_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'IS_ACTIVE_ASC' + | 'IS_ACTIVE_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'PROVIDER_ACCOUNT_NAME_ASC' + | 'PROVIDER_ACCOUNT_NAME_DESC' + | 'PROVIDER_ASC' + | 'PROVIDER_DESC' + | 'REGION_ASC' + | 'REGION_DESC' + | 'SMTP_HOST_ASC' + | 'SMTP_HOST_DESC' + | 'SMTP_PORT_ASC' + | 'SMTP_PORT_DESC' + | 'SMTP_SECURE_ASC' + | 'SMTP_SECURE_DESC' + | 'SMTP_USER_ASC' + | 'SMTP_USER_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC' + | 'WEBHOOK_SIGNING_SECRET_NAME_ASC' + | 'WEBHOOK_SIGNING_SECRET_NAME_DESC'; +/** Methods to use when ordering `EmailSiteIdentity`. */ +export type EmailSiteIdentityOrderBy = + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'EMAIL_IDENTITY_ID_ASC' + | 'EMAIL_IDENTITY_ID_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'SITE_ID_ASC' + | 'SITE_ID_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC'; /** Methods to use when ordering `EmbeddingChunk`. */ export type EmbeddingChunkOrderBy = | 'CHUNKING_TASK_NAME_ASC' @@ -997,7 +1088,7 @@ export type NodeTypeRegistryOrderBy = | 'SLUG_DESC' | 'TAGS_ASC' | 'TAGS_DESC'; -export type ObjectCategory = 'APP' | 'AUTH' | 'CORE' | 'MEMBERSHIPS' | 'MODULE' | 'PERMISSIONS'; +export type ObjectCategory = 'APP' | 'AUTH' | 'CAPABILITIES' | 'CORE' | 'MEMBERSHIPS' | 'MODULE'; /** Methods to use when ordering `Page`. */ export type PageOrderBy = | 'COMMIT_ID_ASC' @@ -1052,6 +1143,29 @@ export type PartitionOrderBy = | 'TABLE_ID_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC'; +/** Methods to use when ordering `PlatformApi`. */ +export type PlatformApiOrderBy = + | 'ANON_ROLE_ASC' + | 'ANON_ROLE_DESC' + | 'CONFIG_ASC' + | 'CONFIG_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'DBNAME_ASC' + | 'DBNAME_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'IS_PUBLISHED_ASC' + | 'IS_PUBLISHED_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ROLE_NAME_ASC' + | 'ROLE_NAME_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC'; /** Methods to use when ordering `PlatformApiSchema`. */ export type PlatformApiSchemaOrderBy = | 'API_ID_ASC' @@ -1108,29 +1222,6 @@ export type PlatformApiSettingOrderBy = | 'STATEMENT_TIMEOUT_MS_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC'; -/** Methods to use when ordering `PlatformApis`. */ -export type PlatformApisOrderBy = - | 'ANON_ROLE_ASC' - | 'ANON_ROLE_DESC' - | 'CONFIG_ASC' - | 'CONFIG_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'DBNAME_ASC' - | 'DBNAME_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'IS_PUBLISHED_ASC' - | 'IS_PUBLISHED_DESC' - | 'NAME_ASC' - | 'NAME_DESC' - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ROLE_NAME_ASC' - | 'ROLE_NAME_DESC' - | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC'; /** Methods to use when ordering `PlatformCorsSetting`. */ export type PlatformCorsSettingOrderBy = | 'ALLOWED_ORIGINS_ASC' @@ -1239,6 +1330,85 @@ export type PlatformDomainVerificationOrderBy = | 'UPDATED_AT_DESC' | 'VERIFIED_AT_ASC' | 'VERIFIED_AT_DESC'; +/** Methods to use when ordering `PlatformEmailIdentity`. */ +export type PlatformEmailIdentityOrderBy = + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'FROM_ADDRESS_ASC' + | 'FROM_ADDRESS_DESC' + | 'FROM_NAME_ASC' + | 'FROM_NAME_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'IS_ACTIVE_ASC' + | 'IS_ACTIVE_DESC' + | 'IS_DEFAULT_ASC' + | 'IS_DEFAULT_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'PROVIDER_ACCOUNT_ID_ASC' + | 'PROVIDER_ACCOUNT_ID_DESC' + | 'REPLY_TO_ADDRESS_ASC' + | 'REPLY_TO_ADDRESS_DESC' + | 'SUPPORT_ADDRESS_ASC' + | 'SUPPORT_ADDRESS_DESC' + | 'TRANSPORT_MODE_ASC' + | 'TRANSPORT_MODE_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC'; +/** Methods to use when ordering `PlatformEmailProviderAccount`. */ +export type PlatformEmailProviderAccountOrderBy = + | 'API_BASE_URL_ASC' + | 'API_BASE_URL_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'CREDENTIALS_SECRET_NAME_ASC' + | 'CREDENTIALS_SECRET_NAME_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'IS_ACTIVE_ASC' + | 'IS_ACTIVE_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'PROVIDER_ACCOUNT_NAME_ASC' + | 'PROVIDER_ACCOUNT_NAME_DESC' + | 'PROVIDER_ASC' + | 'PROVIDER_DESC' + | 'REGION_ASC' + | 'REGION_DESC' + | 'SMTP_HOST_ASC' + | 'SMTP_HOST_DESC' + | 'SMTP_PORT_ASC' + | 'SMTP_PORT_DESC' + | 'SMTP_SECURE_ASC' + | 'SMTP_SECURE_DESC' + | 'SMTP_USER_ASC' + | 'SMTP_USER_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC' + | 'WEBHOOK_SIGNING_SECRET_NAME_ASC' + | 'WEBHOOK_SIGNING_SECRET_NAME_DESC'; +/** Methods to use when ordering `PlatformEmailSiteIdentity`. */ +export type PlatformEmailSiteIdentityOrderBy = + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'EMAIL_IDENTITY_ID_ASC' + | 'EMAIL_IDENTITY_ID_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'SITE_ID_ASC' + | 'SITE_ID_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC'; /** Methods to use when ordering `PlatformManagedDomain`. */ export type PlatformManagedDomainOrderBy = | 'ALLOW_PUBLIC_USAGE_ASC' @@ -2373,12 +2543,93 @@ export interface ApiExposureLevelFilter { /** Not included in the specified list. */ notIn?: ApiExposureLevel[]; } +/** A filter to be used against `Api` object types. All fields are combined with a logical ‘and.’ */ +export interface ApiFilter { + /** Checks for all expressions in this list. */ + and?: ApiFilter[]; + /** Filter by the object’s `anonRole` field. */ + anonRole?: StringFilter; + /** Filter by the object’s `apiSchemas` relation. */ + apiSchemas?: ApiToManyApiSchemaFilter; + /** `apiSchemas` exist. */ + apiSchemasExist?: boolean; + /** Filter by the object’s `apiSetting` relation. */ + apiSetting?: ApiSettingFilter; + /** A related `apiSetting` exists. */ + apiSettingExists?: boolean; + /** Filter by the object’s `config` field. */ + config?: JSONFilter; + /** Filter by the object’s `corsSettings` relation. */ + corsSettings?: ApiToManyCorsSettingFilter; + /** `corsSettings` exist. */ + corsSettingsExist?: boolean; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `dbname` field. */ + dbname?: StringFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `isPublished` field. */ + isPublished?: BooleanFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Negates the expression. */ + not?: ApiFilter; + /** Checks for any expressions in this list. */ + or?: ApiFilter[]; + /** Filter by the object’s `roleName` field. */ + roleName?: StringFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; +} +/** An input for mutations affecting `Api` */ +export interface ApiInput { + /** Anonymous role the API executes as */ + anonRole?: string; + /** Module-specific configuration for this API surface */ + config?: unknown; + createdAt?: string; + /** Database that owns this resource (database-scoped isolation) */ + databaseId: string; + /** Database this API surface serves */ + dbname?: string; + id?: string; + /** Whether other scopes may see and route to this API surface */ + isPublished?: boolean; + /** Owner-local API surface name */ + name: string; + /** Authenticated role the API executes as */ + roleName?: string; + updatedAt?: string; +} +/** Represents an update to a `Api`. Fields that are set will be updated. */ +export interface ApiPatch { + /** Anonymous role the API executes as */ + anonRole?: string; + /** Module-specific configuration for this API surface */ + config?: unknown; + createdAt?: string; + /** Database that owns this resource (database-scoped isolation) */ + databaseId?: string; + /** Database this API surface serves */ + dbname?: string; + id?: string; + /** Whether other scopes may see and route to this API surface */ + isPublished?: boolean; + /** Owner-local API surface name */ + name?: string; + /** Authenticated role the API executes as */ + roleName?: string; + updatedAt?: string; +} /** A filter to be used against `ApiSchema` object types. All fields are combined with a logical ‘and.’ */ export interface ApiSchemaFilter { /** Checks for all expressions in this list. */ and?: ApiSchemaFilter[]; /** Filter by the object’s `api` relation. */ - api?: ApisFilter; + api?: ApiFilter; /** Filter by the object’s `apiId` field. */ apiId?: UUIDFilter; /** Filter by the object’s `createdAt` field. */ @@ -2427,7 +2678,7 @@ export interface ApiSettingFilter { /** Checks for all expressions in this list. */ and?: ApiSettingFilter[]; /** Filter by the object’s `api` relation. */ - api?: ApisFilter; + api?: ApiFilter; /** Filter by the object’s `apiId` field. */ apiId?: UUIDFilter; /** Filter by the object’s `createdAt` field. */ @@ -2547,89 +2798,8 @@ export interface ApiSettingPatch { statementTimeoutMs?: string; updatedAt?: string; } -/** A filter to be used against `Apis` object types. All fields are combined with a logical ‘and.’ */ -export interface ApisFilter { - /** Checks for all expressions in this list. */ - and?: ApisFilter[]; - /** Filter by the object’s `anonRole` field. */ - anonRole?: StringFilter; - /** Filter by the object’s `apiSchemasByApiId` relation. */ - apiSchemasByApiId?: ApisToManyApiSchemaFilter; - /** `apiSchemasByApiId` exist. */ - apiSchemasByApiIdExist?: boolean; - /** Filter by the object’s `apiSettingByApiId` relation. */ - apiSettingByApiId?: ApiSettingFilter; - /** A related `apiSettingByApiId` exists. */ - apiSettingByApiIdExists?: boolean; - /** Filter by the object’s `config` field. */ - config?: JSONFilter; - /** Filter by the object’s `corsSettingsByApiId` relation. */ - corsSettingsByApiId?: ApisToManyCorsSettingFilter; - /** `corsSettingsByApiId` exist. */ - corsSettingsByApiIdExist?: boolean; - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Filter by the object’s `dbname` field. */ - dbname?: StringFilter; - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `isPublished` field. */ - isPublished?: BooleanFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Negates the expression. */ - not?: ApisFilter; - /** Checks for any expressions in this list. */ - or?: ApisFilter[]; - /** Filter by the object’s `roleName` field. */ - roleName?: StringFilter; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; -} -/** An input for mutations affecting `Apis` */ -export interface ApisInput { - /** Anonymous role the API executes as */ - anonRole?: string; - /** Module-specific configuration for this API surface */ - config?: unknown; - createdAt?: string; - /** Database that owns this resource (database-scoped isolation) */ - databaseId: string; - /** Database this API surface serves */ - dbname?: string; - id?: string; - /** Whether other scopes may see and route to this API surface */ - isPublished?: boolean; - /** Owner-local API surface name */ - name: string; - /** Authenticated role the API executes as */ - roleName?: string; - updatedAt?: string; -} -/** Represents an update to a `Apis`. Fields that are set will be updated. */ -export interface ApisPatch { - /** Anonymous role the API executes as */ - anonRole?: string; - /** Module-specific configuration for this API surface */ - config?: unknown; - createdAt?: string; - /** Database that owns this resource (database-scoped isolation) */ - databaseId?: string; - /** Database this API surface serves */ - dbname?: string; - id?: string; - /** Whether other scopes may see and route to this API surface */ - isPublished?: boolean; - /** Owner-local API surface name */ - name?: string; - /** Authenticated role the API executes as */ - roleName?: string; - updatedAt?: string; -} /** A filter to be used against many `ApiSchema` object types. All fields are combined with a logical ‘and.’ */ -export interface ApisToManyApiSchemaFilter { +export interface ApiToManyApiSchemaFilter { /** Filters to entities where every related entity matches. */ every?: ApiSchemaFilter; /** Filters to entities where no related entity matches. */ @@ -2638,7 +2808,7 @@ export interface ApisToManyApiSchemaFilter { some?: ApiSchemaFilter; } /** A filter to be used against many `CorsSetting` object types. All fields are combined with a logical ‘and.’ */ -export interface ApisToManyCorsSettingFilter { +export interface ApiToManyCorsSettingFilter { /** Filters to entities where every related entity matches. */ every?: CorsSettingFilter; /** Filters to entities where no related entity matches. */ @@ -2871,7 +3041,7 @@ export interface CorsSettingFilter { /** Checks for all expressions in this list. */ and?: CorsSettingFilter[]; /** Filter by the object’s `api` relation. */ - api?: ApisFilter; + api?: ApiFilter; /** A related `api` exists. */ apiExists?: boolean; /** Filter by the object’s `apiId` field. */ @@ -2913,6 +3083,11 @@ export interface CorsSettingPatch { id?: string; updatedAt?: string; } +export interface CreateApiInput { + /** The `Api` to be created by this mutation. */ + api: ApiInput; + clientMutationId?: string; +} export interface CreateApiSchemaInput { /** The `ApiSchema` to be created by this mutation. */ apiSchema: ApiSchemaInput; @@ -2923,11 +3098,6 @@ export interface CreateApiSettingInput { apiSetting: ApiSettingInput; clientMutationId?: string; } -export interface CreateApisInput { - /** The `Apis` to be created by this mutation. */ - apis: ApisInput; - clientMutationId?: string; -} export interface CreateCheckConstraintInput { /** The `CheckConstraint` to be created by this mutation. */ checkConstraint: CheckConstraintInput; @@ -2988,6 +3158,21 @@ export interface CreateDomainVerificationInput { /** The `DomainVerification` to be created by this mutation. */ domainVerification: DomainVerificationInput; } +export interface CreateEmailIdentityInput { + clientMutationId?: string; + /** The `EmailIdentity` to be created by this mutation. */ + emailIdentity: EmailIdentityInput; +} +export interface CreateEmailProviderAccountInput { + clientMutationId?: string; + /** The `EmailProviderAccount` to be created by this mutation. */ + emailProviderAccount: EmailProviderAccountInput; +} +export interface CreateEmailSiteIdentityInput { + clientMutationId?: string; + /** The `EmailSiteIdentity` to be created by this mutation. */ + emailSiteIdentity: EmailSiteIdentityInput; +} export interface CreateEmbeddingChunkInput { clientMutationId?: string; /** The `EmbeddingChunk` to be created by this mutation. */ @@ -3068,6 +3253,11 @@ export interface CreatePartitionInput { /** The `Partition` to be created by this mutation. */ partition: PartitionInput; } +export interface CreatePlatformApiInput { + clientMutationId?: string; + /** The `PlatformApi` to be created by this mutation. */ + platformApi: PlatformApiInput; +} export interface CreatePlatformApiSchemaInput { clientMutationId?: string; /** The `PlatformApiSchema` to be created by this mutation. */ @@ -3078,11 +3268,6 @@ export interface CreatePlatformApiSettingInput { /** The `PlatformApiSetting` to be created by this mutation. */ platformApiSetting: PlatformApiSettingInput; } -export interface CreatePlatformApisInput { - clientMutationId?: string; - /** The `PlatformApis` to be created by this mutation. */ - platformApis: PlatformApisInput; -} export interface CreatePlatformCorsSettingInput { clientMutationId?: string; /** The `PlatformCorsSetting` to be created by this mutation. */ @@ -3103,6 +3288,21 @@ export interface CreatePlatformDomainVerificationInput { /** The `PlatformDomainVerification` to be created by this mutation. */ platformDomainVerification: PlatformDomainVerificationInput; } +export interface CreatePlatformEmailIdentityInput { + clientMutationId?: string; + /** The `PlatformEmailIdentity` to be created by this mutation. */ + platformEmailIdentity: PlatformEmailIdentityInput; +} +export interface CreatePlatformEmailProviderAccountInput { + clientMutationId?: string; + /** The `PlatformEmailProviderAccount` to be created by this mutation. */ + platformEmailProviderAccount: PlatformEmailProviderAccountInput; +} +export interface CreatePlatformEmailSiteIdentityInput { + clientMutationId?: string; + /** The `PlatformEmailSiteIdentity` to be created by this mutation. */ + platformEmailSiteIdentity: PlatformEmailSiteIdentityInput; +} export interface CreatePlatformManagedDomainInput { clientMutationId?: string; /** The `PlatformManagedDomain` to be created by this mutation. */ @@ -4041,15 +4241,15 @@ export interface DefaultPrivilegePatch { privilege?: string; schemaId?: string; } -export interface DeleteApiSchemaInput { +export interface DeleteApiInput { clientMutationId?: string; id: string; } -export interface DeleteApiSettingInput { +export interface DeleteApiSchemaInput { clientMutationId?: string; id: string; } -export interface DeleteApisInput { +export interface DeleteApiSettingInput { clientMutationId?: string; id: string; } @@ -4101,6 +4301,18 @@ export interface DeleteDomainVerificationInput { clientMutationId?: string; id: string; } +export interface DeleteEmailIdentityInput { + clientMutationId?: string; + id: string; +} +export interface DeleteEmailProviderAccountInput { + clientMutationId?: string; + id: string; +} +export interface DeleteEmailSiteIdentityInput { + clientMutationId?: string; + id: string; +} export interface DeleteEmbeddingChunkInput { clientMutationId?: string; id: string; @@ -4166,15 +4378,15 @@ export interface DeletePartitionInput { clientMutationId?: string; id: string; } -export interface DeletePlatformApiSchemaInput { +export interface DeletePlatformApiInput { clientMutationId?: string; id: string; } -export interface DeletePlatformApiSettingInput { +export interface DeletePlatformApiSchemaInput { clientMutationId?: string; id: string; } -export interface DeletePlatformApisInput { +export interface DeletePlatformApiSettingInput { clientMutationId?: string; id: string; } @@ -4194,6 +4406,18 @@ export interface DeletePlatformDomainVerificationInput { clientMutationId?: string; id: string; } +export interface DeletePlatformEmailIdentityInput { + clientMutationId?: string; + id: string; +} +export interface DeletePlatformEmailProviderAccountInput { + clientMutationId?: string; + id: string; +} +export interface DeletePlatformEmailSiteIdentityInput { + clientMutationId?: string; + id: string; +} export interface DeletePlatformManagedDomainInput { clientMutationId?: string; id: string; @@ -4840,6 +5064,277 @@ export interface DomainsAssignSubdomainInput { label?: string; maxAttempts?: number; } +/** A filter to be used against `EmailIdentity` object types. All fields are combined with a logical ‘and.’ */ +export interface EmailIdentityFilter { + /** Checks for all expressions in this list. */ + and?: EmailIdentityFilter[]; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `emailSiteIdentities` relation. */ + emailSiteIdentities?: EmailIdentityToManyEmailSiteIdentityFilter; + /** `emailSiteIdentities` exist. */ + emailSiteIdentitiesExist?: boolean; + /** Filter by the object’s `fromAddress` field. */ + fromAddress?: StringFilter; + /** Filter by the object’s `fromName` field. */ + fromName?: StringFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `isActive` field. */ + isActive?: BooleanFilter; + /** Filter by the object’s `isDefault` field. */ + isDefault?: BooleanFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Negates the expression. */ + not?: EmailIdentityFilter; + /** Checks for any expressions in this list. */ + or?: EmailIdentityFilter[]; + /** Filter by the object’s `providerAccount` relation. */ + providerAccount?: EmailProviderAccountFilter; + /** A related `providerAccount` exists. */ + providerAccountExists?: boolean; + /** Filter by the object’s `providerAccountId` field. */ + providerAccountId?: UUIDFilter; + /** Filter by the object’s `replyToAddress` field. */ + replyToAddress?: StringFilter; + /** Filter by the object’s `supportAddress` field. */ + supportAddress?: StringFilter; + /** Filter by the object’s `transportMode` field. */ + transportMode?: StringFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; +} +/** An input for mutations affecting `EmailIdentity` */ +export interface EmailIdentityInput { + createdAt?: string; + /** Database that owns this resource (database-scoped isolation) */ + databaseId: string; + /** Envelope/header From address, lower-case. Must be accepted by the sending account at the provider. */ + fromAddress: string; + /** Display name shown beside the from address */ + fromName?: string; + id?: string; + /** Whether this identity may be resolved for a send */ + isActive?: boolean; + /** The scope default identity, used when no site binding resolves. At most one per scope key. */ + isDefault?: boolean; + /** Operator-facing name for this identity (e.g. transactional, support) */ + name: string; + /** Same-scope provider account this identity sends through. Required for transport_mode = own, NULL for platform_shared. */ + providerAccountId?: string; + /** Reply-To address when replies should not go to the from address */ + replyToAddress?: string; + /** Support address rendered in message bodies and footers */ + supportAddress?: string; + /** own = send through provider_account_id in this scope; platform_shared = send through the platform installation's shared account, an explicit recorded choice and never an implicit fallback */ + transportMode?: string; + updatedAt?: string; +} +/** Represents an update to a `EmailIdentity`. Fields that are set will be updated. */ +export interface EmailIdentityPatch { + createdAt?: string; + /** Database that owns this resource (database-scoped isolation) */ + databaseId?: string; + /** Envelope/header From address, lower-case. Must be accepted by the sending account at the provider. */ + fromAddress?: string; + /** Display name shown beside the from address */ + fromName?: string; + id?: string; + /** Whether this identity may be resolved for a send */ + isActive?: boolean; + /** The scope default identity, used when no site binding resolves. At most one per scope key. */ + isDefault?: boolean; + /** Operator-facing name for this identity (e.g. transactional, support) */ + name?: string; + /** Same-scope provider account this identity sends through. Required for transport_mode = own, NULL for platform_shared. */ + providerAccountId?: string; + /** Reply-To address when replies should not go to the from address */ + replyToAddress?: string; + /** Support address rendered in message bodies and footers */ + supportAddress?: string; + /** own = send through provider_account_id in this scope; platform_shared = send through the platform installation's shared account, an explicit recorded choice and never an implicit fallback */ + transportMode?: string; + updatedAt?: string; +} +/** A filter to be used against many `EmailSiteIdentity` object types. All fields are combined with a logical ‘and.’ */ +export interface EmailIdentityToManyEmailSiteIdentityFilter { + /** Filters to entities where every related entity matches. */ + every?: EmailSiteIdentityFilter; + /** Filters to entities where no related entity matches. */ + none?: EmailSiteIdentityFilter; + /** Filters to entities where at least one related entity matches. */ + some?: EmailSiteIdentityFilter; +} +/** A filter to be used against `EmailProviderAccount` object types. All fields are combined with a logical ‘and.’ */ +export interface EmailProviderAccountFilter { + /** Checks for all expressions in this list. */ + and?: EmailProviderAccountFilter[]; + /** Filter by the object’s `apiBaseUrl` field. */ + apiBaseUrl?: StringFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `credentialsSecretName` field. */ + credentialsSecretName?: StringFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `emailIdentitiesByProviderAccountId` relation. */ + emailIdentitiesByProviderAccountId?: EmailProviderAccountToManyEmailIdentityFilter; + /** `emailIdentitiesByProviderAccountId` exist. */ + emailIdentitiesByProviderAccountIdExist?: boolean; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `isActive` field. */ + isActive?: BooleanFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Negates the expression. */ + not?: EmailProviderAccountFilter; + /** Checks for any expressions in this list. */ + or?: EmailProviderAccountFilter[]; + /** Filter by the object’s `provider` field. */ + provider?: StringFilter; + /** Filter by the object’s `providerAccountName` field. */ + providerAccountName?: StringFilter; + /** Filter by the object’s `region` field. */ + region?: StringFilter; + /** Filter by the object’s `smtpHost` field. */ + smtpHost?: StringFilter; + /** Filter by the object’s `smtpPort` field. */ + smtpPort?: IntFilter; + /** Filter by the object’s `smtpSecure` field. */ + smtpSecure?: BooleanFilter; + /** Filter by the object’s `smtpUser` field. */ + smtpUser?: StringFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `webhookSigningSecretName` field. */ + webhookSigningSecretName?: StringFilter; +} +/** An input for mutations affecting `EmailProviderAccount` */ +export interface EmailProviderAccountInput { + /** Provider API base URL when it is not the provider default (e.g. Mailgun EU) */ + apiBaseUrl?: string; + createdAt?: string; + /** Name of the secret holding this account's API key or SMTP password. The value is resolved from the secret store at send time (realm = this row's id) and is never stored here. */ + credentialsSecretName: string; + /** Database that owns this resource (database-scoped isolation) */ + databaseId: string; + id?: string; + /** Whether identities may send through this account. Disabling one row stops every identity that references it. */ + isActive?: boolean; + /** Operator-facing name for this account (e.g. transactional, marketing) */ + name: string; + /** integration_providers.slug of the provider this account is at (mailgun, ses, postmark, smtp), matched by string not by FK */ + provider: string; + /** Account identifier at the provider — the Mailgun sending domain, the SES verified identity, the Postmark server name */ + providerAccountName?: string; + /** Provider region for region-addressed providers (e.g. SES us-east-1) */ + region?: string; + /** SMTP host (provider = smtp, or a provider addressed over SMTP) */ + smtpHost?: string; + /** SMTP port */ + smtpPort?: number; + /** Whether the SMTP connection uses implicit TLS */ + smtpSecure?: boolean; + /** SMTP username; the password is a secret, addressed by credentials_secret_name */ + smtpUser?: string; + updatedAt?: string; + /** Name of the secret used to verify this provider's delivery/bounce webhooks. Name only; the value stays in the secret store. */ + webhookSigningSecretName?: string; +} +/** Represents an update to a `EmailProviderAccount`. Fields that are set will be updated. */ +export interface EmailProviderAccountPatch { + /** Provider API base URL when it is not the provider default (e.g. Mailgun EU) */ + apiBaseUrl?: string; + createdAt?: string; + /** Name of the secret holding this account's API key or SMTP password. The value is resolved from the secret store at send time (realm = this row's id) and is never stored here. */ + credentialsSecretName?: string; + /** Database that owns this resource (database-scoped isolation) */ + databaseId?: string; + id?: string; + /** Whether identities may send through this account. Disabling one row stops every identity that references it. */ + isActive?: boolean; + /** Operator-facing name for this account (e.g. transactional, marketing) */ + name?: string; + /** integration_providers.slug of the provider this account is at (mailgun, ses, postmark, smtp), matched by string not by FK */ + provider?: string; + /** Account identifier at the provider — the Mailgun sending domain, the SES verified identity, the Postmark server name */ + providerAccountName?: string; + /** Provider region for region-addressed providers (e.g. SES us-east-1) */ + region?: string; + /** SMTP host (provider = smtp, or a provider addressed over SMTP) */ + smtpHost?: string; + /** SMTP port */ + smtpPort?: number; + /** Whether the SMTP connection uses implicit TLS */ + smtpSecure?: boolean; + /** SMTP username; the password is a secret, addressed by credentials_secret_name */ + smtpUser?: string; + updatedAt?: string; + /** Name of the secret used to verify this provider's delivery/bounce webhooks. Name only; the value stays in the secret store. */ + webhookSigningSecretName?: string; +} +/** A filter to be used against many `EmailIdentity` object types. All fields are combined with a logical ‘and.’ */ +export interface EmailProviderAccountToManyEmailIdentityFilter { + /** Filters to entities where every related entity matches. */ + every?: EmailIdentityFilter; + /** Filters to entities where no related entity matches. */ + none?: EmailIdentityFilter; + /** Filters to entities where at least one related entity matches. */ + some?: EmailIdentityFilter; +} +/** A filter to be used against `EmailSiteIdentity` object types. All fields are combined with a logical ‘and.’ */ +export interface EmailSiteIdentityFilter { + /** Checks for all expressions in this list. */ + and?: EmailSiteIdentityFilter[]; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `emailIdentity` relation. */ + emailIdentity?: EmailIdentityFilter; + /** Filter by the object’s `emailIdentityId` field. */ + emailIdentityId?: UUIDFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Negates the expression. */ + not?: EmailSiteIdentityFilter; + /** Checks for any expressions in this list. */ + or?: EmailSiteIdentityFilter[]; + /** Filter by the object’s `site` relation. */ + site?: SiteFilter; + /** Filter by the object’s `siteId` field. */ + siteId?: UUIDFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; +} +/** An input for mutations affecting `EmailSiteIdentity` */ +export interface EmailSiteIdentityInput { + createdAt?: string; + /** Database that owns this resource (database-scoped isolation) */ + databaseId: string; + /** Identity this site sends as */ + emailIdentityId: string; + id?: string; + /** Site whose mail is sent as the bound identity */ + siteId: string; + updatedAt?: string; +} +/** Represents an update to a `EmailSiteIdentity`. Fields that are set will be updated. */ +export interface EmailSiteIdentityPatch { + createdAt?: string; + /** Database that owns this resource (database-scoped isolation) */ + databaseId?: string; + /** Identity this site sends as */ + emailIdentityId?: string; + id?: string; + /** Site whose mail is sent as the bound identity */ + siteId?: string; + updatedAt?: string; +} /** A filter to be used against `EmbeddingChunk` object types. All fields are combined with a logical ‘and.’ */ export interface EmbeddingChunkFilter { /** Checks for all expressions in this list. */ @@ -6152,12 +6647,87 @@ export interface PartitionPatch { tableId?: string; updatedAt?: string; } +/** A filter to be used against `PlatformApi` object types. All fields are combined with a logical ‘and.’ */ +export interface PlatformApiFilter { + /** Checks for all expressions in this list. */ + and?: PlatformApiFilter[]; + /** Filter by the object’s `anonRole` field. */ + anonRole?: StringFilter; + /** Filter by the object’s `config` field. */ + config?: JSONFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `dbname` field. */ + dbname?: StringFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `isPublished` field. */ + isPublished?: BooleanFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Negates the expression. */ + not?: PlatformApiFilter; + /** Checks for any expressions in this list. */ + or?: PlatformApiFilter[]; + /** Filter by the object’s `platformApiSchemasByApiId` relation. */ + platformApiSchemasByApiId?: PlatformApiToManyPlatformApiSchemaFilter; + /** `platformApiSchemasByApiId` exist. */ + platformApiSchemasByApiIdExist?: boolean; + /** Filter by the object’s `platformApiSettingByApiId` relation. */ + platformApiSettingByApiId?: PlatformApiSettingFilter; + /** A related `platformApiSettingByApiId` exists. */ + platformApiSettingByApiIdExists?: boolean; + /** Filter by the object’s `platformCorsSettingByApiId` relation. */ + platformCorsSettingByApiId?: PlatformCorsSettingFilter; + /** A related `platformCorsSettingByApiId` exists. */ + platformCorsSettingByApiIdExists?: boolean; + /** Filter by the object’s `roleName` field. */ + roleName?: StringFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; +} +/** An input for mutations affecting `PlatformApi` */ +export interface PlatformApiInput { + /** Anonymous role the API executes as */ + anonRole?: string; + /** Module-specific configuration for this API surface */ + config?: unknown; + createdAt?: string; + /** Database this API surface serves */ + dbname?: string; + id?: string; + /** Whether other scopes may see and route to this API surface */ + isPublished?: boolean; + /** Owner-local API surface name */ + name: string; + /** Authenticated role the API executes as */ + roleName?: string; + updatedAt?: string; +} +/** Represents an update to a `PlatformApi`. Fields that are set will be updated. */ +export interface PlatformApiPatch { + /** Anonymous role the API executes as */ + anonRole?: string; + /** Module-specific configuration for this API surface */ + config?: unknown; + createdAt?: string; + /** Database this API surface serves */ + dbname?: string; + id?: string; + /** Whether other scopes may see and route to this API surface */ + isPublished?: boolean; + /** Owner-local API surface name */ + name?: string; + /** Authenticated role the API executes as */ + roleName?: string; + updatedAt?: string; +} /** A filter to be used against `PlatformApiSchema` object types. All fields are combined with a logical ‘and.’ */ export interface PlatformApiSchemaFilter { /** Checks for all expressions in this list. */ and?: PlatformApiSchemaFilter[]; /** Filter by the object’s `api` relation. */ - api?: PlatformApisFilter; + api?: PlatformApiFilter; /** Filter by the object’s `apiId` field. */ apiId?: UUIDFilter; /** Filter by the object’s `createdAt` field. */ @@ -6200,7 +6770,7 @@ export interface PlatformApiSettingFilter { /** Checks for all expressions in this list. */ and?: PlatformApiSettingFilter[]; /** Filter by the object’s `api` relation. */ - api?: PlatformApisFilter; + api?: PlatformApiFilter; /** Filter by the object’s `apiId` field. */ apiId?: UUIDFilter; /** Filter by the object’s `createdAt` field. */ @@ -6266,131 +6836,56 @@ export interface PlatformApiSettingInput { /** Override: enable PostGIS spatial types (NULL = inherit from database_settings) */ enablePostgis?: boolean; /** Override: enable presigned URL upload flow (NULL = inherit from database_settings) */ - enablePresignedUploads?: boolean; - /** Override: enable realtime subscriptions (NULL = inherit from database_settings) */ - enableRealtime?: boolean; - /** Override: enable unified search (NULL = inherit from database_settings) */ - enableSearch?: boolean; - id?: string; - /** Extensible JSON for additional per-API settings that do not have dedicated columns */ - options?: unknown; - /** Override: GraphQL statement timeout in milliseconds (NULL = inherit from database_settings). Clamped by the plan cap at read time. */ - statementTimeoutMs?: string; - updatedAt?: string; -} -/** Represents an update to a `PlatformApiSetting`. Fields that are set will be updated. */ -export interface PlatformApiSettingPatch { - /** API surface these settings override for */ - apiId?: string; - createdAt?: string; - /** Override: enable aggregate queries (NULL = inherit from database_settings) */ - enableAggregates?: boolean; - /** Override: enable bulk mutations (NULL = inherit from database_settings) */ - enableBulk?: boolean; - /** Override: enable connection filter (NULL = inherit from database_settings) */ - enableConnectionFilter?: boolean; - /** Override: enable direct (multipart) file uploads (NULL = inherit from database_settings) */ - enableDirectUploads?: boolean; - /** Override: enable internationalization plugin (NULL = inherit from database_settings) */ - enableI18N?: boolean; - /** Override: enable LLM/AI integration features (NULL = inherit from database_settings) */ - enableLlm?: boolean; - /** Override: enable ltree hierarchical data type (NULL = inherit from database_settings) */ - enableLtree?: boolean; - /** Override: enable many-to-many relationships (NULL = inherit from database_settings) */ - enableManyToMany?: boolean; - /** Override: enable PostGIS spatial types (NULL = inherit from database_settings) */ - enablePostgis?: boolean; - /** Override: enable presigned URL upload flow (NULL = inherit from database_settings) */ - enablePresignedUploads?: boolean; - /** Override: enable realtime subscriptions (NULL = inherit from database_settings) */ - enableRealtime?: boolean; - /** Override: enable unified search (NULL = inherit from database_settings) */ - enableSearch?: boolean; - id?: string; - /** Extensible JSON for additional per-API settings that do not have dedicated columns */ - options?: unknown; - /** Override: GraphQL statement timeout in milliseconds (NULL = inherit from database_settings). Clamped by the plan cap at read time. */ - statementTimeoutMs?: string; - updatedAt?: string; -} -/** A filter to be used against `PlatformApis` object types. All fields are combined with a logical ‘and.’ */ -export interface PlatformApisFilter { - /** Checks for all expressions in this list. */ - and?: PlatformApisFilter[]; - /** Filter by the object’s `anonRole` field. */ - anonRole?: StringFilter; - /** Filter by the object’s `config` field. */ - config?: JSONFilter; - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; - /** Filter by the object’s `dbname` field. */ - dbname?: StringFilter; - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `isPublished` field. */ - isPublished?: BooleanFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Negates the expression. */ - not?: PlatformApisFilter; - /** Checks for any expressions in this list. */ - or?: PlatformApisFilter[]; - /** Filter by the object’s `platformApiSchemasByApiId` relation. */ - platformApiSchemasByApiId?: PlatformApisToManyPlatformApiSchemaFilter; - /** `platformApiSchemasByApiId` exist. */ - platformApiSchemasByApiIdExist?: boolean; - /** Filter by the object’s `platformApiSettingByApiId` relation. */ - platformApiSettingByApiId?: PlatformApiSettingFilter; - /** A related `platformApiSettingByApiId` exists. */ - platformApiSettingByApiIdExists?: boolean; - /** Filter by the object’s `platformCorsSettingByApiId` relation. */ - platformCorsSettingByApiId?: PlatformCorsSettingFilter; - /** A related `platformCorsSettingByApiId` exists. */ - platformCorsSettingByApiIdExists?: boolean; - /** Filter by the object’s `roleName` field. */ - roleName?: StringFilter; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; -} -/** An input for mutations affecting `PlatformApis` */ -export interface PlatformApisInput { - /** Anonymous role the API executes as */ - anonRole?: string; - /** Module-specific configuration for this API surface */ - config?: unknown; - createdAt?: string; - /** Database this API surface serves */ - dbname?: string; + enablePresignedUploads?: boolean; + /** Override: enable realtime subscriptions (NULL = inherit from database_settings) */ + enableRealtime?: boolean; + /** Override: enable unified search (NULL = inherit from database_settings) */ + enableSearch?: boolean; id?: string; - /** Whether other scopes may see and route to this API surface */ - isPublished?: boolean; - /** Owner-local API surface name */ - name: string; - /** Authenticated role the API executes as */ - roleName?: string; + /** Extensible JSON for additional per-API settings that do not have dedicated columns */ + options?: unknown; + /** Override: GraphQL statement timeout in milliseconds (NULL = inherit from database_settings). Clamped by the plan cap at read time. */ + statementTimeoutMs?: string; updatedAt?: string; } -/** Represents an update to a `PlatformApis`. Fields that are set will be updated. */ -export interface PlatformApisPatch { - /** Anonymous role the API executes as */ - anonRole?: string; - /** Module-specific configuration for this API surface */ - config?: unknown; +/** Represents an update to a `PlatformApiSetting`. Fields that are set will be updated. */ +export interface PlatformApiSettingPatch { + /** API surface these settings override for */ + apiId?: string; createdAt?: string; - /** Database this API surface serves */ - dbname?: string; + /** Override: enable aggregate queries (NULL = inherit from database_settings) */ + enableAggregates?: boolean; + /** Override: enable bulk mutations (NULL = inherit from database_settings) */ + enableBulk?: boolean; + /** Override: enable connection filter (NULL = inherit from database_settings) */ + enableConnectionFilter?: boolean; + /** Override: enable direct (multipart) file uploads (NULL = inherit from database_settings) */ + enableDirectUploads?: boolean; + /** Override: enable internationalization plugin (NULL = inherit from database_settings) */ + enableI18N?: boolean; + /** Override: enable LLM/AI integration features (NULL = inherit from database_settings) */ + enableLlm?: boolean; + /** Override: enable ltree hierarchical data type (NULL = inherit from database_settings) */ + enableLtree?: boolean; + /** Override: enable many-to-many relationships (NULL = inherit from database_settings) */ + enableManyToMany?: boolean; + /** Override: enable PostGIS spatial types (NULL = inherit from database_settings) */ + enablePostgis?: boolean; + /** Override: enable presigned URL upload flow (NULL = inherit from database_settings) */ + enablePresignedUploads?: boolean; + /** Override: enable realtime subscriptions (NULL = inherit from database_settings) */ + enableRealtime?: boolean; + /** Override: enable unified search (NULL = inherit from database_settings) */ + enableSearch?: boolean; id?: string; - /** Whether other scopes may see and route to this API surface */ - isPublished?: boolean; - /** Owner-local API surface name */ - name?: string; - /** Authenticated role the API executes as */ - roleName?: string; + /** Extensible JSON for additional per-API settings that do not have dedicated columns */ + options?: unknown; + /** Override: GraphQL statement timeout in milliseconds (NULL = inherit from database_settings). Clamped by the plan cap at read time. */ + statementTimeoutMs?: string; updatedAt?: string; } /** A filter to be used against many `PlatformApiSchema` object types. All fields are combined with a logical ‘and.’ */ -export interface PlatformApisToManyPlatformApiSchemaFilter { +export interface PlatformApiToManyPlatformApiSchemaFilter { /** Filters to entities where every related entity matches. */ every?: PlatformApiSchemaFilter; /** Filters to entities where no related entity matches. */ @@ -6405,7 +6900,7 @@ export interface PlatformCorsSettingFilter { /** Checks for all expressions in this list. */ and?: PlatformCorsSettingFilter[]; /** Filter by the object’s `api` relation. */ - api?: PlatformApisFilter; + api?: PlatformApiFilter; /** A related `api` exists. */ apiExists?: boolean; /** Filter by the object’s `apiId` field. */ @@ -6754,6 +7249,259 @@ export interface PlatformDomainsAssignSubdomainInput { label?: string; maxAttempts?: number; } +/** A filter to be used against `PlatformEmailIdentity` object types. All fields are combined with a logical ‘and.’ */ +export interface PlatformEmailIdentityFilter { + /** Checks for all expressions in this list. */ + and?: PlatformEmailIdentityFilter[]; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `fromAddress` field. */ + fromAddress?: StringFilter; + /** Filter by the object’s `fromName` field. */ + fromName?: StringFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `isActive` field. */ + isActive?: BooleanFilter; + /** Filter by the object’s `isDefault` field. */ + isDefault?: BooleanFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Negates the expression. */ + not?: PlatformEmailIdentityFilter; + /** Checks for any expressions in this list. */ + or?: PlatformEmailIdentityFilter[]; + /** Filter by the object’s `platformEmailSiteIdentitiesByEmailIdentityId` relation. */ + platformEmailSiteIdentitiesByEmailIdentityId?: PlatformEmailIdentityToManyPlatformEmailSiteIdentityFilter; + /** `platformEmailSiteIdentitiesByEmailIdentityId` exist. */ + platformEmailSiteIdentitiesByEmailIdentityIdExist?: boolean; + /** Filter by the object’s `providerAccount` relation. */ + providerAccount?: PlatformEmailProviderAccountFilter; + /** A related `providerAccount` exists. */ + providerAccountExists?: boolean; + /** Filter by the object’s `providerAccountId` field. */ + providerAccountId?: UUIDFilter; + /** Filter by the object’s `replyToAddress` field. */ + replyToAddress?: StringFilter; + /** Filter by the object’s `supportAddress` field. */ + supportAddress?: StringFilter; + /** Filter by the object’s `transportMode` field. */ + transportMode?: StringFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; +} +/** An input for mutations affecting `PlatformEmailIdentity` */ +export interface PlatformEmailIdentityInput { + createdAt?: string; + /** Envelope/header From address, lower-case. Must be accepted by the sending account at the provider. */ + fromAddress: string; + /** Display name shown beside the from address */ + fromName?: string; + id?: string; + /** Whether this identity may be resolved for a send */ + isActive?: boolean; + /** The scope default identity, used when no site binding resolves. At most one per scope key. */ + isDefault?: boolean; + /** Operator-facing name for this identity (e.g. transactional, support) */ + name: string; + /** Same-scope provider account this identity sends through. Required for transport_mode = own, NULL for platform_shared. */ + providerAccountId?: string; + /** Reply-To address when replies should not go to the from address */ + replyToAddress?: string; + /** Support address rendered in message bodies and footers */ + supportAddress?: string; + /** own = send through provider_account_id in this scope; platform_shared = send through the platform installation's shared account, an explicit recorded choice and never an implicit fallback */ + transportMode?: string; + updatedAt?: string; +} +/** Represents an update to a `PlatformEmailIdentity`. Fields that are set will be updated. */ +export interface PlatformEmailIdentityPatch { + createdAt?: string; + /** Envelope/header From address, lower-case. Must be accepted by the sending account at the provider. */ + fromAddress?: string; + /** Display name shown beside the from address */ + fromName?: string; + id?: string; + /** Whether this identity may be resolved for a send */ + isActive?: boolean; + /** The scope default identity, used when no site binding resolves. At most one per scope key. */ + isDefault?: boolean; + /** Operator-facing name for this identity (e.g. transactional, support) */ + name?: string; + /** Same-scope provider account this identity sends through. Required for transport_mode = own, NULL for platform_shared. */ + providerAccountId?: string; + /** Reply-To address when replies should not go to the from address */ + replyToAddress?: string; + /** Support address rendered in message bodies and footers */ + supportAddress?: string; + /** own = send through provider_account_id in this scope; platform_shared = send through the platform installation's shared account, an explicit recorded choice and never an implicit fallback */ + transportMode?: string; + updatedAt?: string; +} +/** A filter to be used against many `PlatformEmailSiteIdentity` object types. All fields are combined with a logical ‘and.’ */ +export interface PlatformEmailIdentityToManyPlatformEmailSiteIdentityFilter { + /** Filters to entities where every related entity matches. */ + every?: PlatformEmailSiteIdentityFilter; + /** Filters to entities where no related entity matches. */ + none?: PlatformEmailSiteIdentityFilter; + /** Filters to entities where at least one related entity matches. */ + some?: PlatformEmailSiteIdentityFilter; +} +/** A filter to be used against `PlatformEmailProviderAccount` object types. All fields are combined with a logical ‘and.’ */ +export interface PlatformEmailProviderAccountFilter { + /** Checks for all expressions in this list. */ + and?: PlatformEmailProviderAccountFilter[]; + /** Filter by the object’s `apiBaseUrl` field. */ + apiBaseUrl?: StringFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `credentialsSecretName` field. */ + credentialsSecretName?: StringFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `isActive` field. */ + isActive?: BooleanFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Negates the expression. */ + not?: PlatformEmailProviderAccountFilter; + /** Checks for any expressions in this list. */ + or?: PlatformEmailProviderAccountFilter[]; + /** Filter by the object’s `platformEmailIdentitiesByProviderAccountId` relation. */ + platformEmailIdentitiesByProviderAccountId?: PlatformEmailProviderAccountToManyPlatformEmailIdentityFilter; + /** `platformEmailIdentitiesByProviderAccountId` exist. */ + platformEmailIdentitiesByProviderAccountIdExist?: boolean; + /** Filter by the object’s `provider` field. */ + provider?: StringFilter; + /** Filter by the object’s `providerAccountName` field. */ + providerAccountName?: StringFilter; + /** Filter by the object’s `region` field. */ + region?: StringFilter; + /** Filter by the object’s `smtpHost` field. */ + smtpHost?: StringFilter; + /** Filter by the object’s `smtpPort` field. */ + smtpPort?: IntFilter; + /** Filter by the object’s `smtpSecure` field. */ + smtpSecure?: BooleanFilter; + /** Filter by the object’s `smtpUser` field. */ + smtpUser?: StringFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `webhookSigningSecretName` field. */ + webhookSigningSecretName?: StringFilter; +} +/** An input for mutations affecting `PlatformEmailProviderAccount` */ +export interface PlatformEmailProviderAccountInput { + /** Provider API base URL when it is not the provider default (e.g. Mailgun EU) */ + apiBaseUrl?: string; + createdAt?: string; + /** Name of the secret holding this account's API key or SMTP password. The value is resolved from the secret store at send time (realm = this row's id) and is never stored here. */ + credentialsSecretName: string; + id?: string; + /** Whether identities may send through this account. Disabling one row stops every identity that references it. */ + isActive?: boolean; + /** Operator-facing name for this account (e.g. transactional, marketing) */ + name: string; + /** integration_providers.slug of the provider this account is at (mailgun, ses, postmark, smtp), matched by string not by FK */ + provider: string; + /** Account identifier at the provider — the Mailgun sending domain, the SES verified identity, the Postmark server name */ + providerAccountName?: string; + /** Provider region for region-addressed providers (e.g. SES us-east-1) */ + region?: string; + /** SMTP host (provider = smtp, or a provider addressed over SMTP) */ + smtpHost?: string; + /** SMTP port */ + smtpPort?: number; + /** Whether the SMTP connection uses implicit TLS */ + smtpSecure?: boolean; + /** SMTP username; the password is a secret, addressed by credentials_secret_name */ + smtpUser?: string; + updatedAt?: string; + /** Name of the secret used to verify this provider's delivery/bounce webhooks. Name only; the value stays in the secret store. */ + webhookSigningSecretName?: string; +} +/** Represents an update to a `PlatformEmailProviderAccount`. Fields that are set will be updated. */ +export interface PlatformEmailProviderAccountPatch { + /** Provider API base URL when it is not the provider default (e.g. Mailgun EU) */ + apiBaseUrl?: string; + createdAt?: string; + /** Name of the secret holding this account's API key or SMTP password. The value is resolved from the secret store at send time (realm = this row's id) and is never stored here. */ + credentialsSecretName?: string; + id?: string; + /** Whether identities may send through this account. Disabling one row stops every identity that references it. */ + isActive?: boolean; + /** Operator-facing name for this account (e.g. transactional, marketing) */ + name?: string; + /** integration_providers.slug of the provider this account is at (mailgun, ses, postmark, smtp), matched by string not by FK */ + provider?: string; + /** Account identifier at the provider — the Mailgun sending domain, the SES verified identity, the Postmark server name */ + providerAccountName?: string; + /** Provider region for region-addressed providers (e.g. SES us-east-1) */ + region?: string; + /** SMTP host (provider = smtp, or a provider addressed over SMTP) */ + smtpHost?: string; + /** SMTP port */ + smtpPort?: number; + /** Whether the SMTP connection uses implicit TLS */ + smtpSecure?: boolean; + /** SMTP username; the password is a secret, addressed by credentials_secret_name */ + smtpUser?: string; + updatedAt?: string; + /** Name of the secret used to verify this provider's delivery/bounce webhooks. Name only; the value stays in the secret store. */ + webhookSigningSecretName?: string; +} +/** A filter to be used against many `PlatformEmailIdentity` object types. All fields are combined with a logical ‘and.’ */ +export interface PlatformEmailProviderAccountToManyPlatformEmailIdentityFilter { + /** Filters to entities where every related entity matches. */ + every?: PlatformEmailIdentityFilter; + /** Filters to entities where no related entity matches. */ + none?: PlatformEmailIdentityFilter; + /** Filters to entities where at least one related entity matches. */ + some?: PlatformEmailIdentityFilter; +} +/** A filter to be used against `PlatformEmailSiteIdentity` object types. All fields are combined with a logical ‘and.’ */ +export interface PlatformEmailSiteIdentityFilter { + /** Checks for all expressions in this list. */ + and?: PlatformEmailSiteIdentityFilter[]; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `emailIdentity` relation. */ + emailIdentity?: PlatformEmailIdentityFilter; + /** Filter by the object’s `emailIdentityId` field. */ + emailIdentityId?: UUIDFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Negates the expression. */ + not?: PlatformEmailSiteIdentityFilter; + /** Checks for any expressions in this list. */ + or?: PlatformEmailSiteIdentityFilter[]; + /** Filter by the object’s `site` relation. */ + site?: PlatformSiteFilter; + /** Filter by the object’s `siteId` field. */ + siteId?: UUIDFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; +} +/** An input for mutations affecting `PlatformEmailSiteIdentity` */ +export interface PlatformEmailSiteIdentityInput { + createdAt?: string; + /** Identity this site sends as */ + emailIdentityId: string; + id?: string; + /** Site whose mail is sent as the bound identity */ + siteId: string; + updatedAt?: string; +} +/** Represents an update to a `PlatformEmailSiteIdentity`. Fields that are set will be updated. */ +export interface PlatformEmailSiteIdentityPatch { + createdAt?: string; + /** Identity this site sends as */ + emailIdentityId?: string; + id?: string; + /** Site whose mail is sent as the bound identity */ + siteId?: string; + updatedAt?: string; +} /** A filter to be used against `PlatformManagedDomain` object types. All fields are combined with a logical ‘and.’ */ export interface PlatformManagedDomainFilter { /** Filter by the object’s `allowPublicUsage` field. */ @@ -7141,6 +7889,10 @@ export interface PlatformSiteFilter { not?: PlatformSiteFilter; /** Checks for any expressions in this list. */ or?: PlatformSiteFilter[]; + /** Filter by the object’s `platformEmailSiteIdentityBySiteId` relation. */ + platformEmailSiteIdentityBySiteId?: PlatformEmailSiteIdentityFilter; + /** A related `platformEmailSiteIdentityBySiteId` exists. */ + platformEmailSiteIdentityBySiteIdExists?: boolean; /** Filter by the object’s `platformPagesBySiteId` relation. */ platformPagesBySiteId?: PlatformSiteToManyPlatformPageFilter; /** `platformPagesBySiteId` exist. */ @@ -8634,6 +9386,10 @@ export interface SiteFilter { databaseId?: UUIDFilter; /** Filter by the object’s `description` field. */ description?: StringFilter; + /** Filter by the object’s `emailSiteIdentity` relation. */ + emailSiteIdentity?: EmailSiteIdentityFilter; + /** A related `emailSiteIdentity` exists. */ + emailSiteIdentityExists?: boolean; /** Filter by the object’s `id` field. */ id?: UUIDFilter; /** Filter by the object’s `installationId` field. */ @@ -9944,6 +10700,12 @@ export interface UniqueConstraintToManyUniqueConstraintBehaviorFilter { /** Filters to entities where at least one related entity matches. */ some?: UniqueConstraintBehaviorFilter; } +export interface UpdateApiInput { + /** An object where the defined keys will be set on the `Api` being updated. */ + apiPatch: ApiPatch; + clientMutationId?: string; + id: string; +} export interface UpdateApiSchemaInput { /** An object where the defined keys will be set on the `ApiSchema` being updated. */ apiSchemaPatch: ApiSchemaPatch; @@ -9956,12 +10718,6 @@ export interface UpdateApiSettingInput { clientMutationId?: string; id: string; } -export interface UpdateApisInput { - /** An object where the defined keys will be set on the `Apis` being updated. */ - apisPatch: ApisPatch; - clientMutationId?: string; - id: string; -} export interface UpdateCheckConstraintInput { /** An object where the defined keys will be set on the `CheckConstraint` being updated. */ checkConstraintPatch: CheckConstraintPatch; @@ -10034,6 +10790,24 @@ export interface UpdateDomainVerificationInput { domainVerificationPatch: DomainVerificationPatch; id: string; } +export interface UpdateEmailIdentityInput { + clientMutationId?: string; + /** An object where the defined keys will be set on the `EmailIdentity` being updated. */ + emailIdentityPatch: EmailIdentityPatch; + id: string; +} +export interface UpdateEmailProviderAccountInput { + clientMutationId?: string; + /** An object where the defined keys will be set on the `EmailProviderAccount` being updated. */ + emailProviderAccountPatch: EmailProviderAccountPatch; + id: string; +} +export interface UpdateEmailSiteIdentityInput { + clientMutationId?: string; + /** An object where the defined keys will be set on the `EmailSiteIdentity` being updated. */ + emailSiteIdentityPatch: EmailSiteIdentityPatch; + id: string; +} export interface UpdateEmbeddingChunkInput { clientMutationId?: string; /** An object where the defined keys will be set on the `EmbeddingChunk` being updated. */ @@ -10131,6 +10905,12 @@ export interface UpdatePartitionInput { /** An object where the defined keys will be set on the `Partition` being updated. */ partitionPatch: PartitionPatch; } +export interface UpdatePlatformApiInput { + clientMutationId?: string; + id: string; + /** An object where the defined keys will be set on the `PlatformApi` being updated. */ + platformApiPatch: PlatformApiPatch; +} export interface UpdatePlatformApiSchemaInput { clientMutationId?: string; id: string; @@ -10143,12 +10923,6 @@ export interface UpdatePlatformApiSettingInput { /** An object where the defined keys will be set on the `PlatformApiSetting` being updated. */ platformApiSettingPatch: PlatformApiSettingPatch; } -export interface UpdatePlatformApisInput { - clientMutationId?: string; - id: string; - /** An object where the defined keys will be set on the `PlatformApis` being updated. */ - platformApisPatch: PlatformApisPatch; -} export interface UpdatePlatformCorsSettingInput { clientMutationId?: string; id: string; @@ -10173,6 +10947,24 @@ export interface UpdatePlatformDomainVerificationInput { /** An object where the defined keys will be set on the `PlatformDomainVerification` being updated. */ platformDomainVerificationPatch: PlatformDomainVerificationPatch; } +export interface UpdatePlatformEmailIdentityInput { + clientMutationId?: string; + id: string; + /** An object where the defined keys will be set on the `PlatformEmailIdentity` being updated. */ + platformEmailIdentityPatch: PlatformEmailIdentityPatch; +} +export interface UpdatePlatformEmailProviderAccountInput { + clientMutationId?: string; + id: string; + /** An object where the defined keys will be set on the `PlatformEmailProviderAccount` being updated. */ + platformEmailProviderAccountPatch: PlatformEmailProviderAccountPatch; +} +export interface UpdatePlatformEmailSiteIdentityInput { + clientMutationId?: string; + id: string; + /** An object where the defined keys will be set on the `PlatformEmailSiteIdentity` being updated. */ + platformEmailSiteIdentityPatch: PlatformEmailSiteIdentityPatch; +} export interface UpdatePlatformManagedDomainInput { clientMutationId?: string; id: string; @@ -10922,10 +11714,10 @@ export interface ApiSettingConnection { pageInfo: PageInfo; totalCount: number; } -/** A connection to a list of `Apis` values. */ -export interface ApisConnection { - edges: ApisEdge[]; - nodes: Apis[]; +/** A connection to a list of `Api` values. */ +export interface ApiConnection { + edges: ApiEdge[]; + nodes: Api[]; pageInfo: PageInfo; totalCount: number; } @@ -11020,6 +11812,27 @@ export interface DomainConnection { pageInfo: PageInfo; totalCount: number; } +/** A connection to a list of `EmailIdentity` values. */ +export interface EmailIdentityConnection { + edges: EmailIdentityEdge[]; + nodes: EmailIdentity[]; + pageInfo: PageInfo; + totalCount: number; +} +/** A connection to a list of `EmailProviderAccount` values. */ +export interface EmailProviderAccountConnection { + edges: EmailProviderAccountEdge[]; + nodes: EmailProviderAccount[]; + pageInfo: PageInfo; + totalCount: number; +} +/** A connection to a list of `EmailSiteIdentity` values. */ +export interface EmailSiteIdentityConnection { + edges: EmailSiteIdentityEdge[]; + nodes: EmailSiteIdentity[]; + pageInfo: PageInfo; + totalCount: number; +} /** A connection to a list of `EmbeddingChunk` values. */ export interface EmbeddingChunkConnection { edges: EmbeddingChunkEdge[]; @@ -11146,10 +11959,10 @@ export interface PlatformApiSettingConnection { pageInfo: PageInfo; totalCount: number; } -/** A connection to a list of `PlatformApis` values. */ -export interface PlatformApisConnection { - edges: PlatformApisEdge[]; - nodes: PlatformApis[]; +/** A connection to a list of `PlatformApi` values. */ +export interface PlatformApiConnection { + edges: PlatformApiEdge[]; + nodes: PlatformApi[]; pageInfo: PageInfo; totalCount: number; } @@ -11181,6 +11994,27 @@ export interface PlatformDomainConnection { pageInfo: PageInfo; totalCount: number; } +/** A connection to a list of `PlatformEmailIdentity` values. */ +export interface PlatformEmailIdentityConnection { + edges: PlatformEmailIdentityEdge[]; + nodes: PlatformEmailIdentity[]; + pageInfo: PageInfo; + totalCount: number; +} +/** A connection to a list of `PlatformEmailProviderAccount` values. */ +export interface PlatformEmailProviderAccountConnection { + edges: PlatformEmailProviderAccountEdge[]; + nodes: PlatformEmailProviderAccount[]; + pageInfo: PageInfo; + totalCount: number; +} +/** A connection to a list of `PlatformEmailSiteIdentity` values. */ +export interface PlatformEmailSiteIdentityConnection { + edges: PlatformEmailSiteIdentityEdge[]; + nodes: PlatformEmailSiteIdentity[]; + pageInfo: PageInfo; + totalCount: number; +} /** A connection to a list of `PlatformManagedDomain` values. */ export interface PlatformManagedDomainConnection { edges: PlatformManagedDomainEdge[]; @@ -11507,6 +12341,12 @@ export interface CancelDatabaseTransferPayload { clientMutationId?: string | null; result?: boolean | null; } +export interface CreateApiPayload { + /** The `Api` that was created by this mutation. */ + api?: Api | null; + apiEdge?: ApiEdge | null; + clientMutationId?: string | null; +} export interface CreateApiSchemaPayload { /** The `ApiSchema` that was created by this mutation. */ apiSchema?: ApiSchema | null; @@ -11519,12 +12359,6 @@ export interface CreateApiSettingPayload { apiSettingEdge?: ApiSettingEdge | null; clientMutationId?: string | null; } -export interface CreateApisPayload { - /** The `Apis` that was created by this mutation. */ - apis?: Apis | null; - apisEdge?: ApisEdge | null; - clientMutationId?: string | null; -} export interface CreateCheckConstraintPayload { /** The `CheckConstraint` that was created by this mutation. */ checkConstraint?: CheckConstraint | null; @@ -11597,6 +12431,24 @@ export interface CreateDomainVerificationPayload { domainVerification?: DomainVerification | null; domainVerificationEdge?: DomainVerificationEdge | null; } +export interface CreateEmailIdentityPayload { + clientMutationId?: string | null; + /** The `EmailIdentity` that was created by this mutation. */ + emailIdentity?: EmailIdentity | null; + emailIdentityEdge?: EmailIdentityEdge | null; +} +export interface CreateEmailProviderAccountPayload { + clientMutationId?: string | null; + /** The `EmailProviderAccount` that was created by this mutation. */ + emailProviderAccount?: EmailProviderAccount | null; + emailProviderAccountEdge?: EmailProviderAccountEdge | null; +} +export interface CreateEmailSiteIdentityPayload { + clientMutationId?: string | null; + /** The `EmailSiteIdentity` that was created by this mutation. */ + emailSiteIdentity?: EmailSiteIdentity | null; + emailSiteIdentityEdge?: EmailSiteIdentityEdge | null; +} export interface CreateEmbeddingChunkPayload { clientMutationId?: string | null; /** The `EmbeddingChunk` that was created by this mutation. */ @@ -11693,6 +12545,12 @@ export interface CreatePartitionPayload { partition?: Partition | null; partitionEdge?: PartitionEdge | null; } +export interface CreatePlatformApiPayload { + clientMutationId?: string | null; + /** The `PlatformApi` that was created by this mutation. */ + platformApi?: PlatformApi | null; + platformApiEdge?: PlatformApiEdge | null; +} export interface CreatePlatformApiSchemaPayload { clientMutationId?: string | null; /** The `PlatformApiSchema` that was created by this mutation. */ @@ -11705,12 +12563,6 @@ export interface CreatePlatformApiSettingPayload { platformApiSetting?: PlatformApiSetting | null; platformApiSettingEdge?: PlatformApiSettingEdge | null; } -export interface CreatePlatformApisPayload { - clientMutationId?: string | null; - /** The `PlatformApis` that was created by this mutation. */ - platformApis?: PlatformApis | null; - platformApisEdge?: PlatformApisEdge | null; -} export interface CreatePlatformCorsSettingPayload { clientMutationId?: string | null; /** The `PlatformCorsSetting` that was created by this mutation. */ @@ -11735,6 +12587,24 @@ export interface CreatePlatformDomainVerificationPayload { platformDomainVerification?: PlatformDomainVerification | null; platformDomainVerificationEdge?: PlatformDomainVerificationEdge | null; } +export interface CreatePlatformEmailIdentityPayload { + clientMutationId?: string | null; + /** The `PlatformEmailIdentity` that was created by this mutation. */ + platformEmailIdentity?: PlatformEmailIdentity | null; + platformEmailIdentityEdge?: PlatformEmailIdentityEdge | null; +} +export interface CreatePlatformEmailProviderAccountPayload { + clientMutationId?: string | null; + /** The `PlatformEmailProviderAccount` that was created by this mutation. */ + platformEmailProviderAccount?: PlatformEmailProviderAccount | null; + platformEmailProviderAccountEdge?: PlatformEmailProviderAccountEdge | null; +} +export interface CreatePlatformEmailSiteIdentityPayload { + clientMutationId?: string | null; + /** The `PlatformEmailSiteIdentity` that was created by this mutation. */ + platformEmailSiteIdentity?: PlatformEmailSiteIdentity | null; + platformEmailSiteIdentityEdge?: PlatformEmailSiteIdentityEdge | null; +} export interface CreatePlatformManagedDomainPayload { clientMutationId?: string | null; /** The `PlatformManagedDomain` that was created by this mutation. */ @@ -11975,6 +12845,12 @@ export interface CreateWebauthnSettingPayload { webauthnSetting?: WebauthnSetting | null; webauthnSettingEdge?: WebauthnSettingEdge | null; } +export interface DeleteApiPayload { + /** The `Api` that was deleted by this mutation. */ + api?: Api | null; + apiEdge?: ApiEdge | null; + clientMutationId?: string | null; +} export interface DeleteApiSchemaPayload { /** The `ApiSchema` that was deleted by this mutation. */ apiSchema?: ApiSchema | null; @@ -11987,12 +12863,6 @@ export interface DeleteApiSettingPayload { apiSettingEdge?: ApiSettingEdge | null; clientMutationId?: string | null; } -export interface DeleteApisPayload { - /** The `Apis` that was deleted by this mutation. */ - apis?: Apis | null; - apisEdge?: ApisEdge | null; - clientMutationId?: string | null; -} export interface DeleteCheckConstraintPayload { /** The `CheckConstraint` that was deleted by this mutation. */ checkConstraint?: CheckConstraint | null; @@ -12065,6 +12935,24 @@ export interface DeleteDomainVerificationPayload { domainVerification?: DomainVerification | null; domainVerificationEdge?: DomainVerificationEdge | null; } +export interface DeleteEmailIdentityPayload { + clientMutationId?: string | null; + /** The `EmailIdentity` that was deleted by this mutation. */ + emailIdentity?: EmailIdentity | null; + emailIdentityEdge?: EmailIdentityEdge | null; +} +export interface DeleteEmailProviderAccountPayload { + clientMutationId?: string | null; + /** The `EmailProviderAccount` that was deleted by this mutation. */ + emailProviderAccount?: EmailProviderAccount | null; + emailProviderAccountEdge?: EmailProviderAccountEdge | null; +} +export interface DeleteEmailSiteIdentityPayload { + clientMutationId?: string | null; + /** The `EmailSiteIdentity` that was deleted by this mutation. */ + emailSiteIdentity?: EmailSiteIdentity | null; + emailSiteIdentityEdge?: EmailSiteIdentityEdge | null; +} export interface DeleteEmbeddingChunkPayload { clientMutationId?: string | null; /** The `EmbeddingChunk` that was deleted by this mutation. */ @@ -12161,6 +13049,12 @@ export interface DeletePartitionPayload { partition?: Partition | null; partitionEdge?: PartitionEdge | null; } +export interface DeletePlatformApiPayload { + clientMutationId?: string | null; + /** The `PlatformApi` that was deleted by this mutation. */ + platformApi?: PlatformApi | null; + platformApiEdge?: PlatformApiEdge | null; +} export interface DeletePlatformApiSchemaPayload { clientMutationId?: string | null; /** The `PlatformApiSchema` that was deleted by this mutation. */ @@ -12173,12 +13067,6 @@ export interface DeletePlatformApiSettingPayload { platformApiSetting?: PlatformApiSetting | null; platformApiSettingEdge?: PlatformApiSettingEdge | null; } -export interface DeletePlatformApisPayload { - clientMutationId?: string | null; - /** The `PlatformApis` that was deleted by this mutation. */ - platformApis?: PlatformApis | null; - platformApisEdge?: PlatformApisEdge | null; -} export interface DeletePlatformCorsSettingPayload { clientMutationId?: string | null; /** The `PlatformCorsSetting` that was deleted by this mutation. */ @@ -12203,6 +13091,24 @@ export interface DeletePlatformDomainVerificationPayload { platformDomainVerification?: PlatformDomainVerification | null; platformDomainVerificationEdge?: PlatformDomainVerificationEdge | null; } +export interface DeletePlatformEmailIdentityPayload { + clientMutationId?: string | null; + /** The `PlatformEmailIdentity` that was deleted by this mutation. */ + platformEmailIdentity?: PlatformEmailIdentity | null; + platformEmailIdentityEdge?: PlatformEmailIdentityEdge | null; +} +export interface DeletePlatformEmailProviderAccountPayload { + clientMutationId?: string | null; + /** The `PlatformEmailProviderAccount` that was deleted by this mutation. */ + platformEmailProviderAccount?: PlatformEmailProviderAccount | null; + platformEmailProviderAccountEdge?: PlatformEmailProviderAccountEdge | null; +} +export interface DeletePlatformEmailSiteIdentityPayload { + clientMutationId?: string | null; + /** The `PlatformEmailSiteIdentity` that was deleted by this mutation. */ + platformEmailSiteIdentity?: PlatformEmailSiteIdentity | null; + platformEmailSiteIdentityEdge?: PlatformEmailSiteIdentityEdge | null; +} export interface DeletePlatformManagedDomainPayload { clientMutationId?: string | null; /** The `PlatformManagedDomain` that was deleted by this mutation. */ @@ -12486,6 +13392,12 @@ export interface SitesProvisionStaticSitePayload { clientMutationId?: string | null; result?: PlatformRoute | null; } +export interface UpdateApiPayload { + /** The `Api` that was updated by this mutation. */ + api?: Api | null; + apiEdge?: ApiEdge | null; + clientMutationId?: string | null; +} export interface UpdateApiSchemaPayload { /** The `ApiSchema` that was updated by this mutation. */ apiSchema?: ApiSchema | null; @@ -12498,12 +13410,6 @@ export interface UpdateApiSettingPayload { apiSettingEdge?: ApiSettingEdge | null; clientMutationId?: string | null; } -export interface UpdateApisPayload { - /** The `Apis` that was updated by this mutation. */ - apis?: Apis | null; - apisEdge?: ApisEdge | null; - clientMutationId?: string | null; -} export interface UpdateCheckConstraintPayload { /** The `CheckConstraint` that was updated by this mutation. */ checkConstraint?: CheckConstraint | null; @@ -12576,6 +13482,24 @@ export interface UpdateDomainVerificationPayload { domainVerification?: DomainVerification | null; domainVerificationEdge?: DomainVerificationEdge | null; } +export interface UpdateEmailIdentityPayload { + clientMutationId?: string | null; + /** The `EmailIdentity` that was updated by this mutation. */ + emailIdentity?: EmailIdentity | null; + emailIdentityEdge?: EmailIdentityEdge | null; +} +export interface UpdateEmailProviderAccountPayload { + clientMutationId?: string | null; + /** The `EmailProviderAccount` that was updated by this mutation. */ + emailProviderAccount?: EmailProviderAccount | null; + emailProviderAccountEdge?: EmailProviderAccountEdge | null; +} +export interface UpdateEmailSiteIdentityPayload { + clientMutationId?: string | null; + /** The `EmailSiteIdentity` that was updated by this mutation. */ + emailSiteIdentity?: EmailSiteIdentity | null; + emailSiteIdentityEdge?: EmailSiteIdentityEdge | null; +} export interface UpdateEmbeddingChunkPayload { clientMutationId?: string | null; /** The `EmbeddingChunk` that was updated by this mutation. */ @@ -12672,6 +13596,12 @@ export interface UpdatePartitionPayload { partition?: Partition | null; partitionEdge?: PartitionEdge | null; } +export interface UpdatePlatformApiPayload { + clientMutationId?: string | null; + /** The `PlatformApi` that was updated by this mutation. */ + platformApi?: PlatformApi | null; + platformApiEdge?: PlatformApiEdge | null; +} export interface UpdatePlatformApiSchemaPayload { clientMutationId?: string | null; /** The `PlatformApiSchema` that was updated by this mutation. */ @@ -12684,12 +13614,6 @@ export interface UpdatePlatformApiSettingPayload { platformApiSetting?: PlatformApiSetting | null; platformApiSettingEdge?: PlatformApiSettingEdge | null; } -export interface UpdatePlatformApisPayload { - clientMutationId?: string | null; - /** The `PlatformApis` that was updated by this mutation. */ - platformApis?: PlatformApis | null; - platformApisEdge?: PlatformApisEdge | null; -} export interface UpdatePlatformCorsSettingPayload { clientMutationId?: string | null; /** The `PlatformCorsSetting` that was updated by this mutation. */ @@ -12714,6 +13638,24 @@ export interface UpdatePlatformDomainVerificationPayload { platformDomainVerification?: PlatformDomainVerification | null; platformDomainVerificationEdge?: PlatformDomainVerificationEdge | null; } +export interface UpdatePlatformEmailIdentityPayload { + clientMutationId?: string | null; + /** The `PlatformEmailIdentity` that was updated by this mutation. */ + platformEmailIdentity?: PlatformEmailIdentity | null; + platformEmailIdentityEdge?: PlatformEmailIdentityEdge | null; +} +export interface UpdatePlatformEmailProviderAccountPayload { + clientMutationId?: string | null; + /** The `PlatformEmailProviderAccount` that was updated by this mutation. */ + platformEmailProviderAccount?: PlatformEmailProviderAccount | null; + platformEmailProviderAccountEdge?: PlatformEmailProviderAccountEdge | null; +} +export interface UpdatePlatformEmailSiteIdentityPayload { + clientMutationId?: string | null; + /** The `PlatformEmailSiteIdentity` that was updated by this mutation. */ + platformEmailSiteIdentity?: PlatformEmailSiteIdentity | null; + platformEmailSiteIdentityEdge?: PlatformEmailSiteIdentityEdge | null; +} export interface UpdatePlatformManagedDomainPayload { clientMutationId?: string | null; /** The `PlatformManagedDomain` that was updated by this mutation. */ @@ -13004,11 +13946,11 @@ export interface ApiSettingEdge { /** The `ApiSetting` at the end of the edge. */ node?: ApiSetting | null; } -/** A `Apis` edge in the connection. */ -export interface ApisEdge { +/** A `Api` edge in the connection. */ +export interface ApiEdge { cursor?: string | null; - /** The `Apis` at the end of the edge. */ - node?: Apis | null; + /** The `Api` at the end of the edge. */ + node?: Api | null; } /** A `AstMigration` edge in the connection. */ export interface AstMigrationEdge { @@ -13088,6 +14030,24 @@ export interface DomainEdge { /** The `Domain` at the end of the edge. */ node?: Domain | null; } +/** A `EmailIdentity` edge in the connection. */ +export interface EmailIdentityEdge { + cursor?: string | null; + /** The `EmailIdentity` at the end of the edge. */ + node?: EmailIdentity | null; +} +/** A `EmailProviderAccount` edge in the connection. */ +export interface EmailProviderAccountEdge { + cursor?: string | null; + /** The `EmailProviderAccount` at the end of the edge. */ + node?: EmailProviderAccount | null; +} +/** A `EmailSiteIdentity` edge in the connection. */ +export interface EmailSiteIdentityEdge { + cursor?: string | null; + /** The `EmailSiteIdentity` at the end of the edge. */ + node?: EmailSiteIdentity | null; +} /** A `EmbeddingChunk` edge in the connection. */ export interface EmbeddingChunkEdge { cursor?: string | null; @@ -13196,11 +14156,11 @@ export interface PlatformApiSettingEdge { /** The `PlatformApiSetting` at the end of the edge. */ node?: PlatformApiSetting | null; } -/** A `PlatformApis` edge in the connection. */ -export interface PlatformApisEdge { +/** A `PlatformApi` edge in the connection. */ +export interface PlatformApiEdge { cursor?: string | null; - /** The `PlatformApis` at the end of the edge. */ - node?: PlatformApis | null; + /** The `PlatformApi` at the end of the edge. */ + node?: PlatformApi | null; } /** A `PlatformCorsSetting` edge in the connection. */ export interface PlatformCorsSettingEdge { @@ -13226,6 +14186,24 @@ export interface PlatformDomainEdge { /** The `PlatformDomain` at the end of the edge. */ node?: PlatformDomain | null; } +/** A `PlatformEmailIdentity` edge in the connection. */ +export interface PlatformEmailIdentityEdge { + cursor?: string | null; + /** The `PlatformEmailIdentity` at the end of the edge. */ + node?: PlatformEmailIdentity | null; +} +/** A `PlatformEmailProviderAccount` edge in the connection. */ +export interface PlatformEmailProviderAccountEdge { + cursor?: string | null; + /** The `PlatformEmailProviderAccount` at the end of the edge. */ + node?: PlatformEmailProviderAccount | null; +} +/** A `PlatformEmailSiteIdentity` edge in the connection. */ +export interface PlatformEmailSiteIdentityEdge { + cursor?: string | null; + /** The `PlatformEmailSiteIdentity` at the end of the edge. */ + node?: PlatformEmailSiteIdentity | null; +} /** A `PlatformManagedDomain` edge in the connection. */ export interface PlatformManagedDomainEdge { cursor?: string | null; @@ -13522,7 +14500,7 @@ export interface DatabaseProvisionModule { /** Uniform billing anchor: when the request was fulfilled with a usable database (cold provision completion or warm pool claim). Platform absorbs all provisioning compute before this point */ fulfilledAt?: string | null; id: string; - /** JSONB array of modules to install. Each element is either a string ("users_module") or a [name, options] tuple (["permissions_module", {"scope": "app"}]) */ + /** JSONB array of modules to install. Each element is either a string ("users_module") or a [name, options] tuple (["capabilities_module", {"scope": "app"}]) */ modules: unknown; /** Additional configuration options for provisioning */ options: unknown; diff --git a/sdk/constructive-react/src/api/types.ts b/sdk/constructive-react/src/api/types.ts index 00bdabb02a..ad4a08526c 100644 --- a/sdk/constructive-react/src/api/types.ts +++ b/sdk/constructive-react/src/api/types.ts @@ -5,6 +5,18 @@ */ import type { ApiExposureLevel, ObjectCategory } from './schema-types'; export type ConstructiveInternalTypeImage = unknown; +export interface Api { + anonRole: string | null; + config: unknown | null; + createdAt: string | null; + databaseId: string | null; + dbname: string | null; + id: string | null; + isPublished: boolean | null; + name: string | null; + roleName: string | null; + updatedAt: string | null; +} export interface ApiSchema { apiId: string | null; createdAt: string | null; @@ -34,18 +46,6 @@ export interface ApiSetting { statementTimeoutMs: string | null; updatedAt: string | null; } -export interface Apis { - anonRole: string | null; - config: unknown | null; - createdAt: string | null; - databaseId: string | null; - dbname: string | null; - id: string | null; - isPublished: boolean | null; - name: string | null; - roleName: string | null; - updatedAt: string | null; -} export interface AstMigration { actionId: string | null; actionName: string | null; @@ -228,6 +228,47 @@ export interface DomainVerification { updatedAt: string | null; verifiedAt: string | null; } +export interface EmailIdentity { + createdAt: string | null; + databaseId: string | null; + fromAddress: string | null; + fromName: string | null; + id: string | null; + isActive: boolean | null; + isDefault: boolean | null; + name: string | null; + providerAccountId: string | null; + replyToAddress: string | null; + supportAddress: string | null; + transportMode: string | null; + updatedAt: string | null; +} +export interface EmailProviderAccount { + apiBaseUrl: string | null; + createdAt: string | null; + credentialsSecretName: string | null; + databaseId: string | null; + id: string | null; + isActive: boolean | null; + name: string | null; + provider: string | null; + providerAccountName: string | null; + region: string | null; + smtpHost: string | null; + smtpPort: number | null; + smtpSecure: boolean | null; + smtpUser: string | null; + updatedAt: string | null; + webhookSigningSecretName: string | null; +} +export interface EmailSiteIdentity { + createdAt: string | null; + databaseId: string | null; + emailIdentityId: string | null; + id: string | null; + siteId: string | null; + updatedAt: string | null; +} export interface EmbeddingChunk { chunkOverlap: number | null; chunkSize: number | null; @@ -463,6 +504,17 @@ export interface Partition { tableId: string | null; updatedAt: string | null; } +export interface PlatformApi { + anonRole: string | null; + config: unknown | null; + createdAt: string | null; + dbname: string | null; + id: string | null; + isPublished: boolean | null; + name: string | null; + roleName: string | null; + updatedAt: string | null; +} export interface PlatformApiSchema { apiId: string | null; createdAt: string | null; @@ -490,17 +542,6 @@ export interface PlatformApiSetting { statementTimeoutMs: string | null; updatedAt: string | null; } -export interface PlatformApis { - anonRole: string | null; - config: unknown | null; - createdAt: string | null; - dbname: string | null; - id: string | null; - isPublished: boolean | null; - name: string | null; - roleName: string | null; - updatedAt: string | null; -} export interface PlatformCorsSetting { allowedOrigins: string[] | null; apiId: string | null; @@ -553,6 +594,44 @@ export interface PlatformDomainVerification { updatedAt: string | null; verifiedAt: string | null; } +export interface PlatformEmailIdentity { + createdAt: string | null; + fromAddress: string | null; + fromName: string | null; + id: string | null; + isActive: boolean | null; + isDefault: boolean | null; + name: string | null; + providerAccountId: string | null; + replyToAddress: string | null; + supportAddress: string | null; + transportMode: string | null; + updatedAt: string | null; +} +export interface PlatformEmailProviderAccount { + apiBaseUrl: string | null; + createdAt: string | null; + credentialsSecretName: string | null; + id: string | null; + isActive: boolean | null; + name: string | null; + provider: string | null; + providerAccountName: string | null; + region: string | null; + smtpHost: string | null; + smtpPort: number | null; + smtpSecure: boolean | null; + smtpUser: string | null; + updatedAt: string | null; + webhookSigningSecretName: string | null; +} +export interface PlatformEmailSiteIdentity { + createdAt: string | null; + emailIdentityId: string | null; + id: string | null; + siteId: string | null; + updatedAt: string | null; +} export interface PlatformManagedDomain { allowPublicUsage: boolean | null; annotations: unknown | null; diff --git a/sdk/constructive-react/src/auth/README.md b/sdk/constructive-react/src/auth/README.md index a422c4e1fc..5c1acabd90 100644 --- a/sdk/constructive-react/src/auth/README.md +++ b/sdk/constructive-react/src/auth/README.md @@ -10,7 +10,7 @@ - **Tables:** 13 - **Custom queries:** 5 -- **Custom mutations:** 30 +- **Custom mutations:** 32 **Generators:** ORM, React Query diff --git a/sdk/constructive-react/src/auth/hooks/README.md b/sdk/constructive-react/src/auth/hooks/README.md index c7a8ab245a..d5dcd7b361 100644 --- a/sdk/constructive-react/src/auth/hooks/README.md +++ b/sdk/constructive-react/src/auth/hooks/README.md @@ -69,11 +69,11 @@ function App() { | `useCreatePrincipalEntityMutation` | Mutation | Association table scoping principals to specific organizations | | `useUpdatePrincipalEntityMutation` | Mutation | Association table scoping principals to specific organizations | | `useDeletePrincipalEntityMutation` | Mutation | Association table scoping principals to specific organizations | -| `usePrincipalScopeOverridesQuery` | Query | Per-scope permission overrides for principals. No row = full access; row exists = apply restrictions. | -| `usePrincipalScopeOverrideQuery` | Query | Per-scope permission overrides for principals. No row = full access; row exists = apply restrictions. | -| `useCreatePrincipalScopeOverrideMutation` | Mutation | Per-scope permission overrides for principals. No row = full access; row exists = apply restrictions. | -| `useUpdatePrincipalScopeOverrideMutation` | Mutation | Per-scope permission overrides for principals. No row = full access; row exists = apply restrictions. | -| `useDeletePrincipalScopeOverrideMutation` | Mutation | Per-scope permission overrides for principals. No row = full access; row exists = apply restrictions. | +| `usePrincipalScopeOverridesQuery` | Query | Per-scope capability overrides for principals. No row = full access; row exists = apply restrictions. | +| `usePrincipalScopeOverrideQuery` | Query | Per-scope capability overrides for principals. No row = full access; row exists = apply restrictions. | +| `useCreatePrincipalScopeOverrideMutation` | Mutation | Per-scope capability overrides for principals. No row = full access; row exists = apply restrictions. | +| `useUpdatePrincipalScopeOverrideMutation` | Mutation | Per-scope capability overrides for principals. No row = full access; row exists = apply restrictions. | +| `useDeletePrincipalScopeOverrideMutation` | Mutation | Per-scope capability overrides for principals. No row = full access; row exists = apply restrictions. | | `useRoleTypesQuery` | Query | List all roleTypes | | `useRoleTypeQuery` | Query | Get one roleType | | `useCreateRoleTypeMutation` | Mutation | Create a roleType | @@ -125,9 +125,11 @@ and lifecycle settings. | | `useSetPasswordMutation` | Mutation | setPassword | | `useSignInMutation` | Mutation | signIn | | `useSignInCrossOriginMutation` | Mutation | signInCrossOrigin | +| `useSignInMagicLinkMutation` | Mutation | signInMagicLink | | `useSignInSmsOtpMutation` | Mutation | signInSmsOtp | | `useSignOutMutation` | Mutation | signOut | | `useSignUpMutation` | Mutation | signUp | +| `useSignUpMagicLinkMutation` | Mutation | signUpMagicLink | | `useSignUpSmsMutation` | Mutation | signUpSms | | `useVerifyEmailMutation` | Mutation | verifyEmail | | `useVerifyPasswordMutation` | Mutation | verifyPassword | @@ -699,6 +701,17 @@ signInCrossOrigin |----------|------| | `input` | SignInCrossOriginInput (required) | +### `useSignInMagicLinkMutation` + +signInMagicLink + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | SignInMagicLinkInput (required) | + ### `useSignInSmsOtpMutation` signInSmsOtp @@ -732,6 +745,17 @@ signUp |----------|------| | `input` | SignUpInput (required) | +### `useSignUpMagicLinkMutation` + +signUpMagicLink + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | SignUpMagicLinkInput (required) | + ### `useSignUpSmsMutation` signUpSms diff --git a/sdk/constructive-react/src/auth/hooks/mutation-keys.ts b/sdk/constructive-react/src/auth/hooks/mutation-keys.ts index f288e7b2b7..168402ac9e 100644 --- a/sdk/constructive-react/src/auth/hooks/mutation-keys.ts +++ b/sdk/constructive-react/src/auth/hooks/mutation-keys.ts @@ -232,6 +232,10 @@ export const customMutationKeys = { identifier ? (['mutation', 'signInCrossOrigin', identifier] as const) : (['mutation', 'signInCrossOrigin'] as const), + /** Mutation key for signInMagicLink */ signInMagicLink: (identifier?: string) => + identifier + ? (['mutation', 'signInMagicLink', identifier] as const) + : (['mutation', 'signInMagicLink'] as const), /** Mutation key for signInSmsOtp */ signInSmsOtp: (identifier?: string) => identifier ? (['mutation', 'signInSmsOtp', identifier] as const) @@ -242,6 +246,10 @@ export const customMutationKeys = { : (['mutation', 'signOut'] as const), /** Mutation key for signUp */ signUp: (identifier?: string) => identifier ? (['mutation', 'signUp', identifier] as const) : (['mutation', 'signUp'] as const), + /** Mutation key for signUpMagicLink */ signUpMagicLink: (identifier?: string) => + identifier + ? (['mutation', 'signUpMagicLink', identifier] as const) + : (['mutation', 'signUpMagicLink'] as const), /** Mutation key for signUpSms */ signUpSms: (identifier?: string) => identifier ? (['mutation', 'signUpSms', identifier] as const) diff --git a/sdk/constructive-react/src/auth/hooks/mutations/index.ts b/sdk/constructive-react/src/auth/hooks/mutations/index.ts index 5348c0d00f..b82c9b4728 100644 --- a/sdk/constructive-react/src/auth/hooks/mutations/index.ts +++ b/sdk/constructive-react/src/auth/hooks/mutations/index.ts @@ -55,9 +55,11 @@ export * from './useSendVerificationEmailMutation'; export * from './useSetPasswordMutation'; export * from './useSignInMutation'; export * from './useSignInCrossOriginMutation'; +export * from './useSignInMagicLinkMutation'; export * from './useSignInSmsOtpMutation'; export * from './useSignOutMutation'; export * from './useSignUpMutation'; +export * from './useSignUpMagicLinkMutation'; export * from './useSignUpSmsMutation'; export * from './useVerifyEmailMutation'; export * from './useVerifyPasswordMutation'; diff --git a/sdk/constructive-react/src/auth/hooks/mutations/useCreatePrincipalScopeOverrideMutation.ts b/sdk/constructive-react/src/auth/hooks/mutations/useCreatePrincipalScopeOverrideMutation.ts index c54e6183dd..9d93c21aef 100644 --- a/sdk/constructive-react/src/auth/hooks/mutations/useCreatePrincipalScopeOverrideMutation.ts +++ b/sdk/constructive-react/src/auth/hooks/mutations/useCreatePrincipalScopeOverrideMutation.ts @@ -1,5 +1,5 @@ /** - * Per-scope permission overrides for principals. No row = full access; row exists = apply restrictions. + * Per-scope capability overrides for principals. No row = full access; row exists = apply restrictions. * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -23,7 +23,7 @@ export type { CreatePrincipalScopeOverrideInput, } from '../../orm/input-types'; /** - * Per-scope permission overrides for principals. No row = full access; row exists = apply restrictions. + * Per-scope capability overrides for principals. No row = full access; row exists = apply restrictions. * * @example * ```tsx diff --git a/sdk/constructive-react/src/auth/hooks/mutations/useSignInMagicLinkMutation.ts b/sdk/constructive-react/src/auth/hooks/mutations/useSignInMagicLinkMutation.ts new file mode 100644 index 0000000000..46d5701907 --- /dev/null +++ b/sdk/constructive-react/src/auth/hooks/mutations/useSignInMagicLinkMutation.ts @@ -0,0 +1,55 @@ +/** + * Custom mutation hook for signInMagicLink + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ + +import { useMutation } from '@tanstack/react-query'; +import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; +import { getClient } from '../client'; +import { buildSelectionArgs } from '../selection'; +import type { SelectionConfig } from '../selection'; +import { customMutationKeys } from '../mutation-keys'; +import type { SignInMagicLinkVariables } from '../../orm/mutation'; +import type { SignInMagicLinkPayloadSelect, SignInMagicLinkPayload } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect, StrictSelect } from '../../orm/select-types'; +export type { SignInMagicLinkVariables } from '../../orm/mutation'; +export type { SignInMagicLinkPayloadSelect } from '../../orm/input-types'; +export function useSignInMagicLinkMutation( + params: { + selection: { + fields: S & SignInMagicLinkPayloadSelect; + } & HookStrictSelect, SignInMagicLinkPayloadSelect>; + } & Omit< + UseMutationOptions< + { + signInMagicLink: InferSelectResult | null; + }, + Error, + SignInMagicLinkVariables + >, + 'mutationFn' + > +): UseMutationResult< + { + signInMagicLink: InferSelectResult | null; + }, + Error, + SignInMagicLinkVariables +> { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + return useMutation({ + mutationKey: customMutationKeys.signInMagicLink(), + mutationFn: (variables: SignInMagicLinkVariables) => + getClient() + .mutation.signInMagicLink(variables, { + select: args.select, + } as { + select: S; + } & StrictSelect) + .unwrap(), + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/auth/hooks/mutations/useSignUpMagicLinkMutation.ts b/sdk/constructive-react/src/auth/hooks/mutations/useSignUpMagicLinkMutation.ts new file mode 100644 index 0000000000..dd79403961 --- /dev/null +++ b/sdk/constructive-react/src/auth/hooks/mutations/useSignUpMagicLinkMutation.ts @@ -0,0 +1,55 @@ +/** + * Custom mutation hook for signUpMagicLink + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ + +import { useMutation } from '@tanstack/react-query'; +import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; +import { getClient } from '../client'; +import { buildSelectionArgs } from '../selection'; +import type { SelectionConfig } from '../selection'; +import { customMutationKeys } from '../mutation-keys'; +import type { SignUpMagicLinkVariables } from '../../orm/mutation'; +import type { SignUpMagicLinkPayloadSelect, SignUpMagicLinkPayload } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect, StrictSelect } from '../../orm/select-types'; +export type { SignUpMagicLinkVariables } from '../../orm/mutation'; +export type { SignUpMagicLinkPayloadSelect } from '../../orm/input-types'; +export function useSignUpMagicLinkMutation( + params: { + selection: { + fields: S & SignUpMagicLinkPayloadSelect; + } & HookStrictSelect, SignUpMagicLinkPayloadSelect>; + } & Omit< + UseMutationOptions< + { + signUpMagicLink: InferSelectResult | null; + }, + Error, + SignUpMagicLinkVariables + >, + 'mutationFn' + > +): UseMutationResult< + { + signUpMagicLink: InferSelectResult | null; + }, + Error, + SignUpMagicLinkVariables +> { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + return useMutation({ + mutationKey: customMutationKeys.signUpMagicLink(), + mutationFn: (variables: SignUpMagicLinkVariables) => + getClient() + .mutation.signUpMagicLink(variables, { + select: args.select, + } as { + select: S; + } & StrictSelect) + .unwrap(), + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/auth/hooks/queries/usePrincipalScopeOverrideQuery.ts b/sdk/constructive-react/src/auth/hooks/queries/usePrincipalScopeOverrideQuery.ts index 9930844113..dce6310fa7 100644 --- a/sdk/constructive-react/src/auth/hooks/queries/usePrincipalScopeOverrideQuery.ts +++ b/sdk/constructive-react/src/auth/hooks/queries/usePrincipalScopeOverrideQuery.ts @@ -1,5 +1,5 @@ /** - * Per-scope permission overrides for principals. No row = full access; row exists = apply restrictions. + * Per-scope capability overrides for principals. No row = full access; row exists = apply restrictions. * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -22,7 +22,7 @@ export type { /** Query key factory - re-exported from query-keys.ts */ export const principalScopeOverrideQueryKey = principalScopeOverrideKeys.detail; /** - * Per-scope permission overrides for principals. No row = full access; row exists = apply restrictions. + * Per-scope capability overrides for principals. No row = full access; row exists = apply restrictions. * * @example * ```tsx @@ -76,7 +76,7 @@ export function usePrincipalScopeOverrideQuery( }); } /** - * Per-scope permission overrides for principals. No row = full access; row exists = apply restrictions. + * Per-scope capability overrides for principals. No row = full access; row exists = apply restrictions. * * @example * ```ts @@ -109,7 +109,7 @@ export async function fetchPrincipalScopeOverrideQuery(params: { .unwrap(); } /** - * Per-scope permission overrides for principals. No row = full access; row exists = apply restrictions. + * Per-scope capability overrides for principals. No row = full access; row exists = apply restrictions. * * @example * ```ts diff --git a/sdk/constructive-react/src/auth/hooks/queries/usePrincipalScopeOverridesQuery.ts b/sdk/constructive-react/src/auth/hooks/queries/usePrincipalScopeOverridesQuery.ts index 521c5fdee6..549305b1d4 100644 --- a/sdk/constructive-react/src/auth/hooks/queries/usePrincipalScopeOverridesQuery.ts +++ b/sdk/constructive-react/src/auth/hooks/queries/usePrincipalScopeOverridesQuery.ts @@ -1,5 +1,5 @@ /** - * Per-scope permission overrides for principals. No row = full access; row exists = apply restrictions. + * Per-scope capability overrides for principals. No row = full access; row exists = apply restrictions. * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -31,7 +31,7 @@ export type { /** Query key factory - re-exported from query-keys.ts */ export const principalScopeOverridesQueryKey = principalScopeOverrideKeys.list; /** - * Per-scope permission overrides for principals. No row = full access; row exists = apply restrictions. + * Per-scope capability overrides for principals. No row = full access; row exists = apply restrictions. * * @example * ```tsx @@ -97,7 +97,7 @@ export function usePrincipalScopeOverridesQuery( }); } /** - * Per-scope permission overrides for principals. No row = full access; row exists = apply restrictions. + * Per-scope capability overrides for principals. No row = full access; row exists = apply restrictions. * * @example * ```ts @@ -139,7 +139,7 @@ export async function fetchPrincipalScopeOverridesQuery(params: { return getClient().principalScopeOverride.findMany(args).unwrap(); } /** - * Per-scope permission overrides for principals. No row = full access; row exists = apply restrictions. + * Per-scope capability overrides for principals. No row = full access; row exists = apply restrictions. * * @example * ```ts diff --git a/sdk/constructive-react/src/auth/orm/README.md b/sdk/constructive-react/src/auth/orm/README.md index 79d52a6c09..1e4f99a142 100644 --- a/sdk/constructive-react/src/auth/orm/README.md +++ b/sdk/constructive-react/src/auth/orm/README.md @@ -921,6 +921,21 @@ signInCrossOrigin const result = await db.mutation.signInCrossOrigin({ input: { credentialKind: '', token: '' } }).execute(); ``` +### `db.mutation.signInMagicLink` + +signInMagicLink + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | SignInMagicLinkInput (required) | + +```typescript +const result = await db.mutation.signInMagicLink({ input: { credentialKind: '', deviceToken: '', rememberMe: '', token: '' } }).execute(); +``` + ### `db.mutation.signInSmsOtp` signInSmsOtp @@ -966,6 +981,21 @@ signUp const result = await db.mutation.signUp({ input: '' }).execute(); ``` +### `db.mutation.signUpMagicLink` + +signUpMagicLink + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | SignUpMagicLinkInput (required) | + +```typescript +const result = await db.mutation.signUpMagicLink({ input: { credentialKind: '', deviceToken: '', rememberMe: '', token: '' } }).execute(); +``` + ### `db.mutation.signUpSms` signUpSms diff --git a/sdk/constructive-react/src/auth/orm/input-types.ts b/sdk/constructive-react/src/auth/orm/input-types.ts index b59a65f3f1..f2ea8e5716 100644 --- a/sdk/constructive-react/src/auth/orm/input-types.ts +++ b/sdk/constructive-react/src/auth/orm/input-types.ts @@ -306,7 +306,7 @@ export interface OrgApiKeyList { } /** User phone numbers with country code, verification, and primary-number management */ export interface PhoneNumber { - /** Country calling code (e.g. +1, +44) */ + /** Country calling code the number was entered under (e.g. +1, +44). Display only: `number` already carries it, and sign-in matches `number`. */ cc?: string | null; createdAt?: string | null; id: string; @@ -316,7 +316,7 @@ export interface PhoneNumber { isVerified?: boolean | null; /** Optional user-provided label for this phone number (e.g. "Mobile", "Work"). */ name?: string | null; - /** The phone number without country code */ + /** The full number in E.164 form, country calling code included (e.g. +15551234567). This is the value SMS sign-in and MFA match, so it is unique across the table and constrained to that shape. */ number?: string | null; ownerId?: string | null; updatedAt?: string | null; @@ -351,9 +351,9 @@ export interface PrincipalEntity { principalId?: string | null; updatedAt?: string | null; } -/** Per-scope permission overrides for principals. No row = full access; row exists = apply restrictions. */ +/** Per-scope capability overrides for principals. No row = full access; row exists = apply restrictions. */ export interface PrincipalScopeOverride { - /** Optional permission mask; AND-masked with parent permissions during cascade. NULL means no extra mask. */ + /** Optional capability mask; AND-masked with parent capabilities during cascade. NULL means no extra mask. */ allowedMask?: string | null; createdAt?: string | null; id: string; @@ -1866,6 +1866,13 @@ export interface SignInCrossOriginInput { credentialKind?: string; token?: string; } +export interface SignInMagicLinkInput { + clientMutationId?: string; + credentialKind?: string; + deviceToken?: string; + rememberMe?: boolean; + token?: string; +} export interface SignInSmsOtpInput { clientMutationId?: string; code?: string; @@ -1886,6 +1893,13 @@ export interface SignUpInput { password?: string; rememberMe?: boolean; } +export interface SignUpMagicLinkInput { + clientMutationId?: string; + credentialKind?: string; + deviceToken?: string; + rememberMe?: boolean; + token?: string; +} export interface SignUpSmsInput { clientMutationId?: string; code?: string; @@ -2332,7 +2346,7 @@ export interface EmailInput { } /** An input for mutations affecting `PhoneNumber` */ export interface PhoneNumberInput { - /** Country calling code (e.g. +1, +44) */ + /** Country calling code the number was entered under (e.g. +1, +44). Display only: `number` already carries it, and sign-in matches `number`. */ cc: string; createdAt?: string; id?: string; @@ -2342,7 +2356,7 @@ export interface PhoneNumberInput { isVerified?: boolean; /** Optional user-provided label for this phone number (e.g. "Mobile", "Work"). */ name?: string; - /** The phone number without country code */ + /** The full number in E.164 form, country calling code included (e.g. +15551234567). This is the value SMS sign-in and MFA match, so it is unique across the table and constrained to that shape. */ number: string; ownerId?: string; updatedAt?: string; @@ -3271,6 +3285,16 @@ export type SignInCrossOriginPayloadSelect = { select: SignInCrossOriginRecordSelect; }; }; +export interface SignInMagicLinkPayload { + clientMutationId?: string | null; + result?: SignInMagicLinkRecord | null; +} +export type SignInMagicLinkPayloadSelect = { + clientMutationId?: boolean; + result?: { + select: SignInMagicLinkRecordSelect; + }; +}; export interface SignInSmsOtpPayload { clientMutationId?: string | null; result?: SignInSmsOtpRecord | null; @@ -3297,6 +3321,16 @@ export type SignUpPayloadSelect = { select: SignUpRecordSelect; }; }; +export interface SignUpMagicLinkPayload { + clientMutationId?: string | null; + result?: SignUpMagicLinkRecord | null; +} +export type SignUpMagicLinkPayloadSelect = { + clientMutationId?: boolean; + result?: { + select: SignUpMagicLinkRecordSelect; + }; +}; export interface SignUpSmsPayload { clientMutationId?: string | null; result?: SignUpSmsRecord | null; @@ -3765,6 +3799,16 @@ export type SignInCrossOriginRecordSelect = { totpEnabled?: boolean; userId?: boolean; }; +export interface SignInMagicLinkRecord { + accessToken?: string | null; + accessTokenExpiresAt?: string | null; + userId?: string | null; +} +export type SignInMagicLinkRecordSelect = { + accessToken?: boolean; + accessTokenExpiresAt?: boolean; + userId?: boolean; +}; export interface SignInSmsOtpRecord { accessToken?: string | null; accessTokenExpiresAt?: string | null; @@ -3791,6 +3835,16 @@ export type SignUpRecordSelect = { totpEnabled?: boolean; userId?: boolean; }; +export interface SignUpMagicLinkRecord { + accessToken?: string | null; + accessTokenExpiresAt?: string | null; + userId?: string | null; +} +export type SignUpMagicLinkRecordSelect = { + accessToken?: boolean; + accessTokenExpiresAt?: boolean; + userId?: boolean; +}; export interface SignUpSmsRecord { accessToken?: string | null; accessTokenExpiresAt?: string | null; diff --git a/sdk/constructive-react/src/auth/orm/mutation/index.ts b/sdk/constructive-react/src/auth/orm/mutation/index.ts index ae0973c7fb..d1531288e5 100644 --- a/sdk/constructive-react/src/auth/orm/mutation/index.ts +++ b/sdk/constructive-react/src/auth/orm/mutation/index.ts @@ -30,9 +30,11 @@ import type { SetPasswordInput, SignInInput, SignInCrossOriginInput, + SignInMagicLinkInput, SignInSmsOtpInput, SignOutInput, SignUpInput, + SignUpMagicLinkInput, SignUpSmsInput, VerifyEmailInput, VerifyPasswordInput, @@ -60,9 +62,11 @@ import type { SetPasswordPayload, SignInPayload, SignInCrossOriginPayload, + SignInMagicLinkPayload, SignInSmsOtpPayload, SignOutPayload, SignUpPayload, + SignUpMagicLinkPayload, SignUpSmsPayload, VerifyEmailPayload, VerifyPasswordPayload, @@ -90,9 +94,11 @@ import type { SetPasswordPayloadSelect, SignInPayloadSelect, SignInCrossOriginPayloadSelect, + SignInMagicLinkPayloadSelect, SignInSmsOtpPayloadSelect, SignOutPayloadSelect, SignUpPayloadSelect, + SignUpMagicLinkPayloadSelect, SignUpSmsPayloadSelect, VerifyEmailPayloadSelect, VerifyPasswordPayloadSelect, @@ -175,6 +181,9 @@ export interface SignInVariables { export interface SignInCrossOriginVariables { input: SignInCrossOriginInput; } +export interface SignInMagicLinkVariables { + input: SignInMagicLinkInput; +} export interface SignInSmsOtpVariables { input: SignInSmsOtpInput; } @@ -184,6 +193,9 @@ export interface SignOutVariables { export interface SignUpVariables { input: SignUpInput; } +export interface SignUpMagicLinkVariables { + input: SignUpMagicLinkInput; +} export interface SignUpSmsVariables { input: SignUpSmsInput; } @@ -865,6 +877,35 @@ export function createMutationOperations(client: OrmClient) { 'SignInCrossOriginPayload' ), }), + signInMagicLink: ( + args: SignInMagicLinkVariables, + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + signInMagicLink: InferSelectResult | null; + }>({ + client, + operation: 'mutation', + operationName: 'SignInMagicLink', + fieldName: 'signInMagicLink', + ...buildCustomDocument( + 'mutation', + 'SignInMagicLink', + 'signInMagicLink', + options.select, + args, + [ + { + name: 'input', + type: 'SignInMagicLinkInput!', + }, + ], + connectionFieldsMap, + 'SignInMagicLinkPayload' + ), + }), signInSmsOtp: ( args: SignInSmsOtpVariables, options: { @@ -952,6 +993,35 @@ export function createMutationOperations(client: OrmClient) { 'SignUpPayload' ), }), + signUpMagicLink: ( + args: SignUpMagicLinkVariables, + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + signUpMagicLink: InferSelectResult | null; + }>({ + client, + operation: 'mutation', + operationName: 'SignUpMagicLink', + fieldName: 'signUpMagicLink', + ...buildCustomDocument( + 'mutation', + 'SignUpMagicLink', + 'signUpMagicLink', + options.select, + args, + [ + { + name: 'input', + type: 'SignUpMagicLinkInput!', + }, + ], + connectionFieldsMap, + 'SignUpMagicLinkPayload' + ), + }), signUpSms: ( args: SignUpSmsVariables, options: { diff --git a/sdk/constructive-react/src/auth/schema-types.ts b/sdk/constructive-react/src/auth/schema-types.ts index f0c12b9dff..6c3a334363 100644 --- a/sdk/constructive-react/src/auth/schema-types.ts +++ b/sdk/constructive-react/src/auth/schema-types.ts @@ -942,7 +942,7 @@ export interface PhoneNumberFilter { } /** An input for mutations affecting `PhoneNumber` */ export interface PhoneNumberInput { - /** Country calling code (e.g. +1, +44) */ + /** Country calling code the number was entered under (e.g. +1, +44). Display only: `number` already carries it, and sign-in matches `number`. */ cc: string; createdAt?: string; id?: string; @@ -952,14 +952,14 @@ export interface PhoneNumberInput { isVerified?: boolean; /** Optional user-provided label for this phone number (e.g. "Mobile", "Work"). */ name?: string; - /** The phone number without country code */ + /** The full number in E.164 form, country calling code included (e.g. +15551234567). This is the value SMS sign-in and MFA match, so it is unique across the table and constrained to that shape. */ number: string; ownerId?: string; updatedAt?: string; } /** Represents an update to a `PhoneNumber`. Fields that are set will be updated. */ export interface PhoneNumberPatch { - /** Country calling code (e.g. +1, +44) */ + /** Country calling code the number was entered under (e.g. +1, +44). Display only: `number` already carries it, and sign-in matches `number`. */ cc?: string; createdAt?: string; id?: string; @@ -969,7 +969,7 @@ export interface PhoneNumberPatch { isVerified?: boolean; /** Optional user-provided label for this phone number (e.g. "Mobile", "Work"). */ name?: string; - /** The phone number without country code */ + /** The full number in E.164 form, country calling code included (e.g. +15551234567). This is the value SMS sign-in and MFA match, so it is unique across the table and constrained to that shape. */ number?: string; ownerId?: string; updatedAt?: string; @@ -1200,6 +1200,13 @@ export interface SignInInput { password?: string; rememberMe?: boolean; } +export interface SignInMagicLinkInput { + clientMutationId?: string; + credentialKind?: string; + deviceToken?: string; + rememberMe?: boolean; + token?: string; +} export interface SignInSmsOtpInput { clientMutationId?: string; code?: string; @@ -1220,6 +1227,13 @@ export interface SignUpInput { password?: string; rememberMe?: boolean; } +export interface SignUpMagicLinkInput { + clientMutationId?: string; + credentialKind?: string; + deviceToken?: string; + rememberMe?: boolean; + token?: string; +} export interface SignUpSmsInput { clientMutationId?: string; code?: string; @@ -1944,6 +1958,10 @@ export interface SignInCrossOriginPayload { clientMutationId?: string | null; result?: SignInCrossOriginRecord | null; } +export interface SignInMagicLinkPayload { + clientMutationId?: string | null; + result?: SignInMagicLinkRecord | null; +} export interface SignInSmsOtpPayload { clientMutationId?: string | null; result?: SignInSmsOtpRecord | null; @@ -1955,6 +1973,10 @@ export interface SignUpPayload { clientMutationId?: string | null; result?: SignUpRecord | null; } +export interface SignUpMagicLinkPayload { + clientMutationId?: string | null; + result?: SignUpMagicLinkRecord | null; +} export interface SignUpSmsPayload { clientMutationId?: string | null; result?: SignUpSmsRecord | null; @@ -2168,6 +2190,11 @@ export interface SignInCrossOriginRecord { totpEnabled?: boolean | null; userId?: string | null; } +export interface SignInMagicLinkRecord { + accessToken?: string | null; + accessTokenExpiresAt?: string | null; + userId?: string | null; +} export interface SignInSmsOtpRecord { accessToken?: string | null; accessTokenExpiresAt?: string | null; @@ -2181,6 +2208,11 @@ export interface SignUpRecord { totpEnabled?: boolean | null; userId?: string | null; } +export interface SignUpMagicLinkRecord { + accessToken?: string | null; + accessTokenExpiresAt?: string | null; + userId?: string | null; +} export interface SignUpSmsRecord { accessToken?: string | null; accessTokenExpiresAt?: string | null; diff --git a/sdk/constructive-react/src/compute/README.md b/sdk/constructive-react/src/compute/README.md index 588bc458a8..632b02d5a3 100644 --- a/sdk/constructive-react/src/compute/README.md +++ b/sdk/constructive-react/src/compute/README.md @@ -8,9 +8,9 @@ ## Overview -- **Tables:** 69 +- **Tables:** 70 - **Custom queries:** 1 -- **Custom mutations:** 28 +- **Custom mutations:** 37 **Generators:** ORM, React Query diff --git a/sdk/constructive-react/src/compute/hooks/README.md b/sdk/constructive-react/src/compute/hooks/README.md index b46fe2311e..fcd6647c76 100644 --- a/sdk/constructive-react/src/compute/hooks/README.md +++ b/sdk/constructive-react/src/compute/hooks/README.md @@ -32,6 +32,11 @@ function App() { | Hook | Type | Description | |------|------|-------------| +| `useContentPresetsQuery` | Query | Seed-content preset catalog (limit defaults, trust ladders, ...) — merkle-versioned head over the infra store | +| `useContentPresetQuery` | Query | Seed-content preset catalog (limit defaults, trust ladders, ...) — merkle-versioned head over the infra store | +| `useCreateContentPresetMutation` | Mutation | Seed-content preset catalog (limit defaults, trust ladders, ...) — merkle-versioned head over the infra store | +| `useUpdateContentPresetMutation` | Mutation | Seed-content preset catalog (limit defaults, trust ladders, ...) — merkle-versioned head over the infra store | +| `useDeleteContentPresetMutation` | Mutation | Seed-content preset catalog (limit defaults, trust ladders, ...) — merkle-versioned head over the infra store | | `useDbPresetsQuery` | Query | Database provisioning preset catalog — merkle-versioned head over the infra store | | `useDbPresetQuery` | Query | Database provisioning preset catalog — merkle-versioned head over the infra store | | `useCreateDbPresetMutation` | Mutation | Database provisioning preset catalog — merkle-versioned head over the infra store | @@ -354,12 +359,19 @@ function App() { | `useImportGraphJsonMutation` | Mutation | importGraphJson | | `useInfraInitEmptyRepoMutation` | Mutation | infraInitEmptyRepo | | `useInfraInsertNodeAtPathMutation` | Mutation | infraInsertNodeAtPath | +| `useInfraInsertNodesAtPathsMutation` | Mutation | infraInsertNodesAtPaths | +| `useInfraSetAndCommitMutation` | Mutation | infraSetAndCommit | | `useInfraSetDataAtPathMutation` | Mutation | infraSetDataAtPath | +| `useInfraSetManyAndCommitMutation` | Mutation | infraSetManyAndCommit | | `useInitEmptyRepoMutation` | Mutation | initEmptyRepo | | `useInsertNodeAtPathMutation` | Mutation | insertNodeAtPath | +| `useInsertNodesAtPathsMutation` | Mutation | insertNodesAtPaths | | `usePlatformInfraInitEmptyRepoMutation` | Mutation | platformInfraInitEmptyRepo | | `usePlatformInfraInsertNodeAtPathMutation` | Mutation | platformInfraInsertNodeAtPath | +| `usePlatformInfraInsertNodesAtPathsMutation` | Mutation | platformInfraInsertNodesAtPaths | +| `usePlatformInfraSetAndCommitMutation` | Mutation | platformInfraSetAndCommit | | `usePlatformInfraSetDataAtPathMutation` | Mutation | platformInfraSetDataAtPath | +| `usePlatformInfraSetManyAndCommitMutation` | Mutation | platformInfraSetManyAndCommit | | `usePlatformResourceInstallationsInstallMutation` | Mutation | platformResourceInstallationsInstall | | `usePlatformResourceInstallationsRollbackMutation` | Mutation | platformResourceInstallationsRollback | | `usePlatformResourceInstallationsUninstallMutation` | Mutation | platformResourceInstallationsUninstall | @@ -373,12 +385,35 @@ and lifecycle settings. | | `useResourceInstallationsUninstallMutation` | Mutation | resourceInstallationsUninstall | | `useResourceInstallationsUpgradeMutation` | Mutation | resourceInstallationsUpgrade | | `useSaveGraphMutation` | Mutation | saveGraph | +| `useSetAndCommitMutation` | Mutation | setAndCommit | | `useSetDataAtPathMutation` | Mutation | setDataAtPath | +| `useSetManyAndCommitMutation` | Mutation | setManyAndCommit | | `useStartExecutionMutation` | Mutation | startExecution | | `useValidateFunctionGraphMutation` | Mutation | validateFunctionGraph | ## Table Hooks +### ContentPreset + +```typescript +// List all contentPresets +const { data, isLoading } = useContentPresetsQuery({ + selection: { fields: { active: true, commitId: true, createdAt: true, definition: true, description: true, id: true, kind: true, label: true, slug: true, storeId: true, updatedAt: true } }, +}); + +// Get one contentPreset +const { data: item } = useContentPresetQuery({ + id: '', + selection: { fields: { active: true, commitId: true, createdAt: true, definition: true, description: true, id: true, kind: true, label: true, slug: true, storeId: true, updatedAt: true } }, +}); + +// Create a contentPreset +const { mutate: create } = useCreateContentPresetMutation({ + selection: { fields: { id: true } }, +}); +create({ active: '', commitId: '', definition: '', description: '', kind: '', label: '', slug: '', storeId: '' }); +``` + ### DbPreset ```typescript @@ -447,20 +482,20 @@ create({ bucketId: '', databaseId: '', functionId: '', graphId ```typescript // List all functionDefinitions const { data, isLoading } = useFunctionDefinitionsQuery({ - selection: { fields: { accessChannels: true, category: true, concurrency: true, cpuLimitMillicores: true, cpuRequestMillicores: true, createdAt: true, databaseId: true, description: true, fnCategory: true, functionColumns: true, graphId: true, icon: true, id: true, image: true, inputs: true, integrations: true, isPublished: true, maxAttempts: true, memoryLimitBytes: true, memoryRequestBytes: true, moduleTable: true, name: true, outputs: true, payloadArgs: true, priority: true, props: true, protected: true, publishedAt: true, queueName: true, requiredBuckets: true, requiredConfigs: true, requiredModels: true, requiredSecrets: true, resources: true, runtime: true, scaleMax: true, scaleMin: true, targetFunction: true, targetSchema: true, taskIdentifier: true, timeoutSeconds: true, updatedAt: true, volatile: true } }, + selection: { fields: { accessChannels: true, category: true, concurrency: true, cpuLimitMillicores: true, cpuRequestMillicores: true, createdAt: true, databaseId: true, description: true, fnCategory: true, functionColumns: true, graphId: true, icon: true, id: true, image: true, inputs: true, integrations: true, isPublished: true, maxAttempts: true, memoryLimitBytes: true, memoryRequestBytes: true, moduleTable: true, name: true, outputs: true, payloadArgs: true, priority: true, props: true, protected: true, publishedAt: true, queueName: true, requiredBuckets: true, requiredConfigs: true, requiredModels: true, requiredModules: true, requiredSecrets: true, resources: true, runtime: true, scaleMax: true, scaleMin: true, targetFunction: true, targetSchema: true, taskIdentifier: true, timeoutSeconds: true, updatedAt: true, volatile: true } }, }); // Get one functionDefinition const { data: item } = useFunctionDefinitionQuery({ id: '', - selection: { fields: { accessChannels: true, category: true, concurrency: true, cpuLimitMillicores: true, cpuRequestMillicores: true, createdAt: true, databaseId: true, description: true, fnCategory: true, functionColumns: true, graphId: true, icon: true, id: true, image: true, inputs: true, integrations: true, isPublished: true, maxAttempts: true, memoryLimitBytes: true, memoryRequestBytes: true, moduleTable: true, name: true, outputs: true, payloadArgs: true, priority: true, props: true, protected: true, publishedAt: true, queueName: true, requiredBuckets: true, requiredConfigs: true, requiredModels: true, requiredSecrets: true, resources: true, runtime: true, scaleMax: true, scaleMin: true, targetFunction: true, targetSchema: true, taskIdentifier: true, timeoutSeconds: true, updatedAt: true, volatile: true } }, + selection: { fields: { accessChannels: true, category: true, concurrency: true, cpuLimitMillicores: true, cpuRequestMillicores: true, createdAt: true, databaseId: true, description: true, fnCategory: true, functionColumns: true, graphId: true, icon: true, id: true, image: true, inputs: true, integrations: true, isPublished: true, maxAttempts: true, memoryLimitBytes: true, memoryRequestBytes: true, moduleTable: true, name: true, outputs: true, payloadArgs: true, priority: true, props: true, protected: true, publishedAt: true, queueName: true, requiredBuckets: true, requiredConfigs: true, requiredModels: true, requiredModules: true, requiredSecrets: true, resources: true, runtime: true, scaleMax: true, scaleMin: true, targetFunction: true, targetSchema: true, taskIdentifier: true, timeoutSeconds: true, updatedAt: true, volatile: true } }, }); // Create a functionDefinition const { mutate: create } = useCreateFunctionDefinitionMutation({ selection: { fields: { id: true } }, }); -create({ accessChannels: '', category: '', concurrency: '', cpuLimitMillicores: '', cpuRequestMillicores: '', databaseId: '', description: '', fnCategory: '', functionColumns: '', graphId: '', icon: '', image: '', inputs: '', integrations: '', isPublished: '', maxAttempts: '', memoryLimitBytes: '', memoryRequestBytes: '', moduleTable: '', name: '', outputs: '', payloadArgs: '', priority: '', props: '', protected: '', publishedAt: '', queueName: '', requiredBuckets: '', requiredConfigs: '', requiredModels: '', requiredSecrets: '', resources: '', runtime: '', scaleMax: '', scaleMin: '', targetFunction: '', targetSchema: '', taskIdentifier: '', timeoutSeconds: '', volatile: '' }); +create({ accessChannels: '', category: '', concurrency: '', cpuLimitMillicores: '', cpuRequestMillicores: '', databaseId: '', description: '', fnCategory: '', functionColumns: '', graphId: '', icon: '', image: '', inputs: '', integrations: '', isPublished: '', maxAttempts: '', memoryLimitBytes: '', memoryRequestBytes: '', moduleTable: '', name: '', outputs: '', payloadArgs: '', priority: '', props: '', protected: '', publishedAt: '', queueName: '', requiredBuckets: '', requiredConfigs: '', requiredModels: '', requiredModules: '', requiredSecrets: '', resources: '', runtime: '', scaleMax: '', scaleMin: '', targetFunction: '', targetSchema: '', taskIdentifier: '', timeoutSeconds: '', volatile: '' }); ``` ### FunctionDeployment @@ -468,20 +503,20 @@ create({ accessChannels: '', category: '', concurrency: '', ```typescript // List all functionDeployments const { data, isLoading } = useFunctionDeploymentsQuery({ - selection: { fields: { annotations: true, concurrency: true, createdAt: true, databaseId: true, errorCount: true, handlerName: true, id: true, image: true, imageVersion: true, labels: true, lastError: true, lastErrorAt: true, namespaceId: true, resources: true, revision: true, scaleMax: true, scaleMin: true, serviceName: true, serviceUrl: true, status: true, timeoutSeconds: true, updatedAt: true } }, + selection: { fields: { annotations: true, concurrency: true, createdAt: true, databaseId: true, errorCount: true, handlerName: true, id: true, image: true, imageVersion: true, labels: true, lastError: true, lastErrorAt: true, namespaceId: true, realm: true, resources: true, revision: true, scaleMax: true, scaleMin: true, serviceName: true, serviceUrl: true, status: true, timeoutSeconds: true, updatedAt: true } }, }); // Get one functionDeployment const { data: item } = useFunctionDeploymentQuery({ id: '', - selection: { fields: { annotations: true, concurrency: true, createdAt: true, databaseId: true, errorCount: true, handlerName: true, id: true, image: true, imageVersion: true, labels: true, lastError: true, lastErrorAt: true, namespaceId: true, resources: true, revision: true, scaleMax: true, scaleMin: true, serviceName: true, serviceUrl: true, status: true, timeoutSeconds: true, updatedAt: true } }, + selection: { fields: { annotations: true, concurrency: true, createdAt: true, databaseId: true, errorCount: true, handlerName: true, id: true, image: true, imageVersion: true, labels: true, lastError: true, lastErrorAt: true, namespaceId: true, realm: true, resources: true, revision: true, scaleMax: true, scaleMin: true, serviceName: true, serviceUrl: true, status: true, timeoutSeconds: true, updatedAt: true } }, }); // Create a functionDeployment const { mutate: create } = useCreateFunctionDeploymentMutation({ selection: { fields: { id: true } }, }); -create({ annotations: '', concurrency: '', databaseId: '', errorCount: '', handlerName: '', image: '', imageVersion: '', labels: '', lastError: '', lastErrorAt: '', namespaceId: '', resources: '', revision: '', scaleMax: '', scaleMin: '', serviceName: '', serviceUrl: '', status: '', timeoutSeconds: '' }); +create({ annotations: '', concurrency: '', databaseId: '', errorCount: '', handlerName: '', image: '', imageVersion: '', labels: '', lastError: '', lastErrorAt: '', namespaceId: '', realm: '', resources: '', revision: '', scaleMax: '', scaleMin: '', serviceName: '', serviceUrl: '', status: '', timeoutSeconds: '' }); ``` ### FunctionDeploymentEvent @@ -960,20 +995,20 @@ create({ bucketId: '', functionId: '', graphId: '', key: '', - selection: { fields: { accessChannels: true, billable: true, category: true, concurrency: true, cpuLimitMillicores: true, cpuRequestMillicores: true, createdAt: true, description: true, fnCategory: true, functionColumns: true, graphId: true, icon: true, id: true, image: true, inputs: true, integrations: true, isPublished: true, maxAttempts: true, memoryLimitBytes: true, memoryRequestBytes: true, moduleTable: true, name: true, outputs: true, payloadArgs: true, priority: true, props: true, protected: true, publishedAt: true, queueName: true, requiredBuckets: true, requiredConfigs: true, requiredModels: true, requiredSecrets: true, resources: true, runtime: true, scaleMax: true, scaleMin: true, system: true, targetFunction: true, targetSchema: true, taskIdentifier: true, timeoutSeconds: true, updatedAt: true, volatile: true } }, + selection: { fields: { accessChannels: true, billable: true, category: true, concurrency: true, cpuLimitMillicores: true, cpuRequestMillicores: true, createdAt: true, description: true, fnCategory: true, functionColumns: true, graphId: true, icon: true, id: true, image: true, inputs: true, integrations: true, isPublished: true, maxAttempts: true, memoryLimitBytes: true, memoryRequestBytes: true, moduleTable: true, name: true, outputs: true, payloadArgs: true, priority: true, props: true, protected: true, publishedAt: true, queueName: true, requiredBuckets: true, requiredConfigs: true, requiredModels: true, requiredModules: true, requiredSecrets: true, resources: true, runtime: true, scaleMax: true, scaleMin: true, system: true, targetFunction: true, targetSchema: true, taskIdentifier: true, timeoutSeconds: true, updatedAt: true, volatile: true } }, }); // Create a platformFunctionDefinition const { mutate: create } = useCreatePlatformFunctionDefinitionMutation({ selection: { fields: { id: true } }, }); -create({ accessChannels: '', billable: '', category: '', concurrency: '', cpuLimitMillicores: '', cpuRequestMillicores: '', description: '', fnCategory: '', functionColumns: '', graphId: '', icon: '', image: '', inputs: '', integrations: '', isPublished: '', maxAttempts: '', memoryLimitBytes: '', memoryRequestBytes: '', moduleTable: '', name: '', outputs: '', payloadArgs: '', priority: '', props: '', protected: '', publishedAt: '', queueName: '', requiredBuckets: '', requiredConfigs: '', requiredModels: '', requiredSecrets: '', resources: '', runtime: '', scaleMax: '', scaleMin: '', system: '', targetFunction: '', targetSchema: '', taskIdentifier: '', timeoutSeconds: '', volatile: '' }); +create({ accessChannels: '', billable: '', category: '', concurrency: '', cpuLimitMillicores: '', cpuRequestMillicores: '', description: '', fnCategory: '', functionColumns: '', graphId: '', icon: '', image: '', inputs: '', integrations: '', isPublished: '', maxAttempts: '', memoryLimitBytes: '', memoryRequestBytes: '', moduleTable: '', name: '', outputs: '', payloadArgs: '', priority: '', props: '', protected: '', publishedAt: '', queueName: '', requiredBuckets: '', requiredConfigs: '', requiredModels: '', requiredModules: '', requiredSecrets: '', resources: '', runtime: '', scaleMax: '', scaleMin: '', system: '', targetFunction: '', targetSchema: '', taskIdentifier: '', timeoutSeconds: '', volatile: '' }); ``` ### PlatformFunctionDeployment @@ -981,20 +1016,20 @@ create({ accessChannels: '', billable: '', category: '' ```typescript // List all platformFunctionDeployments const { data, isLoading } = usePlatformFunctionDeploymentsQuery({ - selection: { fields: { annotations: true, concurrency: true, createdAt: true, errorCount: true, handlerName: true, id: true, image: true, imageVersion: true, labels: true, lastError: true, lastErrorAt: true, namespaceId: true, resources: true, revision: true, scaleMax: true, scaleMin: true, serviceName: true, serviceUrl: true, status: true, timeoutSeconds: true, updatedAt: true } }, + selection: { fields: { annotations: true, concurrency: true, createdAt: true, errorCount: true, handlerName: true, id: true, image: true, imageVersion: true, labels: true, lastError: true, lastErrorAt: true, namespaceId: true, realm: true, resources: true, revision: true, scaleMax: true, scaleMin: true, serviceName: true, serviceUrl: true, status: true, timeoutSeconds: true, updatedAt: true } }, }); // Get one platformFunctionDeployment const { data: item } = usePlatformFunctionDeploymentQuery({ id: '', - selection: { fields: { annotations: true, concurrency: true, createdAt: true, errorCount: true, handlerName: true, id: true, image: true, imageVersion: true, labels: true, lastError: true, lastErrorAt: true, namespaceId: true, resources: true, revision: true, scaleMax: true, scaleMin: true, serviceName: true, serviceUrl: true, status: true, timeoutSeconds: true, updatedAt: true } }, + selection: { fields: { annotations: true, concurrency: true, createdAt: true, errorCount: true, handlerName: true, id: true, image: true, imageVersion: true, labels: true, lastError: true, lastErrorAt: true, namespaceId: true, realm: true, resources: true, revision: true, scaleMax: true, scaleMin: true, serviceName: true, serviceUrl: true, status: true, timeoutSeconds: true, updatedAt: true } }, }); // Create a platformFunctionDeployment const { mutate: create } = useCreatePlatformFunctionDeploymentMutation({ selection: { fields: { id: true } }, }); -create({ annotations: '', concurrency: '', errorCount: '', handlerName: '', image: '', imageVersion: '', labels: '', lastError: '', lastErrorAt: '', namespaceId: '', resources: '', revision: '', scaleMax: '', scaleMin: '', serviceName: '', serviceUrl: '', status: '', timeoutSeconds: '' }); +create({ annotations: '', concurrency: '', errorCount: '', handlerName: '', image: '', imageVersion: '', labels: '', lastError: '', lastErrorAt: '', namespaceId: '', realm: '', resources: '', revision: '', scaleMax: '', scaleMin: '', serviceName: '', serviceUrl: '', status: '', timeoutSeconds: '' }); ``` ### PlatformFunctionDeploymentEvent @@ -1874,6 +1909,28 @@ infraInsertNodeAtPath |----------|------| | `input` | InfraInsertNodeAtPathInput (required) | +### `useInfraInsertNodesAtPathsMutation` + +infraInsertNodesAtPaths + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | InfraInsertNodesAtPathsInput (required) | + +### `useInfraSetAndCommitMutation` + +infraSetAndCommit + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | InfraSetAndCommitInput (required) | + ### `useInfraSetDataAtPathMutation` infraSetDataAtPath @@ -1885,6 +1942,17 @@ infraSetDataAtPath |----------|------| | `input` | InfraSetDataAtPathInput (required) | +### `useInfraSetManyAndCommitMutation` + +infraSetManyAndCommit + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | InfraSetManyAndCommitInput (required) | + ### `useInitEmptyRepoMutation` initEmptyRepo @@ -1907,6 +1975,17 @@ insertNodeAtPath |----------|------| | `input` | InsertNodeAtPathInput (required) | +### `useInsertNodesAtPathsMutation` + +insertNodesAtPaths + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | InsertNodesAtPathsInput (required) | + ### `usePlatformInfraInitEmptyRepoMutation` platformInfraInitEmptyRepo @@ -1929,6 +2008,28 @@ platformInfraInsertNodeAtPath |----------|------| | `input` | PlatformInfraInsertNodeAtPathInput (required) | +### `usePlatformInfraInsertNodesAtPathsMutation` + +platformInfraInsertNodesAtPaths + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | PlatformInfraInsertNodesAtPathsInput (required) | + +### `usePlatformInfraSetAndCommitMutation` + +platformInfraSetAndCommit + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | PlatformInfraSetAndCommitInput (required) | + ### `usePlatformInfraSetDataAtPathMutation` platformInfraSetDataAtPath @@ -1940,6 +2041,17 @@ platformInfraSetDataAtPath |----------|------| | `input` | PlatformInfraSetDataAtPathInput (required) | +### `usePlatformInfraSetManyAndCommitMutation` + +platformInfraSetManyAndCommit + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | PlatformInfraSetManyAndCommitInput (required) | + ### `usePlatformResourceInstallationsInstallMutation` platformResourceInstallationsInstall @@ -2053,6 +2165,17 @@ saveGraph |----------|------| | `input` | SaveGraphInput (required) | +### `useSetAndCommitMutation` + +setAndCommit + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | SetAndCommitInput (required) | + ### `useSetDataAtPathMutation` setDataAtPath @@ -2064,6 +2187,17 @@ setDataAtPath |----------|------| | `input` | SetDataAtPathInput (required) | +### `useSetManyAndCommitMutation` + +setManyAndCommit + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | SetManyAndCommitInput (required) | + ### `useStartExecutionMutation` startExecution diff --git a/sdk/constructive-react/src/compute/hooks/index.ts b/sdk/constructive-react/src/compute/hooks/index.ts index 1ae73239df..0507a6d4e8 100644 --- a/sdk/constructive-react/src/compute/hooks/index.ts +++ b/sdk/constructive-react/src/compute/hooks/index.ts @@ -2,7 +2,7 @@ * GraphQL SDK * @generated by @constructive-io/graphql-codegen * - * Tables: DbPreset, FunctionApiBinding, FunctionCapabilityBinding, FunctionDefinition, FunctionDeployment, FunctionDeploymentEvent, FunctionExecutionLog, FunctionGraphCommit, FunctionGraph, FunctionGraphExecution, FunctionGraphExecutionNodeState, FunctionGraphExecutionOutput, FunctionGraphObject, FunctionGraphRef, FunctionGraphStore, FunctionInvocationAttempt, FunctionInvocation, GetAllTreeNodesRecord, InfraCommit, InfraGetAllTreeNodesRecord, InfraObject, InfraRef, InfraStore, IntegrationProvider, Namespace, NamespaceEvent, PlatformFunctionApiBinding, PlatformFunctionCapabilityBinding, PlatformFunctionDefinition, PlatformFunctionDeployment, PlatformFunctionDeploymentEvent, PlatformFunctionExecutionLog, PlatformFunctionInvocationAttempt, PlatformFunctionInvocation, PlatformInfraCommit, PlatformInfraGetAllTreeNodesRecord, PlatformInfraObject, PlatformInfraRef, PlatformInfraStore, PlatformNamespace, PlatformNamespaceEvent, PlatformResource, PlatformResourceDeclaredCapacity, PlatformResourceDefinition, PlatformResourceEvent, PlatformResourceInstallation, PlatformResourceStatusCheck, PlatformResourceUsageLog, PlatformResourceUsageSummary, PlatformResourceUtilization, PlatformResourcesHealth, PlatformResourcesRequirementsState, PlatformResourcesResolvedRequirement, PlatformWebhookEndpoint, PlatformWebhookEvent, Resource, ResourceDeclaredCapacity, ResourceDefinition, ResourceEvent, ResourceInstallation, ResourceStatusCheck, ResourceUsageLog, ResourceUsageSummary, ResourceUtilization, ResourcesHealth, ResourcesRequirementsState, ResourcesResolvedRequirement, WebhookEndpoint, WebhookEvent + * Tables: ContentPreset, DbPreset, FunctionApiBinding, FunctionCapabilityBinding, FunctionDefinition, FunctionDeployment, FunctionDeploymentEvent, FunctionExecutionLog, FunctionGraphCommit, FunctionGraph, FunctionGraphExecution, FunctionGraphExecutionNodeState, FunctionGraphExecutionOutput, FunctionGraphObject, FunctionGraphRef, FunctionGraphStore, FunctionInvocationAttempt, FunctionInvocation, GetAllTreeNodesRecord, InfraCommit, InfraGetAllTreeNodesRecord, InfraObject, InfraRef, InfraStore, IntegrationProvider, Namespace, NamespaceEvent, PlatformFunctionApiBinding, PlatformFunctionCapabilityBinding, PlatformFunctionDefinition, PlatformFunctionDeployment, PlatformFunctionDeploymentEvent, PlatformFunctionExecutionLog, PlatformFunctionInvocationAttempt, PlatformFunctionInvocation, PlatformInfraCommit, PlatformInfraGetAllTreeNodesRecord, PlatformInfraObject, PlatformInfraRef, PlatformInfraStore, PlatformNamespace, PlatformNamespaceEvent, PlatformResource, PlatformResourceDeclaredCapacity, PlatformResourceDefinition, PlatformResourceEvent, PlatformResourceInstallation, PlatformResourceStatusCheck, PlatformResourceUsageLog, PlatformResourceUsageSummary, PlatformResourceUtilization, PlatformResourcesHealth, PlatformResourcesRequirementsState, PlatformResourcesResolvedRequirement, PlatformWebhookEndpoint, PlatformWebhookEvent, Resource, ResourceDeclaredCapacity, ResourceDefinition, ResourceEvent, ResourceInstallation, ResourceStatusCheck, ResourceUsageLog, ResourceUsageSummary, ResourceUtilization, ResourcesHealth, ResourcesRequirementsState, ResourcesResolvedRequirement, WebhookEndpoint, WebhookEvent * * Usage: * diff --git a/sdk/constructive-react/src/compute/hooks/invalidation.ts b/sdk/constructive-react/src/compute/hooks/invalidation.ts index c97b212a12..968d643276 100644 --- a/sdk/constructive-react/src/compute/hooks/invalidation.ts +++ b/sdk/constructive-react/src/compute/hooks/invalidation.ts @@ -15,6 +15,7 @@ import type { QueryClient } from '@tanstack/react-query'; import { + contentPresetKeys, dbPresetKeys, functionApiBindingKeys, functionCapabilityBindingKeys, @@ -105,6 +106,23 @@ import { * ``` */ export const invalidate = { + /** Invalidate contentPreset queries */ contentPreset: { + /** Invalidate all contentPreset queries */ all: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: contentPresetKeys.all, + }), + /** Invalidate contentPreset list queries */ lists: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: contentPresetKeys.lists(), + }), + /** Invalidate a specific contentPreset */ detail: ( + queryClient: QueryClient, + id: string | number + ) => + queryClient.invalidateQueries({ + queryKey: contentPresetKeys.detail(id), + }), + }, /** Invalidate dbPreset queries */ dbPreset: { /** Invalidate all dbPreset queries */ all: (queryClient: QueryClient) => queryClient.invalidateQueries({ @@ -1311,6 +1329,14 @@ export const invalidate = { * instead of just invalidating (which would trigger a refetch). */ export const remove = { + /** Remove contentPreset from cache */ contentPreset: ( + queryClient: QueryClient, + id: string | number + ) => { + queryClient.removeQueries({ + queryKey: contentPresetKeys.detail(id), + }); + }, /** Remove dbPreset from cache */ dbPreset: (queryClient: QueryClient, id: string | number) => { queryClient.removeQueries({ queryKey: dbPresetKeys.detail(id), diff --git a/sdk/constructive-react/src/compute/hooks/mutation-keys.ts b/sdk/constructive-react/src/compute/hooks/mutation-keys.ts index 0464eaef3e..2f18965532 100644 --- a/sdk/constructive-react/src/compute/hooks/mutation-keys.ts +++ b/sdk/constructive-react/src/compute/hooks/mutation-keys.ts @@ -18,6 +18,15 @@ // Entity Mutation Keys // ============================================================================ +export const contentPresetMutationKeys = { + /** All contentPreset mutation keys */ all: ['mutation', 'contentpreset'] as const, + /** Create contentPreset mutation key */ create: () => + ['mutation', 'contentpreset', 'create'] as const, + /** Update contentPreset mutation key */ update: (id: string | number) => + ['mutation', 'contentpreset', 'update', id] as const, + /** Delete contentPreset mutation key */ delete: (id: string | number) => + ['mutation', 'contentpreset', 'delete', id] as const, +} as const; export const dbPresetMutationKeys = { /** All dbPreset mutation keys */ all: ['mutation', 'dbpreset'] as const, /** Create dbPreset mutation key */ create: () => ['mutation', 'dbpreset', 'create'] as const, @@ -775,10 +784,22 @@ export const customMutationKeys = { identifier ? (['mutation', 'infraInsertNodeAtPath', identifier] as const) : (['mutation', 'infraInsertNodeAtPath'] as const), + /** Mutation key for infraInsertNodesAtPaths */ infraInsertNodesAtPaths: (identifier?: string) => + identifier + ? (['mutation', 'infraInsertNodesAtPaths', identifier] as const) + : (['mutation', 'infraInsertNodesAtPaths'] as const), + /** Mutation key for infraSetAndCommit */ infraSetAndCommit: (identifier?: string) => + identifier + ? (['mutation', 'infraSetAndCommit', identifier] as const) + : (['mutation', 'infraSetAndCommit'] as const), /** Mutation key for infraSetDataAtPath */ infraSetDataAtPath: (identifier?: string) => identifier ? (['mutation', 'infraSetDataAtPath', identifier] as const) : (['mutation', 'infraSetDataAtPath'] as const), + /** Mutation key for infraSetManyAndCommit */ infraSetManyAndCommit: (identifier?: string) => + identifier + ? (['mutation', 'infraSetManyAndCommit', identifier] as const) + : (['mutation', 'infraSetManyAndCommit'] as const), /** Mutation key for initEmptyRepo */ initEmptyRepo: (identifier?: string) => identifier ? (['mutation', 'initEmptyRepo', identifier] as const) @@ -787,6 +808,10 @@ export const customMutationKeys = { identifier ? (['mutation', 'insertNodeAtPath', identifier] as const) : (['mutation', 'insertNodeAtPath'] as const), + /** Mutation key for insertNodesAtPaths */ insertNodesAtPaths: (identifier?: string) => + identifier + ? (['mutation', 'insertNodesAtPaths', identifier] as const) + : (['mutation', 'insertNodesAtPaths'] as const), /** Mutation key for platformInfraInitEmptyRepo */ platformInfraInitEmptyRepo: ( identifier?: string ) => @@ -799,12 +824,30 @@ export const customMutationKeys = { identifier ? (['mutation', 'platformInfraInsertNodeAtPath', identifier] as const) : (['mutation', 'platformInfraInsertNodeAtPath'] as const), + /** Mutation key for platformInfraInsertNodesAtPaths */ platformInfraInsertNodesAtPaths: ( + identifier?: string + ) => + identifier + ? (['mutation', 'platformInfraInsertNodesAtPaths', identifier] as const) + : (['mutation', 'platformInfraInsertNodesAtPaths'] as const), + /** Mutation key for platformInfraSetAndCommit */ platformInfraSetAndCommit: ( + identifier?: string + ) => + identifier + ? (['mutation', 'platformInfraSetAndCommit', identifier] as const) + : (['mutation', 'platformInfraSetAndCommit'] as const), /** Mutation key for platformInfraSetDataAtPath */ platformInfraSetDataAtPath: ( identifier?: string ) => identifier ? (['mutation', 'platformInfraSetDataAtPath', identifier] as const) : (['mutation', 'platformInfraSetDataAtPath'] as const), + /** Mutation key for platformInfraSetManyAndCommit */ platformInfraSetManyAndCommit: ( + identifier?: string + ) => + identifier + ? (['mutation', 'platformInfraSetManyAndCommit', identifier] as const) + : (['mutation', 'platformInfraSetManyAndCommit'] as const), /** Mutation key for platformResourceInstallationsInstall */ platformResourceInstallationsInstall: (identifier?: string) => identifier @@ -857,10 +900,18 @@ export const customMutationKeys = { identifier ? (['mutation', 'saveGraph', identifier] as const) : (['mutation', 'saveGraph'] as const), + /** Mutation key for setAndCommit */ setAndCommit: (identifier?: string) => + identifier + ? (['mutation', 'setAndCommit', identifier] as const) + : (['mutation', 'setAndCommit'] as const), /** Mutation key for setDataAtPath */ setDataAtPath: (identifier?: string) => identifier ? (['mutation', 'setDataAtPath', identifier] as const) : (['mutation', 'setDataAtPath'] as const), + /** Mutation key for setManyAndCommit */ setManyAndCommit: (identifier?: string) => + identifier + ? (['mutation', 'setManyAndCommit', identifier] as const) + : (['mutation', 'setManyAndCommit'] as const), /** Mutation key for startExecution */ startExecution: (identifier?: string) => identifier ? (['mutation', 'startExecution', identifier] as const) @@ -893,6 +944,7 @@ export const customMutationKeys = { * ``` */ export const mutationKeys = { + contentPreset: contentPresetMutationKeys, dbPreset: dbPresetMutationKeys, functionApiBinding: functionApiBindingMutationKeys, functionCapabilityBinding: functionCapabilityBindingMutationKeys, diff --git a/sdk/constructive-react/src/compute/hooks/mutations/index.ts b/sdk/constructive-react/src/compute/hooks/mutations/index.ts index e44b98ba84..c2ec348302 100644 --- a/sdk/constructive-react/src/compute/hooks/mutations/index.ts +++ b/sdk/constructive-react/src/compute/hooks/mutations/index.ts @@ -3,6 +3,9 @@ * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ +export * from './useCreateContentPresetMutation'; +export * from './useUpdateContentPresetMutation'; +export * from './useDeleteContentPresetMutation'; export * from './useCreateDbPresetMutation'; export * from './useUpdateDbPresetMutation'; export * from './useDeleteDbPresetMutation'; @@ -193,12 +196,19 @@ export * from './useImportDefinitionsMutation'; export * from './useImportGraphJsonMutation'; export * from './useInfraInitEmptyRepoMutation'; export * from './useInfraInsertNodeAtPathMutation'; +export * from './useInfraInsertNodesAtPathsMutation'; +export * from './useInfraSetAndCommitMutation'; export * from './useInfraSetDataAtPathMutation'; +export * from './useInfraSetManyAndCommitMutation'; export * from './useInitEmptyRepoMutation'; export * from './useInsertNodeAtPathMutation'; +export * from './useInsertNodesAtPathsMutation'; export * from './usePlatformInfraInitEmptyRepoMutation'; export * from './usePlatformInfraInsertNodeAtPathMutation'; +export * from './usePlatformInfraInsertNodesAtPathsMutation'; +export * from './usePlatformInfraSetAndCommitMutation'; export * from './usePlatformInfraSetDataAtPathMutation'; +export * from './usePlatformInfraSetManyAndCommitMutation'; export * from './usePlatformResourceInstallationsInstallMutation'; export * from './usePlatformResourceInstallationsRollbackMutation'; export * from './usePlatformResourceInstallationsUninstallMutation'; @@ -209,6 +219,8 @@ export * from './useResourceInstallationsRollbackMutation'; export * from './useResourceInstallationsUninstallMutation'; export * from './useResourceInstallationsUpgradeMutation'; export * from './useSaveGraphMutation'; +export * from './useSetAndCommitMutation'; export * from './useSetDataAtPathMutation'; +export * from './useSetManyAndCommitMutation'; export * from './useStartExecutionMutation'; export * from './useValidateFunctionGraphMutation'; diff --git a/sdk/constructive-react/src/compute/hooks/mutations/useCreateContentPresetMutation.ts b/sdk/constructive-react/src/compute/hooks/mutations/useCreateContentPresetMutation.ts new file mode 100644 index 0000000000..b710975d4a --- /dev/null +++ b/sdk/constructive-react/src/compute/hooks/mutations/useCreateContentPresetMutation.ts @@ -0,0 +1,88 @@ +/** + * Seed-content preset catalog (limit defaults, trust ladders, ...) — merkle-versioned head over the infra store + * @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 { contentPresetKeys } from '../query-keys'; +import { contentPresetMutationKeys } from '../mutation-keys'; +import type { + ContentPresetSelect, + ContentPresetWithRelations, + CreateContentPresetInput, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + ContentPresetSelect, + ContentPresetWithRelations, + CreateContentPresetInput, +} from '../../orm/input-types'; +/** + * Seed-content preset catalog (limit defaults, trust ladders, ...) — merkle-versioned head over the infra store + * + * @example + * ```tsx + * const { mutate, isPending } = useCreateContentPresetMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ name: 'New item' }); + * ``` + */ +export function useCreateContentPresetMutation( + params: { + selection: { + fields: S & ContentPresetSelect; + } & HookStrictSelect, ContentPresetSelect>; + } & Omit< + UseMutationOptions< + { + createContentPreset: { + contentPreset: InferSelectResult; + }; + }, + Error, + CreateContentPresetInput['contentPreset'] + >, + 'mutationFn' + > +): UseMutationResult< + { + createContentPreset: { + contentPreset: InferSelectResult; + }; + }, + Error, + CreateContentPresetInput['contentPreset'] +>; +export function useCreateContentPresetMutation( + params: { + selection: SelectionConfig; + } & Omit, 'mutationFn'> +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: contentPresetMutationKeys.create(), + mutationFn: (data: CreateContentPresetInput['contentPreset']) => + getClient() + .contentPreset.create({ + data, + select: args.select, + }) + .unwrap(), + onSuccess: () => { + queryClient.invalidateQueries({ + queryKey: contentPresetKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/admin/hooks/mutations/useDeleteOrgPermissionMutation.ts b/sdk/constructive-react/src/compute/hooks/mutations/useDeleteContentPresetMutation.ts similarity index 55% rename from sdk/constructive-react/src/admin/hooks/mutations/useDeleteOrgPermissionMutation.ts rename to sdk/constructive-react/src/compute/hooks/mutations/useDeleteContentPresetMutation.ts index 1c02a813ab..3ef5345b7b 100644 --- a/sdk/constructive-react/src/admin/hooks/mutations/useDeleteOrgPermissionMutation.ts +++ b/sdk/constructive-react/src/compute/hooks/mutations/useDeleteContentPresetMutation.ts @@ -1,5 +1,5 @@ /** - * Defines available permissions as named bits within a bitmask, used by the RBAC system for access control + * Seed-content preset catalog (limit defaults, trust ladders, ...) — merkle-versioned head over the infra store * @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 { orgPermissionKeys } from '../query-keys'; -import { orgPermissionMutationKeys } from '../mutation-keys'; -import type { OrgPermissionSelect, OrgPermissionWithRelations } from '../../orm/input-types'; +import { contentPresetKeys } from '../query-keys'; +import { contentPresetMutationKeys } from '../mutation-keys'; +import type { ContentPresetSelect, ContentPresetWithRelations } from '../../orm/input-types'; import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { OrgPermissionSelect, OrgPermissionWithRelations } from '../../orm/input-types'; +export type { ContentPresetSelect, ContentPresetWithRelations } from '../../orm/input-types'; /** - * Defines available permissions as named bits within a bitmask, used by the RBAC system for access control + * Seed-content preset catalog (limit defaults, trust ladders, ...) — merkle-versioned head over the infra store * * @example * ```tsx - * const { mutate, isPending } = useDeleteOrgPermissionMutation({ + * const { mutate, isPending } = useDeleteContentPresetMutation({ * selection: { fields: { id: true } }, * }); * * mutate({ id: 'value-to-delete' }); * ``` */ -export function useDeleteOrgPermissionMutation( +export function useDeleteContentPresetMutation( params: { selection: { - fields: S & OrgPermissionSelect; - } & HookStrictSelect, OrgPermissionSelect>; + fields: S & ContentPresetSelect; + } & HookStrictSelect, ContentPresetSelect>; } & Omit< UseMutationOptions< { - deleteOrgPermission: { - orgPermission: InferSelectResult; + deleteContentPreset: { + contentPreset: InferSelectResult; }; }, Error, @@ -47,8 +47,8 @@ export function useDeleteOrgPermissionMutation( > ): UseMutationResult< { - deleteOrgPermission: { - orgPermission: InferSelectResult; + deleteContentPreset: { + contentPreset: InferSelectResult; }; }, Error, @@ -56,9 +56,9 @@ export function useDeleteOrgPermissionMutation( id: string; } >; -export function useDeleteOrgPermissionMutation( +export function useDeleteContentPresetMutation( params: { - selection: SelectionConfig; + selection: SelectionConfig; } & Omit< UseMutationOptions< any, @@ -70,15 +70,15 @@ export function useDeleteOrgPermissionMutation( 'mutationFn' > ) { - const args = buildSelectionArgs(params.selection); + const args = buildSelectionArgs(params.selection); const { selection: _selection, ...mutationOptions } = params ?? {}; void _selection; const queryClient = useQueryClient(); return useMutation({ - mutationKey: orgPermissionMutationKeys.all, + mutationKey: contentPresetMutationKeys.all, mutationFn: ({ id }: { id: string }) => getClient() - .orgPermission.delete({ + .contentPreset.delete({ where: { id, }, @@ -87,10 +87,10 @@ export function useDeleteOrgPermissionMutation( .unwrap(), onSuccess: (_, variables) => { queryClient.removeQueries({ - queryKey: orgPermissionKeys.detail(variables.id), + queryKey: contentPresetKeys.detail(variables.id), }); queryClient.invalidateQueries({ - queryKey: orgPermissionKeys.lists(), + queryKey: contentPresetKeys.lists(), }); }, ...mutationOptions, diff --git a/sdk/constructive-react/src/modules/hooks/mutations/useProvisionFullTextSearchMutation.ts b/sdk/constructive-react/src/compute/hooks/mutations/useInfraInsertNodesAtPathsMutation.ts similarity index 51% rename from sdk/constructive-react/src/modules/hooks/mutations/useProvisionFullTextSearchMutation.ts rename to sdk/constructive-react/src/compute/hooks/mutations/useInfraInsertNodesAtPathsMutation.ts index 62ee82bcb1..f9b756d583 100644 --- a/sdk/constructive-react/src/modules/hooks/mutations/useProvisionFullTextSearchMutation.ts +++ b/sdk/constructive-react/src/compute/hooks/mutations/useInfraInsertNodesAtPathsMutation.ts @@ -1,5 +1,5 @@ /** - * Custom mutation hook for provisionFullTextSearch + * Custom mutation hook for infraInsertNodesAtPaths * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -10,48 +10,48 @@ import { getClient } from '../client'; import { buildSelectionArgs } from '../selection'; import type { SelectionConfig } from '../selection'; import { customMutationKeys } from '../mutation-keys'; -import type { ProvisionFullTextSearchVariables } from '../../orm/mutation'; +import type { InfraInsertNodesAtPathsVariables } from '../../orm/mutation'; import type { - ProvisionFullTextSearchPayloadSelect, - ProvisionFullTextSearchPayload, + InfraInsertNodesAtPathsPayloadSelect, + InfraInsertNodesAtPathsPayload, } from '../../orm/input-types'; import type { InferSelectResult, HookStrictSelect, StrictSelect } from '../../orm/select-types'; -export type { ProvisionFullTextSearchVariables } from '../../orm/mutation'; -export type { ProvisionFullTextSearchPayloadSelect } from '../../orm/input-types'; -export function useProvisionFullTextSearchMutation( +export type { InfraInsertNodesAtPathsVariables } from '../../orm/mutation'; +export type { InfraInsertNodesAtPathsPayloadSelect } from '../../orm/input-types'; +export function useInfraInsertNodesAtPathsMutation( params: { selection: { - fields: S & ProvisionFullTextSearchPayloadSelect; - } & HookStrictSelect, ProvisionFullTextSearchPayloadSelect>; + fields: S & InfraInsertNodesAtPathsPayloadSelect; + } & HookStrictSelect, InfraInsertNodesAtPathsPayloadSelect>; } & Omit< UseMutationOptions< { - provisionFullTextSearch: InferSelectResult | null; + infraInsertNodesAtPaths: InferSelectResult | null; }, Error, - ProvisionFullTextSearchVariables + InfraInsertNodesAtPathsVariables >, 'mutationFn' > ): UseMutationResult< { - provisionFullTextSearch: InferSelectResult | null; + infraInsertNodesAtPaths: InferSelectResult | null; }, Error, - ProvisionFullTextSearchVariables + InfraInsertNodesAtPathsVariables > { const args = buildSelectionArgs(params.selection); const { selection: _selection, ...mutationOptions } = params ?? {}; void _selection; return useMutation({ - mutationKey: customMutationKeys.provisionFullTextSearch(), - mutationFn: (variables: ProvisionFullTextSearchVariables) => + mutationKey: customMutationKeys.infraInsertNodesAtPaths(), + mutationFn: (variables: InfraInsertNodesAtPathsVariables) => getClient() - .mutation.provisionFullTextSearch(variables, { + .mutation.infraInsertNodesAtPaths(variables, { select: args.select, } as { select: S; - } & StrictSelect) + } & StrictSelect) .unwrap(), ...mutationOptions, }); diff --git a/sdk/constructive-react/src/modules/hooks/mutations/useProvisionRelationMutation.ts b/sdk/constructive-react/src/compute/hooks/mutations/useInfraSetAndCommitMutation.ts similarity index 54% rename from sdk/constructive-react/src/modules/hooks/mutations/useProvisionRelationMutation.ts rename to sdk/constructive-react/src/compute/hooks/mutations/useInfraSetAndCommitMutation.ts index bb8032dba0..46a2bad5c9 100644 --- a/sdk/constructive-react/src/modules/hooks/mutations/useProvisionRelationMutation.ts +++ b/sdk/constructive-react/src/compute/hooks/mutations/useInfraSetAndCommitMutation.ts @@ -1,5 +1,5 @@ /** - * Custom mutation hook for provisionRelation + * Custom mutation hook for infraSetAndCommit * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -10,48 +10,48 @@ import { getClient } from '../client'; import { buildSelectionArgs } from '../selection'; import type { SelectionConfig } from '../selection'; import { customMutationKeys } from '../mutation-keys'; -import type { ProvisionRelationVariables } from '../../orm/mutation'; +import type { InfraSetAndCommitVariables } from '../../orm/mutation'; import type { - ProvisionRelationPayloadSelect, - ProvisionRelationPayload, + InfraSetAndCommitPayloadSelect, + InfraSetAndCommitPayload, } from '../../orm/input-types'; import type { InferSelectResult, HookStrictSelect, StrictSelect } from '../../orm/select-types'; -export type { ProvisionRelationVariables } from '../../orm/mutation'; -export type { ProvisionRelationPayloadSelect } from '../../orm/input-types'; -export function useProvisionRelationMutation( +export type { InfraSetAndCommitVariables } from '../../orm/mutation'; +export type { InfraSetAndCommitPayloadSelect } from '../../orm/input-types'; +export function useInfraSetAndCommitMutation( params: { selection: { - fields: S & ProvisionRelationPayloadSelect; - } & HookStrictSelect, ProvisionRelationPayloadSelect>; + fields: S & InfraSetAndCommitPayloadSelect; + } & HookStrictSelect, InfraSetAndCommitPayloadSelect>; } & Omit< UseMutationOptions< { - provisionRelation: InferSelectResult | null; + infraSetAndCommit: InferSelectResult | null; }, Error, - ProvisionRelationVariables + InfraSetAndCommitVariables >, 'mutationFn' > ): UseMutationResult< { - provisionRelation: InferSelectResult | null; + infraSetAndCommit: InferSelectResult | null; }, Error, - ProvisionRelationVariables + InfraSetAndCommitVariables > { const args = buildSelectionArgs(params.selection); const { selection: _selection, ...mutationOptions } = params ?? {}; void _selection; return useMutation({ - mutationKey: customMutationKeys.provisionRelation(), - mutationFn: (variables: ProvisionRelationVariables) => + mutationKey: customMutationKeys.infraSetAndCommit(), + mutationFn: (variables: InfraSetAndCommitVariables) => getClient() - .mutation.provisionRelation(variables, { + .mutation.infraSetAndCommit(variables, { select: args.select, } as { select: S; - } & StrictSelect) + } & StrictSelect) .unwrap(), ...mutationOptions, }); diff --git a/sdk/constructive-react/src/compute/hooks/mutations/useInfraSetManyAndCommitMutation.ts b/sdk/constructive-react/src/compute/hooks/mutations/useInfraSetManyAndCommitMutation.ts new file mode 100644 index 0000000000..0f388c9cd3 --- /dev/null +++ b/sdk/constructive-react/src/compute/hooks/mutations/useInfraSetManyAndCommitMutation.ts @@ -0,0 +1,58 @@ +/** + * Custom mutation hook for infraSetManyAndCommit + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ + +import { useMutation } from '@tanstack/react-query'; +import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; +import { getClient } from '../client'; +import { buildSelectionArgs } from '../selection'; +import type { SelectionConfig } from '../selection'; +import { customMutationKeys } from '../mutation-keys'; +import type { InfraSetManyAndCommitVariables } from '../../orm/mutation'; +import type { + InfraSetManyAndCommitPayloadSelect, + InfraSetManyAndCommitPayload, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect, StrictSelect } from '../../orm/select-types'; +export type { InfraSetManyAndCommitVariables } from '../../orm/mutation'; +export type { InfraSetManyAndCommitPayloadSelect } from '../../orm/input-types'; +export function useInfraSetManyAndCommitMutation( + params: { + selection: { + fields: S & InfraSetManyAndCommitPayloadSelect; + } & HookStrictSelect, InfraSetManyAndCommitPayloadSelect>; + } & Omit< + UseMutationOptions< + { + infraSetManyAndCommit: InferSelectResult | null; + }, + Error, + InfraSetManyAndCommitVariables + >, + 'mutationFn' + > +): UseMutationResult< + { + infraSetManyAndCommit: InferSelectResult | null; + }, + Error, + InfraSetManyAndCommitVariables +> { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + return useMutation({ + mutationKey: customMutationKeys.infraSetManyAndCommit(), + mutationFn: (variables: InfraSetManyAndCommitVariables) => + getClient() + .mutation.infraSetManyAndCommit(variables, { + select: args.select, + } as { + select: S; + } & StrictSelect) + .unwrap(), + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/compute/hooks/mutations/useInsertNodesAtPathsMutation.ts b/sdk/constructive-react/src/compute/hooks/mutations/useInsertNodesAtPathsMutation.ts new file mode 100644 index 0000000000..70612f27eb --- /dev/null +++ b/sdk/constructive-react/src/compute/hooks/mutations/useInsertNodesAtPathsMutation.ts @@ -0,0 +1,58 @@ +/** + * Custom mutation hook for insertNodesAtPaths + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ + +import { useMutation } from '@tanstack/react-query'; +import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; +import { getClient } from '../client'; +import { buildSelectionArgs } from '../selection'; +import type { SelectionConfig } from '../selection'; +import { customMutationKeys } from '../mutation-keys'; +import type { InsertNodesAtPathsVariables } from '../../orm/mutation'; +import type { + InsertNodesAtPathsPayloadSelect, + InsertNodesAtPathsPayload, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect, StrictSelect } from '../../orm/select-types'; +export type { InsertNodesAtPathsVariables } from '../../orm/mutation'; +export type { InsertNodesAtPathsPayloadSelect } from '../../orm/input-types'; +export function useInsertNodesAtPathsMutation( + params: { + selection: { + fields: S & InsertNodesAtPathsPayloadSelect; + } & HookStrictSelect, InsertNodesAtPathsPayloadSelect>; + } & Omit< + UseMutationOptions< + { + insertNodesAtPaths: InferSelectResult | null; + }, + Error, + InsertNodesAtPathsVariables + >, + 'mutationFn' + > +): UseMutationResult< + { + insertNodesAtPaths: InferSelectResult | null; + }, + Error, + InsertNodesAtPathsVariables +> { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + return useMutation({ + mutationKey: customMutationKeys.insertNodesAtPaths(), + mutationFn: (variables: InsertNodesAtPathsVariables) => + getClient() + .mutation.insertNodesAtPaths(variables, { + select: args.select, + } as { + select: S; + } & StrictSelect) + .unwrap(), + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/compute/hooks/mutations/usePlatformInfraInsertNodesAtPathsMutation.ts b/sdk/constructive-react/src/compute/hooks/mutations/usePlatformInfraInsertNodesAtPathsMutation.ts new file mode 100644 index 0000000000..924154505d --- /dev/null +++ b/sdk/constructive-react/src/compute/hooks/mutations/usePlatformInfraInsertNodesAtPathsMutation.ts @@ -0,0 +1,66 @@ +/** + * Custom mutation hook for platformInfraInsertNodesAtPaths + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ + +import { useMutation } from '@tanstack/react-query'; +import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; +import { getClient } from '../client'; +import { buildSelectionArgs } from '../selection'; +import type { SelectionConfig } from '../selection'; +import { customMutationKeys } from '../mutation-keys'; +import type { PlatformInfraInsertNodesAtPathsVariables } from '../../orm/mutation'; +import type { + PlatformInfraInsertNodesAtPathsPayloadSelect, + PlatformInfraInsertNodesAtPathsPayload, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect, StrictSelect } from '../../orm/select-types'; +export type { PlatformInfraInsertNodesAtPathsVariables } from '../../orm/mutation'; +export type { PlatformInfraInsertNodesAtPathsPayloadSelect } from '../../orm/input-types'; +export function usePlatformInfraInsertNodesAtPathsMutation< + S extends PlatformInfraInsertNodesAtPathsPayloadSelect, +>( + params: { + selection: { + fields: S & PlatformInfraInsertNodesAtPathsPayloadSelect; + } & HookStrictSelect, PlatformInfraInsertNodesAtPathsPayloadSelect>; + } & Omit< + UseMutationOptions< + { + platformInfraInsertNodesAtPaths: InferSelectResult< + PlatformInfraInsertNodesAtPathsPayload, + S + > | null; + }, + Error, + PlatformInfraInsertNodesAtPathsVariables + >, + 'mutationFn' + > +): UseMutationResult< + { + platformInfraInsertNodesAtPaths: InferSelectResult< + PlatformInfraInsertNodesAtPathsPayload, + S + > | null; + }, + Error, + PlatformInfraInsertNodesAtPathsVariables +> { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + return useMutation({ + mutationKey: customMutationKeys.platformInfraInsertNodesAtPaths(), + mutationFn: (variables: PlatformInfraInsertNodesAtPathsVariables) => + getClient() + .mutation.platformInfraInsertNodesAtPaths(variables, { + select: args.select, + } as { + select: S; + } & StrictSelect) + .unwrap(), + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/modules/hooks/mutations/useProvisionUniqueConstraintMutation.ts b/sdk/constructive-react/src/compute/hooks/mutations/usePlatformInfraSetAndCommitMutation.ts similarity index 51% rename from sdk/constructive-react/src/modules/hooks/mutations/useProvisionUniqueConstraintMutation.ts rename to sdk/constructive-react/src/compute/hooks/mutations/usePlatformInfraSetAndCommitMutation.ts index 7af850b840..9bac5e7fd6 100644 --- a/sdk/constructive-react/src/modules/hooks/mutations/useProvisionUniqueConstraintMutation.ts +++ b/sdk/constructive-react/src/compute/hooks/mutations/usePlatformInfraSetAndCommitMutation.ts @@ -1,5 +1,5 @@ /** - * Custom mutation hook for provisionUniqueConstraint + * Custom mutation hook for platformInfraSetAndCommit * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -10,50 +10,50 @@ import { getClient } from '../client'; import { buildSelectionArgs } from '../selection'; import type { SelectionConfig } from '../selection'; import { customMutationKeys } from '../mutation-keys'; -import type { ProvisionUniqueConstraintVariables } from '../../orm/mutation'; +import type { PlatformInfraSetAndCommitVariables } from '../../orm/mutation'; import type { - ProvisionUniqueConstraintPayloadSelect, - ProvisionUniqueConstraintPayload, + PlatformInfraSetAndCommitPayloadSelect, + PlatformInfraSetAndCommitPayload, } from '../../orm/input-types'; import type { InferSelectResult, HookStrictSelect, StrictSelect } from '../../orm/select-types'; -export type { ProvisionUniqueConstraintVariables } from '../../orm/mutation'; -export type { ProvisionUniqueConstraintPayloadSelect } from '../../orm/input-types'; -export function useProvisionUniqueConstraintMutation< - S extends ProvisionUniqueConstraintPayloadSelect, +export type { PlatformInfraSetAndCommitVariables } from '../../orm/mutation'; +export type { PlatformInfraSetAndCommitPayloadSelect } from '../../orm/input-types'; +export function usePlatformInfraSetAndCommitMutation< + S extends PlatformInfraSetAndCommitPayloadSelect, >( params: { selection: { - fields: S & ProvisionUniqueConstraintPayloadSelect; - } & HookStrictSelect, ProvisionUniqueConstraintPayloadSelect>; + fields: S & PlatformInfraSetAndCommitPayloadSelect; + } & HookStrictSelect, PlatformInfraSetAndCommitPayloadSelect>; } & Omit< UseMutationOptions< { - provisionUniqueConstraint: InferSelectResult | null; + platformInfraSetAndCommit: InferSelectResult | null; }, Error, - ProvisionUniqueConstraintVariables + PlatformInfraSetAndCommitVariables >, 'mutationFn' > ): UseMutationResult< { - provisionUniqueConstraint: InferSelectResult | null; + platformInfraSetAndCommit: InferSelectResult | null; }, Error, - ProvisionUniqueConstraintVariables + PlatformInfraSetAndCommitVariables > { const args = buildSelectionArgs(params.selection); const { selection: _selection, ...mutationOptions } = params ?? {}; void _selection; return useMutation({ - mutationKey: customMutationKeys.provisionUniqueConstraint(), - mutationFn: (variables: ProvisionUniqueConstraintVariables) => + mutationKey: customMutationKeys.platformInfraSetAndCommit(), + mutationFn: (variables: PlatformInfraSetAndCommitVariables) => getClient() - .mutation.provisionUniqueConstraint(variables, { + .mutation.platformInfraSetAndCommit(variables, { select: args.select, } as { select: S; - } & StrictSelect) + } & StrictSelect) .unwrap(), ...mutationOptions, }); diff --git a/sdk/constructive-react/src/compute/hooks/mutations/usePlatformInfraSetManyAndCommitMutation.ts b/sdk/constructive-react/src/compute/hooks/mutations/usePlatformInfraSetManyAndCommitMutation.ts new file mode 100644 index 0000000000..a6a7fcf2d0 --- /dev/null +++ b/sdk/constructive-react/src/compute/hooks/mutations/usePlatformInfraSetManyAndCommitMutation.ts @@ -0,0 +1,66 @@ +/** + * Custom mutation hook for platformInfraSetManyAndCommit + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ + +import { useMutation } from '@tanstack/react-query'; +import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; +import { getClient } from '../client'; +import { buildSelectionArgs } from '../selection'; +import type { SelectionConfig } from '../selection'; +import { customMutationKeys } from '../mutation-keys'; +import type { PlatformInfraSetManyAndCommitVariables } from '../../orm/mutation'; +import type { + PlatformInfraSetManyAndCommitPayloadSelect, + PlatformInfraSetManyAndCommitPayload, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect, StrictSelect } from '../../orm/select-types'; +export type { PlatformInfraSetManyAndCommitVariables } from '../../orm/mutation'; +export type { PlatformInfraSetManyAndCommitPayloadSelect } from '../../orm/input-types'; +export function usePlatformInfraSetManyAndCommitMutation< + S extends PlatformInfraSetManyAndCommitPayloadSelect, +>( + params: { + selection: { + fields: S & PlatformInfraSetManyAndCommitPayloadSelect; + } & HookStrictSelect, PlatformInfraSetManyAndCommitPayloadSelect>; + } & Omit< + UseMutationOptions< + { + platformInfraSetManyAndCommit: InferSelectResult< + PlatformInfraSetManyAndCommitPayload, + S + > | null; + }, + Error, + PlatformInfraSetManyAndCommitVariables + >, + 'mutationFn' + > +): UseMutationResult< + { + platformInfraSetManyAndCommit: InferSelectResult< + PlatformInfraSetManyAndCommitPayload, + S + > | null; + }, + Error, + PlatformInfraSetManyAndCommitVariables +> { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + return useMutation({ + mutationKey: customMutationKeys.platformInfraSetManyAndCommit(), + mutationFn: (variables: PlatformInfraSetManyAndCommitVariables) => + getClient() + .mutation.platformInfraSetManyAndCommit(variables, { + select: args.select, + } as { + select: S; + } & StrictSelect) + .unwrap(), + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/modules/hooks/mutations/useProvisionIndexMutation.ts b/sdk/constructive-react/src/compute/hooks/mutations/useSetAndCommitMutation.ts similarity index 51% rename from sdk/constructive-react/src/modules/hooks/mutations/useProvisionIndexMutation.ts rename to sdk/constructive-react/src/compute/hooks/mutations/useSetAndCommitMutation.ts index c195e16439..efbed76921 100644 --- a/sdk/constructive-react/src/modules/hooks/mutations/useProvisionIndexMutation.ts +++ b/sdk/constructive-react/src/compute/hooks/mutations/useSetAndCommitMutation.ts @@ -1,5 +1,5 @@ /** - * Custom mutation hook for provisionIndex + * Custom mutation hook for setAndCommit * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -10,45 +10,45 @@ import { getClient } from '../client'; import { buildSelectionArgs } from '../selection'; import type { SelectionConfig } from '../selection'; import { customMutationKeys } from '../mutation-keys'; -import type { ProvisionIndexVariables } from '../../orm/mutation'; -import type { ProvisionIndexPayloadSelect, ProvisionIndexPayload } from '../../orm/input-types'; +import type { SetAndCommitVariables } from '../../orm/mutation'; +import type { SetAndCommitPayloadSelect, SetAndCommitPayload } from '../../orm/input-types'; import type { InferSelectResult, HookStrictSelect, StrictSelect } from '../../orm/select-types'; -export type { ProvisionIndexVariables } from '../../orm/mutation'; -export type { ProvisionIndexPayloadSelect } from '../../orm/input-types'; -export function useProvisionIndexMutation( +export type { SetAndCommitVariables } from '../../orm/mutation'; +export type { SetAndCommitPayloadSelect } from '../../orm/input-types'; +export function useSetAndCommitMutation( params: { selection: { - fields: S & ProvisionIndexPayloadSelect; - } & HookStrictSelect, ProvisionIndexPayloadSelect>; + fields: S & SetAndCommitPayloadSelect; + } & HookStrictSelect, SetAndCommitPayloadSelect>; } & Omit< UseMutationOptions< { - provisionIndex: InferSelectResult | null; + setAndCommit: InferSelectResult | null; }, Error, - ProvisionIndexVariables + SetAndCommitVariables >, 'mutationFn' > ): UseMutationResult< { - provisionIndex: InferSelectResult | null; + setAndCommit: InferSelectResult | null; }, Error, - ProvisionIndexVariables + SetAndCommitVariables > { const args = buildSelectionArgs(params.selection); const { selection: _selection, ...mutationOptions } = params ?? {}; void _selection; return useMutation({ - mutationKey: customMutationKeys.provisionIndex(), - mutationFn: (variables: ProvisionIndexVariables) => + mutationKey: customMutationKeys.setAndCommit(), + mutationFn: (variables: SetAndCommitVariables) => getClient() - .mutation.provisionIndex(variables, { + .mutation.setAndCommit(variables, { select: args.select, } as { select: S; - } & StrictSelect) + } & StrictSelect) .unwrap(), ...mutationOptions, }); diff --git a/sdk/constructive-react/src/compute/hooks/mutations/useSetManyAndCommitMutation.ts b/sdk/constructive-react/src/compute/hooks/mutations/useSetManyAndCommitMutation.ts new file mode 100644 index 0000000000..91ead94fd0 --- /dev/null +++ b/sdk/constructive-react/src/compute/hooks/mutations/useSetManyAndCommitMutation.ts @@ -0,0 +1,55 @@ +/** + * Custom mutation hook for setManyAndCommit + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ + +import { useMutation } from '@tanstack/react-query'; +import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; +import { getClient } from '../client'; +import { buildSelectionArgs } from '../selection'; +import type { SelectionConfig } from '../selection'; +import { customMutationKeys } from '../mutation-keys'; +import type { SetManyAndCommitVariables } from '../../orm/mutation'; +import type { SetManyAndCommitPayloadSelect, SetManyAndCommitPayload } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect, StrictSelect } from '../../orm/select-types'; +export type { SetManyAndCommitVariables } from '../../orm/mutation'; +export type { SetManyAndCommitPayloadSelect } from '../../orm/input-types'; +export function useSetManyAndCommitMutation( + params: { + selection: { + fields: S & SetManyAndCommitPayloadSelect; + } & HookStrictSelect, SetManyAndCommitPayloadSelect>; + } & Omit< + UseMutationOptions< + { + setManyAndCommit: InferSelectResult | null; + }, + Error, + SetManyAndCommitVariables + >, + 'mutationFn' + > +): UseMutationResult< + { + setManyAndCommit: InferSelectResult | null; + }, + Error, + SetManyAndCommitVariables +> { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + return useMutation({ + mutationKey: customMutationKeys.setManyAndCommit(), + mutationFn: (variables: SetManyAndCommitVariables) => + getClient() + .mutation.setManyAndCommit(variables, { + select: args.select, + } as { + select: S; + } & StrictSelect) + .unwrap(), + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/admin/hooks/mutations/useUpdateAppPermissionMutation.ts b/sdk/constructive-react/src/compute/hooks/mutations/useUpdateContentPresetMutation.ts similarity index 50% rename from sdk/constructive-react/src/admin/hooks/mutations/useUpdateAppPermissionMutation.ts rename to sdk/constructive-react/src/compute/hooks/mutations/useUpdateContentPresetMutation.ts index 0b42bacb2f..85a7fce776 100644 --- a/sdk/constructive-react/src/admin/hooks/mutations/useUpdateAppPermissionMutation.ts +++ b/sdk/constructive-react/src/compute/hooks/mutations/useUpdateContentPresetMutation.ts @@ -1,5 +1,5 @@ /** - * Defines available permissions as named bits within a bitmask, used by the RBAC system for access control + * Seed-content preset catalog (limit defaults, trust ladders, ...) — merkle-versioned head over the infra store * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -9,106 +9,106 @@ import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-quer import { getClient } from '../client'; import { buildSelectionArgs } from '../selection'; import type { SelectionConfig } from '../selection'; -import { appPermissionKeys } from '../query-keys'; -import { appPermissionMutationKeys } from '../mutation-keys'; +import { contentPresetKeys } from '../query-keys'; +import { contentPresetMutationKeys } from '../mutation-keys'; import type { - AppPermissionSelect, - AppPermissionWithRelations, - AppPermissionPatch, + ContentPresetSelect, + ContentPresetWithRelations, + ContentPresetPatch, } from '../../orm/input-types'; import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; export type { - AppPermissionSelect, - AppPermissionWithRelations, - AppPermissionPatch, + ContentPresetSelect, + ContentPresetWithRelations, + ContentPresetPatch, } from '../../orm/input-types'; /** - * Defines available permissions as named bits within a bitmask, used by the RBAC system for access control + * Seed-content preset catalog (limit defaults, trust ladders, ...) — merkle-versioned head over the infra store * * @example * ```tsx - * const { mutate, isPending } = useUpdateAppPermissionMutation({ + * const { mutate, isPending } = useUpdateContentPresetMutation({ * selection: { fields: { id: true, name: true } }, * }); * - * mutate({ id: 'value-here', appPermissionPatch: { name: 'Updated' } }); + * mutate({ id: 'value-here', contentPresetPatch: { name: 'Updated' } }); * ``` */ -export function useUpdateAppPermissionMutation( +export function useUpdateContentPresetMutation( params: { selection: { - fields: S & AppPermissionSelect; - } & HookStrictSelect, AppPermissionSelect>; + fields: S & ContentPresetSelect; + } & HookStrictSelect, ContentPresetSelect>; } & Omit< UseMutationOptions< { - updateAppPermission: { - appPermission: InferSelectResult; + updateContentPreset: { + contentPreset: InferSelectResult; }; }, Error, { id: string; - appPermissionPatch: AppPermissionPatch; + contentPresetPatch: ContentPresetPatch; } >, 'mutationFn' > ): UseMutationResult< { - updateAppPermission: { - appPermission: InferSelectResult; + updateContentPreset: { + contentPreset: InferSelectResult; }; }, Error, { id: string; - appPermissionPatch: AppPermissionPatch; + contentPresetPatch: ContentPresetPatch; } >; -export function useUpdateAppPermissionMutation( +export function useUpdateContentPresetMutation( params: { - selection: SelectionConfig; + selection: SelectionConfig; } & Omit< UseMutationOptions< any, Error, { id: string; - appPermissionPatch: AppPermissionPatch; + contentPresetPatch: ContentPresetPatch; } >, 'mutationFn' > ) { - const args = buildSelectionArgs(params.selection); + const args = buildSelectionArgs(params.selection); const { selection: _selection, ...mutationOptions } = params ?? {}; void _selection; const queryClient = useQueryClient(); return useMutation({ - mutationKey: appPermissionMutationKeys.all, + mutationKey: contentPresetMutationKeys.all, mutationFn: ({ id, - appPermissionPatch, + contentPresetPatch, }: { id: string; - appPermissionPatch: AppPermissionPatch; + contentPresetPatch: ContentPresetPatch; }) => getClient() - .appPermission.update({ + .contentPreset.update({ where: { id, }, - data: appPermissionPatch, + data: contentPresetPatch, select: args.select, }) .unwrap(), onSuccess: (_, variables) => { queryClient.invalidateQueries({ - queryKey: appPermissionKeys.detail(variables.id), + queryKey: contentPresetKeys.detail(variables.id), }); queryClient.invalidateQueries({ - queryKey: appPermissionKeys.lists(), + queryKey: contentPresetKeys.lists(), }); }, ...mutationOptions, diff --git a/sdk/constructive-react/src/compute/hooks/queries/index.ts b/sdk/constructive-react/src/compute/hooks/queries/index.ts index 4ce588ee01..f6ad0cde08 100644 --- a/sdk/constructive-react/src/compute/hooks/queries/index.ts +++ b/sdk/constructive-react/src/compute/hooks/queries/index.ts @@ -3,6 +3,8 @@ * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ +export * from './useContentPresetsQuery'; +export * from './useContentPresetQuery'; export * from './useDbPresetsQuery'; export * from './useDbPresetQuery'; export * from './useFunctionApiBindingsQuery'; diff --git a/sdk/constructive-react/src/compute/hooks/queries/useContentPresetQuery.ts b/sdk/constructive-react/src/compute/hooks/queries/useContentPresetQuery.ts new file mode 100644 index 0000000000..61687e0ba3 --- /dev/null +++ b/sdk/constructive-react/src/compute/hooks/queries/useContentPresetQuery.ts @@ -0,0 +1,138 @@ +/** + * Seed-content preset catalog (limit defaults, trust ladders, ...) — merkle-versioned head over the infra store + * @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 { contentPresetKeys } from '../query-keys'; +import type { ContentPresetSelect, ContentPresetWithRelations } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { ContentPresetSelect, ContentPresetWithRelations } from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const contentPresetQueryKey = contentPresetKeys.detail; +/** + * Seed-content preset catalog (limit defaults, trust ladders, ...) — merkle-versioned head over the infra store + * + * @example + * ```tsx + * const { data, isLoading } = useContentPresetQuery({ + * id: 'some-id', + * selection: { fields: { id: true, name: true } }, + * }); + * ``` + */ +export function useContentPresetQuery< + S extends ContentPresetSelect, + TData = { + contentPreset: InferSelectResult | null; + }, +>( + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, ContentPresetSelect>; + } & Omit< + UseQueryOptions< + { + contentPreset: InferSelectResult | null; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useContentPresetQuery( + params: { + id: string; + selection: SelectionConfig; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: contentPresetKeys.detail(params.id), + queryFn: () => + getClient() + .contentPreset.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + ...queryOptions, + }); +} +/** + * Seed-content preset catalog (limit defaults, trust ladders, ...) — merkle-versioned head over the infra store + * + * @example + * ```ts + * const data = await fetchContentPresetQuery({ + * id: 'some-id', + * selection: { fields: { id: true } }, + * }); + * ``` + */ +export async function fetchContentPresetQuery(params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, ContentPresetSelect>; +}): Promise<{ + contentPreset: InferSelectResult | null; +}>; +export async function fetchContentPresetQuery(params: { + id: string; + selection: SelectionConfig; +}): Promise { + const args = buildSelectionArgs(params.selection); + return getClient() + .contentPreset.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(); +} +/** + * Seed-content preset catalog (limit defaults, trust ladders, ...) — merkle-versioned head over the infra store + * + * @example + * ```ts + * await prefetchContentPresetQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } }); + * ``` + */ +export async function prefetchContentPresetQuery( + queryClient: QueryClient, + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, ContentPresetSelect>; + } +): Promise; +export async function prefetchContentPresetQuery( + queryClient: QueryClient, + params: { + id: string; + selection: SelectionConfig; + } +): Promise { + const args = buildSelectionArgs(params.selection); + await queryClient.prefetchQuery({ + queryKey: contentPresetKeys.detail(params.id), + queryFn: () => + getClient() + .contentPreset.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + }); +} diff --git a/sdk/constructive-react/src/compute/hooks/queries/useContentPresetsQuery.ts b/sdk/constructive-react/src/compute/hooks/queries/useContentPresetsQuery.ts new file mode 100644 index 0000000000..c43b4f9766 --- /dev/null +++ b/sdk/constructive-react/src/compute/hooks/queries/useContentPresetsQuery.ts @@ -0,0 +1,151 @@ +/** + * Seed-content preset catalog (limit defaults, trust ladders, ...) — merkle-versioned head over the infra store + * @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 { contentPresetKeys } from '../query-keys'; +import type { + ContentPresetSelect, + ContentPresetWithRelations, + ContentPresetFilter, + ContentPresetOrderBy, +} from '../../orm/input-types'; +import type { + FindManyArgs, + InferSelectResult, + ConnectionResult, + HookStrictSelect, +} from '../../orm/select-types'; +export type { + ContentPresetSelect, + ContentPresetWithRelations, + ContentPresetFilter, + ContentPresetOrderBy, +} from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const contentPresetsQueryKey = contentPresetKeys.list; +/** + * Seed-content preset catalog (limit defaults, trust ladders, ...) — merkle-versioned head over the infra store + * + * @example + * ```tsx + * const { data, isLoading } = useContentPresetsQuery({ + * selection: { + * fields: { id: true, name: true }, + * where: { name: { equalTo: "example" } }, + * orderBy: ['CREATED_AT_DESC'], + * first: 10, + * }, + * }); + * ``` + */ +export function useContentPresetsQuery< + S extends ContentPresetSelect, + TData = { + contentPresets: ConnectionResult>; + }, +>( + params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, ContentPresetSelect>; + } & Omit< + UseQueryOptions< + { + contentPresets: ConnectionResult>; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useContentPresetsQuery( + params: { + selection: ListSelectionConfig; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildListSelectionArgs< + ContentPresetSelect, + ContentPresetFilter, + ContentPresetOrderBy + >(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: contentPresetKeys.list(args), + queryFn: () => getClient().contentPreset.findMany(args).unwrap(), + ...queryOptions, + }); +} +/** + * Seed-content preset catalog (limit defaults, trust ladders, ...) — merkle-versioned head over the infra store + * + * @example + * ```ts + * const data = await fetchContentPresetsQuery({ + * selection: { + * fields: { id: true }, + * first: 10, + * }, + * }); + * ``` + */ +export async function fetchContentPresetsQuery(params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, ContentPresetSelect>; +}): Promise<{ + contentPresets: ConnectionResult>; +}>; +export async function fetchContentPresetsQuery(params: { + selection: ListSelectionConfig; +}) { + const args = buildListSelectionArgs< + ContentPresetSelect, + ContentPresetFilter, + ContentPresetOrderBy + >(params.selection); + return getClient().contentPreset.findMany(args).unwrap(); +} +/** + * Seed-content preset catalog (limit defaults, trust ladders, ...) — merkle-versioned head over the infra store + * + * @example + * ```ts + * await prefetchContentPresetsQuery(queryClient, { selection: { fields: { id: true }, first: 10 } }); + * ``` + */ +export async function prefetchContentPresetsQuery( + queryClient: QueryClient, + params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, ContentPresetSelect>; + } +): Promise; +export async function prefetchContentPresetsQuery( + queryClient: QueryClient, + params: { + selection: ListSelectionConfig; + } +): Promise { + const args = buildListSelectionArgs< + ContentPresetSelect, + ContentPresetFilter, + ContentPresetOrderBy + >(params.selection); + await queryClient.prefetchQuery({ + queryKey: contentPresetKeys.list(args), + queryFn: () => getClient().contentPreset.findMany(args).unwrap(), + }); +} diff --git a/sdk/constructive-react/src/compute/hooks/query-keys.ts b/sdk/constructive-react/src/compute/hooks/query-keys.ts index 5156963bb3..4958367027 100644 --- a/sdk/constructive-react/src/compute/hooks/query-keys.ts +++ b/sdk/constructive-react/src/compute/hooks/query-keys.ts @@ -19,6 +19,15 @@ // Entity Query Keys // ============================================================================ +export const contentPresetKeys = { + /** All contentPreset queries */ all: ['contentpreset'] as const, + /** List query keys */ lists: () => [...contentPresetKeys.all, 'list'] as const, + /** List query key with variables */ list: (variables?: object) => + [...contentPresetKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...contentPresetKeys.all, 'detail'] as const, + /** Detail query key for specific item */ detail: (id: string | number) => + [...contentPresetKeys.details(), id] as const, +} as const; export const dbPresetKeys = { /** All dbPreset queries */ all: ['dbpreset'] as const, /** List query keys */ lists: () => [...dbPresetKeys.all, 'list'] as const, @@ -716,6 +725,7 @@ export const customQueryKeys = { * ``` */ export const queryKeys = { + contentPreset: contentPresetKeys, dbPreset: dbPresetKeys, functionApiBinding: functionApiBindingKeys, functionCapabilityBinding: functionCapabilityBindingKeys, diff --git a/sdk/constructive-react/src/compute/orm/README.md b/sdk/constructive-react/src/compute/orm/README.md index d1a03c4e98..a3ab572efd 100644 --- a/sdk/constructive-react/src/compute/orm/README.md +++ b/sdk/constructive-react/src/compute/orm/README.md @@ -21,6 +21,7 @@ const db = createClient({ | Model | Operations | |-------|------------| +| `contentPreset` | findMany, findOne, create, update, delete | | `dbPreset` | findMany, findOne, create, update, delete | | `functionApiBinding` | findMany, findOne, create, update, delete | | `functionCapabilityBinding` | findMany, findOne, create, update, delete | @@ -93,6 +94,45 @@ const db = createClient({ ## Table Operations +### `db.contentPreset` + +CRUD operations for ContentPreset records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `active` | Boolean | Yes | +| `commitId` | UUID | Yes | +| `createdAt` | Datetime | No | +| `definition` | JSON | Yes | +| `description` | String | Yes | +| `id` | UUID | No | +| `kind` | String | Yes | +| `label` | String | Yes | +| `slug` | String | Yes | +| `storeId` | UUID | Yes | +| `updatedAt` | Datetime | No | + +**Operations:** + +```typescript +// List all contentPreset records +const items = await db.contentPreset.findMany({ select: { active: true, commitId: true, createdAt: true, definition: true, description: true, id: true, kind: true, label: true, slug: true, storeId: true, updatedAt: true } }).execute(); + +// Get one by id +const item = await db.contentPreset.findOne({ id: '', select: { active: true, commitId: true, createdAt: true, definition: true, description: true, id: true, kind: true, label: true, slug: true, storeId: true, updatedAt: true } }).execute(); + +// Create +const created = await db.contentPreset.create({ data: { active: '', commitId: '', definition: '', description: '', kind: '', label: '', slug: '', storeId: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.contentPreset.update({ where: { id: '' }, data: { active: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.contentPreset.delete({ where: { id: '' } }).execute(); +``` + ### `db.dbPreset` CRUD operations for DbPreset records. @@ -245,6 +285,7 @@ CRUD operations for FunctionDefinition records. | `requiredBuckets` | String | Yes | | `requiredConfigs` | ResourceRequirement | Yes | | `requiredModels` | String | Yes | +| `requiredModules` | String | Yes | | `requiredSecrets` | ResourceRequirement | Yes | | `resources` | JSON | Yes | | `runtime` | String | Yes | @@ -261,13 +302,13 @@ CRUD operations for FunctionDefinition records. ```typescript // List all functionDefinition records -const items = await db.functionDefinition.findMany({ select: { accessChannels: true, category: true, concurrency: true, cpuLimitMillicores: true, cpuRequestMillicores: true, createdAt: true, databaseId: true, description: true, fnCategory: true, functionColumns: true, graphId: true, icon: true, id: true, image: true, inputs: true, integrations: true, isPublished: true, maxAttempts: true, memoryLimitBytes: true, memoryRequestBytes: true, moduleTable: true, name: true, outputs: true, payloadArgs: true, priority: true, props: true, protected: true, publishedAt: true, queueName: true, requiredBuckets: true, requiredConfigs: true, requiredModels: true, requiredSecrets: true, resources: true, runtime: true, scaleMax: true, scaleMin: true, targetFunction: true, targetSchema: true, taskIdentifier: true, timeoutSeconds: true, updatedAt: true, volatile: true } }).execute(); +const items = await db.functionDefinition.findMany({ select: { accessChannels: true, category: true, concurrency: true, cpuLimitMillicores: true, cpuRequestMillicores: true, createdAt: true, databaseId: true, description: true, fnCategory: true, functionColumns: true, graphId: true, icon: true, id: true, image: true, inputs: true, integrations: true, isPublished: true, maxAttempts: true, memoryLimitBytes: true, memoryRequestBytes: true, moduleTable: true, name: true, outputs: true, payloadArgs: true, priority: true, props: true, protected: true, publishedAt: true, queueName: true, requiredBuckets: true, requiredConfigs: true, requiredModels: true, requiredModules: true, requiredSecrets: true, resources: true, runtime: true, scaleMax: true, scaleMin: true, targetFunction: true, targetSchema: true, taskIdentifier: true, timeoutSeconds: true, updatedAt: true, volatile: true } }).execute(); // Get one by id -const item = await db.functionDefinition.findOne({ id: '', select: { accessChannels: true, category: true, concurrency: true, cpuLimitMillicores: true, cpuRequestMillicores: true, createdAt: true, databaseId: true, description: true, fnCategory: true, functionColumns: true, graphId: true, icon: true, id: true, image: true, inputs: true, integrations: true, isPublished: true, maxAttempts: true, memoryLimitBytes: true, memoryRequestBytes: true, moduleTable: true, name: true, outputs: true, payloadArgs: true, priority: true, props: true, protected: true, publishedAt: true, queueName: true, requiredBuckets: true, requiredConfigs: true, requiredModels: true, requiredSecrets: true, resources: true, runtime: true, scaleMax: true, scaleMin: true, targetFunction: true, targetSchema: true, taskIdentifier: true, timeoutSeconds: true, updatedAt: true, volatile: true } }).execute(); +const item = await db.functionDefinition.findOne({ id: '', select: { accessChannels: true, category: true, concurrency: true, cpuLimitMillicores: true, cpuRequestMillicores: true, createdAt: true, databaseId: true, description: true, fnCategory: true, functionColumns: true, graphId: true, icon: true, id: true, image: true, inputs: true, integrations: true, isPublished: true, maxAttempts: true, memoryLimitBytes: true, memoryRequestBytes: true, moduleTable: true, name: true, outputs: true, payloadArgs: true, priority: true, props: true, protected: true, publishedAt: true, queueName: true, requiredBuckets: true, requiredConfigs: true, requiredModels: true, requiredModules: true, requiredSecrets: true, resources: true, runtime: true, scaleMax: true, scaleMin: true, targetFunction: true, targetSchema: true, taskIdentifier: true, timeoutSeconds: true, updatedAt: true, volatile: true } }).execute(); // Create -const created = await db.functionDefinition.create({ data: { accessChannels: '', category: '', concurrency: '', cpuLimitMillicores: '', cpuRequestMillicores: '', databaseId: '', description: '', fnCategory: '', functionColumns: '', graphId: '', icon: '', image: '', inputs: '', integrations: '', isPublished: '', maxAttempts: '', memoryLimitBytes: '', memoryRequestBytes: '', moduleTable: '', name: '', outputs: '', payloadArgs: '', priority: '', props: '', protected: '', publishedAt: '', queueName: '', requiredBuckets: '', requiredConfigs: '', requiredModels: '', requiredSecrets: '', resources: '', runtime: '', scaleMax: '', scaleMin: '', targetFunction: '', targetSchema: '', taskIdentifier: '', timeoutSeconds: '', volatile: '' }, select: { id: true } }).execute(); +const created = await db.functionDefinition.create({ data: { accessChannels: '', category: '', concurrency: '', cpuLimitMillicores: '', cpuRequestMillicores: '', databaseId: '', description: '', fnCategory: '', functionColumns: '', graphId: '', icon: '', image: '', inputs: '', integrations: '', isPublished: '', maxAttempts: '', memoryLimitBytes: '', memoryRequestBytes: '', moduleTable: '', name: '', outputs: '', payloadArgs: '', priority: '', props: '', protected: '', publishedAt: '', queueName: '', requiredBuckets: '', requiredConfigs: '', requiredModels: '', requiredModules: '', requiredSecrets: '', resources: '', runtime: '', scaleMax: '', scaleMin: '', targetFunction: '', targetSchema: '', taskIdentifier: '', timeoutSeconds: '', volatile: '' }, select: { id: true } }).execute(); // Update const updated = await db.functionDefinition.update({ where: { id: '' }, data: { accessChannels: '' }, select: { id: true } }).execute(); @@ -297,6 +338,7 @@ CRUD operations for FunctionDeployment records. | `lastError` | String | Yes | | `lastErrorAt` | Datetime | Yes | | `namespaceId` | UUID | Yes | +| `realm` | String | Yes | | `resources` | JSON | Yes | | `revision` | Int | Yes | | `scaleMax` | Int | Yes | @@ -311,13 +353,13 @@ CRUD operations for FunctionDeployment records. ```typescript // List all functionDeployment records -const items = await db.functionDeployment.findMany({ select: { annotations: true, concurrency: true, createdAt: true, databaseId: true, errorCount: true, handlerName: true, id: true, image: true, imageVersion: true, labels: true, lastError: true, lastErrorAt: true, namespaceId: true, resources: true, revision: true, scaleMax: true, scaleMin: true, serviceName: true, serviceUrl: true, status: true, timeoutSeconds: true, updatedAt: true } }).execute(); +const items = await db.functionDeployment.findMany({ select: { annotations: true, concurrency: true, createdAt: true, databaseId: true, errorCount: true, handlerName: true, id: true, image: true, imageVersion: true, labels: true, lastError: true, lastErrorAt: true, namespaceId: true, realm: true, resources: true, revision: true, scaleMax: true, scaleMin: true, serviceName: true, serviceUrl: true, status: true, timeoutSeconds: true, updatedAt: true } }).execute(); // Get one by id -const item = await db.functionDeployment.findOne({ id: '', select: { annotations: true, concurrency: true, createdAt: true, databaseId: true, errorCount: true, handlerName: true, id: true, image: true, imageVersion: true, labels: true, lastError: true, lastErrorAt: true, namespaceId: true, resources: true, revision: true, scaleMax: true, scaleMin: true, serviceName: true, serviceUrl: true, status: true, timeoutSeconds: true, updatedAt: true } }).execute(); +const item = await db.functionDeployment.findOne({ id: '', select: { annotations: true, concurrency: true, createdAt: true, databaseId: true, errorCount: true, handlerName: true, id: true, image: true, imageVersion: true, labels: true, lastError: true, lastErrorAt: true, namespaceId: true, realm: true, resources: true, revision: true, scaleMax: true, scaleMin: true, serviceName: true, serviceUrl: true, status: true, timeoutSeconds: true, updatedAt: true } }).execute(); // Create -const created = await db.functionDeployment.create({ data: { annotations: '', concurrency: '', databaseId: '', errorCount: '', handlerName: '', image: '', imageVersion: '', labels: '', lastError: '', lastErrorAt: '', namespaceId: '', resources: '', revision: '', scaleMax: '', scaleMin: '', serviceName: '', serviceUrl: '', status: '', timeoutSeconds: '' }, select: { id: true } }).execute(); +const created = await db.functionDeployment.create({ data: { annotations: '', concurrency: '', databaseId: '', errorCount: '', handlerName: '', image: '', imageVersion: '', labels: '', lastError: '', lastErrorAt: '', namespaceId: '', realm: '', resources: '', revision: '', scaleMax: '', scaleMin: '', serviceName: '', serviceUrl: '', status: '', timeoutSeconds: '' }, select: { id: true } }).execute(); // Update const updated = await db.functionDeployment.update({ where: { id: '' }, data: { annotations: '' }, select: { id: true } }).execute(); @@ -1227,6 +1269,7 @@ CRUD operations for PlatformFunctionDefinition records. | `requiredBuckets` | String | Yes | | `requiredConfigs` | ResourceRequirement | Yes | | `requiredModels` | String | Yes | +| `requiredModules` | String | Yes | | `requiredSecrets` | ResourceRequirement | Yes | | `resources` | JSON | Yes | | `runtime` | String | Yes | @@ -1244,13 +1287,13 @@ CRUD operations for PlatformFunctionDefinition records. ```typescript // List all platformFunctionDefinition records -const items = await db.platformFunctionDefinition.findMany({ select: { accessChannels: true, billable: true, category: true, concurrency: true, cpuLimitMillicores: true, cpuRequestMillicores: true, createdAt: true, description: true, fnCategory: true, functionColumns: true, graphId: true, icon: true, id: true, image: true, inputs: true, integrations: true, isPublished: true, maxAttempts: true, memoryLimitBytes: true, memoryRequestBytes: true, moduleTable: true, name: true, outputs: true, payloadArgs: true, priority: true, props: true, protected: true, publishedAt: true, queueName: true, requiredBuckets: true, requiredConfigs: true, requiredModels: true, requiredSecrets: true, resources: true, runtime: true, scaleMax: true, scaleMin: true, system: true, targetFunction: true, targetSchema: true, taskIdentifier: true, timeoutSeconds: true, updatedAt: true, volatile: true } }).execute(); +const items = await db.platformFunctionDefinition.findMany({ select: { accessChannels: true, billable: true, category: true, concurrency: true, cpuLimitMillicores: true, cpuRequestMillicores: true, createdAt: true, description: true, fnCategory: true, functionColumns: true, graphId: true, icon: true, id: true, image: true, inputs: true, integrations: true, isPublished: true, maxAttempts: true, memoryLimitBytes: true, memoryRequestBytes: true, moduleTable: true, name: true, outputs: true, payloadArgs: true, priority: true, props: true, protected: true, publishedAt: true, queueName: true, requiredBuckets: true, requiredConfigs: true, requiredModels: true, requiredModules: true, requiredSecrets: true, resources: true, runtime: true, scaleMax: true, scaleMin: true, system: true, targetFunction: true, targetSchema: true, taskIdentifier: true, timeoutSeconds: true, updatedAt: true, volatile: true } }).execute(); // Get one by id -const item = await db.platformFunctionDefinition.findOne({ id: '', select: { accessChannels: true, billable: true, category: true, concurrency: true, cpuLimitMillicores: true, cpuRequestMillicores: true, createdAt: true, description: true, fnCategory: true, functionColumns: true, graphId: true, icon: true, id: true, image: true, inputs: true, integrations: true, isPublished: true, maxAttempts: true, memoryLimitBytes: true, memoryRequestBytes: true, moduleTable: true, name: true, outputs: true, payloadArgs: true, priority: true, props: true, protected: true, publishedAt: true, queueName: true, requiredBuckets: true, requiredConfigs: true, requiredModels: true, requiredSecrets: true, resources: true, runtime: true, scaleMax: true, scaleMin: true, system: true, targetFunction: true, targetSchema: true, taskIdentifier: true, timeoutSeconds: true, updatedAt: true, volatile: true } }).execute(); +const item = await db.platformFunctionDefinition.findOne({ id: '', select: { accessChannels: true, billable: true, category: true, concurrency: true, cpuLimitMillicores: true, cpuRequestMillicores: true, createdAt: true, description: true, fnCategory: true, functionColumns: true, graphId: true, icon: true, id: true, image: true, inputs: true, integrations: true, isPublished: true, maxAttempts: true, memoryLimitBytes: true, memoryRequestBytes: true, moduleTable: true, name: true, outputs: true, payloadArgs: true, priority: true, props: true, protected: true, publishedAt: true, queueName: true, requiredBuckets: true, requiredConfigs: true, requiredModels: true, requiredModules: true, requiredSecrets: true, resources: true, runtime: true, scaleMax: true, scaleMin: true, system: true, targetFunction: true, targetSchema: true, taskIdentifier: true, timeoutSeconds: true, updatedAt: true, volatile: true } }).execute(); // Create -const created = await db.platformFunctionDefinition.create({ data: { accessChannels: '', billable: '', category: '', concurrency: '', cpuLimitMillicores: '', cpuRequestMillicores: '', description: '', fnCategory: '', functionColumns: '', graphId: '', icon: '', image: '', inputs: '', integrations: '', isPublished: '', maxAttempts: '', memoryLimitBytes: '', memoryRequestBytes: '', moduleTable: '', name: '', outputs: '', payloadArgs: '', priority: '', props: '', protected: '', publishedAt: '', queueName: '', requiredBuckets: '', requiredConfigs: '', requiredModels: '', requiredSecrets: '', resources: '', runtime: '', scaleMax: '', scaleMin: '', system: '', targetFunction: '', targetSchema: '', taskIdentifier: '', timeoutSeconds: '', volatile: '' }, select: { id: true } }).execute(); +const created = await db.platformFunctionDefinition.create({ data: { accessChannels: '', billable: '', category: '', concurrency: '', cpuLimitMillicores: '', cpuRequestMillicores: '', description: '', fnCategory: '', functionColumns: '', graphId: '', icon: '', image: '', inputs: '', integrations: '', isPublished: '', maxAttempts: '', memoryLimitBytes: '', memoryRequestBytes: '', moduleTable: '', name: '', outputs: '', payloadArgs: '', priority: '', props: '', protected: '', publishedAt: '', queueName: '', requiredBuckets: '', requiredConfigs: '', requiredModels: '', requiredModules: '', requiredSecrets: '', resources: '', runtime: '', scaleMax: '', scaleMin: '', system: '', targetFunction: '', targetSchema: '', taskIdentifier: '', timeoutSeconds: '', volatile: '' }, select: { id: true } }).execute(); // Update const updated = await db.platformFunctionDefinition.update({ where: { id: '' }, data: { accessChannels: '' }, select: { id: true } }).execute(); @@ -1279,6 +1322,7 @@ CRUD operations for PlatformFunctionDeployment records. | `lastError` | String | Yes | | `lastErrorAt` | Datetime | Yes | | `namespaceId` | UUID | Yes | +| `realm` | String | Yes | | `resources` | JSON | Yes | | `revision` | Int | Yes | | `scaleMax` | Int | Yes | @@ -1293,13 +1337,13 @@ CRUD operations for PlatformFunctionDeployment records. ```typescript // List all platformFunctionDeployment records -const items = await db.platformFunctionDeployment.findMany({ select: { annotations: true, concurrency: true, createdAt: true, errorCount: true, handlerName: true, id: true, image: true, imageVersion: true, labels: true, lastError: true, lastErrorAt: true, namespaceId: true, resources: true, revision: true, scaleMax: true, scaleMin: true, serviceName: true, serviceUrl: true, status: true, timeoutSeconds: true, updatedAt: true } }).execute(); +const items = await db.platformFunctionDeployment.findMany({ select: { annotations: true, concurrency: true, createdAt: true, errorCount: true, handlerName: true, id: true, image: true, imageVersion: true, labels: true, lastError: true, lastErrorAt: true, namespaceId: true, realm: true, resources: true, revision: true, scaleMax: true, scaleMin: true, serviceName: true, serviceUrl: true, status: true, timeoutSeconds: true, updatedAt: true } }).execute(); // Get one by id -const item = await db.platformFunctionDeployment.findOne({ id: '', select: { annotations: true, concurrency: true, createdAt: true, errorCount: true, handlerName: true, id: true, image: true, imageVersion: true, labels: true, lastError: true, lastErrorAt: true, namespaceId: true, resources: true, revision: true, scaleMax: true, scaleMin: true, serviceName: true, serviceUrl: true, status: true, timeoutSeconds: true, updatedAt: true } }).execute(); +const item = await db.platformFunctionDeployment.findOne({ id: '', select: { annotations: true, concurrency: true, createdAt: true, errorCount: true, handlerName: true, id: true, image: true, imageVersion: true, labels: true, lastError: true, lastErrorAt: true, namespaceId: true, realm: true, resources: true, revision: true, scaleMax: true, scaleMin: true, serviceName: true, serviceUrl: true, status: true, timeoutSeconds: true, updatedAt: true } }).execute(); // Create -const created = await db.platformFunctionDeployment.create({ data: { annotations: '', concurrency: '', errorCount: '', handlerName: '', image: '', imageVersion: '', labels: '', lastError: '', lastErrorAt: '', namespaceId: '', resources: '', revision: '', scaleMax: '', scaleMin: '', serviceName: '', serviceUrl: '', status: '', timeoutSeconds: '' }, select: { id: true } }).execute(); +const created = await db.platformFunctionDeployment.create({ data: { annotations: '', concurrency: '', errorCount: '', handlerName: '', image: '', imageVersion: '', labels: '', lastError: '', lastErrorAt: '', namespaceId: '', realm: '', resources: '', revision: '', scaleMax: '', scaleMin: '', serviceName: '', serviceUrl: '', status: '', timeoutSeconds: '' }, select: { id: true } }).execute(); // Update const updated = await db.platformFunctionDeployment.update({ where: { id: '' }, data: { annotations: '' }, select: { id: true } }).execute(); @@ -3053,6 +3097,36 @@ infraInsertNodeAtPath const result = await db.mutation.infraInsertNodeAtPath({ input: '' }).execute(); ``` +### `db.mutation.infraInsertNodesAtPaths` + +infraInsertNodesAtPaths + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | InfraInsertNodesAtPathsInput (required) | + +```typescript +const result = await db.mutation.infraInsertNodesAtPaths({ input: '' }).execute(); +``` + +### `db.mutation.infraSetAndCommit` + +infraSetAndCommit + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | InfraSetAndCommitInput (required) | + +```typescript +const result = await db.mutation.infraSetAndCommit({ input: '' }).execute(); +``` + ### `db.mutation.infraSetDataAtPath` infraSetDataAtPath @@ -3068,6 +3142,21 @@ infraSetDataAtPath const result = await db.mutation.infraSetDataAtPath({ input: { data: '', path: '', root: '', sId: '' } }).execute(); ``` +### `db.mutation.infraSetManyAndCommit` + +infraSetManyAndCommit + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | InfraSetManyAndCommitInput (required) | + +```typescript +const result = await db.mutation.infraSetManyAndCommit({ input: { entries: '', message: '', refname: '', sId: '', storeId: '' } }).execute(); +``` + ### `db.mutation.initEmptyRepo` initEmptyRepo @@ -3098,6 +3187,21 @@ insertNodeAtPath const result = await db.mutation.insertNodeAtPath({ input: '' }).execute(); ``` +### `db.mutation.insertNodesAtPaths` + +insertNodesAtPaths + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | InsertNodesAtPathsInput (required) | + +```typescript +const result = await db.mutation.insertNodesAtPaths({ input: '' }).execute(); +``` + ### `db.mutation.platformInfraInitEmptyRepo` platformInfraInitEmptyRepo @@ -3128,6 +3232,36 @@ platformInfraInsertNodeAtPath const result = await db.mutation.platformInfraInsertNodeAtPath({ input: '' }).execute(); ``` +### `db.mutation.platformInfraInsertNodesAtPaths` + +platformInfraInsertNodesAtPaths + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | PlatformInfraInsertNodesAtPathsInput (required) | + +```typescript +const result = await db.mutation.platformInfraInsertNodesAtPaths({ input: '' }).execute(); +``` + +### `db.mutation.platformInfraSetAndCommit` + +platformInfraSetAndCommit + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | PlatformInfraSetAndCommitInput (required) | + +```typescript +const result = await db.mutation.platformInfraSetAndCommit({ input: '' }).execute(); +``` + ### `db.mutation.platformInfraSetDataAtPath` platformInfraSetDataAtPath @@ -3143,6 +3277,21 @@ platformInfraSetDataAtPath const result = await db.mutation.platformInfraSetDataAtPath({ input: { data: '', path: '', root: '', sId: '' } }).execute(); ``` +### `db.mutation.platformInfraSetManyAndCommit` + +platformInfraSetManyAndCommit + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | PlatformInfraSetManyAndCommitInput (required) | + +```typescript +const result = await db.mutation.platformInfraSetManyAndCommit({ input: { entries: '', message: '', refname: '', sId: '', storeId: '' } }).execute(); +``` + ### `db.mutation.platformResourceInstallationsInstall` platformResourceInstallationsInstall @@ -3296,6 +3445,21 @@ saveGraph const result = await db.mutation.saveGraph({ input: { graphId: '', message: '', rootHash: '' } }).execute(); ``` +### `db.mutation.setAndCommit` + +setAndCommit + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | SetAndCommitInput (required) | + +```typescript +const result = await db.mutation.setAndCommit({ input: '' }).execute(); +``` + ### `db.mutation.setDataAtPath` setDataAtPath @@ -3311,6 +3475,21 @@ setDataAtPath const result = await db.mutation.setDataAtPath({ input: { data: '', path: '', root: '', sId: '' } }).execute(); ``` +### `db.mutation.setManyAndCommit` + +setManyAndCommit + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | SetManyAndCommitInput (required) | + +```typescript +const result = await db.mutation.setManyAndCommit({ input: { entries: '', message: '', refname: '', sId: '', storeId: '' } }).execute(); +``` + ### `db.mutation.startExecution` startExecution diff --git a/sdk/constructive-react/src/compute/orm/index.ts b/sdk/constructive-react/src/compute/orm/index.ts index 531cf363ab..62973ed4f2 100644 --- a/sdk/constructive-react/src/compute/orm/index.ts +++ b/sdk/constructive-react/src/compute/orm/index.ts @@ -5,6 +5,7 @@ */ import { OrmClient } from './client'; import type { OrmClientConfig } from './client'; +import { ContentPresetModel } from './models/contentPreset'; import { DbPresetModel } from './models/dbPreset'; import { FunctionApiBindingModel } from './models/functionApiBinding'; import { FunctionCapabilityBindingModel } from './models/functionCapabilityBinding'; @@ -109,6 +110,7 @@ export { createMutationOperations } from './mutation'; export function createClient(config: OrmClientConfig) { const client = new OrmClient(config); return { + contentPreset: new ContentPresetModel(client), dbPreset: new DbPresetModel(client), functionApiBinding: new FunctionApiBindingModel(client), functionCapabilityBinding: new FunctionCapabilityBindingModel(client), diff --git a/sdk/constructive-react/src/compute/orm/input-types.ts b/sdk/constructive-react/src/compute/orm/input-types.ts index a132305584..566e3f81b1 100644 --- a/sdk/constructive-react/src/compute/orm/input-types.ts +++ b/sdk/constructive-react/src/compute/orm/input-types.ts @@ -234,8 +234,33 @@ export interface UUIDListFilter { export type Base64EncodedBinary = unknown; export type ConstructiveInternalTypeImage = unknown; export type ResourceRequirement = unknown; -/** Database provisioning preset catalog — merkle-versioned head over the infra store */ +/** Seed-content preset catalog (limit defaults, trust ladders, ...) — merkle-versioned head over the infra store */ // ============ Entity Types ============ +export interface ContentPreset { + /** Whether this preset is selectable at provision time */ + active?: boolean | null; + /** Infra store commit for the current definition (stamped by the versioned trigger on every write) */ + commitId?: string | null; + /** Timestamp of preset creation */ + createdAt?: string | null; + /** The seed document itself, in the shape the kind's seed function takes — the readily-cached head; history lives in the infra store */ + definition?: Record | null; + /** Human-readable description of the preset */ + description?: string | null; + /** Unique preset identifier */ + id: string; + /** What the definition seeds — the module option that resolves it (limit_defaults, trust_ladder, ...) */ + kind?: string | null; + /** Human-readable preset name */ + label?: string | null; + /** Preset slug (unique per kind per scope); the preset's path in the infra tree is [content_preset, kind, slug] */ + slug?: string | null; + /** Infra Merkle store holding this preset's history (stamped by the versioned trigger) */ + storeId?: string | null; + /** Timestamp of last modification */ + updatedAt?: string | null; +} +/** Database provisioning preset catalog — merkle-versioned head over the infra store */ export interface DbPreset { /** Whether this preset is selectable for new databases */ active?: boolean | null; @@ -296,7 +321,7 @@ export interface FunctionCapabilityBinding { } /** Function definitions — registered cloud functions with routing, queue, and retry configuration */ export interface FunctionDefinition { - /** Invocation channels this function may be exposed through (api, graph, cron, sync, webhook). Internal worker dispatch is implicit and never listed. Default [] = worker only. */ + /** Invocation channels this function may be exposed through (api, graph, cron, sync, page, webhook). Internal worker dispatch is implicit and never listed. Default [] = worker only. */ accessChannels?: string[] | null; /** Function task category (e.g. email, embed, chunk, custom) */ category?: string | null; @@ -352,12 +377,14 @@ export interface FunctionDefinition { publishedAt?: string | null; /** Job queue name for serialization (e.g. email, ai, default) */ queueName?: string | null; - /** Bucket keys this function needs (e.g. uploads, exports). Empty = no bucket requirements. */ + /** Bucket keys this function needs (e.g. uploads, exports). Tenant-agnostic: each key is resolved per invocation against the tenant's buckets by {tags, type}, or by an explicit capability binding row. Empty = no bucket requirements. */ requiredBuckets?: string[] | null; /** Embedded config requirements: array of (name, required, provider) tuples. provider is the integration slug this requirement belongs to, if any. */ requiredConfigs?: ResourceRequirement[] | null; /** Inference model whitelist (e.g. gpt-4o, claude-3). Empty = no model requirements. */ requiredModels?: string[] | null; + /** Modules whose api surfaces this function calls, e.g. notifications_module. Suffix . to name which surface when a module's schemas are attached to several (capabilities_module.admin), and @ to pin the registration when a module is registered at more than one scope (limits_module@org) — usually unnecessary, since resolution walks the execution's scope chain. A value that is not a module name is read as an api name. Resolved per invocation; empty = no api requirements. */ + requiredModules?: string[] | null; /** Embedded secret requirements: array of (name, required, provider) tuples. provider is the integration slug this requirement belongs to, if any. */ requiredSecrets?: ResourceRequirement[] | null; /** Container resource requests and limits: {requests: {memory, cpu}, limits: {memory, cpu}} */ @@ -406,6 +433,8 @@ export interface FunctionDeployment { lastErrorAt?: string | null; /** Target namespace for this deployment (maps to a K8s namespace) */ namespaceId?: string | null; + /** Config/secret realm this deployment resolves required keys against. Per key, the realm-specific atom wins over the NULL-realm default. NULL = the default lane (or a runtime-query worker that fetches per-item realms on demand). */ + realm?: string | null; /** K8s resource spec override: {"requests":{"cpu":"100m","memory":"128Mi"},"limits":{...}} */ resources?: Record | null; /** Deployment revision number (incremented on each redeployment) */ @@ -911,7 +940,7 @@ export interface PlatformFunctionCapabilityBinding { } /** Function definitions — registered cloud functions with routing, queue, and retry configuration */ export interface PlatformFunctionDefinition { - /** Invocation channels this function may be exposed through (api, graph, cron, sync, webhook). Internal worker dispatch is implicit and never listed. Default [] = worker only. */ + /** Invocation channels this function may be exposed through (api, graph, cron, sync, page, webhook). Internal worker dispatch is implicit and never listed. Default [] = worker only. */ accessChannels?: string[] | null; /** Whether executions are metered through the invocation ledger and billing quota gate */ billable?: boolean | null; @@ -967,12 +996,14 @@ export interface PlatformFunctionDefinition { publishedAt?: string | null; /** Job queue name for serialization (e.g. email, ai, default) */ queueName?: string | null; - /** Bucket keys this function needs (e.g. uploads, exports). Empty = no bucket requirements. */ + /** Bucket keys this function needs (e.g. uploads, exports). Tenant-agnostic: each key is resolved per invocation against the tenant's buckets by {tags, type}, or by an explicit capability binding row. Empty = no bucket requirements. */ requiredBuckets?: string[] | null; /** Embedded config requirements: array of (name, required, provider) tuples. provider is the integration slug this requirement belongs to, if any. */ requiredConfigs?: ResourceRequirement[] | null; /** Inference model whitelist (e.g. gpt-4o, claude-3). Empty = no model requirements. */ requiredModels?: string[] | null; + /** Modules whose api surfaces this function calls, e.g. notifications_module. Suffix . to name which surface when a module's schemas are attached to several (capabilities_module.admin), and @ to pin the registration when a module is registered at more than one scope (limits_module@org) — usually unnecessary, since resolution walks the execution's scope chain. A value that is not a module name is read as an api name. Resolved per invocation; empty = no api requirements. */ + requiredModules?: string[] | null; /** Embedded secret requirements: array of (name, required, provider) tuples. provider is the integration slug this requirement belongs to, if any. */ requiredSecrets?: ResourceRequirement[] | null; /** Container resource requests and limits: {requests: {memory, cpu}, limits: {memory, cpu}} */ @@ -1021,6 +1052,8 @@ export interface PlatformFunctionDeployment { lastErrorAt?: string | null; /** Target namespace for this deployment (maps to a K8s namespace) */ namespaceId?: string | null; + /** Config/secret realm this deployment resolves required keys against. Per key, the realm-specific atom wins over the NULL-realm default. NULL = the default lane (or a runtime-query worker that fetches per-item realms on demand). */ + realm?: string | null; /** K8s resource spec override: {"requests":{"cpu":"100m","memory":"128Mi"},"limits":{...}} */ resources?: Record | null; /** Deployment revision number (incremented on each redeployment) */ @@ -1946,6 +1979,7 @@ export interface PageInfo { endCursor?: string | null; } // ============ Entity Relation Types ============ +export interface ContentPresetRelations {} export interface DbPresetRelations {} export interface FunctionApiBindingRelations { functionDefinition?: FunctionDefinition | null; @@ -2098,6 +2132,7 @@ export interface WebhookEventRelations { endpoint?: WebhookEndpoint | null; } // ============ Entity Types With Relations ============ +export type ContentPresetWithRelations = ContentPreset & ContentPresetRelations; export type DbPresetWithRelations = DbPreset & DbPresetRelations; export type FunctionApiBindingWithRelations = FunctionApiBinding & FunctionApiBindingRelations; export type FunctionCapabilityBindingWithRelations = FunctionCapabilityBinding & @@ -2205,6 +2240,19 @@ export type ResourcesResolvedRequirementWithRelations = ResourcesResolvedRequire export type WebhookEndpointWithRelations = WebhookEndpoint & WebhookEndpointRelations; export type WebhookEventWithRelations = WebhookEvent & WebhookEventRelations; // ============ Entity Select Types ============ +export type ContentPresetSelect = { + active?: boolean; + commitId?: boolean; + createdAt?: boolean; + definition?: boolean; + description?: boolean; + id?: boolean; + kind?: boolean; + label?: boolean; + slug?: boolean; + storeId?: boolean; + updatedAt?: boolean; +}; export type DbPresetSelect = { active?: boolean; commitId?: boolean; @@ -2284,6 +2332,7 @@ export type FunctionDefinitionSelect = { requiredBuckets?: boolean; requiredConfigs?: boolean; requiredModels?: boolean; + requiredModules?: boolean; requiredSecrets?: boolean; resources?: boolean; runtime?: boolean; @@ -2328,6 +2377,7 @@ export type FunctionDeploymentSelect = { lastError?: boolean; lastErrorAt?: boolean; namespaceId?: boolean; + realm?: boolean; resources?: boolean; revision?: boolean; scaleMax?: boolean; @@ -2697,6 +2747,7 @@ export type PlatformFunctionDefinitionSelect = { requiredBuckets?: boolean; requiredConfigs?: boolean; requiredModels?: boolean; + requiredModules?: boolean; requiredSecrets?: boolean; resources?: boolean; runtime?: boolean; @@ -2744,6 +2795,7 @@ export type PlatformFunctionDeploymentSelect = { lastError?: boolean; lastErrorAt?: boolean; namespaceId?: boolean; + realm?: boolean; resources?: boolean; revision?: boolean; scaleMax?: boolean; @@ -3472,6 +3524,36 @@ export type WebhookEventSelect = { }; }; // ============ Table Filter Types ============ +export interface ContentPresetFilter { + /** Filter by the object’s `active` field. */ + active?: BooleanFilter; + /** Checks for all expressions in this list. */ + and?: ContentPresetFilter[]; + /** Filter by the object’s `commitId` field. */ + commitId?: UUIDFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `definition` field. */ + definition?: JSONFilter; + /** Filter by the object’s `description` field. */ + description?: StringFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `kind` field. */ + kind?: StringFilter; + /** Filter by the object’s `label` field. */ + label?: StringFilter; + /** Negates the expression. */ + not?: ContentPresetFilter; + /** Checks for any expressions in this list. */ + or?: ContentPresetFilter[]; + /** Filter by the object’s `slug` field. */ + slug?: StringFilter; + /** Filter by the object’s `storeId` field. */ + storeId?: UUIDFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; +} export interface DbPresetFilter { /** Filter by the object’s `active` field. */ active?: BooleanFilter; @@ -3639,6 +3721,8 @@ export interface FunctionDefinitionFilter { requiredBuckets?: StringListFilter; /** Filter by the object’s `requiredModels` field. */ requiredModels?: StringListFilter; + /** Filter by the object’s `requiredModules` field. */ + requiredModules?: StringListFilter; /** Filter by the object’s `resources` field. */ resources?: JSONFilter; /** Filter by the object’s `runtime` field. */ @@ -3699,6 +3783,8 @@ export interface FunctionDeploymentFilter { not?: FunctionDeploymentFilter; /** Checks for any expressions in this list. */ or?: FunctionDeploymentFilter[]; + /** Filter by the object’s `realm` field. */ + realm?: StringFilter; /** Filter by the object’s `resources` field. */ resources?: JSONFilter; /** Filter by the object’s `revision` field. */ @@ -4451,6 +4537,8 @@ export interface PlatformFunctionDefinitionFilter { requiredBuckets?: StringListFilter; /** Filter by the object’s `requiredModels` field. */ requiredModels?: StringListFilter; + /** Filter by the object’s `requiredModules` field. */ + requiredModules?: StringListFilter; /** Filter by the object’s `resources` field. */ resources?: JSONFilter; /** Filter by the object’s `runtime` field. */ @@ -4507,6 +4595,8 @@ export interface PlatformFunctionDeploymentFilter { not?: PlatformFunctionDeploymentFilter; /** Checks for any expressions in this list. */ or?: PlatformFunctionDeploymentFilter[]; + /** Filter by the object’s `realm` field. */ + realm?: StringFilter; /** Filter by the object’s `resources` field. */ resources?: JSONFilter; /** Filter by the object’s `revision` field. */ @@ -5912,6 +6002,32 @@ export interface WebhookEventFilter { updatedAt?: DatetimeFilter; } // ============ OrderBy Types ============ +export type ContentPresetOrderBy = + | 'ACTIVE_ASC' + | 'ACTIVE_DESC' + | 'COMMIT_ID_ASC' + | 'COMMIT_ID_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'DEFINITION_ASC' + | 'DEFINITION_DESC' + | 'DESCRIPTION_ASC' + | 'DESCRIPTION_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'KIND_ASC' + | 'KIND_DESC' + | 'LABEL_ASC' + | 'LABEL_DESC' + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'SLUG_ASC' + | 'SLUG_DESC' + | 'STORE_ID_ASC' + | 'STORE_ID_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC'; export type DbPresetOrderBy = | 'ACTIVE_ASC' | 'ACTIVE_DESC' @@ -6048,6 +6164,8 @@ export type FunctionDefinitionOrderBy = | 'REQUIRED_CONFIGS_DESC' | 'REQUIRED_MODELS_ASC' | 'REQUIRED_MODELS_DESC' + | 'REQUIRED_MODULES_ASC' + | 'REQUIRED_MODULES_DESC' | 'REQUIRED_SECRETS_ASC' | 'REQUIRED_SECRETS_DESC' | 'RESOURCES_ASC' @@ -6100,6 +6218,8 @@ export type FunctionDeploymentOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' + | 'REALM_ASC' + | 'REALM_DESC' | 'RESOURCES_ASC' | 'RESOURCES_DESC' | 'REVISION_ASC' @@ -6712,6 +6832,8 @@ export type PlatformFunctionDefinitionOrderBy = | 'REQUIRED_CONFIGS_DESC' | 'REQUIRED_MODELS_ASC' | 'REQUIRED_MODELS_DESC' + | 'REQUIRED_MODULES_ASC' + | 'REQUIRED_MODULES_DESC' | 'REQUIRED_SECRETS_ASC' | 'REQUIRED_SECRETS_DESC' | 'RESOURCES_ASC' @@ -6764,6 +6886,8 @@ export type PlatformFunctionDeploymentOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' + | 'REALM_ASC' + | 'REALM_DESC' | 'RESOURCES_ASC' | 'RESOURCES_DESC' | 'REVISION_ASC' @@ -7921,6 +8045,38 @@ export type WebhookEventOrderBy = | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC'; // ============ CRUD Input Types ============ +export interface CreateContentPresetInput { + clientMutationId?: string; + contentPreset: { + active?: boolean; + commitId?: string; + definition: Record; + description?: string; + kind: string; + label?: string; + slug: string; + storeId?: string; + }; +} +export interface ContentPresetPatch { + active?: boolean | null; + commitId?: string | null; + definition?: Record | null; + description?: string | null; + kind?: string | null; + label?: string | null; + slug?: string | null; + storeId?: string | null; +} +export interface UpdateContentPresetInput { + clientMutationId?: string; + id: string; + contentPresetPatch: ContentPresetPatch; +} +export interface DeleteContentPresetInput { + clientMutationId?: string; + id: string; +} export interface CreateDbPresetInput { clientMutationId?: string; dbPreset: { @@ -8036,6 +8192,7 @@ export interface CreateFunctionDefinitionInput { requiredBuckets?: string[]; requiredConfigs?: ResourceRequirementInput[]; requiredModels?: string[]; + requiredModules?: string[]; requiredSecrets?: ResourceRequirementInput[]; resources?: Record; runtime?: string; @@ -8074,6 +8231,7 @@ export interface FunctionDefinitionPatch { requiredBuckets?: string[] | null; requiredConfigs?: ResourceRequirementInput[] | null; requiredModels?: string[] | null; + requiredModules?: string[] | null; requiredSecrets?: ResourceRequirementInput[] | null; resources?: Record | null; runtime?: string | null; @@ -8107,6 +8265,7 @@ export interface CreateFunctionDeploymentInput { lastError?: string; lastErrorAt?: string; namespaceId: string; + realm?: string; resources?: Record; revision?: number; scaleMax?: number; @@ -8129,6 +8288,7 @@ export interface FunctionDeploymentPatch { lastError?: string | null; lastErrorAt?: string | null; namespaceId?: string | null; + realm?: string | null; resources?: Record | null; revision?: number | null; scaleMax?: number | null; @@ -8895,6 +9055,7 @@ export interface CreatePlatformFunctionDefinitionInput { requiredBuckets?: string[]; requiredConfigs?: ResourceRequirementInput[]; requiredModels?: string[]; + requiredModules?: string[]; requiredSecrets?: ResourceRequirementInput[]; resources?: Record; runtime?: string; @@ -8934,6 +9095,7 @@ export interface PlatformFunctionDefinitionPatch { requiredBuckets?: string[] | null; requiredConfigs?: ResourceRequirementInput[] | null; requiredModels?: string[] | null; + requiredModules?: string[] | null; requiredSecrets?: ResourceRequirementInput[] | null; resources?: Record | null; runtime?: string | null; @@ -8967,6 +9129,7 @@ export interface CreatePlatformFunctionDeploymentInput { lastError?: string; lastErrorAt?: string; namespaceId: string; + realm?: string; resources?: Record; revision?: number; scaleMax?: number; @@ -8988,6 +9151,7 @@ export interface PlatformFunctionDeploymentPatch { lastError?: string | null; lastErrorAt?: string | null; namespaceId?: string | null; + realm?: string | null; resources?: Record | null; revision?: number | null; scaleMax?: number | null; @@ -10613,6 +10777,26 @@ export interface InfraInsertNodeAtPathInput { root?: string; sId?: string; } +export interface InfraInsertNodesAtPathsInput { + clientMutationId?: string; + datas?: Record[]; + kidsList?: Record; + ktreeList?: Record; + paths?: Record; + root?: string; + sId?: string; +} +export interface InfraSetAndCommitInput { + clientMutationId?: string; + data?: Record; + kids?: string[]; + ktree?: string[]; + message?: string; + path?: string[]; + refname?: string; + sId?: string; + storeId?: string; +} export interface InfraSetDataAtPathInput { clientMutationId?: string; data?: Record; @@ -10620,6 +10804,14 @@ export interface InfraSetDataAtPathInput { root?: string; sId?: string; } +export interface InfraSetManyAndCommitInput { + clientMutationId?: string; + entries?: Record; + message?: string; + refname?: string; + sId?: string; + storeId?: string; +} export interface InitEmptyRepoInput { clientMutationId?: string; sId?: string; @@ -10634,6 +10826,15 @@ export interface InsertNodeAtPathInput { root?: string; sId?: string; } +export interface InsertNodesAtPathsInput { + clientMutationId?: string; + datas?: Record[]; + kidsList?: Record; + ktreeList?: Record; + paths?: Record; + root?: string; + sId?: string; +} export interface PlatformInfraInitEmptyRepoInput { clientMutationId?: string; sId?: string; @@ -10648,6 +10849,26 @@ export interface PlatformInfraInsertNodeAtPathInput { root?: string; sId?: string; } +export interface PlatformInfraInsertNodesAtPathsInput { + clientMutationId?: string; + datas?: Record[]; + kidsList?: Record; + ktreeList?: Record; + paths?: Record; + root?: string; + sId?: string; +} +export interface PlatformInfraSetAndCommitInput { + clientMutationId?: string; + data?: Record; + kids?: string[]; + ktree?: string[]; + message?: string; + path?: string[]; + refname?: string; + sId?: string; + storeId?: string; +} export interface PlatformInfraSetDataAtPathInput { clientMutationId?: string; data?: Record; @@ -10655,6 +10876,14 @@ export interface PlatformInfraSetDataAtPathInput { root?: string; sId?: string; } +export interface PlatformInfraSetManyAndCommitInput { + clientMutationId?: string; + entries?: Record; + message?: string; + refname?: string; + sId?: string; + storeId?: string; +} export interface PlatformResourceInstallationsInstallInput { clientMutationId?: string; definitionIds?: string[]; @@ -10714,6 +10943,17 @@ export interface SaveGraphInput { message?: string; rootHash?: string; } +export interface SetAndCommitInput { + clientMutationId?: string; + data?: Record; + kids?: string[]; + ktree?: string[]; + message?: string; + path?: string[]; + refname?: string; + sId?: string; + storeId?: string; +} export interface SetDataAtPathInput { clientMutationId?: string; data?: Record; @@ -10721,6 +10961,14 @@ export interface SetDataAtPathInput { root?: string; sId?: string; } +export interface SetManyAndCommitInput { + clientMutationId?: string; + entries?: Record; + message?: string; + refname?: string; + sId?: string; + storeId?: string; +} export interface StartExecutionInput { clientMutationId?: string; graphId?: string; @@ -11067,6 +11315,31 @@ export interface WebhookEndpointToManyWebhookEventFilter { /** Filters to entities where at least one related entity matches. */ some?: WebhookEventFilter; } +/** An input for mutations affecting `ContentPreset` */ +export interface ContentPresetInput { + /** Whether this preset is selectable at provision time */ + active?: boolean; + /** Infra store commit for the current definition (stamped by the versioned trigger on every write) */ + commitId?: string; + /** Timestamp of preset creation */ + createdAt?: string; + /** The seed document itself, in the shape the kind's seed function takes — the readily-cached head; history lives in the infra store */ + definition: Record; + /** Human-readable description of the preset */ + description?: string; + /** Unique preset identifier */ + id?: string; + /** What the definition seeds — the module option that resolves it (limit_defaults, trust_ladder, ...) */ + kind: string; + /** Human-readable preset name */ + label?: string; + /** Preset slug (unique per kind per scope); the preset's path in the infra tree is [content_preset, kind, slug] */ + slug: string; + /** Infra Merkle store holding this preset's history (stamped by the versioned trigger) */ + storeId?: string; + /** Timestamp of last modification */ + updatedAt?: string; +} /** An input for mutations affecting `DbPreset` */ export interface DbPresetInput { /** Whether this preset is selectable for new databases */ @@ -11128,7 +11401,7 @@ export interface FunctionCapabilityBindingInput { } /** An input for mutations affecting `FunctionDefinition` */ export interface FunctionDefinitionInput { - /** Invocation channels this function may be exposed through (api, graph, cron, sync, webhook). Internal worker dispatch is implicit and never listed. Default [] = worker only. */ + /** Invocation channels this function may be exposed through (api, graph, cron, sync, page, webhook). Internal worker dispatch is implicit and never listed. Default [] = worker only. */ accessChannels?: string[]; /** Function task category (e.g. email, embed, chunk, custom) */ category: string; @@ -11176,12 +11449,14 @@ export interface FunctionDefinitionInput { publishedAt?: string; /** Job queue name for serialization (e.g. email, ai, default) */ queueName?: string; - /** Bucket keys this function needs (e.g. uploads, exports). Empty = no bucket requirements. */ + /** Bucket keys this function needs (e.g. uploads, exports). Tenant-agnostic: each key is resolved per invocation against the tenant's buckets by {tags, type}, or by an explicit capability binding row. Empty = no bucket requirements. */ requiredBuckets?: string[]; /** Embedded config requirements: array of (name, required, provider) tuples. provider is the integration slug this requirement belongs to, if any. */ requiredConfigs?: ResourceRequirementInput[]; /** Inference model whitelist (e.g. gpt-4o, claude-3). Empty = no model requirements. */ requiredModels?: string[]; + /** Modules whose api surfaces this function calls, e.g. notifications_module. Suffix . to name which surface when a module's schemas are attached to several (capabilities_module.admin), and @ to pin the registration when a module is registered at more than one scope (limits_module@org) — usually unnecessary, since resolution walks the execution's scope chain. A value that is not a module name is read as an api name. Resolved per invocation; empty = no api requirements. */ + requiredModules?: string[]; /** Embedded secret requirements: array of (name, required, provider) tuples. provider is the integration slug this requirement belongs to, if any. */ requiredSecrets?: ResourceRequirementInput[]; /** Container resource requests and limits: {requests: {memory, cpu}, limits: {memory, cpu}} */ @@ -11234,6 +11509,8 @@ export interface FunctionDeploymentInput { lastErrorAt?: string; /** Target namespace for this deployment (maps to a K8s namespace) */ namespaceId: string; + /** Config/secret realm this deployment resolves required keys against. Per key, the realm-specific atom wins over the NULL-realm default. NULL = the default lane (or a runtime-query worker that fetches per-item realms on demand). */ + realm?: string; /** K8s resource spec override: {"requests":{"cpu":"100m","memory":"128Mi"},"limits":{...}} */ resources?: Record; /** Deployment revision number (incremented on each redeployment) */ @@ -11704,7 +11981,7 @@ export interface PlatformFunctionCapabilityBindingInput { } /** An input for mutations affecting `PlatformFunctionDefinition` */ export interface PlatformFunctionDefinitionInput { - /** Invocation channels this function may be exposed through (api, graph, cron, sync, webhook). Internal worker dispatch is implicit and never listed. Default [] = worker only. */ + /** Invocation channels this function may be exposed through (api, graph, cron, sync, page, webhook). Internal worker dispatch is implicit and never listed. Default [] = worker only. */ accessChannels?: string[]; /** Whether executions are metered through the invocation ledger and billing quota gate */ billable?: boolean; @@ -11752,12 +12029,14 @@ export interface PlatformFunctionDefinitionInput { publishedAt?: string; /** Job queue name for serialization (e.g. email, ai, default) */ queueName?: string; - /** Bucket keys this function needs (e.g. uploads, exports). Empty = no bucket requirements. */ + /** Bucket keys this function needs (e.g. uploads, exports). Tenant-agnostic: each key is resolved per invocation against the tenant's buckets by {tags, type}, or by an explicit capability binding row. Empty = no bucket requirements. */ requiredBuckets?: string[]; /** Embedded config requirements: array of (name, required, provider) tuples. provider is the integration slug this requirement belongs to, if any. */ requiredConfigs?: ResourceRequirementInput[]; /** Inference model whitelist (e.g. gpt-4o, claude-3). Empty = no model requirements. */ requiredModels?: string[]; + /** Modules whose api surfaces this function calls, e.g. notifications_module. Suffix . to name which surface when a module's schemas are attached to several (capabilities_module.admin), and @ to pin the registration when a module is registered at more than one scope (limits_module@org) — usually unnecessary, since resolution walks the execution's scope chain. A value that is not a module name is read as an api name. Resolved per invocation; empty = no api requirements. */ + requiredModules?: string[]; /** Embedded secret requirements: array of (name, required, provider) tuples. provider is the integration slug this requirement belongs to, if any. */ requiredSecrets?: ResourceRequirementInput[]; /** Container resource requests and limits: {requests: {memory, cpu}, limits: {memory, cpu}} */ @@ -11804,6 +12083,8 @@ export interface PlatformFunctionDeploymentInput { lastErrorAt?: string; /** Target namespace for this deployment (maps to a K8s namespace) */ namespaceId: string; + /** Config/secret realm this deployment resolves required keys against. Per key, the realm-specific atom wins over the NULL-realm default. NULL = the default lane (or a runtime-query worker that fetches per-item realms on demand). */ + realm?: string; /** K8s resource spec override: {"requests":{"cpu":"100m","memory":"128Mi"},"limits":{...}} */ resources?: Record; /** Deployment revision number (incremented on each redeployment) */ @@ -12841,6 +13122,8 @@ export interface PlatformFunctionDefinitionFilter { requiredBuckets?: StringListFilter; /** Filter by the object’s `requiredModels` field. */ requiredModels?: StringListFilter; + /** Filter by the object’s `requiredModules` field. */ + requiredModules?: StringListFilter; /** Filter by the object’s `resources` field. */ resources?: JSONFilter; /** Filter by the object’s `runtime` field. */ @@ -12900,6 +13183,8 @@ export interface FunctionDeploymentFilter { not?: FunctionDeploymentFilter; /** Checks for any expressions in this list. */ or?: FunctionDeploymentFilter[]; + /** Filter by the object’s `realm` field. */ + realm?: StringFilter; /** Filter by the object’s `resources` field. */ resources?: JSONFilter; /** Filter by the object’s `revision` field. */ @@ -13282,6 +13567,8 @@ export interface PlatformFunctionDeploymentFilter { not?: PlatformFunctionDeploymentFilter; /** Checks for any expressions in this list. */ or?: PlatformFunctionDeploymentFilter[]; + /** Filter by the object’s `realm` field. */ + realm?: StringFilter; /** Filter by the object’s `resources` field. */ resources?: JSONFilter; /** Filter by the object’s `revision` field. */ @@ -13882,6 +14169,8 @@ export interface FunctionDefinitionFilter { requiredBuckets?: StringListFilter; /** Filter by the object’s `requiredModels` field. */ requiredModels?: StringListFilter; + /** Filter by the object’s `requiredModules` field. */ + requiredModules?: StringListFilter; /** Filter by the object’s `resources` field. */ resources?: JSONFilter; /** Filter by the object’s `runtime` field. */ @@ -14189,6 +14478,28 @@ export type InfraInsertNodeAtPathPayloadSelect = { clientMutationId?: boolean; result?: boolean; }; +export interface InfraInsertNodesAtPathsPayload { + clientMutationId?: string | null; + result?: string | null; +} +export type InfraInsertNodesAtPathsPayloadSelect = { + clientMutationId?: boolean; + result?: boolean; +}; +export interface InfraSetAndCommitPayload { + clientMutationId?: string | null; + infraCommitEdge?: InfraCommitEdge | null; + result?: InfraCommit | null; +} +export type InfraSetAndCommitPayloadSelect = { + clientMutationId?: boolean; + infraCommitEdge?: { + select: InfraCommitEdgeSelect; + }; + result?: { + select: InfraCommitSelect; + }; +}; export interface InfraSetDataAtPathPayload { clientMutationId?: string | null; result?: string | null; @@ -14197,6 +14508,20 @@ export type InfraSetDataAtPathPayloadSelect = { clientMutationId?: boolean; result?: boolean; }; +export interface InfraSetManyAndCommitPayload { + clientMutationId?: string | null; + infraCommitEdge?: InfraCommitEdge | null; + result?: InfraCommit | null; +} +export type InfraSetManyAndCommitPayloadSelect = { + clientMutationId?: boolean; + infraCommitEdge?: { + select: InfraCommitEdgeSelect; + }; + result?: { + select: InfraCommitSelect; + }; +}; export interface InitEmptyRepoPayload { clientMutationId?: string | null; } @@ -14211,6 +14536,14 @@ export type InsertNodeAtPathPayloadSelect = { clientMutationId?: boolean; result?: boolean; }; +export interface InsertNodesAtPathsPayload { + clientMutationId?: string | null; + result?: string | null; +} +export type InsertNodesAtPathsPayloadSelect = { + clientMutationId?: boolean; + result?: boolean; +}; export interface PlatformInfraInitEmptyRepoPayload { clientMutationId?: string | null; } @@ -14225,6 +14558,28 @@ export type PlatformInfraInsertNodeAtPathPayloadSelect = { clientMutationId?: boolean; result?: boolean; }; +export interface PlatformInfraInsertNodesAtPathsPayload { + clientMutationId?: string | null; + result?: string | null; +} +export type PlatformInfraInsertNodesAtPathsPayloadSelect = { + clientMutationId?: boolean; + result?: boolean; +}; +export interface PlatformInfraSetAndCommitPayload { + clientMutationId?: string | null; + platformInfraCommitEdge?: PlatformInfraCommitEdge | null; + result?: PlatformInfraCommit | null; +} +export type PlatformInfraSetAndCommitPayloadSelect = { + clientMutationId?: boolean; + platformInfraCommitEdge?: { + select: PlatformInfraCommitEdgeSelect; + }; + result?: { + select: PlatformInfraCommitSelect; + }; +}; export interface PlatformInfraSetDataAtPathPayload { clientMutationId?: string | null; result?: string | null; @@ -14233,6 +14588,20 @@ export type PlatformInfraSetDataAtPathPayloadSelect = { clientMutationId?: boolean; result?: boolean; }; +export interface PlatformInfraSetManyAndCommitPayload { + clientMutationId?: string | null; + platformInfraCommitEdge?: PlatformInfraCommitEdge | null; + result?: PlatformInfraCommit | null; +} +export type PlatformInfraSetManyAndCommitPayloadSelect = { + clientMutationId?: boolean; + platformInfraCommitEdge?: { + select: PlatformInfraCommitEdgeSelect; + }; + result?: { + select: PlatformInfraCommitSelect; + }; +}; export interface PlatformResourceInstallationsInstallPayload { clientMutationId?: string | null; result?: string | null; @@ -14315,6 +14684,20 @@ export type SaveGraphPayloadSelect = { clientMutationId?: boolean; result?: boolean; }; +export interface SetAndCommitPayload { + clientMutationId?: string | null; + functionGraphCommitEdge?: FunctionGraphCommitEdge | null; + result?: FunctionGraphCommit | null; +} +export type SetAndCommitPayloadSelect = { + clientMutationId?: boolean; + functionGraphCommitEdge?: { + select: FunctionGraphCommitEdgeSelect; + }; + result?: { + select: FunctionGraphCommitSelect; + }; +}; export interface SetDataAtPathPayload { clientMutationId?: string | null; result?: string | null; @@ -14323,6 +14706,20 @@ export type SetDataAtPathPayloadSelect = { clientMutationId?: boolean; result?: boolean; }; +export interface SetManyAndCommitPayload { + clientMutationId?: string | null; + functionGraphCommitEdge?: FunctionGraphCommitEdge | null; + result?: FunctionGraphCommit | null; +} +export type SetManyAndCommitPayloadSelect = { + clientMutationId?: boolean; + functionGraphCommitEdge?: { + select: FunctionGraphCommitEdgeSelect; + }; + result?: { + select: FunctionGraphCommitSelect; + }; +}; export interface StartExecutionPayload { clientMutationId?: string | null; result?: string | null; @@ -14339,6 +14736,51 @@ export type ValidateFunctionGraphPayloadSelect = { clientMutationId?: boolean; result?: boolean; }; +export interface CreateContentPresetPayload { + clientMutationId?: string | null; + /** The `ContentPreset` that was created by this mutation. */ + contentPreset?: ContentPreset | null; + contentPresetEdge?: ContentPresetEdge | null; +} +export type CreateContentPresetPayloadSelect = { + clientMutationId?: boolean; + contentPreset?: { + select: ContentPresetSelect; + }; + contentPresetEdge?: { + select: ContentPresetEdgeSelect; + }; +}; +export interface UpdateContentPresetPayload { + clientMutationId?: string | null; + /** The `ContentPreset` that was updated by this mutation. */ + contentPreset?: ContentPreset | null; + contentPresetEdge?: ContentPresetEdge | null; +} +export type UpdateContentPresetPayloadSelect = { + clientMutationId?: boolean; + contentPreset?: { + select: ContentPresetSelect; + }; + contentPresetEdge?: { + select: ContentPresetEdgeSelect; + }; +}; +export interface DeleteContentPresetPayload { + clientMutationId?: string | null; + /** The `ContentPreset` that was deleted by this mutation. */ + contentPreset?: ContentPreset | null; + contentPresetEdge?: ContentPresetEdge | null; +} +export type DeleteContentPresetPayloadSelect = { + clientMutationId?: boolean; + contentPreset?: { + select: ContentPresetSelect; + }; + contentPresetEdge?: { + select: ContentPresetEdgeSelect; + }; +}; export interface CreateDbPresetPayload { clientMutationId?: string | null; /** The `DbPreset` that was created by this mutation. */ @@ -16852,6 +17294,54 @@ export type DeleteWebhookEventPayloadSelect = { select: WebhookEventEdgeSelect; }; }; +/** A `InfraCommit` edge in the connection. */ +export interface InfraCommitEdge { + cursor?: string | null; + /** The `InfraCommit` at the end of the edge. */ + node?: InfraCommit | null; +} +export type InfraCommitEdgeSelect = { + cursor?: boolean; + node?: { + select: InfraCommitSelect; + }; +}; +/** A `PlatformInfraCommit` edge in the connection. */ +export interface PlatformInfraCommitEdge { + cursor?: string | null; + /** The `PlatformInfraCommit` at the end of the edge. */ + node?: PlatformInfraCommit | null; +} +export type PlatformInfraCommitEdgeSelect = { + cursor?: boolean; + node?: { + select: PlatformInfraCommitSelect; + }; +}; +/** A `FunctionGraphCommit` edge in the connection. */ +export interface FunctionGraphCommitEdge { + cursor?: string | null; + /** The `FunctionGraphCommit` at the end of the edge. */ + node?: FunctionGraphCommit | null; +} +export type FunctionGraphCommitEdgeSelect = { + cursor?: boolean; + node?: { + select: FunctionGraphCommitSelect; + }; +}; +/** A `ContentPreset` edge in the connection. */ +export interface ContentPresetEdge { + cursor?: string | null; + /** The `ContentPreset` at the end of the edge. */ + node?: ContentPreset | null; +} +export type ContentPresetEdgeSelect = { + cursor?: boolean; + node?: { + select: ContentPresetSelect; + }; +}; /** A `DbPreset` edge in the connection. */ export interface DbPresetEdge { cursor?: string | null; @@ -16936,18 +17426,6 @@ export type FunctionExecutionLogEdgeSelect = { select: FunctionExecutionLogSelect; }; }; -/** A `FunctionGraphCommit` edge in the connection. */ -export interface FunctionGraphCommitEdge { - cursor?: string | null; - /** The `FunctionGraphCommit` at the end of the edge. */ - node?: FunctionGraphCommit | null; -} -export type FunctionGraphCommitEdgeSelect = { - cursor?: boolean; - node?: { - select: FunctionGraphCommitSelect; - }; -}; /** A `FunctionGraph` edge in the connection. */ export interface FunctionGraphEdge { cursor?: string | null; @@ -17056,18 +17534,6 @@ export type FunctionInvocationEdgeSelect = { select: FunctionInvocationSelect; }; }; -/** A `InfraCommit` edge in the connection. */ -export interface InfraCommitEdge { - cursor?: string | null; - /** The `InfraCommit` at the end of the edge. */ - node?: InfraCommit | null; -} -export type InfraCommitEdgeSelect = { - cursor?: boolean; - node?: { - select: InfraCommitSelect; - }; -}; /** A `InfraObject` edge in the connection. */ export interface InfraObjectEdge { cursor?: string | null; @@ -17236,18 +17702,6 @@ export type PlatformFunctionInvocationEdgeSelect = { select: PlatformFunctionInvocationSelect; }; }; -/** A `PlatformInfraCommit` edge in the connection. */ -export interface PlatformInfraCommitEdge { - cursor?: string | null; - /** The `PlatformInfraCommit` at the end of the edge. */ - node?: PlatformInfraCommit | null; -} -export type PlatformInfraCommitEdgeSelect = { - cursor?: boolean; - node?: { - select: PlatformInfraCommitSelect; - }; -}; /** A `PlatformInfraObject` edge in the connection. */ export interface PlatformInfraObjectEdge { cursor?: string | null; diff --git a/sdk/constructive-cli/src/admin/orm/models/orgPermission.ts b/sdk/constructive-react/src/compute/orm/models/contentPreset.ts similarity index 53% rename from sdk/constructive-cli/src/admin/orm/models/orgPermission.ts rename to sdk/constructive-react/src/compute/orm/models/contentPreset.ts index e3aded7147..20242ccc78 100644 --- a/sdk/constructive-cli/src/admin/orm/models/orgPermission.ts +++ b/sdk/constructive-react/src/compute/orm/models/contentPreset.ts @@ -1,5 +1,5 @@ /** - * OrgPermission model for ORM client + * ContentPreset 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 { - OrgPermission, - OrgPermissionWithRelations, - OrgPermissionSelect, - OrgPermissionFilter, - OrgPermissionOrderBy, - CreateOrgPermissionInput, - UpdateOrgPermissionInput, - OrgPermissionPatch, + ContentPreset, + ContentPresetWithRelations, + ContentPresetSelect, + ContentPresetFilter, + ContentPresetOrderBy, + CreateContentPresetInput, + UpdateContentPresetInput, + ContentPresetPatch, } from '../input-types'; import { connectionFieldsMap } from '../input-types'; -export class OrgPermissionModel { +export class ContentPresetModel { constructor(private client: OrmClient) {} - findMany( - args: FindManyArgs & { + findMany( + args: FindManyArgs & { select: S; - } & StrictSelect + } & StrictSelect ): QueryBuilder<{ - orgPermissions: ConnectionResult>; + contentPresets: ConnectionResult>; }> { const { document, variables } = buildFindManyDocument( - 'OrgPermission', - 'orgPermissions', + 'ContentPreset', + 'contentPresets', args.select, { where: args?.where, @@ -56,65 +56,65 @@ export class OrgPermissionModel { before: args?.before, offset: args?.offset, }, - 'OrgPermissionFilter', - 'OrgPermissionOrderBy', + 'ContentPresetFilter', + 'ContentPresetOrderBy', connectionFieldsMap ); return new QueryBuilder({ client: this.client, operation: 'query', - operationName: 'OrgPermission', - fieldName: 'orgPermissions', + operationName: 'ContentPreset', + fieldName: 'contentPresets', document, variables, }); } - findFirst( - args: FindFirstArgs & { + findFirst( + args: FindFirstArgs & { select: S; - } & StrictSelect + } & StrictSelect ): QueryBuilder<{ - orgPermission: InferSelectResult | null; + contentPreset: InferSelectResult | null; }> { const { document, variables } = buildFindFirstDocument( - 'OrgPermission', - 'orgPermissions', + 'ContentPreset', + 'contentPresets', args.select, { where: args?.where, orderBy: args?.orderBy as string[] | undefined, }, - 'OrgPermissionFilter', - 'OrgPermissionOrderBy', + 'ContentPresetFilter', + 'ContentPresetOrderBy', connectionFieldsMap ); return new QueryBuilder({ client: this.client, operation: 'query', - operationName: 'OrgPermission', - fieldName: 'orgPermission', + operationName: 'ContentPreset', + fieldName: 'contentPreset', document, variables, transform: (data: { - orgPermissions?: { - nodes?: InferSelectResult[]; + contentPresets?: { + nodes?: InferSelectResult[]; }; }) => ({ - orgPermission: data.orgPermissions?.nodes?.[0] ?? null, + contentPreset: data.contentPresets?.nodes?.[0] ?? null, }), }); } - findOne( + findOne( args: { id: string; select: S; - } & StrictSelect + } & StrictSelect ): QueryBuilder<{ - orgPermission: InferSelectResult | null; + contentPreset: InferSelectResult | null; }> { const { document, variables } = buildFindManyDocument( - 'OrgPermission', - 'orgPermissions', + 'ContentPreset', + 'contentPresets', args.select, { where: { @@ -124,91 +124,91 @@ export class OrgPermissionModel { }, first: 1, }, - 'OrgPermissionFilter', - 'OrgPermissionOrderBy', + 'ContentPresetFilter', + 'ContentPresetOrderBy', connectionFieldsMap ); return new QueryBuilder({ client: this.client, operation: 'query', - operationName: 'OrgPermission', - fieldName: 'orgPermission', + operationName: 'ContentPreset', + fieldName: 'contentPreset', document, variables, transform: (data: { - orgPermissions?: { - nodes?: InferSelectResult[]; + contentPresets?: { + nodes?: InferSelectResult[]; }; }) => ({ - orgPermission: data.orgPermissions?.nodes?.[0] ?? null, + contentPreset: data.contentPresets?.nodes?.[0] ?? null, }), }); } - create( - args: CreateArgs & { + create( + args: CreateArgs & { select: S; - } & StrictSelect + } & StrictSelect ): QueryBuilder<{ - createOrgPermission: { - orgPermission: InferSelectResult; + createContentPreset: { + contentPreset: InferSelectResult; }; }> { const { document, variables } = buildCreateDocument( - 'OrgPermission', - 'createOrgPermission', - 'orgPermission', + 'ContentPreset', + 'createContentPreset', + 'contentPreset', args.select, args.data, - 'CreateOrgPermissionInput', + 'CreateContentPresetInput', connectionFieldsMap ); return new QueryBuilder({ client: this.client, operation: 'mutation', - operationName: 'OrgPermission', - fieldName: 'createOrgPermission', + operationName: 'ContentPreset', + fieldName: 'createContentPreset', document, variables, }); } - update( + update( args: UpdateArgs< S, { id: string; }, - OrgPermissionPatch + ContentPresetPatch > & { select: S; - } & StrictSelect + } & StrictSelect ): QueryBuilder<{ - updateOrgPermission: { - orgPermission: InferSelectResult; + updateContentPreset: { + contentPreset: InferSelectResult; }; }> { const { document, variables } = buildUpdateByPkDocument( - 'OrgPermission', - 'updateOrgPermission', - 'orgPermission', + 'ContentPreset', + 'updateContentPreset', + 'contentPreset', args.select, args.where.id, args.data, - 'UpdateOrgPermissionInput', + 'UpdateContentPresetInput', 'id', - 'orgPermissionPatch', + 'contentPresetPatch', connectionFieldsMap, undefined ); return new QueryBuilder({ client: this.client, operation: 'mutation', - operationName: 'OrgPermission', - fieldName: 'updateOrgPermission', + operationName: 'ContentPreset', + fieldName: 'updateContentPreset', document, variables, }); } - delete( + delete( args: DeleteArgs< { id: string; @@ -216,28 +216,28 @@ export class OrgPermissionModel { S > & { select: S; - } & StrictSelect + } & StrictSelect ): QueryBuilder<{ - deleteOrgPermission: { - orgPermission: InferSelectResult; + deleteContentPreset: { + contentPreset: InferSelectResult; }; }> { const { document, variables } = buildDeleteByPkDocument( - 'OrgPermission', - 'deleteOrgPermission', - 'orgPermission', + 'ContentPreset', + 'deleteContentPreset', + 'contentPreset', { id: args.where.id, }, - 'DeleteOrgPermissionInput', + 'DeleteContentPresetInput', args.select, connectionFieldsMap ); return new QueryBuilder({ client: this.client, operation: 'mutation', - operationName: 'OrgPermission', - fieldName: 'deleteOrgPermission', + operationName: 'ContentPreset', + fieldName: 'deleteContentPreset', document, variables, }); diff --git a/sdk/constructive-react/src/compute/orm/models/index.ts b/sdk/constructive-react/src/compute/orm/models/index.ts index e2480958de..bb1916cea6 100644 --- a/sdk/constructive-react/src/compute/orm/models/index.ts +++ b/sdk/constructive-react/src/compute/orm/models/index.ts @@ -3,6 +3,7 @@ * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ +export { ContentPresetModel } from './contentPreset'; export { DbPresetModel } from './dbPreset'; export { FunctionApiBindingModel } from './functionApiBinding'; export { FunctionCapabilityBindingModel } from './functionCapabilityBinding'; diff --git a/sdk/constructive-react/src/compute/orm/mutation/index.ts b/sdk/constructive-react/src/compute/orm/mutation/index.ts index c5bc975047..948d1e8903 100644 --- a/sdk/constructive-react/src/compute/orm/mutation/index.ts +++ b/sdk/constructive-react/src/compute/orm/mutation/index.ts @@ -16,12 +16,19 @@ import type { ImportGraphJsonInput, InfraInitEmptyRepoInput, InfraInsertNodeAtPathInput, + InfraInsertNodesAtPathsInput, + InfraSetAndCommitInput, InfraSetDataAtPathInput, + InfraSetManyAndCommitInput, InitEmptyRepoInput, InsertNodeAtPathInput, + InsertNodesAtPathsInput, PlatformInfraInitEmptyRepoInput, PlatformInfraInsertNodeAtPathInput, + PlatformInfraInsertNodesAtPathsInput, + PlatformInfraSetAndCommitInput, PlatformInfraSetDataAtPathInput, + PlatformInfraSetManyAndCommitInput, PlatformResourceInstallationsInstallInput, PlatformResourceInstallationsRollbackInput, PlatformResourceInstallationsUninstallInput, @@ -32,7 +39,9 @@ import type { ResourceInstallationsUninstallInput, ResourceInstallationsUpgradeInput, SaveGraphInput, + SetAndCommitInput, SetDataAtPathInput, + SetManyAndCommitInput, StartExecutionInput, ValidateFunctionGraphInput, AddEdgePayload, @@ -44,12 +53,19 @@ import type { ImportGraphJsonPayload, InfraInitEmptyRepoPayload, InfraInsertNodeAtPathPayload, + InfraInsertNodesAtPathsPayload, + InfraSetAndCommitPayload, InfraSetDataAtPathPayload, + InfraSetManyAndCommitPayload, InitEmptyRepoPayload, InsertNodeAtPathPayload, + InsertNodesAtPathsPayload, PlatformInfraInitEmptyRepoPayload, PlatformInfraInsertNodeAtPathPayload, + PlatformInfraInsertNodesAtPathsPayload, + PlatformInfraSetAndCommitPayload, PlatformInfraSetDataAtPathPayload, + PlatformInfraSetManyAndCommitPayload, PlatformResourceInstallationsInstallPayload, PlatformResourceInstallationsRollbackPayload, PlatformResourceInstallationsUninstallPayload, @@ -60,7 +76,9 @@ import type { ResourceInstallationsUninstallPayload, ResourceInstallationsUpgradePayload, SaveGraphPayload, + SetAndCommitPayload, SetDataAtPathPayload, + SetManyAndCommitPayload, StartExecutionPayload, ValidateFunctionGraphPayload, AddEdgePayloadSelect, @@ -72,12 +90,19 @@ import type { ImportGraphJsonPayloadSelect, InfraInitEmptyRepoPayloadSelect, InfraInsertNodeAtPathPayloadSelect, + InfraInsertNodesAtPathsPayloadSelect, + InfraSetAndCommitPayloadSelect, InfraSetDataAtPathPayloadSelect, + InfraSetManyAndCommitPayloadSelect, InitEmptyRepoPayloadSelect, InsertNodeAtPathPayloadSelect, + InsertNodesAtPathsPayloadSelect, PlatformInfraInitEmptyRepoPayloadSelect, PlatformInfraInsertNodeAtPathPayloadSelect, + PlatformInfraInsertNodesAtPathsPayloadSelect, + PlatformInfraSetAndCommitPayloadSelect, PlatformInfraSetDataAtPathPayloadSelect, + PlatformInfraSetManyAndCommitPayloadSelect, PlatformResourceInstallationsInstallPayloadSelect, PlatformResourceInstallationsRollbackPayloadSelect, PlatformResourceInstallationsUninstallPayloadSelect, @@ -88,7 +113,9 @@ import type { ResourceInstallationsUninstallPayloadSelect, ResourceInstallationsUpgradePayloadSelect, SaveGraphPayloadSelect, + SetAndCommitPayloadSelect, SetDataAtPathPayloadSelect, + SetManyAndCommitPayloadSelect, StartExecutionPayloadSelect, ValidateFunctionGraphPayloadSelect, } from '../input-types'; @@ -120,24 +147,45 @@ export interface InfraInitEmptyRepoVariables { export interface InfraInsertNodeAtPathVariables { input: InfraInsertNodeAtPathInput; } +export interface InfraInsertNodesAtPathsVariables { + input: InfraInsertNodesAtPathsInput; +} +export interface InfraSetAndCommitVariables { + input: InfraSetAndCommitInput; +} export interface InfraSetDataAtPathVariables { input: InfraSetDataAtPathInput; } +export interface InfraSetManyAndCommitVariables { + input: InfraSetManyAndCommitInput; +} export interface InitEmptyRepoVariables { input: InitEmptyRepoInput; } export interface InsertNodeAtPathVariables { input: InsertNodeAtPathInput; } +export interface InsertNodesAtPathsVariables { + input: InsertNodesAtPathsInput; +} export interface PlatformInfraInitEmptyRepoVariables { input: PlatformInfraInitEmptyRepoInput; } export interface PlatformInfraInsertNodeAtPathVariables { input: PlatformInfraInsertNodeAtPathInput; } +export interface PlatformInfraInsertNodesAtPathsVariables { + input: PlatformInfraInsertNodesAtPathsInput; +} +export interface PlatformInfraSetAndCommitVariables { + input: PlatformInfraSetAndCommitInput; +} export interface PlatformInfraSetDataAtPathVariables { input: PlatformInfraSetDataAtPathInput; } +export interface PlatformInfraSetManyAndCommitVariables { + input: PlatformInfraSetManyAndCommitInput; +} export interface PlatformResourceInstallationsInstallVariables { input: PlatformResourceInstallationsInstallInput; } @@ -175,9 +223,15 @@ export interface ResourceInstallationsUpgradeVariables { export interface SaveGraphVariables { input: SaveGraphInput; } +export interface SetAndCommitVariables { + input: SetAndCommitInput; +} export interface SetDataAtPathVariables { input: SetDataAtPathInput; } +export interface SetManyAndCommitVariables { + input: SetManyAndCommitInput; +} export interface StartExecutionVariables { input: StartExecutionInput; } @@ -447,6 +501,64 @@ export function createMutationOperations(client: OrmClient) { 'InfraInsertNodeAtPathPayload' ), }), + infraInsertNodesAtPaths: ( + args: InfraInsertNodesAtPathsVariables, + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + infraInsertNodesAtPaths: InferSelectResult | null; + }>({ + client, + operation: 'mutation', + operationName: 'InfraInsertNodesAtPaths', + fieldName: 'infraInsertNodesAtPaths', + ...buildCustomDocument( + 'mutation', + 'InfraInsertNodesAtPaths', + 'infraInsertNodesAtPaths', + options.select, + args, + [ + { + name: 'input', + type: 'InfraInsertNodesAtPathsInput!', + }, + ], + connectionFieldsMap, + 'InfraInsertNodesAtPathsPayload' + ), + }), + infraSetAndCommit: ( + args: InfraSetAndCommitVariables, + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + infraSetAndCommit: InferSelectResult | null; + }>({ + client, + operation: 'mutation', + operationName: 'InfraSetAndCommit', + fieldName: 'infraSetAndCommit', + ...buildCustomDocument( + 'mutation', + 'InfraSetAndCommit', + 'infraSetAndCommit', + options.select, + args, + [ + { + name: 'input', + type: 'InfraSetAndCommitInput!', + }, + ], + connectionFieldsMap, + 'InfraSetAndCommitPayload' + ), + }), infraSetDataAtPath: ( args: InfraSetDataAtPathVariables, options: { @@ -476,6 +588,35 @@ export function createMutationOperations(client: OrmClient) { 'InfraSetDataAtPathPayload' ), }), + infraSetManyAndCommit: ( + args: InfraSetManyAndCommitVariables, + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + infraSetManyAndCommit: InferSelectResult | null; + }>({ + client, + operation: 'mutation', + operationName: 'InfraSetManyAndCommit', + fieldName: 'infraSetManyAndCommit', + ...buildCustomDocument( + 'mutation', + 'InfraSetManyAndCommit', + 'infraSetManyAndCommit', + options.select, + args, + [ + { + name: 'input', + type: 'InfraSetManyAndCommitInput!', + }, + ], + connectionFieldsMap, + 'InfraSetManyAndCommitPayload' + ), + }), initEmptyRepo: ( args: InitEmptyRepoVariables, options: { @@ -534,6 +675,35 @@ export function createMutationOperations(client: OrmClient) { 'InsertNodeAtPathPayload' ), }), + insertNodesAtPaths: ( + args: InsertNodesAtPathsVariables, + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + insertNodesAtPaths: InferSelectResult | null; + }>({ + client, + operation: 'mutation', + operationName: 'InsertNodesAtPaths', + fieldName: 'insertNodesAtPaths', + ...buildCustomDocument( + 'mutation', + 'InsertNodesAtPaths', + 'insertNodesAtPaths', + options.select, + args, + [ + { + name: 'input', + type: 'InsertNodesAtPathsInput!', + }, + ], + connectionFieldsMap, + 'InsertNodesAtPathsPayload' + ), + }), platformInfraInitEmptyRepo: ( args: PlatformInfraInitEmptyRepoVariables, options: { @@ -595,6 +765,67 @@ export function createMutationOperations(client: OrmClient) { 'PlatformInfraInsertNodeAtPathPayload' ), }), + platformInfraInsertNodesAtPaths: ( + args: PlatformInfraInsertNodesAtPathsVariables, + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + platformInfraInsertNodesAtPaths: InferSelectResult< + PlatformInfraInsertNodesAtPathsPayload, + S + > | null; + }>({ + client, + operation: 'mutation', + operationName: 'PlatformInfraInsertNodesAtPaths', + fieldName: 'platformInfraInsertNodesAtPaths', + ...buildCustomDocument( + 'mutation', + 'PlatformInfraInsertNodesAtPaths', + 'platformInfraInsertNodesAtPaths', + options.select, + args, + [ + { + name: 'input', + type: 'PlatformInfraInsertNodesAtPathsInput!', + }, + ], + connectionFieldsMap, + 'PlatformInfraInsertNodesAtPathsPayload' + ), + }), + platformInfraSetAndCommit: ( + args: PlatformInfraSetAndCommitVariables, + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + platformInfraSetAndCommit: InferSelectResult | null; + }>({ + client, + operation: 'mutation', + operationName: 'PlatformInfraSetAndCommit', + fieldName: 'platformInfraSetAndCommit', + ...buildCustomDocument( + 'mutation', + 'PlatformInfraSetAndCommit', + 'platformInfraSetAndCommit', + options.select, + args, + [ + { + name: 'input', + type: 'PlatformInfraSetAndCommitInput!', + }, + ], + connectionFieldsMap, + 'PlatformInfraSetAndCommitPayload' + ), + }), platformInfraSetDataAtPath: ( args: PlatformInfraSetDataAtPathVariables, options: { @@ -624,6 +855,38 @@ export function createMutationOperations(client: OrmClient) { 'PlatformInfraSetDataAtPathPayload' ), }), + platformInfraSetManyAndCommit: ( + args: PlatformInfraSetManyAndCommitVariables, + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + platformInfraSetManyAndCommit: InferSelectResult< + PlatformInfraSetManyAndCommitPayload, + S + > | null; + }>({ + client, + operation: 'mutation', + operationName: 'PlatformInfraSetManyAndCommit', + fieldName: 'platformInfraSetManyAndCommit', + ...buildCustomDocument( + 'mutation', + 'PlatformInfraSetManyAndCommit', + 'platformInfraSetManyAndCommit', + options.select, + args, + [ + { + name: 'input', + type: 'PlatformInfraSetManyAndCommitInput!', + }, + ], + connectionFieldsMap, + 'PlatformInfraSetManyAndCommitPayload' + ), + }), platformResourceInstallationsInstall: < S extends PlatformResourceInstallationsInstallPayloadSelect, >( @@ -946,6 +1209,35 @@ export function createMutationOperations(client: OrmClient) { 'SaveGraphPayload' ), }), + setAndCommit: ( + args: SetAndCommitVariables, + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + setAndCommit: InferSelectResult | null; + }>({ + client, + operation: 'mutation', + operationName: 'SetAndCommit', + fieldName: 'setAndCommit', + ...buildCustomDocument( + 'mutation', + 'SetAndCommit', + 'setAndCommit', + options.select, + args, + [ + { + name: 'input', + type: 'SetAndCommitInput!', + }, + ], + connectionFieldsMap, + 'SetAndCommitPayload' + ), + }), setDataAtPath: ( args: SetDataAtPathVariables, options: { @@ -975,6 +1267,35 @@ export function createMutationOperations(client: OrmClient) { 'SetDataAtPathPayload' ), }), + setManyAndCommit: ( + args: SetManyAndCommitVariables, + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + setManyAndCommit: InferSelectResult | null; + }>({ + client, + operation: 'mutation', + operationName: 'SetManyAndCommit', + fieldName: 'setManyAndCommit', + ...buildCustomDocument( + 'mutation', + 'SetManyAndCommit', + 'setManyAndCommit', + options.select, + args, + [ + { + name: 'input', + type: 'SetManyAndCommitInput!', + }, + ], + connectionFieldsMap, + 'SetManyAndCommitPayload' + ), + }), startExecution: ( args: StartExecutionVariables, options: { diff --git a/sdk/constructive-react/src/compute/schema-types.ts b/sdk/constructive-react/src/compute/schema-types.ts index 0bf71d7986..1b51e2e9f3 100644 --- a/sdk/constructive-react/src/compute/schema-types.ts +++ b/sdk/constructive-react/src/compute/schema-types.ts @@ -5,6 +5,7 @@ */ import type { + ContentPreset, DbPreset, FunctionApiBinding, FunctionCapabilityBinding, @@ -94,6 +95,33 @@ import type { } from './types'; export type Base64EncodedBinary = unknown; export type ConstructiveInternalTypeImage = unknown; +/** Methods to use when ordering `ContentPreset`. */ +export type ContentPresetOrderBy = + | 'ACTIVE_ASC' + | 'ACTIVE_DESC' + | 'COMMIT_ID_ASC' + | 'COMMIT_ID_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'DEFINITION_ASC' + | 'DEFINITION_DESC' + | 'DESCRIPTION_ASC' + | 'DESCRIPTION_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'KIND_ASC' + | 'KIND_DESC' + | 'LABEL_ASC' + | 'LABEL_DESC' + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'SLUG_ASC' + | 'SLUG_DESC' + | 'STORE_ID_ASC' + | 'STORE_ID_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC'; /** Methods to use when ordering `DbPreset`. */ export type DbPresetOrderBy = | 'ACTIVE_ASC' @@ -234,6 +262,8 @@ export type FunctionDefinitionOrderBy = | 'REQUIRED_CONFIGS_DESC' | 'REQUIRED_MODELS_ASC' | 'REQUIRED_MODELS_DESC' + | 'REQUIRED_MODULES_ASC' + | 'REQUIRED_MODULES_DESC' | 'REQUIRED_SECRETS_ASC' | 'REQUIRED_SECRETS_DESC' | 'RESOURCES_ASC' @@ -308,6 +338,8 @@ export type FunctionDeploymentOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' + | 'REALM_ASC' + | 'REALM_DESC' | 'RESOURCES_ASC' | 'RESOURCES_DESC' | 'REVISION_ASC' @@ -905,6 +937,8 @@ export type PlatformFunctionDefinitionOrderBy = | 'REQUIRED_CONFIGS_DESC' | 'REQUIRED_MODELS_ASC' | 'REQUIRED_MODELS_DESC' + | 'REQUIRED_MODULES_ASC' + | 'REQUIRED_MODULES_DESC' | 'REQUIRED_SECRETS_ASC' | 'REQUIRED_SECRETS_DESC' | 'RESOURCES_ASC' @@ -977,6 +1011,8 @@ export type PlatformFunctionDeploymentOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' + | 'REALM_ASC' + | 'REALM_DESC' | 'RESOURCES_ASC' | 'RESOURCES_DESC' | 'REVISION_ASC' @@ -2236,12 +2272,98 @@ export interface ConstructiveInternalTypeImageFilter { /** Not included in the specified list. */ notIn?: ConstructiveInternalTypeImage[]; } +/** A filter to be used against `ContentPreset` object types. All fields are combined with a logical ‘and.’ */ +export interface ContentPresetFilter { + /** Filter by the object’s `active` field. */ + active?: BooleanFilter; + /** Checks for all expressions in this list. */ + and?: ContentPresetFilter[]; + /** Filter by the object’s `commitId` field. */ + commitId?: UUIDFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `definition` field. */ + definition?: JSONFilter; + /** Filter by the object’s `description` field. */ + description?: StringFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `kind` field. */ + kind?: StringFilter; + /** Filter by the object’s `label` field. */ + label?: StringFilter; + /** Negates the expression. */ + not?: ContentPresetFilter; + /** Checks for any expressions in this list. */ + or?: ContentPresetFilter[]; + /** Filter by the object’s `slug` field. */ + slug?: StringFilter; + /** Filter by the object’s `storeId` field. */ + storeId?: UUIDFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; +} +/** An input for mutations affecting `ContentPreset` */ +export interface ContentPresetInput { + /** Whether this preset is selectable at provision time */ + active?: boolean; + /** Infra store commit for the current definition (stamped by the versioned trigger on every write) */ + commitId?: string; + /** Timestamp of preset creation */ + createdAt?: string; + /** The seed document itself, in the shape the kind's seed function takes — the readily-cached head; history lives in the infra store */ + definition: unknown; + /** Human-readable description of the preset */ + description?: string; + /** Unique preset identifier */ + id?: string; + /** What the definition seeds — the module option that resolves it (limit_defaults, trust_ladder, ...) */ + kind: string; + /** Human-readable preset name */ + label?: string; + /** Preset slug (unique per kind per scope); the preset's path in the infra tree is [content_preset, kind, slug] */ + slug: string; + /** Infra Merkle store holding this preset's history (stamped by the versioned trigger) */ + storeId?: string; + /** Timestamp of last modification */ + updatedAt?: string; +} +/** Represents an update to a `ContentPreset`. Fields that are set will be updated. */ +export interface ContentPresetPatch { + /** Whether this preset is selectable at provision time */ + active?: boolean; + /** Infra store commit for the current definition (stamped by the versioned trigger on every write) */ + commitId?: string; + /** Timestamp of preset creation */ + createdAt?: string; + /** The seed document itself, in the shape the kind's seed function takes — the readily-cached head; history lives in the infra store */ + definition?: unknown; + /** Human-readable description of the preset */ + description?: string; + /** Unique preset identifier */ + id?: string; + /** What the definition seeds — the module option that resolves it (limit_defaults, trust_ladder, ...) */ + kind?: string; + /** Human-readable preset name */ + label?: string; + /** Preset slug (unique per kind per scope); the preset's path in the infra tree is [content_preset, kind, slug] */ + slug?: string; + /** Infra Merkle store holding this preset's history (stamped by the versioned trigger) */ + storeId?: string; + /** Timestamp of last modification */ + updatedAt?: string; +} export interface CopyGraphInput { clientMutationId?: string; graphId?: string; name?: string; scopeId?: string; } +export interface CreateContentPresetInput { + clientMutationId?: string; + /** The `ContentPreset` to be created by this mutation. */ + contentPreset: ContentPresetInput; +} export interface CreateDbPresetInput { clientMutationId?: string; /** The `DbPreset` to be created by this mutation. */ @@ -2607,6 +2729,11 @@ export interface DbPresetPatch { /** Timestamp of last modification */ updatedAt?: string; } +export interface DeleteContentPresetInput { + clientMutationId?: string; + /** Unique preset identifier */ + id: string; +} export interface DeleteDbPresetInput { clientMutationId?: string; /** Unique preset identifier */ @@ -3139,6 +3266,8 @@ export interface FunctionDefinitionFilter { requiredBuckets?: StringListFilter; /** Filter by the object’s `requiredModels` field. */ requiredModels?: StringListFilter; + /** Filter by the object’s `requiredModules` field. */ + requiredModules?: StringListFilter; /** Filter by the object’s `resources` field. */ resources?: JSONFilter; /** Filter by the object’s `runtime` field. */ @@ -3166,7 +3295,7 @@ export interface FunctionDefinitionFilter { } /** An input for mutations affecting `FunctionDefinition` */ export interface FunctionDefinitionInput { - /** Invocation channels this function may be exposed through (api, graph, cron, sync, webhook). Internal worker dispatch is implicit and never listed. Default [] = worker only. */ + /** Invocation channels this function may be exposed through (api, graph, cron, sync, page, webhook). Internal worker dispatch is implicit and never listed. Default [] = worker only. */ accessChannels?: string[]; /** Function task category (e.g. email, embed, chunk, custom) */ category: string; @@ -3214,12 +3343,14 @@ export interface FunctionDefinitionInput { publishedAt?: string; /** Job queue name for serialization (e.g. email, ai, default) */ queueName?: string; - /** Bucket keys this function needs (e.g. uploads, exports). Empty = no bucket requirements. */ + /** Bucket keys this function needs (e.g. uploads, exports). Tenant-agnostic: each key is resolved per invocation against the tenant's buckets by {tags, type}, or by an explicit capability binding row. Empty = no bucket requirements. */ requiredBuckets?: string[]; /** Embedded config requirements: array of (name, required, provider) tuples. provider is the integration slug this requirement belongs to, if any. */ requiredConfigs?: ResourceRequirementInput[]; /** Inference model whitelist (e.g. gpt-4o, claude-3). Empty = no model requirements. */ requiredModels?: string[]; + /** Modules whose api surfaces this function calls, e.g. notifications_module. Suffix . to name which surface when a module's schemas are attached to several (capabilities_module.admin), and @ to pin the registration when a module is registered at more than one scope (limits_module@org) — usually unnecessary, since resolution walks the execution's scope chain. A value that is not a module name is read as an api name. Resolved per invocation; empty = no api requirements. */ + requiredModules?: string[]; /** Embedded secret requirements: array of (name, required, provider) tuples. provider is the integration slug this requirement belongs to, if any. */ requiredSecrets?: ResourceRequirementInput[]; /** Container resource requests and limits: {requests: {memory, cpu}, limits: {memory, cpu}} */ @@ -3242,7 +3373,7 @@ export interface FunctionDefinitionInput { } /** Represents an update to a `FunctionDefinition`. Fields that are set will be updated. */ export interface FunctionDefinitionPatch { - /** Invocation channels this function may be exposed through (api, graph, cron, sync, webhook). Internal worker dispatch is implicit and never listed. Default [] = worker only. */ + /** Invocation channels this function may be exposed through (api, graph, cron, sync, page, webhook). Internal worker dispatch is implicit and never listed. Default [] = worker only. */ accessChannels?: string[]; /** Function task category (e.g. email, embed, chunk, custom) */ category?: string; @@ -3290,12 +3421,14 @@ export interface FunctionDefinitionPatch { publishedAt?: string; /** Job queue name for serialization (e.g. email, ai, default) */ queueName?: string; - /** Bucket keys this function needs (e.g. uploads, exports). Empty = no bucket requirements. */ + /** Bucket keys this function needs (e.g. uploads, exports). Tenant-agnostic: each key is resolved per invocation against the tenant's buckets by {tags, type}, or by an explicit capability binding row. Empty = no bucket requirements. */ requiredBuckets?: string[]; /** Embedded config requirements: array of (name, required, provider) tuples. provider is the integration slug this requirement belongs to, if any. */ requiredConfigs?: ResourceRequirementInput[]; /** Inference model whitelist (e.g. gpt-4o, claude-3). Empty = no model requirements. */ requiredModels?: string[]; + /** Modules whose api surfaces this function calls, e.g. notifications_module. Suffix . to name which surface when a module's schemas are attached to several (capabilities_module.admin), and @ to pin the registration when a module is registered at more than one scope (limits_module@org) — usually unnecessary, since resolution walks the execution's scope chain. A value that is not a module name is read as an api name. Resolved per invocation; empty = no api requirements. */ + requiredModules?: string[]; /** Embedded secret requirements: array of (name, required, provider) tuples. provider is the integration slug this requirement belongs to, if any. */ requiredSecrets?: ResourceRequirementInput[]; /** Container resource requests and limits: {requests: {memory, cpu}, limits: {memory, cpu}} */ @@ -3442,6 +3575,8 @@ export interface FunctionDeploymentFilter { not?: FunctionDeploymentFilter; /** Checks for any expressions in this list. */ or?: FunctionDeploymentFilter[]; + /** Filter by the object’s `realm` field. */ + realm?: StringFilter; /** Filter by the object’s `resources` field. */ resources?: JSONFilter; /** Filter by the object’s `revision` field. */ @@ -3487,6 +3622,8 @@ export interface FunctionDeploymentInput { lastErrorAt?: string; /** Target namespace for this deployment (maps to a K8s namespace) */ namespaceId: string; + /** Config/secret realm this deployment resolves required keys against. Per key, the realm-specific atom wins over the NULL-realm default. NULL = the default lane (or a runtime-query worker that fetches per-item realms on demand). */ + realm?: string; /** K8s resource spec override: {"requests":{"cpu":"100m","memory":"128Mi"},"limits":{...}} */ resources?: unknown; /** Deployment revision number (incremented on each redeployment) */ @@ -3531,6 +3668,8 @@ export interface FunctionDeploymentPatch { lastErrorAt?: string; /** Target namespace for this deployment (maps to a K8s namespace) */ namespaceId?: string; + /** Config/secret realm this deployment resolves required keys against. Per key, the realm-specific atom wins over the NULL-realm default. NULL = the default lane (or a runtime-query worker that fetches per-item realms on demand). */ + realm?: string; /** K8s resource spec override: {"requests":{"cpu":"100m","memory":"128Mi"},"limits":{...}} */ resources?: unknown; /** Deployment revision number (incremented on each redeployment) */ @@ -4605,6 +4744,15 @@ export interface InfraInsertNodeAtPathInput { root?: string; sId?: string; } +export interface InfraInsertNodesAtPathsInput { + clientMutationId?: string; + datas?: unknown[]; + kidsList?: unknown; + ktreeList?: unknown; + paths?: unknown; + root?: string; + sId?: string; +} /** A filter to be used against `InfraObject` object types. All fields are combined with a logical ‘and.’ */ export interface InfraObjectFilter { /** Checks for all expressions in this list. */ @@ -4701,6 +4849,17 @@ export interface InfraRefPatch { /** Store this ref belongs to */ storeId?: string; } +export interface InfraSetAndCommitInput { + clientMutationId?: string; + data?: unknown; + kids?: string[]; + ktree?: string[]; + message?: string; + path?: string[]; + refname?: string; + sId?: string; + storeId?: string; +} export interface InfraSetDataAtPathInput { clientMutationId?: string; data?: unknown; @@ -4708,6 +4867,14 @@ export interface InfraSetDataAtPathInput { root?: string; sId?: string; } +export interface InfraSetManyAndCommitInput { + clientMutationId?: string; + entries?: unknown; + message?: string; + refname?: string; + sId?: string; + storeId?: string; +} /** A filter to be used against `InfraStore` object types. All fields are combined with a logical ‘and.’ */ export interface InfraStoreFilter { /** Checks for all expressions in this list. */ @@ -4767,6 +4934,15 @@ export interface InsertNodeAtPathInput { root?: string; sId?: string; } +export interface InsertNodesAtPathsInput { + clientMutationId?: string; + datas?: unknown[]; + kidsList?: unknown; + ktreeList?: unknown; + paths?: unknown; + root?: string; + sId?: string; +} /** A filter to be used against `IntegrationProvider` object types. All fields are combined with a logical ‘and.’ */ export interface IntegrationProviderFilter { /** Checks for all expressions in this list. */ @@ -5324,6 +5500,8 @@ export interface PlatformFunctionDefinitionFilter { requiredBuckets?: StringListFilter; /** Filter by the object’s `requiredModels` field. */ requiredModels?: StringListFilter; + /** Filter by the object’s `requiredModules` field. */ + requiredModules?: StringListFilter; /** Filter by the object’s `resources` field. */ resources?: JSONFilter; /** Filter by the object’s `runtime` field. */ @@ -5349,7 +5527,7 @@ export interface PlatformFunctionDefinitionFilter { } /** An input for mutations affecting `PlatformFunctionDefinition` */ export interface PlatformFunctionDefinitionInput { - /** Invocation channels this function may be exposed through (api, graph, cron, sync, webhook). Internal worker dispatch is implicit and never listed. Default [] = worker only. */ + /** Invocation channels this function may be exposed through (api, graph, cron, sync, page, webhook). Internal worker dispatch is implicit and never listed. Default [] = worker only. */ accessChannels?: string[]; /** Whether executions are metered through the invocation ledger and billing quota gate */ billable?: boolean; @@ -5397,12 +5575,14 @@ export interface PlatformFunctionDefinitionInput { publishedAt?: string; /** Job queue name for serialization (e.g. email, ai, default) */ queueName?: string; - /** Bucket keys this function needs (e.g. uploads, exports). Empty = no bucket requirements. */ + /** Bucket keys this function needs (e.g. uploads, exports). Tenant-agnostic: each key is resolved per invocation against the tenant's buckets by {tags, type}, or by an explicit capability binding row. Empty = no bucket requirements. */ requiredBuckets?: string[]; /** Embedded config requirements: array of (name, required, provider) tuples. provider is the integration slug this requirement belongs to, if any. */ requiredConfigs?: ResourceRequirementInput[]; /** Inference model whitelist (e.g. gpt-4o, claude-3). Empty = no model requirements. */ requiredModels?: string[]; + /** Modules whose api surfaces this function calls, e.g. notifications_module. Suffix . to name which surface when a module's schemas are attached to several (capabilities_module.admin), and @ to pin the registration when a module is registered at more than one scope (limits_module@org) — usually unnecessary, since resolution walks the execution's scope chain. A value that is not a module name is read as an api name. Resolved per invocation; empty = no api requirements. */ + requiredModules?: string[]; /** Embedded secret requirements: array of (name, required, provider) tuples. provider is the integration slug this requirement belongs to, if any. */ requiredSecrets?: ResourceRequirementInput[]; /** Container resource requests and limits: {requests: {memory, cpu}, limits: {memory, cpu}} */ @@ -5427,7 +5607,7 @@ export interface PlatformFunctionDefinitionInput { } /** Represents an update to a `PlatformFunctionDefinition`. Fields that are set will be updated. */ export interface PlatformFunctionDefinitionPatch { - /** Invocation channels this function may be exposed through (api, graph, cron, sync, webhook). Internal worker dispatch is implicit and never listed. Default [] = worker only. */ + /** Invocation channels this function may be exposed through (api, graph, cron, sync, page, webhook). Internal worker dispatch is implicit and never listed. Default [] = worker only. */ accessChannels?: string[]; /** Whether executions are metered through the invocation ledger and billing quota gate */ billable?: boolean; @@ -5475,12 +5655,14 @@ export interface PlatformFunctionDefinitionPatch { publishedAt?: string; /** Job queue name for serialization (e.g. email, ai, default) */ queueName?: string; - /** Bucket keys this function needs (e.g. uploads, exports). Empty = no bucket requirements. */ + /** Bucket keys this function needs (e.g. uploads, exports). Tenant-agnostic: each key is resolved per invocation against the tenant's buckets by {tags, type}, or by an explicit capability binding row. Empty = no bucket requirements. */ requiredBuckets?: string[]; /** Embedded config requirements: array of (name, required, provider) tuples. provider is the integration slug this requirement belongs to, if any. */ requiredConfigs?: ResourceRequirementInput[]; /** Inference model whitelist (e.g. gpt-4o, claude-3). Empty = no model requirements. */ requiredModels?: string[]; + /** Modules whose api surfaces this function calls, e.g. notifications_module. Suffix . to name which surface when a module's schemas are attached to several (capabilities_module.admin), and @ to pin the registration when a module is registered at more than one scope (limits_module@org) — usually unnecessary, since resolution walks the execution's scope chain. A value that is not a module name is read as an api name. Resolved per invocation; empty = no api requirements. */ + requiredModules?: string[]; /** Embedded secret requirements: array of (name, required, provider) tuples. provider is the integration slug this requirement belongs to, if any. */ requiredSecrets?: ResourceRequirementInput[]; /** Container resource requests and limits: {requests: {memory, cpu}, limits: {memory, cpu}} */ @@ -5621,6 +5803,8 @@ export interface PlatformFunctionDeploymentFilter { not?: PlatformFunctionDeploymentFilter; /** Checks for any expressions in this list. */ or?: PlatformFunctionDeploymentFilter[]; + /** Filter by the object’s `realm` field. */ + realm?: StringFilter; /** Filter by the object’s `resources` field. */ resources?: JSONFilter; /** Filter by the object’s `revision` field. */ @@ -5664,6 +5848,8 @@ export interface PlatformFunctionDeploymentInput { lastErrorAt?: string; /** Target namespace for this deployment (maps to a K8s namespace) */ namespaceId: string; + /** Config/secret realm this deployment resolves required keys against. Per key, the realm-specific atom wins over the NULL-realm default. NULL = the default lane (or a runtime-query worker that fetches per-item realms on demand). */ + realm?: string; /** K8s resource spec override: {"requests":{"cpu":"100m","memory":"128Mi"},"limits":{...}} */ resources?: unknown; /** Deployment revision number (incremented on each redeployment) */ @@ -5706,6 +5892,8 @@ export interface PlatformFunctionDeploymentPatch { lastErrorAt?: string; /** Target namespace for this deployment (maps to a K8s namespace) */ namespaceId?: string; + /** Config/secret realm this deployment resolves required keys against. Per key, the realm-specific atom wins over the NULL-realm default. NULL = the default lane (or a runtime-query worker that fetches per-item realms on demand). */ + realm?: string; /** K8s resource spec override: {"requests":{"cpu":"100m","memory":"128Mi"},"limits":{...}} */ resources?: unknown; /** Deployment revision number (incremented on each redeployment) */ @@ -6096,6 +6284,15 @@ export interface PlatformInfraInsertNodeAtPathInput { root?: string; sId?: string; } +export interface PlatformInfraInsertNodesAtPathsInput { + clientMutationId?: string; + datas?: unknown[]; + kidsList?: unknown; + ktreeList?: unknown; + paths?: unknown; + root?: string; + sId?: string; +} /** A filter to be used against `PlatformInfraObject` object types. All fields are combined with a logical ‘and.’ */ export interface PlatformInfraObjectFilter { /** Checks for all expressions in this list. */ @@ -6192,6 +6389,17 @@ export interface PlatformInfraRefPatch { /** Store this ref belongs to */ storeId?: string; } +export interface PlatformInfraSetAndCommitInput { + clientMutationId?: string; + data?: unknown; + kids?: string[]; + ktree?: string[]; + message?: string; + path?: string[]; + refname?: string; + sId?: string; + storeId?: string; +} export interface PlatformInfraSetDataAtPathInput { clientMutationId?: string; data?: unknown; @@ -6199,6 +6407,14 @@ export interface PlatformInfraSetDataAtPathInput { root?: string; sId?: string; } +export interface PlatformInfraSetManyAndCommitInput { + clientMutationId?: string; + entries?: unknown; + message?: string; + refname?: string; + sId?: string; + storeId?: string; +} /** A filter to be used against `PlatformInfraStore` object types. All fields are combined with a logical ‘and.’ */ export interface PlatformInfraStoreFilter { /** Checks for all expressions in this list. */ @@ -8449,6 +8665,17 @@ export interface SaveGraphInput { message?: string; rootHash?: string; } +export interface SetAndCommitInput { + clientMutationId?: string; + data?: unknown; + kids?: string[]; + ktree?: string[]; + message?: string; + path?: string[]; + refname?: string; + sId?: string; + storeId?: string; +} export interface SetDataAtPathInput { clientMutationId?: string; data?: unknown; @@ -8456,6 +8683,14 @@ export interface SetDataAtPathInput { root?: string; sId?: string; } +export interface SetManyAndCommitInput { + clientMutationId?: string; + entries?: unknown; + message?: string; + refname?: string; + sId?: string; + storeId?: string; +} export interface StartExecutionInput { clientMutationId?: string; graphId?: string; @@ -8469,6 +8704,13 @@ export interface StartExecutionInput { parentNodeName?: string; timeoutInterval?: IntervalInput; } +export interface UpdateContentPresetInput { + clientMutationId?: string; + /** An object where the defined keys will be set on the `ContentPreset` being updated. */ + contentPresetPatch: ContentPresetPatch; + /** Unique preset identifier */ + id: string; +} export interface UpdateDbPresetInput { clientMutationId?: string; /** An object where the defined keys will be set on the `DbPreset` being updated. */ @@ -9099,6 +9341,13 @@ export interface WebhookEventPatch { export interface MetaSchema { tables: MetaTable[]; } +/** A connection to a list of `ContentPreset` values. */ +export interface ContentPresetConnection { + edges: ContentPresetEdge[]; + nodes: ContentPreset[]; + pageInfo: PageInfo; + totalCount: number; +} /** A connection to a list of `DbPreset` values. */ export interface DbPresetConnection { edges: DbPresetEdge[]; @@ -9602,6 +9851,12 @@ export interface CopyGraphPayload { clientMutationId?: string | null; result?: string | null; } +export interface CreateContentPresetPayload { + clientMutationId?: string | null; + /** The `ContentPreset` that was created by this mutation. */ + contentPreset?: ContentPreset | null; + contentPresetEdge?: ContentPresetEdge | null; +} export interface CreateDbPresetPayload { clientMutationId?: string | null; /** The `DbPreset` that was created by this mutation. */ @@ -9936,6 +10191,12 @@ export interface CreateWebhookEventPayload { webhookEvent?: WebhookEvent | null; webhookEventEdge?: WebhookEventEdge | null; } +export interface DeleteContentPresetPayload { + clientMutationId?: string | null; + /** The `ContentPreset` that was deleted by this mutation. */ + contentPreset?: ContentPreset | null; + contentPresetEdge?: ContentPresetEdge | null; +} export interface DeleteDbPresetPayload { clientMutationId?: string | null; /** The `DbPreset` that was deleted by this mutation. */ @@ -10286,10 +10547,24 @@ export interface InfraInsertNodeAtPathPayload { clientMutationId?: string | null; result?: string | null; } +export interface InfraInsertNodesAtPathsPayload { + clientMutationId?: string | null; + result?: string | null; +} +export interface InfraSetAndCommitPayload { + clientMutationId?: string | null; + infraCommitEdge?: InfraCommitEdge | null; + result?: InfraCommit | null; +} export interface InfraSetDataAtPathPayload { clientMutationId?: string | null; result?: string | null; } +export interface InfraSetManyAndCommitPayload { + clientMutationId?: string | null; + infraCommitEdge?: InfraCommitEdge | null; + result?: InfraCommit | null; +} export interface InitEmptyRepoPayload { clientMutationId?: string | null; } @@ -10297,6 +10572,10 @@ export interface InsertNodeAtPathPayload { clientMutationId?: string | null; result?: string | null; } +export interface InsertNodesAtPathsPayload { + clientMutationId?: string | null; + result?: string | null; +} export interface PlatformInfraInitEmptyRepoPayload { clientMutationId?: string | null; } @@ -10304,10 +10583,24 @@ export interface PlatformInfraInsertNodeAtPathPayload { clientMutationId?: string | null; result?: string | null; } +export interface PlatformInfraInsertNodesAtPathsPayload { + clientMutationId?: string | null; + result?: string | null; +} +export interface PlatformInfraSetAndCommitPayload { + clientMutationId?: string | null; + platformInfraCommitEdge?: PlatformInfraCommitEdge | null; + result?: PlatformInfraCommit | null; +} export interface PlatformInfraSetDataAtPathPayload { clientMutationId?: string | null; result?: string | null; } +export interface PlatformInfraSetManyAndCommitPayload { + clientMutationId?: string | null; + platformInfraCommitEdge?: PlatformInfraCommitEdge | null; + result?: PlatformInfraCommit | null; +} export interface PlatformResourceInstallationsInstallPayload { clientMutationId?: string | null; result?: string | null; @@ -10352,14 +10645,30 @@ export interface SaveGraphPayload { clientMutationId?: string | null; result?: string | null; } +export interface SetAndCommitPayload { + clientMutationId?: string | null; + functionGraphCommitEdge?: FunctionGraphCommitEdge | null; + result?: FunctionGraphCommit | null; +} export interface SetDataAtPathPayload { clientMutationId?: string | null; result?: string | null; } +export interface SetManyAndCommitPayload { + clientMutationId?: string | null; + functionGraphCommitEdge?: FunctionGraphCommitEdge | null; + result?: FunctionGraphCommit | null; +} export interface StartExecutionPayload { clientMutationId?: string | null; result?: string | null; } +export interface UpdateContentPresetPayload { + clientMutationId?: string | null; + /** The `ContentPreset` that was updated by this mutation. */ + contentPreset?: ContentPreset | null; + contentPresetEdge?: ContentPresetEdge | null; +} export interface UpdateDbPresetPayload { clientMutationId?: string | null; /** The `DbPreset` that was updated by this mutation. */ @@ -10727,11 +11036,11 @@ export interface MetaTable { tableName: string; uniqueConstraints: MetaUniqueConstraint[]; } -/** A `DbPreset` edge in the connection. */ -export interface DbPresetEdge { +/** A `ContentPreset` edge in the connection. */ +export interface ContentPresetEdge { cursor?: string | null; - /** The `DbPreset` at the end of the edge. */ - node?: DbPreset | null; + /** The `ContentPreset` at the end of the edge. */ + node?: ContentPreset | null; } /** Information about pagination in a connection. */ export interface PageInfo { @@ -10744,6 +11053,12 @@ export interface PageInfo { /** When paginating backwards, the cursor to continue. */ startCursor?: string | null; } +/** A `DbPreset` edge in the connection. */ +export interface DbPresetEdge { + cursor?: string | null; + /** The `DbPreset` at the end of the edge. */ + node?: DbPreset | null; +} /** A `FunctionApiBinding` edge in the connection. */ export interface FunctionApiBindingEdge { cursor?: string | null; diff --git a/sdk/constructive-react/src/compute/types.ts b/sdk/constructive-react/src/compute/types.ts index 808fcda5a5..c7435471f3 100644 --- a/sdk/constructive-react/src/compute/types.ts +++ b/sdk/constructive-react/src/compute/types.ts @@ -6,6 +6,19 @@ export type Base64EncodedBinary = unknown; export type ConstructiveInternalTypeImage = unknown; export type ResourceRequirement = unknown; +export interface ContentPreset { + active: boolean | null; + commitId: string | null; + createdAt: string | null; + definition: unknown | null; + description: string | null; + id: string | null; + kind: string | null; + label: string | null; + slug: string | null; + storeId: string | null; + updatedAt: string | null; +} export interface DbPreset { active: boolean | null; commitId: string | null; @@ -73,6 +86,7 @@ export interface FunctionDefinition { requiredBuckets: string[] | null; requiredConfigs: ResourceRequirement[] | null; requiredModels: string[] | null; + requiredModules: string[] | null; requiredSecrets: ResourceRequirement[] | null; resources: unknown | null; runtime: string | null; @@ -99,6 +113,7 @@ export interface FunctionDeployment { lastError: string | null; lastErrorAt: string | null; namespaceId: string | null; + realm: string | null; resources: unknown | null; revision: number | null; scaleMax: number | null; @@ -405,6 +420,7 @@ export interface PlatformFunctionDefinition { requiredBuckets: string[] | null; requiredConfigs: ResourceRequirement[] | null; requiredModels: string[] | null; + requiredModules: string[] | null; requiredSecrets: ResourceRequirement[] | null; resources: unknown | null; runtime: string | null; @@ -431,6 +447,7 @@ export interface PlatformFunctionDeployment { lastError: string | null; lastErrorAt: string | null; namespaceId: string | null; + realm: string | null; resources: unknown | null; revision: number | null; scaleMax: number | null; diff --git a/sdk/constructive-react/src/infra/README.md b/sdk/constructive-react/src/infra/README.md index efd2003c0c..2e6dafd821 100644 --- a/sdk/constructive-react/src/infra/README.md +++ b/sdk/constructive-react/src/infra/README.md @@ -8,9 +8,9 @@ ## Overview -- **Tables:** 10 +- **Tables:** 11 - **Custom queries:** 0 -- **Custom mutations:** 4 +- **Custom mutations:** 7 **Generators:** ORM, React Query diff --git a/sdk/constructive-react/src/infra/hooks/README.md b/sdk/constructive-react/src/infra/hooks/README.md index 6988f90f5b..9a273d041e 100644 --- a/sdk/constructive-react/src/infra/hooks/README.md +++ b/sdk/constructive-react/src/infra/hooks/README.md @@ -32,6 +32,11 @@ function App() { | Hook | Type | Description | |------|------|-------------| +| `useContentPresetsQuery` | Query | Seed-content preset catalog (limit defaults, trust ladders, ...) — merkle-versioned head over the infra store | +| `useContentPresetQuery` | Query | Seed-content preset catalog (limit defaults, trust ladders, ...) — merkle-versioned head over the infra store | +| `useCreateContentPresetMutation` | Mutation | Seed-content preset catalog (limit defaults, trust ladders, ...) — merkle-versioned head over the infra store | +| `useUpdateContentPresetMutation` | Mutation | Seed-content preset catalog (limit defaults, trust ladders, ...) — merkle-versioned head over the infra store | +| `useDeleteContentPresetMutation` | Mutation | Seed-content preset catalog (limit defaults, trust ladders, ...) — merkle-versioned head over the infra store | | `useDbPresetsQuery` | Query | Database provisioning preset catalog — merkle-versioned head over the infra store | | `useDbPresetQuery` | Query | Database provisioning preset catalog — merkle-versioned head over the infra store | | `useCreateDbPresetMutation` | Mutation | Database provisioning preset catalog — merkle-versioned head over the infra store | @@ -81,7 +86,10 @@ function App() { | `useDeletePlatformNamespaceEventMutation` | Mutation | Namespace lifecycle events — audit log of creation, activation, deactivation, label changes | | `usePlatformInfraInitEmptyRepoMutation` | Mutation | platformInfraInitEmptyRepo | | `usePlatformInfraInsertNodeAtPathMutation` | Mutation | platformInfraInsertNodeAtPath | +| `usePlatformInfraInsertNodesAtPathsMutation` | Mutation | platformInfraInsertNodesAtPaths | +| `usePlatformInfraSetAndCommitMutation` | Mutation | platformInfraSetAndCommit | | `usePlatformInfraSetDataAtPathMutation` | Mutation | platformInfraSetDataAtPath | +| `usePlatformInfraSetManyAndCommitMutation` | Mutation | platformInfraSetManyAndCommit | | `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, @@ -89,6 +97,27 @@ and lifecycle settings. | ## Table Hooks +### ContentPreset + +```typescript +// List all contentPresets +const { data, isLoading } = useContentPresetsQuery({ + selection: { fields: { active: true, commitId: true, createdAt: true, definition: true, description: true, id: true, kind: true, label: true, slug: true, storeId: true, updatedAt: true } }, +}); + +// Get one contentPreset +const { data: item } = useContentPresetQuery({ + id: '', + selection: { fields: { active: true, commitId: true, createdAt: true, definition: true, description: true, id: true, kind: true, label: true, slug: true, storeId: true, updatedAt: true } }, +}); + +// Create a contentPreset +const { mutate: create } = useCreateContentPresetMutation({ + selection: { fields: { id: true } }, +}); +create({ active: '', commitId: '', definition: '', description: '', kind: '', label: '', slug: '', storeId: '' }); +``` + ### DbPreset ```typescript @@ -317,6 +346,28 @@ platformInfraInsertNodeAtPath |----------|------| | `input` | PlatformInfraInsertNodeAtPathInput (required) | +### `usePlatformInfraInsertNodesAtPathsMutation` + +platformInfraInsertNodesAtPaths + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | PlatformInfraInsertNodesAtPathsInput (required) | + +### `usePlatformInfraSetAndCommitMutation` + +platformInfraSetAndCommit + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | PlatformInfraSetAndCommitInput (required) | + ### `usePlatformInfraSetDataAtPathMutation` platformInfraSetDataAtPath @@ -328,6 +379,17 @@ platformInfraSetDataAtPath |----------|------| | `input` | PlatformInfraSetDataAtPathInput (required) | +### `usePlatformInfraSetManyAndCommitMutation` + +platformInfraSetManyAndCommit + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | PlatformInfraSetManyAndCommitInput (required) | + ### `useProvisionBucketMutation` Provision an S3 bucket for a logical bucket in the database. diff --git a/sdk/constructive-react/src/infra/hooks/index.ts b/sdk/constructive-react/src/infra/hooks/index.ts index 5dbab6e356..b1365f8092 100644 --- a/sdk/constructive-react/src/infra/hooks/index.ts +++ b/sdk/constructive-react/src/infra/hooks/index.ts @@ -2,7 +2,7 @@ * GraphQL SDK * @generated by @constructive-io/graphql-codegen * - * Tables: DbPreset, Namespace, NamespaceEvent, PlatformInfraCommit, PlatformInfraGetAllTreeNodesRecord, PlatformInfraObject, PlatformInfraRef, PlatformInfraStore, PlatformNamespace, PlatformNamespaceEvent + * Tables: ContentPreset, DbPreset, Namespace, NamespaceEvent, PlatformInfraCommit, PlatformInfraGetAllTreeNodesRecord, PlatformInfraObject, PlatformInfraRef, PlatformInfraStore, PlatformNamespace, PlatformNamespaceEvent * * Usage: * diff --git a/sdk/constructive-react/src/infra/hooks/invalidation.ts b/sdk/constructive-react/src/infra/hooks/invalidation.ts index 7b49940760..6ab3325e5b 100644 --- a/sdk/constructive-react/src/infra/hooks/invalidation.ts +++ b/sdk/constructive-react/src/infra/hooks/invalidation.ts @@ -15,6 +15,7 @@ import type { QueryClient } from '@tanstack/react-query'; import { + contentPresetKeys, dbPresetKeys, namespaceKeys, namespaceEventKeys, @@ -46,6 +47,23 @@ import { * ``` */ export const invalidate = { + /** Invalidate contentPreset queries */ contentPreset: { + /** Invalidate all contentPreset queries */ all: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: contentPresetKeys.all, + }), + /** Invalidate contentPreset list queries */ lists: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: contentPresetKeys.lists(), + }), + /** Invalidate a specific contentPreset */ detail: ( + queryClient: QueryClient, + id: string | number + ) => + queryClient.invalidateQueries({ + queryKey: contentPresetKeys.detail(id), + }), + }, /** Invalidate dbPreset queries */ dbPreset: { /** Invalidate all dbPreset queries */ all: (queryClient: QueryClient) => queryClient.invalidateQueries({ @@ -230,6 +248,14 @@ export const invalidate = { * instead of just invalidating (which would trigger a refetch). */ export const remove = { + /** Remove contentPreset from cache */ contentPreset: ( + queryClient: QueryClient, + id: string | number + ) => { + queryClient.removeQueries({ + queryKey: contentPresetKeys.detail(id), + }); + }, /** Remove dbPreset from cache */ dbPreset: (queryClient: QueryClient, id: string | number) => { queryClient.removeQueries({ queryKey: dbPresetKeys.detail(id), diff --git a/sdk/constructive-react/src/infra/hooks/mutation-keys.ts b/sdk/constructive-react/src/infra/hooks/mutation-keys.ts index 5f62de71e3..89c765a9d7 100644 --- a/sdk/constructive-react/src/infra/hooks/mutation-keys.ts +++ b/sdk/constructive-react/src/infra/hooks/mutation-keys.ts @@ -18,6 +18,15 @@ // Entity Mutation Keys // ============================================================================ +export const contentPresetMutationKeys = { + /** All contentPreset mutation keys */ all: ['mutation', 'contentpreset'] as const, + /** Create contentPreset mutation key */ create: () => + ['mutation', 'contentpreset', 'create'] as const, + /** Update contentPreset mutation key */ update: (id: string | number) => + ['mutation', 'contentpreset', 'update', id] as const, + /** Delete contentPreset mutation key */ delete: (id: string | number) => + ['mutation', 'contentpreset', 'delete', id] as const, +} as const; export const dbPresetMutationKeys = { /** All dbPreset mutation keys */ all: ['mutation', 'dbpreset'] as const, /** Create dbPreset mutation key */ create: () => ['mutation', 'dbpreset', 'create'] as const, @@ -130,12 +139,30 @@ export const customMutationKeys = { identifier ? (['mutation', 'platformInfraInsertNodeAtPath', identifier] as const) : (['mutation', 'platformInfraInsertNodeAtPath'] as const), + /** Mutation key for platformInfraInsertNodesAtPaths */ platformInfraInsertNodesAtPaths: ( + identifier?: string + ) => + identifier + ? (['mutation', 'platformInfraInsertNodesAtPaths', identifier] as const) + : (['mutation', 'platformInfraInsertNodesAtPaths'] as const), + /** Mutation key for platformInfraSetAndCommit */ platformInfraSetAndCommit: ( + identifier?: string + ) => + identifier + ? (['mutation', 'platformInfraSetAndCommit', identifier] as const) + : (['mutation', 'platformInfraSetAndCommit'] as const), /** Mutation key for platformInfraSetDataAtPath */ platformInfraSetDataAtPath: ( identifier?: string ) => identifier ? (['mutation', 'platformInfraSetDataAtPath', identifier] as const) : (['mutation', 'platformInfraSetDataAtPath'] as const), + /** Mutation key for platformInfraSetManyAndCommit */ platformInfraSetManyAndCommit: ( + identifier?: string + ) => + identifier + ? (['mutation', 'platformInfraSetManyAndCommit', identifier] as const) + : (['mutation', 'platformInfraSetManyAndCommit'] as const), /** Mutation key for provisionBucket */ provisionBucket: (identifier?: string) => identifier ? (['mutation', 'provisionBucket', identifier] as const) @@ -164,6 +191,7 @@ export const customMutationKeys = { * ``` */ export const mutationKeys = { + contentPreset: contentPresetMutationKeys, dbPreset: dbPresetMutationKeys, namespace: namespaceMutationKeys, namespaceEvent: namespaceEventMutationKeys, diff --git a/sdk/constructive-react/src/infra/hooks/mutations/index.ts b/sdk/constructive-react/src/infra/hooks/mutations/index.ts index 2b042b34a2..b08fd53122 100644 --- a/sdk/constructive-react/src/infra/hooks/mutations/index.ts +++ b/sdk/constructive-react/src/infra/hooks/mutations/index.ts @@ -3,6 +3,9 @@ * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ +export * from './useCreateContentPresetMutation'; +export * from './useUpdateContentPresetMutation'; +export * from './useDeleteContentPresetMutation'; export * from './useCreateDbPresetMutation'; export * from './useUpdateDbPresetMutation'; export * from './useDeleteDbPresetMutation'; @@ -33,5 +36,8 @@ export * from './useUpdatePlatformNamespaceEventMutation'; export * from './useDeletePlatformNamespaceEventMutation'; export * from './usePlatformInfraInitEmptyRepoMutation'; export * from './usePlatformInfraInsertNodeAtPathMutation'; +export * from './usePlatformInfraInsertNodesAtPathsMutation'; +export * from './usePlatformInfraSetAndCommitMutation'; export * from './usePlatformInfraSetDataAtPathMutation'; +export * from './usePlatformInfraSetManyAndCommitMutation'; export * from './useProvisionBucketMutation'; diff --git a/sdk/constructive-react/src/infra/hooks/mutations/useCreateContentPresetMutation.ts b/sdk/constructive-react/src/infra/hooks/mutations/useCreateContentPresetMutation.ts new file mode 100644 index 0000000000..b710975d4a --- /dev/null +++ b/sdk/constructive-react/src/infra/hooks/mutations/useCreateContentPresetMutation.ts @@ -0,0 +1,88 @@ +/** + * Seed-content preset catalog (limit defaults, trust ladders, ...) — merkle-versioned head over the infra store + * @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 { contentPresetKeys } from '../query-keys'; +import { contentPresetMutationKeys } from '../mutation-keys'; +import type { + ContentPresetSelect, + ContentPresetWithRelations, + CreateContentPresetInput, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + ContentPresetSelect, + ContentPresetWithRelations, + CreateContentPresetInput, +} from '../../orm/input-types'; +/** + * Seed-content preset catalog (limit defaults, trust ladders, ...) — merkle-versioned head over the infra store + * + * @example + * ```tsx + * const { mutate, isPending } = useCreateContentPresetMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ name: 'New item' }); + * ``` + */ +export function useCreateContentPresetMutation( + params: { + selection: { + fields: S & ContentPresetSelect; + } & HookStrictSelect, ContentPresetSelect>; + } & Omit< + UseMutationOptions< + { + createContentPreset: { + contentPreset: InferSelectResult; + }; + }, + Error, + CreateContentPresetInput['contentPreset'] + >, + 'mutationFn' + > +): UseMutationResult< + { + createContentPreset: { + contentPreset: InferSelectResult; + }; + }, + Error, + CreateContentPresetInput['contentPreset'] +>; +export function useCreateContentPresetMutation( + params: { + selection: SelectionConfig; + } & Omit, 'mutationFn'> +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: contentPresetMutationKeys.create(), + mutationFn: (data: CreateContentPresetInput['contentPreset']) => + getClient() + .contentPreset.create({ + data, + select: args.select, + }) + .unwrap(), + onSuccess: () => { + queryClient.invalidateQueries({ + queryKey: contentPresetKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/admin/hooks/mutations/useDeleteAppPermissionMutation.ts b/sdk/constructive-react/src/infra/hooks/mutations/useDeleteContentPresetMutation.ts similarity index 55% rename from sdk/constructive-react/src/admin/hooks/mutations/useDeleteAppPermissionMutation.ts rename to sdk/constructive-react/src/infra/hooks/mutations/useDeleteContentPresetMutation.ts index b50268261e..3ef5345b7b 100644 --- a/sdk/constructive-react/src/admin/hooks/mutations/useDeleteAppPermissionMutation.ts +++ b/sdk/constructive-react/src/infra/hooks/mutations/useDeleteContentPresetMutation.ts @@ -1,5 +1,5 @@ /** - * Defines available permissions as named bits within a bitmask, used by the RBAC system for access control + * Seed-content preset catalog (limit defaults, trust ladders, ...) — merkle-versioned head over the infra store * @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 { appPermissionKeys } from '../query-keys'; -import { appPermissionMutationKeys } from '../mutation-keys'; -import type { AppPermissionSelect, AppPermissionWithRelations } from '../../orm/input-types'; +import { contentPresetKeys } from '../query-keys'; +import { contentPresetMutationKeys } from '../mutation-keys'; +import type { ContentPresetSelect, ContentPresetWithRelations } from '../../orm/input-types'; import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { AppPermissionSelect, AppPermissionWithRelations } from '../../orm/input-types'; +export type { ContentPresetSelect, ContentPresetWithRelations } from '../../orm/input-types'; /** - * Defines available permissions as named bits within a bitmask, used by the RBAC system for access control + * Seed-content preset catalog (limit defaults, trust ladders, ...) — merkle-versioned head over the infra store * * @example * ```tsx - * const { mutate, isPending } = useDeleteAppPermissionMutation({ + * const { mutate, isPending } = useDeleteContentPresetMutation({ * selection: { fields: { id: true } }, * }); * * mutate({ id: 'value-to-delete' }); * ``` */ -export function useDeleteAppPermissionMutation( +export function useDeleteContentPresetMutation( params: { selection: { - fields: S & AppPermissionSelect; - } & HookStrictSelect, AppPermissionSelect>; + fields: S & ContentPresetSelect; + } & HookStrictSelect, ContentPresetSelect>; } & Omit< UseMutationOptions< { - deleteAppPermission: { - appPermission: InferSelectResult; + deleteContentPreset: { + contentPreset: InferSelectResult; }; }, Error, @@ -47,8 +47,8 @@ export function useDeleteAppPermissionMutation( > ): UseMutationResult< { - deleteAppPermission: { - appPermission: InferSelectResult; + deleteContentPreset: { + contentPreset: InferSelectResult; }; }, Error, @@ -56,9 +56,9 @@ export function useDeleteAppPermissionMutation( id: string; } >; -export function useDeleteAppPermissionMutation( +export function useDeleteContentPresetMutation( params: { - selection: SelectionConfig; + selection: SelectionConfig; } & Omit< UseMutationOptions< any, @@ -70,15 +70,15 @@ export function useDeleteAppPermissionMutation( 'mutationFn' > ) { - const args = buildSelectionArgs(params.selection); + const args = buildSelectionArgs(params.selection); const { selection: _selection, ...mutationOptions } = params ?? {}; void _selection; const queryClient = useQueryClient(); return useMutation({ - mutationKey: appPermissionMutationKeys.all, + mutationKey: contentPresetMutationKeys.all, mutationFn: ({ id }: { id: string }) => getClient() - .appPermission.delete({ + .contentPreset.delete({ where: { id, }, @@ -87,10 +87,10 @@ export function useDeleteAppPermissionMutation( .unwrap(), onSuccess: (_, variables) => { queryClient.removeQueries({ - queryKey: appPermissionKeys.detail(variables.id), + queryKey: contentPresetKeys.detail(variables.id), }); queryClient.invalidateQueries({ - queryKey: appPermissionKeys.lists(), + queryKey: contentPresetKeys.lists(), }); }, ...mutationOptions, diff --git a/sdk/constructive-react/src/infra/hooks/mutations/usePlatformInfraInsertNodesAtPathsMutation.ts b/sdk/constructive-react/src/infra/hooks/mutations/usePlatformInfraInsertNodesAtPathsMutation.ts new file mode 100644 index 0000000000..924154505d --- /dev/null +++ b/sdk/constructive-react/src/infra/hooks/mutations/usePlatformInfraInsertNodesAtPathsMutation.ts @@ -0,0 +1,66 @@ +/** + * Custom mutation hook for platformInfraInsertNodesAtPaths + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ + +import { useMutation } from '@tanstack/react-query'; +import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; +import { getClient } from '../client'; +import { buildSelectionArgs } from '../selection'; +import type { SelectionConfig } from '../selection'; +import { customMutationKeys } from '../mutation-keys'; +import type { PlatformInfraInsertNodesAtPathsVariables } from '../../orm/mutation'; +import type { + PlatformInfraInsertNodesAtPathsPayloadSelect, + PlatformInfraInsertNodesAtPathsPayload, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect, StrictSelect } from '../../orm/select-types'; +export type { PlatformInfraInsertNodesAtPathsVariables } from '../../orm/mutation'; +export type { PlatformInfraInsertNodesAtPathsPayloadSelect } from '../../orm/input-types'; +export function usePlatformInfraInsertNodesAtPathsMutation< + S extends PlatformInfraInsertNodesAtPathsPayloadSelect, +>( + params: { + selection: { + fields: S & PlatformInfraInsertNodesAtPathsPayloadSelect; + } & HookStrictSelect, PlatformInfraInsertNodesAtPathsPayloadSelect>; + } & Omit< + UseMutationOptions< + { + platformInfraInsertNodesAtPaths: InferSelectResult< + PlatformInfraInsertNodesAtPathsPayload, + S + > | null; + }, + Error, + PlatformInfraInsertNodesAtPathsVariables + >, + 'mutationFn' + > +): UseMutationResult< + { + platformInfraInsertNodesAtPaths: InferSelectResult< + PlatformInfraInsertNodesAtPathsPayload, + S + > | null; + }, + Error, + PlatformInfraInsertNodesAtPathsVariables +> { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + return useMutation({ + mutationKey: customMutationKeys.platformInfraInsertNodesAtPaths(), + mutationFn: (variables: PlatformInfraInsertNodesAtPathsVariables) => + getClient() + .mutation.platformInfraInsertNodesAtPaths(variables, { + select: args.select, + } as { + select: S; + } & StrictSelect) + .unwrap(), + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/infra/hooks/mutations/usePlatformInfraSetAndCommitMutation.ts b/sdk/constructive-react/src/infra/hooks/mutations/usePlatformInfraSetAndCommitMutation.ts new file mode 100644 index 0000000000..9bac5e7fd6 --- /dev/null +++ b/sdk/constructive-react/src/infra/hooks/mutations/usePlatformInfraSetAndCommitMutation.ts @@ -0,0 +1,60 @@ +/** + * Custom mutation hook for platformInfraSetAndCommit + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ + +import { useMutation } from '@tanstack/react-query'; +import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; +import { getClient } from '../client'; +import { buildSelectionArgs } from '../selection'; +import type { SelectionConfig } from '../selection'; +import { customMutationKeys } from '../mutation-keys'; +import type { PlatformInfraSetAndCommitVariables } from '../../orm/mutation'; +import type { + PlatformInfraSetAndCommitPayloadSelect, + PlatformInfraSetAndCommitPayload, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect, StrictSelect } from '../../orm/select-types'; +export type { PlatformInfraSetAndCommitVariables } from '../../orm/mutation'; +export type { PlatformInfraSetAndCommitPayloadSelect } from '../../orm/input-types'; +export function usePlatformInfraSetAndCommitMutation< + S extends PlatformInfraSetAndCommitPayloadSelect, +>( + params: { + selection: { + fields: S & PlatformInfraSetAndCommitPayloadSelect; + } & HookStrictSelect, PlatformInfraSetAndCommitPayloadSelect>; + } & Omit< + UseMutationOptions< + { + platformInfraSetAndCommit: InferSelectResult | null; + }, + Error, + PlatformInfraSetAndCommitVariables + >, + 'mutationFn' + > +): UseMutationResult< + { + platformInfraSetAndCommit: InferSelectResult | null; + }, + Error, + PlatformInfraSetAndCommitVariables +> { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + return useMutation({ + mutationKey: customMutationKeys.platformInfraSetAndCommit(), + mutationFn: (variables: PlatformInfraSetAndCommitVariables) => + getClient() + .mutation.platformInfraSetAndCommit(variables, { + select: args.select, + } as { + select: S; + } & StrictSelect) + .unwrap(), + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/infra/hooks/mutations/usePlatformInfraSetManyAndCommitMutation.ts b/sdk/constructive-react/src/infra/hooks/mutations/usePlatformInfraSetManyAndCommitMutation.ts new file mode 100644 index 0000000000..a6a7fcf2d0 --- /dev/null +++ b/sdk/constructive-react/src/infra/hooks/mutations/usePlatformInfraSetManyAndCommitMutation.ts @@ -0,0 +1,66 @@ +/** + * Custom mutation hook for platformInfraSetManyAndCommit + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ + +import { useMutation } from '@tanstack/react-query'; +import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; +import { getClient } from '../client'; +import { buildSelectionArgs } from '../selection'; +import type { SelectionConfig } from '../selection'; +import { customMutationKeys } from '../mutation-keys'; +import type { PlatformInfraSetManyAndCommitVariables } from '../../orm/mutation'; +import type { + PlatformInfraSetManyAndCommitPayloadSelect, + PlatformInfraSetManyAndCommitPayload, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect, StrictSelect } from '../../orm/select-types'; +export type { PlatformInfraSetManyAndCommitVariables } from '../../orm/mutation'; +export type { PlatformInfraSetManyAndCommitPayloadSelect } from '../../orm/input-types'; +export function usePlatformInfraSetManyAndCommitMutation< + S extends PlatformInfraSetManyAndCommitPayloadSelect, +>( + params: { + selection: { + fields: S & PlatformInfraSetManyAndCommitPayloadSelect; + } & HookStrictSelect, PlatformInfraSetManyAndCommitPayloadSelect>; + } & Omit< + UseMutationOptions< + { + platformInfraSetManyAndCommit: InferSelectResult< + PlatformInfraSetManyAndCommitPayload, + S + > | null; + }, + Error, + PlatformInfraSetManyAndCommitVariables + >, + 'mutationFn' + > +): UseMutationResult< + { + platformInfraSetManyAndCommit: InferSelectResult< + PlatformInfraSetManyAndCommitPayload, + S + > | null; + }, + Error, + PlatformInfraSetManyAndCommitVariables +> { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + return useMutation({ + mutationKey: customMutationKeys.platformInfraSetManyAndCommit(), + mutationFn: (variables: PlatformInfraSetManyAndCommitVariables) => + getClient() + .mutation.platformInfraSetManyAndCommit(variables, { + select: args.select, + } as { + select: S; + } & StrictSelect) + .unwrap(), + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/admin/hooks/mutations/useUpdateOrgPermissionMutation.ts b/sdk/constructive-react/src/infra/hooks/mutations/useUpdateContentPresetMutation.ts similarity index 50% rename from sdk/constructive-react/src/admin/hooks/mutations/useUpdateOrgPermissionMutation.ts rename to sdk/constructive-react/src/infra/hooks/mutations/useUpdateContentPresetMutation.ts index 2704a2545e..85a7fce776 100644 --- a/sdk/constructive-react/src/admin/hooks/mutations/useUpdateOrgPermissionMutation.ts +++ b/sdk/constructive-react/src/infra/hooks/mutations/useUpdateContentPresetMutation.ts @@ -1,5 +1,5 @@ /** - * Defines available permissions as named bits within a bitmask, used by the RBAC system for access control + * Seed-content preset catalog (limit defaults, trust ladders, ...) — merkle-versioned head over the infra store * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -9,106 +9,106 @@ import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-quer import { getClient } from '../client'; import { buildSelectionArgs } from '../selection'; import type { SelectionConfig } from '../selection'; -import { orgPermissionKeys } from '../query-keys'; -import { orgPermissionMutationKeys } from '../mutation-keys'; +import { contentPresetKeys } from '../query-keys'; +import { contentPresetMutationKeys } from '../mutation-keys'; import type { - OrgPermissionSelect, - OrgPermissionWithRelations, - OrgPermissionPatch, + ContentPresetSelect, + ContentPresetWithRelations, + ContentPresetPatch, } from '../../orm/input-types'; import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; export type { - OrgPermissionSelect, - OrgPermissionWithRelations, - OrgPermissionPatch, + ContentPresetSelect, + ContentPresetWithRelations, + ContentPresetPatch, } from '../../orm/input-types'; /** - * Defines available permissions as named bits within a bitmask, used by the RBAC system for access control + * Seed-content preset catalog (limit defaults, trust ladders, ...) — merkle-versioned head over the infra store * * @example * ```tsx - * const { mutate, isPending } = useUpdateOrgPermissionMutation({ + * const { mutate, isPending } = useUpdateContentPresetMutation({ * selection: { fields: { id: true, name: true } }, * }); * - * mutate({ id: 'value-here', orgPermissionPatch: { name: 'Updated' } }); + * mutate({ id: 'value-here', contentPresetPatch: { name: 'Updated' } }); * ``` */ -export function useUpdateOrgPermissionMutation( +export function useUpdateContentPresetMutation( params: { selection: { - fields: S & OrgPermissionSelect; - } & HookStrictSelect, OrgPermissionSelect>; + fields: S & ContentPresetSelect; + } & HookStrictSelect, ContentPresetSelect>; } & Omit< UseMutationOptions< { - updateOrgPermission: { - orgPermission: InferSelectResult; + updateContentPreset: { + contentPreset: InferSelectResult; }; }, Error, { id: string; - orgPermissionPatch: OrgPermissionPatch; + contentPresetPatch: ContentPresetPatch; } >, 'mutationFn' > ): UseMutationResult< { - updateOrgPermission: { - orgPermission: InferSelectResult; + updateContentPreset: { + contentPreset: InferSelectResult; }; }, Error, { id: string; - orgPermissionPatch: OrgPermissionPatch; + contentPresetPatch: ContentPresetPatch; } >; -export function useUpdateOrgPermissionMutation( +export function useUpdateContentPresetMutation( params: { - selection: SelectionConfig; + selection: SelectionConfig; } & Omit< UseMutationOptions< any, Error, { id: string; - orgPermissionPatch: OrgPermissionPatch; + contentPresetPatch: ContentPresetPatch; } >, 'mutationFn' > ) { - const args = buildSelectionArgs(params.selection); + const args = buildSelectionArgs(params.selection); const { selection: _selection, ...mutationOptions } = params ?? {}; void _selection; const queryClient = useQueryClient(); return useMutation({ - mutationKey: orgPermissionMutationKeys.all, + mutationKey: contentPresetMutationKeys.all, mutationFn: ({ id, - orgPermissionPatch, + contentPresetPatch, }: { id: string; - orgPermissionPatch: OrgPermissionPatch; + contentPresetPatch: ContentPresetPatch; }) => getClient() - .orgPermission.update({ + .contentPreset.update({ where: { id, }, - data: orgPermissionPatch, + data: contentPresetPatch, select: args.select, }) .unwrap(), onSuccess: (_, variables) => { queryClient.invalidateQueries({ - queryKey: orgPermissionKeys.detail(variables.id), + queryKey: contentPresetKeys.detail(variables.id), }); queryClient.invalidateQueries({ - queryKey: orgPermissionKeys.lists(), + queryKey: contentPresetKeys.lists(), }); }, ...mutationOptions, diff --git a/sdk/constructive-react/src/infra/hooks/queries/index.ts b/sdk/constructive-react/src/infra/hooks/queries/index.ts index ea745c45ed..9dd0818570 100644 --- a/sdk/constructive-react/src/infra/hooks/queries/index.ts +++ b/sdk/constructive-react/src/infra/hooks/queries/index.ts @@ -3,6 +3,8 @@ * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ +export * from './useContentPresetsQuery'; +export * from './useContentPresetQuery'; export * from './useDbPresetsQuery'; export * from './useDbPresetQuery'; export * from './useNamespacesQuery'; diff --git a/sdk/constructive-react/src/infra/hooks/queries/useContentPresetQuery.ts b/sdk/constructive-react/src/infra/hooks/queries/useContentPresetQuery.ts new file mode 100644 index 0000000000..61687e0ba3 --- /dev/null +++ b/sdk/constructive-react/src/infra/hooks/queries/useContentPresetQuery.ts @@ -0,0 +1,138 @@ +/** + * Seed-content preset catalog (limit defaults, trust ladders, ...) — merkle-versioned head over the infra store + * @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 { contentPresetKeys } from '../query-keys'; +import type { ContentPresetSelect, ContentPresetWithRelations } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { ContentPresetSelect, ContentPresetWithRelations } from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const contentPresetQueryKey = contentPresetKeys.detail; +/** + * Seed-content preset catalog (limit defaults, trust ladders, ...) — merkle-versioned head over the infra store + * + * @example + * ```tsx + * const { data, isLoading } = useContentPresetQuery({ + * id: 'some-id', + * selection: { fields: { id: true, name: true } }, + * }); + * ``` + */ +export function useContentPresetQuery< + S extends ContentPresetSelect, + TData = { + contentPreset: InferSelectResult | null; + }, +>( + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, ContentPresetSelect>; + } & Omit< + UseQueryOptions< + { + contentPreset: InferSelectResult | null; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useContentPresetQuery( + params: { + id: string; + selection: SelectionConfig; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: contentPresetKeys.detail(params.id), + queryFn: () => + getClient() + .contentPreset.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + ...queryOptions, + }); +} +/** + * Seed-content preset catalog (limit defaults, trust ladders, ...) — merkle-versioned head over the infra store + * + * @example + * ```ts + * const data = await fetchContentPresetQuery({ + * id: 'some-id', + * selection: { fields: { id: true } }, + * }); + * ``` + */ +export async function fetchContentPresetQuery(params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, ContentPresetSelect>; +}): Promise<{ + contentPreset: InferSelectResult | null; +}>; +export async function fetchContentPresetQuery(params: { + id: string; + selection: SelectionConfig; +}): Promise { + const args = buildSelectionArgs(params.selection); + return getClient() + .contentPreset.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(); +} +/** + * Seed-content preset catalog (limit defaults, trust ladders, ...) — merkle-versioned head over the infra store + * + * @example + * ```ts + * await prefetchContentPresetQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } }); + * ``` + */ +export async function prefetchContentPresetQuery( + queryClient: QueryClient, + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, ContentPresetSelect>; + } +): Promise; +export async function prefetchContentPresetQuery( + queryClient: QueryClient, + params: { + id: string; + selection: SelectionConfig; + } +): Promise { + const args = buildSelectionArgs(params.selection); + await queryClient.prefetchQuery({ + queryKey: contentPresetKeys.detail(params.id), + queryFn: () => + getClient() + .contentPreset.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + }); +} diff --git a/sdk/constructive-react/src/infra/hooks/queries/useContentPresetsQuery.ts b/sdk/constructive-react/src/infra/hooks/queries/useContentPresetsQuery.ts new file mode 100644 index 0000000000..c43b4f9766 --- /dev/null +++ b/sdk/constructive-react/src/infra/hooks/queries/useContentPresetsQuery.ts @@ -0,0 +1,151 @@ +/** + * Seed-content preset catalog (limit defaults, trust ladders, ...) — merkle-versioned head over the infra store + * @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 { contentPresetKeys } from '../query-keys'; +import type { + ContentPresetSelect, + ContentPresetWithRelations, + ContentPresetFilter, + ContentPresetOrderBy, +} from '../../orm/input-types'; +import type { + FindManyArgs, + InferSelectResult, + ConnectionResult, + HookStrictSelect, +} from '../../orm/select-types'; +export type { + ContentPresetSelect, + ContentPresetWithRelations, + ContentPresetFilter, + ContentPresetOrderBy, +} from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const contentPresetsQueryKey = contentPresetKeys.list; +/** + * Seed-content preset catalog (limit defaults, trust ladders, ...) — merkle-versioned head over the infra store + * + * @example + * ```tsx + * const { data, isLoading } = useContentPresetsQuery({ + * selection: { + * fields: { id: true, name: true }, + * where: { name: { equalTo: "example" } }, + * orderBy: ['CREATED_AT_DESC'], + * first: 10, + * }, + * }); + * ``` + */ +export function useContentPresetsQuery< + S extends ContentPresetSelect, + TData = { + contentPresets: ConnectionResult>; + }, +>( + params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, ContentPresetSelect>; + } & Omit< + UseQueryOptions< + { + contentPresets: ConnectionResult>; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useContentPresetsQuery( + params: { + selection: ListSelectionConfig; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildListSelectionArgs< + ContentPresetSelect, + ContentPresetFilter, + ContentPresetOrderBy + >(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: contentPresetKeys.list(args), + queryFn: () => getClient().contentPreset.findMany(args).unwrap(), + ...queryOptions, + }); +} +/** + * Seed-content preset catalog (limit defaults, trust ladders, ...) — merkle-versioned head over the infra store + * + * @example + * ```ts + * const data = await fetchContentPresetsQuery({ + * selection: { + * fields: { id: true }, + * first: 10, + * }, + * }); + * ``` + */ +export async function fetchContentPresetsQuery(params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, ContentPresetSelect>; +}): Promise<{ + contentPresets: ConnectionResult>; +}>; +export async function fetchContentPresetsQuery(params: { + selection: ListSelectionConfig; +}) { + const args = buildListSelectionArgs< + ContentPresetSelect, + ContentPresetFilter, + ContentPresetOrderBy + >(params.selection); + return getClient().contentPreset.findMany(args).unwrap(); +} +/** + * Seed-content preset catalog (limit defaults, trust ladders, ...) — merkle-versioned head over the infra store + * + * @example + * ```ts + * await prefetchContentPresetsQuery(queryClient, { selection: { fields: { id: true }, first: 10 } }); + * ``` + */ +export async function prefetchContentPresetsQuery( + queryClient: QueryClient, + params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, ContentPresetSelect>; + } +): Promise; +export async function prefetchContentPresetsQuery( + queryClient: QueryClient, + params: { + selection: ListSelectionConfig; + } +): Promise { + const args = buildListSelectionArgs< + ContentPresetSelect, + ContentPresetFilter, + ContentPresetOrderBy + >(params.selection); + await queryClient.prefetchQuery({ + queryKey: contentPresetKeys.list(args), + queryFn: () => getClient().contentPreset.findMany(args).unwrap(), + }); +} diff --git a/sdk/constructive-react/src/infra/hooks/query-keys.ts b/sdk/constructive-react/src/infra/hooks/query-keys.ts index 74d7755bea..107e5f403d 100644 --- a/sdk/constructive-react/src/infra/hooks/query-keys.ts +++ b/sdk/constructive-react/src/infra/hooks/query-keys.ts @@ -19,6 +19,15 @@ // Entity Query Keys // ============================================================================ +export const contentPresetKeys = { + /** All contentPreset queries */ all: ['contentpreset'] as const, + /** List query keys */ lists: () => [...contentPresetKeys.all, 'list'] as const, + /** List query key with variables */ list: (variables?: object) => + [...contentPresetKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...contentPresetKeys.all, 'detail'] as const, + /** Detail query key for specific item */ detail: (id: string | number) => + [...contentPresetKeys.details(), id] as const, +} as const; export const dbPresetKeys = { /** All dbPreset queries */ all: ['dbpreset'] as const, /** List query keys */ lists: () => [...dbPresetKeys.all, 'list'] as const, @@ -136,6 +145,7 @@ export const platformNamespaceEventKeys = { * ``` */ export const queryKeys = { + contentPreset: contentPresetKeys, dbPreset: dbPresetKeys, namespace: namespaceKeys, namespaceEvent: namespaceEventKeys, diff --git a/sdk/constructive-react/src/infra/orm/README.md b/sdk/constructive-react/src/infra/orm/README.md index e303005e2f..a090f35cca 100644 --- a/sdk/constructive-react/src/infra/orm/README.md +++ b/sdk/constructive-react/src/infra/orm/README.md @@ -21,6 +21,7 @@ const db = createClient({ | Model | Operations | |-------|------------| +| `contentPreset` | findMany, findOne, create, update, delete | | `dbPreset` | findMany, findOne, create, update, delete | | `namespace` | findMany, findOne, create, update, delete | | `namespaceEvent` | findMany, findOne, create, update, delete | @@ -34,6 +35,45 @@ const db = createClient({ ## Table Operations +### `db.contentPreset` + +CRUD operations for ContentPreset records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `active` | Boolean | Yes | +| `commitId` | UUID | Yes | +| `createdAt` | Datetime | No | +| `definition` | JSON | Yes | +| `description` | String | Yes | +| `id` | UUID | No | +| `kind` | String | Yes | +| `label` | String | Yes | +| `slug` | String | Yes | +| `storeId` | UUID | Yes | +| `updatedAt` | Datetime | No | + +**Operations:** + +```typescript +// List all contentPreset records +const items = await db.contentPreset.findMany({ select: { active: true, commitId: true, createdAt: true, definition: true, description: true, id: true, kind: true, label: true, slug: true, storeId: true, updatedAt: true } }).execute(); + +// Get one by id +const item = await db.contentPreset.findOne({ id: '', select: { active: true, commitId: true, createdAt: true, definition: true, description: true, id: true, kind: true, label: true, slug: true, storeId: true, updatedAt: true } }).execute(); + +// Create +const created = await db.contentPreset.create({ data: { active: '', commitId: '', definition: '', description: '', kind: '', label: '', slug: '', storeId: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.contentPreset.update({ where: { id: '' }, data: { active: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.contentPreset.delete({ where: { id: '' } }).execute(); +``` + ### `db.dbPreset` CRUD operations for DbPreset records. @@ -424,6 +464,36 @@ platformInfraInsertNodeAtPath const result = await db.mutation.platformInfraInsertNodeAtPath({ input: '' }).execute(); ``` +### `db.mutation.platformInfraInsertNodesAtPaths` + +platformInfraInsertNodesAtPaths + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | PlatformInfraInsertNodesAtPathsInput (required) | + +```typescript +const result = await db.mutation.platformInfraInsertNodesAtPaths({ input: '' }).execute(); +``` + +### `db.mutation.platformInfraSetAndCommit` + +platformInfraSetAndCommit + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | PlatformInfraSetAndCommitInput (required) | + +```typescript +const result = await db.mutation.platformInfraSetAndCommit({ input: '' }).execute(); +``` + ### `db.mutation.platformInfraSetDataAtPath` platformInfraSetDataAtPath @@ -439,6 +509,21 @@ platformInfraSetDataAtPath const result = await db.mutation.platformInfraSetDataAtPath({ input: { data: '', path: '', root: '', sId: '' } }).execute(); ``` +### `db.mutation.platformInfraSetManyAndCommit` + +platformInfraSetManyAndCommit + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | PlatformInfraSetManyAndCommitInput (required) | + +```typescript +const result = await db.mutation.platformInfraSetManyAndCommit({ input: { entries: '', message: '', refname: '', sId: '', storeId: '' } }).execute(); +``` + ### `db.mutation.provisionBucket` Provision an S3 bucket for a logical bucket in the database. diff --git a/sdk/constructive-react/src/infra/orm/index.ts b/sdk/constructive-react/src/infra/orm/index.ts index c40f0234ec..364d28428c 100644 --- a/sdk/constructive-react/src/infra/orm/index.ts +++ b/sdk/constructive-react/src/infra/orm/index.ts @@ -5,6 +5,7 @@ */ import { OrmClient } from './client'; import type { OrmClientConfig } from './client'; +import { ContentPresetModel } from './models/contentPreset'; import { DbPresetModel } from './models/dbPreset'; import { NamespaceModel } from './models/namespace'; import { NamespaceEventModel } from './models/namespaceEvent'; @@ -48,6 +49,7 @@ export { createMutationOperations } from './mutation'; export function createClient(config: OrmClientConfig) { const client = new OrmClient(config); return { + contentPreset: new ContentPresetModel(client), dbPreset: new DbPresetModel(client), namespace: new NamespaceModel(client), namespaceEvent: new NamespaceEventModel(client), diff --git a/sdk/constructive-react/src/infra/orm/input-types.ts b/sdk/constructive-react/src/infra/orm/input-types.ts index 23e81e113d..a0d8e52f29 100644 --- a/sdk/constructive-react/src/infra/orm/input-types.ts +++ b/sdk/constructive-react/src/infra/orm/input-types.ts @@ -230,8 +230,33 @@ export interface UUIDListFilter { anyGreaterThan?: string; anyGreaterThanOrEqualTo?: string; } -/** Database provisioning preset catalog — merkle-versioned head over the infra store */ +/** Seed-content preset catalog (limit defaults, trust ladders, ...) — merkle-versioned head over the infra store */ // ============ Entity Types ============ +export interface ContentPreset { + /** Whether this preset is selectable at provision time */ + active?: boolean | null; + /** Infra store commit for the current definition (stamped by the versioned trigger on every write) */ + commitId?: string | null; + /** Timestamp of preset creation */ + createdAt?: string | null; + /** The seed document itself, in the shape the kind's seed function takes — the readily-cached head; history lives in the infra store */ + definition?: Record | null; + /** Human-readable description of the preset */ + description?: string | null; + /** Unique preset identifier */ + id: string; + /** What the definition seeds — the module option that resolves it (limit_defaults, trust_ladder, ...) */ + kind?: string | null; + /** Human-readable preset name */ + label?: string | null; + /** Preset slug (unique per kind per scope); the preset's path in the infra tree is [content_preset, kind, slug] */ + slug?: string | null; + /** Infra Merkle store holding this preset's history (stamped by the versioned trigger) */ + storeId?: string | null; + /** Timestamp of last modification */ + updatedAt?: string | null; +} +/** Database provisioning preset catalog — merkle-versioned head over the infra store */ export interface DbPreset { /** Whether this preset is selectable for new databases */ active?: boolean | null; @@ -421,6 +446,7 @@ export interface PageInfo { endCursor?: string | null; } // ============ Entity Relation Types ============ +export interface ContentPresetRelations {} export interface DbPresetRelations {} export interface NamespaceRelations {} export interface NamespaceEventRelations {} @@ -432,6 +458,7 @@ export interface PlatformInfraStoreRelations {} export interface PlatformNamespaceRelations {} export interface PlatformNamespaceEventRelations {} // ============ Entity Types With Relations ============ +export type ContentPresetWithRelations = ContentPreset & ContentPresetRelations; export type DbPresetWithRelations = DbPreset & DbPresetRelations; export type NamespaceWithRelations = Namespace & NamespaceRelations; export type NamespaceEventWithRelations = NamespaceEvent & NamespaceEventRelations; @@ -445,6 +472,19 @@ export type PlatformNamespaceWithRelations = PlatformNamespace & PlatformNamespa export type PlatformNamespaceEventWithRelations = PlatformNamespaceEvent & PlatformNamespaceEventRelations; // ============ Entity Select Types ============ +export type ContentPresetSelect = { + active?: boolean; + commitId?: boolean; + createdAt?: boolean; + definition?: boolean; + description?: boolean; + id?: boolean; + kind?: boolean; + label?: boolean; + slug?: boolean; + storeId?: boolean; + updatedAt?: boolean; +}; export type DbPresetSelect = { active?: boolean; commitId?: boolean; @@ -544,6 +584,36 @@ export type PlatformNamespaceEventSelect = { namespaceId?: boolean; }; // ============ Table Filter Types ============ +export interface ContentPresetFilter { + /** Filter by the object’s `active` field. */ + active?: BooleanFilter; + /** Checks for all expressions in this list. */ + and?: ContentPresetFilter[]; + /** Filter by the object’s `commitId` field. */ + commitId?: UUIDFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `definition` field. */ + definition?: JSONFilter; + /** Filter by the object’s `description` field. */ + description?: StringFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `kind` field. */ + kind?: StringFilter; + /** Filter by the object’s `label` field. */ + label?: StringFilter; + /** Negates the expression. */ + not?: ContentPresetFilter; + /** Checks for any expressions in this list. */ + or?: ContentPresetFilter[]; + /** Filter by the object’s `slug` field. */ + slug?: StringFilter; + /** Filter by the object’s `storeId` field. */ + storeId?: UUIDFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; +} export interface DbPresetFilter { /** Filter by the object’s `active` field. */ active?: BooleanFilter; @@ -776,6 +846,32 @@ export interface PlatformNamespaceEventFilter { or?: PlatformNamespaceEventFilter[]; } // ============ OrderBy Types ============ +export type ContentPresetOrderBy = + | 'ACTIVE_ASC' + | 'ACTIVE_DESC' + | 'COMMIT_ID_ASC' + | 'COMMIT_ID_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'DEFINITION_ASC' + | 'DEFINITION_DESC' + | 'DESCRIPTION_ASC' + | 'DESCRIPTION_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'KIND_ASC' + | 'KIND_DESC' + | 'LABEL_ASC' + | 'LABEL_DESC' + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'SLUG_ASC' + | 'SLUG_DESC' + | 'STORE_ID_ASC' + | 'STORE_ID_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC'; export type DbPresetOrderBy = | 'ACTIVE_ASC' | 'ACTIVE_DESC' @@ -973,6 +1069,38 @@ export type PlatformNamespaceEventOrderBy = | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC'; // ============ CRUD Input Types ============ +export interface CreateContentPresetInput { + clientMutationId?: string; + contentPreset: { + active?: boolean; + commitId?: string; + definition: Record; + description?: string; + kind: string; + label?: string; + slug: string; + storeId?: string; + }; +} +export interface ContentPresetPatch { + active?: boolean | null; + commitId?: string | null; + definition?: Record | null; + description?: string | null; + kind?: string | null; + label?: string | null; + slug?: string | null; + storeId?: string | null; +} +export interface UpdateContentPresetInput { + clientMutationId?: string; + id: string; + contentPresetPatch: ContentPresetPatch; +} +export interface DeleteContentPresetInput { + clientMutationId?: string; + id: string; +} export interface CreateDbPresetInput { clientMutationId?: string; dbPreset: { @@ -1268,6 +1396,26 @@ export interface PlatformInfraInsertNodeAtPathInput { root?: string; sId?: string; } +export interface PlatformInfraInsertNodesAtPathsInput { + clientMutationId?: string; + datas?: Record[]; + kidsList?: Record; + ktreeList?: Record; + paths?: Record; + root?: string; + sId?: string; +} +export interface PlatformInfraSetAndCommitInput { + clientMutationId?: string; + data?: Record; + kids?: string[]; + ktree?: string[]; + message?: string; + path?: string[]; + refname?: string; + sId?: string; + storeId?: string; +} export interface PlatformInfraSetDataAtPathInput { clientMutationId?: string; data?: Record; @@ -1275,6 +1423,14 @@ export interface PlatformInfraSetDataAtPathInput { root?: string; sId?: string; } +export interface PlatformInfraSetManyAndCommitInput { + clientMutationId?: string; + entries?: Record; + message?: string; + refname?: string; + sId?: string; + storeId?: string; +} export interface ProvisionBucketInput { /** The logical bucket key (e.g., "public", "private") */ bucketKey: string; @@ -1284,6 +1440,31 @@ export interface ProvisionBucketInput { */ ownerId?: string; } +/** An input for mutations affecting `ContentPreset` */ +export interface ContentPresetInput { + /** Whether this preset is selectable at provision time */ + active?: boolean; + /** Infra store commit for the current definition (stamped by the versioned trigger on every write) */ + commitId?: string; + /** Timestamp of preset creation */ + createdAt?: string; + /** The seed document itself, in the shape the kind's seed function takes — the readily-cached head; history lives in the infra store */ + definition: Record; + /** Human-readable description of the preset */ + description?: string; + /** Unique preset identifier */ + id?: string; + /** What the definition seeds — the module option that resolves it (limit_defaults, trust_ladder, ...) */ + kind: string; + /** Human-readable preset name */ + label?: string; + /** Preset slug (unique per kind per scope); the preset's path in the infra tree is [content_preset, kind, slug] */ + slug: string; + /** Infra Merkle store holding this preset's history (stamped by the versioned trigger) */ + storeId?: string; + /** Timestamp of last modification */ + updatedAt?: string; +} /** An input for mutations affecting `DbPreset` */ export interface DbPresetInput { /** Whether this preset is selectable for new databases */ @@ -1472,6 +1653,28 @@ export type PlatformInfraInsertNodeAtPathPayloadSelect = { clientMutationId?: boolean; result?: boolean; }; +export interface PlatformInfraInsertNodesAtPathsPayload { + clientMutationId?: string | null; + result?: string | null; +} +export type PlatformInfraInsertNodesAtPathsPayloadSelect = { + clientMutationId?: boolean; + result?: boolean; +}; +export interface PlatformInfraSetAndCommitPayload { + clientMutationId?: string | null; + platformInfraCommitEdge?: PlatformInfraCommitEdge | null; + result?: PlatformInfraCommit | null; +} +export type PlatformInfraSetAndCommitPayloadSelect = { + clientMutationId?: boolean; + platformInfraCommitEdge?: { + select: PlatformInfraCommitEdgeSelect; + }; + result?: { + select: PlatformInfraCommitSelect; + }; +}; export interface PlatformInfraSetDataAtPathPayload { clientMutationId?: string | null; result?: string | null; @@ -1480,6 +1683,20 @@ export type PlatformInfraSetDataAtPathPayloadSelect = { clientMutationId?: boolean; result?: boolean; }; +export interface PlatformInfraSetManyAndCommitPayload { + clientMutationId?: string | null; + platformInfraCommitEdge?: PlatformInfraCommitEdge | null; + result?: PlatformInfraCommit | null; +} +export type PlatformInfraSetManyAndCommitPayloadSelect = { + clientMutationId?: boolean; + platformInfraCommitEdge?: { + select: PlatformInfraCommitEdgeSelect; + }; + result?: { + select: PlatformInfraCommitSelect; + }; +}; export interface ProvisionBucketPayload { /** The access type applied */ accessType: string; @@ -1502,6 +1719,51 @@ export type ProvisionBucketPayloadSelect = { provider?: boolean; success?: boolean; }; +export interface CreateContentPresetPayload { + clientMutationId?: string | null; + /** The `ContentPreset` that was created by this mutation. */ + contentPreset?: ContentPreset | null; + contentPresetEdge?: ContentPresetEdge | null; +} +export type CreateContentPresetPayloadSelect = { + clientMutationId?: boolean; + contentPreset?: { + select: ContentPresetSelect; + }; + contentPresetEdge?: { + select: ContentPresetEdgeSelect; + }; +}; +export interface UpdateContentPresetPayload { + clientMutationId?: string | null; + /** The `ContentPreset` that was updated by this mutation. */ + contentPreset?: ContentPreset | null; + contentPresetEdge?: ContentPresetEdge | null; +} +export type UpdateContentPresetPayloadSelect = { + clientMutationId?: boolean; + contentPreset?: { + select: ContentPresetSelect; + }; + contentPresetEdge?: { + select: ContentPresetEdgeSelect; + }; +}; +export interface DeleteContentPresetPayload { + clientMutationId?: string | null; + /** The `ContentPreset` that was deleted by this mutation. */ + contentPreset?: ContentPreset | null; + contentPresetEdge?: ContentPresetEdge | null; +} +export type DeleteContentPresetPayloadSelect = { + clientMutationId?: boolean; + contentPreset?: { + select: ContentPresetSelect; + }; + contentPresetEdge?: { + select: ContentPresetEdgeSelect; + }; +}; export interface CreateDbPresetPayload { clientMutationId?: string | null; /** The `DbPreset` that was created by this mutation. */ @@ -1907,6 +2169,30 @@ export type DeletePlatformNamespaceEventPayloadSelect = { select: PlatformNamespaceEventEdgeSelect; }; }; +/** A `PlatformInfraCommit` edge in the connection. */ +export interface PlatformInfraCommitEdge { + cursor?: string | null; + /** The `PlatformInfraCommit` at the end of the edge. */ + node?: PlatformInfraCommit | null; +} +export type PlatformInfraCommitEdgeSelect = { + cursor?: boolean; + node?: { + select: PlatformInfraCommitSelect; + }; +}; +/** A `ContentPreset` edge in the connection. */ +export interface ContentPresetEdge { + cursor?: string | null; + /** The `ContentPreset` at the end of the edge. */ + node?: ContentPreset | null; +} +export type ContentPresetEdgeSelect = { + cursor?: boolean; + node?: { + select: ContentPresetSelect; + }; +}; /** A `DbPreset` edge in the connection. */ export interface DbPresetEdge { cursor?: string | null; @@ -1943,18 +2229,6 @@ export type NamespaceEventEdgeSelect = { select: NamespaceEventSelect; }; }; -/** A `PlatformInfraCommit` edge in the connection. */ -export interface PlatformInfraCommitEdge { - cursor?: string | null; - /** The `PlatformInfraCommit` at the end of the edge. */ - node?: PlatformInfraCommit | null; -} -export type PlatformInfraCommitEdgeSelect = { - cursor?: boolean; - node?: { - select: PlatformInfraCommitSelect; - }; -}; /** A `PlatformInfraObject` edge in the connection. */ export interface PlatformInfraObjectEdge { cursor?: string | null; diff --git a/sdk/constructive-react/src/admin/orm/models/orgPermission.ts b/sdk/constructive-react/src/infra/orm/models/contentPreset.ts similarity index 53% rename from sdk/constructive-react/src/admin/orm/models/orgPermission.ts rename to sdk/constructive-react/src/infra/orm/models/contentPreset.ts index e3aded7147..20242ccc78 100644 --- a/sdk/constructive-react/src/admin/orm/models/orgPermission.ts +++ b/sdk/constructive-react/src/infra/orm/models/contentPreset.ts @@ -1,5 +1,5 @@ /** - * OrgPermission model for ORM client + * ContentPreset 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 { - OrgPermission, - OrgPermissionWithRelations, - OrgPermissionSelect, - OrgPermissionFilter, - OrgPermissionOrderBy, - CreateOrgPermissionInput, - UpdateOrgPermissionInput, - OrgPermissionPatch, + ContentPreset, + ContentPresetWithRelations, + ContentPresetSelect, + ContentPresetFilter, + ContentPresetOrderBy, + CreateContentPresetInput, + UpdateContentPresetInput, + ContentPresetPatch, } from '../input-types'; import { connectionFieldsMap } from '../input-types'; -export class OrgPermissionModel { +export class ContentPresetModel { constructor(private client: OrmClient) {} - findMany( - args: FindManyArgs & { + findMany( + args: FindManyArgs & { select: S; - } & StrictSelect + } & StrictSelect ): QueryBuilder<{ - orgPermissions: ConnectionResult>; + contentPresets: ConnectionResult>; }> { const { document, variables } = buildFindManyDocument( - 'OrgPermission', - 'orgPermissions', + 'ContentPreset', + 'contentPresets', args.select, { where: args?.where, @@ -56,65 +56,65 @@ export class OrgPermissionModel { before: args?.before, offset: args?.offset, }, - 'OrgPermissionFilter', - 'OrgPermissionOrderBy', + 'ContentPresetFilter', + 'ContentPresetOrderBy', connectionFieldsMap ); return new QueryBuilder({ client: this.client, operation: 'query', - operationName: 'OrgPermission', - fieldName: 'orgPermissions', + operationName: 'ContentPreset', + fieldName: 'contentPresets', document, variables, }); } - findFirst( - args: FindFirstArgs & { + findFirst( + args: FindFirstArgs & { select: S; - } & StrictSelect + } & StrictSelect ): QueryBuilder<{ - orgPermission: InferSelectResult | null; + contentPreset: InferSelectResult | null; }> { const { document, variables } = buildFindFirstDocument( - 'OrgPermission', - 'orgPermissions', + 'ContentPreset', + 'contentPresets', args.select, { where: args?.where, orderBy: args?.orderBy as string[] | undefined, }, - 'OrgPermissionFilter', - 'OrgPermissionOrderBy', + 'ContentPresetFilter', + 'ContentPresetOrderBy', connectionFieldsMap ); return new QueryBuilder({ client: this.client, operation: 'query', - operationName: 'OrgPermission', - fieldName: 'orgPermission', + operationName: 'ContentPreset', + fieldName: 'contentPreset', document, variables, transform: (data: { - orgPermissions?: { - nodes?: InferSelectResult[]; + contentPresets?: { + nodes?: InferSelectResult[]; }; }) => ({ - orgPermission: data.orgPermissions?.nodes?.[0] ?? null, + contentPreset: data.contentPresets?.nodes?.[0] ?? null, }), }); } - findOne( + findOne( args: { id: string; select: S; - } & StrictSelect + } & StrictSelect ): QueryBuilder<{ - orgPermission: InferSelectResult | null; + contentPreset: InferSelectResult | null; }> { const { document, variables } = buildFindManyDocument( - 'OrgPermission', - 'orgPermissions', + 'ContentPreset', + 'contentPresets', args.select, { where: { @@ -124,91 +124,91 @@ export class OrgPermissionModel { }, first: 1, }, - 'OrgPermissionFilter', - 'OrgPermissionOrderBy', + 'ContentPresetFilter', + 'ContentPresetOrderBy', connectionFieldsMap ); return new QueryBuilder({ client: this.client, operation: 'query', - operationName: 'OrgPermission', - fieldName: 'orgPermission', + operationName: 'ContentPreset', + fieldName: 'contentPreset', document, variables, transform: (data: { - orgPermissions?: { - nodes?: InferSelectResult[]; + contentPresets?: { + nodes?: InferSelectResult[]; }; }) => ({ - orgPermission: data.orgPermissions?.nodes?.[0] ?? null, + contentPreset: data.contentPresets?.nodes?.[0] ?? null, }), }); } - create( - args: CreateArgs & { + create( + args: CreateArgs & { select: S; - } & StrictSelect + } & StrictSelect ): QueryBuilder<{ - createOrgPermission: { - orgPermission: InferSelectResult; + createContentPreset: { + contentPreset: InferSelectResult; }; }> { const { document, variables } = buildCreateDocument( - 'OrgPermission', - 'createOrgPermission', - 'orgPermission', + 'ContentPreset', + 'createContentPreset', + 'contentPreset', args.select, args.data, - 'CreateOrgPermissionInput', + 'CreateContentPresetInput', connectionFieldsMap ); return new QueryBuilder({ client: this.client, operation: 'mutation', - operationName: 'OrgPermission', - fieldName: 'createOrgPermission', + operationName: 'ContentPreset', + fieldName: 'createContentPreset', document, variables, }); } - update( + update( args: UpdateArgs< S, { id: string; }, - OrgPermissionPatch + ContentPresetPatch > & { select: S; - } & StrictSelect + } & StrictSelect ): QueryBuilder<{ - updateOrgPermission: { - orgPermission: InferSelectResult; + updateContentPreset: { + contentPreset: InferSelectResult; }; }> { const { document, variables } = buildUpdateByPkDocument( - 'OrgPermission', - 'updateOrgPermission', - 'orgPermission', + 'ContentPreset', + 'updateContentPreset', + 'contentPreset', args.select, args.where.id, args.data, - 'UpdateOrgPermissionInput', + 'UpdateContentPresetInput', 'id', - 'orgPermissionPatch', + 'contentPresetPatch', connectionFieldsMap, undefined ); return new QueryBuilder({ client: this.client, operation: 'mutation', - operationName: 'OrgPermission', - fieldName: 'updateOrgPermission', + operationName: 'ContentPreset', + fieldName: 'updateContentPreset', document, variables, }); } - delete( + delete( args: DeleteArgs< { id: string; @@ -216,28 +216,28 @@ export class OrgPermissionModel { S > & { select: S; - } & StrictSelect + } & StrictSelect ): QueryBuilder<{ - deleteOrgPermission: { - orgPermission: InferSelectResult; + deleteContentPreset: { + contentPreset: InferSelectResult; }; }> { const { document, variables } = buildDeleteByPkDocument( - 'OrgPermission', - 'deleteOrgPermission', - 'orgPermission', + 'ContentPreset', + 'deleteContentPreset', + 'contentPreset', { id: args.where.id, }, - 'DeleteOrgPermissionInput', + 'DeleteContentPresetInput', args.select, connectionFieldsMap ); return new QueryBuilder({ client: this.client, operation: 'mutation', - operationName: 'OrgPermission', - fieldName: 'deleteOrgPermission', + operationName: 'ContentPreset', + fieldName: 'deleteContentPreset', document, variables, }); diff --git a/sdk/constructive-react/src/infra/orm/models/index.ts b/sdk/constructive-react/src/infra/orm/models/index.ts index 1e5132eecf..497a17ea94 100644 --- a/sdk/constructive-react/src/infra/orm/models/index.ts +++ b/sdk/constructive-react/src/infra/orm/models/index.ts @@ -3,6 +3,7 @@ * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ +export { ContentPresetModel } from './contentPreset'; export { DbPresetModel } from './dbPreset'; export { NamespaceModel } from './namespace'; export { NamespaceEventModel } from './namespaceEvent'; diff --git a/sdk/constructive-react/src/infra/orm/mutation/index.ts b/sdk/constructive-react/src/infra/orm/mutation/index.ts index f266633531..04353e5b5c 100644 --- a/sdk/constructive-react/src/infra/orm/mutation/index.ts +++ b/sdk/constructive-react/src/infra/orm/mutation/index.ts @@ -9,15 +9,24 @@ import type { InferSelectResult, StrictSelect } from '../select-types'; import type { PlatformInfraInitEmptyRepoInput, PlatformInfraInsertNodeAtPathInput, + PlatformInfraInsertNodesAtPathsInput, + PlatformInfraSetAndCommitInput, PlatformInfraSetDataAtPathInput, + PlatformInfraSetManyAndCommitInput, ProvisionBucketInput, PlatformInfraInitEmptyRepoPayload, PlatformInfraInsertNodeAtPathPayload, + PlatformInfraInsertNodesAtPathsPayload, + PlatformInfraSetAndCommitPayload, PlatformInfraSetDataAtPathPayload, + PlatformInfraSetManyAndCommitPayload, ProvisionBucketPayload, PlatformInfraInitEmptyRepoPayloadSelect, PlatformInfraInsertNodeAtPathPayloadSelect, + PlatformInfraInsertNodesAtPathsPayloadSelect, + PlatformInfraSetAndCommitPayloadSelect, PlatformInfraSetDataAtPathPayloadSelect, + PlatformInfraSetManyAndCommitPayloadSelect, ProvisionBucketPayloadSelect, } from '../input-types'; import { connectionFieldsMap } from '../input-types'; @@ -27,9 +36,18 @@ export interface PlatformInfraInitEmptyRepoVariables { export interface PlatformInfraInsertNodeAtPathVariables { input: PlatformInfraInsertNodeAtPathInput; } +export interface PlatformInfraInsertNodesAtPathsVariables { + input: PlatformInfraInsertNodesAtPathsInput; +} +export interface PlatformInfraSetAndCommitVariables { + input: PlatformInfraSetAndCommitInput; +} export interface PlatformInfraSetDataAtPathVariables { input: PlatformInfraSetDataAtPathInput; } +export interface PlatformInfraSetManyAndCommitVariables { + input: PlatformInfraSetManyAndCommitInput; +} /** * Variables for provisionBucket * Provision an S3 bucket for a logical bucket in the database. @@ -103,6 +121,67 @@ export function createMutationOperations(client: OrmClient) { 'PlatformInfraInsertNodeAtPathPayload' ), }), + platformInfraInsertNodesAtPaths: ( + args: PlatformInfraInsertNodesAtPathsVariables, + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + platformInfraInsertNodesAtPaths: InferSelectResult< + PlatformInfraInsertNodesAtPathsPayload, + S + > | null; + }>({ + client, + operation: 'mutation', + operationName: 'PlatformInfraInsertNodesAtPaths', + fieldName: 'platformInfraInsertNodesAtPaths', + ...buildCustomDocument( + 'mutation', + 'PlatformInfraInsertNodesAtPaths', + 'platformInfraInsertNodesAtPaths', + options.select, + args, + [ + { + name: 'input', + type: 'PlatformInfraInsertNodesAtPathsInput!', + }, + ], + connectionFieldsMap, + 'PlatformInfraInsertNodesAtPathsPayload' + ), + }), + platformInfraSetAndCommit: ( + args: PlatformInfraSetAndCommitVariables, + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + platformInfraSetAndCommit: InferSelectResult | null; + }>({ + client, + operation: 'mutation', + operationName: 'PlatformInfraSetAndCommit', + fieldName: 'platformInfraSetAndCommit', + ...buildCustomDocument( + 'mutation', + 'PlatformInfraSetAndCommit', + 'platformInfraSetAndCommit', + options.select, + args, + [ + { + name: 'input', + type: 'PlatformInfraSetAndCommitInput!', + }, + ], + connectionFieldsMap, + 'PlatformInfraSetAndCommitPayload' + ), + }), platformInfraSetDataAtPath: ( args: PlatformInfraSetDataAtPathVariables, options: { @@ -132,6 +211,38 @@ export function createMutationOperations(client: OrmClient) { 'PlatformInfraSetDataAtPathPayload' ), }), + platformInfraSetManyAndCommit: ( + args: PlatformInfraSetManyAndCommitVariables, + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + platformInfraSetManyAndCommit: InferSelectResult< + PlatformInfraSetManyAndCommitPayload, + S + > | null; + }>({ + client, + operation: 'mutation', + operationName: 'PlatformInfraSetManyAndCommit', + fieldName: 'platformInfraSetManyAndCommit', + ...buildCustomDocument( + 'mutation', + 'PlatformInfraSetManyAndCommit', + 'platformInfraSetManyAndCommit', + options.select, + args, + [ + { + name: 'input', + type: 'PlatformInfraSetManyAndCommitInput!', + }, + ], + connectionFieldsMap, + 'PlatformInfraSetManyAndCommitPayload' + ), + }), provisionBucket: ( args: ProvisionBucketVariables, options: { diff --git a/sdk/constructive-react/src/infra/schema-types.ts b/sdk/constructive-react/src/infra/schema-types.ts index a9b4f2dd24..e0d5174b1c 100644 --- a/sdk/constructive-react/src/infra/schema-types.ts +++ b/sdk/constructive-react/src/infra/schema-types.ts @@ -5,6 +5,7 @@ */ import type { + ContentPreset, DbPreset, Namespace, NamespaceEvent, @@ -33,6 +34,33 @@ import type { UUIDListFilter, VectorFilter, } from './types'; +/** Methods to use when ordering `ContentPreset`. */ +export type ContentPresetOrderBy = + | 'ACTIVE_ASC' + | 'ACTIVE_DESC' + | 'COMMIT_ID_ASC' + | 'COMMIT_ID_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'DEFINITION_ASC' + | 'DEFINITION_DESC' + | 'DESCRIPTION_ASC' + | 'DESCRIPTION_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'KIND_ASC' + | 'KIND_DESC' + | 'LABEL_ASC' + | 'LABEL_DESC' + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'SLUG_ASC' + | 'SLUG_DESC' + | 'STORE_ID_ASC' + | 'STORE_ID_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC'; /** Methods to use when ordering `DbPreset`. */ export type DbPresetOrderBy = | 'ACTIVE_ASC' @@ -230,6 +258,92 @@ export type PlatformNamespaceOrderBy = | 'STATUS_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC'; +/** A filter to be used against `ContentPreset` object types. All fields are combined with a logical ‘and.’ */ +export interface ContentPresetFilter { + /** Filter by the object’s `active` field. */ + active?: BooleanFilter; + /** Checks for all expressions in this list. */ + and?: ContentPresetFilter[]; + /** Filter by the object’s `commitId` field. */ + commitId?: UUIDFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `definition` field. */ + definition?: JSONFilter; + /** Filter by the object’s `description` field. */ + description?: StringFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `kind` field. */ + kind?: StringFilter; + /** Filter by the object’s `label` field. */ + label?: StringFilter; + /** Negates the expression. */ + not?: ContentPresetFilter; + /** Checks for any expressions in this list. */ + or?: ContentPresetFilter[]; + /** Filter by the object’s `slug` field. */ + slug?: StringFilter; + /** Filter by the object’s `storeId` field. */ + storeId?: UUIDFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; +} +/** An input for mutations affecting `ContentPreset` */ +export interface ContentPresetInput { + /** Whether this preset is selectable at provision time */ + active?: boolean; + /** Infra store commit for the current definition (stamped by the versioned trigger on every write) */ + commitId?: string; + /** Timestamp of preset creation */ + createdAt?: string; + /** The seed document itself, in the shape the kind's seed function takes — the readily-cached head; history lives in the infra store */ + definition: unknown; + /** Human-readable description of the preset */ + description?: string; + /** Unique preset identifier */ + id?: string; + /** What the definition seeds — the module option that resolves it (limit_defaults, trust_ladder, ...) */ + kind: string; + /** Human-readable preset name */ + label?: string; + /** Preset slug (unique per kind per scope); the preset's path in the infra tree is [content_preset, kind, slug] */ + slug: string; + /** Infra Merkle store holding this preset's history (stamped by the versioned trigger) */ + storeId?: string; + /** Timestamp of last modification */ + updatedAt?: string; +} +/** Represents an update to a `ContentPreset`. Fields that are set will be updated. */ +export interface ContentPresetPatch { + /** Whether this preset is selectable at provision time */ + active?: boolean; + /** Infra store commit for the current definition (stamped by the versioned trigger on every write) */ + commitId?: string; + /** Timestamp of preset creation */ + createdAt?: string; + /** The seed document itself, in the shape the kind's seed function takes — the readily-cached head; history lives in the infra store */ + definition?: unknown; + /** Human-readable description of the preset */ + description?: string; + /** Unique preset identifier */ + id?: string; + /** What the definition seeds — the module option that resolves it (limit_defaults, trust_ladder, ...) */ + kind?: string; + /** Human-readable preset name */ + label?: string; + /** Preset slug (unique per kind per scope); the preset's path in the infra tree is [content_preset, kind, slug] */ + slug?: string; + /** Infra Merkle store holding this preset's history (stamped by the versioned trigger) */ + storeId?: string; + /** Timestamp of last modification */ + updatedAt?: string; +} +export interface CreateContentPresetInput { + clientMutationId?: string; + /** The `ContentPreset` to be created by this mutation. */ + contentPreset: ContentPresetInput; +} export interface CreateDbPresetInput { clientMutationId?: string; /** The `DbPreset` to be created by this mutation. */ @@ -356,6 +470,11 @@ export interface DbPresetPatch { /** Timestamp of last modification */ updatedAt?: string; } +export interface DeleteContentPresetInput { + clientMutationId?: string; + /** Unique preset identifier */ + id: string; +} export interface DeleteDbPresetInput { clientMutationId?: string; /** Unique preset identifier */ @@ -642,6 +761,15 @@ export interface PlatformInfraInsertNodeAtPathInput { root?: string; sId?: string; } +export interface PlatformInfraInsertNodesAtPathsInput { + clientMutationId?: string; + datas?: unknown[]; + kidsList?: unknown; + ktreeList?: unknown; + paths?: unknown; + root?: string; + sId?: string; +} /** A filter to be used against `PlatformInfraObject` object types. All fields are combined with a logical ‘and.’ */ export interface PlatformInfraObjectFilter { /** Checks for all expressions in this list. */ @@ -738,6 +866,17 @@ export interface PlatformInfraRefPatch { /** Store this ref belongs to */ storeId?: string; } +export interface PlatformInfraSetAndCommitInput { + clientMutationId?: string; + data?: unknown; + kids?: string[]; + ktree?: string[]; + message?: string; + path?: string[]; + refname?: string; + sId?: string; + storeId?: string; +} export interface PlatformInfraSetDataAtPathInput { clientMutationId?: string; data?: unknown; @@ -745,6 +884,14 @@ export interface PlatformInfraSetDataAtPathInput { root?: string; sId?: string; } +export interface PlatformInfraSetManyAndCommitInput { + clientMutationId?: string; + entries?: unknown; + message?: string; + refname?: string; + sId?: string; + storeId?: string; +} /** A filter to be used against `PlatformInfraStore` object types. All fields are combined with a logical ‘and.’ */ export interface PlatformInfraStoreFilter { /** Checks for all expressions in this list. */ @@ -937,6 +1084,13 @@ export interface ProvisionBucketInput { */ ownerId?: string; } +export interface UpdateContentPresetInput { + clientMutationId?: string; + /** An object where the defined keys will be set on the `ContentPreset` being updated. */ + contentPresetPatch: ContentPresetPatch; + /** Unique preset identifier */ + id: string; +} export interface UpdateDbPresetInput { clientMutationId?: string; /** An object where the defined keys will be set on the `DbPreset` being updated. */ @@ -1012,6 +1166,13 @@ export interface UpdatePlatformNamespaceInput { export interface MetaSchema { tables: MetaTable[]; } +/** A connection to a list of `ContentPreset` values. */ +export interface ContentPresetConnection { + edges: ContentPresetEdge[]; + nodes: ContentPreset[]; + pageInfo: PageInfo; + totalCount: number; +} /** A connection to a list of `DbPreset` values. */ export interface DbPresetConnection { edges: DbPresetEdge[]; @@ -1082,6 +1243,12 @@ export interface PlatformNamespaceConnection { pageInfo: PageInfo; totalCount: number; } +export interface CreateContentPresetPayload { + clientMutationId?: string | null; + /** The `ContentPreset` that was created by this mutation. */ + contentPreset?: ContentPreset | null; + contentPresetEdge?: ContentPresetEdge | null; +} export interface CreateDbPresetPayload { clientMutationId?: string | null; /** The `DbPreset` that was created by this mutation. */ @@ -1136,6 +1303,12 @@ export interface CreatePlatformNamespaceEventPayload { platformNamespaceEvent?: PlatformNamespaceEvent | null; platformNamespaceEventEdge?: PlatformNamespaceEventEdge | null; } +export interface DeleteContentPresetPayload { + clientMutationId?: string | null; + /** The `ContentPreset` that was deleted by this mutation. */ + contentPreset?: ContentPreset | null; + contentPresetEdge?: ContentPresetEdge | null; +} export interface DeleteDbPresetPayload { clientMutationId?: string | null; /** The `DbPreset` that was deleted by this mutation. */ @@ -1197,10 +1370,24 @@ export interface PlatformInfraInsertNodeAtPathPayload { clientMutationId?: string | null; result?: string | null; } +export interface PlatformInfraInsertNodesAtPathsPayload { + clientMutationId?: string | null; + result?: string | null; +} +export interface PlatformInfraSetAndCommitPayload { + clientMutationId?: string | null; + platformInfraCommitEdge?: PlatformInfraCommitEdge | null; + result?: PlatformInfraCommit | null; +} export interface PlatformInfraSetDataAtPathPayload { clientMutationId?: string | null; result?: string | null; } +export interface PlatformInfraSetManyAndCommitPayload { + clientMutationId?: string | null; + platformInfraCommitEdge?: PlatformInfraCommitEdge | null; + result?: PlatformInfraCommit | null; +} export interface ProvisionBucketPayload { /** The access type applied */ accessType: string; @@ -1215,6 +1402,12 @@ export interface ProvisionBucketPayload { /** Whether provisioning succeeded */ success: boolean; } +export interface UpdateContentPresetPayload { + clientMutationId?: string | null; + /** The `ContentPreset` that was updated by this mutation. */ + contentPreset?: ContentPreset | null; + contentPresetEdge?: ContentPresetEdge | null; +} export interface UpdateDbPresetPayload { clientMutationId?: string | null; /** The `DbPreset` that was updated by this mutation. */ @@ -1296,11 +1489,11 @@ export interface MetaTable { tableName: string; uniqueConstraints: MetaUniqueConstraint[]; } -/** A `DbPreset` edge in the connection. */ -export interface DbPresetEdge { +/** A `ContentPreset` edge in the connection. */ +export interface ContentPresetEdge { cursor?: string | null; - /** The `DbPreset` at the end of the edge. */ - node?: DbPreset | null; + /** The `ContentPreset` at the end of the edge. */ + node?: ContentPreset | null; } /** Information about pagination in a connection. */ export interface PageInfo { @@ -1313,6 +1506,12 @@ export interface PageInfo { /** When paginating backwards, the cursor to continue. */ startCursor?: string | null; } +/** A `DbPreset` edge in the connection. */ +export interface DbPresetEdge { + cursor?: string | null; + /** The `DbPreset` at the end of the edge. */ + node?: DbPreset | null; +} /** A `NamespaceEvent` edge in the connection. */ export interface NamespaceEventEdge { cursor?: string | null; diff --git a/sdk/constructive-react/src/infra/types.ts b/sdk/constructive-react/src/infra/types.ts index 9663f2af5d..2dd81bb7cc 100644 --- a/sdk/constructive-react/src/infra/types.ts +++ b/sdk/constructive-react/src/infra/types.ts @@ -3,6 +3,19 @@ * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ +export interface ContentPreset { + active: boolean | null; + commitId: string | null; + createdAt: string | null; + definition: unknown | null; + description: string | null; + id: string | null; + kind: string | null; + label: string | null; + slug: string | null; + storeId: string | null; + updatedAt: string | null; +} export interface DbPreset { active: boolean | null; commitId: string | null; diff --git a/sdk/constructive-react/src/modules/README.md b/sdk/constructive-react/src/modules/README.md index df958f0479..89d33f4a84 100644 --- a/sdk/constructive-react/src/modules/README.md +++ b/sdk/constructive-react/src/modules/README.md @@ -8,9 +8,9 @@ ## Overview -- **Tables:** 76 -- **Custom queries:** 2 -- **Custom mutations:** 10 +- **Tables:** 83 +- **Custom queries:** 0 +- **Custom mutations:** 3 **Generators:** ORM, React Query diff --git a/sdk/constructive-react/src/modules/hooks/README.md b/sdk/constructive-react/src/modules/hooks/README.md index d9c19b58b1..5110084f23 100644 --- a/sdk/constructive-react/src/modules/hooks/README.md +++ b/sdk/constructive-react/src/modules/hooks/README.md @@ -72,6 +72,11 @@ function App() { | `useCreateBlueprintTemplateMutation` | Mutation | A shareable, versioned schema recipe for the blueprint marketplace. Templates define arrays of secure_table_provision + relation_provision inputs that together describe a complete domain schema (e.g. e-commerce, telemedicine, habit tracker). Templates are never executed directly — they are copied into a blueprint first via copy_template_to_blueprint(). Can be private (owner-only) or public (marketplace-visible). | | `useUpdateBlueprintTemplateMutation` | Mutation | A shareable, versioned schema recipe for the blueprint marketplace. Templates define arrays of secure_table_provision + relation_provision inputs that together describe a complete domain schema (e.g. e-commerce, telemedicine, habit tracker). Templates are never executed directly — they are copied into a blueprint first via copy_template_to_blueprint(). Can be private (owner-only) or public (marketplace-visible). | | `useDeleteBlueprintTemplateMutation` | Mutation | A shareable, versioned schema recipe for the blueprint marketplace. Templates define arrays of secure_table_provision + relation_provision inputs that together describe a complete domain schema (e.g. e-commerce, telemedicine, habit tracker). Templates are never executed directly — they are copied into a blueprint first via copy_template_to_blueprint(). Can be private (owner-only) or public (marketplace-visible). | +| `useCapabilitiesModulesQuery` | Query | List all capabilitiesModules | +| `useCapabilitiesModuleQuery` | Query | Get one capabilitiesModule | +| `useCreateCapabilitiesModuleMutation` | Mutation | Create a capabilitiesModule | +| `useUpdateCapabilitiesModuleMutation` | Mutation | Update a capabilitiesModule | +| `useDeleteCapabilitiesModuleMutation` | Mutation | Delete a capabilitiesModule | | `useCatalogModulesQuery` | Query | List all catalogModules | | `useCatalogModuleQuery` | Query | Get one catalogModule | | `useCreateCatalogModuleMutation` | Mutation | Create a catalogModule | @@ -92,6 +97,11 @@ function App() { | `useCreateConnectedAccountsModuleMutation` | Mutation | Create a connectedAccountsModule | | `useUpdateConnectedAccountsModuleMutation` | Mutation | Update a connectedAccountsModule | | `useDeleteConnectedAccountsModuleMutation` | Mutation | Delete a connectedAccountsModule | +| `useContentPresetModulesQuery` | Query | List all contentPresetModules | +| `useContentPresetModuleQuery` | Query | Get one contentPresetModule | +| `useCreateContentPresetModuleMutation` | Mutation | Create a contentPresetModule | +| `useUpdateContentPresetModuleMutation` | Mutation | Update a contentPresetModule | +| `useDeleteContentPresetModuleMutation` | Mutation | Delete a contentPresetModule | | `useCryptoAddressesModulesQuery` | Query | List all cryptoAddressesModules | | `useCryptoAddressesModuleQuery` | Query | Get one cryptoAddressesModule | | `useCreateCryptoAddressesModuleMutation` | Mutation | Create a cryptoAddressesModule | @@ -102,6 +112,11 @@ function App() { | `useCreateCryptoAuthModuleMutation` | Mutation | Create a cryptoAuthModule | | `useUpdateCryptoAuthModuleMutation` | Mutation | Update a cryptoAuthModule | | `useDeleteCryptoAuthModuleMutation` | Mutation | Delete a cryptoAuthModule | +| `useDataCapabilitiesFieldsQuery` | Query | List all dataCapabilitiesFields | +| `useDataCapabilitiesFieldQuery` | Query | Get one dataCapabilitiesField | +| `useCreateDataCapabilitiesFieldMutation` | Mutation | Create a dataCapabilitiesField | +| `useUpdateDataCapabilitiesFieldMutation` | Mutation | Update a dataCapabilitiesField | +| `useDeleteDataCapabilitiesFieldMutation` | Mutation | Delete a dataCapabilitiesField | | `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. | @@ -152,13 +167,18 @@ function App() { | `useCreateDomainModuleMutation` | Mutation | Create a domainModule | | `useUpdateDomainModuleMutation` | Mutation | Update a domainModule | | `useDeleteDomainModuleMutation` | Mutation | Delete a domainModule | +| `useEmailSenderModulesQuery` | Query | List all emailSenderModules | +| `useEmailSenderModuleQuery` | Query | Get one emailSenderModule | +| `useCreateEmailSenderModuleMutation` | Mutation | Create a emailSenderModule | +| `useUpdateEmailSenderModuleMutation` | Mutation | Update a emailSenderModule | +| `useDeleteEmailSenderModuleMutation` | Mutation | Delete a emailSenderModule | | `useEmailsModulesQuery` | Query | List all emailsModules | | `useEmailsModuleQuery` | Query | Get one emailsModule | | `useCreateEmailsModuleMutation` | Mutation | Create a emailsModule | | `useUpdateEmailsModuleMutation` | Mutation | Update a emailsModule | | `useDeleteEmailsModuleMutation` | Mutation | Delete a emailsModule | | `useEntityTypeProvisionsQuery` | Query | Provisions a new membership entity type. Each INSERT creates an entity table, registers a membership type, - and installs the required modules (permissions, memberships, limits) plus optional modules (profiles, levels, invites). + and installs the required modules (capabilities, memberships, limits) plus optional modules (profiles, levels, invites). Uses provision_membership_table() internally. Graceful: duplicate (database_id, prefix) pairs are silently skipped via the unique constraint (use INSERT ... ON CONFLICT DO NOTHING). Policy behavior: by default the five entity-table RLS policies are applied (gated by is_visible). @@ -166,7 +186,7 @@ function App() { blueprint tables[] entries) to replace the defaults with your own; set skip_entity_policies=true as an escape hatch to apply zero policies. | | `useEntityTypeProvisionQuery` | Query | Provisions a new membership entity type. Each INSERT creates an entity table, registers a membership type, - and installs the required modules (permissions, memberships, limits) plus optional modules (profiles, levels, invites). + and installs the required modules (capabilities, memberships, limits) plus optional modules (profiles, levels, invites). Uses provision_membership_table() internally. Graceful: duplicate (database_id, prefix) pairs are silently skipped via the unique constraint (use INSERT ... ON CONFLICT DO NOTHING). Policy behavior: by default the five entity-table RLS policies are applied (gated by is_visible). @@ -174,7 +194,7 @@ function App() { blueprint tables[] entries) to replace the defaults with your own; set skip_entity_policies=true as an escape hatch to apply zero policies. | | `useCreateEntityTypeProvisionMutation` | Mutation | Provisions a new membership entity type. Each INSERT creates an entity table, registers a membership type, - and installs the required modules (permissions, memberships, limits) plus optional modules (profiles, levels, invites). + and installs the required modules (capabilities, memberships, limits) plus optional modules (profiles, levels, invites). Uses provision_membership_table() internally. Graceful: duplicate (database_id, prefix) pairs are silently skipped via the unique constraint (use INSERT ... ON CONFLICT DO NOTHING). Policy behavior: by default the five entity-table RLS policies are applied (gated by is_visible). @@ -182,7 +202,7 @@ function App() { blueprint tables[] entries) to replace the defaults with your own; set skip_entity_policies=true as an escape hatch to apply zero policies. | | `useUpdateEntityTypeProvisionMutation` | Mutation | Provisions a new membership entity type. Each INSERT creates an entity table, registers a membership type, - and installs the required modules (permissions, memberships, limits) plus optional modules (profiles, levels, invites). + and installs the required modules (capabilities, memberships, limits) plus optional modules (profiles, levels, invites). Uses provision_membership_table() internally. Graceful: duplicate (database_id, prefix) pairs are silently skipped via the unique constraint (use INSERT ... ON CONFLICT DO NOTHING). Policy behavior: by default the five entity-table RLS policies are applied (gated by is_visible). @@ -190,7 +210,7 @@ function App() { blueprint tables[] entries) to replace the defaults with your own; set skip_entity_policies=true as an escape hatch to apply zero policies. | | `useDeleteEntityTypeProvisionMutation` | Mutation | Provisions a new membership entity type. Each INSERT creates an entity table, registers a membership type, - and installs the required modules (permissions, memberships, limits) plus optional modules (profiles, levels, invites). + and installs the required modules (capabilities, memberships, limits) plus optional modules (profiles, levels, invites). Uses provision_membership_table() internally. Graceful: duplicate (database_id, prefix) pairs are silently skipped via the unique constraint (use INSERT ... ON CONFLICT DO NOTHING). Policy behavior: by default the five entity-table RLS policies are applied (gated by is_visible). @@ -202,6 +222,11 @@ function App() { | `useCreateEventsModuleMutation` | Mutation | Create a eventsModule | | `useUpdateEventsModuleMutation` | Mutation | Update a eventsModule | | `useDeleteEventsModuleMutation` | Mutation | Delete a eventsModule | +| `useFileRefFieldsQuery` | Query | List all fileRefFields | +| `useFileRefFieldQuery` | Query | Get one fileRefField | +| `useCreateFileRefFieldMutation` | Mutation | Create a fileRefField | +| `useUpdateFileRefFieldMutation` | Mutation | Update a fileRefField | +| `useDeleteFileRefFieldMutation` | Mutation | Delete a fileRefField | | `useFunctionDeploymentModulesQuery` | Query | List all functionDeploymentModules | | `useFunctionDeploymentModuleQuery` | Query | Get one functionDeploymentModule | | `useCreateFunctionDeploymentModuleMutation` | Mutation | Create a functionDeploymentModule | @@ -367,16 +392,41 @@ function App() { | `useCreateNotificationsModuleMutation` | Mutation | Create a notificationsModule | | `useUpdateNotificationsModuleMutation` | Mutation | Update a notificationsModule | | `useDeleteNotificationsModuleMutation` | Mutation | Delete a notificationsModule | +| `useOauthRequestsModulesQuery` | Query | Config row for the oauth_requests_module, which provisions the in-flight half of an SSO + sign-in: the OAuth authorization requests table (state + PKCE code_verifier) and the + pending identity links table (a verified identity parked under a single-use ticket), + both private, plus the five SECURITY DEFINER procedures that are their only surface. + Sibling of identity_providers_module (durable provider configuration) rather than part + of it: this is ephemeral, purged flow state with its own retention. | +| `useOauthRequestsModuleQuery` | Query | Config row for the oauth_requests_module, which provisions the in-flight half of an SSO + sign-in: the OAuth authorization requests table (state + PKCE code_verifier) and the + pending identity links table (a verified identity parked under a single-use ticket), + both private, plus the five SECURITY DEFINER procedures that are their only surface. + Sibling of identity_providers_module (durable provider configuration) rather than part + of it: this is ephemeral, purged flow state with its own retention. | +| `useCreateOauthRequestsModuleMutation` | Mutation | Config row for the oauth_requests_module, which provisions the in-flight half of an SSO + sign-in: the OAuth authorization requests table (state + PKCE code_verifier) and the + pending identity links table (a verified identity parked under a single-use ticket), + both private, plus the five SECURITY DEFINER procedures that are their only surface. + Sibling of identity_providers_module (durable provider configuration) rather than part + of it: this is ephemeral, purged flow state with its own retention. | +| `useUpdateOauthRequestsModuleMutation` | Mutation | Config row for the oauth_requests_module, which provisions the in-flight half of an SSO + sign-in: the OAuth authorization requests table (state + PKCE code_verifier) and the + pending identity links table (a verified identity parked under a single-use ticket), + both private, plus the five SECURITY DEFINER procedures that are their only surface. + Sibling of identity_providers_module (durable provider configuration) rather than part + of it: this is ephemeral, purged flow state with its own retention. | +| `useDeleteOauthRequestsModuleMutation` | Mutation | Config row for the oauth_requests_module, which provisions the in-flight half of an SSO + sign-in: the OAuth authorization requests table (state + PKCE code_verifier) and the + pending identity links table (a verified identity parked under a single-use ticket), + both private, plus the five SECURITY DEFINER procedures that are their only surface. + Sibling of identity_providers_module (durable provider configuration) rather than part + of it: this is ephemeral, purged flow state with its own retention. | | `usePagesModulesQuery` | Query | List all pagesModules | | `usePagesModuleQuery` | Query | Get one pagesModule | | `useCreatePagesModuleMutation` | Mutation | Create a pagesModule | | `useUpdatePagesModuleMutation` | Mutation | Update a pagesModule | | `useDeletePagesModuleMutation` | Mutation | Delete a pagesModule | -| `usePermissionsModulesQuery` | Query | List all permissionsModules | -| `usePermissionsModuleQuery` | Query | Get one permissionsModule | -| `useCreatePermissionsModuleMutation` | Mutation | Create a permissionsModule | -| `useUpdatePermissionsModuleMutation` | Mutation | Update a permissionsModule | -| `useDeletePermissionsModuleMutation` | Mutation | Delete a permissionsModule | | `usePhoneNumbersModulesQuery` | Query | List all phoneNumbersModules | | `usePhoneNumbersModuleQuery` | Query | Get one phoneNumbersModule | | `useCreatePhoneNumbersModuleMutation` | Mutation | Create a phoneNumbersModule | @@ -467,6 +517,11 @@ function App() { | `useCreateRouteModuleMutation` | Mutation | Create a routeModule | | `useUpdateRouteModuleMutation` | Mutation | Update a routeModule | | `useDeleteRouteModuleMutation` | Mutation | Delete a routeModule | +| `useScopeTypesModulesQuery` | Query | List all scopeTypesModules | +| `useScopeTypesModuleQuery` | Query | Get one scopeTypesModule | +| `useCreateScopeTypesModuleMutation` | Mutation | Create a scopeTypesModule | +| `useUpdateScopeTypesModuleMutation` | Mutation | Update a scopeTypesModule | +| `useDeleteScopeTypesModuleMutation` | Mutation | Delete a scopeTypesModule | | `useSecureTableProvisionsQuery` | Query | Provisions security, fields, grants, and policies onto a table. Each row can independently: (1) create fields via nodes[] array (supporting multiple Data* modules per row), (2) grant privileges via grants[] array (supporting per-role privilege targeting), (3) create RLS policies via policies[] array (supporting multiple Authz* policies per row). Multiple rows can target the same table to compose different concerns. All three concerns are optional and independent. | | `useSecureTableProvisionQuery` | Query | Provisions security, fields, grants, and policies onto a table. Each row can independently: (1) create fields via nodes[] array (supporting multiple Data* modules per row), (2) grant privileges via grants[] array (supporting per-role privilege targeting), (3) create RLS policies via policies[] array (supporting multiple Authz* policies per row). Multiple rows can target the same table to compose different concerns. All three concerns are optional and independent. | | `useCreateSecureTableProvisionMutation` | Mutation | Provisions security, fields, grants, and policies onto a table. Each row can independently: (1) create fields via nodes[] array (supporting multiple Data* modules per row), (2) grant privileges via grants[] array (supporting per-role privilege targeting), (3) create RLS policies via policies[] array (supporting multiple Authz* policies per row). Multiple rows can target the same table to compose different concerns. All three concerns are optional and independent. | @@ -527,6 +582,11 @@ function App() { | `useCreateUserSettingsModuleMutation` | Mutation | Create a userSettingsModule | | `useUpdateUserSettingsModuleMutation` | Mutation | Update a userSettingsModule | | `useDeleteUserSettingsModuleMutation` | Mutation | Delete a userSettingsModule | +| `useUserSettingsSecurityModulesQuery` | Query | List all userSettingsSecurityModules | +| `useUserSettingsSecurityModuleQuery` | Query | Get one userSettingsSecurityModule | +| `useCreateUserSettingsSecurityModuleMutation` | Mutation | Create a userSettingsSecurityModule | +| `useUpdateUserSettingsSecurityModuleMutation` | Mutation | Update a userSettingsSecurityModule | +| `useDeleteUserSettingsSecurityModuleMutation` | Mutation | Delete a userSettingsSecurityModule | | `useUserStateModulesQuery` | Query | List all userStateModules | | `useUserStateModuleQuery` | Query | Get one userStateModule | | `useCreateUserStateModuleMutation` | Mutation | Create a userStateModule | @@ -552,21 +612,12 @@ function App() { | `useCreateWebhookModuleMutation` | Mutation | Create a webhookModule | | `useUpdateWebhookModuleMutation` | Mutation | Update a webhookModule | | `useDeleteWebhookModuleMutation` | Mutation | Delete a webhookModule | -| `useResolveBlueprintFieldQuery` | Query | 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. | -| `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. | | `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 function_module is installed, 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. | | `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. | | `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, and lifecycle settings. | -| `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. | -| `useProvisionFullTextSearchMutation` | Mutation | 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. | -| `useProvisionIndexMutation` | Mutation | 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. | -| `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). | -| `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. | -| `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). | -| `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. | ## Table Hooks @@ -575,20 +626,20 @@ and lifecycle settings. | ```typescript // List all agentModules const { data, isLoading } = useAgentModulesQuery({ - selection: { fields: { agentTableId: true, agentTableName: true, apiName: true, databaseId: true, defaultPermissions: true, entityField: true, entityTableId: true, hasAgents: true, hasPlans: true, hasResources: true, id: true, messageTableId: true, messageTableName: true, personaTableId: true, personaTableName: true, planTableId: true, planTableName: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, promptsTableId: true, promptsTableName: true, provisions: true, publicSchemaName: true, resourceTableId: true, resourceTableName: true, resources: true, schemaId: true, scope: true, shared: true, taskTableId: true, taskTableName: true, threadTableId: true, threadTableName: true } }, + selection: { fields: { agentTableId: true, agentTableName: true, apiName: true, databaseId: true, defaultCapabilities: true, entityField: true, entityTableId: true, hasAgents: true, hasPlans: true, hasResources: true, id: true, messageTableId: true, messageTableName: true, personaTableId: true, personaTableName: true, planTableId: true, planTableName: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, promptsTableId: true, promptsTableName: true, provisions: true, publicSchemaName: true, resourceTableId: true, resourceTableName: true, resources: true, schemaId: true, scope: true, shared: true, taskTableId: true, taskTableName: true, threadTableId: true, threadTableName: true } }, }); // Get one agentModule const { data: item } = useAgentModuleQuery({ id: '', - selection: { fields: { agentTableId: true, agentTableName: true, apiName: true, databaseId: true, defaultPermissions: true, entityField: true, entityTableId: true, hasAgents: true, hasPlans: true, hasResources: true, id: true, messageTableId: true, messageTableName: true, personaTableId: true, personaTableName: true, planTableId: true, planTableName: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, promptsTableId: true, promptsTableName: true, provisions: true, publicSchemaName: true, resourceTableId: true, resourceTableName: true, resources: true, schemaId: true, scope: true, shared: true, taskTableId: true, taskTableName: true, threadTableId: true, threadTableName: true } }, + selection: { fields: { agentTableId: true, agentTableName: true, apiName: true, databaseId: true, defaultCapabilities: true, entityField: true, entityTableId: true, hasAgents: true, hasPlans: true, hasResources: true, id: true, messageTableId: true, messageTableName: true, personaTableId: true, personaTableName: true, planTableId: true, planTableName: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, promptsTableId: true, promptsTableName: true, provisions: true, publicSchemaName: true, resourceTableId: true, resourceTableName: true, resources: true, schemaId: true, scope: true, shared: true, taskTableId: true, taskTableName: true, threadTableId: true, threadTableName: true } }, }); // Create a agentModule const { mutate: create } = useCreateAgentModuleMutation({ selection: { fields: { id: true } }, }); -create({ agentTableId: '', agentTableName: '', apiName: '', databaseId: '', defaultPermissions: '', entityField: '', entityTableId: '', hasAgents: '', hasPlans: '', hasResources: '', messageTableId: '', messageTableName: '', personaTableId: '', personaTableName: '', planTableId: '', planTableName: '', policies: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', promptsTableId: '', promptsTableName: '', provisions: '', publicSchemaName: '', resourceTableId: '', resourceTableName: '', resources: '', schemaId: '', scope: '', shared: '', taskTableId: '', taskTableName: '', threadTableId: '', threadTableName: '' }); +create({ agentTableId: '', agentTableName: '', apiName: '', databaseId: '', defaultCapabilities: '', entityField: '', entityTableId: '', hasAgents: '', hasPlans: '', hasResources: '', messageTableId: '', messageTableName: '', personaTableId: '', personaTableName: '', planTableId: '', planTableName: '', policies: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', promptsTableId: '', promptsTableName: '', provisions: '', publicSchemaName: '', resourceTableId: '', resourceTableName: '', resources: '', schemaId: '', scope: '', shared: '', taskTableId: '', taskTableName: '', threadTableId: '', threadTableName: '' }); ``` ### ApiSurfaceModule @@ -596,20 +647,20 @@ create({ agentTableId: '', agentTableName: '', apiName: '' ```typescript // List all apiSurfaceModules const { data, isLoading } = useApiSurfaceModulesQuery({ - selection: { fields: { apiName: true, apiSchemasTableId: true, apiSchemasTableName: true, apiSettingsTableId: true, apiSettingsTableName: true, apisTableId: true, apisTableName: true, catalogModuleId: true, corsSettingsTableId: true, corsSettingsTableName: true, databaseId: true, defaultPermissions: true, entityField: true, entityTableId: true, id: true, policies: true, prefix: true, privateApiName: true, provisions: true, publicSchemaName: true, schemaId: true, scope: true } }, + selection: { fields: { apiName: true, apiSchemasTableId: true, apiSchemasTableName: true, apiSettingsTableId: true, apiSettingsTableName: true, apisTableId: true, apisTableName: true, catalogModuleId: true, corsSettingsTableId: true, corsSettingsTableName: true, databaseId: true, defaultCapabilities: true, entityField: true, entityTableId: true, id: true, policies: true, prefix: true, privateApiName: true, provisions: true, publicSchemaName: true, schemaId: true, scope: true } }, }); // Get one apiSurfaceModule const { data: item } = useApiSurfaceModuleQuery({ id: '', - selection: { fields: { apiName: true, apiSchemasTableId: true, apiSchemasTableName: true, apiSettingsTableId: true, apiSettingsTableName: true, apisTableId: true, apisTableName: true, catalogModuleId: true, corsSettingsTableId: true, corsSettingsTableName: true, databaseId: true, defaultPermissions: true, entityField: true, entityTableId: true, id: true, policies: true, prefix: true, privateApiName: true, provisions: true, publicSchemaName: true, schemaId: true, scope: true } }, + selection: { fields: { apiName: true, apiSchemasTableId: true, apiSchemasTableName: true, apiSettingsTableId: true, apiSettingsTableName: true, apisTableId: true, apisTableName: true, catalogModuleId: true, corsSettingsTableId: true, corsSettingsTableName: true, databaseId: true, defaultCapabilities: true, entityField: true, entityTableId: true, id: true, policies: true, prefix: true, privateApiName: true, provisions: true, publicSchemaName: true, schemaId: true, scope: true } }, }); // Create a apiSurfaceModule const { mutate: create } = useCreateApiSurfaceModuleMutation({ selection: { fields: { id: true } }, }); -create({ apiName: '', apiSchemasTableId: '', apiSchemasTableName: '', apiSettingsTableId: '', apiSettingsTableName: '', apisTableId: '', apisTableName: '', catalogModuleId: '', corsSettingsTableId: '', corsSettingsTableName: '', databaseId: '', defaultPermissions: '', entityField: '', entityTableId: '', policies: '', prefix: '', privateApiName: '', provisions: '', publicSchemaName: '', schemaId: '', scope: '' }); +create({ apiName: '', apiSchemasTableId: '', apiSchemasTableName: '', apiSettingsTableId: '', apiSettingsTableName: '', apisTableId: '', apisTableName: '', catalogModuleId: '', corsSettingsTableId: '', corsSettingsTableName: '', databaseId: '', defaultCapabilities: '', entityField: '', entityTableId: '', policies: '', prefix: '', privateApiName: '', provisions: '', publicSchemaName: '', schemaId: '', scope: '' }); ``` ### AppModule @@ -617,20 +668,20 @@ create({ apiName: '', apiSchemasTableId: '', apiSchemasTableName: ```typescript // List all appModules const { data, isLoading } = useAppModulesQuery({ - selection: { fields: { apiName: true, appComponentsTableId: true, appComponentsTableName: true, appsTableId: true, appsTableName: true, catalogModuleId: true, databaseId: true, defaultPermissions: true, entityField: true, entityTableId: true, id: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provisions: true, publicSchemaName: true, schemaId: true, scope: true } }, + selection: { fields: { apiName: true, appComponentsTableId: true, appComponentsTableName: true, appsTableId: true, appsTableName: true, catalogModuleId: true, databaseId: true, defaultCapabilities: true, entityField: true, entityTableId: true, id: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provisions: true, publicSchemaName: true, schemaId: true, scope: true } }, }); // Get one appModule const { data: item } = useAppModuleQuery({ id: '', - selection: { fields: { apiName: true, appComponentsTableId: true, appComponentsTableName: true, appsTableId: true, appsTableName: true, catalogModuleId: true, databaseId: true, defaultPermissions: true, entityField: true, entityTableId: true, id: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provisions: true, publicSchemaName: true, schemaId: true, scope: true } }, + selection: { fields: { apiName: true, appComponentsTableId: true, appComponentsTableName: true, appsTableId: true, appsTableName: true, catalogModuleId: true, databaseId: true, defaultCapabilities: true, entityField: true, entityTableId: true, id: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provisions: true, publicSchemaName: true, schemaId: true, scope: true } }, }); // Create a appModule const { mutate: create } = useCreateAppModuleMutation({ selection: { fields: { id: true } }, }); -create({ apiName: '', appComponentsTableId: '', appComponentsTableName: '', appsTableId: '', appsTableName: '', catalogModuleId: '', databaseId: '', defaultPermissions: '', entityField: '', entityTableId: '', policies: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', provisions: '', publicSchemaName: '', schemaId: '', scope: '' }); +create({ apiName: '', appComponentsTableId: '', appComponentsTableName: '', appsTableId: '', appsTableName: '', catalogModuleId: '', databaseId: '', defaultCapabilities: '', entityField: '', entityTableId: '', policies: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', provisions: '', publicSchemaName: '', schemaId: '', scope: '' }); ``` ### BillingModule @@ -638,20 +689,20 @@ create({ apiName: '', appComponentsTableId: '', appComponentsTable ```typescript // List all billingModules const { data, isLoading } = useBillingModulesQuery({ - selection: { fields: { apiName: true, balancesTableId: true, balancesTableName: true, databaseId: true, defaultMeterCatalog: true, defaultPermissions: true, id: true, ledgerTableId: true, ledgerTableName: true, meterCreditsTableId: true, meterCreditsTableName: true, meterDefaultsTableId: true, meterDefaultsTableName: true, meterSourcesTableId: true, meterSourcesTableName: true, metersTableId: true, metersTableName: true, planSubscriptionsTableId: true, planSubscriptionsTableName: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, publicSchemaName: true, recordUsageFunction: true, rollupUsageSummaryFunction: true, schemaId: true, sweepExpiredSubscriptionsFunction: true } }, + selection: { fields: { apiName: true, balancesTableId: true, balancesTableName: true, databaseId: true, defaultCapabilities: true, defaultMeterCatalog: true, id: true, ledgerTableId: true, ledgerTableName: true, meterCreditsTableId: true, meterCreditsTableName: true, meterDefaultsTableId: true, meterDefaultsTableName: true, meterSourcesTableId: true, meterSourcesTableName: true, metersTableId: true, metersTableName: true, planSubscriptionsTableId: true, planSubscriptionsTableName: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, publicSchemaName: true, recordUsageFunction: true, rollupUsageSummaryFunction: true, schemaId: true, sweepExpiredSubscriptionsFunction: true } }, }); // Get one billingModule const { data: item } = useBillingModuleQuery({ id: '', - selection: { fields: { apiName: true, balancesTableId: true, balancesTableName: true, databaseId: true, defaultMeterCatalog: true, defaultPermissions: true, id: true, ledgerTableId: true, ledgerTableName: true, meterCreditsTableId: true, meterCreditsTableName: true, meterDefaultsTableId: true, meterDefaultsTableName: true, meterSourcesTableId: true, meterSourcesTableName: true, metersTableId: true, metersTableName: true, planSubscriptionsTableId: true, planSubscriptionsTableName: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, publicSchemaName: true, recordUsageFunction: true, rollupUsageSummaryFunction: true, schemaId: true, sweepExpiredSubscriptionsFunction: true } }, + selection: { fields: { apiName: true, balancesTableId: true, balancesTableName: true, databaseId: true, defaultCapabilities: true, defaultMeterCatalog: true, id: true, ledgerTableId: true, ledgerTableName: true, meterCreditsTableId: true, meterCreditsTableName: true, meterDefaultsTableId: true, meterDefaultsTableName: true, meterSourcesTableId: true, meterSourcesTableName: true, metersTableId: true, metersTableName: true, planSubscriptionsTableId: true, planSubscriptionsTableName: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, publicSchemaName: true, recordUsageFunction: true, rollupUsageSummaryFunction: true, schemaId: true, sweepExpiredSubscriptionsFunction: true } }, }); // Create a billingModule const { mutate: create } = useCreateBillingModuleMutation({ selection: { fields: { id: true } }, }); -create({ apiName: '', balancesTableId: '', balancesTableName: '', databaseId: '', defaultMeterCatalog: '', defaultPermissions: '', ledgerTableId: '', ledgerTableName: '', meterCreditsTableId: '', meterCreditsTableName: '', meterDefaultsTableId: '', meterDefaultsTableName: '', meterSourcesTableId: '', meterSourcesTableName: '', metersTableId: '', metersTableName: '', planSubscriptionsTableId: '', planSubscriptionsTableName: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', publicSchemaName: '', recordUsageFunction: '', rollupUsageSummaryFunction: '', schemaId: '', sweepExpiredSubscriptionsFunction: '' }); +create({ apiName: '', balancesTableId: '', balancesTableName: '', databaseId: '', defaultCapabilities: '', defaultMeterCatalog: '', ledgerTableId: '', ledgerTableName: '', meterCreditsTableId: '', meterCreditsTableName: '', meterDefaultsTableId: '', meterDefaultsTableName: '', meterSourcesTableId: '', meterSourcesTableName: '', metersTableId: '', metersTableName: '', planSubscriptionsTableId: '', planSubscriptionsTableName: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', publicSchemaName: '', recordUsageFunction: '', rollupUsageSummaryFunction: '', schemaId: '', sweepExpiredSubscriptionsFunction: '' }); ``` ### BillingProviderModule @@ -659,20 +710,20 @@ create({ apiName: '', balancesTableId: '', balancesTableName: '', - selection: { fields: { apiName: true, billingCustomersTableId: true, billingCustomersTableName: true, billingPricesTableId: true, billingPricesTableName: true, billingProductsTableId: true, billingProductsTableName: true, billingSubscriptionsTableId: true, billingSubscriptionsTableName: true, billingWebhookEventsTableId: true, billingWebhookEventsTableName: true, databaseId: true, id: true, prefix: true, pricesTableId: true, privateApiName: true, privateSchemaId: true, processBillingEventFunction: true, productsTableId: true, provider: true, schemaId: true, subscriptionsTableId: true } }, + selection: { fields: { apiName: true, billingCustomersTableId: true, billingCustomersTableName: true, billingInvoicesTableId: true, billingInvoicesTableName: true, billingPricesTableId: true, billingPricesTableName: true, billingProductsTableId: true, billingProductsTableName: true, billingRefundsTableId: true, billingRefundsTableName: true, billingSubscriptionsTableId: true, billingSubscriptionsTableName: true, billingWebhookEventsTableId: true, billingWebhookEventsTableName: true, databaseId: true, id: true, listPendingUsageSyncFunction: true, markUsageSyncedFunction: true, prefix: true, pricesTableId: true, privateApiName: true, privateSchemaId: true, processBillingEventFunction: true, productsTableId: true, provider: true, recordRefundFunction: true, schemaId: true, subscriptionsTableId: true, upsertInvoiceFunction: true } }, }); // Create a billingProviderModule const { mutate: create } = useCreateBillingProviderModuleMutation({ selection: { fields: { id: true } }, }); -create({ apiName: '', billingCustomersTableId: '', billingCustomersTableName: '', billingPricesTableId: '', billingPricesTableName: '', billingProductsTableId: '', billingProductsTableName: '', billingSubscriptionsTableId: '', billingSubscriptionsTableName: '', billingWebhookEventsTableId: '', billingWebhookEventsTableName: '', databaseId: '', prefix: '', pricesTableId: '', privateApiName: '', privateSchemaId: '', processBillingEventFunction: '', productsTableId: '', provider: '', schemaId: '', subscriptionsTableId: '' }); +create({ apiName: '', billingCustomersTableId: '', billingCustomersTableName: '', billingInvoicesTableId: '', billingInvoicesTableName: '', billingPricesTableId: '', billingPricesTableName: '', billingProductsTableId: '', billingProductsTableName: '', billingRefundsTableId: '', billingRefundsTableName: '', billingSubscriptionsTableId: '', billingSubscriptionsTableName: '', billingWebhookEventsTableId: '', billingWebhookEventsTableName: '', databaseId: '', listPendingUsageSyncFunction: '', markUsageSyncedFunction: '', prefix: '', pricesTableId: '', privateApiName: '', privateSchemaId: '', processBillingEventFunction: '', productsTableId: '', provider: '', recordRefundFunction: '', schemaId: '', subscriptionsTableId: '', upsertInvoiceFunction: '' }); ``` ### Blueprint @@ -738,25 +789,46 @@ const { mutate: create } = useCreateBlueprintTemplateMutation({ create({ categories: '', complexity: '', copyCount: '', definition: '', definitionHash: '', definitionSchemaVersion: '', description: '', displayName: '', forkCount: '', forkedFromId: '', name: '', ownerId: '', source: '', tableHashes: '', tags: '', version: '', visibility: '' }); ``` +### CapabilitiesModule + +```typescript +// List all capabilitiesModules +const { data, isLoading } = useCapabilitiesModulesQuery({ + selection: { fields: { actorTableId: true, apiName: true, bitlen: true, databaseId: true, defaultTableId: true, defaultTableName: true, entityField: true, entityTableId: true, getByMask: true, getMask: true, getMaskByName: true, getPaddedMask: true, id: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, publicSchemaName: true, schemaId: true, scope: true, tableId: true, tableName: true } }, +}); + +// Get one capabilitiesModule +const { data: item } = useCapabilitiesModuleQuery({ + id: '', + selection: { fields: { actorTableId: true, apiName: true, bitlen: true, databaseId: true, defaultTableId: true, defaultTableName: true, entityField: true, entityTableId: true, getByMask: true, getMask: true, getMaskByName: true, getPaddedMask: true, id: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, publicSchemaName: true, schemaId: true, scope: true, tableId: true, tableName: true } }, +}); + +// Create a capabilitiesModule +const { mutate: create } = useCreateCapabilitiesModuleMutation({ + selection: { fields: { id: true } }, +}); +create({ actorTableId: '', apiName: '', bitlen: '', databaseId: '', defaultTableId: '', defaultTableName: '', entityField: '', entityTableId: '', getByMask: '', getMask: '', getMaskByName: '', getPaddedMask: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', publicSchemaName: '', schemaId: '', scope: '', tableId: '', tableName: '' }); +``` + ### CatalogModule ```typescript // List all catalogModules const { data, isLoading } = useCatalogModulesQuery({ - selection: { fields: { apiName: true, apisTableId: true, apisTableName: true, appsTableId: true, appsTableName: true, bucketsTableId: true, bucketsTableName: true, databaseId: true, defaultPermissions: true, domainsTableId: true, domainsTableName: true, entityTableId: true, functionsTableId: true, functionsTableName: true, id: true, namespacesTableId: true, namespacesTableName: true, policies: true, privateApiName: true, provisions: true, publicSchemaName: true, resourceDefinitionsTableId: true, resourceDefinitionsTableName: true, resourceInstallationsTableId: true, resourceInstallationsTableName: true, resourcesTableId: true, resourcesTableName: true, schemaId: true, scope: true, sitesAppLinksTableId: true, sitesAppLinksTableName: true, sitesDeepLinksTableId: true, sitesDeepLinksTableName: true, sitesErrorPagesTableId: true, sitesErrorPagesTableName: true, sitesTableId: true, sitesTableName: true, sitesWebConfigTableId: true, sitesWebConfigTableName: true } }, + selection: { fields: { apiName: true, apisTableId: true, apisTableName: true, appsTableId: true, appsTableName: true, bindingsTableId: true, bindingsTableName: true, bucketsTableId: true, bucketsTableName: true, databaseId: true, defaultCapabilities: true, domainsTableId: true, domainsTableName: true, entityTableId: true, functionsTableId: true, functionsTableName: true, id: true, namespacesTableId: true, namespacesTableName: true, policies: true, privateApiName: true, provisions: true, publicSchemaName: true, resourceDefinitionsTableId: true, resourceDefinitionsTableName: true, resourceInstallationsTableId: true, resourceInstallationsTableName: true, resourcesTableId: true, resourcesTableName: true, schemaId: true, scope: true, sitesAppLinksTableId: true, sitesAppLinksTableName: true, sitesDeepLinksTableId: true, sitesDeepLinksTableName: true, sitesErrorPagesTableId: true, sitesErrorPagesTableName: true, sitesTableId: true, sitesTableName: true, sitesWebConfigTableId: true, sitesWebConfigTableName: true } }, }); // Get one catalogModule const { data: item } = useCatalogModuleQuery({ id: '', - selection: { fields: { apiName: true, apisTableId: true, apisTableName: true, appsTableId: true, appsTableName: true, bucketsTableId: true, bucketsTableName: true, databaseId: true, defaultPermissions: true, domainsTableId: true, domainsTableName: true, entityTableId: true, functionsTableId: true, functionsTableName: true, id: true, namespacesTableId: true, namespacesTableName: true, policies: true, privateApiName: true, provisions: true, publicSchemaName: true, resourceDefinitionsTableId: true, resourceDefinitionsTableName: true, resourceInstallationsTableId: true, resourceInstallationsTableName: true, resourcesTableId: true, resourcesTableName: true, schemaId: true, scope: true, sitesAppLinksTableId: true, sitesAppLinksTableName: true, sitesDeepLinksTableId: true, sitesDeepLinksTableName: true, sitesErrorPagesTableId: true, sitesErrorPagesTableName: true, sitesTableId: true, sitesTableName: true, sitesWebConfigTableId: true, sitesWebConfigTableName: true } }, + selection: { fields: { apiName: true, apisTableId: true, apisTableName: true, appsTableId: true, appsTableName: true, bindingsTableId: true, bindingsTableName: true, bucketsTableId: true, bucketsTableName: true, databaseId: true, defaultCapabilities: true, domainsTableId: true, domainsTableName: true, entityTableId: true, functionsTableId: true, functionsTableName: true, id: true, namespacesTableId: true, namespacesTableName: true, policies: true, privateApiName: true, provisions: true, publicSchemaName: true, resourceDefinitionsTableId: true, resourceDefinitionsTableName: true, resourceInstallationsTableId: true, resourceInstallationsTableName: true, resourcesTableId: true, resourcesTableName: true, schemaId: true, scope: true, sitesAppLinksTableId: true, sitesAppLinksTableName: true, sitesDeepLinksTableId: true, sitesDeepLinksTableName: true, sitesErrorPagesTableId: true, sitesErrorPagesTableName: true, sitesTableId: true, sitesTableName: true, sitesWebConfigTableId: true, sitesWebConfigTableName: true } }, }); // Create a catalogModule const { mutate: create } = useCreateCatalogModuleMutation({ selection: { fields: { id: true } }, }); -create({ apiName: '', apisTableId: '', apisTableName: '', appsTableId: '', appsTableName: '', bucketsTableId: '', bucketsTableName: '', databaseId: '', defaultPermissions: '', domainsTableId: '', domainsTableName: '', entityTableId: '', functionsTableId: '', functionsTableName: '', namespacesTableId: '', namespacesTableName: '', policies: '', privateApiName: '', provisions: '', publicSchemaName: '', resourceDefinitionsTableId: '', resourceDefinitionsTableName: '', resourceInstallationsTableId: '', resourceInstallationsTableName: '', resourcesTableId: '', resourcesTableName: '', schemaId: '', scope: '', sitesAppLinksTableId: '', sitesAppLinksTableName: '', sitesDeepLinksTableId: '', sitesDeepLinksTableName: '', sitesErrorPagesTableId: '', sitesErrorPagesTableName: '', sitesTableId: '', sitesTableName: '', sitesWebConfigTableId: '', sitesWebConfigTableName: '' }); +create({ apiName: '', apisTableId: '', apisTableName: '', appsTableId: '', appsTableName: '', bindingsTableId: '', bindingsTableName: '', bucketsTableId: '', bucketsTableName: '', databaseId: '', defaultCapabilities: '', domainsTableId: '', domainsTableName: '', entityTableId: '', functionsTableId: '', functionsTableName: '', namespacesTableId: '', namespacesTableName: '', policies: '', privateApiName: '', provisions: '', publicSchemaName: '', resourceDefinitionsTableId: '', resourceDefinitionsTableName: '', resourceInstallationsTableId: '', resourceInstallationsTableName: '', resourcesTableId: '', resourcesTableName: '', schemaId: '', scope: '', sitesAppLinksTableId: '', sitesAppLinksTableName: '', sitesDeepLinksTableId: '', sitesDeepLinksTableName: '', sitesErrorPagesTableId: '', sitesErrorPagesTableName: '', sitesTableId: '', sitesTableName: '', sitesWebConfigTableId: '', sitesWebConfigTableName: '' }); ``` ### ComputeLogModule @@ -822,6 +894,27 @@ const { mutate: create } = useCreateConnectedAccountsModuleMutation({ create({ apiName: '', databaseId: '', ownerTableId: '', privateApiName: '', privateSchemaId: '', schemaId: '', tableId: '', tableName: '' }); ``` +### ContentPresetModule + +```typescript +// List all contentPresetModules +const { data, isLoading } = useContentPresetModulesQuery({ + selection: { fields: { apiName: true, contentPresetsTableId: true, createdAt: true, databaseId: true, entityTableId: true, id: true, merkleStoreModuleId: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provisions: true, publicSchemaId: true, publicSchemaName: true, scope: true, storeName: true } }, +}); + +// Get one contentPresetModule +const { data: item } = useContentPresetModuleQuery({ + id: '', + selection: { fields: { apiName: true, contentPresetsTableId: true, createdAt: true, databaseId: true, entityTableId: true, id: true, merkleStoreModuleId: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provisions: true, publicSchemaId: true, publicSchemaName: true, scope: true, storeName: true } }, +}); + +// Create a contentPresetModule +const { mutate: create } = useCreateContentPresetModuleMutation({ + selection: { fields: { id: true } }, +}); +create({ apiName: '', contentPresetsTableId: '', databaseId: '', entityTableId: '', merkleStoreModuleId: '', policies: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', provisions: '', publicSchemaId: '', publicSchemaName: '', scope: '', storeName: '' }); +``` + ### CryptoAddressesModule ```typescript @@ -864,6 +957,27 @@ const { mutate: create } = useCreateCryptoAuthModuleMutation({ create({ addressesTableId: '', cryptoNetwork: '', databaseId: '', schemaId: '', secretsTableId: '', sessionCredentialsTableId: '', sessionsTableId: '', signInRecordFailure: '', signInRequestChallenge: '', signInWithChallenge: '', signUpWithKey: '', userField: '', usersTableId: '' }); ``` +### DataCapabilitiesField + +```typescript +// List all dataCapabilitiesFields +const { data, isLoading } = useDataCapabilitiesFieldsQuery({ + selection: { fields: { capabilitiesModuleId: true, databaseId: true, fieldId: true, fromFieldId: true, id: true, mappingFieldId: true, mappingKeyFieldId: true, mappingTableId: true, mode: true, subsetGuard: true, tableId: true } }, +}); + +// Get one dataCapabilitiesField +const { data: item } = useDataCapabilitiesFieldQuery({ + id: '', + selection: { fields: { capabilitiesModuleId: true, databaseId: true, fieldId: true, fromFieldId: true, id: true, mappingFieldId: true, mappingKeyFieldId: true, mappingTableId: true, mode: true, subsetGuard: true, tableId: true } }, +}); + +// Create a dataCapabilitiesField +const { mutate: create } = useCreateDataCapabilitiesFieldMutation({ + selection: { fields: { id: true } }, +}); +create({ capabilitiesModuleId: '', databaseId: '', fieldId: '', fromFieldId: '', mappingFieldId: '', mappingKeyFieldId: '', mappingTableId: '', mode: '', subsetGuard: '', tableId: '' }); +``` + ### DatabaseProvisionModule ```typescript @@ -890,20 +1004,20 @@ create({ async: '', bootstrapError: '', bootstrapStatus: '', - selection: { fields: { apiName: true, databaseId: true, databaseSettingsTableId: true, databaseSettingsTableName: true, defaultPermissions: true, entityField: true, entityTableId: true, id: true, policies: true, prefix: true, privateApiName: true, provisions: true, pubkeySettingsTableId: true, pubkeySettingsTableName: true, publicSchemaName: true, rlsSettingsTableId: true, rlsSettingsTableName: true, schemaId: true, scope: true, webauthnSettingsTableId: true, webauthnSettingsTableName: true } }, + selection: { fields: { apiName: true, databaseId: true, databaseSettingsTableId: true, databaseSettingsTableName: true, defaultCapabilities: true, entityField: true, entityTableId: true, id: true, policies: true, prefix: true, privateApiName: true, provisions: true, pubkeySettingsTableId: true, pubkeySettingsTableName: true, publicSchemaName: true, rlsSettingsTableId: true, rlsSettingsTableName: true, schemaId: true, scope: true, webauthnSettingsTableId: true, webauthnSettingsTableName: true } }, }); // Create a databaseSettingsModule const { mutate: create } = useCreateDatabaseSettingsModuleMutation({ selection: { fields: { id: true } }, }); -create({ apiName: '', databaseId: '', databaseSettingsTableId: '', databaseSettingsTableName: '', defaultPermissions: '', entityField: '', entityTableId: '', policies: '', prefix: '', privateApiName: '', provisions: '', pubkeySettingsTableId: '', pubkeySettingsTableName: '', publicSchemaName: '', rlsSettingsTableId: '', rlsSettingsTableName: '', schemaId: '', scope: '', webauthnSettingsTableId: '', webauthnSettingsTableName: '' }); +create({ apiName: '', databaseId: '', databaseSettingsTableId: '', databaseSettingsTableName: '', defaultCapabilities: '', entityField: '', entityTableId: '', policies: '', prefix: '', privateApiName: '', provisions: '', pubkeySettingsTableId: '', pubkeySettingsTableName: '', publicSchemaName: '', rlsSettingsTableId: '', rlsSettingsTableName: '', schemaId: '', scope: '', webauthnSettingsTableId: '', webauthnSettingsTableName: '' }); ``` ### DbPoolConfig @@ -974,20 +1088,20 @@ create({ apiName: '', databaseId: '', dbPresetsTableId: '', ```typescript // List all dbUsageModules const { data, isLoading } = useDbUsageModulesQuery({ - selection: { fields: { apiName: true, collectDbQueryStatsFunction: true, collectDbTableStatsFunction: true, databaseId: true, defaultPermissions: true, entityField: true, id: true, interval: true, prefix: true, premake: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, publicSchemaName: true, queryStatsLogTableId: true, queryStatsLogTableName: true, queryStatsSummaryTableId: true, queryStatsSummaryTableName: true, retention: true, rollupDbQueryStatsUsageSummaryFunction: true, rollupDbTableStatsUsageSummaryFunction: true, schemaId: true, scope: true, tableStatsLogTableId: true, tableStatsLogTableName: true, tableStatsSummaryTableId: true, tableStatsSummaryTableName: true } }, + selection: { fields: { apiName: true, collectDbQueryStatsFunction: true, collectDbTableStatsFunction: true, databaseId: true, defaultCapabilities: true, entityField: true, id: true, interval: true, prefix: true, premake: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, publicSchemaName: true, queryStatsLogTableId: true, queryStatsLogTableName: true, queryStatsSummaryTableId: true, queryStatsSummaryTableName: true, retention: true, rollupDbQueryStatsUsageSummaryFunction: true, rollupDbTableStatsUsageSummaryFunction: true, schemaId: true, scope: true, tableStatsLogTableId: true, tableStatsLogTableName: true, tableStatsSummaryTableId: true, tableStatsSummaryTableName: true } }, }); // Get one dbUsageModule const { data: item } = useDbUsageModuleQuery({ id: '', - selection: { fields: { apiName: true, collectDbQueryStatsFunction: true, collectDbTableStatsFunction: true, databaseId: true, defaultPermissions: true, entityField: true, id: true, interval: true, prefix: true, premake: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, publicSchemaName: true, queryStatsLogTableId: true, queryStatsLogTableName: true, queryStatsSummaryTableId: true, queryStatsSummaryTableName: true, retention: true, rollupDbQueryStatsUsageSummaryFunction: true, rollupDbTableStatsUsageSummaryFunction: true, schemaId: true, scope: true, tableStatsLogTableId: true, tableStatsLogTableName: true, tableStatsSummaryTableId: true, tableStatsSummaryTableName: true } }, + selection: { fields: { apiName: true, collectDbQueryStatsFunction: true, collectDbTableStatsFunction: true, databaseId: true, defaultCapabilities: true, entityField: true, id: true, interval: true, prefix: true, premake: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, publicSchemaName: true, queryStatsLogTableId: true, queryStatsLogTableName: true, queryStatsSummaryTableId: true, queryStatsSummaryTableName: true, retention: true, rollupDbQueryStatsUsageSummaryFunction: true, rollupDbTableStatsUsageSummaryFunction: true, schemaId: true, scope: true, tableStatsLogTableId: true, tableStatsLogTableName: true, tableStatsSummaryTableId: true, tableStatsSummaryTableName: true } }, }); // Create a dbUsageModule const { mutate: create } = useCreateDbUsageModuleMutation({ selection: { fields: { id: true } }, }); -create({ apiName: '', collectDbQueryStatsFunction: '', collectDbTableStatsFunction: '', databaseId: '', defaultPermissions: '', entityField: '', interval: '', prefix: '', premake: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', publicSchemaName: '', queryStatsLogTableId: '', queryStatsLogTableName: '', queryStatsSummaryTableId: '', queryStatsSummaryTableName: '', retention: '', rollupDbQueryStatsUsageSummaryFunction: '', rollupDbTableStatsUsageSummaryFunction: '', schemaId: '', scope: '', tableStatsLogTableId: '', tableStatsLogTableName: '', tableStatsSummaryTableId: '', tableStatsSummaryTableName: '' }); +create({ apiName: '', collectDbQueryStatsFunction: '', collectDbTableStatsFunction: '', databaseId: '', defaultCapabilities: '', entityField: '', interval: '', prefix: '', premake: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', publicSchemaName: '', queryStatsLogTableId: '', queryStatsLogTableName: '', queryStatsSummaryTableId: '', queryStatsSummaryTableName: '', retention: '', rollupDbQueryStatsUsageSummaryFunction: '', rollupDbTableStatsUsageSummaryFunction: '', schemaId: '', scope: '', tableStatsLogTableId: '', tableStatsLogTableName: '', tableStatsSummaryTableId: '', tableStatsSummaryTableName: '' }); ``` ### DefaultIdsModule @@ -1058,20 +1172,41 @@ create({ databaseId: '', deviceSettingsTableId: '', deviceSettingsTa ```typescript // List all domainModules const { data, isLoading } = useDomainModulesQuery({ - selection: { fields: { apiName: true, catalogModuleId: true, databaseId: true, defaultPermissions: true, domainEventsTableId: true, domainEventsTableName: true, domainVerificationsTableId: true, domainVerificationsTableName: true, domainsTableId: true, domainsTableName: true, entityField: true, entityTableId: true, id: true, managedDomainsTableId: true, managedDomainsTableName: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provisions: true, publicSchemaName: true, schemaId: true, scope: true } }, + selection: { fields: { apiName: true, catalogModuleId: true, databaseId: true, defaultCapabilities: true, domainEventsTableId: true, domainEventsTableName: true, domainVerificationsTableId: true, domainVerificationsTableName: true, domainsTableId: true, domainsTableName: true, entityField: true, entityTableId: true, id: true, managedDomainsTableId: true, managedDomainsTableName: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provisions: true, publicSchemaName: true, schemaId: true, scope: true } }, }); // Get one domainModule const { data: item } = useDomainModuleQuery({ id: '', - selection: { fields: { apiName: true, catalogModuleId: true, databaseId: true, defaultPermissions: true, domainEventsTableId: true, domainEventsTableName: true, domainVerificationsTableId: true, domainVerificationsTableName: true, domainsTableId: true, domainsTableName: true, entityField: true, entityTableId: true, id: true, managedDomainsTableId: true, managedDomainsTableName: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provisions: true, publicSchemaName: true, schemaId: true, scope: true } }, + selection: { fields: { apiName: true, catalogModuleId: true, databaseId: true, defaultCapabilities: true, domainEventsTableId: true, domainEventsTableName: true, domainVerificationsTableId: true, domainVerificationsTableName: true, domainsTableId: true, domainsTableName: true, entityField: true, entityTableId: true, id: true, managedDomainsTableId: true, managedDomainsTableName: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provisions: true, publicSchemaName: true, schemaId: true, scope: true } }, }); // Create a domainModule const { mutate: create } = useCreateDomainModuleMutation({ selection: { fields: { id: true } }, }); -create({ apiName: '', catalogModuleId: '', databaseId: '', defaultPermissions: '', domainEventsTableId: '', domainEventsTableName: '', domainVerificationsTableId: '', domainVerificationsTableName: '', domainsTableId: '', domainsTableName: '', entityField: '', entityTableId: '', managedDomainsTableId: '', managedDomainsTableName: '', policies: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', provisions: '', publicSchemaName: '', schemaId: '', scope: '' }); +create({ apiName: '', catalogModuleId: '', databaseId: '', defaultCapabilities: '', domainEventsTableId: '', domainEventsTableName: '', domainVerificationsTableId: '', domainVerificationsTableName: '', domainsTableId: '', domainsTableName: '', entityField: '', entityTableId: '', managedDomainsTableId: '', managedDomainsTableName: '', policies: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', provisions: '', publicSchemaName: '', schemaId: '', scope: '' }); +``` + +### EmailSenderModule + +```typescript +// List all emailSenderModules +const { data, isLoading } = useEmailSenderModulesQuery({ + selection: { fields: { apiName: true, databaseId: true, defaultCapabilities: true, emailIdentitiesTableId: true, emailIdentitiesTableName: true, emailProviderAccountsTableId: true, emailProviderAccountsTableName: true, emailSiteIdentitiesTableId: true, emailSiteIdentitiesTableName: true, entityField: true, entityTableId: true, id: true, policies: true, prefix: true, privateApiName: true, provisions: true, publicSchemaName: true, schemaId: true, scope: true, siteSurfaceModuleId: true } }, +}); + +// Get one emailSenderModule +const { data: item } = useEmailSenderModuleQuery({ + id: '', + selection: { fields: { apiName: true, databaseId: true, defaultCapabilities: true, emailIdentitiesTableId: true, emailIdentitiesTableName: true, emailProviderAccountsTableId: true, emailProviderAccountsTableName: true, emailSiteIdentitiesTableId: true, emailSiteIdentitiesTableName: true, entityField: true, entityTableId: true, id: true, policies: true, prefix: true, privateApiName: true, provisions: true, publicSchemaName: true, schemaId: true, scope: true, siteSurfaceModuleId: true } }, +}); + +// Create a emailSenderModule +const { mutate: create } = useCreateEmailSenderModuleMutation({ + selection: { fields: { id: true } }, +}); +create({ apiName: '', databaseId: '', defaultCapabilities: '', emailIdentitiesTableId: '', emailIdentitiesTableName: '', emailProviderAccountsTableId: '', emailProviderAccountsTableName: '', emailSiteIdentitiesTableId: '', emailSiteIdentitiesTableName: '', entityField: '', entityTableId: '', policies: '', prefix: '', privateApiName: '', provisions: '', publicSchemaName: '', schemaId: '', scope: '', siteSurfaceModuleId: '' }); ``` ### EmailsModule @@ -1121,20 +1256,41 @@ create({ agents: '', databaseId: '', description: '', functi ```typescript // List all eventsModules const { data, isLoading } = useEventsModulesQuery({ - selection: { fields: { achievementRewardsTableId: true, achievementRewardsTableName: true, actorTableId: true, apiName: true, databaseId: true, defaultPermissions: true, entityField: true, entityTableId: true, eventAggregatesTableId: true, eventAggregatesTableName: true, eventTypesTableId: true, eventTypesTableName: true, eventsTableId: true, eventsTableName: true, grantAchievement: true, id: true, interval: true, levelAchieved: true, levelGrantsTableId: true, levelGrantsTableName: true, levelRequirementsTableId: true, levelRequirementsTableName: true, levelsTableId: true, levelsTableName: true, prefix: true, premake: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, publicSchemaName: true, recordEvent: true, removeEvent: true, retention: true, schemaId: true, scope: true, stepsRequired: true, tgAchievementReward: true, tgCheckAchievements: true, tgEvent: true, tgEventBool: true, tgEventToggle: true, tgEventToggleBool: true, tgUpdateAggregates: true, upsertAggregate: true } }, + selection: { fields: { achievementRewardsTableId: true, achievementRewardsTableName: true, actorTableId: true, apiName: true, databaseId: true, defaultCapabilities: true, entityField: true, entityTableId: true, eventAggregatesTableId: true, eventAggregatesTableName: true, eventTypesTableId: true, eventTypesTableName: true, eventsTableId: true, eventsTableName: true, expireGrants: true, grantAchievement: true, id: true, interval: true, levelAchieved: true, levelGrantsTableId: true, levelGrantsTableName: true, levelRequirementsTableId: true, levelRequirementsTableName: true, levelsTableId: true, levelsTableName: true, prefix: true, premake: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, publicSchemaName: true, recomputeCapabilities: true, recordEvent: true, removeEvent: true, retention: true, revokeAchievement: true, schemaId: true, scope: true, stepsRequired: true, tgAchievementReward: true, tgCheckAchievements: true, tgEvent: true, tgEventBool: true, tgEventToggle: true, tgEventToggleBool: true, tgLevelGrantSync: true, tgUpdateAggregates: true, trustLadder: true, upsertAggregate: true } }, }); // Get one eventsModule const { data: item } = useEventsModuleQuery({ id: '', - selection: { fields: { achievementRewardsTableId: true, achievementRewardsTableName: true, actorTableId: true, apiName: true, databaseId: true, defaultPermissions: true, entityField: true, entityTableId: true, eventAggregatesTableId: true, eventAggregatesTableName: true, eventTypesTableId: true, eventTypesTableName: true, eventsTableId: true, eventsTableName: true, grantAchievement: true, id: true, interval: true, levelAchieved: true, levelGrantsTableId: true, levelGrantsTableName: true, levelRequirementsTableId: true, levelRequirementsTableName: true, levelsTableId: true, levelsTableName: true, prefix: true, premake: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, publicSchemaName: true, recordEvent: true, removeEvent: true, retention: true, schemaId: true, scope: true, stepsRequired: true, tgAchievementReward: true, tgCheckAchievements: true, tgEvent: true, tgEventBool: true, tgEventToggle: true, tgEventToggleBool: true, tgUpdateAggregates: true, upsertAggregate: true } }, + selection: { fields: { achievementRewardsTableId: true, achievementRewardsTableName: true, actorTableId: true, apiName: true, databaseId: true, defaultCapabilities: true, entityField: true, entityTableId: true, eventAggregatesTableId: true, eventAggregatesTableName: true, eventTypesTableId: true, eventTypesTableName: true, eventsTableId: true, eventsTableName: true, expireGrants: true, grantAchievement: true, id: true, interval: true, levelAchieved: true, levelGrantsTableId: true, levelGrantsTableName: true, levelRequirementsTableId: true, levelRequirementsTableName: true, levelsTableId: true, levelsTableName: true, prefix: true, premake: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, publicSchemaName: true, recomputeCapabilities: true, recordEvent: true, removeEvent: true, retention: true, revokeAchievement: true, schemaId: true, scope: true, stepsRequired: true, tgAchievementReward: true, tgCheckAchievements: true, tgEvent: true, tgEventBool: true, tgEventToggle: true, tgEventToggleBool: true, tgLevelGrantSync: true, tgUpdateAggregates: true, trustLadder: true, upsertAggregate: true } }, }); // Create a eventsModule const { mutate: create } = useCreateEventsModuleMutation({ selection: { fields: { id: true } }, }); -create({ achievementRewardsTableId: '', achievementRewardsTableName: '', actorTableId: '', apiName: '', databaseId: '', defaultPermissions: '', entityField: '', entityTableId: '', eventAggregatesTableId: '', eventAggregatesTableName: '', eventTypesTableId: '', eventTypesTableName: '', eventsTableId: '', eventsTableName: '', grantAchievement: '', interval: '', levelAchieved: '', levelGrantsTableId: '', levelGrantsTableName: '', levelRequirementsTableId: '', levelRequirementsTableName: '', levelsTableId: '', levelsTableName: '', prefix: '', premake: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', publicSchemaName: '', recordEvent: '', removeEvent: '', retention: '', schemaId: '', scope: '', stepsRequired: '', tgAchievementReward: '', tgCheckAchievements: '', tgEvent: '', tgEventBool: '', tgEventToggle: '', tgEventToggleBool: '', tgUpdateAggregates: '', upsertAggregate: '' }); +create({ achievementRewardsTableId: '', achievementRewardsTableName: '', actorTableId: '', apiName: '', databaseId: '', defaultCapabilities: '', entityField: '', entityTableId: '', eventAggregatesTableId: '', eventAggregatesTableName: '', eventTypesTableId: '', eventTypesTableName: '', eventsTableId: '', eventsTableName: '', expireGrants: '', grantAchievement: '', interval: '', levelAchieved: '', levelGrantsTableId: '', levelGrantsTableName: '', levelRequirementsTableId: '', levelRequirementsTableName: '', levelsTableId: '', levelsTableName: '', prefix: '', premake: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', publicSchemaName: '', recomputeCapabilities: '', recordEvent: '', removeEvent: '', retention: '', revokeAchievement: '', schemaId: '', scope: '', stepsRequired: '', tgAchievementReward: '', tgCheckAchievements: '', tgEvent: '', tgEventBool: '', tgEventToggle: '', tgEventToggleBool: '', tgLevelGrantSync: '', tgUpdateAggregates: '', trustLadder: '', upsertAggregate: '' }); +``` + +### FileRefField + +```typescript +// List all fileRefFields +const { data, isLoading } = useFileRefFieldsQuery({ + selection: { fields: { bucketKey: true, bucketTags: true, databaseId: true, enforceFk: true, fieldId: true, id: true, isPublic: true, storageModuleId: true, tableId: true } }, +}); + +// Get one fileRefField +const { data: item } = useFileRefFieldQuery({ + id: '', + selection: { fields: { bucketKey: true, bucketTags: true, databaseId: true, enforceFk: true, fieldId: true, id: true, isPublic: true, storageModuleId: true, tableId: true } }, +}); + +// Create a fileRefField +const { mutate: create } = useCreateFileRefFieldMutation({ + selection: { fields: { id: true } }, +}); +create({ bucketKey: '', bucketTags: '', databaseId: '', enforceFk: '', fieldId: '', isPublic: '', storageModuleId: '', tableId: '' }); ``` ### FunctionDeploymentModule @@ -1142,20 +1298,20 @@ create({ achievementRewardsTableId: '', achievementRewardsTableName: '', - selection: { fields: { apiName: true, databaseId: true, defaultPermissions: true, deploymentEventsTableId: true, deploymentEventsTableName: true, deploymentsTableId: true, deploymentsTableName: true, entityField: true, entityTableId: true, functionModuleId: true, id: true, namespaceModuleId: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provisions: true, publicSchemaName: true, schemaId: true, scope: true } }, + selection: { fields: { apiName: true, databaseId: true, defaultCapabilities: true, deploymentEventsTableId: true, deploymentEventsTableName: true, deploymentsTableId: true, deploymentsTableName: true, entityField: true, entityTableId: true, functionModuleId: true, id: true, namespaceModuleId: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provisions: true, publicSchemaName: true, schemaId: true, scope: true } }, }); // Create a functionDeploymentModule const { mutate: create } = useCreateFunctionDeploymentModuleMutation({ selection: { fields: { id: true } }, }); -create({ apiName: '', databaseId: '', defaultPermissions: '', deploymentEventsTableId: '', deploymentEventsTableName: '', deploymentsTableId: '', deploymentsTableName: '', entityField: '', entityTableId: '', functionModuleId: '', namespaceModuleId: '', policies: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', provisions: '', publicSchemaName: '', schemaId: '', scope: '' }); +create({ apiName: '', databaseId: '', defaultCapabilities: '', deploymentEventsTableId: '', deploymentEventsTableName: '', deploymentsTableId: '', deploymentsTableName: '', entityField: '', entityTableId: '', functionModuleId: '', namespaceModuleId: '', policies: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', provisions: '', publicSchemaName: '', schemaId: '', scope: '' }); ``` ### FunctionInvocationModule @@ -1163,20 +1319,20 @@ create({ apiName: '', databaseId: '', defaultPermissions: '', - selection: { fields: { apiName: true, attemptsTableId: true, attemptsTableName: true, databaseId: true, defaultPermissions: true, entityField: true, entityTableId: true, executionLogsTableId: true, executionLogsTableName: true, id: true, invocationsTableId: true, invocationsTableName: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provisions: true, publicSchemaName: true, schemaId: true, scope: true } }, + selection: { fields: { apiName: true, attemptsTableId: true, attemptsTableName: true, databaseId: true, defaultCapabilities: true, entityField: true, entityTableId: true, executionLogsTableId: true, executionLogsTableName: true, id: true, invocationsTableId: true, invocationsTableName: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provisions: true, publicSchemaName: true, schemaId: true, scope: true } }, }); // Create a functionInvocationModule const { mutate: create } = useCreateFunctionInvocationModuleMutation({ selection: { fields: { id: true } }, }); -create({ apiName: '', attemptsTableId: '', attemptsTableName: '', databaseId: '', defaultPermissions: '', entityField: '', entityTableId: '', executionLogsTableId: '', executionLogsTableName: '', invocationsTableId: '', invocationsTableName: '', policies: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', provisions: '', publicSchemaName: '', schemaId: '', scope: '' }); +create({ apiName: '', attemptsTableId: '', attemptsTableName: '', databaseId: '', defaultCapabilities: '', entityField: '', entityTableId: '', executionLogsTableId: '', executionLogsTableName: '', invocationsTableId: '', invocationsTableName: '', policies: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', provisions: '', publicSchemaName: '', schemaId: '', scope: '' }); ``` ### FunctionModule @@ -1184,20 +1340,20 @@ create({ apiName: '', attemptsTableId: '', attemptsTableName: '', - selection: { fields: { apiName: true, bindingsTableId: true, bindingsTableName: true, capabilityBindingsTableId: true, databaseId: true, defaultPermissions: true, definitionsTableId: true, definitionsTableName: true, entityField: true, entityTableId: true, hasCron: true, id: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provisions: true, publicSchemaName: true, schedulesTableId: true, schemaId: true, scope: true } }, + selection: { fields: { apiName: true, bindingsTableId: true, bindingsTableName: true, capabilityBindingsTableId: true, databaseId: true, defaultCapabilities: true, definitionsTableId: true, definitionsTableName: true, entityField: true, entityTableId: true, hasCron: true, id: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provisions: true, publicSchemaName: true, schedulesTableId: true, schemaId: true, scope: true } }, }); // Create a functionModule const { mutate: create } = useCreateFunctionModuleMutation({ selection: { fields: { id: true } }, }); -create({ apiName: '', bindingsTableId: '', bindingsTableName: '', capabilityBindingsTableId: '', databaseId: '', defaultPermissions: '', definitionsTableId: '', definitionsTableName: '', entityField: '', entityTableId: '', hasCron: '', policies: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', provisions: '', publicSchemaName: '', schedulesTableId: '', schemaId: '', scope: '' }); +create({ apiName: '', bindingsTableId: '', bindingsTableName: '', capabilityBindingsTableId: '', databaseId: '', defaultCapabilities: '', definitionsTableId: '', definitionsTableName: '', entityField: '', entityTableId: '', hasCron: '', policies: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', provisions: '', publicSchemaName: '', schedulesTableId: '', schemaId: '', scope: '' }); ``` ### GraphExecutionModule @@ -1205,20 +1361,20 @@ create({ apiName: '', bindingsTableId: '', bindingsTableName: '', - selection: { fields: { apiName: true, createdAt: true, databaseId: true, defaultPermissions: true, entityField: true, entityTableId: true, executionsTableId: true, executionsTableName: true, graphModuleId: true, id: true, nodeStatesTableId: true, nodeStatesTableName: true, outputsTableId: true, outputsTableName: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provisions: true, publicSchemaName: true, schemaId: true, scope: true } }, + selection: { fields: { apiName: true, createdAt: true, databaseId: true, defaultCapabilities: true, entityField: true, entityTableId: true, executionsTableId: true, executionsTableName: true, graphModuleId: true, id: true, nodeStatesTableId: true, nodeStatesTableName: true, outputsTableId: true, outputsTableName: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provisions: true, publicSchemaName: true, schemaId: true, scope: true } }, }); // Create a graphExecutionModule const { mutate: create } = useCreateGraphExecutionModuleMutation({ selection: { fields: { id: true } }, }); -create({ apiName: '', databaseId: '', defaultPermissions: '', entityField: '', entityTableId: '', executionsTableId: '', executionsTableName: '', graphModuleId: '', nodeStatesTableId: '', nodeStatesTableName: '', outputsTableId: '', outputsTableName: '', policies: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', provisions: '', publicSchemaName: '', schemaId: '', scope: '' }); +create({ apiName: '', databaseId: '', defaultCapabilities: '', entityField: '', entityTableId: '', executionsTableId: '', executionsTableName: '', graphModuleId: '', nodeStatesTableId: '', nodeStatesTableName: '', outputsTableId: '', outputsTableName: '', policies: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', provisions: '', publicSchemaName: '', schemaId: '', scope: '' }); ``` ### GraphModule @@ -1226,20 +1382,20 @@ create({ apiName: '', databaseId: '', defaultPermissions: '', - selection: { fields: { apiName: true, createdAt: true, databaseId: true, defaultPermissions: true, entityField: true, entityTableId: true, graphsTableId: true, id: true, merkleStoreModuleId: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provisions: true, publicSchemaId: true, publicSchemaName: true, scope: true } }, + selection: { fields: { apiName: true, createdAt: true, databaseId: true, defaultCapabilities: true, entityField: true, entityTableId: true, graphsTableId: true, id: true, merkleStoreModuleId: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provisions: true, publicSchemaId: true, publicSchemaName: true, scope: true } }, }); // Create a graphModule const { mutate: create } = useCreateGraphModuleMutation({ selection: { fields: { id: true } }, }); -create({ apiName: '', databaseId: '', defaultPermissions: '', entityField: '', entityTableId: '', graphsTableId: '', merkleStoreModuleId: '', policies: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', provisions: '', publicSchemaId: '', publicSchemaName: '', scope: '' }); +create({ apiName: '', databaseId: '', defaultCapabilities: '', entityField: '', entityTableId: '', graphsTableId: '', merkleStoreModuleId: '', policies: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', provisions: '', publicSchemaId: '', publicSchemaName: '', scope: '' }); ``` ### HierarchyModule @@ -1247,20 +1403,20 @@ create({ apiName: '', databaseId: '', defaultPermissions: '', - selection: { fields: { chartEdgeGrantsTableId: true, chartEdgeGrantsTableName: true, chartEdgesTableId: true, chartEdgesTableName: true, createdAt: true, databaseId: true, defaultPermissions: true, entityField: true, entityTableId: true, getManagersFunction: true, getSubordinatesFunction: true, hierarchySprtTableId: true, hierarchySprtTableName: true, id: true, isManagerOfFunction: true, prefix: true, privateSchemaId: true, privateSchemaName: true, rebuildHierarchyFunction: true, schemaId: true, scope: true, sprtTableName: true, usersTableId: true } }, + selection: { fields: { chartEdgeGrantsTableId: true, chartEdgeGrantsTableName: true, chartEdgesTableId: true, chartEdgesTableName: true, createdAt: true, databaseId: true, defaultCapabilities: true, entityField: true, entityTableId: true, getManagersFunction: true, getSubordinatesFunction: true, hierarchySprtTableId: true, hierarchySprtTableName: true, id: true, isManagerOfFunction: true, prefix: true, privateSchemaId: true, privateSchemaName: true, rebuildHierarchyFunction: true, schemaId: true, scope: true, sprtTableName: true, usersTableId: true } }, }); // Create a hierarchyModule const { mutate: create } = useCreateHierarchyModuleMutation({ selection: { fields: { id: true } }, }); -create({ chartEdgeGrantsTableId: '', chartEdgeGrantsTableName: '', chartEdgesTableId: '', chartEdgesTableName: '', databaseId: '', defaultPermissions: '', entityField: '', entityTableId: '', getManagersFunction: '', getSubordinatesFunction: '', hierarchySprtTableId: '', hierarchySprtTableName: '', isManagerOfFunction: '', prefix: '', privateSchemaId: '', privateSchemaName: '', rebuildHierarchyFunction: '', schemaId: '', scope: '', sprtTableName: '', usersTableId: '' }); +create({ chartEdgeGrantsTableId: '', chartEdgeGrantsTableName: '', chartEdgesTableId: '', chartEdgesTableName: '', databaseId: '', defaultCapabilities: '', entityField: '', entityTableId: '', getManagersFunction: '', getSubordinatesFunction: '', hierarchySprtTableId: '', hierarchySprtTableName: '', isManagerOfFunction: '', prefix: '', privateSchemaId: '', privateSchemaName: '', rebuildHierarchyFunction: '', schemaId: '', scope: '', sprtTableName: '', usersTableId: '' }); ``` ### HttpRouteModule @@ -1268,20 +1424,20 @@ create({ chartEdgeGrantsTableId: '', chartEdgeGrantsTableName: '', ```typescript // List all httpRouteModules const { data, isLoading } = useHttpRouteModulesQuery({ - selection: { fields: { apiName: true, databaseId: true, defaultPermissions: true, entityField: true, entityTableId: true, functionModuleId: true, httpRoutesTableId: true, httpRoutesTableName: true, id: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provisions: true, publicSchemaName: true, resolverFunctionName: true, resourceModuleId: true, schemaId: true, scope: true, storageModuleId: true } }, + selection: { fields: { apiName: true, databaseId: true, defaultCapabilities: true, entityField: true, entityTableId: true, functionModuleId: true, httpRoutesTableId: true, httpRoutesTableName: true, id: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provisions: true, publicSchemaName: true, resolverFunctionName: true, resourceModuleId: true, schemaId: true, scope: true, storageModuleId: true } }, }); // Get one httpRouteModule const { data: item } = useHttpRouteModuleQuery({ id: '', - selection: { fields: { apiName: true, databaseId: true, defaultPermissions: true, entityField: true, entityTableId: true, functionModuleId: true, httpRoutesTableId: true, httpRoutesTableName: true, id: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provisions: true, publicSchemaName: true, resolverFunctionName: true, resourceModuleId: true, schemaId: true, scope: true, storageModuleId: true } }, + selection: { fields: { apiName: true, databaseId: true, defaultCapabilities: true, entityField: true, entityTableId: true, functionModuleId: true, httpRoutesTableId: true, httpRoutesTableName: true, id: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provisions: true, publicSchemaName: true, resolverFunctionName: true, resourceModuleId: true, schemaId: true, scope: true, storageModuleId: true } }, }); // Create a httpRouteModule const { mutate: create } = useCreateHttpRouteModuleMutation({ selection: { fields: { id: true } }, }); -create({ apiName: '', databaseId: '', defaultPermissions: '', entityField: '', entityTableId: '', functionModuleId: '', httpRoutesTableId: '', httpRoutesTableName: '', policies: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', provisions: '', publicSchemaName: '', resolverFunctionName: '', resourceModuleId: '', schemaId: '', scope: '', storageModuleId: '' }); +create({ apiName: '', databaseId: '', defaultCapabilities: '', entityField: '', entityTableId: '', functionModuleId: '', httpRoutesTableId: '', httpRoutesTableName: '', policies: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', provisions: '', publicSchemaName: '', resolverFunctionName: '', resourceModuleId: '', schemaId: '', scope: '', storageModuleId: '' }); ``` ### I18NModule @@ -1457,20 +1613,20 @@ create({ apiName: '', claimedInvitesTableId: '', claimedInvitesTab ```typescript // List all limitsModules const { data, isLoading } = useLimitsModulesQuery({ - selection: { fields: { actorTableId: true, aggregateTableId: true, apiName: true, capCheckTrigger: true, creditCodeItemsTableId: true, creditCodesTableId: true, creditRedemptionsTableId: true, databaseId: true, defaultTableId: true, defaultTableName: true, entityField: true, entityTableId: true, eventsTableId: true, id: true, limitAggregateCheckSoftFunction: true, limitCapsDefaultsTableId: true, limitCapsTableId: true, limitCheckFunction: true, limitCheckSoftFunction: true, limitCreditsTableId: true, limitDecrementFunction: true, limitDecrementTrigger: true, limitIncrementFunction: true, limitIncrementTrigger: true, limitUpdateTrigger: true, limitWarningStateTableId: true, limitWarningsTableId: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, publicSchemaName: true, resolveCapFunction: true, schemaId: true, scope: true, tableId: true, tableName: true } }, + selection: { fields: { actorTableId: true, aggregateTableId: true, apiName: true, capCheckTrigger: true, creditCodeItemsTableId: true, creditCodesTableId: true, creditRedemptionsTableId: true, databaseId: true, defaultTableId: true, defaultTableName: true, entityField: true, entityTableId: true, eventsTableId: true, id: true, limitAggregateCheckSoftFunction: true, limitCapsDefaultsTableId: true, limitCapsTableId: true, limitCheckFunction: true, limitCheckSoftFunction: true, limitCreditsTableId: true, limitDecrementFunction: true, limitDecrementTrigger: true, limitDefaults: true, limitIncrementFunction: true, limitIncrementTrigger: true, limitUpdateTrigger: true, limitWarningStateTableId: true, limitWarningsTableId: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, publicSchemaName: true, resolveCapFunction: true, schemaId: true, scope: true, tableId: true, tableName: true } }, }); // Get one limitsModule const { data: item } = useLimitsModuleQuery({ id: '', - selection: { fields: { actorTableId: true, aggregateTableId: true, apiName: true, capCheckTrigger: true, creditCodeItemsTableId: true, creditCodesTableId: true, creditRedemptionsTableId: true, databaseId: true, defaultTableId: true, defaultTableName: true, entityField: true, entityTableId: true, eventsTableId: true, id: true, limitAggregateCheckSoftFunction: true, limitCapsDefaultsTableId: true, limitCapsTableId: true, limitCheckFunction: true, limitCheckSoftFunction: true, limitCreditsTableId: true, limitDecrementFunction: true, limitDecrementTrigger: true, limitIncrementFunction: true, limitIncrementTrigger: true, limitUpdateTrigger: true, limitWarningStateTableId: true, limitWarningsTableId: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, publicSchemaName: true, resolveCapFunction: true, schemaId: true, scope: true, tableId: true, tableName: true } }, + selection: { fields: { actorTableId: true, aggregateTableId: true, apiName: true, capCheckTrigger: true, creditCodeItemsTableId: true, creditCodesTableId: true, creditRedemptionsTableId: true, databaseId: true, defaultTableId: true, defaultTableName: true, entityField: true, entityTableId: true, eventsTableId: true, id: true, limitAggregateCheckSoftFunction: true, limitCapsDefaultsTableId: true, limitCapsTableId: true, limitCheckFunction: true, limitCheckSoftFunction: true, limitCreditsTableId: true, limitDecrementFunction: true, limitDecrementTrigger: true, limitDefaults: true, limitIncrementFunction: true, limitIncrementTrigger: true, limitUpdateTrigger: true, limitWarningStateTableId: true, limitWarningsTableId: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, publicSchemaName: true, resolveCapFunction: true, schemaId: true, scope: true, tableId: true, tableName: true } }, }); // Create a limitsModule const { mutate: create } = useCreateLimitsModuleMutation({ selection: { fields: { id: true } }, }); -create({ actorTableId: '', aggregateTableId: '', apiName: '', capCheckTrigger: '', creditCodeItemsTableId: '', creditCodesTableId: '', creditRedemptionsTableId: '', databaseId: '', defaultTableId: '', defaultTableName: '', entityField: '', entityTableId: '', eventsTableId: '', limitAggregateCheckSoftFunction: '', limitCapsDefaultsTableId: '', limitCapsTableId: '', limitCheckFunction: '', limitCheckSoftFunction: '', limitCreditsTableId: '', limitDecrementFunction: '', limitDecrementTrigger: '', limitIncrementFunction: '', limitIncrementTrigger: '', limitUpdateTrigger: '', limitWarningStateTableId: '', limitWarningsTableId: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', publicSchemaName: '', resolveCapFunction: '', schemaId: '', scope: '', tableId: '', tableName: '' }); +create({ actorTableId: '', aggregateTableId: '', apiName: '', capCheckTrigger: '', creditCodeItemsTableId: '', creditCodesTableId: '', creditRedemptionsTableId: '', databaseId: '', defaultTableId: '', defaultTableName: '', entityField: '', entityTableId: '', eventsTableId: '', limitAggregateCheckSoftFunction: '', limitCapsDefaultsTableId: '', limitCapsTableId: '', limitCheckFunction: '', limitCheckSoftFunction: '', limitCreditsTableId: '', limitDecrementFunction: '', limitDecrementTrigger: '', limitDefaults: '', limitIncrementFunction: '', limitIncrementTrigger: '', limitUpdateTrigger: '', limitWarningStateTableId: '', limitWarningsTableId: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', publicSchemaName: '', resolveCapFunction: '', schemaId: '', scope: '', tableId: '', tableName: '' }); ``` ### MembershipTypesModule @@ -1499,20 +1655,20 @@ create({ databaseId: '', schemaId: '', tableId: '', tableName: ```typescript // List all membershipsModules const { data, isLoading } = useMembershipsModulesQuery({ - selection: { fields: { actorMaskCheck: true, actorPermCheck: true, actorTableId: true, adminGrantsTableId: true, adminGrantsTableName: true, apiName: true, databaseId: true, defaultLimitsTableId: true, defaultPermissionsTableId: true, entityField: true, entityIdsByMask: true, entityIdsByPerm: true, entityIdsFunction: true, entityTableId: true, entityTableOwnerId: true, getOrgFn: true, grantsTableId: true, grantsTableName: true, id: true, limitsTableId: true, memberProfilesTableId: true, membersTableId: true, membersTableName: true, membershipDefaultsTableId: true, membershipDefaultsTableName: true, membershipSettingsTableId: true, membershipSettingsTableName: true, membershipsTableId: true, membershipsTableName: true, ownerGrantsTableId: true, ownerGrantsTableName: true, permissionDefaultGrantsTableId: true, permissionDefaultPermissionsTableId: true, permissionsTableId: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, publicSchemaName: true, schemaId: true, scope: true, sprtTableId: true } }, + selection: { fields: { actorMaskCheck: true, actorPermCheck: true, actorTableId: true, adminGrantsTableId: true, adminGrantsTableName: true, apiName: true, capabilitiesTableId: true, capabilityDefaultCapabilitiesTableId: true, capabilityDefaultGrantsTableId: true, databaseId: true, defaultCapabilitiesTableId: true, defaultLimitsTableId: true, entityField: true, entityIdsByMask: true, entityIdsByPerm: true, entityIdsFunction: true, entityTableId: true, entityTableOwnerId: true, getOrgFn: true, grantsTableId: true, grantsTableName: true, id: true, limitsTableId: true, memberProfilesTableId: true, membersTableId: true, membersTableName: true, membershipDefaultsTableId: true, membershipDefaultsTableName: true, membershipSettingsTableId: true, membershipSettingsTableName: true, membershipsTableId: true, membershipsTableName: true, ownerGrantsTableId: true, ownerGrantsTableName: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, publicSchemaName: true, schemaId: true, scope: true, sprtTableId: true } }, }); // Get one membershipsModule const { data: item } = useMembershipsModuleQuery({ id: '', - selection: { fields: { actorMaskCheck: true, actorPermCheck: true, actorTableId: true, adminGrantsTableId: true, adminGrantsTableName: true, apiName: true, databaseId: true, defaultLimitsTableId: true, defaultPermissionsTableId: true, entityField: true, entityIdsByMask: true, entityIdsByPerm: true, entityIdsFunction: true, entityTableId: true, entityTableOwnerId: true, getOrgFn: true, grantsTableId: true, grantsTableName: true, id: true, limitsTableId: true, memberProfilesTableId: true, membersTableId: true, membersTableName: true, membershipDefaultsTableId: true, membershipDefaultsTableName: true, membershipSettingsTableId: true, membershipSettingsTableName: true, membershipsTableId: true, membershipsTableName: true, ownerGrantsTableId: true, ownerGrantsTableName: true, permissionDefaultGrantsTableId: true, permissionDefaultPermissionsTableId: true, permissionsTableId: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, publicSchemaName: true, schemaId: true, scope: true, sprtTableId: true } }, + selection: { fields: { actorMaskCheck: true, actorPermCheck: true, actorTableId: true, adminGrantsTableId: true, adminGrantsTableName: true, apiName: true, capabilitiesTableId: true, capabilityDefaultCapabilitiesTableId: true, capabilityDefaultGrantsTableId: true, databaseId: true, defaultCapabilitiesTableId: true, defaultLimitsTableId: true, entityField: true, entityIdsByMask: true, entityIdsByPerm: true, entityIdsFunction: true, entityTableId: true, entityTableOwnerId: true, getOrgFn: true, grantsTableId: true, grantsTableName: true, id: true, limitsTableId: true, memberProfilesTableId: true, membersTableId: true, membersTableName: true, membershipDefaultsTableId: true, membershipDefaultsTableName: true, membershipSettingsTableId: true, membershipSettingsTableName: true, membershipsTableId: true, membershipsTableName: true, ownerGrantsTableId: true, ownerGrantsTableName: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, publicSchemaName: true, schemaId: true, scope: true, sprtTableId: true } }, }); // Create a membershipsModule const { mutate: create } = useCreateMembershipsModuleMutation({ selection: { fields: { id: true } }, }); -create({ actorMaskCheck: '', actorPermCheck: '', actorTableId: '', adminGrantsTableId: '', adminGrantsTableName: '', apiName: '', databaseId: '', defaultLimitsTableId: '', defaultPermissionsTableId: '', entityField: '', entityIdsByMask: '', entityIdsByPerm: '', entityIdsFunction: '', entityTableId: '', entityTableOwnerId: '', getOrgFn: '', grantsTableId: '', grantsTableName: '', limitsTableId: '', memberProfilesTableId: '', membersTableId: '', membersTableName: '', membershipDefaultsTableId: '', membershipDefaultsTableName: '', membershipSettingsTableId: '', membershipSettingsTableName: '', membershipsTableId: '', membershipsTableName: '', ownerGrantsTableId: '', ownerGrantsTableName: '', permissionDefaultGrantsTableId: '', permissionDefaultPermissionsTableId: '', permissionsTableId: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', publicSchemaName: '', schemaId: '', scope: '', sprtTableId: '' }); +create({ actorMaskCheck: '', actorPermCheck: '', actorTableId: '', adminGrantsTableId: '', adminGrantsTableName: '', apiName: '', capabilitiesTableId: '', capabilityDefaultCapabilitiesTableId: '', capabilityDefaultGrantsTableId: '', databaseId: '', defaultCapabilitiesTableId: '', defaultLimitsTableId: '', entityField: '', entityIdsByMask: '', entityIdsByPerm: '', entityIdsFunction: '', entityTableId: '', entityTableOwnerId: '', getOrgFn: '', grantsTableId: '', grantsTableName: '', limitsTableId: '', memberProfilesTableId: '', membersTableId: '', membersTableName: '', membershipDefaultsTableId: '', membershipDefaultsTableName: '', membershipSettingsTableId: '', membershipSettingsTableName: '', membershipsTableId: '', membershipsTableName: '', ownerGrantsTableId: '', ownerGrantsTableName: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', publicSchemaName: '', schemaId: '', scope: '', sprtTableId: '' }); ``` ### MerkleStoreModule @@ -1520,20 +1676,20 @@ create({ actorMaskCheck: '', actorPermCheck: '', actorTableId: ' ```typescript // List all merkleStoreModules const { data, isLoading } = useMerkleStoreModulesQuery({ - selection: { fields: { apiName: true, commitTableId: true, createdAt: true, databaseId: true, entityField: true, functionPrefix: true, id: true, objectTableId: true, permissionKey: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, publicSchemaName: true, refTableId: true, schemaId: true, scope: true, storeTableId: true } }, + selection: { fields: { apiName: true, capabilityKey: true, commitTableId: true, createdAt: true, databaseId: true, entityField: true, functionPrefix: true, id: true, objectTableId: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, publicSchemaName: true, refTableId: true, schemaId: true, scope: true, storeTableId: true } }, }); // Get one merkleStoreModule const { data: item } = useMerkleStoreModuleQuery({ id: '', - selection: { fields: { apiName: true, commitTableId: true, createdAt: true, databaseId: true, entityField: true, functionPrefix: true, id: true, objectTableId: true, permissionKey: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, publicSchemaName: true, refTableId: true, schemaId: true, scope: true, storeTableId: true } }, + selection: { fields: { apiName: true, capabilityKey: true, commitTableId: true, createdAt: true, databaseId: true, entityField: true, functionPrefix: true, id: true, objectTableId: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, publicSchemaName: true, refTableId: true, schemaId: true, scope: true, storeTableId: true } }, }); // Create a merkleStoreModule const { mutate: create } = useCreateMerkleStoreModuleMutation({ selection: { fields: { id: true } }, }); -create({ apiName: '', commitTableId: '', databaseId: '', entityField: '', functionPrefix: '', objectTableId: '', permissionKey: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', publicSchemaName: '', refTableId: '', schemaId: '', scope: '', storeTableId: '' }); +create({ apiName: '', capabilityKey: '', commitTableId: '', databaseId: '', entityField: '', functionPrefix: '', objectTableId: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', publicSchemaName: '', refTableId: '', schemaId: '', scope: '', storeTableId: '' }); ``` ### NamespaceModule @@ -1541,20 +1697,20 @@ create({ apiName: '', commitTableId: '', databaseId: '', ent ```typescript // List all namespaceModules const { data, isLoading } = useNamespaceModulesQuery({ - selection: { fields: { apiName: true, databaseId: true, defaultPermissions: true, entityField: true, entityTableId: true, id: true, namespaceEventsTableId: true, namespaceEventsTableName: true, namespacesTableId: true, namespacesTableName: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provisions: true, publicSchemaName: true, schemaId: true, scope: true } }, + selection: { fields: { apiName: true, databaseId: true, defaultCapabilities: true, entityField: true, entityTableId: true, id: true, namespaceEventsTableId: true, namespaceEventsTableName: true, namespacesTableId: true, namespacesTableName: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provisions: true, publicSchemaName: true, schemaId: true, scope: true } }, }); // Get one namespaceModule const { data: item } = useNamespaceModuleQuery({ id: '', - selection: { fields: { apiName: true, databaseId: true, defaultPermissions: true, entityField: true, entityTableId: true, id: true, namespaceEventsTableId: true, namespaceEventsTableName: true, namespacesTableId: true, namespacesTableName: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provisions: true, publicSchemaName: true, schemaId: true, scope: true } }, + selection: { fields: { apiName: true, databaseId: true, defaultCapabilities: true, entityField: true, entityTableId: true, id: true, namespaceEventsTableId: true, namespaceEventsTableName: true, namespacesTableId: true, namespacesTableName: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provisions: true, publicSchemaName: true, schemaId: true, scope: true } }, }); // Create a namespaceModule const { mutate: create } = useCreateNamespaceModuleMutation({ selection: { fields: { id: true } }, }); -create({ apiName: '', databaseId: '', defaultPermissions: '', entityField: '', entityTableId: '', namespaceEventsTableId: '', namespaceEventsTableName: '', namespacesTableId: '', namespacesTableName: '', policies: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', provisions: '', publicSchemaName: '', schemaId: '', scope: '' }); +create({ apiName: '', databaseId: '', defaultCapabilities: '', entityField: '', entityTableId: '', namespaceEventsTableId: '', namespaceEventsTableName: '', namespacesTableId: '', namespacesTableName: '', policies: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', provisions: '', publicSchemaName: '', schemaId: '', scope: '' }); ``` ### NotificationsModule @@ -1562,62 +1718,62 @@ create({ apiName: '', databaseId: '', defaultPermissions: '', - selection: { fields: { apiName: true, channelsTableId: true, databaseId: true, defaultPermissions: true, deliveryLogTableId: true, entityField: true, hasChannels: true, hasDigestMetadata: true, hasPreferences: true, hasSettingsExtension: true, hasSubscriptions: true, id: true, notificationsTableId: true, organizationSettingsTableId: true, ownerTableId: true, preferencesTableId: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, publicSchemaName: true, readStateTableId: true, schemaId: true, suppressionsTableId: true, userSettingsTableId: true } }, + selection: { fields: { apiName: true, channelsTableId: true, databaseId: true, defaultCapabilities: true, deliveryLogTableId: true, entityField: true, hasChannels: true, hasDigestMetadata: true, hasPreferences: true, hasSettingsExtension: true, hasSubscriptions: true, id: true, notificationsTableId: true, organizationSettingsTableId: true, ownerTableId: true, preferencesTableId: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, publicSchemaName: true, readStateTableId: true, schemaId: true, suppressionsTableId: true, userSettingsTableId: true } }, }); // Create a notificationsModule const { mutate: create } = useCreateNotificationsModuleMutation({ selection: { fields: { id: true } }, }); -create({ apiName: '', channelsTableId: '', databaseId: '', defaultPermissions: '', deliveryLogTableId: '', entityField: '', hasChannels: '', hasDigestMetadata: '', hasPreferences: '', hasSettingsExtension: '', hasSubscriptions: '', notificationsTableId: '', organizationSettingsTableId: '', ownerTableId: '', preferencesTableId: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', publicSchemaName: '', readStateTableId: '', schemaId: '', suppressionsTableId: '', userSettingsTableId: '' }); +create({ apiName: '', channelsTableId: '', databaseId: '', defaultCapabilities: '', deliveryLogTableId: '', entityField: '', hasChannels: '', hasDigestMetadata: '', hasPreferences: '', hasSettingsExtension: '', hasSubscriptions: '', notificationsTableId: '', organizationSettingsTableId: '', ownerTableId: '', preferencesTableId: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', publicSchemaName: '', readStateTableId: '', schemaId: '', suppressionsTableId: '', userSettingsTableId: '' }); ``` -### PagesModule +### OauthRequestsModule ```typescript -// List all pagesModules -const { data, isLoading } = usePagesModulesQuery({ - selection: { fields: { apiName: true, createdAt: true, databaseId: true, entityTableId: true, id: true, merkleStoreModuleId: true, pagesTableId: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provisions: true, publicSchemaId: true, publicSchemaName: true, scope: true, siteSurfaceModuleId: true, sitesTableId: true, storeNamePrefix: true } }, +// List all oauthRequestsModules +const { data, isLoading } = useOauthRequestsModulesQuery({ + selection: { fields: { databaseId: true, entityField: true, entityTableId: true, id: true, oauthAuthorizationRequestsTableId: true, oauthAuthorizationRequestsTableName: true, pendingIdentityLinksTableId: true, pendingIdentityLinksTableName: true, prefix: true, privateSchemaId: true, privateSchemaName: true, scope: true } }, }); -// Get one pagesModule -const { data: item } = usePagesModuleQuery({ +// Get one oauthRequestsModule +const { data: item } = useOauthRequestsModuleQuery({ id: '', - selection: { fields: { apiName: true, createdAt: true, databaseId: true, entityTableId: true, id: true, merkleStoreModuleId: true, pagesTableId: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provisions: true, publicSchemaId: true, publicSchemaName: true, scope: true, siteSurfaceModuleId: true, sitesTableId: true, storeNamePrefix: true } }, + selection: { fields: { databaseId: true, entityField: true, entityTableId: true, id: true, oauthAuthorizationRequestsTableId: true, oauthAuthorizationRequestsTableName: true, pendingIdentityLinksTableId: true, pendingIdentityLinksTableName: true, prefix: true, privateSchemaId: true, privateSchemaName: true, scope: true } }, }); -// Create a pagesModule -const { mutate: create } = useCreatePagesModuleMutation({ +// Create a oauthRequestsModule +const { mutate: create } = useCreateOauthRequestsModuleMutation({ selection: { fields: { id: true } }, }); -create({ apiName: '', databaseId: '', entityTableId: '', merkleStoreModuleId: '', pagesTableId: '', policies: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', provisions: '', publicSchemaId: '', publicSchemaName: '', scope: '', siteSurfaceModuleId: '', sitesTableId: '', storeNamePrefix: '' }); +create({ databaseId: '', entityField: '', entityTableId: '', oauthAuthorizationRequestsTableId: '', oauthAuthorizationRequestsTableName: '', pendingIdentityLinksTableId: '', pendingIdentityLinksTableName: '', prefix: '', privateSchemaId: '', privateSchemaName: '', scope: '' }); ``` -### PermissionsModule +### PagesModule ```typescript -// List all permissionsModules -const { data, isLoading } = usePermissionsModulesQuery({ - selection: { fields: { actorTableId: true, apiName: true, bitlen: true, databaseId: true, defaultTableId: true, defaultTableName: true, entityField: true, entityTableId: true, getByMask: true, getMask: true, getMaskByName: true, getPaddedMask: true, id: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, publicSchemaName: true, schemaId: true, scope: true, tableId: true, tableName: true } }, +// List all pagesModules +const { data, isLoading } = usePagesModulesQuery({ + selection: { fields: { apiName: true, createdAt: true, databaseId: true, entityTableId: true, id: true, merkleStoreModuleId: true, pagesTableId: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provisions: true, publicSchemaId: true, publicSchemaName: true, scope: true, siteSurfaceModuleId: true, sitesTableId: true, storeNamePrefix: true } }, }); -// Get one permissionsModule -const { data: item } = usePermissionsModuleQuery({ +// Get one pagesModule +const { data: item } = usePagesModuleQuery({ id: '', - selection: { fields: { actorTableId: true, apiName: true, bitlen: true, databaseId: true, defaultTableId: true, defaultTableName: true, entityField: true, entityTableId: true, getByMask: true, getMask: true, getMaskByName: true, getPaddedMask: true, id: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, publicSchemaName: true, schemaId: true, scope: true, tableId: true, tableName: true } }, + selection: { fields: { apiName: true, createdAt: true, databaseId: true, entityTableId: true, id: true, merkleStoreModuleId: true, pagesTableId: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provisions: true, publicSchemaId: true, publicSchemaName: true, scope: true, siteSurfaceModuleId: true, sitesTableId: true, storeNamePrefix: true } }, }); -// Create a permissionsModule -const { mutate: create } = useCreatePermissionsModuleMutation({ +// Create a pagesModule +const { mutate: create } = useCreatePagesModuleMutation({ selection: { fields: { id: true } }, }); -create({ actorTableId: '', apiName: '', bitlen: '', databaseId: '', defaultTableId: '', defaultTableName: '', entityField: '', entityTableId: '', getByMask: '', getMask: '', getMaskByName: '', getPaddedMask: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', publicSchemaName: '', schemaId: '', scope: '', tableId: '', tableName: '' }); +create({ apiName: '', databaseId: '', entityTableId: '', merkleStoreModuleId: '', pagesTableId: '', policies: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', provisions: '', publicSchemaId: '', publicSchemaName: '', scope: '', siteSurfaceModuleId: '', sitesTableId: '', storeNamePrefix: '' }); ``` ### PhoneNumbersModule @@ -1688,20 +1844,20 @@ create({ apiName: '', auditsTableId: '', createOrgApiKeyFunction: ```typescript // List all profilesModules const { data, isLoading } = useProfilesModulesQuery({ - selection: { fields: { actorTableId: true, apiName: true, databaseId: true, entityField: true, entityTableId: true, id: true, membershipsTableId: true, permissionsTableId: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, profileDefinitionGrantsTableId: true, profileDefinitionGrantsTableName: true, profileGrantsTableId: true, profileGrantsTableName: true, profilePermissionsTableId: true, profilePermissionsTableName: true, profileTemplatesTableId: true, profileTemplatesTableName: true, publicSchemaName: true, schemaId: true, scope: true, tableId: true, tableName: true } }, + selection: { fields: { actorTableId: true, apiName: true, capabilitiesTableId: true, databaseId: true, entityField: true, entityTableId: true, id: true, membershipProfilesTableId: true, membershipProfilesTableName: true, membershipsTableId: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, profileCapabilitiesTableId: true, profileCapabilitiesTableName: true, profileDefinitionGrantsTableId: true, profileDefinitionGrantsTableName: true, profileGrantsTableId: true, profileGrantsTableName: true, profileTemplatesTableId: true, profileTemplatesTableName: true, publicSchemaName: true, schemaId: true, scope: true, tableId: true, tableName: true } }, }); // Get one profilesModule const { data: item } = useProfilesModuleQuery({ id: '', - selection: { fields: { actorTableId: true, apiName: true, databaseId: true, entityField: true, entityTableId: true, id: true, membershipsTableId: true, permissionsTableId: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, profileDefinitionGrantsTableId: true, profileDefinitionGrantsTableName: true, profileGrantsTableId: true, profileGrantsTableName: true, profilePermissionsTableId: true, profilePermissionsTableName: true, profileTemplatesTableId: true, profileTemplatesTableName: true, publicSchemaName: true, schemaId: true, scope: true, tableId: true, tableName: true } }, + selection: { fields: { actorTableId: true, apiName: true, capabilitiesTableId: true, databaseId: true, entityField: true, entityTableId: true, id: true, membershipProfilesTableId: true, membershipProfilesTableName: true, membershipsTableId: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, profileCapabilitiesTableId: true, profileCapabilitiesTableName: true, profileDefinitionGrantsTableId: true, profileDefinitionGrantsTableName: true, profileGrantsTableId: true, profileGrantsTableName: true, profileTemplatesTableId: true, profileTemplatesTableName: true, publicSchemaName: true, schemaId: true, scope: true, tableId: true, tableName: true } }, }); // Create a profilesModule const { mutate: create } = useCreateProfilesModuleMutation({ selection: { fields: { id: true } }, }); -create({ actorTableId: '', apiName: '', databaseId: '', entityField: '', entityTableId: '', membershipsTableId: '', permissionsTableId: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', profileDefinitionGrantsTableId: '', profileDefinitionGrantsTableName: '', profileGrantsTableId: '', profileGrantsTableName: '', profilePermissionsTableId: '', profilePermissionsTableName: '', profileTemplatesTableId: '', profileTemplatesTableName: '', publicSchemaName: '', schemaId: '', scope: '', tableId: '', tableName: '' }); +create({ actorTableId: '', apiName: '', capabilitiesTableId: '', databaseId: '', entityField: '', entityTableId: '', membershipProfilesTableId: '', membershipProfilesTableName: '', membershipsTableId: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', profileCapabilitiesTableId: '', profileCapabilitiesTableName: '', profileDefinitionGrantsTableId: '', profileDefinitionGrantsTableName: '', profileGrantsTableId: '', profileGrantsTableName: '', profileTemplatesTableId: '', profileTemplatesTableName: '', publicSchemaName: '', schemaId: '', scope: '', tableId: '', tableName: '' }); ``` ### RateLimitMetersModule @@ -1709,20 +1865,20 @@ create({ actorTableId: '', apiName: '', databaseId: '', enti ```typescript // List all rateLimitMetersModules const { data, isLoading } = useRateLimitMetersModulesQuery({ - selection: { fields: { apiName: true, checkRateLimitFunction: true, databaseId: true, defaultPermissions: true, id: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, publicSchemaName: true, rateLimitOverridesTableId: true, rateLimitOverridesTableName: true, rateLimitStateTableId: true, rateLimitStateTableName: true, rateWindowLimitsTableId: true, rateWindowLimitsTableName: true, schemaId: true } }, + selection: { fields: { apiName: true, checkRateLimitFunction: true, databaseId: true, defaultCapabilities: true, id: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, publicSchemaName: true, rateLimitOverridesTableId: true, rateLimitOverridesTableName: true, rateLimitStateTableId: true, rateLimitStateTableName: true, rateWindowLimitsTableId: true, rateWindowLimitsTableName: true, schemaId: true } }, }); // Get one rateLimitMetersModule const { data: item } = useRateLimitMetersModuleQuery({ id: '', - selection: { fields: { apiName: true, checkRateLimitFunction: true, databaseId: true, defaultPermissions: true, id: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, publicSchemaName: true, rateLimitOverridesTableId: true, rateLimitOverridesTableName: true, rateLimitStateTableId: true, rateLimitStateTableName: true, rateWindowLimitsTableId: true, rateWindowLimitsTableName: true, schemaId: true } }, + selection: { fields: { apiName: true, checkRateLimitFunction: true, databaseId: true, defaultCapabilities: true, id: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, publicSchemaName: true, rateLimitOverridesTableId: true, rateLimitOverridesTableName: true, rateLimitStateTableId: true, rateLimitStateTableName: true, rateWindowLimitsTableId: true, rateWindowLimitsTableName: true, schemaId: true } }, }); // Create a rateLimitMetersModule const { mutate: create } = useCreateRateLimitMetersModuleMutation({ selection: { fields: { id: true } }, }); -create({ apiName: '', checkRateLimitFunction: '', databaseId: '', defaultPermissions: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', publicSchemaName: '', rateLimitOverridesTableId: '', rateLimitOverridesTableName: '', rateLimitStateTableId: '', rateLimitStateTableName: '', rateWindowLimitsTableId: '', rateWindowLimitsTableName: '', schemaId: '' }); +create({ apiName: '', checkRateLimitFunction: '', databaseId: '', defaultCapabilities: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', publicSchemaName: '', rateLimitOverridesTableId: '', rateLimitOverridesTableName: '', rateLimitStateTableId: '', rateLimitStateTableName: '', rateWindowLimitsTableId: '', rateWindowLimitsTableName: '', schemaId: '' }); ``` ### RateLimitsModule @@ -1793,20 +1949,20 @@ create({ apiRequired: '', createIndex: '', databaseId: ' ```typescript // List all resourceModules const { data, isLoading } = useResourceModulesQuery({ - selection: { fields: { apiName: true, databaseId: true, defaultPermissions: true, entityField: true, entityTableId: true, id: true, installationStoreName: true, merkleStoreModuleId: true, namespaceModuleId: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provisions: true, publicSchemaName: true, requirementsStateViewName: true, resolvedRequirementsViewName: true, resourceBillingRollupFunction: true, resourceDefinitionsTableId: true, resourceDefinitionsTableName: true, resourceEventsTableId: true, resourceEventsTableName: true, resourceInstallationsTableId: true, resourceInstallationsTableName: true, resourceStatusChecksTableId: true, resourceStatusChecksTableName: true, resourceUsageLogTableId: true, resourceUsageLogTableName: true, resourceUsageSummaryTableId: true, resourceUsageSummaryTableName: true, resourcesTableId: true, resourcesTableName: true, rollupResourceUsageSummaryFunction: true, schemaId: true, scope: true } }, + selection: { fields: { apiName: true, databaseId: true, defaultCapabilities: true, entityField: true, entityTableId: true, id: true, installationStoreName: true, merkleStoreModuleId: true, namespaceModuleId: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provisions: true, publicSchemaName: true, requirementsStateViewName: true, resolvedRequirementsViewName: true, resourceBillingRollupFunction: true, resourceDefinitionsTableId: true, resourceDefinitionsTableName: true, resourceEventsTableId: true, resourceEventsTableName: true, resourceInstallationsTableId: true, resourceInstallationsTableName: true, resourceStatusChecksTableId: true, resourceStatusChecksTableName: true, resourceUsageLogTableId: true, resourceUsageLogTableName: true, resourceUsageSummaryTableId: true, resourceUsageSummaryTableName: true, resourcesTableId: true, resourcesTableName: true, rollupResourceUsageSummaryFunction: true, schemaId: true, scope: true } }, }); // Get one resourceModule const { data: item } = useResourceModuleQuery({ id: '', - selection: { fields: { apiName: true, databaseId: true, defaultPermissions: true, entityField: true, entityTableId: true, id: true, installationStoreName: true, merkleStoreModuleId: true, namespaceModuleId: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provisions: true, publicSchemaName: true, requirementsStateViewName: true, resolvedRequirementsViewName: true, resourceBillingRollupFunction: true, resourceDefinitionsTableId: true, resourceDefinitionsTableName: true, resourceEventsTableId: true, resourceEventsTableName: true, resourceInstallationsTableId: true, resourceInstallationsTableName: true, resourceStatusChecksTableId: true, resourceStatusChecksTableName: true, resourceUsageLogTableId: true, resourceUsageLogTableName: true, resourceUsageSummaryTableId: true, resourceUsageSummaryTableName: true, resourcesTableId: true, resourcesTableName: true, rollupResourceUsageSummaryFunction: true, schemaId: true, scope: true } }, + selection: { fields: { apiName: true, databaseId: true, defaultCapabilities: true, entityField: true, entityTableId: true, id: true, installationStoreName: true, merkleStoreModuleId: true, namespaceModuleId: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provisions: true, publicSchemaName: true, requirementsStateViewName: true, resolvedRequirementsViewName: true, resourceBillingRollupFunction: true, resourceDefinitionsTableId: true, resourceDefinitionsTableName: true, resourceEventsTableId: true, resourceEventsTableName: true, resourceInstallationsTableId: true, resourceInstallationsTableName: true, resourceStatusChecksTableId: true, resourceStatusChecksTableName: true, resourceUsageLogTableId: true, resourceUsageLogTableName: true, resourceUsageSummaryTableId: true, resourceUsageSummaryTableName: true, resourcesTableId: true, resourcesTableName: true, rollupResourceUsageSummaryFunction: true, schemaId: true, scope: true } }, }); // Create a resourceModule const { mutate: create } = useCreateResourceModuleMutation({ selection: { fields: { id: true } }, }); -create({ apiName: '', databaseId: '', defaultPermissions: '', entityField: '', entityTableId: '', installationStoreName: '', merkleStoreModuleId: '', namespaceModuleId: '', policies: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', provisions: '', publicSchemaName: '', requirementsStateViewName: '', resolvedRequirementsViewName: '', resourceBillingRollupFunction: '', resourceDefinitionsTableId: '', resourceDefinitionsTableName: '', resourceEventsTableId: '', resourceEventsTableName: '', resourceInstallationsTableId: '', resourceInstallationsTableName: '', resourceStatusChecksTableId: '', resourceStatusChecksTableName: '', resourceUsageLogTableId: '', resourceUsageLogTableName: '', resourceUsageSummaryTableId: '', resourceUsageSummaryTableName: '', resourcesTableId: '', resourcesTableName: '', rollupResourceUsageSummaryFunction: '', schemaId: '', scope: '' }); +create({ apiName: '', databaseId: '', defaultCapabilities: '', entityField: '', entityTableId: '', installationStoreName: '', merkleStoreModuleId: '', namespaceModuleId: '', policies: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', provisions: '', publicSchemaName: '', requirementsStateViewName: '', resolvedRequirementsViewName: '', resourceBillingRollupFunction: '', resourceDefinitionsTableId: '', resourceDefinitionsTableName: '', resourceEventsTableId: '', resourceEventsTableName: '', resourceInstallationsTableId: '', resourceInstallationsTableName: '', resourceStatusChecksTableId: '', resourceStatusChecksTableName: '', resourceUsageLogTableId: '', resourceUsageLogTableName: '', resourceUsageSummaryTableId: '', resourceUsageSummaryTableName: '', resourcesTableId: '', resourcesTableName: '', rollupResourceUsageSummaryFunction: '', schemaId: '', scope: '' }); ``` ### RlsModule @@ -1835,20 +1991,41 @@ create({ apiName: '', authenticate: '', authenticateStrict: '', - selection: { fields: { apiName: true, catalogModuleId: true, databaseId: true, defaultPermissions: true, domainModuleId: true, entityField: true, entityTableId: true, hostnameBindingsTableId: true, hostnameBindingsTableName: true, id: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provisions: true, publicSchemaName: true, resolverFunctionName: true, routeBindingsTableId: true, routeBindingsTableName: true, routesTableId: true, routesTableName: true, schemaId: true, scope: true } }, + selection: { fields: { apiName: true, appLinksFunctionName: true, catalogModuleId: true, databaseId: true, deepLinkFunctionName: true, defaultCapabilities: true, domainModuleId: true, entityField: true, entityTableId: true, hostnameBindingsTableId: true, hostnameBindingsTableName: true, id: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provisions: true, publicSchemaName: true, resolverFunctionName: true, routeBindingsTableId: true, routeBindingsTableName: true, routesTableId: true, routesTableName: true, schemaId: true, scope: true } }, }); // Create a routeModule const { mutate: create } = useCreateRouteModuleMutation({ selection: { fields: { id: true } }, }); -create({ apiName: '', catalogModuleId: '', databaseId: '', defaultPermissions: '', domainModuleId: '', entityField: '', entityTableId: '', hostnameBindingsTableId: '', hostnameBindingsTableName: '', policies: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', provisions: '', publicSchemaName: '', resolverFunctionName: '', routeBindingsTableId: '', routeBindingsTableName: '', routesTableId: '', routesTableName: '', schemaId: '', scope: '' }); +create({ apiName: '', appLinksFunctionName: '', catalogModuleId: '', databaseId: '', deepLinkFunctionName: '', defaultCapabilities: '', domainModuleId: '', entityField: '', entityTableId: '', hostnameBindingsTableId: '', hostnameBindingsTableName: '', policies: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', provisions: '', publicSchemaName: '', resolverFunctionName: '', routeBindingsTableId: '', routeBindingsTableName: '', routesTableId: '', routesTableName: '', schemaId: '', scope: '' }); +``` + +### ScopeTypesModule + +```typescript +// List all scopeTypesModules +const { data, isLoading } = useScopeTypesModulesQuery({ + selection: { fields: { databaseId: true, id: true, privateSchemaName: true, schemaId: true, scopeTypesTableId: true } }, +}); + +// Get one scopeTypesModule +const { data: item } = useScopeTypesModuleQuery({ + id: '', + selection: { fields: { databaseId: true, id: true, privateSchemaName: true, schemaId: true, scopeTypesTableId: true } }, +}); + +// Create a scopeTypesModule +const { mutate: create } = useCreateScopeTypesModuleMutation({ + selection: { fields: { id: true } }, +}); +create({ databaseId: '', privateSchemaName: '', schemaId: '', scopeTypesTableId: '' }); ``` ### SecureTableProvision @@ -1919,20 +2096,20 @@ create({ authSettingsTableId: '', authSettingsTableName: '', datab ```typescript // List all siteSurfaceModules const { data, isLoading } = useSiteSurfaceModulesQuery({ - selection: { fields: { apiName: true, catalogModuleId: true, databaseId: true, defaultPermissions: true, entityField: true, entityTableId: true, id: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provisions: true, publicSchemaName: true, schemaId: true, scope: true, siteAppLinksTableId: true, siteAppLinksTableName: true, siteDeepLinksTableId: true, siteDeepLinksTableName: true, siteErrorPagesTableId: true, siteErrorPagesTableName: true, siteMetadataTableId: true, siteMetadataTableName: true, siteModulesTableId: true, siteModulesTableName: true, siteThemesTableId: true, siteThemesTableName: true, siteWebConfigTableId: true, siteWebConfigTableName: true, sitesTableId: true, sitesTableName: true } }, + selection: { fields: { apiName: true, catalogModuleId: true, databaseId: true, defaultCapabilities: true, entityField: true, entityTableId: true, id: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provisions: true, publicSchemaName: true, schemaId: true, scope: true, siteAppLinksTableId: true, siteAppLinksTableName: true, siteDeepLinksTableId: true, siteDeepLinksTableName: true, siteErrorPagesTableId: true, siteErrorPagesTableName: true, siteMetadataTableId: true, siteMetadataTableName: true, siteModulesTableId: true, siteModulesTableName: true, siteThemesTableId: true, siteThemesTableName: true, siteWebConfigTableId: true, siteWebConfigTableName: true, sitesTableId: true, sitesTableName: true } }, }); // Get one siteSurfaceModule const { data: item } = useSiteSurfaceModuleQuery({ id: '', - selection: { fields: { apiName: true, catalogModuleId: true, databaseId: true, defaultPermissions: true, entityField: true, entityTableId: true, id: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provisions: true, publicSchemaName: true, schemaId: true, scope: true, siteAppLinksTableId: true, siteAppLinksTableName: true, siteDeepLinksTableId: true, siteDeepLinksTableName: true, siteErrorPagesTableId: true, siteErrorPagesTableName: true, siteMetadataTableId: true, siteMetadataTableName: true, siteModulesTableId: true, siteModulesTableName: true, siteThemesTableId: true, siteThemesTableName: true, siteWebConfigTableId: true, siteWebConfigTableName: true, sitesTableId: true, sitesTableName: true } }, + selection: { fields: { apiName: true, catalogModuleId: true, databaseId: true, defaultCapabilities: true, entityField: true, entityTableId: true, id: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provisions: true, publicSchemaName: true, schemaId: true, scope: true, siteAppLinksTableId: true, siteAppLinksTableName: true, siteDeepLinksTableId: true, siteDeepLinksTableName: true, siteErrorPagesTableId: true, siteErrorPagesTableName: true, siteMetadataTableId: true, siteMetadataTableName: true, siteModulesTableId: true, siteModulesTableName: true, siteThemesTableId: true, siteThemesTableName: true, siteWebConfigTableId: true, siteWebConfigTableName: true, sitesTableId: true, sitesTableName: true } }, }); // Create a siteSurfaceModule const { mutate: create } = useCreateSiteSurfaceModuleMutation({ selection: { fields: { id: true } }, }); -create({ apiName: '', catalogModuleId: '', databaseId: '', defaultPermissions: '', entityField: '', entityTableId: '', policies: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', provisions: '', publicSchemaName: '', schemaId: '', scope: '', siteAppLinksTableId: '', siteAppLinksTableName: '', siteDeepLinksTableId: '', siteDeepLinksTableName: '', siteErrorPagesTableId: '', siteErrorPagesTableName: '', siteMetadataTableId: '', siteMetadataTableName: '', siteModulesTableId: '', siteModulesTableName: '', siteThemesTableId: '', siteThemesTableName: '', siteWebConfigTableId: '', siteWebConfigTableName: '', sitesTableId: '', sitesTableName: '' }); +create({ apiName: '', catalogModuleId: '', databaseId: '', defaultCapabilities: '', entityField: '', entityTableId: '', policies: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', provisions: '', publicSchemaName: '', schemaId: '', scope: '', siteAppLinksTableId: '', siteAppLinksTableName: '', siteDeepLinksTableId: '', siteDeepLinksTableName: '', siteErrorPagesTableId: '', siteErrorPagesTableName: '', siteMetadataTableId: '', siteMetadataTableName: '', siteModulesTableId: '', siteModulesTableName: '', siteThemesTableId: '', siteThemesTableName: '', siteWebConfigTableId: '', siteWebConfigTableName: '', sitesTableId: '', sitesTableName: '' }); ``` ### StorageLogModule @@ -1961,20 +2138,20 @@ create({ actorFkTableId: '', apiName: '', databaseId: '', en ```typescript // List all storageModules const { data, isLoading } = useStorageModulesQuery({ - selection: { fields: { allowedOrigins: true, apiName: true, bucketsTableId: true, bucketsTableName: true, cacheTtlSeconds: true, catalogModuleId: true, confirmUploadDelay: true, databaseId: true, defaultMaxFileSize: true, defaultPermissions: true, downloadUrlExpirySeconds: true, endpoint: true, entityField: true, entityTableId: true, fileEventsTableId: true, filesTableId: true, filesTableName: true, hasAuditLog: true, hasConfirmUpload: true, hasContentHash: true, hasCustomKeys: true, hasPathShares: true, hasVersioning: true, id: true, maxBulkFiles: true, maxBulkTotalSize: true, maxFilenameLength: true, pathSharesTableId: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provider: true, provisions: true, publicSchemaName: true, publicUrlPrefix: true, restrictReads: true, schemaId: true, scope: true, uploadUrlExpirySeconds: true } }, + selection: { fields: { allowedOrigins: true, apiName: true, bucketsTableId: true, bucketsTableName: true, cacheTtlSeconds: true, catalogModuleId: true, confirmUploadDelay: true, databaseId: true, defaultCapabilities: true, defaultMaxFileSize: true, downloadUrlExpirySeconds: true, endpoint: true, entityField: true, entityTableId: true, fileEventsTableId: true, filesTableId: true, filesTableName: true, hasAuditLog: true, hasConfirmUpload: true, hasContentHash: true, hasCustomKeys: true, hasPathShares: true, hasVersioning: true, id: true, maxBulkFiles: true, maxBulkTotalSize: true, maxFilenameLength: true, pathSharesTableId: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provider: true, provisions: true, publicSchemaName: true, publicUrlPrefix: true, restrictReads: true, schemaId: true, scope: true, uploadUrlExpirySeconds: true } }, }); // Get one storageModule const { data: item } = useStorageModuleQuery({ id: '', - selection: { fields: { allowedOrigins: true, apiName: true, bucketsTableId: true, bucketsTableName: true, cacheTtlSeconds: true, catalogModuleId: true, confirmUploadDelay: true, databaseId: true, defaultMaxFileSize: true, defaultPermissions: true, downloadUrlExpirySeconds: true, endpoint: true, entityField: true, entityTableId: true, fileEventsTableId: true, filesTableId: true, filesTableName: true, hasAuditLog: true, hasConfirmUpload: true, hasContentHash: true, hasCustomKeys: true, hasPathShares: true, hasVersioning: true, id: true, maxBulkFiles: true, maxBulkTotalSize: true, maxFilenameLength: true, pathSharesTableId: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provider: true, provisions: true, publicSchemaName: true, publicUrlPrefix: true, restrictReads: true, schemaId: true, scope: true, uploadUrlExpirySeconds: true } }, + selection: { fields: { allowedOrigins: true, apiName: true, bucketsTableId: true, bucketsTableName: true, cacheTtlSeconds: true, catalogModuleId: true, confirmUploadDelay: true, databaseId: true, defaultCapabilities: true, defaultMaxFileSize: true, downloadUrlExpirySeconds: true, endpoint: true, entityField: true, entityTableId: true, fileEventsTableId: true, filesTableId: true, filesTableName: true, hasAuditLog: true, hasConfirmUpload: true, hasContentHash: true, hasCustomKeys: true, hasPathShares: true, hasVersioning: true, id: true, maxBulkFiles: true, maxBulkTotalSize: true, maxFilenameLength: true, pathSharesTableId: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provider: true, provisions: true, publicSchemaName: true, publicUrlPrefix: true, restrictReads: true, schemaId: true, scope: true, uploadUrlExpirySeconds: true } }, }); // Create a storageModule const { mutate: create } = useCreateStorageModuleMutation({ selection: { fields: { id: true } }, }); -create({ allowedOrigins: '', apiName: '', bucketsTableId: '', bucketsTableName: '', cacheTtlSeconds: '', catalogModuleId: '', confirmUploadDelay: '', databaseId: '', defaultMaxFileSize: '', defaultPermissions: '', downloadUrlExpirySeconds: '', endpoint: '', entityField: '', entityTableId: '', fileEventsTableId: '', filesTableId: '', filesTableName: '', hasAuditLog: '', hasConfirmUpload: '', hasContentHash: '', hasCustomKeys: '', hasPathShares: '', hasVersioning: '', maxBulkFiles: '', maxBulkTotalSize: '', maxFilenameLength: '', pathSharesTableId: '', policies: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', provider: '', provisions: '', publicSchemaName: '', publicUrlPrefix: '', restrictReads: '', schemaId: '', scope: '', uploadUrlExpirySeconds: '' }); +create({ allowedOrigins: '', apiName: '', bucketsTableId: '', bucketsTableName: '', cacheTtlSeconds: '', catalogModuleId: '', confirmUploadDelay: '', databaseId: '', defaultCapabilities: '', defaultMaxFileSize: '', downloadUrlExpirySeconds: '', endpoint: '', entityField: '', entityTableId: '', fileEventsTableId: '', filesTableId: '', filesTableName: '', hasAuditLog: '', hasConfirmUpload: '', hasContentHash: '', hasCustomKeys: '', hasPathShares: '', hasVersioning: '', maxBulkFiles: '', maxBulkTotalSize: '', maxFilenameLength: '', pathSharesTableId: '', policies: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', provider: '', provisions: '', publicSchemaName: '', publicUrlPrefix: '', restrictReads: '', schemaId: '', scope: '', uploadUrlExpirySeconds: '' }); ``` ### TransferLogModule @@ -2061,6 +2238,27 @@ const { mutate: create } = useCreateUserSettingsModuleMutation({ create({ apiName: '', databaseId: '', ownerTableId: '', schemaId: '', tableId: '', tableName: '' }); ``` +### UserSettingsSecurityModule + +```typescript +// List all userSettingsSecurityModules +const { data, isLoading } = useUserSettingsSecurityModulesQuery({ + selection: { fields: { apiName: true, databaseId: true, id: true, ownerTableId: true, schemaId: true, tableId: true, tableName: true } }, +}); + +// Get one userSettingsSecurityModule +const { data: item } = useUserSettingsSecurityModuleQuery({ + id: '', + selection: { fields: { apiName: true, databaseId: true, id: true, ownerTableId: true, schemaId: true, tableId: true, tableName: true } }, +}); + +// Create a userSettingsSecurityModule +const { mutate: create } = useCreateUserSettingsSecurityModuleMutation({ + selection: { fields: { id: true } }, +}); +create({ apiName: '', databaseId: '', ownerTableId: '', schemaId: '', tableId: '', tableName: '' }); +``` + ### UserStateModule ```typescript @@ -2150,52 +2348,24 @@ create({ apiName: '', databaseId: '', ownerTableId: '', priv ```typescript // List all webhookModules const { data, isLoading } = useWebhookModulesQuery({ - selection: { fields: { apiName: true, databaseId: true, defaultPermissions: true, entityField: true, entityTableId: true, functionInvocationModuleId: true, functionModuleId: true, id: true, infraSecretsModuleId: true, namespaceModuleId: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provisions: true, publicSchemaName: true, schemaId: true, scope: true, webhookEndpointsTableId: true, webhookEndpointsTableName: true, webhookEventsTableId: true, webhookEventsTableName: true } }, + selection: { fields: { apiName: true, databaseId: true, defaultCapabilities: true, entityField: true, entityTableId: true, functionInvocationModuleId: true, functionModuleId: true, id: true, infraSecretsModuleId: true, namespaceModuleId: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provisions: true, publicSchemaName: true, schemaId: true, scope: true, webhookEndpointsTableId: true, webhookEndpointsTableName: true, webhookEventsTableId: true, webhookEventsTableName: true } }, }); // Get one webhookModule const { data: item } = useWebhookModuleQuery({ id: '', - selection: { fields: { apiName: true, databaseId: true, defaultPermissions: true, entityField: true, entityTableId: true, functionInvocationModuleId: true, functionModuleId: true, id: true, infraSecretsModuleId: true, namespaceModuleId: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provisions: true, publicSchemaName: true, schemaId: true, scope: true, webhookEndpointsTableId: true, webhookEndpointsTableName: true, webhookEventsTableId: true, webhookEventsTableName: true } }, + selection: { fields: { apiName: true, databaseId: true, defaultCapabilities: true, entityField: true, entityTableId: true, functionInvocationModuleId: true, functionModuleId: true, id: true, infraSecretsModuleId: true, namespaceModuleId: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provisions: true, publicSchemaName: true, schemaId: true, scope: true, webhookEndpointsTableId: true, webhookEndpointsTableName: true, webhookEventsTableId: true, webhookEventsTableName: true } }, }); // Create a webhookModule const { mutate: create } = useCreateWebhookModuleMutation({ selection: { fields: { id: true } }, }); -create({ apiName: '', databaseId: '', defaultPermissions: '', entityField: '', entityTableId: '', functionInvocationModuleId: '', functionModuleId: '', infraSecretsModuleId: '', namespaceModuleId: '', policies: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', provisions: '', publicSchemaName: '', schemaId: '', scope: '', webhookEndpointsTableId: '', webhookEndpointsTableName: '', webhookEventsTableId: '', webhookEventsTableName: '' }); +create({ apiName: '', databaseId: '', defaultCapabilities: '', entityField: '', entityTableId: '', functionInvocationModuleId: '', functionModuleId: '', infraSecretsModuleId: '', namespaceModuleId: '', policies: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', provisions: '', publicSchemaName: '', schemaId: '', scope: '', webhookEndpointsTableId: '', webhookEndpointsTableName: '', webhookEventsTableId: '', webhookEventsTableName: '' }); ``` ## Custom Operation Hooks -### `useResolveBlueprintFieldQuery` - -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. - -- **Type:** query -- **Arguments:** - - | Argument | Type | - |----------|------| - | `databaseId` | UUID | - | `fieldName` | String | - | `tableId` | UUID | - -### `useResolveBlueprintTableQuery` - -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. - -- **Type:** query -- **Arguments:** - - | Argument | Type | - |----------|------| - | `databaseId` | UUID | - | `defaultSchemaId` | UUID | - | `schemaName` | String | - | `tableMap` | JSON | - | `tableName` | String | - ### `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. 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 function_module is installed, 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. @@ -2232,83 +2402,6 @@ and lifecycle settings. |----------|------| | `input` | ProvisionBucketInput (required) | -### `useProvisionCheckConstraintMutation` - -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. - -- **Type:** mutation -- **Arguments:** - - | Argument | Type | - |----------|------| - | `input` | ProvisionCheckConstraintInput (required) | - -### `useProvisionFullTextSearchMutation` - -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. - -- **Type:** mutation -- **Arguments:** - - | Argument | Type | - |----------|------| - | `input` | ProvisionFullTextSearchInput (required) | - -### `useProvisionIndexMutation` - -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. - -- **Type:** mutation -- **Arguments:** - - | Argument | Type | - |----------|------| - | `input` | ProvisionIndexInput (required) | - -### `useProvisionRelationMutation` - -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). - -- **Type:** mutation -- **Arguments:** - - | Argument | Type | - |----------|------| - | `input` | ProvisionRelationInput (required) | - -### `useProvisionSpatialRelationMutation` - -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. - -- **Type:** mutation -- **Arguments:** - - | Argument | Type | - |----------|------| - | `input` | ProvisionSpatialRelationInput (required) | - -### `useProvisionTableMutation` - -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` | ProvisionTableInput (required) | - -### `useProvisionUniqueConstraintMutation` - -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. - -- **Type:** mutation -- **Arguments:** - - | Argument | Type | - |----------|------| - | `input` | ProvisionUniqueConstraintInput (required) | - --- Built by the [Constructive](https://constructive.io) team. diff --git a/sdk/constructive-react/src/modules/hooks/index.ts b/sdk/constructive-react/src/modules/hooks/index.ts index a13c0bdc09..368f66ae10 100644 --- a/sdk/constructive-react/src/modules/hooks/index.ts +++ b/sdk/constructive-react/src/modules/hooks/index.ts @@ -2,7 +2,7 @@ * GraphQL SDK * @generated by @constructive-io/graphql-codegen * - * Tables: AgentModule, ApiSurfaceModule, AppModule, BillingModule, BillingProviderModule, Blueprint, BlueprintConstruction, BlueprintTemplate, CatalogModule, ComputeLogModule, ConfigSecretsUserModule, ConnectedAccountsModule, CryptoAddressesModule, CryptoAuthModule, DatabaseProvisionModule, DatabaseSettingsModule, DbPoolConfig, DbPool, DbPresetModule, DbUsageModule, DefaultIdsModule, DenormalizedTableField, DevicesModule, DomainModule, EmailsModule, EntityTypeProvision, EventsModule, FunctionDeploymentModule, FunctionInvocationModule, FunctionModule, GraphExecutionModule, GraphModule, HierarchyModule, HttpRouteModule, I18NModule, IdentityProvidersModule, InferenceLogModule, InfraConfigModule, InfraSecretsModule, IntegrationProvidersModule, InternalSecretsModule, InvitesModule, LimitsModule, MembershipTypesModule, MembershipsModule, MerkleStoreModule, NamespaceModule, NotificationsModule, PagesModule, PermissionsModule, PhoneNumbersModule, PlansModule, PrincipalAuthModule, ProfilesModule, RateLimitMetersModule, RateLimitsModule, RealtimeModule, RelationProvision, ResourceModule, RlsModule, RouteModule, SecureTableProvision, SessionSecretsModule, SessionsModule, SiteSurfaceModule, StorageLogModule, StorageModule, TransferLogModule, UserAuthModule, UserCredentialsModule, UserSettingsModule, UserStateModule, UsersModule, WebauthnAuthModule, WebauthnCredentialsModule, WebhookModule + * Tables: AgentModule, ApiSurfaceModule, AppModule, BillingModule, BillingProviderModule, Blueprint, BlueprintConstruction, BlueprintTemplate, CapabilitiesModule, CatalogModule, ComputeLogModule, ConfigSecretsUserModule, ConnectedAccountsModule, ContentPresetModule, CryptoAddressesModule, CryptoAuthModule, DataCapabilitiesField, DatabaseProvisionModule, DatabaseSettingsModule, DbPoolConfig, DbPool, DbPresetModule, DbUsageModule, DefaultIdsModule, DenormalizedTableField, DevicesModule, DomainModule, EmailSenderModule, EmailsModule, EntityTypeProvision, EventsModule, FileRefField, FunctionDeploymentModule, FunctionInvocationModule, FunctionModule, GraphExecutionModule, GraphModule, HierarchyModule, HttpRouteModule, I18NModule, IdentityProvidersModule, InferenceLogModule, InfraConfigModule, InfraSecretsModule, IntegrationProvidersModule, InternalSecretsModule, InvitesModule, LimitsModule, MembershipTypesModule, MembershipsModule, MerkleStoreModule, NamespaceModule, NotificationsModule, OauthRequestsModule, PagesModule, PhoneNumbersModule, PlansModule, PrincipalAuthModule, ProfilesModule, RateLimitMetersModule, RateLimitsModule, RealtimeModule, RelationProvision, ResourceModule, RlsModule, RouteModule, ScopeTypesModule, SecureTableProvision, SessionSecretsModule, SessionsModule, SiteSurfaceModule, StorageLogModule, StorageModule, TransferLogModule, UserAuthModule, UserCredentialsModule, UserSettingsModule, UserSettingsSecurityModule, UserStateModule, UsersModule, WebauthnAuthModule, WebauthnCredentialsModule, WebhookModule * * Usage: * diff --git a/sdk/constructive-react/src/modules/hooks/invalidation.ts b/sdk/constructive-react/src/modules/hooks/invalidation.ts index 4c3a195f3e..24cafc48e2 100644 --- a/sdk/constructive-react/src/modules/hooks/invalidation.ts +++ b/sdk/constructive-react/src/modules/hooks/invalidation.ts @@ -23,12 +23,15 @@ import { blueprintKeys, blueprintConstructionKeys, blueprintTemplateKeys, + capabilitiesModuleKeys, catalogModuleKeys, computeLogModuleKeys, configSecretsUserModuleKeys, connectedAccountsModuleKeys, + contentPresetModuleKeys, cryptoAddressesModuleKeys, cryptoAuthModuleKeys, + dataCapabilitiesFieldKeys, databaseProvisionModuleKeys, databaseSettingsModuleKeys, dbPoolConfigKeys, @@ -39,9 +42,11 @@ import { denormalizedTableFieldKeys, devicesModuleKeys, domainModuleKeys, + emailSenderModuleKeys, emailsModuleKeys, entityTypeProvisionKeys, eventsModuleKeys, + fileRefFieldKeys, functionDeploymentModuleKeys, functionInvocationModuleKeys, functionModuleKeys, @@ -63,8 +68,8 @@ import { merkleStoreModuleKeys, namespaceModuleKeys, notificationsModuleKeys, + oauthRequestsModuleKeys, pagesModuleKeys, - permissionsModuleKeys, phoneNumbersModuleKeys, plansModuleKeys, principalAuthModuleKeys, @@ -76,6 +81,7 @@ import { resourceModuleKeys, rlsModuleKeys, routeModuleKeys, + scopeTypesModuleKeys, secureTableProvisionKeys, sessionSecretsModuleKeys, sessionsModuleKeys, @@ -86,6 +92,7 @@ import { userAuthModuleKeys, userCredentialsModuleKeys, userSettingsModuleKeys, + userSettingsSecurityModuleKeys, userStateModuleKeys, usersModuleKeys, webauthnAuthModuleKeys, @@ -248,6 +255,23 @@ export const invalidate = { queryKey: blueprintTemplateKeys.detail(id), }), }, + /** Invalidate capabilitiesModule queries */ capabilitiesModule: { + /** Invalidate all capabilitiesModule queries */ all: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: capabilitiesModuleKeys.all, + }), + /** Invalidate capabilitiesModule list queries */ lists: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: capabilitiesModuleKeys.lists(), + }), + /** Invalidate a specific capabilitiesModule */ detail: ( + queryClient: QueryClient, + id: string | number + ) => + queryClient.invalidateQueries({ + queryKey: capabilitiesModuleKeys.detail(id), + }), + }, /** Invalidate catalogModule queries */ catalogModule: { /** Invalidate all catalogModule queries */ all: (queryClient: QueryClient) => queryClient.invalidateQueries({ @@ -316,6 +340,23 @@ export const invalidate = { queryKey: connectedAccountsModuleKeys.detail(id), }), }, + /** Invalidate contentPresetModule queries */ contentPresetModule: { + /** Invalidate all contentPresetModule queries */ all: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: contentPresetModuleKeys.all, + }), + /** Invalidate contentPresetModule list queries */ lists: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: contentPresetModuleKeys.lists(), + }), + /** Invalidate a specific contentPresetModule */ detail: ( + queryClient: QueryClient, + id: string | number + ) => + queryClient.invalidateQueries({ + queryKey: contentPresetModuleKeys.detail(id), + }), + }, /** Invalidate cryptoAddressesModule queries */ cryptoAddressesModule: { /** Invalidate all cryptoAddressesModule queries */ all: (queryClient: QueryClient) => queryClient.invalidateQueries({ @@ -350,6 +391,23 @@ export const invalidate = { queryKey: cryptoAuthModuleKeys.detail(id), }), }, + /** Invalidate dataCapabilitiesField queries */ dataCapabilitiesField: { + /** Invalidate all dataCapabilitiesField queries */ all: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: dataCapabilitiesFieldKeys.all, + }), + /** Invalidate dataCapabilitiesField list queries */ lists: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: dataCapabilitiesFieldKeys.lists(), + }), + /** Invalidate a specific dataCapabilitiesField */ detail: ( + queryClient: QueryClient, + id: string | number + ) => + queryClient.invalidateQueries({ + queryKey: dataCapabilitiesFieldKeys.detail(id), + }), + }, /** Invalidate databaseProvisionModule queries */ databaseProvisionModule: { /** Invalidate all databaseProvisionModule queries */ all: (queryClient: QueryClient) => queryClient.invalidateQueries({ @@ -517,6 +575,23 @@ export const invalidate = { queryKey: domainModuleKeys.detail(id), }), }, + /** Invalidate emailSenderModule queries */ emailSenderModule: { + /** Invalidate all emailSenderModule queries */ all: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: emailSenderModuleKeys.all, + }), + /** Invalidate emailSenderModule list queries */ lists: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: emailSenderModuleKeys.lists(), + }), + /** Invalidate a specific emailSenderModule */ detail: ( + queryClient: QueryClient, + id: string | number + ) => + queryClient.invalidateQueries({ + queryKey: emailSenderModuleKeys.detail(id), + }), + }, /** Invalidate emailsModule queries */ emailsModule: { /** Invalidate all emailsModule queries */ all: (queryClient: QueryClient) => queryClient.invalidateQueries({ @@ -568,6 +643,23 @@ export const invalidate = { queryKey: eventsModuleKeys.detail(id), }), }, + /** Invalidate fileRefField queries */ fileRefField: { + /** Invalidate all fileRefField queries */ all: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: fileRefFieldKeys.all, + }), + /** Invalidate fileRefField list queries */ lists: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: fileRefFieldKeys.lists(), + }), + /** Invalidate a specific fileRefField */ detail: ( + queryClient: QueryClient, + id: string | number + ) => + queryClient.invalidateQueries({ + queryKey: fileRefFieldKeys.detail(id), + }), + }, /** Invalidate functionDeploymentModule queries */ functionDeploymentModule: { /** Invalidate all functionDeploymentModule queries */ all: (queryClient: QueryClient) => queryClient.invalidateQueries({ @@ -925,38 +1017,38 @@ export const invalidate = { queryKey: notificationsModuleKeys.detail(id), }), }, - /** Invalidate pagesModule queries */ pagesModule: { - /** Invalidate all pagesModule queries */ all: (queryClient: QueryClient) => + /** Invalidate oauthRequestsModule queries */ oauthRequestsModule: { + /** Invalidate all oauthRequestsModule queries */ all: (queryClient: QueryClient) => queryClient.invalidateQueries({ - queryKey: pagesModuleKeys.all, + queryKey: oauthRequestsModuleKeys.all, }), - /** Invalidate pagesModule list queries */ lists: (queryClient: QueryClient) => + /** Invalidate oauthRequestsModule list queries */ lists: (queryClient: QueryClient) => queryClient.invalidateQueries({ - queryKey: pagesModuleKeys.lists(), + queryKey: oauthRequestsModuleKeys.lists(), }), - /** Invalidate a specific pagesModule */ detail: ( + /** Invalidate a specific oauthRequestsModule */ detail: ( queryClient: QueryClient, id: string | number ) => queryClient.invalidateQueries({ - queryKey: pagesModuleKeys.detail(id), + queryKey: oauthRequestsModuleKeys.detail(id), }), }, - /** Invalidate permissionsModule queries */ permissionsModule: { - /** Invalidate all permissionsModule queries */ all: (queryClient: QueryClient) => + /** Invalidate pagesModule queries */ pagesModule: { + /** Invalidate all pagesModule queries */ all: (queryClient: QueryClient) => queryClient.invalidateQueries({ - queryKey: permissionsModuleKeys.all, + queryKey: pagesModuleKeys.all, }), - /** Invalidate permissionsModule list queries */ lists: (queryClient: QueryClient) => + /** Invalidate pagesModule list queries */ lists: (queryClient: QueryClient) => queryClient.invalidateQueries({ - queryKey: permissionsModuleKeys.lists(), + queryKey: pagesModuleKeys.lists(), }), - /** Invalidate a specific permissionsModule */ detail: ( + /** Invalidate a specific pagesModule */ detail: ( queryClient: QueryClient, id: string | number ) => queryClient.invalidateQueries({ - queryKey: permissionsModuleKeys.detail(id), + queryKey: pagesModuleKeys.detail(id), }), }, /** Invalidate phoneNumbersModule queries */ phoneNumbersModule: { @@ -1146,6 +1238,23 @@ export const invalidate = { queryKey: routeModuleKeys.detail(id), }), }, + /** Invalidate scopeTypesModule queries */ scopeTypesModule: { + /** Invalidate all scopeTypesModule queries */ all: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: scopeTypesModuleKeys.all, + }), + /** Invalidate scopeTypesModule list queries */ lists: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: scopeTypesModuleKeys.lists(), + }), + /** Invalidate a specific scopeTypesModule */ detail: ( + queryClient: QueryClient, + id: string | number + ) => + queryClient.invalidateQueries({ + queryKey: scopeTypesModuleKeys.detail(id), + }), + }, /** Invalidate secureTableProvision queries */ secureTableProvision: { /** Invalidate all secureTableProvision queries */ all: (queryClient: QueryClient) => queryClient.invalidateQueries({ @@ -1316,6 +1425,23 @@ export const invalidate = { queryKey: userSettingsModuleKeys.detail(id), }), }, + /** Invalidate userSettingsSecurityModule queries */ userSettingsSecurityModule: { + /** Invalidate all userSettingsSecurityModule queries */ all: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: userSettingsSecurityModuleKeys.all, + }), + /** Invalidate userSettingsSecurityModule list queries */ lists: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: userSettingsSecurityModuleKeys.lists(), + }), + /** Invalidate a specific userSettingsSecurityModule */ detail: ( + queryClient: QueryClient, + id: string | number + ) => + queryClient.invalidateQueries({ + queryKey: userSettingsSecurityModuleKeys.detail(id), + }), + }, /** Invalidate userStateModule queries */ userStateModule: { /** Invalidate all userStateModule queries */ all: (queryClient: QueryClient) => queryClient.invalidateQueries({ @@ -1472,6 +1598,14 @@ export const remove = { queryKey: blueprintTemplateKeys.detail(id), }); }, + /** Remove capabilitiesModule from cache */ capabilitiesModule: ( + queryClient: QueryClient, + id: string | number + ) => { + queryClient.removeQueries({ + queryKey: capabilitiesModuleKeys.detail(id), + }); + }, /** Remove catalogModule from cache */ catalogModule: ( queryClient: QueryClient, id: string | number @@ -1504,6 +1638,14 @@ export const remove = { queryKey: connectedAccountsModuleKeys.detail(id), }); }, + /** Remove contentPresetModule from cache */ contentPresetModule: ( + queryClient: QueryClient, + id: string | number + ) => { + queryClient.removeQueries({ + queryKey: contentPresetModuleKeys.detail(id), + }); + }, /** Remove cryptoAddressesModule from cache */ cryptoAddressesModule: ( queryClient: QueryClient, id: string | number @@ -1520,6 +1662,14 @@ export const remove = { queryKey: cryptoAuthModuleKeys.detail(id), }); }, + /** Remove dataCapabilitiesField from cache */ dataCapabilitiesField: ( + queryClient: QueryClient, + id: string | number + ) => { + queryClient.removeQueries({ + queryKey: dataCapabilitiesFieldKeys.detail(id), + }); + }, /** Remove databaseProvisionModule from cache */ databaseProvisionModule: ( queryClient: QueryClient, id: string | number @@ -1597,6 +1747,14 @@ export const remove = { queryKey: domainModuleKeys.detail(id), }); }, + /** Remove emailSenderModule from cache */ emailSenderModule: ( + queryClient: QueryClient, + id: string | number + ) => { + queryClient.removeQueries({ + queryKey: emailSenderModuleKeys.detail(id), + }); + }, /** Remove emailsModule from cache */ emailsModule: ( queryClient: QueryClient, id: string | number @@ -1621,6 +1779,14 @@ export const remove = { queryKey: eventsModuleKeys.detail(id), }); }, + /** Remove fileRefField from cache */ fileRefField: ( + queryClient: QueryClient, + id: string | number + ) => { + queryClient.removeQueries({ + queryKey: fileRefFieldKeys.detail(id), + }); + }, /** Remove functionDeploymentModule from cache */ functionDeploymentModule: ( queryClient: QueryClient, id: string | number @@ -1789,20 +1955,20 @@ export const remove = { queryKey: notificationsModuleKeys.detail(id), }); }, - /** Remove pagesModule from cache */ pagesModule: ( + /** Remove oauthRequestsModule from cache */ oauthRequestsModule: ( queryClient: QueryClient, id: string | number ) => { queryClient.removeQueries({ - queryKey: pagesModuleKeys.detail(id), + queryKey: oauthRequestsModuleKeys.detail(id), }); }, - /** Remove permissionsModule from cache */ permissionsModule: ( + /** Remove pagesModule from cache */ pagesModule: ( queryClient: QueryClient, id: string | number ) => { queryClient.removeQueries({ - queryKey: permissionsModuleKeys.detail(id), + queryKey: pagesModuleKeys.detail(id), }); }, /** Remove phoneNumbersModule from cache */ phoneNumbersModule: ( @@ -1890,6 +2056,14 @@ export const remove = { queryKey: routeModuleKeys.detail(id), }); }, + /** Remove scopeTypesModule from cache */ scopeTypesModule: ( + queryClient: QueryClient, + id: string | number + ) => { + queryClient.removeQueries({ + queryKey: scopeTypesModuleKeys.detail(id), + }); + }, /** Remove secureTableProvision from cache */ secureTableProvision: ( queryClient: QueryClient, id: string | number @@ -1970,6 +2144,14 @@ export const remove = { queryKey: userSettingsModuleKeys.detail(id), }); }, + /** Remove userSettingsSecurityModule from cache */ userSettingsSecurityModule: ( + queryClient: QueryClient, + id: string | number + ) => { + queryClient.removeQueries({ + queryKey: userSettingsSecurityModuleKeys.detail(id), + }); + }, /** Remove userStateModule from cache */ userStateModule: ( queryClient: QueryClient, id: string | number diff --git a/sdk/constructive-react/src/modules/hooks/mutation-keys.ts b/sdk/constructive-react/src/modules/hooks/mutation-keys.ts index 44e0c9e14f..4a5f10aa7f 100644 --- a/sdk/constructive-react/src/modules/hooks/mutation-keys.ts +++ b/sdk/constructive-react/src/modules/hooks/mutation-keys.ts @@ -94,6 +94,15 @@ export const blueprintTemplateMutationKeys = { /** Delete blueprintTemplate mutation key */ delete: (id: string | number) => ['mutation', 'blueprinttemplate', 'delete', id] as const, } as const; +export const capabilitiesModuleMutationKeys = { + /** All capabilitiesModule mutation keys */ all: ['mutation', 'capabilitiesmodule'] as const, + /** Create capabilitiesModule mutation key */ create: () => + ['mutation', 'capabilitiesmodule', 'create'] as const, + /** Update capabilitiesModule mutation key */ update: (id: string | number) => + ['mutation', 'capabilitiesmodule', 'update', id] as const, + /** Delete capabilitiesModule mutation key */ delete: (id: string | number) => + ['mutation', 'capabilitiesmodule', 'delete', id] as const, +} as const; export const catalogModuleMutationKeys = { /** All catalogModule mutation keys */ all: ['mutation', 'catalogmodule'] as const, /** Create catalogModule mutation key */ create: () => @@ -136,6 +145,15 @@ export const connectedAccountsModuleMutationKeys = { /** Delete connectedAccountsModule mutation key */ delete: (id: string | number) => ['mutation', 'connectedaccountsmodule', 'delete', id] as const, } as const; +export const contentPresetModuleMutationKeys = { + /** All contentPresetModule mutation keys */ all: ['mutation', 'contentpresetmodule'] as const, + /** Create contentPresetModule mutation key */ create: () => + ['mutation', 'contentpresetmodule', 'create'] as const, + /** Update contentPresetModule mutation key */ update: (id: string | number) => + ['mutation', 'contentpresetmodule', 'update', id] as const, + /** Delete contentPresetModule mutation key */ delete: (id: string | number) => + ['mutation', 'contentpresetmodule', 'delete', id] as const, +} as const; export const cryptoAddressesModuleMutationKeys = { /** All cryptoAddressesModule mutation keys */ all: [ 'mutation', @@ -157,6 +175,18 @@ export const cryptoAuthModuleMutationKeys = { /** Delete cryptoAuthModule mutation key */ delete: (id: string | number) => ['mutation', 'cryptoauthmodule', 'delete', id] as const, } as const; +export const dataCapabilitiesFieldMutationKeys = { + /** All dataCapabilitiesField mutation keys */ all: [ + 'mutation', + 'datacapabilitiesfield', + ] as const, + /** Create dataCapabilitiesField mutation key */ create: () => + ['mutation', 'datacapabilitiesfield', 'create'] as const, + /** Update dataCapabilitiesField mutation key */ update: (id: string | number) => + ['mutation', 'datacapabilitiesfield', 'update', id] as const, + /** Delete dataCapabilitiesField mutation key */ delete: (id: string | number) => + ['mutation', 'datacapabilitiesfield', 'delete', id] as const, +} as const; export const databaseProvisionModuleMutationKeys = { /** All databaseProvisionModule mutation keys */ all: [ 'mutation', @@ -255,6 +285,15 @@ export const domainModuleMutationKeys = { /** Delete domainModule mutation key */ delete: (id: string | number) => ['mutation', 'domainmodule', 'delete', id] as const, } as const; +export const emailSenderModuleMutationKeys = { + /** All emailSenderModule mutation keys */ all: ['mutation', 'emailsendermodule'] as const, + /** Create emailSenderModule mutation key */ create: () => + ['mutation', 'emailsendermodule', 'create'] as const, + /** Update emailSenderModule mutation key */ update: (id: string | number) => + ['mutation', 'emailsendermodule', 'update', id] as const, + /** Delete emailSenderModule mutation key */ delete: (id: string | number) => + ['mutation', 'emailsendermodule', 'delete', id] as const, +} as const; export const emailsModuleMutationKeys = { /** All emailsModule mutation keys */ all: ['mutation', 'emailsmodule'] as const, /** Create emailsModule mutation key */ create: () => @@ -282,6 +321,15 @@ export const eventsModuleMutationKeys = { /** Delete eventsModule mutation key */ delete: (id: string | number) => ['mutation', 'eventsmodule', 'delete', id] as const, } as const; +export const fileRefFieldMutationKeys = { + /** All fileRefField mutation keys */ all: ['mutation', 'filereffield'] as const, + /** Create fileRefField mutation key */ create: () => + ['mutation', 'filereffield', 'create'] as const, + /** Update fileRefField mutation key */ update: (id: string | number) => + ['mutation', 'filereffield', 'update', id] as const, + /** Delete fileRefField mutation key */ delete: (id: string | number) => + ['mutation', 'filereffield', 'delete', id] as const, +} as const; export const functionDeploymentModuleMutationKeys = { /** All functionDeploymentModule mutation keys */ all: [ 'mutation', @@ -488,6 +536,15 @@ export const notificationsModuleMutationKeys = { /** Delete notificationsModule mutation key */ delete: (id: string | number) => ['mutation', 'notificationsmodule', 'delete', id] as const, } as const; +export const oauthRequestsModuleMutationKeys = { + /** All oauthRequestsModule mutation keys */ all: ['mutation', 'oauthrequestsmodule'] as const, + /** Create oauthRequestsModule mutation key */ create: () => + ['mutation', 'oauthrequestsmodule', 'create'] as const, + /** Update oauthRequestsModule mutation key */ update: (id: string | number) => + ['mutation', 'oauthrequestsmodule', 'update', id] as const, + /** Delete oauthRequestsModule mutation key */ delete: (id: string | number) => + ['mutation', 'oauthrequestsmodule', 'delete', id] as const, +} as const; export const pagesModuleMutationKeys = { /** All pagesModule mutation keys */ all: ['mutation', 'pagesmodule'] as const, /** Create pagesModule mutation key */ create: () => @@ -497,15 +554,6 @@ export const pagesModuleMutationKeys = { /** Delete pagesModule mutation key */ delete: (id: string | number) => ['mutation', 'pagesmodule', 'delete', id] as const, } as const; -export const permissionsModuleMutationKeys = { - /** All permissionsModule mutation keys */ all: ['mutation', 'permissionsmodule'] as const, - /** Create permissionsModule mutation key */ create: () => - ['mutation', 'permissionsmodule', 'create'] as const, - /** Update permissionsModule mutation key */ update: (id: string | number) => - ['mutation', 'permissionsmodule', 'update', id] as const, - /** Delete permissionsModule mutation key */ delete: (id: string | number) => - ['mutation', 'permissionsmodule', 'delete', id] as const, -} as const; export const phoneNumbersModuleMutationKeys = { /** All phoneNumbersModule mutation keys */ all: ['mutation', 'phonenumbersmodule'] as const, /** Create phoneNumbersModule mutation key */ create: () => @@ -607,6 +655,15 @@ export const routeModuleMutationKeys = { /** Delete routeModule mutation key */ delete: (id: string | number) => ['mutation', 'routemodule', 'delete', id] as const, } as const; +export const scopeTypesModuleMutationKeys = { + /** All scopeTypesModule mutation keys */ all: ['mutation', 'scopetypesmodule'] as const, + /** Create scopeTypesModule mutation key */ create: () => + ['mutation', 'scopetypesmodule', 'create'] as const, + /** Update scopeTypesModule mutation key */ update: (id: string | number) => + ['mutation', 'scopetypesmodule', 'update', id] as const, + /** Delete scopeTypesModule mutation key */ delete: (id: string | number) => + ['mutation', 'scopetypesmodule', 'delete', id] as const, +} as const; export const secureTableProvisionMutationKeys = { /** All secureTableProvision mutation keys */ all: ['mutation', 'securetableprovision'] as const, /** Create secureTableProvision mutation key */ create: () => @@ -700,6 +757,18 @@ export const userSettingsModuleMutationKeys = { /** Delete userSettingsModule mutation key */ delete: (id: string | number) => ['mutation', 'usersettingsmodule', 'delete', id] as const, } as const; +export const userSettingsSecurityModuleMutationKeys = { + /** All userSettingsSecurityModule mutation keys */ all: [ + 'mutation', + 'usersettingssecuritymodule', + ] as const, + /** Create userSettingsSecurityModule mutation key */ create: () => + ['mutation', 'usersettingssecuritymodule', 'create'] as const, + /** Update userSettingsSecurityModule mutation key */ update: (id: string | number) => + ['mutation', 'usersettingssecuritymodule', 'update', id] as const, + /** Delete userSettingsSecurityModule mutation key */ delete: (id: string | number) => + ['mutation', 'usersettingssecuritymodule', 'delete', id] as const, +} as const; export const userStateModuleMutationKeys = { /** All userStateModule mutation keys */ all: ['mutation', 'userstatemodule'] as const, /** Create userStateModule mutation key */ create: () => @@ -766,40 +835,6 @@ export const customMutationKeys = { identifier ? (['mutation', 'provisionBucket', identifier] as const) : (['mutation', 'provisionBucket'] as const), - /** Mutation key for provisionCheckConstraint */ provisionCheckConstraint: ( - identifier?: string - ) => - identifier - ? (['mutation', 'provisionCheckConstraint', identifier] as const) - : (['mutation', 'provisionCheckConstraint'] as const), - /** Mutation key for provisionFullTextSearch */ provisionFullTextSearch: (identifier?: string) => - identifier - ? (['mutation', 'provisionFullTextSearch', identifier] as const) - : (['mutation', 'provisionFullTextSearch'] as const), - /** Mutation key for provisionIndex */ provisionIndex: (identifier?: string) => - identifier - ? (['mutation', 'provisionIndex', identifier] as const) - : (['mutation', 'provisionIndex'] as const), - /** Mutation key for provisionRelation */ provisionRelation: (identifier?: string) => - identifier - ? (['mutation', 'provisionRelation', identifier] as const) - : (['mutation', 'provisionRelation'] as const), - /** Mutation key for provisionSpatialRelation */ provisionSpatialRelation: ( - identifier?: string - ) => - identifier - ? (['mutation', 'provisionSpatialRelation', identifier] as const) - : (['mutation', 'provisionSpatialRelation'] as const), - /** Mutation key for provisionTable */ provisionTable: (identifier?: string) => - identifier - ? (['mutation', 'provisionTable', identifier] as const) - : (['mutation', 'provisionTable'] as const), - /** Mutation key for provisionUniqueConstraint */ provisionUniqueConstraint: ( - identifier?: string - ) => - identifier - ? (['mutation', 'provisionUniqueConstraint', identifier] as const) - : (['mutation', 'provisionUniqueConstraint'] as const), } as const; /** @@ -832,12 +867,15 @@ export const mutationKeys = { blueprint: blueprintMutationKeys, blueprintConstruction: blueprintConstructionMutationKeys, blueprintTemplate: blueprintTemplateMutationKeys, + capabilitiesModule: capabilitiesModuleMutationKeys, catalogModule: catalogModuleMutationKeys, computeLogModule: computeLogModuleMutationKeys, configSecretsUserModule: configSecretsUserModuleMutationKeys, connectedAccountsModule: connectedAccountsModuleMutationKeys, + contentPresetModule: contentPresetModuleMutationKeys, cryptoAddressesModule: cryptoAddressesModuleMutationKeys, cryptoAuthModule: cryptoAuthModuleMutationKeys, + dataCapabilitiesField: dataCapabilitiesFieldMutationKeys, databaseProvisionModule: databaseProvisionModuleMutationKeys, databaseSettingsModule: databaseSettingsModuleMutationKeys, dbPoolConfig: dbPoolConfigMutationKeys, @@ -848,9 +886,11 @@ export const mutationKeys = { denormalizedTableField: denormalizedTableFieldMutationKeys, devicesModule: devicesModuleMutationKeys, domainModule: domainModuleMutationKeys, + emailSenderModule: emailSenderModuleMutationKeys, emailsModule: emailsModuleMutationKeys, entityTypeProvision: entityTypeProvisionMutationKeys, eventsModule: eventsModuleMutationKeys, + fileRefField: fileRefFieldMutationKeys, functionDeploymentModule: functionDeploymentModuleMutationKeys, functionInvocationModule: functionInvocationModuleMutationKeys, functionModule: functionModuleMutationKeys, @@ -872,8 +912,8 @@ export const mutationKeys = { merkleStoreModule: merkleStoreModuleMutationKeys, namespaceModule: namespaceModuleMutationKeys, notificationsModule: notificationsModuleMutationKeys, + oauthRequestsModule: oauthRequestsModuleMutationKeys, pagesModule: pagesModuleMutationKeys, - permissionsModule: permissionsModuleMutationKeys, phoneNumbersModule: phoneNumbersModuleMutationKeys, plansModule: plansModuleMutationKeys, principalAuthModule: principalAuthModuleMutationKeys, @@ -885,6 +925,7 @@ export const mutationKeys = { resourceModule: resourceModuleMutationKeys, rlsModule: rlsModuleMutationKeys, routeModule: routeModuleMutationKeys, + scopeTypesModule: scopeTypesModuleMutationKeys, secureTableProvision: secureTableProvisionMutationKeys, sessionSecretsModule: sessionSecretsModuleMutationKeys, sessionsModule: sessionsModuleMutationKeys, @@ -895,6 +936,7 @@ export const mutationKeys = { userAuthModule: userAuthModuleMutationKeys, userCredentialsModule: userCredentialsModuleMutationKeys, userSettingsModule: userSettingsModuleMutationKeys, + userSettingsSecurityModule: userSettingsSecurityModuleMutationKeys, userStateModule: userStateModuleMutationKeys, usersModule: usersModuleMutationKeys, webauthnAuthModule: webauthnAuthModuleMutationKeys, diff --git a/sdk/constructive-react/src/modules/hooks/mutations/index.ts b/sdk/constructive-react/src/modules/hooks/mutations/index.ts index afa01ead8e..f0869015b6 100644 --- a/sdk/constructive-react/src/modules/hooks/mutations/index.ts +++ b/sdk/constructive-react/src/modules/hooks/mutations/index.ts @@ -27,6 +27,9 @@ export * from './useDeleteBlueprintConstructionMutation'; export * from './useCreateBlueprintTemplateMutation'; export * from './useUpdateBlueprintTemplateMutation'; export * from './useDeleteBlueprintTemplateMutation'; +export * from './useCreateCapabilitiesModuleMutation'; +export * from './useUpdateCapabilitiesModuleMutation'; +export * from './useDeleteCapabilitiesModuleMutation'; export * from './useCreateCatalogModuleMutation'; export * from './useUpdateCatalogModuleMutation'; export * from './useDeleteCatalogModuleMutation'; @@ -39,12 +42,18 @@ export * from './useDeleteConfigSecretsUserModuleMutation'; export * from './useCreateConnectedAccountsModuleMutation'; export * from './useUpdateConnectedAccountsModuleMutation'; export * from './useDeleteConnectedAccountsModuleMutation'; +export * from './useCreateContentPresetModuleMutation'; +export * from './useUpdateContentPresetModuleMutation'; +export * from './useDeleteContentPresetModuleMutation'; export * from './useCreateCryptoAddressesModuleMutation'; export * from './useUpdateCryptoAddressesModuleMutation'; export * from './useDeleteCryptoAddressesModuleMutation'; export * from './useCreateCryptoAuthModuleMutation'; export * from './useUpdateCryptoAuthModuleMutation'; export * from './useDeleteCryptoAuthModuleMutation'; +export * from './useCreateDataCapabilitiesFieldMutation'; +export * from './useUpdateDataCapabilitiesFieldMutation'; +export * from './useDeleteDataCapabilitiesFieldMutation'; export * from './useCreateDatabaseProvisionModuleMutation'; export * from './useUpdateDatabaseProvisionModuleMutation'; export * from './useDeleteDatabaseProvisionModuleMutation'; @@ -75,6 +84,9 @@ export * from './useDeleteDevicesModuleMutation'; export * from './useCreateDomainModuleMutation'; export * from './useUpdateDomainModuleMutation'; export * from './useDeleteDomainModuleMutation'; +export * from './useCreateEmailSenderModuleMutation'; +export * from './useUpdateEmailSenderModuleMutation'; +export * from './useDeleteEmailSenderModuleMutation'; export * from './useCreateEmailsModuleMutation'; export * from './useUpdateEmailsModuleMutation'; export * from './useDeleteEmailsModuleMutation'; @@ -84,6 +96,9 @@ export * from './useDeleteEntityTypeProvisionMutation'; export * from './useCreateEventsModuleMutation'; export * from './useUpdateEventsModuleMutation'; export * from './useDeleteEventsModuleMutation'; +export * from './useCreateFileRefFieldMutation'; +export * from './useUpdateFileRefFieldMutation'; +export * from './useDeleteFileRefFieldMutation'; export * from './useCreateFunctionDeploymentModuleMutation'; export * from './useUpdateFunctionDeploymentModuleMutation'; export * from './useDeleteFunctionDeploymentModuleMutation'; @@ -147,12 +162,12 @@ export * from './useDeleteNamespaceModuleMutation'; export * from './useCreateNotificationsModuleMutation'; export * from './useUpdateNotificationsModuleMutation'; export * from './useDeleteNotificationsModuleMutation'; +export * from './useCreateOauthRequestsModuleMutation'; +export * from './useUpdateOauthRequestsModuleMutation'; +export * from './useDeleteOauthRequestsModuleMutation'; export * from './useCreatePagesModuleMutation'; export * from './useUpdatePagesModuleMutation'; export * from './useDeletePagesModuleMutation'; -export * from './useCreatePermissionsModuleMutation'; -export * from './useUpdatePermissionsModuleMutation'; -export * from './useDeletePermissionsModuleMutation'; export * from './useCreatePhoneNumbersModuleMutation'; export * from './useUpdatePhoneNumbersModuleMutation'; export * from './useDeletePhoneNumbersModuleMutation'; @@ -186,6 +201,9 @@ export * from './useDeleteRlsModuleMutation'; export * from './useCreateRouteModuleMutation'; export * from './useUpdateRouteModuleMutation'; export * from './useDeleteRouteModuleMutation'; +export * from './useCreateScopeTypesModuleMutation'; +export * from './useUpdateScopeTypesModuleMutation'; +export * from './useDeleteScopeTypesModuleMutation'; export * from './useCreateSecureTableProvisionMutation'; export * from './useUpdateSecureTableProvisionMutation'; export * from './useDeleteSecureTableProvisionMutation'; @@ -216,6 +234,9 @@ export * from './useDeleteUserCredentialsModuleMutation'; export * from './useCreateUserSettingsModuleMutation'; export * from './useUpdateUserSettingsModuleMutation'; export * from './useDeleteUserSettingsModuleMutation'; +export * from './useCreateUserSettingsSecurityModuleMutation'; +export * from './useUpdateUserSettingsSecurityModuleMutation'; +export * from './useDeleteUserSettingsSecurityModuleMutation'; export * from './useCreateUserStateModuleMutation'; export * from './useUpdateUserStateModuleMutation'; export * from './useDeleteUserStateModuleMutation'; @@ -234,10 +255,3 @@ export * from './useDeleteWebhookModuleMutation'; export * from './useConstructBlueprintMutation'; export * from './useCopyTemplateToBlueprintMutation'; export * from './useProvisionBucketMutation'; -export * from './useProvisionCheckConstraintMutation'; -export * from './useProvisionFullTextSearchMutation'; -export * from './useProvisionIndexMutation'; -export * from './useProvisionRelationMutation'; -export * from './useProvisionSpatialRelationMutation'; -export * from './useProvisionTableMutation'; -export * from './useProvisionUniqueConstraintMutation'; diff --git a/sdk/constructive-react/src/modules/hooks/mutations/useCreateCapabilitiesModuleMutation.ts b/sdk/constructive-react/src/modules/hooks/mutations/useCreateCapabilitiesModuleMutation.ts new file mode 100644 index 0000000000..73de15dbe0 --- /dev/null +++ b/sdk/constructive-react/src/modules/hooks/mutations/useCreateCapabilitiesModuleMutation.ts @@ -0,0 +1,91 @@ +/** + * Create mutation hook for CapabilitiesModule + * @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 { capabilitiesModuleKeys } from '../query-keys'; +import { capabilitiesModuleMutationKeys } from '../mutation-keys'; +import type { + CapabilitiesModuleSelect, + CapabilitiesModuleWithRelations, + CreateCapabilitiesModuleInput, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + CapabilitiesModuleSelect, + CapabilitiesModuleWithRelations, + CreateCapabilitiesModuleInput, +} from '../../orm/input-types'; +/** + * Mutation hook for creating a CapabilitiesModule + * + * @example + * ```tsx + * const { mutate, isPending } = useCreateCapabilitiesModuleMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ name: 'New item' }); + * ``` + */ +export function useCreateCapabilitiesModuleMutation( + params: { + selection: { + fields: S & CapabilitiesModuleSelect; + } & HookStrictSelect, CapabilitiesModuleSelect>; + } & Omit< + UseMutationOptions< + { + createCapabilitiesModule: { + capabilitiesModule: InferSelectResult; + }; + }, + Error, + CreateCapabilitiesModuleInput['capabilitiesModule'] + >, + 'mutationFn' + > +): UseMutationResult< + { + createCapabilitiesModule: { + capabilitiesModule: InferSelectResult; + }; + }, + Error, + CreateCapabilitiesModuleInput['capabilitiesModule'] +>; +export function useCreateCapabilitiesModuleMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: capabilitiesModuleMutationKeys.create(), + mutationFn: (data: CreateCapabilitiesModuleInput['capabilitiesModule']) => + getClient() + .capabilitiesModule.create({ + data, + select: args.select, + }) + .unwrap(), + onSuccess: () => { + queryClient.invalidateQueries({ + queryKey: capabilitiesModuleKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/modules/hooks/mutations/useCreateContentPresetModuleMutation.ts b/sdk/constructive-react/src/modules/hooks/mutations/useCreateContentPresetModuleMutation.ts new file mode 100644 index 0000000000..d8158494a9 --- /dev/null +++ b/sdk/constructive-react/src/modules/hooks/mutations/useCreateContentPresetModuleMutation.ts @@ -0,0 +1,91 @@ +/** + * Create mutation hook for ContentPresetModule + * @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 { contentPresetModuleKeys } from '../query-keys'; +import { contentPresetModuleMutationKeys } from '../mutation-keys'; +import type { + ContentPresetModuleSelect, + ContentPresetModuleWithRelations, + CreateContentPresetModuleInput, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + ContentPresetModuleSelect, + ContentPresetModuleWithRelations, + CreateContentPresetModuleInput, +} from '../../orm/input-types'; +/** + * Mutation hook for creating a ContentPresetModule + * + * @example + * ```tsx + * const { mutate, isPending } = useCreateContentPresetModuleMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ name: 'New item' }); + * ``` + */ +export function useCreateContentPresetModuleMutation( + params: { + selection: { + fields: S & ContentPresetModuleSelect; + } & HookStrictSelect, ContentPresetModuleSelect>; + } & Omit< + UseMutationOptions< + { + createContentPresetModule: { + contentPresetModule: InferSelectResult; + }; + }, + Error, + CreateContentPresetModuleInput['contentPresetModule'] + >, + 'mutationFn' + > +): UseMutationResult< + { + createContentPresetModule: { + contentPresetModule: InferSelectResult; + }; + }, + Error, + CreateContentPresetModuleInput['contentPresetModule'] +>; +export function useCreateContentPresetModuleMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: contentPresetModuleMutationKeys.create(), + mutationFn: (data: CreateContentPresetModuleInput['contentPresetModule']) => + getClient() + .contentPresetModule.create({ + data, + select: args.select, + }) + .unwrap(), + onSuccess: () => { + queryClient.invalidateQueries({ + queryKey: contentPresetModuleKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/modules/hooks/mutations/useCreateDataCapabilitiesFieldMutation.ts b/sdk/constructive-react/src/modules/hooks/mutations/useCreateDataCapabilitiesFieldMutation.ts new file mode 100644 index 0000000000..f68de28f55 --- /dev/null +++ b/sdk/constructive-react/src/modules/hooks/mutations/useCreateDataCapabilitiesFieldMutation.ts @@ -0,0 +1,91 @@ +/** + * Create mutation hook for DataCapabilitiesField + * @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 { dataCapabilitiesFieldKeys } from '../query-keys'; +import { dataCapabilitiesFieldMutationKeys } from '../mutation-keys'; +import type { + DataCapabilitiesFieldSelect, + DataCapabilitiesFieldWithRelations, + CreateDataCapabilitiesFieldInput, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + DataCapabilitiesFieldSelect, + DataCapabilitiesFieldWithRelations, + CreateDataCapabilitiesFieldInput, +} from '../../orm/input-types'; +/** + * Mutation hook for creating a DataCapabilitiesField + * + * @example + * ```tsx + * const { mutate, isPending } = useCreateDataCapabilitiesFieldMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ name: 'New item' }); + * ``` + */ +export function useCreateDataCapabilitiesFieldMutation( + params: { + selection: { + fields: S & DataCapabilitiesFieldSelect; + } & HookStrictSelect, DataCapabilitiesFieldSelect>; + } & Omit< + UseMutationOptions< + { + createDataCapabilitiesField: { + dataCapabilitiesField: InferSelectResult; + }; + }, + Error, + CreateDataCapabilitiesFieldInput['dataCapabilitiesField'] + >, + 'mutationFn' + > +): UseMutationResult< + { + createDataCapabilitiesField: { + dataCapabilitiesField: InferSelectResult; + }; + }, + Error, + CreateDataCapabilitiesFieldInput['dataCapabilitiesField'] +>; +export function useCreateDataCapabilitiesFieldMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: dataCapabilitiesFieldMutationKeys.create(), + mutationFn: (data: CreateDataCapabilitiesFieldInput['dataCapabilitiesField']) => + getClient() + .dataCapabilitiesField.create({ + data, + select: args.select, + }) + .unwrap(), + onSuccess: () => { + queryClient.invalidateQueries({ + queryKey: dataCapabilitiesFieldKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/modules/hooks/mutations/useCreateEmailSenderModuleMutation.ts b/sdk/constructive-react/src/modules/hooks/mutations/useCreateEmailSenderModuleMutation.ts new file mode 100644 index 0000000000..f06644ecc3 --- /dev/null +++ b/sdk/constructive-react/src/modules/hooks/mutations/useCreateEmailSenderModuleMutation.ts @@ -0,0 +1,91 @@ +/** + * Create mutation hook for EmailSenderModule + * @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 { emailSenderModuleKeys } from '../query-keys'; +import { emailSenderModuleMutationKeys } from '../mutation-keys'; +import type { + EmailSenderModuleSelect, + EmailSenderModuleWithRelations, + CreateEmailSenderModuleInput, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + EmailSenderModuleSelect, + EmailSenderModuleWithRelations, + CreateEmailSenderModuleInput, +} from '../../orm/input-types'; +/** + * Mutation hook for creating a EmailSenderModule + * + * @example + * ```tsx + * const { mutate, isPending } = useCreateEmailSenderModuleMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ name: 'New item' }); + * ``` + */ +export function useCreateEmailSenderModuleMutation( + params: { + selection: { + fields: S & EmailSenderModuleSelect; + } & HookStrictSelect, EmailSenderModuleSelect>; + } & Omit< + UseMutationOptions< + { + createEmailSenderModule: { + emailSenderModule: InferSelectResult; + }; + }, + Error, + CreateEmailSenderModuleInput['emailSenderModule'] + >, + 'mutationFn' + > +): UseMutationResult< + { + createEmailSenderModule: { + emailSenderModule: InferSelectResult; + }; + }, + Error, + CreateEmailSenderModuleInput['emailSenderModule'] +>; +export function useCreateEmailSenderModuleMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: emailSenderModuleMutationKeys.create(), + mutationFn: (data: CreateEmailSenderModuleInput['emailSenderModule']) => + getClient() + .emailSenderModule.create({ + data, + select: args.select, + }) + .unwrap(), + onSuccess: () => { + queryClient.invalidateQueries({ + queryKey: emailSenderModuleKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/modules/hooks/mutations/useCreateEntityTypeProvisionMutation.ts b/sdk/constructive-react/src/modules/hooks/mutations/useCreateEntityTypeProvisionMutation.ts index 70139cea17..933bb73f80 100644 --- a/sdk/constructive-react/src/modules/hooks/mutations/useCreateEntityTypeProvisionMutation.ts +++ b/sdk/constructive-react/src/modules/hooks/mutations/useCreateEntityTypeProvisionMutation.ts @@ -1,6 +1,6 @@ /** * Provisions a new membership entity type. Each INSERT creates an entity table, registers a membership type, - and installs the required modules (permissions, memberships, limits) plus optional modules (profiles, levels, invites). + and installs the required modules (capabilities, memberships, limits) plus optional modules (profiles, levels, invites). Uses provision_membership_table() internally. Graceful: duplicate (database_id, prefix) pairs are silently skipped via the unique constraint (use INSERT ... ON CONFLICT DO NOTHING). Policy behavior: by default the five entity-table RLS policies are applied (gated by is_visible). @@ -31,7 +31,7 @@ export type { } from '../../orm/input-types'; /** * Provisions a new membership entity type. Each INSERT creates an entity table, registers a membership type, - and installs the required modules (permissions, memberships, limits) plus optional modules (profiles, levels, invites). + and installs the required modules (capabilities, memberships, limits) plus optional modules (profiles, levels, invites). Uses provision_membership_table() internally. Graceful: duplicate (database_id, prefix) pairs are silently skipped via the unique constraint (use INSERT ... ON CONFLICT DO NOTHING). Policy behavior: by default the five entity-table RLS policies are applied (gated by is_visible). diff --git a/sdk/constructive-react/src/modules/hooks/mutations/useCreateFileRefFieldMutation.ts b/sdk/constructive-react/src/modules/hooks/mutations/useCreateFileRefFieldMutation.ts new file mode 100644 index 0000000000..417e18b8a4 --- /dev/null +++ b/sdk/constructive-react/src/modules/hooks/mutations/useCreateFileRefFieldMutation.ts @@ -0,0 +1,88 @@ +/** + * Create mutation hook for FileRefField + * @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 { fileRefFieldKeys } from '../query-keys'; +import { fileRefFieldMutationKeys } from '../mutation-keys'; +import type { + FileRefFieldSelect, + FileRefFieldWithRelations, + CreateFileRefFieldInput, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + FileRefFieldSelect, + FileRefFieldWithRelations, + CreateFileRefFieldInput, +} from '../../orm/input-types'; +/** + * Mutation hook for creating a FileRefField + * + * @example + * ```tsx + * const { mutate, isPending } = useCreateFileRefFieldMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ name: 'New item' }); + * ``` + */ +export function useCreateFileRefFieldMutation( + params: { + selection: { + fields: S & FileRefFieldSelect; + } & HookStrictSelect, FileRefFieldSelect>; + } & Omit< + UseMutationOptions< + { + createFileRefField: { + fileRefField: InferSelectResult; + }; + }, + Error, + CreateFileRefFieldInput['fileRefField'] + >, + 'mutationFn' + > +): UseMutationResult< + { + createFileRefField: { + fileRefField: InferSelectResult; + }; + }, + Error, + CreateFileRefFieldInput['fileRefField'] +>; +export function useCreateFileRefFieldMutation( + params: { + selection: SelectionConfig; + } & Omit, 'mutationFn'> +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: fileRefFieldMutationKeys.create(), + mutationFn: (data: CreateFileRefFieldInput['fileRefField']) => + getClient() + .fileRefField.create({ + data, + select: args.select, + }) + .unwrap(), + onSuccess: () => { + queryClient.invalidateQueries({ + queryKey: fileRefFieldKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/modules/hooks/mutations/useCreateOauthRequestsModuleMutation.ts b/sdk/constructive-react/src/modules/hooks/mutations/useCreateOauthRequestsModuleMutation.ts new file mode 100644 index 0000000000..be7ac42edc --- /dev/null +++ b/sdk/constructive-react/src/modules/hooks/mutations/useCreateOauthRequestsModuleMutation.ts @@ -0,0 +1,101 @@ +/** + * Config row for the oauth_requests_module, which provisions the in-flight half of an SSO + sign-in: the OAuth authorization requests table (state + PKCE code_verifier) and the + pending identity links table (a verified identity parked under a single-use ticket), + both private, plus the five SECURITY DEFINER procedures that are their only surface. + Sibling of identity_providers_module (durable provider configuration) rather than part + of it: this is ephemeral, purged flow state with its own retention. + * @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 { oauthRequestsModuleKeys } from '../query-keys'; +import { oauthRequestsModuleMutationKeys } from '../mutation-keys'; +import type { + OauthRequestsModuleSelect, + OauthRequestsModuleWithRelations, + CreateOauthRequestsModuleInput, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + OauthRequestsModuleSelect, + OauthRequestsModuleWithRelations, + CreateOauthRequestsModuleInput, +} from '../../orm/input-types'; +/** + * Config row for the oauth_requests_module, which provisions the in-flight half of an SSO + sign-in: the OAuth authorization requests table (state + PKCE code_verifier) and the + pending identity links table (a verified identity parked under a single-use ticket), + both private, plus the five SECURITY DEFINER procedures that are their only surface. + Sibling of identity_providers_module (durable provider configuration) rather than part + of it: this is ephemeral, purged flow state with its own retention. + * + * @example + * ```tsx + * const { mutate, isPending } = useCreateOauthRequestsModuleMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ name: 'New item' }); + * ``` + */ +export function useCreateOauthRequestsModuleMutation( + params: { + selection: { + fields: S & OauthRequestsModuleSelect; + } & HookStrictSelect, OauthRequestsModuleSelect>; + } & Omit< + UseMutationOptions< + { + createOauthRequestsModule: { + oauthRequestsModule: InferSelectResult; + }; + }, + Error, + CreateOauthRequestsModuleInput['oauthRequestsModule'] + >, + 'mutationFn' + > +): UseMutationResult< + { + createOauthRequestsModule: { + oauthRequestsModule: InferSelectResult; + }; + }, + Error, + CreateOauthRequestsModuleInput['oauthRequestsModule'] +>; +export function useCreateOauthRequestsModuleMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: oauthRequestsModuleMutationKeys.create(), + mutationFn: (data: CreateOauthRequestsModuleInput['oauthRequestsModule']) => + getClient() + .oauthRequestsModule.create({ + data, + select: args.select, + }) + .unwrap(), + onSuccess: () => { + queryClient.invalidateQueries({ + queryKey: oauthRequestsModuleKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/modules/hooks/mutations/useCreatePermissionsModuleMutation.ts b/sdk/constructive-react/src/modules/hooks/mutations/useCreatePermissionsModuleMutation.ts deleted file mode 100644 index 38c0b3b9ba..0000000000 --- a/sdk/constructive-react/src/modules/hooks/mutations/useCreatePermissionsModuleMutation.ts +++ /dev/null @@ -1,91 +0,0 @@ -/** - * Create mutation hook for PermissionsModule - * @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 { permissionsModuleKeys } from '../query-keys'; -import { permissionsModuleMutationKeys } from '../mutation-keys'; -import type { - PermissionsModuleSelect, - PermissionsModuleWithRelations, - CreatePermissionsModuleInput, -} from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { - PermissionsModuleSelect, - PermissionsModuleWithRelations, - CreatePermissionsModuleInput, -} from '../../orm/input-types'; -/** - * Mutation hook for creating a PermissionsModule - * - * @example - * ```tsx - * const { mutate, isPending } = useCreatePermissionsModuleMutation({ - * selection: { fields: { id: true, name: true } }, - * }); - * - * mutate({ name: 'New item' }); - * ``` - */ -export function useCreatePermissionsModuleMutation( - params: { - selection: { - fields: S & PermissionsModuleSelect; - } & HookStrictSelect, PermissionsModuleSelect>; - } & Omit< - UseMutationOptions< - { - createPermissionsModule: { - permissionsModule: InferSelectResult; - }; - }, - Error, - CreatePermissionsModuleInput['permissionsModule'] - >, - 'mutationFn' - > -): UseMutationResult< - { - createPermissionsModule: { - permissionsModule: InferSelectResult; - }; - }, - Error, - CreatePermissionsModuleInput['permissionsModule'] ->; -export function useCreatePermissionsModuleMutation( - params: { - selection: SelectionConfig; - } & Omit< - UseMutationOptions, - 'mutationFn' - > -) { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...mutationOptions } = params ?? {}; - void _selection; - const queryClient = useQueryClient(); - return useMutation({ - mutationKey: permissionsModuleMutationKeys.create(), - mutationFn: (data: CreatePermissionsModuleInput['permissionsModule']) => - getClient() - .permissionsModule.create({ - data, - select: args.select, - }) - .unwrap(), - onSuccess: () => { - queryClient.invalidateQueries({ - queryKey: permissionsModuleKeys.lists(), - }); - }, - ...mutationOptions, - }); -} diff --git a/sdk/constructive-react/src/modules/hooks/mutations/useCreateScopeTypesModuleMutation.ts b/sdk/constructive-react/src/modules/hooks/mutations/useCreateScopeTypesModuleMutation.ts new file mode 100644 index 0000000000..3dd632d3c7 --- /dev/null +++ b/sdk/constructive-react/src/modules/hooks/mutations/useCreateScopeTypesModuleMutation.ts @@ -0,0 +1,91 @@ +/** + * Create mutation hook for ScopeTypesModule + * @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 { scopeTypesModuleKeys } from '../query-keys'; +import { scopeTypesModuleMutationKeys } from '../mutation-keys'; +import type { + ScopeTypesModuleSelect, + ScopeTypesModuleWithRelations, + CreateScopeTypesModuleInput, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + ScopeTypesModuleSelect, + ScopeTypesModuleWithRelations, + CreateScopeTypesModuleInput, +} from '../../orm/input-types'; +/** + * Mutation hook for creating a ScopeTypesModule + * + * @example + * ```tsx + * const { mutate, isPending } = useCreateScopeTypesModuleMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ name: 'New item' }); + * ``` + */ +export function useCreateScopeTypesModuleMutation( + params: { + selection: { + fields: S & ScopeTypesModuleSelect; + } & HookStrictSelect, ScopeTypesModuleSelect>; + } & Omit< + UseMutationOptions< + { + createScopeTypesModule: { + scopeTypesModule: InferSelectResult; + }; + }, + Error, + CreateScopeTypesModuleInput['scopeTypesModule'] + >, + 'mutationFn' + > +): UseMutationResult< + { + createScopeTypesModule: { + scopeTypesModule: InferSelectResult; + }; + }, + Error, + CreateScopeTypesModuleInput['scopeTypesModule'] +>; +export function useCreateScopeTypesModuleMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: scopeTypesModuleMutationKeys.create(), + mutationFn: (data: CreateScopeTypesModuleInput['scopeTypesModule']) => + getClient() + .scopeTypesModule.create({ + data, + select: args.select, + }) + .unwrap(), + onSuccess: () => { + queryClient.invalidateQueries({ + queryKey: scopeTypesModuleKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/modules/hooks/mutations/useCreateUserSettingsSecurityModuleMutation.ts b/sdk/constructive-react/src/modules/hooks/mutations/useCreateUserSettingsSecurityModuleMutation.ts new file mode 100644 index 0000000000..7214deae9f --- /dev/null +++ b/sdk/constructive-react/src/modules/hooks/mutations/useCreateUserSettingsSecurityModuleMutation.ts @@ -0,0 +1,97 @@ +/** + * Create mutation hook for UserSettingsSecurityModule + * @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 { userSettingsSecurityModuleKeys } from '../query-keys'; +import { userSettingsSecurityModuleMutationKeys } from '../mutation-keys'; +import type { + UserSettingsSecurityModuleSelect, + UserSettingsSecurityModuleWithRelations, + CreateUserSettingsSecurityModuleInput, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + UserSettingsSecurityModuleSelect, + UserSettingsSecurityModuleWithRelations, + CreateUserSettingsSecurityModuleInput, +} from '../../orm/input-types'; +/** + * Mutation hook for creating a UserSettingsSecurityModule + * + * @example + * ```tsx + * const { mutate, isPending } = useCreateUserSettingsSecurityModuleMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ name: 'New item' }); + * ``` + */ +export function useCreateUserSettingsSecurityModuleMutation< + S extends UserSettingsSecurityModuleSelect, +>( + params: { + selection: { + fields: S & UserSettingsSecurityModuleSelect; + } & HookStrictSelect, UserSettingsSecurityModuleSelect>; + } & Omit< + UseMutationOptions< + { + createUserSettingsSecurityModule: { + userSettingsSecurityModule: InferSelectResult; + }; + }, + Error, + CreateUserSettingsSecurityModuleInput['userSettingsSecurityModule'] + >, + 'mutationFn' + > +): UseMutationResult< + { + createUserSettingsSecurityModule: { + userSettingsSecurityModule: InferSelectResult; + }; + }, + Error, + CreateUserSettingsSecurityModuleInput['userSettingsSecurityModule'] +>; +export function useCreateUserSettingsSecurityModuleMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions< + any, + Error, + CreateUserSettingsSecurityModuleInput['userSettingsSecurityModule'] + >, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: userSettingsSecurityModuleMutationKeys.create(), + mutationFn: (data: CreateUserSettingsSecurityModuleInput['userSettingsSecurityModule']) => + getClient() + .userSettingsSecurityModule.create({ + data, + select: args.select, + }) + .unwrap(), + onSuccess: () => { + queryClient.invalidateQueries({ + queryKey: userSettingsSecurityModuleKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/admin/hooks/mutations/useDeleteAppPermissionDefaultMutation.ts b/sdk/constructive-react/src/modules/hooks/mutations/useDeleteCapabilitiesModuleMutation.ts similarity index 53% rename from sdk/constructive-react/src/admin/hooks/mutations/useDeleteAppPermissionDefaultMutation.ts rename to sdk/constructive-react/src/modules/hooks/mutations/useDeleteCapabilitiesModuleMutation.ts index a9b23c7473..fc27226b9a 100644 --- a/sdk/constructive-react/src/admin/hooks/mutations/useDeleteAppPermissionDefaultMutation.ts +++ b/sdk/constructive-react/src/modules/hooks/mutations/useDeleteCapabilitiesModuleMutation.ts @@ -1,5 +1,5 @@ /** - * Stores the default permission bitmask assigned to new members upon joining + * Delete mutation hook for CapabilitiesModule * @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 { appPermissionDefaultKeys } from '../query-keys'; -import { appPermissionDefaultMutationKeys } from '../mutation-keys'; +import { capabilitiesModuleKeys } from '../query-keys'; +import { capabilitiesModuleMutationKeys } from '../mutation-keys'; import type { - AppPermissionDefaultSelect, - AppPermissionDefaultWithRelations, + CapabilitiesModuleSelect, + CapabilitiesModuleWithRelations, } from '../../orm/input-types'; import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; export type { - AppPermissionDefaultSelect, - AppPermissionDefaultWithRelations, + CapabilitiesModuleSelect, + CapabilitiesModuleWithRelations, } from '../../orm/input-types'; /** - * Stores the default permission bitmask assigned to new members upon joining + * Mutation hook for deleting a CapabilitiesModule with typed selection * * @example * ```tsx - * const { mutate, isPending } = useDeleteAppPermissionDefaultMutation({ + * const { mutate, isPending } = useDeleteCapabilitiesModuleMutation({ * selection: { fields: { id: true } }, * }); * * mutate({ id: 'value-to-delete' }); * ``` */ -export function useDeleteAppPermissionDefaultMutation( +export function useDeleteCapabilitiesModuleMutation( params: { selection: { - fields: S & AppPermissionDefaultSelect; - } & HookStrictSelect, AppPermissionDefaultSelect>; + fields: S & CapabilitiesModuleSelect; + } & HookStrictSelect, CapabilitiesModuleSelect>; } & Omit< UseMutationOptions< { - deleteAppPermissionDefault: { - appPermissionDefault: InferSelectResult; + deleteCapabilitiesModule: { + capabilitiesModule: InferSelectResult; }; }, Error, @@ -53,8 +53,8 @@ export function useDeleteAppPermissionDefaultMutation ): UseMutationResult< { - deleteAppPermissionDefault: { - appPermissionDefault: InferSelectResult; + deleteCapabilitiesModule: { + capabilitiesModule: InferSelectResult; }; }, Error, @@ -62,9 +62,9 @@ export function useDeleteAppPermissionDefaultMutation; -export function useDeleteAppPermissionDefaultMutation( +export function useDeleteCapabilitiesModuleMutation( params: { - selection: SelectionConfig; + selection: SelectionConfig; } & Omit< UseMutationOptions< any, @@ -76,15 +76,15 @@ export function useDeleteAppPermissionDefaultMutation( 'mutationFn' > ) { - const args = buildSelectionArgs(params.selection); + const args = buildSelectionArgs(params.selection); const { selection: _selection, ...mutationOptions } = params ?? {}; void _selection; const queryClient = useQueryClient(); return useMutation({ - mutationKey: appPermissionDefaultMutationKeys.all, + mutationKey: capabilitiesModuleMutationKeys.all, mutationFn: ({ id }: { id: string }) => getClient() - .appPermissionDefault.delete({ + .capabilitiesModule.delete({ where: { id, }, @@ -93,10 +93,10 @@ export function useDeleteAppPermissionDefaultMutation( .unwrap(), onSuccess: (_, variables) => { queryClient.removeQueries({ - queryKey: appPermissionDefaultKeys.detail(variables.id), + queryKey: capabilitiesModuleKeys.detail(variables.id), }); queryClient.invalidateQueries({ - queryKey: appPermissionDefaultKeys.lists(), + queryKey: capabilitiesModuleKeys.lists(), }); }, ...mutationOptions, diff --git a/sdk/constructive-react/src/admin/hooks/mutations/useDeleteOrgPermissionDefaultMutation.ts b/sdk/constructive-react/src/modules/hooks/mutations/useDeleteContentPresetModuleMutation.ts similarity index 53% rename from sdk/constructive-react/src/admin/hooks/mutations/useDeleteOrgPermissionDefaultMutation.ts rename to sdk/constructive-react/src/modules/hooks/mutations/useDeleteContentPresetModuleMutation.ts index a811eca533..cddd9cc2f4 100644 --- a/sdk/constructive-react/src/admin/hooks/mutations/useDeleteOrgPermissionDefaultMutation.ts +++ b/sdk/constructive-react/src/modules/hooks/mutations/useDeleteContentPresetModuleMutation.ts @@ -1,5 +1,5 @@ /** - * Stores the default permission bitmask assigned to new members upon joining + * Delete mutation hook for ContentPresetModule * @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 { orgPermissionDefaultKeys } from '../query-keys'; -import { orgPermissionDefaultMutationKeys } from '../mutation-keys'; +import { contentPresetModuleKeys } from '../query-keys'; +import { contentPresetModuleMutationKeys } from '../mutation-keys'; import type { - OrgPermissionDefaultSelect, - OrgPermissionDefaultWithRelations, + ContentPresetModuleSelect, + ContentPresetModuleWithRelations, } from '../../orm/input-types'; import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; export type { - OrgPermissionDefaultSelect, - OrgPermissionDefaultWithRelations, + ContentPresetModuleSelect, + ContentPresetModuleWithRelations, } from '../../orm/input-types'; /** - * Stores the default permission bitmask assigned to new members upon joining + * Mutation hook for deleting a ContentPresetModule with typed selection * * @example * ```tsx - * const { mutate, isPending } = useDeleteOrgPermissionDefaultMutation({ + * const { mutate, isPending } = useDeleteContentPresetModuleMutation({ * selection: { fields: { id: true } }, * }); * * mutate({ id: 'value-to-delete' }); * ``` */ -export function useDeleteOrgPermissionDefaultMutation( +export function useDeleteContentPresetModuleMutation( params: { selection: { - fields: S & OrgPermissionDefaultSelect; - } & HookStrictSelect, OrgPermissionDefaultSelect>; + fields: S & ContentPresetModuleSelect; + } & HookStrictSelect, ContentPresetModuleSelect>; } & Omit< UseMutationOptions< { - deleteOrgPermissionDefault: { - orgPermissionDefault: InferSelectResult; + deleteContentPresetModule: { + contentPresetModule: InferSelectResult; }; }, Error, @@ -53,8 +53,8 @@ export function useDeleteOrgPermissionDefaultMutation ): UseMutationResult< { - deleteOrgPermissionDefault: { - orgPermissionDefault: InferSelectResult; + deleteContentPresetModule: { + contentPresetModule: InferSelectResult; }; }, Error, @@ -62,9 +62,9 @@ export function useDeleteOrgPermissionDefaultMutation; -export function useDeleteOrgPermissionDefaultMutation( +export function useDeleteContentPresetModuleMutation( params: { - selection: SelectionConfig; + selection: SelectionConfig; } & Omit< UseMutationOptions< any, @@ -76,15 +76,15 @@ export function useDeleteOrgPermissionDefaultMutation( 'mutationFn' > ) { - const args = buildSelectionArgs(params.selection); + const args = buildSelectionArgs(params.selection); const { selection: _selection, ...mutationOptions } = params ?? {}; void _selection; const queryClient = useQueryClient(); return useMutation({ - mutationKey: orgPermissionDefaultMutationKeys.all, + mutationKey: contentPresetModuleMutationKeys.all, mutationFn: ({ id }: { id: string }) => getClient() - .orgPermissionDefault.delete({ + .contentPresetModule.delete({ where: { id, }, @@ -93,10 +93,10 @@ export function useDeleteOrgPermissionDefaultMutation( .unwrap(), onSuccess: (_, variables) => { queryClient.removeQueries({ - queryKey: orgPermissionDefaultKeys.detail(variables.id), + queryKey: contentPresetModuleKeys.detail(variables.id), }); queryClient.invalidateQueries({ - queryKey: orgPermissionDefaultKeys.lists(), + queryKey: contentPresetModuleKeys.lists(), }); }, ...mutationOptions, diff --git a/sdk/constructive-react/src/modules/hooks/mutations/useDeleteDataCapabilitiesFieldMutation.ts b/sdk/constructive-react/src/modules/hooks/mutations/useDeleteDataCapabilitiesFieldMutation.ts new file mode 100644 index 0000000000..2cd3621b76 --- /dev/null +++ b/sdk/constructive-react/src/modules/hooks/mutations/useDeleteDataCapabilitiesFieldMutation.ts @@ -0,0 +1,104 @@ +/** + * Delete mutation hook for DataCapabilitiesField + * @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 { dataCapabilitiesFieldKeys } from '../query-keys'; +import { dataCapabilitiesFieldMutationKeys } from '../mutation-keys'; +import type { + DataCapabilitiesFieldSelect, + DataCapabilitiesFieldWithRelations, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + DataCapabilitiesFieldSelect, + DataCapabilitiesFieldWithRelations, +} from '../../orm/input-types'; +/** + * Mutation hook for deleting a DataCapabilitiesField with typed selection + * + * @example + * ```tsx + * const { mutate, isPending } = useDeleteDataCapabilitiesFieldMutation({ + * selection: { fields: { id: true } }, + * }); + * + * mutate({ id: 'value-to-delete' }); + * ``` + */ +export function useDeleteDataCapabilitiesFieldMutation( + params: { + selection: { + fields: S & DataCapabilitiesFieldSelect; + } & HookStrictSelect, DataCapabilitiesFieldSelect>; + } & Omit< + UseMutationOptions< + { + deleteDataCapabilitiesField: { + dataCapabilitiesField: InferSelectResult; + }; + }, + Error, + { + id: string; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + deleteDataCapabilitiesField: { + dataCapabilitiesField: InferSelectResult; + }; + }, + Error, + { + id: string; + } +>; +export function useDeleteDataCapabilitiesFieldMutation( + 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: dataCapabilitiesFieldMutationKeys.all, + mutationFn: ({ id }: { id: string }) => + getClient() + .dataCapabilitiesField.delete({ + where: { + id, + }, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.removeQueries({ + queryKey: dataCapabilitiesFieldKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: dataCapabilitiesFieldKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/modules/hooks/mutations/useDeletePermissionsModuleMutation.ts b/sdk/constructive-react/src/modules/hooks/mutations/useDeleteEmailSenderModuleMutation.ts similarity index 58% rename from sdk/constructive-react/src/modules/hooks/mutations/useDeletePermissionsModuleMutation.ts rename to sdk/constructive-react/src/modules/hooks/mutations/useDeleteEmailSenderModuleMutation.ts index bcd6060e21..02d700d918 100644 --- a/sdk/constructive-react/src/modules/hooks/mutations/useDeletePermissionsModuleMutation.ts +++ b/sdk/constructive-react/src/modules/hooks/mutations/useDeleteEmailSenderModuleMutation.ts @@ -1,5 +1,5 @@ /** - * Delete mutation hook for PermissionsModule + * Delete mutation hook for EmailSenderModule * @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 { permissionsModuleKeys } from '../query-keys'; -import { permissionsModuleMutationKeys } from '../mutation-keys'; +import { emailSenderModuleKeys } from '../query-keys'; +import { emailSenderModuleMutationKeys } from '../mutation-keys'; import type { - PermissionsModuleSelect, - PermissionsModuleWithRelations, + EmailSenderModuleSelect, + EmailSenderModuleWithRelations, } from '../../orm/input-types'; import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; export type { - PermissionsModuleSelect, - PermissionsModuleWithRelations, + EmailSenderModuleSelect, + EmailSenderModuleWithRelations, } from '../../orm/input-types'; /** - * Mutation hook for deleting a PermissionsModule with typed selection + * Mutation hook for deleting a EmailSenderModule with typed selection * * @example * ```tsx - * const { mutate, isPending } = useDeletePermissionsModuleMutation({ + * const { mutate, isPending } = useDeleteEmailSenderModuleMutation({ * selection: { fields: { id: true } }, * }); * * mutate({ id: 'value-to-delete' }); * ``` */ -export function useDeletePermissionsModuleMutation( +export function useDeleteEmailSenderModuleMutation( params: { selection: { - fields: S & PermissionsModuleSelect; - } & HookStrictSelect, PermissionsModuleSelect>; + fields: S & EmailSenderModuleSelect; + } & HookStrictSelect, EmailSenderModuleSelect>; } & Omit< UseMutationOptions< { - deletePermissionsModule: { - permissionsModule: InferSelectResult; + deleteEmailSenderModule: { + emailSenderModule: InferSelectResult; }; }, Error, @@ -53,8 +53,8 @@ export function useDeletePermissionsModuleMutation ): UseMutationResult< { - deletePermissionsModule: { - permissionsModule: InferSelectResult; + deleteEmailSenderModule: { + emailSenderModule: InferSelectResult; }; }, Error, @@ -62,9 +62,9 @@ export function useDeletePermissionsModuleMutation; -export function useDeletePermissionsModuleMutation( +export function useDeleteEmailSenderModuleMutation( params: { - selection: SelectionConfig; + selection: SelectionConfig; } & Omit< UseMutationOptions< any, @@ -76,15 +76,15 @@ export function useDeletePermissionsModuleMutation( 'mutationFn' > ) { - const args = buildSelectionArgs(params.selection); + const args = buildSelectionArgs(params.selection); const { selection: _selection, ...mutationOptions } = params ?? {}; void _selection; const queryClient = useQueryClient(); return useMutation({ - mutationKey: permissionsModuleMutationKeys.all, + mutationKey: emailSenderModuleMutationKeys.all, mutationFn: ({ id }: { id: string }) => getClient() - .permissionsModule.delete({ + .emailSenderModule.delete({ where: { id, }, @@ -93,10 +93,10 @@ export function useDeletePermissionsModuleMutation( .unwrap(), onSuccess: (_, variables) => { queryClient.removeQueries({ - queryKey: permissionsModuleKeys.detail(variables.id), + queryKey: emailSenderModuleKeys.detail(variables.id), }); queryClient.invalidateQueries({ - queryKey: permissionsModuleKeys.lists(), + queryKey: emailSenderModuleKeys.lists(), }); }, ...mutationOptions, diff --git a/sdk/constructive-react/src/modules/hooks/mutations/useDeleteEntityTypeProvisionMutation.ts b/sdk/constructive-react/src/modules/hooks/mutations/useDeleteEntityTypeProvisionMutation.ts index 0029e7138c..e1f54bcd45 100644 --- a/sdk/constructive-react/src/modules/hooks/mutations/useDeleteEntityTypeProvisionMutation.ts +++ b/sdk/constructive-react/src/modules/hooks/mutations/useDeleteEntityTypeProvisionMutation.ts @@ -1,6 +1,6 @@ /** * Provisions a new membership entity type. Each INSERT creates an entity table, registers a membership type, - and installs the required modules (permissions, memberships, limits) plus optional modules (profiles, levels, invites). + and installs the required modules (capabilities, memberships, limits) plus optional modules (profiles, levels, invites). Uses provision_membership_table() internally. Graceful: duplicate (database_id, prefix) pairs are silently skipped via the unique constraint (use INSERT ... ON CONFLICT DO NOTHING). Policy behavior: by default the five entity-table RLS policies are applied (gated by is_visible). @@ -29,7 +29,7 @@ export type { } from '../../orm/input-types'; /** * Provisions a new membership entity type. Each INSERT creates an entity table, registers a membership type, - and installs the required modules (permissions, memberships, limits) plus optional modules (profiles, levels, invites). + and installs the required modules (capabilities, memberships, limits) plus optional modules (profiles, levels, invites). Uses provision_membership_table() internally. Graceful: duplicate (database_id, prefix) pairs are silently skipped via the unique constraint (use INSERT ... ON CONFLICT DO NOTHING). Policy behavior: by default the five entity-table RLS policies are applied (gated by is_visible). diff --git a/sdk/constructive-react/src/modules/hooks/mutations/useDeleteFileRefFieldMutation.ts b/sdk/constructive-react/src/modules/hooks/mutations/useDeleteFileRefFieldMutation.ts new file mode 100644 index 0000000000..7755e2a4c6 --- /dev/null +++ b/sdk/constructive-react/src/modules/hooks/mutations/useDeleteFileRefFieldMutation.ts @@ -0,0 +1,98 @@ +/** + * Delete mutation hook for FileRefField + * @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 { fileRefFieldKeys } from '../query-keys'; +import { fileRefFieldMutationKeys } from '../mutation-keys'; +import type { FileRefFieldSelect, FileRefFieldWithRelations } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { FileRefFieldSelect, FileRefFieldWithRelations } from '../../orm/input-types'; +/** + * Mutation hook for deleting a FileRefField with typed selection + * + * @example + * ```tsx + * const { mutate, isPending } = useDeleteFileRefFieldMutation({ + * selection: { fields: { id: true } }, + * }); + * + * mutate({ id: 'value-to-delete' }); + * ``` + */ +export function useDeleteFileRefFieldMutation( + params: { + selection: { + fields: S & FileRefFieldSelect; + } & HookStrictSelect, FileRefFieldSelect>; + } & Omit< + UseMutationOptions< + { + deleteFileRefField: { + fileRefField: InferSelectResult; + }; + }, + Error, + { + id: string; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + deleteFileRefField: { + fileRefField: InferSelectResult; + }; + }, + Error, + { + id: string; + } +>; +export function useDeleteFileRefFieldMutation( + 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: fileRefFieldMutationKeys.all, + mutationFn: ({ id }: { id: string }) => + getClient() + .fileRefField.delete({ + where: { + id, + }, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.removeQueries({ + queryKey: fileRefFieldKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: fileRefFieldKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/modules/hooks/mutations/useDeleteOauthRequestsModuleMutation.ts b/sdk/constructive-react/src/modules/hooks/mutations/useDeleteOauthRequestsModuleMutation.ts new file mode 100644 index 0000000000..db16ac442a --- /dev/null +++ b/sdk/constructive-react/src/modules/hooks/mutations/useDeleteOauthRequestsModuleMutation.ts @@ -0,0 +1,114 @@ +/** + * Config row for the oauth_requests_module, which provisions the in-flight half of an SSO + sign-in: the OAuth authorization requests table (state + PKCE code_verifier) and the + pending identity links table (a verified identity parked under a single-use ticket), + both private, plus the five SECURITY DEFINER procedures that are their only surface. + Sibling of identity_providers_module (durable provider configuration) rather than part + of it: this is ephemeral, purged flow state with its own retention. + * @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 { oauthRequestsModuleKeys } from '../query-keys'; +import { oauthRequestsModuleMutationKeys } from '../mutation-keys'; +import type { + OauthRequestsModuleSelect, + OauthRequestsModuleWithRelations, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + OauthRequestsModuleSelect, + OauthRequestsModuleWithRelations, +} from '../../orm/input-types'; +/** + * Config row for the oauth_requests_module, which provisions the in-flight half of an SSO + sign-in: the OAuth authorization requests table (state + PKCE code_verifier) and the + pending identity links table (a verified identity parked under a single-use ticket), + both private, plus the five SECURITY DEFINER procedures that are their only surface. + Sibling of identity_providers_module (durable provider configuration) rather than part + of it: this is ephemeral, purged flow state with its own retention. + * + * @example + * ```tsx + * const { mutate, isPending } = useDeleteOauthRequestsModuleMutation({ + * selection: { fields: { id: true } }, + * }); + * + * mutate({ id: 'value-to-delete' }); + * ``` + */ +export function useDeleteOauthRequestsModuleMutation( + params: { + selection: { + fields: S & OauthRequestsModuleSelect; + } & HookStrictSelect, OauthRequestsModuleSelect>; + } & Omit< + UseMutationOptions< + { + deleteOauthRequestsModule: { + oauthRequestsModule: InferSelectResult; + }; + }, + Error, + { + id: string; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + deleteOauthRequestsModule: { + oauthRequestsModule: InferSelectResult; + }; + }, + Error, + { + id: string; + } +>; +export function useDeleteOauthRequestsModuleMutation( + 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: oauthRequestsModuleMutationKeys.all, + mutationFn: ({ id }: { id: string }) => + getClient() + .oauthRequestsModule.delete({ + where: { + id, + }, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.removeQueries({ + queryKey: oauthRequestsModuleKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: oauthRequestsModuleKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/modules/hooks/mutations/useDeleteScopeTypesModuleMutation.ts b/sdk/constructive-react/src/modules/hooks/mutations/useDeleteScopeTypesModuleMutation.ts new file mode 100644 index 0000000000..5191b35c59 --- /dev/null +++ b/sdk/constructive-react/src/modules/hooks/mutations/useDeleteScopeTypesModuleMutation.ts @@ -0,0 +1,98 @@ +/** + * Delete mutation hook for ScopeTypesModule + * @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 { scopeTypesModuleKeys } from '../query-keys'; +import { scopeTypesModuleMutationKeys } from '../mutation-keys'; +import type { ScopeTypesModuleSelect, ScopeTypesModuleWithRelations } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { ScopeTypesModuleSelect, ScopeTypesModuleWithRelations } from '../../orm/input-types'; +/** + * Mutation hook for deleting a ScopeTypesModule with typed selection + * + * @example + * ```tsx + * const { mutate, isPending } = useDeleteScopeTypesModuleMutation({ + * selection: { fields: { id: true } }, + * }); + * + * mutate({ id: 'value-to-delete' }); + * ``` + */ +export function useDeleteScopeTypesModuleMutation( + params: { + selection: { + fields: S & ScopeTypesModuleSelect; + } & HookStrictSelect, ScopeTypesModuleSelect>; + } & Omit< + UseMutationOptions< + { + deleteScopeTypesModule: { + scopeTypesModule: InferSelectResult; + }; + }, + Error, + { + id: string; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + deleteScopeTypesModule: { + scopeTypesModule: InferSelectResult; + }; + }, + Error, + { + id: string; + } +>; +export function useDeleteScopeTypesModuleMutation( + 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: scopeTypesModuleMutationKeys.all, + mutationFn: ({ id }: { id: string }) => + getClient() + .scopeTypesModule.delete({ + where: { + id, + }, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.removeQueries({ + queryKey: scopeTypesModuleKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: scopeTypesModuleKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/modules/hooks/mutations/useDeleteUserSettingsSecurityModuleMutation.ts b/sdk/constructive-react/src/modules/hooks/mutations/useDeleteUserSettingsSecurityModuleMutation.ts new file mode 100644 index 0000000000..e57f31108e --- /dev/null +++ b/sdk/constructive-react/src/modules/hooks/mutations/useDeleteUserSettingsSecurityModuleMutation.ts @@ -0,0 +1,106 @@ +/** + * Delete mutation hook for UserSettingsSecurityModule + * @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 { userSettingsSecurityModuleKeys } from '../query-keys'; +import { userSettingsSecurityModuleMutationKeys } from '../mutation-keys'; +import type { + UserSettingsSecurityModuleSelect, + UserSettingsSecurityModuleWithRelations, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + UserSettingsSecurityModuleSelect, + UserSettingsSecurityModuleWithRelations, +} from '../../orm/input-types'; +/** + * Mutation hook for deleting a UserSettingsSecurityModule with typed selection + * + * @example + * ```tsx + * const { mutate, isPending } = useDeleteUserSettingsSecurityModuleMutation({ + * selection: { fields: { id: true } }, + * }); + * + * mutate({ id: 'value-to-delete' }); + * ``` + */ +export function useDeleteUserSettingsSecurityModuleMutation< + S extends UserSettingsSecurityModuleSelect, +>( + params: { + selection: { + fields: S & UserSettingsSecurityModuleSelect; + } & HookStrictSelect, UserSettingsSecurityModuleSelect>; + } & Omit< + UseMutationOptions< + { + deleteUserSettingsSecurityModule: { + userSettingsSecurityModule: InferSelectResult; + }; + }, + Error, + { + id: string; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + deleteUserSettingsSecurityModule: { + userSettingsSecurityModule: InferSelectResult; + }; + }, + Error, + { + id: string; + } +>; +export function useDeleteUserSettingsSecurityModuleMutation( + 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: userSettingsSecurityModuleMutationKeys.all, + mutationFn: ({ id }: { id: string }) => + getClient() + .userSettingsSecurityModule.delete({ + where: { + id, + }, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.removeQueries({ + queryKey: userSettingsSecurityModuleKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: userSettingsSecurityModuleKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/modules/hooks/mutations/useProvisionCheckConstraintMutation.ts b/sdk/constructive-react/src/modules/hooks/mutations/useProvisionCheckConstraintMutation.ts deleted file mode 100644 index 2e18ad6276..0000000000 --- a/sdk/constructive-react/src/modules/hooks/mutations/useProvisionCheckConstraintMutation.ts +++ /dev/null @@ -1,60 +0,0 @@ -/** - * Custom mutation hook for provisionCheckConstraint - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ - -import { useMutation } from '@tanstack/react-query'; -import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildSelectionArgs } from '../selection'; -import type { SelectionConfig } from '../selection'; -import { customMutationKeys } from '../mutation-keys'; -import type { ProvisionCheckConstraintVariables } from '../../orm/mutation'; -import type { - ProvisionCheckConstraintPayloadSelect, - ProvisionCheckConstraintPayload, -} from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect, StrictSelect } from '../../orm/select-types'; -export type { ProvisionCheckConstraintVariables } from '../../orm/mutation'; -export type { ProvisionCheckConstraintPayloadSelect } from '../../orm/input-types'; -export function useProvisionCheckConstraintMutation< - S extends ProvisionCheckConstraintPayloadSelect, ->( - params: { - selection: { - fields: S & ProvisionCheckConstraintPayloadSelect; - } & HookStrictSelect, ProvisionCheckConstraintPayloadSelect>; - } & Omit< - UseMutationOptions< - { - provisionCheckConstraint: InferSelectResult | null; - }, - Error, - ProvisionCheckConstraintVariables - >, - 'mutationFn' - > -): UseMutationResult< - { - provisionCheckConstraint: InferSelectResult | null; - }, - Error, - ProvisionCheckConstraintVariables -> { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...mutationOptions } = params ?? {}; - void _selection; - return useMutation({ - mutationKey: customMutationKeys.provisionCheckConstraint(), - mutationFn: (variables: ProvisionCheckConstraintVariables) => - getClient() - .mutation.provisionCheckConstraint(variables, { - select: args.select, - } as { - select: S; - } & StrictSelect) - .unwrap(), - ...mutationOptions, - }); -} diff --git a/sdk/constructive-react/src/modules/hooks/mutations/useProvisionSpatialRelationMutation.ts b/sdk/constructive-react/src/modules/hooks/mutations/useProvisionSpatialRelationMutation.ts deleted file mode 100644 index 5d09d35fdb..0000000000 --- a/sdk/constructive-react/src/modules/hooks/mutations/useProvisionSpatialRelationMutation.ts +++ /dev/null @@ -1,60 +0,0 @@ -/** - * Custom mutation hook for provisionSpatialRelation - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ - -import { useMutation } from '@tanstack/react-query'; -import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildSelectionArgs } from '../selection'; -import type { SelectionConfig } from '../selection'; -import { customMutationKeys } from '../mutation-keys'; -import type { ProvisionSpatialRelationVariables } from '../../orm/mutation'; -import type { - ProvisionSpatialRelationPayloadSelect, - ProvisionSpatialRelationPayload, -} from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect, StrictSelect } from '../../orm/select-types'; -export type { ProvisionSpatialRelationVariables } from '../../orm/mutation'; -export type { ProvisionSpatialRelationPayloadSelect } from '../../orm/input-types'; -export function useProvisionSpatialRelationMutation< - S extends ProvisionSpatialRelationPayloadSelect, ->( - params: { - selection: { - fields: S & ProvisionSpatialRelationPayloadSelect; - } & HookStrictSelect, ProvisionSpatialRelationPayloadSelect>; - } & Omit< - UseMutationOptions< - { - provisionSpatialRelation: InferSelectResult | null; - }, - Error, - ProvisionSpatialRelationVariables - >, - 'mutationFn' - > -): UseMutationResult< - { - provisionSpatialRelation: InferSelectResult | null; - }, - Error, - ProvisionSpatialRelationVariables -> { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...mutationOptions } = params ?? {}; - void _selection; - return useMutation({ - mutationKey: customMutationKeys.provisionSpatialRelation(), - mutationFn: (variables: ProvisionSpatialRelationVariables) => - getClient() - .mutation.provisionSpatialRelation(variables, { - select: args.select, - } as { - select: S; - } & StrictSelect) - .unwrap(), - ...mutationOptions, - }); -} diff --git a/sdk/constructive-react/src/modules/hooks/mutations/useUpdateCapabilitiesModuleMutation.ts b/sdk/constructive-react/src/modules/hooks/mutations/useUpdateCapabilitiesModuleMutation.ts new file mode 100644 index 0000000000..c0f08082ed --- /dev/null +++ b/sdk/constructive-react/src/modules/hooks/mutations/useUpdateCapabilitiesModuleMutation.ts @@ -0,0 +1,116 @@ +/** + * Update mutation hook for CapabilitiesModule + * @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 { capabilitiesModuleKeys } from '../query-keys'; +import { capabilitiesModuleMutationKeys } from '../mutation-keys'; +import type { + CapabilitiesModuleSelect, + CapabilitiesModuleWithRelations, + CapabilitiesModulePatch, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + CapabilitiesModuleSelect, + CapabilitiesModuleWithRelations, + CapabilitiesModulePatch, +} from '../../orm/input-types'; +/** + * Mutation hook for updating a CapabilitiesModule + * + * @example + * ```tsx + * const { mutate, isPending } = useUpdateCapabilitiesModuleMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ id: 'value-here', capabilitiesModulePatch: { name: 'Updated' } }); + * ``` + */ +export function useUpdateCapabilitiesModuleMutation( + params: { + selection: { + fields: S & CapabilitiesModuleSelect; + } & HookStrictSelect, CapabilitiesModuleSelect>; + } & Omit< + UseMutationOptions< + { + updateCapabilitiesModule: { + capabilitiesModule: InferSelectResult; + }; + }, + Error, + { + id: string; + capabilitiesModulePatch: CapabilitiesModulePatch; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + updateCapabilitiesModule: { + capabilitiesModule: InferSelectResult; + }; + }, + Error, + { + id: string; + capabilitiesModulePatch: CapabilitiesModulePatch; + } +>; +export function useUpdateCapabilitiesModuleMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions< + any, + Error, + { + id: string; + capabilitiesModulePatch: CapabilitiesModulePatch; + } + >, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: capabilitiesModuleMutationKeys.all, + mutationFn: ({ + id, + capabilitiesModulePatch, + }: { + id: string; + capabilitiesModulePatch: CapabilitiesModulePatch; + }) => + getClient() + .capabilitiesModule.update({ + where: { + id, + }, + data: capabilitiesModulePatch, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.invalidateQueries({ + queryKey: capabilitiesModuleKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: capabilitiesModuleKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/modules/hooks/mutations/useUpdateContentPresetModuleMutation.ts b/sdk/constructive-react/src/modules/hooks/mutations/useUpdateContentPresetModuleMutation.ts new file mode 100644 index 0000000000..f3c61ab72b --- /dev/null +++ b/sdk/constructive-react/src/modules/hooks/mutations/useUpdateContentPresetModuleMutation.ts @@ -0,0 +1,116 @@ +/** + * Update mutation hook for ContentPresetModule + * @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 { contentPresetModuleKeys } from '../query-keys'; +import { contentPresetModuleMutationKeys } from '../mutation-keys'; +import type { + ContentPresetModuleSelect, + ContentPresetModuleWithRelations, + ContentPresetModulePatch, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + ContentPresetModuleSelect, + ContentPresetModuleWithRelations, + ContentPresetModulePatch, +} from '../../orm/input-types'; +/** + * Mutation hook for updating a ContentPresetModule + * + * @example + * ```tsx + * const { mutate, isPending } = useUpdateContentPresetModuleMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ id: 'value-here', contentPresetModulePatch: { name: 'Updated' } }); + * ``` + */ +export function useUpdateContentPresetModuleMutation( + params: { + selection: { + fields: S & ContentPresetModuleSelect; + } & HookStrictSelect, ContentPresetModuleSelect>; + } & Omit< + UseMutationOptions< + { + updateContentPresetModule: { + contentPresetModule: InferSelectResult; + }; + }, + Error, + { + id: string; + contentPresetModulePatch: ContentPresetModulePatch; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + updateContentPresetModule: { + contentPresetModule: InferSelectResult; + }; + }, + Error, + { + id: string; + contentPresetModulePatch: ContentPresetModulePatch; + } +>; +export function useUpdateContentPresetModuleMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions< + any, + Error, + { + id: string; + contentPresetModulePatch: ContentPresetModulePatch; + } + >, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: contentPresetModuleMutationKeys.all, + mutationFn: ({ + id, + contentPresetModulePatch, + }: { + id: string; + contentPresetModulePatch: ContentPresetModulePatch; + }) => + getClient() + .contentPresetModule.update({ + where: { + id, + }, + data: contentPresetModulePatch, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.invalidateQueries({ + queryKey: contentPresetModuleKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: contentPresetModuleKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/modules/hooks/mutations/useUpdateDataCapabilitiesFieldMutation.ts b/sdk/constructive-react/src/modules/hooks/mutations/useUpdateDataCapabilitiesFieldMutation.ts new file mode 100644 index 0000000000..dbf3135915 --- /dev/null +++ b/sdk/constructive-react/src/modules/hooks/mutations/useUpdateDataCapabilitiesFieldMutation.ts @@ -0,0 +1,116 @@ +/** + * Update mutation hook for DataCapabilitiesField + * @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 { dataCapabilitiesFieldKeys } from '../query-keys'; +import { dataCapabilitiesFieldMutationKeys } from '../mutation-keys'; +import type { + DataCapabilitiesFieldSelect, + DataCapabilitiesFieldWithRelations, + DataCapabilitiesFieldPatch, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + DataCapabilitiesFieldSelect, + DataCapabilitiesFieldWithRelations, + DataCapabilitiesFieldPatch, +} from '../../orm/input-types'; +/** + * Mutation hook for updating a DataCapabilitiesField + * + * @example + * ```tsx + * const { mutate, isPending } = useUpdateDataCapabilitiesFieldMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ id: 'value-here', dataCapabilitiesFieldPatch: { name: 'Updated' } }); + * ``` + */ +export function useUpdateDataCapabilitiesFieldMutation( + params: { + selection: { + fields: S & DataCapabilitiesFieldSelect; + } & HookStrictSelect, DataCapabilitiesFieldSelect>; + } & Omit< + UseMutationOptions< + { + updateDataCapabilitiesField: { + dataCapabilitiesField: InferSelectResult; + }; + }, + Error, + { + id: string; + dataCapabilitiesFieldPatch: DataCapabilitiesFieldPatch; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + updateDataCapabilitiesField: { + dataCapabilitiesField: InferSelectResult; + }; + }, + Error, + { + id: string; + dataCapabilitiesFieldPatch: DataCapabilitiesFieldPatch; + } +>; +export function useUpdateDataCapabilitiesFieldMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions< + any, + Error, + { + id: string; + dataCapabilitiesFieldPatch: DataCapabilitiesFieldPatch; + } + >, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: dataCapabilitiesFieldMutationKeys.all, + mutationFn: ({ + id, + dataCapabilitiesFieldPatch, + }: { + id: string; + dataCapabilitiesFieldPatch: DataCapabilitiesFieldPatch; + }) => + getClient() + .dataCapabilitiesField.update({ + where: { + id, + }, + data: dataCapabilitiesFieldPatch, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.invalidateQueries({ + queryKey: dataCapabilitiesFieldKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: dataCapabilitiesFieldKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/modules/hooks/mutations/useUpdatePermissionsModuleMutation.ts b/sdk/constructive-react/src/modules/hooks/mutations/useUpdateEmailSenderModuleMutation.ts similarity index 51% rename from sdk/constructive-react/src/modules/hooks/mutations/useUpdatePermissionsModuleMutation.ts rename to sdk/constructive-react/src/modules/hooks/mutations/useUpdateEmailSenderModuleMutation.ts index de206e8b71..c5839781c8 100644 --- a/sdk/constructive-react/src/modules/hooks/mutations/useUpdatePermissionsModuleMutation.ts +++ b/sdk/constructive-react/src/modules/hooks/mutations/useUpdateEmailSenderModuleMutation.ts @@ -1,5 +1,5 @@ /** - * Update mutation hook for PermissionsModule + * Update mutation hook for EmailSenderModule * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -9,106 +9,106 @@ import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-quer import { getClient } from '../client'; import { buildSelectionArgs } from '../selection'; import type { SelectionConfig } from '../selection'; -import { permissionsModuleKeys } from '../query-keys'; -import { permissionsModuleMutationKeys } from '../mutation-keys'; +import { emailSenderModuleKeys } from '../query-keys'; +import { emailSenderModuleMutationKeys } from '../mutation-keys'; import type { - PermissionsModuleSelect, - PermissionsModuleWithRelations, - PermissionsModulePatch, + EmailSenderModuleSelect, + EmailSenderModuleWithRelations, + EmailSenderModulePatch, } from '../../orm/input-types'; import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; export type { - PermissionsModuleSelect, - PermissionsModuleWithRelations, - PermissionsModulePatch, + EmailSenderModuleSelect, + EmailSenderModuleWithRelations, + EmailSenderModulePatch, } from '../../orm/input-types'; /** - * Mutation hook for updating a PermissionsModule + * Mutation hook for updating a EmailSenderModule * * @example * ```tsx - * const { mutate, isPending } = useUpdatePermissionsModuleMutation({ + * const { mutate, isPending } = useUpdateEmailSenderModuleMutation({ * selection: { fields: { id: true, name: true } }, * }); * - * mutate({ id: 'value-here', permissionsModulePatch: { name: 'Updated' } }); + * mutate({ id: 'value-here', emailSenderModulePatch: { name: 'Updated' } }); * ``` */ -export function useUpdatePermissionsModuleMutation( +export function useUpdateEmailSenderModuleMutation( params: { selection: { - fields: S & PermissionsModuleSelect; - } & HookStrictSelect, PermissionsModuleSelect>; + fields: S & EmailSenderModuleSelect; + } & HookStrictSelect, EmailSenderModuleSelect>; } & Omit< UseMutationOptions< { - updatePermissionsModule: { - permissionsModule: InferSelectResult; + updateEmailSenderModule: { + emailSenderModule: InferSelectResult; }; }, Error, { id: string; - permissionsModulePatch: PermissionsModulePatch; + emailSenderModulePatch: EmailSenderModulePatch; } >, 'mutationFn' > ): UseMutationResult< { - updatePermissionsModule: { - permissionsModule: InferSelectResult; + updateEmailSenderModule: { + emailSenderModule: InferSelectResult; }; }, Error, { id: string; - permissionsModulePatch: PermissionsModulePatch; + emailSenderModulePatch: EmailSenderModulePatch; } >; -export function useUpdatePermissionsModuleMutation( +export function useUpdateEmailSenderModuleMutation( params: { - selection: SelectionConfig; + selection: SelectionConfig; } & Omit< UseMutationOptions< any, Error, { id: string; - permissionsModulePatch: PermissionsModulePatch; + emailSenderModulePatch: EmailSenderModulePatch; } >, 'mutationFn' > ) { - const args = buildSelectionArgs(params.selection); + const args = buildSelectionArgs(params.selection); const { selection: _selection, ...mutationOptions } = params ?? {}; void _selection; const queryClient = useQueryClient(); return useMutation({ - mutationKey: permissionsModuleMutationKeys.all, + mutationKey: emailSenderModuleMutationKeys.all, mutationFn: ({ id, - permissionsModulePatch, + emailSenderModulePatch, }: { id: string; - permissionsModulePatch: PermissionsModulePatch; + emailSenderModulePatch: EmailSenderModulePatch; }) => getClient() - .permissionsModule.update({ + .emailSenderModule.update({ where: { id, }, - data: permissionsModulePatch, + data: emailSenderModulePatch, select: args.select, }) .unwrap(), onSuccess: (_, variables) => { queryClient.invalidateQueries({ - queryKey: permissionsModuleKeys.detail(variables.id), + queryKey: emailSenderModuleKeys.detail(variables.id), }); queryClient.invalidateQueries({ - queryKey: permissionsModuleKeys.lists(), + queryKey: emailSenderModuleKeys.lists(), }); }, ...mutationOptions, diff --git a/sdk/constructive-react/src/modules/hooks/mutations/useUpdateEntityTypeProvisionMutation.ts b/sdk/constructive-react/src/modules/hooks/mutations/useUpdateEntityTypeProvisionMutation.ts index a95af50c3c..fe9fac1871 100644 --- a/sdk/constructive-react/src/modules/hooks/mutations/useUpdateEntityTypeProvisionMutation.ts +++ b/sdk/constructive-react/src/modules/hooks/mutations/useUpdateEntityTypeProvisionMutation.ts @@ -1,6 +1,6 @@ /** * Provisions a new membership entity type. Each INSERT creates an entity table, registers a membership type, - and installs the required modules (permissions, memberships, limits) plus optional modules (profiles, levels, invites). + and installs the required modules (capabilities, memberships, limits) plus optional modules (profiles, levels, invites). Uses provision_membership_table() internally. Graceful: duplicate (database_id, prefix) pairs are silently skipped via the unique constraint (use INSERT ... ON CONFLICT DO NOTHING). Policy behavior: by default the five entity-table RLS policies are applied (gated by is_visible). @@ -31,7 +31,7 @@ export type { } from '../../orm/input-types'; /** * Provisions a new membership entity type. Each INSERT creates an entity table, registers a membership type, - and installs the required modules (permissions, memberships, limits) plus optional modules (profiles, levels, invites). + and installs the required modules (capabilities, memberships, limits) plus optional modules (profiles, levels, invites). Uses provision_membership_table() internally. Graceful: duplicate (database_id, prefix) pairs are silently skipped via the unique constraint (use INSERT ... ON CONFLICT DO NOTHING). Policy behavior: by default the five entity-table RLS policies are applied (gated by is_visible). diff --git a/sdk/constructive-react/src/modules/hooks/mutations/useUpdateFileRefFieldMutation.ts b/sdk/constructive-react/src/modules/hooks/mutations/useUpdateFileRefFieldMutation.ts new file mode 100644 index 0000000000..ede25c7898 --- /dev/null +++ b/sdk/constructive-react/src/modules/hooks/mutations/useUpdateFileRefFieldMutation.ts @@ -0,0 +1,110 @@ +/** + * Update mutation hook for FileRefField + * @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 { fileRefFieldKeys } from '../query-keys'; +import { fileRefFieldMutationKeys } from '../mutation-keys'; +import type { + FileRefFieldSelect, + FileRefFieldWithRelations, + FileRefFieldPatch, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + FileRefFieldSelect, + FileRefFieldWithRelations, + FileRefFieldPatch, +} from '../../orm/input-types'; +/** + * Mutation hook for updating a FileRefField + * + * @example + * ```tsx + * const { mutate, isPending } = useUpdateFileRefFieldMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ id: 'value-here', fileRefFieldPatch: { name: 'Updated' } }); + * ``` + */ +export function useUpdateFileRefFieldMutation( + params: { + selection: { + fields: S & FileRefFieldSelect; + } & HookStrictSelect, FileRefFieldSelect>; + } & Omit< + UseMutationOptions< + { + updateFileRefField: { + fileRefField: InferSelectResult; + }; + }, + Error, + { + id: string; + fileRefFieldPatch: FileRefFieldPatch; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + updateFileRefField: { + fileRefField: InferSelectResult; + }; + }, + Error, + { + id: string; + fileRefFieldPatch: FileRefFieldPatch; + } +>; +export function useUpdateFileRefFieldMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions< + any, + Error, + { + id: string; + fileRefFieldPatch: FileRefFieldPatch; + } + >, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: fileRefFieldMutationKeys.all, + mutationFn: ({ id, fileRefFieldPatch }: { id: string; fileRefFieldPatch: FileRefFieldPatch }) => + getClient() + .fileRefField.update({ + where: { + id, + }, + data: fileRefFieldPatch, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.invalidateQueries({ + queryKey: fileRefFieldKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: fileRefFieldKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/modules/hooks/mutations/useUpdateOauthRequestsModuleMutation.ts b/sdk/constructive-react/src/modules/hooks/mutations/useUpdateOauthRequestsModuleMutation.ts new file mode 100644 index 0000000000..b7abf1eda4 --- /dev/null +++ b/sdk/constructive-react/src/modules/hooks/mutations/useUpdateOauthRequestsModuleMutation.ts @@ -0,0 +1,126 @@ +/** + * Config row for the oauth_requests_module, which provisions the in-flight half of an SSO + sign-in: the OAuth authorization requests table (state + PKCE code_verifier) and the + pending identity links table (a verified identity parked under a single-use ticket), + both private, plus the five SECURITY DEFINER procedures that are their only surface. + Sibling of identity_providers_module (durable provider configuration) rather than part + of it: this is ephemeral, purged flow state with its own retention. + * @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 { oauthRequestsModuleKeys } from '../query-keys'; +import { oauthRequestsModuleMutationKeys } from '../mutation-keys'; +import type { + OauthRequestsModuleSelect, + OauthRequestsModuleWithRelations, + OauthRequestsModulePatch, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + OauthRequestsModuleSelect, + OauthRequestsModuleWithRelations, + OauthRequestsModulePatch, +} from '../../orm/input-types'; +/** + * Config row for the oauth_requests_module, which provisions the in-flight half of an SSO + sign-in: the OAuth authorization requests table (state + PKCE code_verifier) and the + pending identity links table (a verified identity parked under a single-use ticket), + both private, plus the five SECURITY DEFINER procedures that are their only surface. + Sibling of identity_providers_module (durable provider configuration) rather than part + of it: this is ephemeral, purged flow state with its own retention. + * + * @example + * ```tsx + * const { mutate, isPending } = useUpdateOauthRequestsModuleMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ id: 'value-here', oauthRequestsModulePatch: { name: 'Updated' } }); + * ``` + */ +export function useUpdateOauthRequestsModuleMutation( + params: { + selection: { + fields: S & OauthRequestsModuleSelect; + } & HookStrictSelect, OauthRequestsModuleSelect>; + } & Omit< + UseMutationOptions< + { + updateOauthRequestsModule: { + oauthRequestsModule: InferSelectResult; + }; + }, + Error, + { + id: string; + oauthRequestsModulePatch: OauthRequestsModulePatch; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + updateOauthRequestsModule: { + oauthRequestsModule: InferSelectResult; + }; + }, + Error, + { + id: string; + oauthRequestsModulePatch: OauthRequestsModulePatch; + } +>; +export function useUpdateOauthRequestsModuleMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions< + any, + Error, + { + id: string; + oauthRequestsModulePatch: OauthRequestsModulePatch; + } + >, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: oauthRequestsModuleMutationKeys.all, + mutationFn: ({ + id, + oauthRequestsModulePatch, + }: { + id: string; + oauthRequestsModulePatch: OauthRequestsModulePatch; + }) => + getClient() + .oauthRequestsModule.update({ + where: { + id, + }, + data: oauthRequestsModulePatch, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.invalidateQueries({ + queryKey: oauthRequestsModuleKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: oauthRequestsModuleKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/modules/hooks/mutations/useUpdateScopeTypesModuleMutation.ts b/sdk/constructive-react/src/modules/hooks/mutations/useUpdateScopeTypesModuleMutation.ts new file mode 100644 index 0000000000..0d9cef2f70 --- /dev/null +++ b/sdk/constructive-react/src/modules/hooks/mutations/useUpdateScopeTypesModuleMutation.ts @@ -0,0 +1,116 @@ +/** + * Update mutation hook for ScopeTypesModule + * @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 { scopeTypesModuleKeys } from '../query-keys'; +import { scopeTypesModuleMutationKeys } from '../mutation-keys'; +import type { + ScopeTypesModuleSelect, + ScopeTypesModuleWithRelations, + ScopeTypesModulePatch, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + ScopeTypesModuleSelect, + ScopeTypesModuleWithRelations, + ScopeTypesModulePatch, +} from '../../orm/input-types'; +/** + * Mutation hook for updating a ScopeTypesModule + * + * @example + * ```tsx + * const { mutate, isPending } = useUpdateScopeTypesModuleMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ id: 'value-here', scopeTypesModulePatch: { name: 'Updated' } }); + * ``` + */ +export function useUpdateScopeTypesModuleMutation( + params: { + selection: { + fields: S & ScopeTypesModuleSelect; + } & HookStrictSelect, ScopeTypesModuleSelect>; + } & Omit< + UseMutationOptions< + { + updateScopeTypesModule: { + scopeTypesModule: InferSelectResult; + }; + }, + Error, + { + id: string; + scopeTypesModulePatch: ScopeTypesModulePatch; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + updateScopeTypesModule: { + scopeTypesModule: InferSelectResult; + }; + }, + Error, + { + id: string; + scopeTypesModulePatch: ScopeTypesModulePatch; + } +>; +export function useUpdateScopeTypesModuleMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions< + any, + Error, + { + id: string; + scopeTypesModulePatch: ScopeTypesModulePatch; + } + >, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: scopeTypesModuleMutationKeys.all, + mutationFn: ({ + id, + scopeTypesModulePatch, + }: { + id: string; + scopeTypesModulePatch: ScopeTypesModulePatch; + }) => + getClient() + .scopeTypesModule.update({ + where: { + id, + }, + data: scopeTypesModulePatch, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.invalidateQueries({ + queryKey: scopeTypesModuleKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: scopeTypesModuleKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/modules/hooks/mutations/useUpdateUserSettingsSecurityModuleMutation.ts b/sdk/constructive-react/src/modules/hooks/mutations/useUpdateUserSettingsSecurityModuleMutation.ts new file mode 100644 index 0000000000..28a09bbe4a --- /dev/null +++ b/sdk/constructive-react/src/modules/hooks/mutations/useUpdateUserSettingsSecurityModuleMutation.ts @@ -0,0 +1,118 @@ +/** + * Update mutation hook for UserSettingsSecurityModule + * @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 { userSettingsSecurityModuleKeys } from '../query-keys'; +import { userSettingsSecurityModuleMutationKeys } from '../mutation-keys'; +import type { + UserSettingsSecurityModuleSelect, + UserSettingsSecurityModuleWithRelations, + UserSettingsSecurityModulePatch, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + UserSettingsSecurityModuleSelect, + UserSettingsSecurityModuleWithRelations, + UserSettingsSecurityModulePatch, +} from '../../orm/input-types'; +/** + * Mutation hook for updating a UserSettingsSecurityModule + * + * @example + * ```tsx + * const { mutate, isPending } = useUpdateUserSettingsSecurityModuleMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ id: 'value-here', userSettingsSecurityModulePatch: { name: 'Updated' } }); + * ``` + */ +export function useUpdateUserSettingsSecurityModuleMutation< + S extends UserSettingsSecurityModuleSelect, +>( + params: { + selection: { + fields: S & UserSettingsSecurityModuleSelect; + } & HookStrictSelect, UserSettingsSecurityModuleSelect>; + } & Omit< + UseMutationOptions< + { + updateUserSettingsSecurityModule: { + userSettingsSecurityModule: InferSelectResult; + }; + }, + Error, + { + id: string; + userSettingsSecurityModulePatch: UserSettingsSecurityModulePatch; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + updateUserSettingsSecurityModule: { + userSettingsSecurityModule: InferSelectResult; + }; + }, + Error, + { + id: string; + userSettingsSecurityModulePatch: UserSettingsSecurityModulePatch; + } +>; +export function useUpdateUserSettingsSecurityModuleMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions< + any, + Error, + { + id: string; + userSettingsSecurityModulePatch: UserSettingsSecurityModulePatch; + } + >, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: userSettingsSecurityModuleMutationKeys.all, + mutationFn: ({ + id, + userSettingsSecurityModulePatch, + }: { + id: string; + userSettingsSecurityModulePatch: UserSettingsSecurityModulePatch; + }) => + getClient() + .userSettingsSecurityModule.update({ + where: { + id, + }, + data: userSettingsSecurityModulePatch, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.invalidateQueries({ + queryKey: userSettingsSecurityModuleKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: userSettingsSecurityModuleKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/modules/hooks/queries/index.ts b/sdk/constructive-react/src/modules/hooks/queries/index.ts index a12257a67f..c47aede539 100644 --- a/sdk/constructive-react/src/modules/hooks/queries/index.ts +++ b/sdk/constructive-react/src/modules/hooks/queries/index.ts @@ -19,6 +19,8 @@ export * from './useBlueprintConstructionsQuery'; export * from './useBlueprintConstructionQuery'; export * from './useBlueprintTemplatesQuery'; export * from './useBlueprintTemplateQuery'; +export * from './useCapabilitiesModulesQuery'; +export * from './useCapabilitiesModuleQuery'; export * from './useCatalogModulesQuery'; export * from './useCatalogModuleQuery'; export * from './useComputeLogModulesQuery'; @@ -27,10 +29,14 @@ export * from './useConfigSecretsUserModulesQuery'; export * from './useConfigSecretsUserModuleQuery'; export * from './useConnectedAccountsModulesQuery'; export * from './useConnectedAccountsModuleQuery'; +export * from './useContentPresetModulesQuery'; +export * from './useContentPresetModuleQuery'; export * from './useCryptoAddressesModulesQuery'; export * from './useCryptoAddressesModuleQuery'; export * from './useCryptoAuthModulesQuery'; export * from './useCryptoAuthModuleQuery'; +export * from './useDataCapabilitiesFieldsQuery'; +export * from './useDataCapabilitiesFieldQuery'; export * from './useDatabaseProvisionModulesQuery'; export * from './useDatabaseProvisionModuleQuery'; export * from './useDatabaseSettingsModulesQuery'; @@ -51,12 +57,16 @@ export * from './useDevicesModulesQuery'; export * from './useDevicesModuleQuery'; export * from './useDomainModulesQuery'; export * from './useDomainModuleQuery'; +export * from './useEmailSenderModulesQuery'; +export * from './useEmailSenderModuleQuery'; export * from './useEmailsModulesQuery'; export * from './useEmailsModuleQuery'; export * from './useEntityTypeProvisionsQuery'; export * from './useEntityTypeProvisionQuery'; export * from './useEventsModulesQuery'; export * from './useEventsModuleQuery'; +export * from './useFileRefFieldsQuery'; +export * from './useFileRefFieldQuery'; export * from './useFunctionDeploymentModulesQuery'; export * from './useFunctionDeploymentModuleQuery'; export * from './useFunctionInvocationModulesQuery'; @@ -99,10 +109,10 @@ export * from './useNamespaceModulesQuery'; export * from './useNamespaceModuleQuery'; export * from './useNotificationsModulesQuery'; export * from './useNotificationsModuleQuery'; +export * from './useOauthRequestsModulesQuery'; +export * from './useOauthRequestsModuleQuery'; export * from './usePagesModulesQuery'; export * from './usePagesModuleQuery'; -export * from './usePermissionsModulesQuery'; -export * from './usePermissionsModuleQuery'; export * from './usePhoneNumbersModulesQuery'; export * from './usePhoneNumbersModuleQuery'; export * from './usePlansModulesQuery'; @@ -125,6 +135,8 @@ export * from './useRlsModulesQuery'; export * from './useRlsModuleQuery'; export * from './useRouteModulesQuery'; export * from './useRouteModuleQuery'; +export * from './useScopeTypesModulesQuery'; +export * from './useScopeTypesModuleQuery'; export * from './useSecureTableProvisionsQuery'; export * from './useSecureTableProvisionQuery'; export * from './useSessionSecretsModulesQuery'; @@ -145,6 +157,8 @@ export * from './useUserCredentialsModulesQuery'; export * from './useUserCredentialsModuleQuery'; export * from './useUserSettingsModulesQuery'; export * from './useUserSettingsModuleQuery'; +export * from './useUserSettingsSecurityModulesQuery'; +export * from './useUserSettingsSecurityModuleQuery'; export * from './useUserStateModulesQuery'; export * from './useUserStateModuleQuery'; export * from './useUsersModulesQuery'; @@ -155,5 +169,3 @@ export * from './useWebauthnCredentialsModulesQuery'; export * from './useWebauthnCredentialsModuleQuery'; export * from './useWebhookModulesQuery'; export * from './useWebhookModuleQuery'; -export * from './useResolveBlueprintFieldQuery'; -export * from './useResolveBlueprintTableQuery'; diff --git a/sdk/constructive-react/src/modules/hooks/queries/useCapabilitiesModuleQuery.ts b/sdk/constructive-react/src/modules/hooks/queries/useCapabilitiesModuleQuery.ts new file mode 100644 index 0000000000..3ec3daec29 --- /dev/null +++ b/sdk/constructive-react/src/modules/hooks/queries/useCapabilitiesModuleQuery.ts @@ -0,0 +1,144 @@ +/** + * Single item query hook for CapabilitiesModule + * @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 { capabilitiesModuleKeys } from '../query-keys'; +import type { + CapabilitiesModuleSelect, + CapabilitiesModuleWithRelations, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + CapabilitiesModuleSelect, + CapabilitiesModuleWithRelations, +} from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const capabilitiesModuleQueryKey = capabilitiesModuleKeys.detail; +/** + * Query hook for fetching a single CapabilitiesModule + * + * @example + * ```tsx + * const { data, isLoading } = useCapabilitiesModuleQuery({ + * id: 'some-id', + * selection: { fields: { id: true, name: true } }, + * }); + * ``` + */ +export function useCapabilitiesModuleQuery< + S extends CapabilitiesModuleSelect, + TData = { + capabilitiesModule: InferSelectResult | null; + }, +>( + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, CapabilitiesModuleSelect>; + } & Omit< + UseQueryOptions< + { + capabilitiesModule: InferSelectResult | null; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useCapabilitiesModuleQuery( + params: { + id: string; + selection: SelectionConfig; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: capabilitiesModuleKeys.detail(params.id), + queryFn: () => + getClient() + .capabilitiesModule.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + ...queryOptions, + }); +} +/** + * Fetch a single CapabilitiesModule without React hooks + * + * @example + * ```ts + * const data = await fetchCapabilitiesModuleQuery({ + * id: 'some-id', + * selection: { fields: { id: true } }, + * }); + * ``` + */ +export async function fetchCapabilitiesModuleQuery(params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, CapabilitiesModuleSelect>; +}): Promise<{ + capabilitiesModule: InferSelectResult | null; +}>; +export async function fetchCapabilitiesModuleQuery(params: { + id: string; + selection: SelectionConfig; +}): Promise { + const args = buildSelectionArgs(params.selection); + return getClient() + .capabilitiesModule.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(); +} +/** + * Prefetch a single CapabilitiesModule for SSR or cache warming + * + * @example + * ```ts + * await prefetchCapabilitiesModuleQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } }); + * ``` + */ +export async function prefetchCapabilitiesModuleQuery( + queryClient: QueryClient, + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, CapabilitiesModuleSelect>; + } +): Promise; +export async function prefetchCapabilitiesModuleQuery( + queryClient: QueryClient, + params: { + id: string; + selection: SelectionConfig; + } +): Promise { + const args = buildSelectionArgs(params.selection); + await queryClient.prefetchQuery({ + queryKey: capabilitiesModuleKeys.detail(params.id), + queryFn: () => + getClient() + .capabilitiesModule.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + }); +} diff --git a/sdk/constructive-react/src/modules/hooks/queries/useCapabilitiesModulesQuery.ts b/sdk/constructive-react/src/modules/hooks/queries/useCapabilitiesModulesQuery.ts new file mode 100644 index 0000000000..86fda8b65b --- /dev/null +++ b/sdk/constructive-react/src/modules/hooks/queries/useCapabilitiesModulesQuery.ts @@ -0,0 +1,171 @@ +/** + * List query hook for CapabilitiesModule + * @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 { capabilitiesModuleKeys } from '../query-keys'; +import type { + CapabilitiesModuleSelect, + CapabilitiesModuleWithRelations, + CapabilitiesModuleFilter, + CapabilitiesModuleOrderBy, +} from '../../orm/input-types'; +import type { + FindManyArgs, + InferSelectResult, + ConnectionResult, + HookStrictSelect, +} from '../../orm/select-types'; +export type { + CapabilitiesModuleSelect, + CapabilitiesModuleWithRelations, + CapabilitiesModuleFilter, + CapabilitiesModuleOrderBy, +} from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const capabilitiesModulesQueryKey = capabilitiesModuleKeys.list; +/** + * Query hook for fetching CapabilitiesModule list + * + * @example + * ```tsx + * const { data, isLoading } = useCapabilitiesModulesQuery({ + * selection: { + * fields: { id: true, name: true }, + * where: { name: { equalTo: "example" } }, + * orderBy: ['CREATED_AT_DESC'], + * first: 10, + * }, + * }); + * ``` + */ +export function useCapabilitiesModulesQuery< + S extends CapabilitiesModuleSelect, + TData = { + capabilitiesModules: ConnectionResult>; + }, +>( + params: { + selection: { + fields: S; + } & Omit< + ListSelectionConfig, + 'fields' + > & + HookStrictSelect, CapabilitiesModuleSelect>; + } & Omit< + UseQueryOptions< + { + capabilitiesModules: ConnectionResult< + InferSelectResult + >; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useCapabilitiesModulesQuery( + params: { + selection: ListSelectionConfig< + CapabilitiesModuleSelect, + CapabilitiesModuleFilter, + CapabilitiesModuleOrderBy + >; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildListSelectionArgs< + CapabilitiesModuleSelect, + CapabilitiesModuleFilter, + CapabilitiesModuleOrderBy + >(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: capabilitiesModuleKeys.list(args), + queryFn: () => getClient().capabilitiesModule.findMany(args).unwrap(), + ...queryOptions, + }); +} +/** + * Fetch CapabilitiesModule list without React hooks + * + * @example + * ```ts + * const data = await fetchCapabilitiesModulesQuery({ + * selection: { + * fields: { id: true }, + * first: 10, + * }, + * }); + * ``` + */ +export async function fetchCapabilitiesModulesQuery(params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, CapabilitiesModuleSelect>; +}): Promise<{ + capabilitiesModules: ConnectionResult>; +}>; +export async function fetchCapabilitiesModulesQuery(params: { + selection: ListSelectionConfig< + CapabilitiesModuleSelect, + CapabilitiesModuleFilter, + CapabilitiesModuleOrderBy + >; +}) { + const args = buildListSelectionArgs< + CapabilitiesModuleSelect, + CapabilitiesModuleFilter, + CapabilitiesModuleOrderBy + >(params.selection); + return getClient().capabilitiesModule.findMany(args).unwrap(); +} +/** + * Prefetch CapabilitiesModule list for SSR or cache warming + * + * @example + * ```ts + * await prefetchCapabilitiesModulesQuery(queryClient, { selection: { fields: { id: true }, first: 10 } }); + * ``` + */ +export async function prefetchCapabilitiesModulesQuery( + queryClient: QueryClient, + params: { + selection: { + fields: S; + } & Omit< + ListSelectionConfig, + 'fields' + > & + HookStrictSelect, CapabilitiesModuleSelect>; + } +): Promise; +export async function prefetchCapabilitiesModulesQuery( + queryClient: QueryClient, + params: { + selection: ListSelectionConfig< + CapabilitiesModuleSelect, + CapabilitiesModuleFilter, + CapabilitiesModuleOrderBy + >; + } +): Promise { + const args = buildListSelectionArgs< + CapabilitiesModuleSelect, + CapabilitiesModuleFilter, + CapabilitiesModuleOrderBy + >(params.selection); + await queryClient.prefetchQuery({ + queryKey: capabilitiesModuleKeys.list(args), + queryFn: () => getClient().capabilitiesModule.findMany(args).unwrap(), + }); +} diff --git a/sdk/constructive-react/src/modules/hooks/queries/useContentPresetModuleQuery.ts b/sdk/constructive-react/src/modules/hooks/queries/useContentPresetModuleQuery.ts new file mode 100644 index 0000000000..a15114e866 --- /dev/null +++ b/sdk/constructive-react/src/modules/hooks/queries/useContentPresetModuleQuery.ts @@ -0,0 +1,144 @@ +/** + * Single item query hook for ContentPresetModule + * @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 { contentPresetModuleKeys } from '../query-keys'; +import type { + ContentPresetModuleSelect, + ContentPresetModuleWithRelations, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + ContentPresetModuleSelect, + ContentPresetModuleWithRelations, +} from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const contentPresetModuleQueryKey = contentPresetModuleKeys.detail; +/** + * Query hook for fetching a single ContentPresetModule + * + * @example + * ```tsx + * const { data, isLoading } = useContentPresetModuleQuery({ + * id: 'some-id', + * selection: { fields: { id: true, name: true } }, + * }); + * ``` + */ +export function useContentPresetModuleQuery< + S extends ContentPresetModuleSelect, + TData = { + contentPresetModule: InferSelectResult | null; + }, +>( + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, ContentPresetModuleSelect>; + } & Omit< + UseQueryOptions< + { + contentPresetModule: InferSelectResult | null; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useContentPresetModuleQuery( + params: { + id: string; + selection: SelectionConfig; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: contentPresetModuleKeys.detail(params.id), + queryFn: () => + getClient() + .contentPresetModule.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + ...queryOptions, + }); +} +/** + * Fetch a single ContentPresetModule without React hooks + * + * @example + * ```ts + * const data = await fetchContentPresetModuleQuery({ + * id: 'some-id', + * selection: { fields: { id: true } }, + * }); + * ``` + */ +export async function fetchContentPresetModuleQuery(params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, ContentPresetModuleSelect>; +}): Promise<{ + contentPresetModule: InferSelectResult | null; +}>; +export async function fetchContentPresetModuleQuery(params: { + id: string; + selection: SelectionConfig; +}): Promise { + const args = buildSelectionArgs(params.selection); + return getClient() + .contentPresetModule.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(); +} +/** + * Prefetch a single ContentPresetModule for SSR or cache warming + * + * @example + * ```ts + * await prefetchContentPresetModuleQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } }); + * ``` + */ +export async function prefetchContentPresetModuleQuery( + queryClient: QueryClient, + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, ContentPresetModuleSelect>; + } +): Promise; +export async function prefetchContentPresetModuleQuery( + queryClient: QueryClient, + params: { + id: string; + selection: SelectionConfig; + } +): Promise { + const args = buildSelectionArgs(params.selection); + await queryClient.prefetchQuery({ + queryKey: contentPresetModuleKeys.detail(params.id), + queryFn: () => + getClient() + .contentPresetModule.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + }); +} diff --git a/sdk/constructive-react/src/modules/hooks/queries/useContentPresetModulesQuery.ts b/sdk/constructive-react/src/modules/hooks/queries/useContentPresetModulesQuery.ts new file mode 100644 index 0000000000..700fae624b --- /dev/null +++ b/sdk/constructive-react/src/modules/hooks/queries/useContentPresetModulesQuery.ts @@ -0,0 +1,174 @@ +/** + * List query hook for ContentPresetModule + * @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 { contentPresetModuleKeys } from '../query-keys'; +import type { + ContentPresetModuleSelect, + ContentPresetModuleWithRelations, + ContentPresetModuleFilter, + ContentPresetModuleOrderBy, +} from '../../orm/input-types'; +import type { + FindManyArgs, + InferSelectResult, + ConnectionResult, + HookStrictSelect, +} from '../../orm/select-types'; +export type { + ContentPresetModuleSelect, + ContentPresetModuleWithRelations, + ContentPresetModuleFilter, + ContentPresetModuleOrderBy, +} from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const contentPresetModulesQueryKey = contentPresetModuleKeys.list; +/** + * Query hook for fetching ContentPresetModule list + * + * @example + * ```tsx + * const { data, isLoading } = useContentPresetModulesQuery({ + * selection: { + * fields: { id: true, name: true }, + * where: { name: { equalTo: "example" } }, + * orderBy: ['CREATED_AT_DESC'], + * first: 10, + * }, + * }); + * ``` + */ +export function useContentPresetModulesQuery< + S extends ContentPresetModuleSelect, + TData = { + contentPresetModules: ConnectionResult>; + }, +>( + params: { + selection: { + fields: S; + } & Omit< + ListSelectionConfig, + 'fields' + > & + HookStrictSelect, ContentPresetModuleSelect>; + } & Omit< + UseQueryOptions< + { + contentPresetModules: ConnectionResult< + InferSelectResult + >; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useContentPresetModulesQuery( + params: { + selection: ListSelectionConfig< + ContentPresetModuleSelect, + ContentPresetModuleFilter, + ContentPresetModuleOrderBy + >; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildListSelectionArgs< + ContentPresetModuleSelect, + ContentPresetModuleFilter, + ContentPresetModuleOrderBy + >(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: contentPresetModuleKeys.list(args), + queryFn: () => getClient().contentPresetModule.findMany(args).unwrap(), + ...queryOptions, + }); +} +/** + * Fetch ContentPresetModule list without React hooks + * + * @example + * ```ts + * const data = await fetchContentPresetModulesQuery({ + * selection: { + * fields: { id: true }, + * first: 10, + * }, + * }); + * ``` + */ +export async function fetchContentPresetModulesQuery(params: { + selection: { + fields: S; + } & Omit< + ListSelectionConfig, + 'fields' + > & + HookStrictSelect, ContentPresetModuleSelect>; +}): Promise<{ + contentPresetModules: ConnectionResult>; +}>; +export async function fetchContentPresetModulesQuery(params: { + selection: ListSelectionConfig< + ContentPresetModuleSelect, + ContentPresetModuleFilter, + ContentPresetModuleOrderBy + >; +}) { + const args = buildListSelectionArgs< + ContentPresetModuleSelect, + ContentPresetModuleFilter, + ContentPresetModuleOrderBy + >(params.selection); + return getClient().contentPresetModule.findMany(args).unwrap(); +} +/** + * Prefetch ContentPresetModule list for SSR or cache warming + * + * @example + * ```ts + * await prefetchContentPresetModulesQuery(queryClient, { selection: { fields: { id: true }, first: 10 } }); + * ``` + */ +export async function prefetchContentPresetModulesQuery( + queryClient: QueryClient, + params: { + selection: { + fields: S; + } & Omit< + ListSelectionConfig, + 'fields' + > & + HookStrictSelect, ContentPresetModuleSelect>; + } +): Promise; +export async function prefetchContentPresetModulesQuery( + queryClient: QueryClient, + params: { + selection: ListSelectionConfig< + ContentPresetModuleSelect, + ContentPresetModuleFilter, + ContentPresetModuleOrderBy + >; + } +): Promise { + const args = buildListSelectionArgs< + ContentPresetModuleSelect, + ContentPresetModuleFilter, + ContentPresetModuleOrderBy + >(params.selection); + await queryClient.prefetchQuery({ + queryKey: contentPresetModuleKeys.list(args), + queryFn: () => getClient().contentPresetModule.findMany(args).unwrap(), + }); +} diff --git a/sdk/constructive-react/src/modules/hooks/queries/useDataCapabilitiesFieldQuery.ts b/sdk/constructive-react/src/modules/hooks/queries/useDataCapabilitiesFieldQuery.ts new file mode 100644 index 0000000000..13b5fbc87a --- /dev/null +++ b/sdk/constructive-react/src/modules/hooks/queries/useDataCapabilitiesFieldQuery.ts @@ -0,0 +1,146 @@ +/** + * Single item query hook for DataCapabilitiesField + * @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 { dataCapabilitiesFieldKeys } from '../query-keys'; +import type { + DataCapabilitiesFieldSelect, + DataCapabilitiesFieldWithRelations, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + DataCapabilitiesFieldSelect, + DataCapabilitiesFieldWithRelations, +} from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const dataCapabilitiesFieldQueryKey = dataCapabilitiesFieldKeys.detail; +/** + * Query hook for fetching a single DataCapabilitiesField + * + * @example + * ```tsx + * const { data, isLoading } = useDataCapabilitiesFieldQuery({ + * id: 'some-id', + * selection: { fields: { id: true, name: true } }, + * }); + * ``` + */ +export function useDataCapabilitiesFieldQuery< + S extends DataCapabilitiesFieldSelect, + TData = { + dataCapabilitiesField: InferSelectResult | null; + }, +>( + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, DataCapabilitiesFieldSelect>; + } & Omit< + UseQueryOptions< + { + dataCapabilitiesField: InferSelectResult | null; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useDataCapabilitiesFieldQuery( + params: { + id: string; + selection: SelectionConfig; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: dataCapabilitiesFieldKeys.detail(params.id), + queryFn: () => + getClient() + .dataCapabilitiesField.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + ...queryOptions, + }); +} +/** + * Fetch a single DataCapabilitiesField without React hooks + * + * @example + * ```ts + * const data = await fetchDataCapabilitiesFieldQuery({ + * id: 'some-id', + * selection: { fields: { id: true } }, + * }); + * ``` + */ +export async function fetchDataCapabilitiesFieldQuery< + S extends DataCapabilitiesFieldSelect, +>(params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, DataCapabilitiesFieldSelect>; +}): Promise<{ + dataCapabilitiesField: InferSelectResult | null; +}>; +export async function fetchDataCapabilitiesFieldQuery(params: { + id: string; + selection: SelectionConfig; +}): Promise { + const args = buildSelectionArgs(params.selection); + return getClient() + .dataCapabilitiesField.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(); +} +/** + * Prefetch a single DataCapabilitiesField for SSR or cache warming + * + * @example + * ```ts + * await prefetchDataCapabilitiesFieldQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } }); + * ``` + */ +export async function prefetchDataCapabilitiesFieldQuery( + queryClient: QueryClient, + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, DataCapabilitiesFieldSelect>; + } +): Promise; +export async function prefetchDataCapabilitiesFieldQuery( + queryClient: QueryClient, + params: { + id: string; + selection: SelectionConfig; + } +): Promise { + const args = buildSelectionArgs(params.selection); + await queryClient.prefetchQuery({ + queryKey: dataCapabilitiesFieldKeys.detail(params.id), + queryFn: () => + getClient() + .dataCapabilitiesField.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + }); +} diff --git a/sdk/constructive-react/src/modules/hooks/queries/useDataCapabilitiesFieldsQuery.ts b/sdk/constructive-react/src/modules/hooks/queries/useDataCapabilitiesFieldsQuery.ts new file mode 100644 index 0000000000..5886a0ff95 --- /dev/null +++ b/sdk/constructive-react/src/modules/hooks/queries/useDataCapabilitiesFieldsQuery.ts @@ -0,0 +1,180 @@ +/** + * List query hook for DataCapabilitiesField + * @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 { dataCapabilitiesFieldKeys } from '../query-keys'; +import type { + DataCapabilitiesFieldSelect, + DataCapabilitiesFieldWithRelations, + DataCapabilitiesFieldFilter, + DataCapabilitiesFieldOrderBy, +} from '../../orm/input-types'; +import type { + FindManyArgs, + InferSelectResult, + ConnectionResult, + HookStrictSelect, +} from '../../orm/select-types'; +export type { + DataCapabilitiesFieldSelect, + DataCapabilitiesFieldWithRelations, + DataCapabilitiesFieldFilter, + DataCapabilitiesFieldOrderBy, +} from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const dataCapabilitiesFieldsQueryKey = dataCapabilitiesFieldKeys.list; +/** + * Query hook for fetching DataCapabilitiesField list + * + * @example + * ```tsx + * const { data, isLoading } = useDataCapabilitiesFieldsQuery({ + * selection: { + * fields: { id: true, name: true }, + * where: { name: { equalTo: "example" } }, + * orderBy: ['CREATED_AT_DESC'], + * first: 10, + * }, + * }); + * ``` + */ +export function useDataCapabilitiesFieldsQuery< + S extends DataCapabilitiesFieldSelect, + TData = { + dataCapabilitiesFields: ConnectionResult< + InferSelectResult + >; + }, +>( + params: { + selection: { + fields: S; + } & Omit< + ListSelectionConfig, + 'fields' + > & + HookStrictSelect, DataCapabilitiesFieldSelect>; + } & Omit< + UseQueryOptions< + { + dataCapabilitiesFields: ConnectionResult< + InferSelectResult + >; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useDataCapabilitiesFieldsQuery( + params: { + selection: ListSelectionConfig< + DataCapabilitiesFieldSelect, + DataCapabilitiesFieldFilter, + DataCapabilitiesFieldOrderBy + >; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildListSelectionArgs< + DataCapabilitiesFieldSelect, + DataCapabilitiesFieldFilter, + DataCapabilitiesFieldOrderBy + >(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: dataCapabilitiesFieldKeys.list(args), + queryFn: () => getClient().dataCapabilitiesField.findMany(args).unwrap(), + ...queryOptions, + }); +} +/** + * Fetch DataCapabilitiesField list without React hooks + * + * @example + * ```ts + * const data = await fetchDataCapabilitiesFieldsQuery({ + * selection: { + * fields: { id: true }, + * first: 10, + * }, + * }); + * ``` + */ +export async function fetchDataCapabilitiesFieldsQuery< + S extends DataCapabilitiesFieldSelect, +>(params: { + selection: { + fields: S; + } & Omit< + ListSelectionConfig, + 'fields' + > & + HookStrictSelect, DataCapabilitiesFieldSelect>; +}): Promise<{ + dataCapabilitiesFields: ConnectionResult< + InferSelectResult + >; +}>; +export async function fetchDataCapabilitiesFieldsQuery(params: { + selection: ListSelectionConfig< + DataCapabilitiesFieldSelect, + DataCapabilitiesFieldFilter, + DataCapabilitiesFieldOrderBy + >; +}) { + const args = buildListSelectionArgs< + DataCapabilitiesFieldSelect, + DataCapabilitiesFieldFilter, + DataCapabilitiesFieldOrderBy + >(params.selection); + return getClient().dataCapabilitiesField.findMany(args).unwrap(); +} +/** + * Prefetch DataCapabilitiesField list for SSR or cache warming + * + * @example + * ```ts + * await prefetchDataCapabilitiesFieldsQuery(queryClient, { selection: { fields: { id: true }, first: 10 } }); + * ``` + */ +export async function prefetchDataCapabilitiesFieldsQuery( + queryClient: QueryClient, + params: { + selection: { + fields: S; + } & Omit< + ListSelectionConfig, + 'fields' + > & + HookStrictSelect, DataCapabilitiesFieldSelect>; + } +): Promise; +export async function prefetchDataCapabilitiesFieldsQuery( + queryClient: QueryClient, + params: { + selection: ListSelectionConfig< + DataCapabilitiesFieldSelect, + DataCapabilitiesFieldFilter, + DataCapabilitiesFieldOrderBy + >; + } +): Promise { + const args = buildListSelectionArgs< + DataCapabilitiesFieldSelect, + DataCapabilitiesFieldFilter, + DataCapabilitiesFieldOrderBy + >(params.selection); + await queryClient.prefetchQuery({ + queryKey: dataCapabilitiesFieldKeys.list(args), + queryFn: () => getClient().dataCapabilitiesField.findMany(args).unwrap(), + }); +} diff --git a/sdk/constructive-react/src/modules/hooks/queries/usePermissionsModuleQuery.ts b/sdk/constructive-react/src/modules/hooks/queries/useEmailSenderModuleQuery.ts similarity index 51% rename from sdk/constructive-react/src/modules/hooks/queries/usePermissionsModuleQuery.ts rename to sdk/constructive-react/src/modules/hooks/queries/useEmailSenderModuleQuery.ts index 5c5a951399..3fb095e18c 100644 --- a/sdk/constructive-react/src/modules/hooks/queries/usePermissionsModuleQuery.ts +++ b/sdk/constructive-react/src/modules/hooks/queries/useEmailSenderModuleQuery.ts @@ -1,5 +1,5 @@ /** - * Single item query hook for PermissionsModule + * Single item query hook for EmailSenderModule * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -9,44 +9,44 @@ import type { UseQueryOptions, UseQueryResult, QueryClient } from '@tanstack/rea import { getClient } from '../client'; import { buildSelectionArgs } from '../selection'; import type { SelectionConfig } from '../selection'; -import { permissionsModuleKeys } from '../query-keys'; +import { emailSenderModuleKeys } from '../query-keys'; import type { - PermissionsModuleSelect, - PermissionsModuleWithRelations, + EmailSenderModuleSelect, + EmailSenderModuleWithRelations, } from '../../orm/input-types'; import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; export type { - PermissionsModuleSelect, - PermissionsModuleWithRelations, + EmailSenderModuleSelect, + EmailSenderModuleWithRelations, } from '../../orm/input-types'; /** Query key factory - re-exported from query-keys.ts */ -export const permissionsModuleQueryKey = permissionsModuleKeys.detail; +export const emailSenderModuleQueryKey = emailSenderModuleKeys.detail; /** - * Query hook for fetching a single PermissionsModule + * Query hook for fetching a single EmailSenderModule * * @example * ```tsx - * const { data, isLoading } = usePermissionsModuleQuery({ + * const { data, isLoading } = useEmailSenderModuleQuery({ * id: 'some-id', * selection: { fields: { id: true, name: true } }, * }); * ``` */ -export function usePermissionsModuleQuery< - S extends PermissionsModuleSelect, +export function useEmailSenderModuleQuery< + S extends EmailSenderModuleSelect, TData = { - permissionsModule: InferSelectResult | null; + emailSenderModule: InferSelectResult | null; }, >( params: { id: string; selection: { fields: S; - } & HookStrictSelect, PermissionsModuleSelect>; + } & HookStrictSelect, EmailSenderModuleSelect>; } & Omit< UseQueryOptions< { - permissionsModule: InferSelectResult | null; + emailSenderModule: InferSelectResult | null; }, Error, TData @@ -54,20 +54,20 @@ export function usePermissionsModuleQuery< 'queryKey' | 'queryFn' > ): UseQueryResult; -export function usePermissionsModuleQuery( +export function useEmailSenderModuleQuery( params: { id: string; - selection: SelectionConfig; + selection: SelectionConfig; } & Omit, 'queryKey' | 'queryFn'> ) { - const args = buildSelectionArgs(params.selection); + const args = buildSelectionArgs(params.selection); const { selection: _selection, ...queryOptions } = params ?? {}; void _selection; return useQuery({ - queryKey: permissionsModuleKeys.detail(params.id), + queryKey: emailSenderModuleKeys.detail(params.id), queryFn: () => getClient() - .permissionsModule.findOne({ + .emailSenderModule.findOne({ id: params.id, select: args.select, }) @@ -76,66 +76,66 @@ export function usePermissionsModuleQuery( }); } /** - * Fetch a single PermissionsModule without React hooks + * Fetch a single EmailSenderModule without React hooks * * @example * ```ts - * const data = await fetchPermissionsModuleQuery({ + * const data = await fetchEmailSenderModuleQuery({ * id: 'some-id', * selection: { fields: { id: true } }, * }); * ``` */ -export async function fetchPermissionsModuleQuery(params: { +export async function fetchEmailSenderModuleQuery(params: { id: string; selection: { fields: S; - } & HookStrictSelect, PermissionsModuleSelect>; + } & HookStrictSelect, EmailSenderModuleSelect>; }): Promise<{ - permissionsModule: InferSelectResult | null; + emailSenderModule: InferSelectResult | null; }>; -export async function fetchPermissionsModuleQuery(params: { +export async function fetchEmailSenderModuleQuery(params: { id: string; - selection: SelectionConfig; + selection: SelectionConfig; }): Promise { - const args = buildSelectionArgs(params.selection); + const args = buildSelectionArgs(params.selection); return getClient() - .permissionsModule.findOne({ + .emailSenderModule.findOne({ id: params.id, select: args.select, }) .unwrap(); } /** - * Prefetch a single PermissionsModule for SSR or cache warming + * Prefetch a single EmailSenderModule for SSR or cache warming * * @example * ```ts - * await prefetchPermissionsModuleQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } }); + * await prefetchEmailSenderModuleQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } }); * ``` */ -export async function prefetchPermissionsModuleQuery( +export async function prefetchEmailSenderModuleQuery( queryClient: QueryClient, params: { id: string; selection: { fields: S; - } & HookStrictSelect, PermissionsModuleSelect>; + } & HookStrictSelect, EmailSenderModuleSelect>; } ): Promise; -export async function prefetchPermissionsModuleQuery( +export async function prefetchEmailSenderModuleQuery( queryClient: QueryClient, params: { id: string; - selection: SelectionConfig; + selection: SelectionConfig; } ): Promise { - const args = buildSelectionArgs(params.selection); + const args = buildSelectionArgs(params.selection); await queryClient.prefetchQuery({ - queryKey: permissionsModuleKeys.detail(params.id), + queryKey: emailSenderModuleKeys.detail(params.id), queryFn: () => getClient() - .permissionsModule.findOne({ + .emailSenderModule.findOne({ id: params.id, select: args.select, }) diff --git a/sdk/constructive-react/src/modules/hooks/queries/useEmailSenderModulesQuery.ts b/sdk/constructive-react/src/modules/hooks/queries/useEmailSenderModulesQuery.ts new file mode 100644 index 0000000000..0ab385323e --- /dev/null +++ b/sdk/constructive-react/src/modules/hooks/queries/useEmailSenderModulesQuery.ts @@ -0,0 +1,163 @@ +/** + * List query hook for EmailSenderModule + * @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 { emailSenderModuleKeys } from '../query-keys'; +import type { + EmailSenderModuleSelect, + EmailSenderModuleWithRelations, + EmailSenderModuleFilter, + EmailSenderModuleOrderBy, +} from '../../orm/input-types'; +import type { + FindManyArgs, + InferSelectResult, + ConnectionResult, + HookStrictSelect, +} from '../../orm/select-types'; +export type { + EmailSenderModuleSelect, + EmailSenderModuleWithRelations, + EmailSenderModuleFilter, + EmailSenderModuleOrderBy, +} from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const emailSenderModulesQueryKey = emailSenderModuleKeys.list; +/** + * Query hook for fetching EmailSenderModule list + * + * @example + * ```tsx + * const { data, isLoading } = useEmailSenderModulesQuery({ + * selection: { + * fields: { id: true, name: true }, + * where: { name: { equalTo: "example" } }, + * orderBy: ['CREATED_AT_DESC'], + * first: 10, + * }, + * }); + * ``` + */ +export function useEmailSenderModulesQuery< + S extends EmailSenderModuleSelect, + TData = { + emailSenderModules: ConnectionResult>; + }, +>( + params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, EmailSenderModuleSelect>; + } & Omit< + UseQueryOptions< + { + emailSenderModules: ConnectionResult>; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useEmailSenderModulesQuery( + params: { + selection: ListSelectionConfig< + EmailSenderModuleSelect, + EmailSenderModuleFilter, + EmailSenderModuleOrderBy + >; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildListSelectionArgs< + EmailSenderModuleSelect, + EmailSenderModuleFilter, + EmailSenderModuleOrderBy + >(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: emailSenderModuleKeys.list(args), + queryFn: () => getClient().emailSenderModule.findMany(args).unwrap(), + ...queryOptions, + }); +} +/** + * Fetch EmailSenderModule list without React hooks + * + * @example + * ```ts + * const data = await fetchEmailSenderModulesQuery({ + * selection: { + * fields: { id: true }, + * first: 10, + * }, + * }); + * ``` + */ +export async function fetchEmailSenderModulesQuery(params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, EmailSenderModuleSelect>; +}): Promise<{ + emailSenderModules: ConnectionResult>; +}>; +export async function fetchEmailSenderModulesQuery(params: { + selection: ListSelectionConfig< + EmailSenderModuleSelect, + EmailSenderModuleFilter, + EmailSenderModuleOrderBy + >; +}) { + const args = buildListSelectionArgs< + EmailSenderModuleSelect, + EmailSenderModuleFilter, + EmailSenderModuleOrderBy + >(params.selection); + return getClient().emailSenderModule.findMany(args).unwrap(); +} +/** + * Prefetch EmailSenderModule list for SSR or cache warming + * + * @example + * ```ts + * await prefetchEmailSenderModulesQuery(queryClient, { selection: { fields: { id: true }, first: 10 } }); + * ``` + */ +export async function prefetchEmailSenderModulesQuery( + queryClient: QueryClient, + params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, EmailSenderModuleSelect>; + } +): Promise; +export async function prefetchEmailSenderModulesQuery( + queryClient: QueryClient, + params: { + selection: ListSelectionConfig< + EmailSenderModuleSelect, + EmailSenderModuleFilter, + EmailSenderModuleOrderBy + >; + } +): Promise { + const args = buildListSelectionArgs< + EmailSenderModuleSelect, + EmailSenderModuleFilter, + EmailSenderModuleOrderBy + >(params.selection); + await queryClient.prefetchQuery({ + queryKey: emailSenderModuleKeys.list(args), + queryFn: () => getClient().emailSenderModule.findMany(args).unwrap(), + }); +} diff --git a/sdk/constructive-react/src/modules/hooks/queries/useEntityTypeProvisionQuery.ts b/sdk/constructive-react/src/modules/hooks/queries/useEntityTypeProvisionQuery.ts index 5021910e27..ae6fc0d889 100644 --- a/sdk/constructive-react/src/modules/hooks/queries/useEntityTypeProvisionQuery.ts +++ b/sdk/constructive-react/src/modules/hooks/queries/useEntityTypeProvisionQuery.ts @@ -1,6 +1,6 @@ /** * Provisions a new membership entity type. Each INSERT creates an entity table, registers a membership type, - and installs the required modules (permissions, memberships, limits) plus optional modules (profiles, levels, invites). + and installs the required modules (capabilities, memberships, limits) plus optional modules (profiles, levels, invites). Uses provision_membership_table() internally. Graceful: duplicate (database_id, prefix) pairs are silently skipped via the unique constraint (use INSERT ... ON CONFLICT DO NOTHING). Policy behavior: by default the five entity-table RLS policies are applied (gated by is_visible). @@ -30,7 +30,7 @@ export type { export const entityTypeProvisionQueryKey = entityTypeProvisionKeys.detail; /** * Provisions a new membership entity type. Each INSERT creates an entity table, registers a membership type, - and installs the required modules (permissions, memberships, limits) plus optional modules (profiles, levels, invites). + and installs the required modules (capabilities, memberships, limits) plus optional modules (profiles, levels, invites). Uses provision_membership_table() internally. Graceful: duplicate (database_id, prefix) pairs are silently skipped via the unique constraint (use INSERT ... ON CONFLICT DO NOTHING). Policy behavior: by default the five entity-table RLS policies are applied (gated by is_visible). @@ -91,7 +91,7 @@ export function useEntityTypeProvisionQuery( } /** * Provisions a new membership entity type. Each INSERT creates an entity table, registers a membership type, - and installs the required modules (permissions, memberships, limits) plus optional modules (profiles, levels, invites). + and installs the required modules (capabilities, memberships, limits) plus optional modules (profiles, levels, invites). Uses provision_membership_table() internally. Graceful: duplicate (database_id, prefix) pairs are silently skipped via the unique constraint (use INSERT ... ON CONFLICT DO NOTHING). Policy behavior: by default the five entity-table RLS policies are applied (gated by is_visible). @@ -129,7 +129,7 @@ export async function fetchEntityTypeProvisionQuery(params: { } /** * Provisions a new membership entity type. Each INSERT creates an entity table, registers a membership type, - and installs the required modules (permissions, memberships, limits) plus optional modules (profiles, levels, invites). + and installs the required modules (capabilities, memberships, limits) plus optional modules (profiles, levels, invites). Uses provision_membership_table() internally. Graceful: duplicate (database_id, prefix) pairs are silently skipped via the unique constraint (use INSERT ... ON CONFLICT DO NOTHING). Policy behavior: by default the five entity-table RLS policies are applied (gated by is_visible). diff --git a/sdk/constructive-react/src/modules/hooks/queries/useEntityTypeProvisionsQuery.ts b/sdk/constructive-react/src/modules/hooks/queries/useEntityTypeProvisionsQuery.ts index 4c1c2fbba1..d1f97d4e7d 100644 --- a/sdk/constructive-react/src/modules/hooks/queries/useEntityTypeProvisionsQuery.ts +++ b/sdk/constructive-react/src/modules/hooks/queries/useEntityTypeProvisionsQuery.ts @@ -1,6 +1,6 @@ /** * Provisions a new membership entity type. Each INSERT creates an entity table, registers a membership type, - and installs the required modules (permissions, memberships, limits) plus optional modules (profiles, levels, invites). + and installs the required modules (capabilities, memberships, limits) plus optional modules (profiles, levels, invites). Uses provision_membership_table() internally. Graceful: duplicate (database_id, prefix) pairs are silently skipped via the unique constraint (use INSERT ... ON CONFLICT DO NOTHING). Policy behavior: by default the five entity-table RLS policies are applied (gated by is_visible). @@ -39,7 +39,7 @@ export type { export const entityTypeProvisionsQueryKey = entityTypeProvisionKeys.list; /** * Provisions a new membership entity type. Each INSERT creates an entity table, registers a membership type, - and installs the required modules (permissions, memberships, limits) plus optional modules (profiles, levels, invites). + and installs the required modules (capabilities, memberships, limits) plus optional modules (profiles, levels, invites). Uses provision_membership_table() internally. Graceful: duplicate (database_id, prefix) pairs are silently skipped via the unique constraint (use INSERT ... ON CONFLICT DO NOTHING). Policy behavior: by default the five entity-table RLS policies are applied (gated by is_visible). @@ -110,7 +110,7 @@ export function useEntityTypeProvisionsQuery( } /** * Provisions a new membership entity type. Each INSERT creates an entity table, registers a membership type, - and installs the required modules (permissions, memberships, limits) plus optional modules (profiles, levels, invites). + and installs the required modules (capabilities, memberships, limits) plus optional modules (profiles, levels, invites). Uses provision_membership_table() internally. Graceful: duplicate (database_id, prefix) pairs are silently skipped via the unique constraint (use INSERT ... ON CONFLICT DO NOTHING). Policy behavior: by default the five entity-table RLS policies are applied (gated by is_visible). @@ -155,7 +155,7 @@ export async function fetchEntityTypeProvisionsQuery(params: { } /** * Provisions a new membership entity type. Each INSERT creates an entity table, registers a membership type, - and installs the required modules (permissions, memberships, limits) plus optional modules (profiles, levels, invites). + and installs the required modules (capabilities, memberships, limits) plus optional modules (profiles, levels, invites). Uses provision_membership_table() internally. Graceful: duplicate (database_id, prefix) pairs are silently skipped via the unique constraint (use INSERT ... ON CONFLICT DO NOTHING). Policy behavior: by default the five entity-table RLS policies are applied (gated by is_visible). diff --git a/sdk/constructive-react/src/modules/hooks/queries/useFileRefFieldQuery.ts b/sdk/constructive-react/src/modules/hooks/queries/useFileRefFieldQuery.ts new file mode 100644 index 0000000000..d1b5539cc4 --- /dev/null +++ b/sdk/constructive-react/src/modules/hooks/queries/useFileRefFieldQuery.ts @@ -0,0 +1,138 @@ +/** + * Single item query hook for FileRefField + * @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 { fileRefFieldKeys } from '../query-keys'; +import type { FileRefFieldSelect, FileRefFieldWithRelations } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { FileRefFieldSelect, FileRefFieldWithRelations } from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const fileRefFieldQueryKey = fileRefFieldKeys.detail; +/** + * Query hook for fetching a single FileRefField + * + * @example + * ```tsx + * const { data, isLoading } = useFileRefFieldQuery({ + * id: 'some-id', + * selection: { fields: { id: true, name: true } }, + * }); + * ``` + */ +export function useFileRefFieldQuery< + S extends FileRefFieldSelect, + TData = { + fileRefField: InferSelectResult | null; + }, +>( + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, FileRefFieldSelect>; + } & Omit< + UseQueryOptions< + { + fileRefField: InferSelectResult | null; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useFileRefFieldQuery( + params: { + id: string; + selection: SelectionConfig; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: fileRefFieldKeys.detail(params.id), + queryFn: () => + getClient() + .fileRefField.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + ...queryOptions, + }); +} +/** + * Fetch a single FileRefField without React hooks + * + * @example + * ```ts + * const data = await fetchFileRefFieldQuery({ + * id: 'some-id', + * selection: { fields: { id: true } }, + * }); + * ``` + */ +export async function fetchFileRefFieldQuery(params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, FileRefFieldSelect>; +}): Promise<{ + fileRefField: InferSelectResult | null; +}>; +export async function fetchFileRefFieldQuery(params: { + id: string; + selection: SelectionConfig; +}): Promise { + const args = buildSelectionArgs(params.selection); + return getClient() + .fileRefField.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(); +} +/** + * Prefetch a single FileRefField for SSR or cache warming + * + * @example + * ```ts + * await prefetchFileRefFieldQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } }); + * ``` + */ +export async function prefetchFileRefFieldQuery( + queryClient: QueryClient, + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, FileRefFieldSelect>; + } +): Promise; +export async function prefetchFileRefFieldQuery( + queryClient: QueryClient, + params: { + id: string; + selection: SelectionConfig; + } +): Promise { + const args = buildSelectionArgs(params.selection); + await queryClient.prefetchQuery({ + queryKey: fileRefFieldKeys.detail(params.id), + queryFn: () => + getClient() + .fileRefField.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + }); +} diff --git a/sdk/constructive-react/src/modules/hooks/queries/useFileRefFieldsQuery.ts b/sdk/constructive-react/src/modules/hooks/queries/useFileRefFieldsQuery.ts new file mode 100644 index 0000000000..dc5b8fe6f8 --- /dev/null +++ b/sdk/constructive-react/src/modules/hooks/queries/useFileRefFieldsQuery.ts @@ -0,0 +1,145 @@ +/** + * List query hook for FileRefField + * @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 { fileRefFieldKeys } from '../query-keys'; +import type { + FileRefFieldSelect, + FileRefFieldWithRelations, + FileRefFieldFilter, + FileRefFieldOrderBy, +} from '../../orm/input-types'; +import type { + FindManyArgs, + InferSelectResult, + ConnectionResult, + HookStrictSelect, +} from '../../orm/select-types'; +export type { + FileRefFieldSelect, + FileRefFieldWithRelations, + FileRefFieldFilter, + FileRefFieldOrderBy, +} from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const fileRefFieldsQueryKey = fileRefFieldKeys.list; +/** + * Query hook for fetching FileRefField list + * + * @example + * ```tsx + * const { data, isLoading } = useFileRefFieldsQuery({ + * selection: { + * fields: { id: true, name: true }, + * where: { name: { equalTo: "example" } }, + * orderBy: ['CREATED_AT_DESC'], + * first: 10, + * }, + * }); + * ``` + */ +export function useFileRefFieldsQuery< + S extends FileRefFieldSelect, + TData = { + fileRefFields: ConnectionResult>; + }, +>( + params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, FileRefFieldSelect>; + } & Omit< + UseQueryOptions< + { + fileRefFields: ConnectionResult>; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useFileRefFieldsQuery( + params: { + selection: ListSelectionConfig; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildListSelectionArgs( + params.selection + ); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: fileRefFieldKeys.list(args), + queryFn: () => getClient().fileRefField.findMany(args).unwrap(), + ...queryOptions, + }); +} +/** + * Fetch FileRefField list without React hooks + * + * @example + * ```ts + * const data = await fetchFileRefFieldsQuery({ + * selection: { + * fields: { id: true }, + * first: 10, + * }, + * }); + * ``` + */ +export async function fetchFileRefFieldsQuery(params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, FileRefFieldSelect>; +}): Promise<{ + fileRefFields: ConnectionResult>; +}>; +export async function fetchFileRefFieldsQuery(params: { + selection: ListSelectionConfig; +}) { + const args = buildListSelectionArgs( + params.selection + ); + return getClient().fileRefField.findMany(args).unwrap(); +} +/** + * Prefetch FileRefField list for SSR or cache warming + * + * @example + * ```ts + * await prefetchFileRefFieldsQuery(queryClient, { selection: { fields: { id: true }, first: 10 } }); + * ``` + */ +export async function prefetchFileRefFieldsQuery( + queryClient: QueryClient, + params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, FileRefFieldSelect>; + } +): Promise; +export async function prefetchFileRefFieldsQuery( + queryClient: QueryClient, + params: { + selection: ListSelectionConfig; + } +): Promise { + const args = buildListSelectionArgs( + params.selection + ); + await queryClient.prefetchQuery({ + queryKey: fileRefFieldKeys.list(args), + queryFn: () => getClient().fileRefField.findMany(args).unwrap(), + }); +} diff --git a/sdk/constructive-react/src/modules/hooks/queries/useOauthRequestsModuleQuery.ts b/sdk/constructive-react/src/modules/hooks/queries/useOauthRequestsModuleQuery.ts new file mode 100644 index 0000000000..e88e021dd9 --- /dev/null +++ b/sdk/constructive-react/src/modules/hooks/queries/useOauthRequestsModuleQuery.ts @@ -0,0 +1,164 @@ +/** + * Config row for the oauth_requests_module, which provisions the in-flight half of an SSO + sign-in: the OAuth authorization requests table (state + PKCE code_verifier) and the + pending identity links table (a verified identity parked under a single-use ticket), + both private, plus the five SECURITY DEFINER procedures that are their only surface. + Sibling of identity_providers_module (durable provider configuration) rather than part + of it: this is ephemeral, purged flow state with its own retention. + * @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 { oauthRequestsModuleKeys } from '../query-keys'; +import type { + OauthRequestsModuleSelect, + OauthRequestsModuleWithRelations, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + OauthRequestsModuleSelect, + OauthRequestsModuleWithRelations, +} from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const oauthRequestsModuleQueryKey = oauthRequestsModuleKeys.detail; +/** + * Config row for the oauth_requests_module, which provisions the in-flight half of an SSO + sign-in: the OAuth authorization requests table (state + PKCE code_verifier) and the + pending identity links table (a verified identity parked under a single-use ticket), + both private, plus the five SECURITY DEFINER procedures that are their only surface. + Sibling of identity_providers_module (durable provider configuration) rather than part + of it: this is ephemeral, purged flow state with its own retention. + * + * @example + * ```tsx + * const { data, isLoading } = useOauthRequestsModuleQuery({ + * id: 'some-id', + * selection: { fields: { id: true, name: true } }, + * }); + * ``` + */ +export function useOauthRequestsModuleQuery< + S extends OauthRequestsModuleSelect, + TData = { + oauthRequestsModule: InferSelectResult | null; + }, +>( + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, OauthRequestsModuleSelect>; + } & Omit< + UseQueryOptions< + { + oauthRequestsModule: InferSelectResult | null; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useOauthRequestsModuleQuery( + params: { + id: string; + selection: SelectionConfig; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: oauthRequestsModuleKeys.detail(params.id), + queryFn: () => + getClient() + .oauthRequestsModule.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + ...queryOptions, + }); +} +/** + * Config row for the oauth_requests_module, which provisions the in-flight half of an SSO + sign-in: the OAuth authorization requests table (state + PKCE code_verifier) and the + pending identity links table (a verified identity parked under a single-use ticket), + both private, plus the five SECURITY DEFINER procedures that are their only surface. + Sibling of identity_providers_module (durable provider configuration) rather than part + of it: this is ephemeral, purged flow state with its own retention. + * + * @example + * ```ts + * const data = await fetchOauthRequestsModuleQuery({ + * id: 'some-id', + * selection: { fields: { id: true } }, + * }); + * ``` + */ +export async function fetchOauthRequestsModuleQuery(params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, OauthRequestsModuleSelect>; +}): Promise<{ + oauthRequestsModule: InferSelectResult | null; +}>; +export async function fetchOauthRequestsModuleQuery(params: { + id: string; + selection: SelectionConfig; +}): Promise { + const args = buildSelectionArgs(params.selection); + return getClient() + .oauthRequestsModule.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(); +} +/** + * Config row for the oauth_requests_module, which provisions the in-flight half of an SSO + sign-in: the OAuth authorization requests table (state + PKCE code_verifier) and the + pending identity links table (a verified identity parked under a single-use ticket), + both private, plus the five SECURITY DEFINER procedures that are their only surface. + Sibling of identity_providers_module (durable provider configuration) rather than part + of it: this is ephemeral, purged flow state with its own retention. + * + * @example + * ```ts + * await prefetchOauthRequestsModuleQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } }); + * ``` + */ +export async function prefetchOauthRequestsModuleQuery( + queryClient: QueryClient, + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, OauthRequestsModuleSelect>; + } +): Promise; +export async function prefetchOauthRequestsModuleQuery( + queryClient: QueryClient, + params: { + id: string; + selection: SelectionConfig; + } +): Promise { + const args = buildSelectionArgs(params.selection); + await queryClient.prefetchQuery({ + queryKey: oauthRequestsModuleKeys.detail(params.id), + queryFn: () => + getClient() + .oauthRequestsModule.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + }); +} diff --git a/sdk/constructive-react/src/modules/hooks/queries/useOauthRequestsModulesQuery.ts b/sdk/constructive-react/src/modules/hooks/queries/useOauthRequestsModulesQuery.ts new file mode 100644 index 0000000000..b464b73243 --- /dev/null +++ b/sdk/constructive-react/src/modules/hooks/queries/useOauthRequestsModulesQuery.ts @@ -0,0 +1,194 @@ +/** + * Config row for the oauth_requests_module, which provisions the in-flight half of an SSO + sign-in: the OAuth authorization requests table (state + PKCE code_verifier) and the + pending identity links table (a verified identity parked under a single-use ticket), + both private, plus the five SECURITY DEFINER procedures that are their only surface. + Sibling of identity_providers_module (durable provider configuration) rather than part + of it: this is ephemeral, purged flow state with its own retention. + * @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 { oauthRequestsModuleKeys } from '../query-keys'; +import type { + OauthRequestsModuleSelect, + OauthRequestsModuleWithRelations, + OauthRequestsModuleFilter, + OauthRequestsModuleOrderBy, +} from '../../orm/input-types'; +import type { + FindManyArgs, + InferSelectResult, + ConnectionResult, + HookStrictSelect, +} from '../../orm/select-types'; +export type { + OauthRequestsModuleSelect, + OauthRequestsModuleWithRelations, + OauthRequestsModuleFilter, + OauthRequestsModuleOrderBy, +} from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const oauthRequestsModulesQueryKey = oauthRequestsModuleKeys.list; +/** + * Config row for the oauth_requests_module, which provisions the in-flight half of an SSO + sign-in: the OAuth authorization requests table (state + PKCE code_verifier) and the + pending identity links table (a verified identity parked under a single-use ticket), + both private, plus the five SECURITY DEFINER procedures that are their only surface. + Sibling of identity_providers_module (durable provider configuration) rather than part + of it: this is ephemeral, purged flow state with its own retention. + * + * @example + * ```tsx + * const { data, isLoading } = useOauthRequestsModulesQuery({ + * selection: { + * fields: { id: true, name: true }, + * where: { name: { equalTo: "example" } }, + * orderBy: ['CREATED_AT_DESC'], + * first: 10, + * }, + * }); + * ``` + */ +export function useOauthRequestsModulesQuery< + S extends OauthRequestsModuleSelect, + TData = { + oauthRequestsModules: ConnectionResult>; + }, +>( + params: { + selection: { + fields: S; + } & Omit< + ListSelectionConfig, + 'fields' + > & + HookStrictSelect, OauthRequestsModuleSelect>; + } & Omit< + UseQueryOptions< + { + oauthRequestsModules: ConnectionResult< + InferSelectResult + >; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useOauthRequestsModulesQuery( + params: { + selection: ListSelectionConfig< + OauthRequestsModuleSelect, + OauthRequestsModuleFilter, + OauthRequestsModuleOrderBy + >; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildListSelectionArgs< + OauthRequestsModuleSelect, + OauthRequestsModuleFilter, + OauthRequestsModuleOrderBy + >(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: oauthRequestsModuleKeys.list(args), + queryFn: () => getClient().oauthRequestsModule.findMany(args).unwrap(), + ...queryOptions, + }); +} +/** + * Config row for the oauth_requests_module, which provisions the in-flight half of an SSO + sign-in: the OAuth authorization requests table (state + PKCE code_verifier) and the + pending identity links table (a verified identity parked under a single-use ticket), + both private, plus the five SECURITY DEFINER procedures that are their only surface. + Sibling of identity_providers_module (durable provider configuration) rather than part + of it: this is ephemeral, purged flow state with its own retention. + * + * @example + * ```ts + * const data = await fetchOauthRequestsModulesQuery({ + * selection: { + * fields: { id: true }, + * first: 10, + * }, + * }); + * ``` + */ +export async function fetchOauthRequestsModulesQuery(params: { + selection: { + fields: S; + } & Omit< + ListSelectionConfig, + 'fields' + > & + HookStrictSelect, OauthRequestsModuleSelect>; +}): Promise<{ + oauthRequestsModules: ConnectionResult>; +}>; +export async function fetchOauthRequestsModulesQuery(params: { + selection: ListSelectionConfig< + OauthRequestsModuleSelect, + OauthRequestsModuleFilter, + OauthRequestsModuleOrderBy + >; +}) { + const args = buildListSelectionArgs< + OauthRequestsModuleSelect, + OauthRequestsModuleFilter, + OauthRequestsModuleOrderBy + >(params.selection); + return getClient().oauthRequestsModule.findMany(args).unwrap(); +} +/** + * Config row for the oauth_requests_module, which provisions the in-flight half of an SSO + sign-in: the OAuth authorization requests table (state + PKCE code_verifier) and the + pending identity links table (a verified identity parked under a single-use ticket), + both private, plus the five SECURITY DEFINER procedures that are their only surface. + Sibling of identity_providers_module (durable provider configuration) rather than part + of it: this is ephemeral, purged flow state with its own retention. + * + * @example + * ```ts + * await prefetchOauthRequestsModulesQuery(queryClient, { selection: { fields: { id: true }, first: 10 } }); + * ``` + */ +export async function prefetchOauthRequestsModulesQuery( + queryClient: QueryClient, + params: { + selection: { + fields: S; + } & Omit< + ListSelectionConfig, + 'fields' + > & + HookStrictSelect, OauthRequestsModuleSelect>; + } +): Promise; +export async function prefetchOauthRequestsModulesQuery( + queryClient: QueryClient, + params: { + selection: ListSelectionConfig< + OauthRequestsModuleSelect, + OauthRequestsModuleFilter, + OauthRequestsModuleOrderBy + >; + } +): Promise { + const args = buildListSelectionArgs< + OauthRequestsModuleSelect, + OauthRequestsModuleFilter, + OauthRequestsModuleOrderBy + >(params.selection); + await queryClient.prefetchQuery({ + queryKey: oauthRequestsModuleKeys.list(args), + queryFn: () => getClient().oauthRequestsModule.findMany(args).unwrap(), + }); +} diff --git a/sdk/constructive-react/src/modules/hooks/queries/usePermissionsModulesQuery.ts b/sdk/constructive-react/src/modules/hooks/queries/usePermissionsModulesQuery.ts deleted file mode 100644 index ccfc68c12b..0000000000 --- a/sdk/constructive-react/src/modules/hooks/queries/usePermissionsModulesQuery.ts +++ /dev/null @@ -1,163 +0,0 @@ -/** - * List query hook for PermissionsModule - * @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 { permissionsModuleKeys } from '../query-keys'; -import type { - PermissionsModuleSelect, - PermissionsModuleWithRelations, - PermissionsModuleFilter, - PermissionsModuleOrderBy, -} from '../../orm/input-types'; -import type { - FindManyArgs, - InferSelectResult, - ConnectionResult, - HookStrictSelect, -} from '../../orm/select-types'; -export type { - PermissionsModuleSelect, - PermissionsModuleWithRelations, - PermissionsModuleFilter, - PermissionsModuleOrderBy, -} from '../../orm/input-types'; -/** Query key factory - re-exported from query-keys.ts */ -export const permissionsModulesQueryKey = permissionsModuleKeys.list; -/** - * Query hook for fetching PermissionsModule list - * - * @example - * ```tsx - * const { data, isLoading } = usePermissionsModulesQuery({ - * selection: { - * fields: { id: true, name: true }, - * where: { name: { equalTo: "example" } }, - * orderBy: ['CREATED_AT_DESC'], - * first: 10, - * }, - * }); - * ``` - */ -export function usePermissionsModulesQuery< - S extends PermissionsModuleSelect, - TData = { - permissionsModules: ConnectionResult>; - }, ->( - params: { - selection: { - fields: S; - } & Omit, 'fields'> & - HookStrictSelect, PermissionsModuleSelect>; - } & Omit< - UseQueryOptions< - { - permissionsModules: ConnectionResult>; - }, - Error, - TData - >, - 'queryKey' | 'queryFn' - > -): UseQueryResult; -export function usePermissionsModulesQuery( - params: { - selection: ListSelectionConfig< - PermissionsModuleSelect, - PermissionsModuleFilter, - PermissionsModuleOrderBy - >; - } & Omit, 'queryKey' | 'queryFn'> -) { - const args = buildListSelectionArgs< - PermissionsModuleSelect, - PermissionsModuleFilter, - PermissionsModuleOrderBy - >(params.selection); - const { selection: _selection, ...queryOptions } = params ?? {}; - void _selection; - return useQuery({ - queryKey: permissionsModuleKeys.list(args), - queryFn: () => getClient().permissionsModule.findMany(args).unwrap(), - ...queryOptions, - }); -} -/** - * Fetch PermissionsModule list without React hooks - * - * @example - * ```ts - * const data = await fetchPermissionsModulesQuery({ - * selection: { - * fields: { id: true }, - * first: 10, - * }, - * }); - * ``` - */ -export async function fetchPermissionsModulesQuery(params: { - selection: { - fields: S; - } & Omit, 'fields'> & - HookStrictSelect, PermissionsModuleSelect>; -}): Promise<{ - permissionsModules: ConnectionResult>; -}>; -export async function fetchPermissionsModulesQuery(params: { - selection: ListSelectionConfig< - PermissionsModuleSelect, - PermissionsModuleFilter, - PermissionsModuleOrderBy - >; -}) { - const args = buildListSelectionArgs< - PermissionsModuleSelect, - PermissionsModuleFilter, - PermissionsModuleOrderBy - >(params.selection); - return getClient().permissionsModule.findMany(args).unwrap(); -} -/** - * Prefetch PermissionsModule list for SSR or cache warming - * - * @example - * ```ts - * await prefetchPermissionsModulesQuery(queryClient, { selection: { fields: { id: true }, first: 10 } }); - * ``` - */ -export async function prefetchPermissionsModulesQuery( - queryClient: QueryClient, - params: { - selection: { - fields: S; - } & Omit, 'fields'> & - HookStrictSelect, PermissionsModuleSelect>; - } -): Promise; -export async function prefetchPermissionsModulesQuery( - queryClient: QueryClient, - params: { - selection: ListSelectionConfig< - PermissionsModuleSelect, - PermissionsModuleFilter, - PermissionsModuleOrderBy - >; - } -): Promise { - const args = buildListSelectionArgs< - PermissionsModuleSelect, - PermissionsModuleFilter, - PermissionsModuleOrderBy - >(params.selection); - await queryClient.prefetchQuery({ - queryKey: permissionsModuleKeys.list(args), - queryFn: () => getClient().permissionsModule.findMany(args).unwrap(), - }); -} diff --git a/sdk/constructive-react/src/modules/hooks/queries/useResolveBlueprintFieldQuery.ts b/sdk/constructive-react/src/modules/hooks/queries/useResolveBlueprintFieldQuery.ts deleted file mode 100644 index 3584b7d36a..0000000000 --- a/sdk/constructive-react/src/modules/hooks/queries/useResolveBlueprintFieldQuery.ts +++ /dev/null @@ -1,107 +0,0 @@ -/** - * Custom query hook for resolveBlueprintField - * @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 { customQueryKeys } from '../query-keys'; -import type { ResolveBlueprintFieldVariables } from '../../orm/query'; -export type { ResolveBlueprintFieldVariables } from '../../orm/query'; -/** Query key factory - re-exported from query-keys.ts */ -export const resolveBlueprintFieldQueryKey = customQueryKeys.resolveBlueprintField; -/** - * 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. - * - * @example - * ```tsx - * const { data, isLoading } = useResolveBlueprintFieldQuery({ variables: { databaseId, fieldName, tableId } }); - * - * if (data?.resolveBlueprintField) { - * console.log(data.resolveBlueprintField); - * } - * ``` - */ -export function useResolveBlueprintFieldQuery< - TData = { - resolveBlueprintField: string | null; - }, ->( - params?: { - variables?: ResolveBlueprintFieldVariables; - } & Omit< - UseQueryOptions< - { - resolveBlueprintField: string | null; - }, - Error, - TData - >, - 'queryKey' | 'queryFn' - > -): UseQueryResult; -export function useResolveBlueprintFieldQuery< - TData = { - resolveBlueprintField: string | null; - }, ->( - params?: { - variables?: ResolveBlueprintFieldVariables; - } & Omit< - UseQueryOptions< - { - resolveBlueprintField: string | null; - }, - Error, - TData - >, - 'queryKey' | 'queryFn' - > -): UseQueryResult { - const variables = params?.variables ?? {}; - const { variables: _variables, ...queryOptions } = params ?? {}; - void _variables; - return useQuery({ - queryKey: resolveBlueprintFieldQueryKey(variables), - queryFn: () => getClient().query.resolveBlueprintField(variables).unwrap(), - ...queryOptions, - }); -} -/** - * Fetch resolveBlueprintField without React hooks - * - * @example - * ```ts - * const data = await fetchResolveBlueprintFieldQuery({ variables: { databaseId, fieldName, tableId } }); - * ``` - */ -export async function fetchResolveBlueprintFieldQuery(params?: { - variables?: ResolveBlueprintFieldVariables; -}) { - const variables = params?.variables ?? {}; - return getClient().query.resolveBlueprintField(variables).unwrap(); -} -/** - * Prefetch resolveBlueprintField for SSR or cache warming - * - * @example - * ```ts - * await prefetchResolveBlueprintFieldQuery(queryClient, { variables: { databaseId, fieldName, tableId } }); - * ``` - */ -export async function prefetchResolveBlueprintFieldQuery( - queryClient: QueryClient, - params?: { - variables?: ResolveBlueprintFieldVariables; - } -): Promise { - const variables = params?.variables ?? {}; - await queryClient.prefetchQuery({ - queryKey: resolveBlueprintFieldQueryKey(variables), - queryFn: () => getClient().query.resolveBlueprintField(variables).unwrap(), - }); -} diff --git a/sdk/constructive-react/src/modules/hooks/queries/useResolveBlueprintTableQuery.ts b/sdk/constructive-react/src/modules/hooks/queries/useResolveBlueprintTableQuery.ts deleted file mode 100644 index 906033d06c..0000000000 --- a/sdk/constructive-react/src/modules/hooks/queries/useResolveBlueprintTableQuery.ts +++ /dev/null @@ -1,107 +0,0 @@ -/** - * Custom query hook for resolveBlueprintTable - * @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 { customQueryKeys } from '../query-keys'; -import type { ResolveBlueprintTableVariables } from '../../orm/query'; -export type { ResolveBlueprintTableVariables } from '../../orm/query'; -/** Query key factory - re-exported from query-keys.ts */ -export const resolveBlueprintTableQueryKey = customQueryKeys.resolveBlueprintTable; -/** - * 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. - * - * @example - * ```tsx - * const { data, isLoading } = useResolveBlueprintTableQuery({ variables: { databaseId, defaultSchemaId, schemaName, tableMap, tableName } }); - * - * if (data?.resolveBlueprintTable) { - * console.log(data.resolveBlueprintTable); - * } - * ``` - */ -export function useResolveBlueprintTableQuery< - TData = { - resolveBlueprintTable: string | null; - }, ->( - params?: { - variables?: ResolveBlueprintTableVariables; - } & Omit< - UseQueryOptions< - { - resolveBlueprintTable: string | null; - }, - Error, - TData - >, - 'queryKey' | 'queryFn' - > -): UseQueryResult; -export function useResolveBlueprintTableQuery< - TData = { - resolveBlueprintTable: string | null; - }, ->( - params?: { - variables?: ResolveBlueprintTableVariables; - } & Omit< - UseQueryOptions< - { - resolveBlueprintTable: string | null; - }, - Error, - TData - >, - 'queryKey' | 'queryFn' - > -): UseQueryResult { - const variables = params?.variables ?? {}; - const { variables: _variables, ...queryOptions } = params ?? {}; - void _variables; - return useQuery({ - queryKey: resolveBlueprintTableQueryKey(variables), - queryFn: () => getClient().query.resolveBlueprintTable(variables).unwrap(), - ...queryOptions, - }); -} -/** - * Fetch resolveBlueprintTable without React hooks - * - * @example - * ```ts - * const data = await fetchResolveBlueprintTableQuery({ variables: { databaseId, defaultSchemaId, schemaName, tableMap, tableName } }); - * ``` - */ -export async function fetchResolveBlueprintTableQuery(params?: { - variables?: ResolveBlueprintTableVariables; -}) { - const variables = params?.variables ?? {}; - return getClient().query.resolveBlueprintTable(variables).unwrap(); -} -/** - * Prefetch resolveBlueprintTable for SSR or cache warming - * - * @example - * ```ts - * await prefetchResolveBlueprintTableQuery(queryClient, { variables: { databaseId, defaultSchemaId, schemaName, tableMap, tableName } }); - * ``` - */ -export async function prefetchResolveBlueprintTableQuery( - queryClient: QueryClient, - params?: { - variables?: ResolveBlueprintTableVariables; - } -): Promise { - const variables = params?.variables ?? {}; - await queryClient.prefetchQuery({ - queryKey: resolveBlueprintTableQueryKey(variables), - queryFn: () => getClient().query.resolveBlueprintTable(variables).unwrap(), - }); -} diff --git a/sdk/constructive-react/src/modules/hooks/queries/useScopeTypesModuleQuery.ts b/sdk/constructive-react/src/modules/hooks/queries/useScopeTypesModuleQuery.ts new file mode 100644 index 0000000000..3f6cdcebc9 --- /dev/null +++ b/sdk/constructive-react/src/modules/hooks/queries/useScopeTypesModuleQuery.ts @@ -0,0 +1,138 @@ +/** + * Single item query hook for ScopeTypesModule + * @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 { scopeTypesModuleKeys } from '../query-keys'; +import type { ScopeTypesModuleSelect, ScopeTypesModuleWithRelations } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { ScopeTypesModuleSelect, ScopeTypesModuleWithRelations } from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const scopeTypesModuleQueryKey = scopeTypesModuleKeys.detail; +/** + * Query hook for fetching a single ScopeTypesModule + * + * @example + * ```tsx + * const { data, isLoading } = useScopeTypesModuleQuery({ + * id: 'some-id', + * selection: { fields: { id: true, name: true } }, + * }); + * ``` + */ +export function useScopeTypesModuleQuery< + S extends ScopeTypesModuleSelect, + TData = { + scopeTypesModule: InferSelectResult | null; + }, +>( + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, ScopeTypesModuleSelect>; + } & Omit< + UseQueryOptions< + { + scopeTypesModule: InferSelectResult | null; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useScopeTypesModuleQuery( + params: { + id: string; + selection: SelectionConfig; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: scopeTypesModuleKeys.detail(params.id), + queryFn: () => + getClient() + .scopeTypesModule.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + ...queryOptions, + }); +} +/** + * Fetch a single ScopeTypesModule without React hooks + * + * @example + * ```ts + * const data = await fetchScopeTypesModuleQuery({ + * id: 'some-id', + * selection: { fields: { id: true } }, + * }); + * ``` + */ +export async function fetchScopeTypesModuleQuery(params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, ScopeTypesModuleSelect>; +}): Promise<{ + scopeTypesModule: InferSelectResult | null; +}>; +export async function fetchScopeTypesModuleQuery(params: { + id: string; + selection: SelectionConfig; +}): Promise { + const args = buildSelectionArgs(params.selection); + return getClient() + .scopeTypesModule.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(); +} +/** + * Prefetch a single ScopeTypesModule for SSR or cache warming + * + * @example + * ```ts + * await prefetchScopeTypesModuleQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } }); + * ``` + */ +export async function prefetchScopeTypesModuleQuery( + queryClient: QueryClient, + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, ScopeTypesModuleSelect>; + } +): Promise; +export async function prefetchScopeTypesModuleQuery( + queryClient: QueryClient, + params: { + id: string; + selection: SelectionConfig; + } +): Promise { + const args = buildSelectionArgs(params.selection); + await queryClient.prefetchQuery({ + queryKey: scopeTypesModuleKeys.detail(params.id), + queryFn: () => + getClient() + .scopeTypesModule.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + }); +} diff --git a/sdk/constructive-react/src/modules/hooks/queries/useScopeTypesModulesQuery.ts b/sdk/constructive-react/src/modules/hooks/queries/useScopeTypesModulesQuery.ts new file mode 100644 index 0000000000..e04a11e99a --- /dev/null +++ b/sdk/constructive-react/src/modules/hooks/queries/useScopeTypesModulesQuery.ts @@ -0,0 +1,163 @@ +/** + * List query hook for ScopeTypesModule + * @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 { scopeTypesModuleKeys } from '../query-keys'; +import type { + ScopeTypesModuleSelect, + ScopeTypesModuleWithRelations, + ScopeTypesModuleFilter, + ScopeTypesModuleOrderBy, +} from '../../orm/input-types'; +import type { + FindManyArgs, + InferSelectResult, + ConnectionResult, + HookStrictSelect, +} from '../../orm/select-types'; +export type { + ScopeTypesModuleSelect, + ScopeTypesModuleWithRelations, + ScopeTypesModuleFilter, + ScopeTypesModuleOrderBy, +} from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const scopeTypesModulesQueryKey = scopeTypesModuleKeys.list; +/** + * Query hook for fetching ScopeTypesModule list + * + * @example + * ```tsx + * const { data, isLoading } = useScopeTypesModulesQuery({ + * selection: { + * fields: { id: true, name: true }, + * where: { name: { equalTo: "example" } }, + * orderBy: ['CREATED_AT_DESC'], + * first: 10, + * }, + * }); + * ``` + */ +export function useScopeTypesModulesQuery< + S extends ScopeTypesModuleSelect, + TData = { + scopeTypesModules: ConnectionResult>; + }, +>( + params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, ScopeTypesModuleSelect>; + } & Omit< + UseQueryOptions< + { + scopeTypesModules: ConnectionResult>; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useScopeTypesModulesQuery( + params: { + selection: ListSelectionConfig< + ScopeTypesModuleSelect, + ScopeTypesModuleFilter, + ScopeTypesModuleOrderBy + >; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildListSelectionArgs< + ScopeTypesModuleSelect, + ScopeTypesModuleFilter, + ScopeTypesModuleOrderBy + >(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: scopeTypesModuleKeys.list(args), + queryFn: () => getClient().scopeTypesModule.findMany(args).unwrap(), + ...queryOptions, + }); +} +/** + * Fetch ScopeTypesModule list without React hooks + * + * @example + * ```ts + * const data = await fetchScopeTypesModulesQuery({ + * selection: { + * fields: { id: true }, + * first: 10, + * }, + * }); + * ``` + */ +export async function fetchScopeTypesModulesQuery(params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, ScopeTypesModuleSelect>; +}): Promise<{ + scopeTypesModules: ConnectionResult>; +}>; +export async function fetchScopeTypesModulesQuery(params: { + selection: ListSelectionConfig< + ScopeTypesModuleSelect, + ScopeTypesModuleFilter, + ScopeTypesModuleOrderBy + >; +}) { + const args = buildListSelectionArgs< + ScopeTypesModuleSelect, + ScopeTypesModuleFilter, + ScopeTypesModuleOrderBy + >(params.selection); + return getClient().scopeTypesModule.findMany(args).unwrap(); +} +/** + * Prefetch ScopeTypesModule list for SSR or cache warming + * + * @example + * ```ts + * await prefetchScopeTypesModulesQuery(queryClient, { selection: { fields: { id: true }, first: 10 } }); + * ``` + */ +export async function prefetchScopeTypesModulesQuery( + queryClient: QueryClient, + params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, ScopeTypesModuleSelect>; + } +): Promise; +export async function prefetchScopeTypesModulesQuery( + queryClient: QueryClient, + params: { + selection: ListSelectionConfig< + ScopeTypesModuleSelect, + ScopeTypesModuleFilter, + ScopeTypesModuleOrderBy + >; + } +): Promise { + const args = buildListSelectionArgs< + ScopeTypesModuleSelect, + ScopeTypesModuleFilter, + ScopeTypesModuleOrderBy + >(params.selection); + await queryClient.prefetchQuery({ + queryKey: scopeTypesModuleKeys.list(args), + queryFn: () => getClient().scopeTypesModule.findMany(args).unwrap(), + }); +} diff --git a/sdk/constructive-react/src/modules/hooks/queries/useUserSettingsSecurityModuleQuery.ts b/sdk/constructive-react/src/modules/hooks/queries/useUserSettingsSecurityModuleQuery.ts new file mode 100644 index 0000000000..ae6ffc138e --- /dev/null +++ b/sdk/constructive-react/src/modules/hooks/queries/useUserSettingsSecurityModuleQuery.ts @@ -0,0 +1,154 @@ +/** + * Single item query hook for UserSettingsSecurityModule + * @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 { userSettingsSecurityModuleKeys } from '../query-keys'; +import type { + UserSettingsSecurityModuleSelect, + UserSettingsSecurityModuleWithRelations, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + UserSettingsSecurityModuleSelect, + UserSettingsSecurityModuleWithRelations, +} from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const userSettingsSecurityModuleQueryKey = userSettingsSecurityModuleKeys.detail; +/** + * Query hook for fetching a single UserSettingsSecurityModule + * + * @example + * ```tsx + * const { data, isLoading } = useUserSettingsSecurityModuleQuery({ + * id: 'some-id', + * selection: { fields: { id: true, name: true } }, + * }); + * ``` + */ +export function useUserSettingsSecurityModuleQuery< + S extends UserSettingsSecurityModuleSelect, + TData = { + userSettingsSecurityModule: InferSelectResult< + UserSettingsSecurityModuleWithRelations, + S + > | null; + }, +>( + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, UserSettingsSecurityModuleSelect>; + } & Omit< + UseQueryOptions< + { + userSettingsSecurityModule: InferSelectResult< + UserSettingsSecurityModuleWithRelations, + S + > | null; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useUserSettingsSecurityModuleQuery( + params: { + id: string; + selection: SelectionConfig; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: userSettingsSecurityModuleKeys.detail(params.id), + queryFn: () => + getClient() + .userSettingsSecurityModule.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + ...queryOptions, + }); +} +/** + * Fetch a single UserSettingsSecurityModule without React hooks + * + * @example + * ```ts + * const data = await fetchUserSettingsSecurityModuleQuery({ + * id: 'some-id', + * selection: { fields: { id: true } }, + * }); + * ``` + */ +export async function fetchUserSettingsSecurityModuleQuery< + S extends UserSettingsSecurityModuleSelect, +>(params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, UserSettingsSecurityModuleSelect>; +}): Promise<{ + userSettingsSecurityModule: InferSelectResult | null; +}>; +export async function fetchUserSettingsSecurityModuleQuery(params: { + id: string; + selection: SelectionConfig; +}): Promise { + const args = buildSelectionArgs(params.selection); + return getClient() + .userSettingsSecurityModule.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(); +} +/** + * Prefetch a single UserSettingsSecurityModule for SSR or cache warming + * + * @example + * ```ts + * await prefetchUserSettingsSecurityModuleQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } }); + * ``` + */ +export async function prefetchUserSettingsSecurityModuleQuery< + S extends UserSettingsSecurityModuleSelect, +>( + queryClient: QueryClient, + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, UserSettingsSecurityModuleSelect>; + } +): Promise; +export async function prefetchUserSettingsSecurityModuleQuery( + queryClient: QueryClient, + params: { + id: string; + selection: SelectionConfig; + } +): Promise { + const args = buildSelectionArgs(params.selection); + await queryClient.prefetchQuery({ + queryKey: userSettingsSecurityModuleKeys.detail(params.id), + queryFn: () => + getClient() + .userSettingsSecurityModule.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + }); +} diff --git a/sdk/constructive-react/src/modules/hooks/queries/useUserSettingsSecurityModulesQuery.ts b/sdk/constructive-react/src/modules/hooks/queries/useUserSettingsSecurityModulesQuery.ts new file mode 100644 index 0000000000..03736ac8df --- /dev/null +++ b/sdk/constructive-react/src/modules/hooks/queries/useUserSettingsSecurityModulesQuery.ts @@ -0,0 +1,182 @@ +/** + * List query hook for UserSettingsSecurityModule + * @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 { userSettingsSecurityModuleKeys } from '../query-keys'; +import type { + UserSettingsSecurityModuleSelect, + UserSettingsSecurityModuleWithRelations, + UserSettingsSecurityModuleFilter, + UserSettingsSecurityModuleOrderBy, +} from '../../orm/input-types'; +import type { + FindManyArgs, + InferSelectResult, + ConnectionResult, + HookStrictSelect, +} from '../../orm/select-types'; +export type { + UserSettingsSecurityModuleSelect, + UserSettingsSecurityModuleWithRelations, + UserSettingsSecurityModuleFilter, + UserSettingsSecurityModuleOrderBy, +} from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const userSettingsSecurityModulesQueryKey = userSettingsSecurityModuleKeys.list; +/** + * Query hook for fetching UserSettingsSecurityModule list + * + * @example + * ```tsx + * const { data, isLoading } = useUserSettingsSecurityModulesQuery({ + * selection: { + * fields: { id: true, name: true }, + * where: { name: { equalTo: "example" } }, + * orderBy: ['CREATED_AT_DESC'], + * first: 10, + * }, + * }); + * ``` + */ +export function useUserSettingsSecurityModulesQuery< + S extends UserSettingsSecurityModuleSelect, + TData = { + userSettingsSecurityModules: ConnectionResult< + InferSelectResult + >; + }, +>( + params: { + selection: { + fields: S; + } & Omit< + ListSelectionConfig, + 'fields' + > & + HookStrictSelect, UserSettingsSecurityModuleSelect>; + } & Omit< + UseQueryOptions< + { + userSettingsSecurityModules: ConnectionResult< + InferSelectResult + >; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useUserSettingsSecurityModulesQuery( + params: { + selection: ListSelectionConfig< + UserSettingsSecurityModuleSelect, + UserSettingsSecurityModuleFilter, + UserSettingsSecurityModuleOrderBy + >; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildListSelectionArgs< + UserSettingsSecurityModuleSelect, + UserSettingsSecurityModuleFilter, + UserSettingsSecurityModuleOrderBy + >(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: userSettingsSecurityModuleKeys.list(args), + queryFn: () => getClient().userSettingsSecurityModule.findMany(args).unwrap(), + ...queryOptions, + }); +} +/** + * Fetch UserSettingsSecurityModule list without React hooks + * + * @example + * ```ts + * const data = await fetchUserSettingsSecurityModulesQuery({ + * selection: { + * fields: { id: true }, + * first: 10, + * }, + * }); + * ``` + */ +export async function fetchUserSettingsSecurityModulesQuery< + S extends UserSettingsSecurityModuleSelect, +>(params: { + selection: { + fields: S; + } & Omit< + ListSelectionConfig, + 'fields' + > & + HookStrictSelect, UserSettingsSecurityModuleSelect>; +}): Promise<{ + userSettingsSecurityModules: ConnectionResult< + InferSelectResult + >; +}>; +export async function fetchUserSettingsSecurityModulesQuery(params: { + selection: ListSelectionConfig< + UserSettingsSecurityModuleSelect, + UserSettingsSecurityModuleFilter, + UserSettingsSecurityModuleOrderBy + >; +}) { + const args = buildListSelectionArgs< + UserSettingsSecurityModuleSelect, + UserSettingsSecurityModuleFilter, + UserSettingsSecurityModuleOrderBy + >(params.selection); + return getClient().userSettingsSecurityModule.findMany(args).unwrap(); +} +/** + * Prefetch UserSettingsSecurityModule list for SSR or cache warming + * + * @example + * ```ts + * await prefetchUserSettingsSecurityModulesQuery(queryClient, { selection: { fields: { id: true }, first: 10 } }); + * ``` + */ +export async function prefetchUserSettingsSecurityModulesQuery< + S extends UserSettingsSecurityModuleSelect, +>( + queryClient: QueryClient, + params: { + selection: { + fields: S; + } & Omit< + ListSelectionConfig, + 'fields' + > & + HookStrictSelect, UserSettingsSecurityModuleSelect>; + } +): Promise; +export async function prefetchUserSettingsSecurityModulesQuery( + queryClient: QueryClient, + params: { + selection: ListSelectionConfig< + UserSettingsSecurityModuleSelect, + UserSettingsSecurityModuleFilter, + UserSettingsSecurityModuleOrderBy + >; + } +): Promise { + const args = buildListSelectionArgs< + UserSettingsSecurityModuleSelect, + UserSettingsSecurityModuleFilter, + UserSettingsSecurityModuleOrderBy + >(params.selection); + await queryClient.prefetchQuery({ + queryKey: userSettingsSecurityModuleKeys.list(args), + queryFn: () => getClient().userSettingsSecurityModule.findMany(args).unwrap(), + }); +} diff --git a/sdk/constructive-react/src/modules/hooks/query-keys.ts b/sdk/constructive-react/src/modules/hooks/query-keys.ts index 551484d6ec..8e143a3f84 100644 --- a/sdk/constructive-react/src/modules/hooks/query-keys.ts +++ b/sdk/constructive-react/src/modules/hooks/query-keys.ts @@ -91,6 +91,15 @@ export const blueprintTemplateKeys = { /** Detail query key for specific item */ detail: (id: string | number) => [...blueprintTemplateKeys.details(), id] as const, } as const; +export const capabilitiesModuleKeys = { + /** All capabilitiesModule queries */ all: ['capabilitiesmodule'] as const, + /** List query keys */ lists: () => [...capabilitiesModuleKeys.all, 'list'] as const, + /** List query key with variables */ list: (variables?: object) => + [...capabilitiesModuleKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...capabilitiesModuleKeys.all, 'detail'] as const, + /** Detail query key for specific item */ detail: (id: string | number) => + [...capabilitiesModuleKeys.details(), id] as const, +} as const; export const catalogModuleKeys = { /** All catalogModule queries */ all: ['catalogmodule'] as const, /** List query keys */ lists: () => [...catalogModuleKeys.all, 'list'] as const, @@ -127,6 +136,15 @@ export const connectedAccountsModuleKeys = { /** Detail query key for specific item */ detail: (id: string | number) => [...connectedAccountsModuleKeys.details(), id] as const, } as const; +export const contentPresetModuleKeys = { + /** All contentPresetModule queries */ all: ['contentpresetmodule'] as const, + /** List query keys */ lists: () => [...contentPresetModuleKeys.all, 'list'] as const, + /** List query key with variables */ list: (variables?: object) => + [...contentPresetModuleKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...contentPresetModuleKeys.all, 'detail'] as const, + /** Detail query key for specific item */ detail: (id: string | number) => + [...contentPresetModuleKeys.details(), id] as const, +} as const; export const cryptoAddressesModuleKeys = { /** All cryptoAddressesModule queries */ all: ['cryptoaddressesmodule'] as const, /** List query keys */ lists: () => [...cryptoAddressesModuleKeys.all, 'list'] as const, @@ -145,6 +163,15 @@ export const cryptoAuthModuleKeys = { /** Detail query key for specific item */ detail: (id: string | number) => [...cryptoAuthModuleKeys.details(), id] as const, } as const; +export const dataCapabilitiesFieldKeys = { + /** All dataCapabilitiesField queries */ all: ['datacapabilitiesfield'] as const, + /** List query keys */ lists: () => [...dataCapabilitiesFieldKeys.all, 'list'] as const, + /** List query key with variables */ list: (variables?: object) => + [...dataCapabilitiesFieldKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...dataCapabilitiesFieldKeys.all, 'detail'] as const, + /** Detail query key for specific item */ detail: (id: string | number) => + [...dataCapabilitiesFieldKeys.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, @@ -235,6 +262,15 @@ export const domainModuleKeys = { /** Detail query key for specific item */ detail: (id: string | number) => [...domainModuleKeys.details(), id] as const, } as const; +export const emailSenderModuleKeys = { + /** All emailSenderModule queries */ all: ['emailsendermodule'] as const, + /** List query keys */ lists: () => [...emailSenderModuleKeys.all, 'list'] as const, + /** List query key with variables */ list: (variables?: object) => + [...emailSenderModuleKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...emailSenderModuleKeys.all, 'detail'] as const, + /** Detail query key for specific item */ detail: (id: string | number) => + [...emailSenderModuleKeys.details(), id] as const, +} as const; export const emailsModuleKeys = { /** All emailsModule queries */ all: ['emailsmodule'] as const, /** List query keys */ lists: () => [...emailsModuleKeys.all, 'list'] as const, @@ -262,6 +298,15 @@ export const eventsModuleKeys = { /** Detail query key for specific item */ detail: (id: string | number) => [...eventsModuleKeys.details(), id] as const, } as const; +export const fileRefFieldKeys = { + /** All fileRefField queries */ all: ['filereffield'] as const, + /** List query keys */ lists: () => [...fileRefFieldKeys.all, 'list'] as const, + /** List query key with variables */ list: (variables?: object) => + [...fileRefFieldKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...fileRefFieldKeys.all, 'detail'] as const, + /** Detail query key for specific item */ detail: (id: string | number) => + [...fileRefFieldKeys.details(), id] as const, +} as const; export const functionDeploymentModuleKeys = { /** All functionDeploymentModule queries */ all: ['functiondeploymentmodule'] as const, /** List query keys */ lists: () => [...functionDeploymentModuleKeys.all, 'list'] as const, @@ -452,6 +497,15 @@ export const notificationsModuleKeys = { /** Detail query key for specific item */ detail: (id: string | number) => [...notificationsModuleKeys.details(), id] as const, } as const; +export const oauthRequestsModuleKeys = { + /** All oauthRequestsModule queries */ all: ['oauthrequestsmodule'] as const, + /** List query keys */ lists: () => [...oauthRequestsModuleKeys.all, 'list'] as const, + /** List query key with variables */ list: (variables?: object) => + [...oauthRequestsModuleKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...oauthRequestsModuleKeys.all, 'detail'] as const, + /** Detail query key for specific item */ detail: (id: string | number) => + [...oauthRequestsModuleKeys.details(), id] as const, +} as const; export const pagesModuleKeys = { /** All pagesModule queries */ all: ['pagesmodule'] as const, /** List query keys */ lists: () => [...pagesModuleKeys.all, 'list'] as const, @@ -461,15 +515,6 @@ export const pagesModuleKeys = { /** Detail query key for specific item */ detail: (id: string | number) => [...pagesModuleKeys.details(), id] as const, } as const; -export const permissionsModuleKeys = { - /** All permissionsModule queries */ all: ['permissionsmodule'] as const, - /** List query keys */ lists: () => [...permissionsModuleKeys.all, 'list'] as const, - /** List query key with variables */ list: (variables?: object) => - [...permissionsModuleKeys.lists(), variables] as const, - /** Detail query keys */ details: () => [...permissionsModuleKeys.all, 'detail'] as const, - /** Detail query key for specific item */ detail: (id: string | number) => - [...permissionsModuleKeys.details(), id] as const, -} as const; export const phoneNumbersModuleKeys = { /** All phoneNumbersModule queries */ all: ['phonenumbersmodule'] as const, /** List query keys */ lists: () => [...phoneNumbersModuleKeys.all, 'list'] as const, @@ -569,6 +614,15 @@ export const routeModuleKeys = { /** Detail query key for specific item */ detail: (id: string | number) => [...routeModuleKeys.details(), id] as const, } as const; +export const scopeTypesModuleKeys = { + /** All scopeTypesModule queries */ all: ['scopetypesmodule'] as const, + /** List query keys */ lists: () => [...scopeTypesModuleKeys.all, 'list'] as const, + /** List query key with variables */ list: (variables?: object) => + [...scopeTypesModuleKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...scopeTypesModuleKeys.all, 'detail'] as const, + /** Detail query key for specific item */ detail: (id: string | number) => + [...scopeTypesModuleKeys.details(), id] as const, +} as const; export const secureTableProvisionKeys = { /** All secureTableProvision queries */ all: ['securetableprovision'] as const, /** List query keys */ lists: () => [...secureTableProvisionKeys.all, 'list'] as const, @@ -659,6 +713,16 @@ export const userSettingsModuleKeys = { /** Detail query key for specific item */ detail: (id: string | number) => [...userSettingsModuleKeys.details(), id] as const, } as const; +export const userSettingsSecurityModuleKeys = { + /** All userSettingsSecurityModule queries */ all: ['usersettingssecuritymodule'] as const, + /** List query keys */ lists: () => [...userSettingsSecurityModuleKeys.all, 'list'] as const, + /** List query key with variables */ list: (variables?: object) => + [...userSettingsSecurityModuleKeys.lists(), variables] as const, + /** Detail query keys */ details: () => + [...userSettingsSecurityModuleKeys.all, 'detail'] as const, + /** Detail query key for specific item */ detail: (id: string | number) => + [...userSettingsSecurityModuleKeys.details(), id] as const, +} as const; export const userStateModuleKeys = { /** All userStateModule queries */ all: ['userstatemodule'] as const, /** List query keys */ lists: () => [...userStateModuleKeys.all, 'list'] as const, @@ -704,17 +768,6 @@ export const webhookModuleKeys = { /** Detail query key for specific item */ detail: (id: string | number) => [...webhookModuleKeys.details(), id] as const, } as const; - -// ============================================================================ -// Custom Query Keys -// ============================================================================ - -export const customQueryKeys = { - /** Query key for resolveBlueprintField */ resolveBlueprintField: (variables?: object) => - ['resolveBlueprintField', variables] as const, - /** Query key for resolveBlueprintTable */ resolveBlueprintTable: (variables?: object) => - ['resolveBlueprintTable', variables] as const, -} as const; /** // ============================================================================ @@ -746,12 +799,15 @@ export const queryKeys = { blueprint: blueprintKeys, blueprintConstruction: blueprintConstructionKeys, blueprintTemplate: blueprintTemplateKeys, + capabilitiesModule: capabilitiesModuleKeys, catalogModule: catalogModuleKeys, computeLogModule: computeLogModuleKeys, configSecretsUserModule: configSecretsUserModuleKeys, connectedAccountsModule: connectedAccountsModuleKeys, + contentPresetModule: contentPresetModuleKeys, cryptoAddressesModule: cryptoAddressesModuleKeys, cryptoAuthModule: cryptoAuthModuleKeys, + dataCapabilitiesField: dataCapabilitiesFieldKeys, databaseProvisionModule: databaseProvisionModuleKeys, databaseSettingsModule: databaseSettingsModuleKeys, dbPoolConfig: dbPoolConfigKeys, @@ -762,9 +818,11 @@ export const queryKeys = { denormalizedTableField: denormalizedTableFieldKeys, devicesModule: devicesModuleKeys, domainModule: domainModuleKeys, + emailSenderModule: emailSenderModuleKeys, emailsModule: emailsModuleKeys, entityTypeProvision: entityTypeProvisionKeys, eventsModule: eventsModuleKeys, + fileRefField: fileRefFieldKeys, functionDeploymentModule: functionDeploymentModuleKeys, functionInvocationModule: functionInvocationModuleKeys, functionModule: functionModuleKeys, @@ -786,8 +844,8 @@ export const queryKeys = { merkleStoreModule: merkleStoreModuleKeys, namespaceModule: namespaceModuleKeys, notificationsModule: notificationsModuleKeys, + oauthRequestsModule: oauthRequestsModuleKeys, pagesModule: pagesModuleKeys, - permissionsModule: permissionsModuleKeys, phoneNumbersModule: phoneNumbersModuleKeys, plansModule: plansModuleKeys, principalAuthModule: principalAuthModuleKeys, @@ -799,6 +857,7 @@ export const queryKeys = { resourceModule: resourceModuleKeys, rlsModule: rlsModuleKeys, routeModule: routeModuleKeys, + scopeTypesModule: scopeTypesModuleKeys, secureTableProvision: secureTableProvisionKeys, sessionSecretsModule: sessionSecretsModuleKeys, sessionsModule: sessionsModuleKeys, @@ -809,12 +868,12 @@ export const queryKeys = { userAuthModule: userAuthModuleKeys, userCredentialsModule: userCredentialsModuleKeys, userSettingsModule: userSettingsModuleKeys, + userSettingsSecurityModule: userSettingsSecurityModuleKeys, userStateModule: userStateModuleKeys, usersModule: usersModuleKeys, webauthnAuthModule: webauthnAuthModuleKeys, webauthnCredentialsModule: webauthnCredentialsModuleKeys, webhookModule: webhookModuleKeys, - custom: customQueryKeys, } as const; /** Type representing all available query key scopes */ export type QueryKeyScope = keyof typeof queryKeys; diff --git a/sdk/constructive-react/src/modules/orm/README.md b/sdk/constructive-react/src/modules/orm/README.md index 7982fe489a..de92f9aee3 100644 --- a/sdk/constructive-react/src/modules/orm/README.md +++ b/sdk/constructive-react/src/modules/orm/README.md @@ -29,12 +29,15 @@ const db = createClient({ | `blueprint` | findMany, findOne, create, update, delete | | `blueprintConstruction` | findMany, findOne, create, update, delete | | `blueprintTemplate` | findMany, findOne, create, update, delete | +| `capabilitiesModule` | findMany, findOne, create, update, delete | | `catalogModule` | findMany, findOne, create, update, delete | | `computeLogModule` | findMany, findOne, create, update, delete | | `configSecretsUserModule` | findMany, findOne, create, update, delete | | `connectedAccountsModule` | findMany, findOne, create, update, delete | +| `contentPresetModule` | findMany, findOne, create, update, delete | | `cryptoAddressesModule` | findMany, findOne, create, update, delete | | `cryptoAuthModule` | findMany, findOne, create, update, delete | +| `dataCapabilitiesField` | findMany, findOne, create, update, delete | | `databaseProvisionModule` | findMany, findOne, create, update, delete | | `databaseSettingsModule` | findMany, findOne, create, update, delete | | `dbPoolConfig` | findMany, findOne, create, update, delete | @@ -45,9 +48,11 @@ const db = createClient({ | `denormalizedTableField` | findMany, findOne, create, update, delete | | `devicesModule` | findMany, findOne, create, update, delete | | `domainModule` | findMany, findOne, create, update, delete | +| `emailSenderModule` | findMany, findOne, create, update, delete | | `emailsModule` | findMany, findOne, create, update, delete | | `entityTypeProvision` | findMany, findOne, create, update, delete | | `eventsModule` | findMany, findOne, create, update, delete | +| `fileRefField` | findMany, findOne, create, update, delete | | `functionDeploymentModule` | findMany, findOne, create, update, delete | | `functionInvocationModule` | findMany, findOne, create, update, delete | | `functionModule` | findMany, findOne, create, update, delete | @@ -69,8 +74,8 @@ const db = createClient({ | `merkleStoreModule` | findMany, findOne, create, update, delete | | `namespaceModule` | findMany, findOne, create, update, delete | | `notificationsModule` | findMany, findOne, create, update, delete | +| `oauthRequestsModule` | findMany, findOne, create, update, delete | | `pagesModule` | findMany, findOne, create, update, delete | -| `permissionsModule` | findMany, findOne, create, update, delete | | `phoneNumbersModule` | findMany, findOne, create, update, delete | | `plansModule` | findMany, findOne, create, update, delete | | `principalAuthModule` | findMany, findOne, create, update, delete | @@ -82,6 +87,7 @@ const db = createClient({ | `resourceModule` | findMany, findOne, create, update, delete | | `rlsModule` | findMany, findOne, create, update, delete | | `routeModule` | findMany, findOne, create, update, delete | +| `scopeTypesModule` | findMany, findOne, create, update, delete | | `secureTableProvision` | findMany, findOne, create, update, delete | | `sessionSecretsModule` | findMany, findOne, create, update, delete | | `sessionsModule` | findMany, findOne, create, update, delete | @@ -92,6 +98,7 @@ const db = createClient({ | `userAuthModule` | findMany, findOne, create, update, delete | | `userCredentialsModule` | findMany, findOne, create, update, delete | | `userSettingsModule` | findMany, findOne, create, update, delete | +| `userSettingsSecurityModule` | findMany, findOne, create, update, delete | | `userStateModule` | findMany, findOne, create, update, delete | | `usersModule` | findMany, findOne, create, update, delete | | `webauthnAuthModule` | findMany, findOne, create, update, delete | @@ -112,7 +119,7 @@ CRUD operations for AgentModule records. | `agentTableName` | String | Yes | | `apiName` | String | Yes | | `databaseId` | UUID | Yes | -| `defaultPermissions` | String | Yes | +| `defaultCapabilities` | String | Yes | | `entityField` | String | Yes | | `entityTableId` | UUID | Yes | | `hasAgents` | Boolean | Yes | @@ -149,13 +156,13 @@ CRUD operations for AgentModule records. ```typescript // List all agentModule records -const items = await db.agentModule.findMany({ select: { agentTableId: true, agentTableName: true, apiName: true, databaseId: true, defaultPermissions: true, entityField: true, entityTableId: true, hasAgents: true, hasPlans: true, hasResources: true, id: true, messageTableId: true, messageTableName: true, personaTableId: true, personaTableName: true, planTableId: true, planTableName: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, promptsTableId: true, promptsTableName: true, provisions: true, publicSchemaName: true, resourceTableId: true, resourceTableName: true, resources: true, schemaId: true, scope: true, shared: true, taskTableId: true, taskTableName: true, threadTableId: true, threadTableName: true } }).execute(); +const items = await db.agentModule.findMany({ select: { agentTableId: true, agentTableName: true, apiName: true, databaseId: true, defaultCapabilities: true, entityField: true, entityTableId: true, hasAgents: true, hasPlans: true, hasResources: true, id: true, messageTableId: true, messageTableName: true, personaTableId: true, personaTableName: true, planTableId: true, planTableName: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, promptsTableId: true, promptsTableName: true, provisions: true, publicSchemaName: true, resourceTableId: true, resourceTableName: true, resources: true, schemaId: true, scope: true, shared: true, taskTableId: true, taskTableName: true, threadTableId: true, threadTableName: true } }).execute(); // Get one by id -const item = await db.agentModule.findOne({ id: '', select: { agentTableId: true, agentTableName: true, apiName: true, databaseId: true, defaultPermissions: true, entityField: true, entityTableId: true, hasAgents: true, hasPlans: true, hasResources: true, id: true, messageTableId: true, messageTableName: true, personaTableId: true, personaTableName: true, planTableId: true, planTableName: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, promptsTableId: true, promptsTableName: true, provisions: true, publicSchemaName: true, resourceTableId: true, resourceTableName: true, resources: true, schemaId: true, scope: true, shared: true, taskTableId: true, taskTableName: true, threadTableId: true, threadTableName: true } }).execute(); +const item = await db.agentModule.findOne({ id: '', select: { agentTableId: true, agentTableName: true, apiName: true, databaseId: true, defaultCapabilities: true, entityField: true, entityTableId: true, hasAgents: true, hasPlans: true, hasResources: true, id: true, messageTableId: true, messageTableName: true, personaTableId: true, personaTableName: true, planTableId: true, planTableName: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, promptsTableId: true, promptsTableName: true, provisions: true, publicSchemaName: true, resourceTableId: true, resourceTableName: true, resources: true, schemaId: true, scope: true, shared: true, taskTableId: true, taskTableName: true, threadTableId: true, threadTableName: true } }).execute(); // Create -const created = await db.agentModule.create({ data: { agentTableId: '', agentTableName: '', apiName: '', databaseId: '', defaultPermissions: '', entityField: '', entityTableId: '', hasAgents: '', hasPlans: '', hasResources: '', messageTableId: '', messageTableName: '', personaTableId: '', personaTableName: '', planTableId: '', planTableName: '', policies: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', promptsTableId: '', promptsTableName: '', provisions: '', publicSchemaName: '', resourceTableId: '', resourceTableName: '', resources: '', schemaId: '', scope: '', shared: '', taskTableId: '', taskTableName: '', threadTableId: '', threadTableName: '' }, select: { id: true } }).execute(); +const created = await db.agentModule.create({ data: { agentTableId: '', agentTableName: '', apiName: '', databaseId: '', defaultCapabilities: '', entityField: '', entityTableId: '', hasAgents: '', hasPlans: '', hasResources: '', messageTableId: '', messageTableName: '', personaTableId: '', personaTableName: '', planTableId: '', planTableName: '', policies: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', promptsTableId: '', promptsTableName: '', provisions: '', publicSchemaName: '', resourceTableId: '', resourceTableName: '', resources: '', schemaId: '', scope: '', shared: '', taskTableId: '', taskTableName: '', threadTableId: '', threadTableName: '' }, select: { id: true } }).execute(); // Update const updated = await db.agentModule.update({ where: { id: '' }, data: { agentTableId: '' }, select: { id: true } }).execute(); @@ -183,7 +190,7 @@ CRUD operations for ApiSurfaceModule records. | `corsSettingsTableId` | UUID | Yes | | `corsSettingsTableName` | String | Yes | | `databaseId` | UUID | Yes | -| `defaultPermissions` | String | Yes | +| `defaultCapabilities` | String | Yes | | `entityField` | String | Yes | | `entityTableId` | UUID | Yes | | `id` | UUID | No | @@ -199,13 +206,13 @@ CRUD operations for ApiSurfaceModule records. ```typescript // List all apiSurfaceModule records -const items = await db.apiSurfaceModule.findMany({ select: { apiName: true, apiSchemasTableId: true, apiSchemasTableName: true, apiSettingsTableId: true, apiSettingsTableName: true, apisTableId: true, apisTableName: true, catalogModuleId: true, corsSettingsTableId: true, corsSettingsTableName: true, databaseId: true, defaultPermissions: true, entityField: true, entityTableId: true, id: true, policies: true, prefix: true, privateApiName: true, provisions: true, publicSchemaName: true, schemaId: true, scope: true } }).execute(); +const items = await db.apiSurfaceModule.findMany({ select: { apiName: true, apiSchemasTableId: true, apiSchemasTableName: true, apiSettingsTableId: true, apiSettingsTableName: true, apisTableId: true, apisTableName: true, catalogModuleId: true, corsSettingsTableId: true, corsSettingsTableName: true, databaseId: true, defaultCapabilities: true, entityField: true, entityTableId: true, id: true, policies: true, prefix: true, privateApiName: true, provisions: true, publicSchemaName: true, schemaId: true, scope: true } }).execute(); // Get one by id -const item = await db.apiSurfaceModule.findOne({ id: '', select: { apiName: true, apiSchemasTableId: true, apiSchemasTableName: true, apiSettingsTableId: true, apiSettingsTableName: true, apisTableId: true, apisTableName: true, catalogModuleId: true, corsSettingsTableId: true, corsSettingsTableName: true, databaseId: true, defaultPermissions: true, entityField: true, entityTableId: true, id: true, policies: true, prefix: true, privateApiName: true, provisions: true, publicSchemaName: true, schemaId: true, scope: true } }).execute(); +const item = await db.apiSurfaceModule.findOne({ id: '', select: { apiName: true, apiSchemasTableId: true, apiSchemasTableName: true, apiSettingsTableId: true, apiSettingsTableName: true, apisTableId: true, apisTableName: true, catalogModuleId: true, corsSettingsTableId: true, corsSettingsTableName: true, databaseId: true, defaultCapabilities: true, entityField: true, entityTableId: true, id: true, policies: true, prefix: true, privateApiName: true, provisions: true, publicSchemaName: true, schemaId: true, scope: true } }).execute(); // Create -const created = await db.apiSurfaceModule.create({ data: { apiName: '', apiSchemasTableId: '', apiSchemasTableName: '', apiSettingsTableId: '', apiSettingsTableName: '', apisTableId: '', apisTableName: '', catalogModuleId: '', corsSettingsTableId: '', corsSettingsTableName: '', databaseId: '', defaultPermissions: '', entityField: '', entityTableId: '', policies: '', prefix: '', privateApiName: '', provisions: '', publicSchemaName: '', schemaId: '', scope: '' }, select: { id: true } }).execute(); +const created = await db.apiSurfaceModule.create({ data: { apiName: '', apiSchemasTableId: '', apiSchemasTableName: '', apiSettingsTableId: '', apiSettingsTableName: '', apisTableId: '', apisTableName: '', catalogModuleId: '', corsSettingsTableId: '', corsSettingsTableName: '', databaseId: '', defaultCapabilities: '', entityField: '', entityTableId: '', policies: '', prefix: '', privateApiName: '', provisions: '', publicSchemaName: '', schemaId: '', scope: '' }, select: { id: true } }).execute(); // Update const updated = await db.apiSurfaceModule.update({ where: { id: '' }, data: { apiName: '' }, select: { id: true } }).execute(); @@ -229,7 +236,7 @@ CRUD operations for AppModule records. | `appsTableName` | String | Yes | | `catalogModuleId` | UUID | Yes | | `databaseId` | UUID | Yes | -| `defaultPermissions` | String | Yes | +| `defaultCapabilities` | String | Yes | | `entityField` | String | Yes | | `entityTableId` | UUID | Yes | | `id` | UUID | No | @@ -247,13 +254,13 @@ CRUD operations for AppModule records. ```typescript // List all appModule records -const items = await db.appModule.findMany({ select: { apiName: true, appComponentsTableId: true, appComponentsTableName: true, appsTableId: true, appsTableName: true, catalogModuleId: true, databaseId: true, defaultPermissions: true, entityField: true, entityTableId: true, id: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provisions: true, publicSchemaName: true, schemaId: true, scope: true } }).execute(); +const items = await db.appModule.findMany({ select: { apiName: true, appComponentsTableId: true, appComponentsTableName: true, appsTableId: true, appsTableName: true, catalogModuleId: true, databaseId: true, defaultCapabilities: true, entityField: true, entityTableId: true, id: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provisions: true, publicSchemaName: true, schemaId: true, scope: true } }).execute(); // Get one by id -const item = await db.appModule.findOne({ id: '', select: { apiName: true, appComponentsTableId: true, appComponentsTableName: true, appsTableId: true, appsTableName: true, catalogModuleId: true, databaseId: true, defaultPermissions: true, entityField: true, entityTableId: true, id: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provisions: true, publicSchemaName: true, schemaId: true, scope: true } }).execute(); +const item = await db.appModule.findOne({ id: '', select: { apiName: true, appComponentsTableId: true, appComponentsTableName: true, appsTableId: true, appsTableName: true, catalogModuleId: true, databaseId: true, defaultCapabilities: true, entityField: true, entityTableId: true, id: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provisions: true, publicSchemaName: true, schemaId: true, scope: true } }).execute(); // Create -const created = await db.appModule.create({ data: { apiName: '', appComponentsTableId: '', appComponentsTableName: '', appsTableId: '', appsTableName: '', catalogModuleId: '', databaseId: '', defaultPermissions: '', entityField: '', entityTableId: '', policies: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', provisions: '', publicSchemaName: '', schemaId: '', scope: '' }, select: { id: true } }).execute(); +const created = await db.appModule.create({ data: { apiName: '', appComponentsTableId: '', appComponentsTableName: '', appsTableId: '', appsTableName: '', catalogModuleId: '', databaseId: '', defaultCapabilities: '', entityField: '', entityTableId: '', policies: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', provisions: '', publicSchemaName: '', schemaId: '', scope: '' }, select: { id: true } }).execute(); // Update const updated = await db.appModule.update({ where: { id: '' }, data: { apiName: '' }, select: { id: true } }).execute(); @@ -274,8 +281,8 @@ CRUD operations for BillingModule records. | `balancesTableId` | UUID | Yes | | `balancesTableName` | String | Yes | | `databaseId` | UUID | Yes | +| `defaultCapabilities` | String | Yes | | `defaultMeterCatalog` | JSON | Yes | -| `defaultPermissions` | String | Yes | | `id` | UUID | No | | `ledgerTableId` | UUID | Yes | | `ledgerTableName` | String | Yes | @@ -303,13 +310,13 @@ CRUD operations for BillingModule records. ```typescript // List all billingModule records -const items = await db.billingModule.findMany({ select: { apiName: true, balancesTableId: true, balancesTableName: true, databaseId: true, defaultMeterCatalog: true, defaultPermissions: true, id: true, ledgerTableId: true, ledgerTableName: true, meterCreditsTableId: true, meterCreditsTableName: true, meterDefaultsTableId: true, meterDefaultsTableName: true, meterSourcesTableId: true, meterSourcesTableName: true, metersTableId: true, metersTableName: true, planSubscriptionsTableId: true, planSubscriptionsTableName: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, publicSchemaName: true, recordUsageFunction: true, rollupUsageSummaryFunction: true, schemaId: true, sweepExpiredSubscriptionsFunction: true } }).execute(); +const items = await db.billingModule.findMany({ select: { apiName: true, balancesTableId: true, balancesTableName: true, databaseId: true, defaultCapabilities: true, defaultMeterCatalog: true, id: true, ledgerTableId: true, ledgerTableName: true, meterCreditsTableId: true, meterCreditsTableName: true, meterDefaultsTableId: true, meterDefaultsTableName: true, meterSourcesTableId: true, meterSourcesTableName: true, metersTableId: true, metersTableName: true, planSubscriptionsTableId: true, planSubscriptionsTableName: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, publicSchemaName: true, recordUsageFunction: true, rollupUsageSummaryFunction: true, schemaId: true, sweepExpiredSubscriptionsFunction: true } }).execute(); // Get one by id -const item = await db.billingModule.findOne({ id: '', select: { apiName: true, balancesTableId: true, balancesTableName: true, databaseId: true, defaultMeterCatalog: true, defaultPermissions: true, id: true, ledgerTableId: true, ledgerTableName: true, meterCreditsTableId: true, meterCreditsTableName: true, meterDefaultsTableId: true, meterDefaultsTableName: true, meterSourcesTableId: true, meterSourcesTableName: true, metersTableId: true, metersTableName: true, planSubscriptionsTableId: true, planSubscriptionsTableName: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, publicSchemaName: true, recordUsageFunction: true, rollupUsageSummaryFunction: true, schemaId: true, sweepExpiredSubscriptionsFunction: true } }).execute(); +const item = await db.billingModule.findOne({ id: '', select: { apiName: true, balancesTableId: true, balancesTableName: true, databaseId: true, defaultCapabilities: true, defaultMeterCatalog: true, id: true, ledgerTableId: true, ledgerTableName: true, meterCreditsTableId: true, meterCreditsTableName: true, meterDefaultsTableId: true, meterDefaultsTableName: true, meterSourcesTableId: true, meterSourcesTableName: true, metersTableId: true, metersTableName: true, planSubscriptionsTableId: true, planSubscriptionsTableName: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, publicSchemaName: true, recordUsageFunction: true, rollupUsageSummaryFunction: true, schemaId: true, sweepExpiredSubscriptionsFunction: true } }).execute(); // Create -const created = await db.billingModule.create({ data: { apiName: '', balancesTableId: '', balancesTableName: '', databaseId: '', defaultMeterCatalog: '', defaultPermissions: '', ledgerTableId: '', ledgerTableName: '', meterCreditsTableId: '', meterCreditsTableName: '', meterDefaultsTableId: '', meterDefaultsTableName: '', meterSourcesTableId: '', meterSourcesTableName: '', metersTableId: '', metersTableName: '', planSubscriptionsTableId: '', planSubscriptionsTableName: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', publicSchemaName: '', recordUsageFunction: '', rollupUsageSummaryFunction: '', schemaId: '', sweepExpiredSubscriptionsFunction: '' }, select: { id: true } }).execute(); +const created = await db.billingModule.create({ data: { apiName: '', balancesTableId: '', balancesTableName: '', databaseId: '', defaultCapabilities: '', defaultMeterCatalog: '', ledgerTableId: '', ledgerTableName: '', meterCreditsTableId: '', meterCreditsTableName: '', meterDefaultsTableId: '', meterDefaultsTableName: '', meterSourcesTableId: '', meterSourcesTableName: '', metersTableId: '', metersTableName: '', planSubscriptionsTableId: '', planSubscriptionsTableName: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', publicSchemaName: '', recordUsageFunction: '', rollupUsageSummaryFunction: '', schemaId: '', sweepExpiredSubscriptionsFunction: '' }, select: { id: true } }).execute(); // Update const updated = await db.billingModule.update({ where: { id: '' }, data: { apiName: '' }, select: { id: true } }).execute(); @@ -329,16 +336,22 @@ CRUD operations for BillingProviderModule records. | `apiName` | String | Yes | | `billingCustomersTableId` | UUID | Yes | | `billingCustomersTableName` | String | Yes | +| `billingInvoicesTableId` | UUID | Yes | +| `billingInvoicesTableName` | String | Yes | | `billingPricesTableId` | UUID | Yes | | `billingPricesTableName` | String | Yes | | `billingProductsTableId` | UUID | Yes | | `billingProductsTableName` | String | Yes | +| `billingRefundsTableId` | UUID | Yes | +| `billingRefundsTableName` | String | Yes | | `billingSubscriptionsTableId` | UUID | Yes | | `billingSubscriptionsTableName` | String | Yes | | `billingWebhookEventsTableId` | UUID | Yes | | `billingWebhookEventsTableName` | String | Yes | | `databaseId` | UUID | Yes | | `id` | UUID | No | +| `listPendingUsageSyncFunction` | String | Yes | +| `markUsageSyncedFunction` | String | Yes | | `prefix` | String | Yes | | `pricesTableId` | UUID | Yes | | `privateApiName` | String | Yes | @@ -346,20 +359,22 @@ CRUD operations for BillingProviderModule records. | `processBillingEventFunction` | String | Yes | | `productsTableId` | UUID | Yes | | `provider` | String | Yes | +| `recordRefundFunction` | String | Yes | | `schemaId` | UUID | Yes | | `subscriptionsTableId` | UUID | Yes | +| `upsertInvoiceFunction` | String | Yes | **Operations:** ```typescript // List all billingProviderModule records -const items = await db.billingProviderModule.findMany({ select: { apiName: true, billingCustomersTableId: true, billingCustomersTableName: true, billingPricesTableId: true, billingPricesTableName: true, billingProductsTableId: true, billingProductsTableName: true, billingSubscriptionsTableId: true, billingSubscriptionsTableName: true, billingWebhookEventsTableId: true, billingWebhookEventsTableName: true, databaseId: true, id: true, prefix: true, pricesTableId: true, privateApiName: true, privateSchemaId: true, processBillingEventFunction: true, productsTableId: true, provider: true, schemaId: true, subscriptionsTableId: true } }).execute(); +const items = await db.billingProviderModule.findMany({ select: { apiName: true, billingCustomersTableId: true, billingCustomersTableName: true, billingInvoicesTableId: true, billingInvoicesTableName: true, billingPricesTableId: true, billingPricesTableName: true, billingProductsTableId: true, billingProductsTableName: true, billingRefundsTableId: true, billingRefundsTableName: true, billingSubscriptionsTableId: true, billingSubscriptionsTableName: true, billingWebhookEventsTableId: true, billingWebhookEventsTableName: true, databaseId: true, id: true, listPendingUsageSyncFunction: true, markUsageSyncedFunction: true, prefix: true, pricesTableId: true, privateApiName: true, privateSchemaId: true, processBillingEventFunction: true, productsTableId: true, provider: true, recordRefundFunction: true, schemaId: true, subscriptionsTableId: true, upsertInvoiceFunction: true } }).execute(); // Get one by id -const item = await db.billingProviderModule.findOne({ id: '', select: { apiName: true, billingCustomersTableId: true, billingCustomersTableName: true, billingPricesTableId: true, billingPricesTableName: true, billingProductsTableId: true, billingProductsTableName: true, billingSubscriptionsTableId: true, billingSubscriptionsTableName: true, billingWebhookEventsTableId: true, billingWebhookEventsTableName: true, databaseId: true, id: true, prefix: true, pricesTableId: true, privateApiName: true, privateSchemaId: true, processBillingEventFunction: true, productsTableId: true, provider: true, schemaId: true, subscriptionsTableId: true } }).execute(); +const item = await db.billingProviderModule.findOne({ id: '', select: { apiName: true, billingCustomersTableId: true, billingCustomersTableName: true, billingInvoicesTableId: true, billingInvoicesTableName: true, billingPricesTableId: true, billingPricesTableName: true, billingProductsTableId: true, billingProductsTableName: true, billingRefundsTableId: true, billingRefundsTableName: true, billingSubscriptionsTableId: true, billingSubscriptionsTableName: true, billingWebhookEventsTableId: true, billingWebhookEventsTableName: true, databaseId: true, id: true, listPendingUsageSyncFunction: true, markUsageSyncedFunction: true, prefix: true, pricesTableId: true, privateApiName: true, privateSchemaId: true, processBillingEventFunction: true, productsTableId: true, provider: true, recordRefundFunction: true, schemaId: true, subscriptionsTableId: true, upsertInvoiceFunction: true } }).execute(); // Create -const created = await db.billingProviderModule.create({ data: { apiName: '', billingCustomersTableId: '', billingCustomersTableName: '', billingPricesTableId: '', billingPricesTableName: '', billingProductsTableId: '', billingProductsTableName: '', billingSubscriptionsTableId: '', billingSubscriptionsTableName: '', billingWebhookEventsTableId: '', billingWebhookEventsTableName: '', databaseId: '', prefix: '', pricesTableId: '', privateApiName: '', privateSchemaId: '', processBillingEventFunction: '', productsTableId: '', provider: '', schemaId: '', subscriptionsTableId: '' }, select: { id: true } }).execute(); +const created = await db.billingProviderModule.create({ data: { apiName: '', billingCustomersTableId: '', billingCustomersTableName: '', billingInvoicesTableId: '', billingInvoicesTableName: '', billingPricesTableId: '', billingPricesTableName: '', billingProductsTableId: '', billingProductsTableName: '', billingRefundsTableId: '', billingRefundsTableName: '', billingSubscriptionsTableId: '', billingSubscriptionsTableName: '', billingWebhookEventsTableId: '', billingWebhookEventsTableName: '', databaseId: '', listPendingUsageSyncFunction: '', markUsageSyncedFunction: '', prefix: '', pricesTableId: '', privateApiName: '', privateSchemaId: '', processBillingEventFunction: '', productsTableId: '', provider: '', recordRefundFunction: '', schemaId: '', subscriptionsTableId: '', upsertInvoiceFunction: '' }, select: { id: true } }).execute(); // Update const updated = await db.billingProviderModule.update({ where: { id: '' }, data: { apiName: '' }, select: { id: true } }).execute(); @@ -495,6 +510,56 @@ const updated = await db.blueprintTemplate.update({ where: { id: '' }, dat const deleted = await db.blueprintTemplate.delete({ where: { id: '' } }).execute(); ``` +### `db.capabilitiesModule` + +CRUD operations for CapabilitiesModule records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `actorTableId` | UUID | Yes | +| `apiName` | String | Yes | +| `bitlen` | Int | Yes | +| `databaseId` | UUID | Yes | +| `defaultTableId` | UUID | Yes | +| `defaultTableName` | String | Yes | +| `entityField` | String | Yes | +| `entityTableId` | UUID | Yes | +| `getByMask` | String | Yes | +| `getMask` | String | Yes | +| `getMaskByName` | String | Yes | +| `getPaddedMask` | String | Yes | +| `id` | UUID | No | +| `prefix` | String | Yes | +| `privateApiName` | String | Yes | +| `privateSchemaId` | UUID | Yes | +| `privateSchemaName` | String | Yes | +| `publicSchemaName` | String | Yes | +| `schemaId` | UUID | Yes | +| `scope` | String | Yes | +| `tableId` | UUID | Yes | +| `tableName` | String | Yes | + +**Operations:** + +```typescript +// List all capabilitiesModule records +const items = await db.capabilitiesModule.findMany({ select: { actorTableId: true, apiName: true, bitlen: true, databaseId: true, defaultTableId: true, defaultTableName: true, entityField: true, entityTableId: true, getByMask: true, getMask: true, getMaskByName: true, getPaddedMask: true, id: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, publicSchemaName: true, schemaId: true, scope: true, tableId: true, tableName: true } }).execute(); + +// Get one by id +const item = await db.capabilitiesModule.findOne({ id: '', select: { actorTableId: true, apiName: true, bitlen: true, databaseId: true, defaultTableId: true, defaultTableName: true, entityField: true, entityTableId: true, getByMask: true, getMask: true, getMaskByName: true, getPaddedMask: true, id: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, publicSchemaName: true, schemaId: true, scope: true, tableId: true, tableName: true } }).execute(); + +// Create +const created = await db.capabilitiesModule.create({ data: { actorTableId: '', apiName: '', bitlen: '', databaseId: '', defaultTableId: '', defaultTableName: '', entityField: '', entityTableId: '', getByMask: '', getMask: '', getMaskByName: '', getPaddedMask: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', publicSchemaName: '', schemaId: '', scope: '', tableId: '', tableName: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.capabilitiesModule.update({ where: { id: '' }, data: { actorTableId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.capabilitiesModule.delete({ where: { id: '' } }).execute(); +``` + ### `db.catalogModule` CRUD operations for CatalogModule records. @@ -508,10 +573,12 @@ CRUD operations for CatalogModule records. | `apisTableName` | String | Yes | | `appsTableId` | UUID | Yes | | `appsTableName` | String | Yes | +| `bindingsTableId` | UUID | Yes | +| `bindingsTableName` | String | Yes | | `bucketsTableId` | UUID | Yes | | `bucketsTableName` | String | Yes | | `databaseId` | UUID | Yes | -| `defaultPermissions` | String | Yes | +| `defaultCapabilities` | String | Yes | | `domainsTableId` | UUID | Yes | | `domainsTableName` | String | Yes | | `entityTableId` | UUID | Yes | @@ -547,13 +614,13 @@ CRUD operations for CatalogModule records. ```typescript // List all catalogModule records -const items = await db.catalogModule.findMany({ select: { apiName: true, apisTableId: true, apisTableName: true, appsTableId: true, appsTableName: true, bucketsTableId: true, bucketsTableName: true, databaseId: true, defaultPermissions: true, domainsTableId: true, domainsTableName: true, entityTableId: true, functionsTableId: true, functionsTableName: true, id: true, namespacesTableId: true, namespacesTableName: true, policies: true, privateApiName: true, provisions: true, publicSchemaName: true, resourceDefinitionsTableId: true, resourceDefinitionsTableName: true, resourceInstallationsTableId: true, resourceInstallationsTableName: true, resourcesTableId: true, resourcesTableName: true, schemaId: true, scope: true, sitesAppLinksTableId: true, sitesAppLinksTableName: true, sitesDeepLinksTableId: true, sitesDeepLinksTableName: true, sitesErrorPagesTableId: true, sitesErrorPagesTableName: true, sitesTableId: true, sitesTableName: true, sitesWebConfigTableId: true, sitesWebConfigTableName: true } }).execute(); +const items = await db.catalogModule.findMany({ select: { apiName: true, apisTableId: true, apisTableName: true, appsTableId: true, appsTableName: true, bindingsTableId: true, bindingsTableName: true, bucketsTableId: true, bucketsTableName: true, databaseId: true, defaultCapabilities: true, domainsTableId: true, domainsTableName: true, entityTableId: true, functionsTableId: true, functionsTableName: true, id: true, namespacesTableId: true, namespacesTableName: true, policies: true, privateApiName: true, provisions: true, publicSchemaName: true, resourceDefinitionsTableId: true, resourceDefinitionsTableName: true, resourceInstallationsTableId: true, resourceInstallationsTableName: true, resourcesTableId: true, resourcesTableName: true, schemaId: true, scope: true, sitesAppLinksTableId: true, sitesAppLinksTableName: true, sitesDeepLinksTableId: true, sitesDeepLinksTableName: true, sitesErrorPagesTableId: true, sitesErrorPagesTableName: true, sitesTableId: true, sitesTableName: true, sitesWebConfigTableId: true, sitesWebConfigTableName: true } }).execute(); // Get one by id -const item = await db.catalogModule.findOne({ id: '', select: { apiName: true, apisTableId: true, apisTableName: true, appsTableId: true, appsTableName: true, bucketsTableId: true, bucketsTableName: true, databaseId: true, defaultPermissions: true, domainsTableId: true, domainsTableName: true, entityTableId: true, functionsTableId: true, functionsTableName: true, id: true, namespacesTableId: true, namespacesTableName: true, policies: true, privateApiName: true, provisions: true, publicSchemaName: true, resourceDefinitionsTableId: true, resourceDefinitionsTableName: true, resourceInstallationsTableId: true, resourceInstallationsTableName: true, resourcesTableId: true, resourcesTableName: true, schemaId: true, scope: true, sitesAppLinksTableId: true, sitesAppLinksTableName: true, sitesDeepLinksTableId: true, sitesDeepLinksTableName: true, sitesErrorPagesTableId: true, sitesErrorPagesTableName: true, sitesTableId: true, sitesTableName: true, sitesWebConfigTableId: true, sitesWebConfigTableName: true } }).execute(); +const item = await db.catalogModule.findOne({ id: '', select: { apiName: true, apisTableId: true, apisTableName: true, appsTableId: true, appsTableName: true, bindingsTableId: true, bindingsTableName: true, bucketsTableId: true, bucketsTableName: true, databaseId: true, defaultCapabilities: true, domainsTableId: true, domainsTableName: true, entityTableId: true, functionsTableId: true, functionsTableName: true, id: true, namespacesTableId: true, namespacesTableName: true, policies: true, privateApiName: true, provisions: true, publicSchemaName: true, resourceDefinitionsTableId: true, resourceDefinitionsTableName: true, resourceInstallationsTableId: true, resourceInstallationsTableName: true, resourcesTableId: true, resourcesTableName: true, schemaId: true, scope: true, sitesAppLinksTableId: true, sitesAppLinksTableName: true, sitesDeepLinksTableId: true, sitesDeepLinksTableName: true, sitesErrorPagesTableId: true, sitesErrorPagesTableName: true, sitesTableId: true, sitesTableName: true, sitesWebConfigTableId: true, sitesWebConfigTableName: true } }).execute(); // Create -const created = await db.catalogModule.create({ data: { apiName: '', apisTableId: '', apisTableName: '', appsTableId: '', appsTableName: '', bucketsTableId: '', bucketsTableName: '', databaseId: '', defaultPermissions: '', domainsTableId: '', domainsTableName: '', entityTableId: '', functionsTableId: '', functionsTableName: '', namespacesTableId: '', namespacesTableName: '', policies: '', privateApiName: '', provisions: '', publicSchemaName: '', resourceDefinitionsTableId: '', resourceDefinitionsTableName: '', resourceInstallationsTableId: '', resourceInstallationsTableName: '', resourcesTableId: '', resourcesTableName: '', schemaId: '', scope: '', sitesAppLinksTableId: '', sitesAppLinksTableName: '', sitesDeepLinksTableId: '', sitesDeepLinksTableName: '', sitesErrorPagesTableId: '', sitesErrorPagesTableName: '', sitesTableId: '', sitesTableName: '', sitesWebConfigTableId: '', sitesWebConfigTableName: '' }, select: { id: true } }).execute(); +const created = await db.catalogModule.create({ data: { apiName: '', apisTableId: '', apisTableName: '', appsTableId: '', appsTableName: '', bindingsTableId: '', bindingsTableName: '', bucketsTableId: '', bucketsTableName: '', databaseId: '', defaultCapabilities: '', domainsTableId: '', domainsTableName: '', entityTableId: '', functionsTableId: '', functionsTableName: '', namespacesTableId: '', namespacesTableName: '', policies: '', privateApiName: '', provisions: '', publicSchemaName: '', resourceDefinitionsTableId: '', resourceDefinitionsTableName: '', resourceInstallationsTableId: '', resourceInstallationsTableName: '', resourcesTableId: '', resourcesTableName: '', schemaId: '', scope: '', sitesAppLinksTableId: '', sitesAppLinksTableName: '', sitesDeepLinksTableId: '', sitesDeepLinksTableName: '', sitesErrorPagesTableId: '', sitesErrorPagesTableName: '', sitesTableId: '', sitesTableName: '', sitesWebConfigTableId: '', sitesWebConfigTableName: '' }, select: { id: true } }).execute(); // Update const updated = await db.catalogModule.update({ where: { id: '' }, data: { apiName: '' }, select: { id: true } }).execute(); @@ -683,6 +750,51 @@ const updated = await db.connectedAccountsModule.update({ where: { id: '' const deleted = await db.connectedAccountsModule.delete({ where: { id: '' } }).execute(); ``` +### `db.contentPresetModule` + +CRUD operations for ContentPresetModule records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `apiName` | String | Yes | +| `contentPresetsTableId` | UUID | Yes | +| `createdAt` | Datetime | No | +| `databaseId` | UUID | Yes | +| `entityTableId` | UUID | Yes | +| `id` | UUID | No | +| `merkleStoreModuleId` | UUID | Yes | +| `policies` | JSON | Yes | +| `prefix` | String | Yes | +| `privateApiName` | String | Yes | +| `privateSchemaId` | UUID | Yes | +| `privateSchemaName` | String | Yes | +| `provisions` | JSON | Yes | +| `publicSchemaId` | UUID | Yes | +| `publicSchemaName` | String | Yes | +| `scope` | String | Yes | +| `storeName` | String | Yes | + +**Operations:** + +```typescript +// List all contentPresetModule records +const items = await db.contentPresetModule.findMany({ select: { apiName: true, contentPresetsTableId: true, createdAt: true, databaseId: true, entityTableId: true, id: true, merkleStoreModuleId: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provisions: true, publicSchemaId: true, publicSchemaName: true, scope: true, storeName: true } }).execute(); + +// Get one by id +const item = await db.contentPresetModule.findOne({ id: '', select: { apiName: true, contentPresetsTableId: true, createdAt: true, databaseId: true, entityTableId: true, id: true, merkleStoreModuleId: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provisions: true, publicSchemaId: true, publicSchemaName: true, scope: true, storeName: true } }).execute(); + +// Create +const created = await db.contentPresetModule.create({ data: { apiName: '', contentPresetsTableId: '', databaseId: '', entityTableId: '', merkleStoreModuleId: '', policies: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', provisions: '', publicSchemaId: '', publicSchemaName: '', scope: '', storeName: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.contentPresetModule.update({ where: { id: '' }, data: { apiName: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.contentPresetModule.delete({ where: { id: '' } }).execute(); +``` + ### `db.cryptoAddressesModule` CRUD operations for CryptoAddressesModule records. @@ -763,6 +875,45 @@ const updated = await db.cryptoAuthModule.update({ where: { id: '' }, data const deleted = await db.cryptoAuthModule.delete({ where: { id: '' } }).execute(); ``` +### `db.dataCapabilitiesField` + +CRUD operations for DataCapabilitiesField records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `capabilitiesModuleId` | UUID | Yes | +| `databaseId` | UUID | Yes | +| `fieldId` | UUID | Yes | +| `fromFieldId` | UUID | Yes | +| `id` | UUID | No | +| `mappingFieldId` | UUID | Yes | +| `mappingKeyFieldId` | UUID | Yes | +| `mappingTableId` | UUID | Yes | +| `mode` | String | Yes | +| `subsetGuard` | Boolean | Yes | +| `tableId` | UUID | Yes | + +**Operations:** + +```typescript +// List all dataCapabilitiesField records +const items = await db.dataCapabilitiesField.findMany({ select: { capabilitiesModuleId: true, databaseId: true, fieldId: true, fromFieldId: true, id: true, mappingFieldId: true, mappingKeyFieldId: true, mappingTableId: true, mode: true, subsetGuard: true, tableId: true } }).execute(); + +// Get one by id +const item = await db.dataCapabilitiesField.findOne({ id: '', select: { capabilitiesModuleId: true, databaseId: true, fieldId: true, fromFieldId: true, id: true, mappingFieldId: true, mappingKeyFieldId: true, mappingTableId: true, mode: true, subsetGuard: true, tableId: true } }).execute(); + +// Create +const created = await db.dataCapabilitiesField.create({ data: { capabilitiesModuleId: '', databaseId: '', fieldId: '', fromFieldId: '', mappingFieldId: '', mappingKeyFieldId: '', mappingTableId: '', mode: '', subsetGuard: '', tableId: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.dataCapabilitiesField.update({ where: { id: '' }, data: { capabilitiesModuleId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.dataCapabilitiesField.delete({ where: { id: '' } }).execute(); +``` + ### `db.databaseProvisionModule` CRUD operations for DatabaseProvisionModule records. @@ -822,7 +973,7 @@ CRUD operations for DatabaseSettingsModule records. | `databaseId` | UUID | Yes | | `databaseSettingsTableId` | UUID | Yes | | `databaseSettingsTableName` | String | Yes | -| `defaultPermissions` | String | Yes | +| `defaultCapabilities` | String | Yes | | `entityField` | String | Yes | | `entityTableId` | UUID | Yes | | `id` | UUID | No | @@ -844,13 +995,13 @@ CRUD operations for DatabaseSettingsModule records. ```typescript // List all databaseSettingsModule records -const items = await db.databaseSettingsModule.findMany({ select: { apiName: true, databaseId: true, databaseSettingsTableId: true, databaseSettingsTableName: true, defaultPermissions: true, entityField: true, entityTableId: true, id: true, policies: true, prefix: true, privateApiName: true, provisions: true, pubkeySettingsTableId: true, pubkeySettingsTableName: true, publicSchemaName: true, rlsSettingsTableId: true, rlsSettingsTableName: true, schemaId: true, scope: true, webauthnSettingsTableId: true, webauthnSettingsTableName: true } }).execute(); +const items = await db.databaseSettingsModule.findMany({ select: { apiName: true, databaseId: true, databaseSettingsTableId: true, databaseSettingsTableName: true, defaultCapabilities: true, entityField: true, entityTableId: true, id: true, policies: true, prefix: true, privateApiName: true, provisions: true, pubkeySettingsTableId: true, pubkeySettingsTableName: true, publicSchemaName: true, rlsSettingsTableId: true, rlsSettingsTableName: true, schemaId: true, scope: true, webauthnSettingsTableId: true, webauthnSettingsTableName: true } }).execute(); // Get one by id -const item = await db.databaseSettingsModule.findOne({ id: '', select: { apiName: true, databaseId: true, databaseSettingsTableId: true, databaseSettingsTableName: true, defaultPermissions: true, entityField: true, entityTableId: true, id: true, policies: true, prefix: true, privateApiName: true, provisions: true, pubkeySettingsTableId: true, pubkeySettingsTableName: true, publicSchemaName: true, rlsSettingsTableId: true, rlsSettingsTableName: true, schemaId: true, scope: true, webauthnSettingsTableId: true, webauthnSettingsTableName: true } }).execute(); +const item = await db.databaseSettingsModule.findOne({ id: '', select: { apiName: true, databaseId: true, databaseSettingsTableId: true, databaseSettingsTableName: true, defaultCapabilities: true, entityField: true, entityTableId: true, id: true, policies: true, prefix: true, privateApiName: true, provisions: true, pubkeySettingsTableId: true, pubkeySettingsTableName: true, publicSchemaName: true, rlsSettingsTableId: true, rlsSettingsTableName: true, schemaId: true, scope: true, webauthnSettingsTableId: true, webauthnSettingsTableName: true } }).execute(); // Create -const created = await db.databaseSettingsModule.create({ data: { apiName: '', databaseId: '', databaseSettingsTableId: '', databaseSettingsTableName: '', defaultPermissions: '', entityField: '', entityTableId: '', policies: '', prefix: '', privateApiName: '', provisions: '', pubkeySettingsTableId: '', pubkeySettingsTableName: '', publicSchemaName: '', rlsSettingsTableId: '', rlsSettingsTableName: '', schemaId: '', scope: '', webauthnSettingsTableId: '', webauthnSettingsTableName: '' }, select: { id: true } }).execute(); +const created = await db.databaseSettingsModule.create({ data: { apiName: '', databaseId: '', databaseSettingsTableId: '', databaseSettingsTableName: '', defaultCapabilities: '', entityField: '', entityTableId: '', policies: '', prefix: '', privateApiName: '', provisions: '', pubkeySettingsTableId: '', pubkeySettingsTableName: '', publicSchemaName: '', rlsSettingsTableId: '', rlsSettingsTableName: '', schemaId: '', scope: '', webauthnSettingsTableId: '', webauthnSettingsTableName: '' }, select: { id: true } }).execute(); // Update const updated = await db.databaseSettingsModule.update({ where: { id: '' }, data: { apiName: '' }, select: { id: true } }).execute(); @@ -995,7 +1146,7 @@ CRUD operations for DbUsageModule records. | `collectDbQueryStatsFunction` | String | Yes | | `collectDbTableStatsFunction` | String | Yes | | `databaseId` | UUID | Yes | -| `defaultPermissions` | String | Yes | +| `defaultCapabilities` | String | Yes | | `entityField` | String | Yes | | `id` | UUID | No | | `interval` | String | Yes | @@ -1023,13 +1174,13 @@ CRUD operations for DbUsageModule records. ```typescript // List all dbUsageModule records -const items = await db.dbUsageModule.findMany({ select: { apiName: true, collectDbQueryStatsFunction: true, collectDbTableStatsFunction: true, databaseId: true, defaultPermissions: true, entityField: true, id: true, interval: true, prefix: true, premake: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, publicSchemaName: true, queryStatsLogTableId: true, queryStatsLogTableName: true, queryStatsSummaryTableId: true, queryStatsSummaryTableName: true, retention: true, rollupDbQueryStatsUsageSummaryFunction: true, rollupDbTableStatsUsageSummaryFunction: true, schemaId: true, scope: true, tableStatsLogTableId: true, tableStatsLogTableName: true, tableStatsSummaryTableId: true, tableStatsSummaryTableName: true } }).execute(); +const items = await db.dbUsageModule.findMany({ select: { apiName: true, collectDbQueryStatsFunction: true, collectDbTableStatsFunction: true, databaseId: true, defaultCapabilities: true, entityField: true, id: true, interval: true, prefix: true, premake: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, publicSchemaName: true, queryStatsLogTableId: true, queryStatsLogTableName: true, queryStatsSummaryTableId: true, queryStatsSummaryTableName: true, retention: true, rollupDbQueryStatsUsageSummaryFunction: true, rollupDbTableStatsUsageSummaryFunction: true, schemaId: true, scope: true, tableStatsLogTableId: true, tableStatsLogTableName: true, tableStatsSummaryTableId: true, tableStatsSummaryTableName: true } }).execute(); // Get one by id -const item = await db.dbUsageModule.findOne({ id: '', select: { apiName: true, collectDbQueryStatsFunction: true, collectDbTableStatsFunction: true, databaseId: true, defaultPermissions: true, entityField: true, id: true, interval: true, prefix: true, premake: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, publicSchemaName: true, queryStatsLogTableId: true, queryStatsLogTableName: true, queryStatsSummaryTableId: true, queryStatsSummaryTableName: true, retention: true, rollupDbQueryStatsUsageSummaryFunction: true, rollupDbTableStatsUsageSummaryFunction: true, schemaId: true, scope: true, tableStatsLogTableId: true, tableStatsLogTableName: true, tableStatsSummaryTableId: true, tableStatsSummaryTableName: true } }).execute(); +const item = await db.dbUsageModule.findOne({ id: '', select: { apiName: true, collectDbQueryStatsFunction: true, collectDbTableStatsFunction: true, databaseId: true, defaultCapabilities: true, entityField: true, id: true, interval: true, prefix: true, premake: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, publicSchemaName: true, queryStatsLogTableId: true, queryStatsLogTableName: true, queryStatsSummaryTableId: true, queryStatsSummaryTableName: true, retention: true, rollupDbQueryStatsUsageSummaryFunction: true, rollupDbTableStatsUsageSummaryFunction: true, schemaId: true, scope: true, tableStatsLogTableId: true, tableStatsLogTableName: true, tableStatsSummaryTableId: true, tableStatsSummaryTableName: true } }).execute(); // Create -const created = await db.dbUsageModule.create({ data: { apiName: '', collectDbQueryStatsFunction: '', collectDbTableStatsFunction: '', databaseId: '', defaultPermissions: '', entityField: '', interval: '', prefix: '', premake: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', publicSchemaName: '', queryStatsLogTableId: '', queryStatsLogTableName: '', queryStatsSummaryTableId: '', queryStatsSummaryTableName: '', retention: '', rollupDbQueryStatsUsageSummaryFunction: '', rollupDbTableStatsUsageSummaryFunction: '', schemaId: '', scope: '', tableStatsLogTableId: '', tableStatsLogTableName: '', tableStatsSummaryTableId: '', tableStatsSummaryTableName: '' }, select: { id: true } }).execute(); +const created = await db.dbUsageModule.create({ data: { apiName: '', collectDbQueryStatsFunction: '', collectDbTableStatsFunction: '', databaseId: '', defaultCapabilities: '', entityField: '', interval: '', prefix: '', premake: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', publicSchemaName: '', queryStatsLogTableId: '', queryStatsLogTableName: '', queryStatsSummaryTableId: '', queryStatsSummaryTableName: '', retention: '', rollupDbQueryStatsUsageSummaryFunction: '', rollupDbTableStatsUsageSummaryFunction: '', schemaId: '', scope: '', tableStatsLogTableId: '', tableStatsLogTableName: '', tableStatsSummaryTableId: '', tableStatsSummaryTableName: '' }, select: { id: true } }).execute(); // Update const updated = await db.dbUsageModule.update({ where: { id: '' }, data: { apiName: '' }, select: { id: true } }).execute(); @@ -1154,7 +1305,7 @@ CRUD operations for DomainModule records. | `apiName` | String | Yes | | `catalogModuleId` | UUID | Yes | | `databaseId` | UUID | Yes | -| `defaultPermissions` | String | Yes | +| `defaultCapabilities` | String | Yes | | `domainEventsTableId` | UUID | Yes | | `domainEventsTableName` | String | Yes | | `domainVerificationsTableId` | UUID | Yes | @@ -1180,13 +1331,13 @@ CRUD operations for DomainModule records. ```typescript // List all domainModule records -const items = await db.domainModule.findMany({ select: { apiName: true, catalogModuleId: true, databaseId: true, defaultPermissions: true, domainEventsTableId: true, domainEventsTableName: true, domainVerificationsTableId: true, domainVerificationsTableName: true, domainsTableId: true, domainsTableName: true, entityField: true, entityTableId: true, id: true, managedDomainsTableId: true, managedDomainsTableName: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provisions: true, publicSchemaName: true, schemaId: true, scope: true } }).execute(); +const items = await db.domainModule.findMany({ select: { apiName: true, catalogModuleId: true, databaseId: true, defaultCapabilities: true, domainEventsTableId: true, domainEventsTableName: true, domainVerificationsTableId: true, domainVerificationsTableName: true, domainsTableId: true, domainsTableName: true, entityField: true, entityTableId: true, id: true, managedDomainsTableId: true, managedDomainsTableName: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provisions: true, publicSchemaName: true, schemaId: true, scope: true } }).execute(); // Get one by id -const item = await db.domainModule.findOne({ id: '', select: { apiName: true, catalogModuleId: true, databaseId: true, defaultPermissions: true, domainEventsTableId: true, domainEventsTableName: true, domainVerificationsTableId: true, domainVerificationsTableName: true, domainsTableId: true, domainsTableName: true, entityField: true, entityTableId: true, id: true, managedDomainsTableId: true, managedDomainsTableName: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provisions: true, publicSchemaName: true, schemaId: true, scope: true } }).execute(); +const item = await db.domainModule.findOne({ id: '', select: { apiName: true, catalogModuleId: true, databaseId: true, defaultCapabilities: true, domainEventsTableId: true, domainEventsTableName: true, domainVerificationsTableId: true, domainVerificationsTableName: true, domainsTableId: true, domainsTableName: true, entityField: true, entityTableId: true, id: true, managedDomainsTableId: true, managedDomainsTableName: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provisions: true, publicSchemaName: true, schemaId: true, scope: true } }).execute(); // Create -const created = await db.domainModule.create({ data: { apiName: '', catalogModuleId: '', databaseId: '', defaultPermissions: '', domainEventsTableId: '', domainEventsTableName: '', domainVerificationsTableId: '', domainVerificationsTableName: '', domainsTableId: '', domainsTableName: '', entityField: '', entityTableId: '', managedDomainsTableId: '', managedDomainsTableName: '', policies: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', provisions: '', publicSchemaName: '', schemaId: '', scope: '' }, select: { id: true } }).execute(); +const created = await db.domainModule.create({ data: { apiName: '', catalogModuleId: '', databaseId: '', defaultCapabilities: '', domainEventsTableId: '', domainEventsTableName: '', domainVerificationsTableId: '', domainVerificationsTableName: '', domainsTableId: '', domainsTableName: '', entityField: '', entityTableId: '', managedDomainsTableId: '', managedDomainsTableName: '', policies: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', provisions: '', publicSchemaName: '', schemaId: '', scope: '' }, select: { id: true } }).execute(); // Update const updated = await db.domainModule.update({ where: { id: '' }, data: { apiName: '' }, select: { id: true } }).execute(); @@ -1195,6 +1346,54 @@ const updated = await db.domainModule.update({ where: { id: '' }, data: { const deleted = await db.domainModule.delete({ where: { id: '' } }).execute(); ``` +### `db.emailSenderModule` + +CRUD operations for EmailSenderModule records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `apiName` | String | Yes | +| `databaseId` | UUID | Yes | +| `defaultCapabilities` | String | Yes | +| `emailIdentitiesTableId` | UUID | Yes | +| `emailIdentitiesTableName` | String | Yes | +| `emailProviderAccountsTableId` | UUID | Yes | +| `emailProviderAccountsTableName` | String | Yes | +| `emailSiteIdentitiesTableId` | UUID | Yes | +| `emailSiteIdentitiesTableName` | String | Yes | +| `entityField` | String | Yes | +| `entityTableId` | UUID | Yes | +| `id` | UUID | No | +| `policies` | JSON | Yes | +| `prefix` | String | Yes | +| `privateApiName` | String | Yes | +| `provisions` | JSON | Yes | +| `publicSchemaName` | String | Yes | +| `schemaId` | UUID | Yes | +| `scope` | String | Yes | +| `siteSurfaceModuleId` | UUID | Yes | + +**Operations:** + +```typescript +// List all emailSenderModule records +const items = await db.emailSenderModule.findMany({ select: { apiName: true, databaseId: true, defaultCapabilities: true, emailIdentitiesTableId: true, emailIdentitiesTableName: true, emailProviderAccountsTableId: true, emailProviderAccountsTableName: true, emailSiteIdentitiesTableId: true, emailSiteIdentitiesTableName: true, entityField: true, entityTableId: true, id: true, policies: true, prefix: true, privateApiName: true, provisions: true, publicSchemaName: true, schemaId: true, scope: true, siteSurfaceModuleId: true } }).execute(); + +// Get one by id +const item = await db.emailSenderModule.findOne({ id: '', select: { apiName: true, databaseId: true, defaultCapabilities: true, emailIdentitiesTableId: true, emailIdentitiesTableName: true, emailProviderAccountsTableId: true, emailProviderAccountsTableName: true, emailSiteIdentitiesTableId: true, emailSiteIdentitiesTableName: true, entityField: true, entityTableId: true, id: true, policies: true, prefix: true, privateApiName: true, provisions: true, publicSchemaName: true, schemaId: true, scope: true, siteSurfaceModuleId: true } }).execute(); + +// Create +const created = await db.emailSenderModule.create({ data: { apiName: '', databaseId: '', defaultCapabilities: '', emailIdentitiesTableId: '', emailIdentitiesTableName: '', emailProviderAccountsTableId: '', emailProviderAccountsTableName: '', emailSiteIdentitiesTableId: '', emailSiteIdentitiesTableName: '', entityField: '', entityTableId: '', policies: '', prefix: '', privateApiName: '', provisions: '', publicSchemaName: '', schemaId: '', scope: '', siteSurfaceModuleId: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.emailSenderModule.update({ where: { id: '' }, data: { apiName: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.emailSenderModule.delete({ where: { id: '' } }).execute(); +``` + ### `db.emailsModule` CRUD operations for EmailsModule records. @@ -1312,7 +1511,7 @@ CRUD operations for EventsModule records. | `actorTableId` | UUID | Yes | | `apiName` | String | Yes | | `databaseId` | UUID | Yes | -| `defaultPermissions` | String | Yes | +| `defaultCapabilities` | String | Yes | | `entityField` | String | Yes | | `entityTableId` | UUID | Yes | | `eventAggregatesTableId` | UUID | Yes | @@ -1321,6 +1520,7 @@ CRUD operations for EventsModule records. | `eventTypesTableName` | String | Yes | | `eventsTableId` | UUID | Yes | | `eventsTableName` | String | Yes | +| `expireGrants` | String | Yes | | `grantAchievement` | String | Yes | | `id` | UUID | No | | `interval` | String | Yes | @@ -1337,9 +1537,11 @@ CRUD operations for EventsModule records. | `privateSchemaId` | UUID | Yes | | `privateSchemaName` | String | Yes | | `publicSchemaName` | String | Yes | +| `recomputeCapabilities` | String | Yes | | `recordEvent` | String | Yes | | `removeEvent` | String | Yes | | `retention` | String | Yes | +| `revokeAchievement` | String | Yes | | `schemaId` | UUID | Yes | | `scope` | String | Yes | | `stepsRequired` | String | Yes | @@ -1349,20 +1551,22 @@ CRUD operations for EventsModule records. | `tgEventBool` | String | Yes | | `tgEventToggle` | String | Yes | | `tgEventToggleBool` | String | Yes | +| `tgLevelGrantSync` | String | Yes | | `tgUpdateAggregates` | String | Yes | +| `trustLadder` | JSON | Yes | | `upsertAggregate` | String | Yes | **Operations:** ```typescript // List all eventsModule records -const items = await db.eventsModule.findMany({ select: { achievementRewardsTableId: true, achievementRewardsTableName: true, actorTableId: true, apiName: true, databaseId: true, defaultPermissions: true, entityField: true, entityTableId: true, eventAggregatesTableId: true, eventAggregatesTableName: true, eventTypesTableId: true, eventTypesTableName: true, eventsTableId: true, eventsTableName: true, grantAchievement: true, id: true, interval: true, levelAchieved: true, levelGrantsTableId: true, levelGrantsTableName: true, levelRequirementsTableId: true, levelRequirementsTableName: true, levelsTableId: true, levelsTableName: true, prefix: true, premake: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, publicSchemaName: true, recordEvent: true, removeEvent: true, retention: true, schemaId: true, scope: true, stepsRequired: true, tgAchievementReward: true, tgCheckAchievements: true, tgEvent: true, tgEventBool: true, tgEventToggle: true, tgEventToggleBool: true, tgUpdateAggregates: true, upsertAggregate: true } }).execute(); +const items = await db.eventsModule.findMany({ select: { achievementRewardsTableId: true, achievementRewardsTableName: true, actorTableId: true, apiName: true, databaseId: true, defaultCapabilities: true, entityField: true, entityTableId: true, eventAggregatesTableId: true, eventAggregatesTableName: true, eventTypesTableId: true, eventTypesTableName: true, eventsTableId: true, eventsTableName: true, expireGrants: true, grantAchievement: true, id: true, interval: true, levelAchieved: true, levelGrantsTableId: true, levelGrantsTableName: true, levelRequirementsTableId: true, levelRequirementsTableName: true, levelsTableId: true, levelsTableName: true, prefix: true, premake: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, publicSchemaName: true, recomputeCapabilities: true, recordEvent: true, removeEvent: true, retention: true, revokeAchievement: true, schemaId: true, scope: true, stepsRequired: true, tgAchievementReward: true, tgCheckAchievements: true, tgEvent: true, tgEventBool: true, tgEventToggle: true, tgEventToggleBool: true, tgLevelGrantSync: true, tgUpdateAggregates: true, trustLadder: true, upsertAggregate: true } }).execute(); // Get one by id -const item = await db.eventsModule.findOne({ id: '', select: { achievementRewardsTableId: true, achievementRewardsTableName: true, actorTableId: true, apiName: true, databaseId: true, defaultPermissions: true, entityField: true, entityTableId: true, eventAggregatesTableId: true, eventAggregatesTableName: true, eventTypesTableId: true, eventTypesTableName: true, eventsTableId: true, eventsTableName: true, grantAchievement: true, id: true, interval: true, levelAchieved: true, levelGrantsTableId: true, levelGrantsTableName: true, levelRequirementsTableId: true, levelRequirementsTableName: true, levelsTableId: true, levelsTableName: true, prefix: true, premake: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, publicSchemaName: true, recordEvent: true, removeEvent: true, retention: true, schemaId: true, scope: true, stepsRequired: true, tgAchievementReward: true, tgCheckAchievements: true, tgEvent: true, tgEventBool: true, tgEventToggle: true, tgEventToggleBool: true, tgUpdateAggregates: true, upsertAggregate: true } }).execute(); +const item = await db.eventsModule.findOne({ id: '', select: { achievementRewardsTableId: true, achievementRewardsTableName: true, actorTableId: true, apiName: true, databaseId: true, defaultCapabilities: true, entityField: true, entityTableId: true, eventAggregatesTableId: true, eventAggregatesTableName: true, eventTypesTableId: true, eventTypesTableName: true, eventsTableId: true, eventsTableName: true, expireGrants: true, grantAchievement: true, id: true, interval: true, levelAchieved: true, levelGrantsTableId: true, levelGrantsTableName: true, levelRequirementsTableId: true, levelRequirementsTableName: true, levelsTableId: true, levelsTableName: true, prefix: true, premake: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, publicSchemaName: true, recomputeCapabilities: true, recordEvent: true, removeEvent: true, retention: true, revokeAchievement: true, schemaId: true, scope: true, stepsRequired: true, tgAchievementReward: true, tgCheckAchievements: true, tgEvent: true, tgEventBool: true, tgEventToggle: true, tgEventToggleBool: true, tgLevelGrantSync: true, tgUpdateAggregates: true, trustLadder: true, upsertAggregate: true } }).execute(); // Create -const created = await db.eventsModule.create({ data: { achievementRewardsTableId: '', achievementRewardsTableName: '', actorTableId: '', apiName: '', databaseId: '', defaultPermissions: '', entityField: '', entityTableId: '', eventAggregatesTableId: '', eventAggregatesTableName: '', eventTypesTableId: '', eventTypesTableName: '', eventsTableId: '', eventsTableName: '', grantAchievement: '', interval: '', levelAchieved: '', levelGrantsTableId: '', levelGrantsTableName: '', levelRequirementsTableId: '', levelRequirementsTableName: '', levelsTableId: '', levelsTableName: '', prefix: '', premake: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', publicSchemaName: '', recordEvent: '', removeEvent: '', retention: '', schemaId: '', scope: '', stepsRequired: '', tgAchievementReward: '', tgCheckAchievements: '', tgEvent: '', tgEventBool: '', tgEventToggle: '', tgEventToggleBool: '', tgUpdateAggregates: '', upsertAggregate: '' }, select: { id: true } }).execute(); +const created = await db.eventsModule.create({ data: { achievementRewardsTableId: '', achievementRewardsTableName: '', actorTableId: '', apiName: '', databaseId: '', defaultCapabilities: '', entityField: '', entityTableId: '', eventAggregatesTableId: '', eventAggregatesTableName: '', eventTypesTableId: '', eventTypesTableName: '', eventsTableId: '', eventsTableName: '', expireGrants: '', grantAchievement: '', interval: '', levelAchieved: '', levelGrantsTableId: '', levelGrantsTableName: '', levelRequirementsTableId: '', levelRequirementsTableName: '', levelsTableId: '', levelsTableName: '', prefix: '', premake: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', publicSchemaName: '', recomputeCapabilities: '', recordEvent: '', removeEvent: '', retention: '', revokeAchievement: '', schemaId: '', scope: '', stepsRequired: '', tgAchievementReward: '', tgCheckAchievements: '', tgEvent: '', tgEventBool: '', tgEventToggle: '', tgEventToggleBool: '', tgLevelGrantSync: '', tgUpdateAggregates: '', trustLadder: '', upsertAggregate: '' }, select: { id: true } }).execute(); // Update const updated = await db.eventsModule.update({ where: { id: '' }, data: { achievementRewardsTableId: '' }, select: { id: true } }).execute(); @@ -1371,6 +1575,43 @@ const updated = await db.eventsModule.update({ where: { id: '' }, data: { const deleted = await db.eventsModule.delete({ where: { id: '' } }).execute(); ``` +### `db.fileRefField` + +CRUD operations for FileRefField records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `bucketKey` | String | Yes | +| `bucketTags` | String | Yes | +| `databaseId` | UUID | Yes | +| `enforceFk` | Boolean | Yes | +| `fieldId` | UUID | Yes | +| `id` | UUID | No | +| `isPublic` | Boolean | Yes | +| `storageModuleId` | UUID | Yes | +| `tableId` | UUID | Yes | + +**Operations:** + +```typescript +// List all fileRefField records +const items = await db.fileRefField.findMany({ select: { bucketKey: true, bucketTags: true, databaseId: true, enforceFk: true, fieldId: true, id: true, isPublic: true, storageModuleId: true, tableId: true } }).execute(); + +// Get one by id +const item = await db.fileRefField.findOne({ id: '', select: { bucketKey: true, bucketTags: true, databaseId: true, enforceFk: true, fieldId: true, id: true, isPublic: true, storageModuleId: true, tableId: true } }).execute(); + +// Create +const created = await db.fileRefField.create({ data: { bucketKey: '', bucketTags: '', databaseId: '', enforceFk: '', fieldId: '', isPublic: '', storageModuleId: '', tableId: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.fileRefField.update({ where: { id: '' }, data: { bucketKey: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.fileRefField.delete({ where: { id: '' } }).execute(); +``` + ### `db.functionDeploymentModule` CRUD operations for FunctionDeploymentModule records. @@ -1381,7 +1622,7 @@ CRUD operations for FunctionDeploymentModule records. |-------|------|----------| | `apiName` | String | Yes | | `databaseId` | UUID | Yes | -| `defaultPermissions` | String | Yes | +| `defaultCapabilities` | String | Yes | | `deploymentEventsTableId` | UUID | Yes | | `deploymentEventsTableName` | String | Yes | | `deploymentsTableId` | UUID | Yes | @@ -1405,13 +1646,13 @@ CRUD operations for FunctionDeploymentModule records. ```typescript // List all functionDeploymentModule records -const items = await db.functionDeploymentModule.findMany({ select: { apiName: true, databaseId: true, defaultPermissions: true, deploymentEventsTableId: true, deploymentEventsTableName: true, deploymentsTableId: true, deploymentsTableName: true, entityField: true, entityTableId: true, functionModuleId: true, id: true, namespaceModuleId: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provisions: true, publicSchemaName: true, schemaId: true, scope: true } }).execute(); +const items = await db.functionDeploymentModule.findMany({ select: { apiName: true, databaseId: true, defaultCapabilities: true, deploymentEventsTableId: true, deploymentEventsTableName: true, deploymentsTableId: true, deploymentsTableName: true, entityField: true, entityTableId: true, functionModuleId: true, id: true, namespaceModuleId: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provisions: true, publicSchemaName: true, schemaId: true, scope: true } }).execute(); // Get one by id -const item = await db.functionDeploymentModule.findOne({ id: '', select: { apiName: true, databaseId: true, defaultPermissions: true, deploymentEventsTableId: true, deploymentEventsTableName: true, deploymentsTableId: true, deploymentsTableName: true, entityField: true, entityTableId: true, functionModuleId: true, id: true, namespaceModuleId: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provisions: true, publicSchemaName: true, schemaId: true, scope: true } }).execute(); +const item = await db.functionDeploymentModule.findOne({ id: '', select: { apiName: true, databaseId: true, defaultCapabilities: true, deploymentEventsTableId: true, deploymentEventsTableName: true, deploymentsTableId: true, deploymentsTableName: true, entityField: true, entityTableId: true, functionModuleId: true, id: true, namespaceModuleId: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provisions: true, publicSchemaName: true, schemaId: true, scope: true } }).execute(); // Create -const created = await db.functionDeploymentModule.create({ data: { apiName: '', databaseId: '', defaultPermissions: '', deploymentEventsTableId: '', deploymentEventsTableName: '', deploymentsTableId: '', deploymentsTableName: '', entityField: '', entityTableId: '', functionModuleId: '', namespaceModuleId: '', policies: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', provisions: '', publicSchemaName: '', schemaId: '', scope: '' }, select: { id: true } }).execute(); +const created = await db.functionDeploymentModule.create({ data: { apiName: '', databaseId: '', defaultCapabilities: '', deploymentEventsTableId: '', deploymentEventsTableName: '', deploymentsTableId: '', deploymentsTableName: '', entityField: '', entityTableId: '', functionModuleId: '', namespaceModuleId: '', policies: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', provisions: '', publicSchemaName: '', schemaId: '', scope: '' }, select: { id: true } }).execute(); // Update const updated = await db.functionDeploymentModule.update({ where: { id: '' }, data: { apiName: '' }, select: { id: true } }).execute(); @@ -1432,7 +1673,7 @@ CRUD operations for FunctionInvocationModule records. | `attemptsTableId` | UUID | Yes | | `attemptsTableName` | String | Yes | | `databaseId` | UUID | Yes | -| `defaultPermissions` | String | Yes | +| `defaultCapabilities` | String | Yes | | `entityField` | String | Yes | | `entityTableId` | UUID | Yes | | `executionLogsTableId` | UUID | Yes | @@ -1454,13 +1695,13 @@ CRUD operations for FunctionInvocationModule records. ```typescript // List all functionInvocationModule records -const items = await db.functionInvocationModule.findMany({ select: { apiName: true, attemptsTableId: true, attemptsTableName: true, databaseId: true, defaultPermissions: true, entityField: true, entityTableId: true, executionLogsTableId: true, executionLogsTableName: true, id: true, invocationsTableId: true, invocationsTableName: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provisions: true, publicSchemaName: true, schemaId: true, scope: true } }).execute(); +const items = await db.functionInvocationModule.findMany({ select: { apiName: true, attemptsTableId: true, attemptsTableName: true, databaseId: true, defaultCapabilities: true, entityField: true, entityTableId: true, executionLogsTableId: true, executionLogsTableName: true, id: true, invocationsTableId: true, invocationsTableName: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provisions: true, publicSchemaName: true, schemaId: true, scope: true } }).execute(); // Get one by id -const item = await db.functionInvocationModule.findOne({ id: '', select: { apiName: true, attemptsTableId: true, attemptsTableName: true, databaseId: true, defaultPermissions: true, entityField: true, entityTableId: true, executionLogsTableId: true, executionLogsTableName: true, id: true, invocationsTableId: true, invocationsTableName: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provisions: true, publicSchemaName: true, schemaId: true, scope: true } }).execute(); +const item = await db.functionInvocationModule.findOne({ id: '', select: { apiName: true, attemptsTableId: true, attemptsTableName: true, databaseId: true, defaultCapabilities: true, entityField: true, entityTableId: true, executionLogsTableId: true, executionLogsTableName: true, id: true, invocationsTableId: true, invocationsTableName: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provisions: true, publicSchemaName: true, schemaId: true, scope: true } }).execute(); // Create -const created = await db.functionInvocationModule.create({ data: { apiName: '', attemptsTableId: '', attemptsTableName: '', databaseId: '', defaultPermissions: '', entityField: '', entityTableId: '', executionLogsTableId: '', executionLogsTableName: '', invocationsTableId: '', invocationsTableName: '', policies: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', provisions: '', publicSchemaName: '', schemaId: '', scope: '' }, select: { id: true } }).execute(); +const created = await db.functionInvocationModule.create({ data: { apiName: '', attemptsTableId: '', attemptsTableName: '', databaseId: '', defaultCapabilities: '', entityField: '', entityTableId: '', executionLogsTableId: '', executionLogsTableName: '', invocationsTableId: '', invocationsTableName: '', policies: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', provisions: '', publicSchemaName: '', schemaId: '', scope: '' }, select: { id: true } }).execute(); // Update const updated = await db.functionInvocationModule.update({ where: { id: '' }, data: { apiName: '' }, select: { id: true } }).execute(); @@ -1482,7 +1723,7 @@ CRUD operations for FunctionModule records. | `bindingsTableName` | String | Yes | | `capabilityBindingsTableId` | UUID | Yes | | `databaseId` | UUID | Yes | -| `defaultPermissions` | String | Yes | +| `defaultCapabilities` | String | Yes | | `definitionsTableId` | UUID | Yes | | `definitionsTableName` | String | Yes | | `entityField` | String | Yes | @@ -1504,13 +1745,13 @@ CRUD operations for FunctionModule records. ```typescript // List all functionModule records -const items = await db.functionModule.findMany({ select: { apiName: true, bindingsTableId: true, bindingsTableName: true, capabilityBindingsTableId: true, databaseId: true, defaultPermissions: true, definitionsTableId: true, definitionsTableName: true, entityField: true, entityTableId: true, hasCron: true, id: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provisions: true, publicSchemaName: true, schedulesTableId: true, schemaId: true, scope: true } }).execute(); +const items = await db.functionModule.findMany({ select: { apiName: true, bindingsTableId: true, bindingsTableName: true, capabilityBindingsTableId: true, databaseId: true, defaultCapabilities: true, definitionsTableId: true, definitionsTableName: true, entityField: true, entityTableId: true, hasCron: true, id: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provisions: true, publicSchemaName: true, schedulesTableId: true, schemaId: true, scope: true } }).execute(); // Get one by id -const item = await db.functionModule.findOne({ id: '', select: { apiName: true, bindingsTableId: true, bindingsTableName: true, capabilityBindingsTableId: true, databaseId: true, defaultPermissions: true, definitionsTableId: true, definitionsTableName: true, entityField: true, entityTableId: true, hasCron: true, id: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provisions: true, publicSchemaName: true, schedulesTableId: true, schemaId: true, scope: true } }).execute(); +const item = await db.functionModule.findOne({ id: '', select: { apiName: true, bindingsTableId: true, bindingsTableName: true, capabilityBindingsTableId: true, databaseId: true, defaultCapabilities: true, definitionsTableId: true, definitionsTableName: true, entityField: true, entityTableId: true, hasCron: true, id: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provisions: true, publicSchemaName: true, schedulesTableId: true, schemaId: true, scope: true } }).execute(); // Create -const created = await db.functionModule.create({ data: { apiName: '', bindingsTableId: '', bindingsTableName: '', capabilityBindingsTableId: '', databaseId: '', defaultPermissions: '', definitionsTableId: '', definitionsTableName: '', entityField: '', entityTableId: '', hasCron: '', policies: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', provisions: '', publicSchemaName: '', schedulesTableId: '', schemaId: '', scope: '' }, select: { id: true } }).execute(); +const created = await db.functionModule.create({ data: { apiName: '', bindingsTableId: '', bindingsTableName: '', capabilityBindingsTableId: '', databaseId: '', defaultCapabilities: '', definitionsTableId: '', definitionsTableName: '', entityField: '', entityTableId: '', hasCron: '', policies: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', provisions: '', publicSchemaName: '', schedulesTableId: '', schemaId: '', scope: '' }, select: { id: true } }).execute(); // Update const updated = await db.functionModule.update({ where: { id: '' }, data: { apiName: '' }, select: { id: true } }).execute(); @@ -1530,7 +1771,7 @@ CRUD operations for GraphExecutionModule records. | `apiName` | String | Yes | | `createdAt` | Datetime | No | | `databaseId` | UUID | Yes | -| `defaultPermissions` | String | Yes | +| `defaultCapabilities` | String | Yes | | `entityField` | String | Yes | | `entityTableId` | UUID | Yes | | `executionsTableId` | UUID | Yes | @@ -1555,13 +1796,13 @@ CRUD operations for GraphExecutionModule records. ```typescript // List all graphExecutionModule records -const items = await db.graphExecutionModule.findMany({ select: { apiName: true, createdAt: true, databaseId: true, defaultPermissions: true, entityField: true, entityTableId: true, executionsTableId: true, executionsTableName: true, graphModuleId: true, id: true, nodeStatesTableId: true, nodeStatesTableName: true, outputsTableId: true, outputsTableName: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provisions: true, publicSchemaName: true, schemaId: true, scope: true } }).execute(); +const items = await db.graphExecutionModule.findMany({ select: { apiName: true, createdAt: true, databaseId: true, defaultCapabilities: true, entityField: true, entityTableId: true, executionsTableId: true, executionsTableName: true, graphModuleId: true, id: true, nodeStatesTableId: true, nodeStatesTableName: true, outputsTableId: true, outputsTableName: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provisions: true, publicSchemaName: true, schemaId: true, scope: true } }).execute(); // Get one by id -const item = await db.graphExecutionModule.findOne({ id: '', select: { apiName: true, createdAt: true, databaseId: true, defaultPermissions: true, entityField: true, entityTableId: true, executionsTableId: true, executionsTableName: true, graphModuleId: true, id: true, nodeStatesTableId: true, nodeStatesTableName: true, outputsTableId: true, outputsTableName: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provisions: true, publicSchemaName: true, schemaId: true, scope: true } }).execute(); +const item = await db.graphExecutionModule.findOne({ id: '', select: { apiName: true, createdAt: true, databaseId: true, defaultCapabilities: true, entityField: true, entityTableId: true, executionsTableId: true, executionsTableName: true, graphModuleId: true, id: true, nodeStatesTableId: true, nodeStatesTableName: true, outputsTableId: true, outputsTableName: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provisions: true, publicSchemaName: true, schemaId: true, scope: true } }).execute(); // Create -const created = await db.graphExecutionModule.create({ data: { apiName: '', databaseId: '', defaultPermissions: '', entityField: '', entityTableId: '', executionsTableId: '', executionsTableName: '', graphModuleId: '', nodeStatesTableId: '', nodeStatesTableName: '', outputsTableId: '', outputsTableName: '', policies: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', provisions: '', publicSchemaName: '', schemaId: '', scope: '' }, select: { id: true } }).execute(); +const created = await db.graphExecutionModule.create({ data: { apiName: '', databaseId: '', defaultCapabilities: '', entityField: '', entityTableId: '', executionsTableId: '', executionsTableName: '', graphModuleId: '', nodeStatesTableId: '', nodeStatesTableName: '', outputsTableId: '', outputsTableName: '', policies: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', provisions: '', publicSchemaName: '', schemaId: '', scope: '' }, select: { id: true } }).execute(); // Update const updated = await db.graphExecutionModule.update({ where: { id: '' }, data: { apiName: '' }, select: { id: true } }).execute(); @@ -1581,7 +1822,7 @@ CRUD operations for GraphModule records. | `apiName` | String | Yes | | `createdAt` | Datetime | No | | `databaseId` | UUID | Yes | -| `defaultPermissions` | String | Yes | +| `defaultCapabilities` | String | Yes | | `entityField` | String | Yes | | `entityTableId` | UUID | Yes | | `graphsTableId` | UUID | Yes | @@ -1601,13 +1842,13 @@ CRUD operations for GraphModule records. ```typescript // List all graphModule records -const items = await db.graphModule.findMany({ select: { apiName: true, createdAt: true, databaseId: true, defaultPermissions: true, entityField: true, entityTableId: true, graphsTableId: true, id: true, merkleStoreModuleId: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provisions: true, publicSchemaId: true, publicSchemaName: true, scope: true } }).execute(); +const items = await db.graphModule.findMany({ select: { apiName: true, createdAt: true, databaseId: true, defaultCapabilities: true, entityField: true, entityTableId: true, graphsTableId: true, id: true, merkleStoreModuleId: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provisions: true, publicSchemaId: true, publicSchemaName: true, scope: true } }).execute(); // Get one by id -const item = await db.graphModule.findOne({ id: '', select: { apiName: true, createdAt: true, databaseId: true, defaultPermissions: true, entityField: true, entityTableId: true, graphsTableId: true, id: true, merkleStoreModuleId: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provisions: true, publicSchemaId: true, publicSchemaName: true, scope: true } }).execute(); +const item = await db.graphModule.findOne({ id: '', select: { apiName: true, createdAt: true, databaseId: true, defaultCapabilities: true, entityField: true, entityTableId: true, graphsTableId: true, id: true, merkleStoreModuleId: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provisions: true, publicSchemaId: true, publicSchemaName: true, scope: true } }).execute(); // Create -const created = await db.graphModule.create({ data: { apiName: '', databaseId: '', defaultPermissions: '', entityField: '', entityTableId: '', graphsTableId: '', merkleStoreModuleId: '', policies: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', provisions: '', publicSchemaId: '', publicSchemaName: '', scope: '' }, select: { id: true } }).execute(); +const created = await db.graphModule.create({ data: { apiName: '', databaseId: '', defaultCapabilities: '', entityField: '', entityTableId: '', graphsTableId: '', merkleStoreModuleId: '', policies: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', provisions: '', publicSchemaId: '', publicSchemaName: '', scope: '' }, select: { id: true } }).execute(); // Update const updated = await db.graphModule.update({ where: { id: '' }, data: { apiName: '' }, select: { id: true } }).execute(); @@ -1630,7 +1871,7 @@ CRUD operations for HierarchyModule records. | `chartEdgesTableName` | String | Yes | | `createdAt` | Datetime | No | | `databaseId` | UUID | Yes | -| `defaultPermissions` | String | Yes | +| `defaultCapabilities` | String | Yes | | `entityField` | String | Yes | | `entityTableId` | UUID | Yes | | `getManagersFunction` | String | Yes | @@ -1652,13 +1893,13 @@ CRUD operations for HierarchyModule records. ```typescript // List all hierarchyModule records -const items = await db.hierarchyModule.findMany({ select: { chartEdgeGrantsTableId: true, chartEdgeGrantsTableName: true, chartEdgesTableId: true, chartEdgesTableName: true, createdAt: true, databaseId: true, defaultPermissions: true, entityField: true, entityTableId: true, getManagersFunction: true, getSubordinatesFunction: true, hierarchySprtTableId: true, hierarchySprtTableName: true, id: true, isManagerOfFunction: true, prefix: true, privateSchemaId: true, privateSchemaName: true, rebuildHierarchyFunction: true, schemaId: true, scope: true, sprtTableName: true, usersTableId: true } }).execute(); +const items = await db.hierarchyModule.findMany({ select: { chartEdgeGrantsTableId: true, chartEdgeGrantsTableName: true, chartEdgesTableId: true, chartEdgesTableName: true, createdAt: true, databaseId: true, defaultCapabilities: true, entityField: true, entityTableId: true, getManagersFunction: true, getSubordinatesFunction: true, hierarchySprtTableId: true, hierarchySprtTableName: true, id: true, isManagerOfFunction: true, prefix: true, privateSchemaId: true, privateSchemaName: true, rebuildHierarchyFunction: true, schemaId: true, scope: true, sprtTableName: true, usersTableId: true } }).execute(); // Get one by id -const item = await db.hierarchyModule.findOne({ id: '', select: { chartEdgeGrantsTableId: true, chartEdgeGrantsTableName: true, chartEdgesTableId: true, chartEdgesTableName: true, createdAt: true, databaseId: true, defaultPermissions: true, entityField: true, entityTableId: true, getManagersFunction: true, getSubordinatesFunction: true, hierarchySprtTableId: true, hierarchySprtTableName: true, id: true, isManagerOfFunction: true, prefix: true, privateSchemaId: true, privateSchemaName: true, rebuildHierarchyFunction: true, schemaId: true, scope: true, sprtTableName: true, usersTableId: true } }).execute(); +const item = await db.hierarchyModule.findOne({ id: '', select: { chartEdgeGrantsTableId: true, chartEdgeGrantsTableName: true, chartEdgesTableId: true, chartEdgesTableName: true, createdAt: true, databaseId: true, defaultCapabilities: true, entityField: true, entityTableId: true, getManagersFunction: true, getSubordinatesFunction: true, hierarchySprtTableId: true, hierarchySprtTableName: true, id: true, isManagerOfFunction: true, prefix: true, privateSchemaId: true, privateSchemaName: true, rebuildHierarchyFunction: true, schemaId: true, scope: true, sprtTableName: true, usersTableId: true } }).execute(); // Create -const created = await db.hierarchyModule.create({ data: { chartEdgeGrantsTableId: '', chartEdgeGrantsTableName: '', chartEdgesTableId: '', chartEdgesTableName: '', databaseId: '', defaultPermissions: '', entityField: '', entityTableId: '', getManagersFunction: '', getSubordinatesFunction: '', hierarchySprtTableId: '', hierarchySprtTableName: '', isManagerOfFunction: '', prefix: '', privateSchemaId: '', privateSchemaName: '', rebuildHierarchyFunction: '', schemaId: '', scope: '', sprtTableName: '', usersTableId: '' }, select: { id: true } }).execute(); +const created = await db.hierarchyModule.create({ data: { chartEdgeGrantsTableId: '', chartEdgeGrantsTableName: '', chartEdgesTableId: '', chartEdgesTableName: '', databaseId: '', defaultCapabilities: '', entityField: '', entityTableId: '', getManagersFunction: '', getSubordinatesFunction: '', hierarchySprtTableId: '', hierarchySprtTableName: '', isManagerOfFunction: '', prefix: '', privateSchemaId: '', privateSchemaName: '', rebuildHierarchyFunction: '', schemaId: '', scope: '', sprtTableName: '', usersTableId: '' }, select: { id: true } }).execute(); // Update const updated = await db.hierarchyModule.update({ where: { id: '' }, data: { chartEdgeGrantsTableId: '' }, select: { id: true } }).execute(); @@ -1677,7 +1918,7 @@ CRUD operations for HttpRouteModule records. |-------|------|----------| | `apiName` | String | Yes | | `databaseId` | UUID | Yes | -| `defaultPermissions` | String | Yes | +| `defaultCapabilities` | String | Yes | | `entityField` | String | Yes | | `entityTableId` | UUID | Yes | | `functionModuleId` | UUID | Yes | @@ -1701,13 +1942,13 @@ CRUD operations for HttpRouteModule records. ```typescript // List all httpRouteModule records -const items = await db.httpRouteModule.findMany({ select: { apiName: true, databaseId: true, defaultPermissions: true, entityField: true, entityTableId: true, functionModuleId: true, httpRoutesTableId: true, httpRoutesTableName: true, id: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provisions: true, publicSchemaName: true, resolverFunctionName: true, resourceModuleId: true, schemaId: true, scope: true, storageModuleId: true } }).execute(); +const items = await db.httpRouteModule.findMany({ select: { apiName: true, databaseId: true, defaultCapabilities: true, entityField: true, entityTableId: true, functionModuleId: true, httpRoutesTableId: true, httpRoutesTableName: true, id: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provisions: true, publicSchemaName: true, resolverFunctionName: true, resourceModuleId: true, schemaId: true, scope: true, storageModuleId: true } }).execute(); // Get one by id -const item = await db.httpRouteModule.findOne({ id: '', select: { apiName: true, databaseId: true, defaultPermissions: true, entityField: true, entityTableId: true, functionModuleId: true, httpRoutesTableId: true, httpRoutesTableName: true, id: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provisions: true, publicSchemaName: true, resolverFunctionName: true, resourceModuleId: true, schemaId: true, scope: true, storageModuleId: true } }).execute(); +const item = await db.httpRouteModule.findOne({ id: '', select: { apiName: true, databaseId: true, defaultCapabilities: true, entityField: true, entityTableId: true, functionModuleId: true, httpRoutesTableId: true, httpRoutesTableName: true, id: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provisions: true, publicSchemaName: true, resolverFunctionName: true, resourceModuleId: true, schemaId: true, scope: true, storageModuleId: true } }).execute(); // Create -const created = await db.httpRouteModule.create({ data: { apiName: '', databaseId: '', defaultPermissions: '', entityField: '', entityTableId: '', functionModuleId: '', httpRoutesTableId: '', httpRoutesTableName: '', policies: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', provisions: '', publicSchemaName: '', resolverFunctionName: '', resourceModuleId: '', schemaId: '', scope: '', storageModuleId: '' }, select: { id: true } }).execute(); +const created = await db.httpRouteModule.create({ data: { apiName: '', databaseId: '', defaultCapabilities: '', entityField: '', entityTableId: '', functionModuleId: '', httpRoutesTableId: '', httpRoutesTableName: '', policies: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', provisions: '', publicSchemaName: '', resolverFunctionName: '', resourceModuleId: '', schemaId: '', scope: '', storageModuleId: '' }, select: { id: true } }).execute(); // Update const updated = await db.httpRouteModule.update({ where: { id: '' }, data: { apiName: '' }, select: { id: true } }).execute(); @@ -2092,6 +2333,7 @@ CRUD operations for LimitsModule records. | `limitCreditsTableId` | UUID | Yes | | `limitDecrementFunction` | String | Yes | | `limitDecrementTrigger` | String | Yes | +| `limitDefaults` | JSON | Yes | | `limitIncrementFunction` | String | Yes | | `limitIncrementTrigger` | String | Yes | | `limitUpdateTrigger` | String | Yes | @@ -2112,13 +2354,13 @@ CRUD operations for LimitsModule records. ```typescript // List all limitsModule records -const items = await db.limitsModule.findMany({ select: { actorTableId: true, aggregateTableId: true, apiName: true, capCheckTrigger: true, creditCodeItemsTableId: true, creditCodesTableId: true, creditRedemptionsTableId: true, databaseId: true, defaultTableId: true, defaultTableName: true, entityField: true, entityTableId: true, eventsTableId: true, id: true, limitAggregateCheckSoftFunction: true, limitCapsDefaultsTableId: true, limitCapsTableId: true, limitCheckFunction: true, limitCheckSoftFunction: true, limitCreditsTableId: true, limitDecrementFunction: true, limitDecrementTrigger: true, limitIncrementFunction: true, limitIncrementTrigger: true, limitUpdateTrigger: true, limitWarningStateTableId: true, limitWarningsTableId: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, publicSchemaName: true, resolveCapFunction: true, schemaId: true, scope: true, tableId: true, tableName: true } }).execute(); +const items = await db.limitsModule.findMany({ select: { actorTableId: true, aggregateTableId: true, apiName: true, capCheckTrigger: true, creditCodeItemsTableId: true, creditCodesTableId: true, creditRedemptionsTableId: true, databaseId: true, defaultTableId: true, defaultTableName: true, entityField: true, entityTableId: true, eventsTableId: true, id: true, limitAggregateCheckSoftFunction: true, limitCapsDefaultsTableId: true, limitCapsTableId: true, limitCheckFunction: true, limitCheckSoftFunction: true, limitCreditsTableId: true, limitDecrementFunction: true, limitDecrementTrigger: true, limitDefaults: true, limitIncrementFunction: true, limitIncrementTrigger: true, limitUpdateTrigger: true, limitWarningStateTableId: true, limitWarningsTableId: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, publicSchemaName: true, resolveCapFunction: true, schemaId: true, scope: true, tableId: true, tableName: true } }).execute(); // Get one by id -const item = await db.limitsModule.findOne({ id: '', select: { actorTableId: true, aggregateTableId: true, apiName: true, capCheckTrigger: true, creditCodeItemsTableId: true, creditCodesTableId: true, creditRedemptionsTableId: true, databaseId: true, defaultTableId: true, defaultTableName: true, entityField: true, entityTableId: true, eventsTableId: true, id: true, limitAggregateCheckSoftFunction: true, limitCapsDefaultsTableId: true, limitCapsTableId: true, limitCheckFunction: true, limitCheckSoftFunction: true, limitCreditsTableId: true, limitDecrementFunction: true, limitDecrementTrigger: true, limitIncrementFunction: true, limitIncrementTrigger: true, limitUpdateTrigger: true, limitWarningStateTableId: true, limitWarningsTableId: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, publicSchemaName: true, resolveCapFunction: true, schemaId: true, scope: true, tableId: true, tableName: true } }).execute(); +const item = await db.limitsModule.findOne({ id: '', select: { actorTableId: true, aggregateTableId: true, apiName: true, capCheckTrigger: true, creditCodeItemsTableId: true, creditCodesTableId: true, creditRedemptionsTableId: true, databaseId: true, defaultTableId: true, defaultTableName: true, entityField: true, entityTableId: true, eventsTableId: true, id: true, limitAggregateCheckSoftFunction: true, limitCapsDefaultsTableId: true, limitCapsTableId: true, limitCheckFunction: true, limitCheckSoftFunction: true, limitCreditsTableId: true, limitDecrementFunction: true, limitDecrementTrigger: true, limitDefaults: true, limitIncrementFunction: true, limitIncrementTrigger: true, limitUpdateTrigger: true, limitWarningStateTableId: true, limitWarningsTableId: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, publicSchemaName: true, resolveCapFunction: true, schemaId: true, scope: true, tableId: true, tableName: true } }).execute(); // Create -const created = await db.limitsModule.create({ data: { actorTableId: '', aggregateTableId: '', apiName: '', capCheckTrigger: '', creditCodeItemsTableId: '', creditCodesTableId: '', creditRedemptionsTableId: '', databaseId: '', defaultTableId: '', defaultTableName: '', entityField: '', entityTableId: '', eventsTableId: '', limitAggregateCheckSoftFunction: '', limitCapsDefaultsTableId: '', limitCapsTableId: '', limitCheckFunction: '', limitCheckSoftFunction: '', limitCreditsTableId: '', limitDecrementFunction: '', limitDecrementTrigger: '', limitIncrementFunction: '', limitIncrementTrigger: '', limitUpdateTrigger: '', limitWarningStateTableId: '', limitWarningsTableId: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', publicSchemaName: '', resolveCapFunction: '', schemaId: '', scope: '', tableId: '', tableName: '' }, select: { id: true } }).execute(); +const created = await db.limitsModule.create({ data: { actorTableId: '', aggregateTableId: '', apiName: '', capCheckTrigger: '', creditCodeItemsTableId: '', creditCodesTableId: '', creditRedemptionsTableId: '', databaseId: '', defaultTableId: '', defaultTableName: '', entityField: '', entityTableId: '', eventsTableId: '', limitAggregateCheckSoftFunction: '', limitCapsDefaultsTableId: '', limitCapsTableId: '', limitCheckFunction: '', limitCheckSoftFunction: '', limitCreditsTableId: '', limitDecrementFunction: '', limitDecrementTrigger: '', limitDefaults: '', limitIncrementFunction: '', limitIncrementTrigger: '', limitUpdateTrigger: '', limitWarningStateTableId: '', limitWarningsTableId: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', publicSchemaName: '', resolveCapFunction: '', schemaId: '', scope: '', tableId: '', tableName: '' }, select: { id: true } }).execute(); // Update const updated = await db.limitsModule.update({ where: { id: '' }, data: { actorTableId: '' }, select: { id: true } }).execute(); @@ -2174,9 +2416,12 @@ CRUD operations for MembershipsModule records. | `adminGrantsTableId` | UUID | Yes | | `adminGrantsTableName` | String | Yes | | `apiName` | String | Yes | +| `capabilitiesTableId` | UUID | Yes | +| `capabilityDefaultCapabilitiesTableId` | UUID | Yes | +| `capabilityDefaultGrantsTableId` | UUID | Yes | | `databaseId` | UUID | Yes | +| `defaultCapabilitiesTableId` | UUID | Yes | | `defaultLimitsTableId` | UUID | Yes | -| `defaultPermissionsTableId` | UUID | Yes | | `entityField` | String | Yes | | `entityIdsByMask` | String | Yes | | `entityIdsByPerm` | String | Yes | @@ -2199,9 +2444,6 @@ CRUD operations for MembershipsModule records. | `membershipsTableName` | String | Yes | | `ownerGrantsTableId` | UUID | Yes | | `ownerGrantsTableName` | String | Yes | -| `permissionDefaultGrantsTableId` | UUID | Yes | -| `permissionDefaultPermissionsTableId` | UUID | Yes | -| `permissionsTableId` | UUID | Yes | | `prefix` | String | Yes | | `privateApiName` | String | Yes | | `privateSchemaId` | UUID | Yes | @@ -2215,13 +2457,13 @@ CRUD operations for MembershipsModule records. ```typescript // List all membershipsModule records -const items = await db.membershipsModule.findMany({ select: { actorMaskCheck: true, actorPermCheck: true, actorTableId: true, adminGrantsTableId: true, adminGrantsTableName: true, apiName: true, databaseId: true, defaultLimitsTableId: true, defaultPermissionsTableId: true, entityField: true, entityIdsByMask: true, entityIdsByPerm: true, entityIdsFunction: true, entityTableId: true, entityTableOwnerId: true, getOrgFn: true, grantsTableId: true, grantsTableName: true, id: true, limitsTableId: true, memberProfilesTableId: true, membersTableId: true, membersTableName: true, membershipDefaultsTableId: true, membershipDefaultsTableName: true, membershipSettingsTableId: true, membershipSettingsTableName: true, membershipsTableId: true, membershipsTableName: true, ownerGrantsTableId: true, ownerGrantsTableName: true, permissionDefaultGrantsTableId: true, permissionDefaultPermissionsTableId: true, permissionsTableId: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, publicSchemaName: true, schemaId: true, scope: true, sprtTableId: true } }).execute(); +const items = await db.membershipsModule.findMany({ select: { actorMaskCheck: true, actorPermCheck: true, actorTableId: true, adminGrantsTableId: true, adminGrantsTableName: true, apiName: true, capabilitiesTableId: true, capabilityDefaultCapabilitiesTableId: true, capabilityDefaultGrantsTableId: true, databaseId: true, defaultCapabilitiesTableId: true, defaultLimitsTableId: true, entityField: true, entityIdsByMask: true, entityIdsByPerm: true, entityIdsFunction: true, entityTableId: true, entityTableOwnerId: true, getOrgFn: true, grantsTableId: true, grantsTableName: true, id: true, limitsTableId: true, memberProfilesTableId: true, membersTableId: true, membersTableName: true, membershipDefaultsTableId: true, membershipDefaultsTableName: true, membershipSettingsTableId: true, membershipSettingsTableName: true, membershipsTableId: true, membershipsTableName: true, ownerGrantsTableId: true, ownerGrantsTableName: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, publicSchemaName: true, schemaId: true, scope: true, sprtTableId: true } }).execute(); // Get one by id -const item = await db.membershipsModule.findOne({ id: '', select: { actorMaskCheck: true, actorPermCheck: true, actorTableId: true, adminGrantsTableId: true, adminGrantsTableName: true, apiName: true, databaseId: true, defaultLimitsTableId: true, defaultPermissionsTableId: true, entityField: true, entityIdsByMask: true, entityIdsByPerm: true, entityIdsFunction: true, entityTableId: true, entityTableOwnerId: true, getOrgFn: true, grantsTableId: true, grantsTableName: true, id: true, limitsTableId: true, memberProfilesTableId: true, membersTableId: true, membersTableName: true, membershipDefaultsTableId: true, membershipDefaultsTableName: true, membershipSettingsTableId: true, membershipSettingsTableName: true, membershipsTableId: true, membershipsTableName: true, ownerGrantsTableId: true, ownerGrantsTableName: true, permissionDefaultGrantsTableId: true, permissionDefaultPermissionsTableId: true, permissionsTableId: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, publicSchemaName: true, schemaId: true, scope: true, sprtTableId: true } }).execute(); +const item = await db.membershipsModule.findOne({ id: '', select: { actorMaskCheck: true, actorPermCheck: true, actorTableId: true, adminGrantsTableId: true, adminGrantsTableName: true, apiName: true, capabilitiesTableId: true, capabilityDefaultCapabilitiesTableId: true, capabilityDefaultGrantsTableId: true, databaseId: true, defaultCapabilitiesTableId: true, defaultLimitsTableId: true, entityField: true, entityIdsByMask: true, entityIdsByPerm: true, entityIdsFunction: true, entityTableId: true, entityTableOwnerId: true, getOrgFn: true, grantsTableId: true, grantsTableName: true, id: true, limitsTableId: true, memberProfilesTableId: true, membersTableId: true, membersTableName: true, membershipDefaultsTableId: true, membershipDefaultsTableName: true, membershipSettingsTableId: true, membershipSettingsTableName: true, membershipsTableId: true, membershipsTableName: true, ownerGrantsTableId: true, ownerGrantsTableName: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, publicSchemaName: true, schemaId: true, scope: true, sprtTableId: true } }).execute(); // Create -const created = await db.membershipsModule.create({ data: { actorMaskCheck: '', actorPermCheck: '', actorTableId: '', adminGrantsTableId: '', adminGrantsTableName: '', apiName: '', databaseId: '', defaultLimitsTableId: '', defaultPermissionsTableId: '', entityField: '', entityIdsByMask: '', entityIdsByPerm: '', entityIdsFunction: '', entityTableId: '', entityTableOwnerId: '', getOrgFn: '', grantsTableId: '', grantsTableName: '', limitsTableId: '', memberProfilesTableId: '', membersTableId: '', membersTableName: '', membershipDefaultsTableId: '', membershipDefaultsTableName: '', membershipSettingsTableId: '', membershipSettingsTableName: '', membershipsTableId: '', membershipsTableName: '', ownerGrantsTableId: '', ownerGrantsTableName: '', permissionDefaultGrantsTableId: '', permissionDefaultPermissionsTableId: '', permissionsTableId: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', publicSchemaName: '', schemaId: '', scope: '', sprtTableId: '' }, select: { id: true } }).execute(); +const created = await db.membershipsModule.create({ data: { actorMaskCheck: '', actorPermCheck: '', actorTableId: '', adminGrantsTableId: '', adminGrantsTableName: '', apiName: '', capabilitiesTableId: '', capabilityDefaultCapabilitiesTableId: '', capabilityDefaultGrantsTableId: '', databaseId: '', defaultCapabilitiesTableId: '', defaultLimitsTableId: '', entityField: '', entityIdsByMask: '', entityIdsByPerm: '', entityIdsFunction: '', entityTableId: '', entityTableOwnerId: '', getOrgFn: '', grantsTableId: '', grantsTableName: '', limitsTableId: '', memberProfilesTableId: '', membersTableId: '', membersTableName: '', membershipDefaultsTableId: '', membershipDefaultsTableName: '', membershipSettingsTableId: '', membershipSettingsTableName: '', membershipsTableId: '', membershipsTableName: '', ownerGrantsTableId: '', ownerGrantsTableName: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', publicSchemaName: '', schemaId: '', scope: '', sprtTableId: '' }, select: { id: true } }).execute(); // Update const updated = await db.membershipsModule.update({ where: { id: '' }, data: { actorMaskCheck: '' }, select: { id: true } }).execute(); @@ -2239,6 +2481,7 @@ CRUD operations for MerkleStoreModule records. | Field | Type | Editable | |-------|------|----------| | `apiName` | String | Yes | +| `capabilityKey` | String | Yes | | `commitTableId` | UUID | Yes | | `createdAt` | Datetime | No | | `databaseId` | UUID | Yes | @@ -2246,7 +2489,6 @@ CRUD operations for MerkleStoreModule records. | `functionPrefix` | String | Yes | | `id` | UUID | No | | `objectTableId` | UUID | Yes | -| `permissionKey` | String | Yes | | `prefix` | String | Yes | | `privateApiName` | String | Yes | | `privateSchemaId` | UUID | Yes | @@ -2261,13 +2503,13 @@ CRUD operations for MerkleStoreModule records. ```typescript // List all merkleStoreModule records -const items = await db.merkleStoreModule.findMany({ select: { apiName: true, commitTableId: true, createdAt: true, databaseId: true, entityField: true, functionPrefix: true, id: true, objectTableId: true, permissionKey: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, publicSchemaName: true, refTableId: true, schemaId: true, scope: true, storeTableId: true } }).execute(); +const items = await db.merkleStoreModule.findMany({ select: { apiName: true, capabilityKey: true, commitTableId: true, createdAt: true, databaseId: true, entityField: true, functionPrefix: true, id: true, objectTableId: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, publicSchemaName: true, refTableId: true, schemaId: true, scope: true, storeTableId: true } }).execute(); // Get one by id -const item = await db.merkleStoreModule.findOne({ id: '', select: { apiName: true, commitTableId: true, createdAt: true, databaseId: true, entityField: true, functionPrefix: true, id: true, objectTableId: true, permissionKey: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, publicSchemaName: true, refTableId: true, schemaId: true, scope: true, storeTableId: true } }).execute(); +const item = await db.merkleStoreModule.findOne({ id: '', select: { apiName: true, capabilityKey: true, commitTableId: true, createdAt: true, databaseId: true, entityField: true, functionPrefix: true, id: true, objectTableId: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, publicSchemaName: true, refTableId: true, schemaId: true, scope: true, storeTableId: true } }).execute(); // Create -const created = await db.merkleStoreModule.create({ data: { apiName: '', commitTableId: '', databaseId: '', entityField: '', functionPrefix: '', objectTableId: '', permissionKey: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', publicSchemaName: '', refTableId: '', schemaId: '', scope: '', storeTableId: '' }, select: { id: true } }).execute(); +const created = await db.merkleStoreModule.create({ data: { apiName: '', capabilityKey: '', commitTableId: '', databaseId: '', entityField: '', functionPrefix: '', objectTableId: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', publicSchemaName: '', refTableId: '', schemaId: '', scope: '', storeTableId: '' }, select: { id: true } }).execute(); // Update const updated = await db.merkleStoreModule.update({ where: { id: '' }, data: { apiName: '' }, select: { id: true } }).execute(); @@ -2286,7 +2528,7 @@ CRUD operations for NamespaceModule records. |-------|------|----------| | `apiName` | String | Yes | | `databaseId` | UUID | Yes | -| `defaultPermissions` | String | Yes | +| `defaultCapabilities` | String | Yes | | `entityField` | String | Yes | | `entityTableId` | UUID | Yes | | `id` | UUID | No | @@ -2308,13 +2550,13 @@ CRUD operations for NamespaceModule records. ```typescript // List all namespaceModule records -const items = await db.namespaceModule.findMany({ select: { apiName: true, databaseId: true, defaultPermissions: true, entityField: true, entityTableId: true, id: true, namespaceEventsTableId: true, namespaceEventsTableName: true, namespacesTableId: true, namespacesTableName: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provisions: true, publicSchemaName: true, schemaId: true, scope: true } }).execute(); +const items = await db.namespaceModule.findMany({ select: { apiName: true, databaseId: true, defaultCapabilities: true, entityField: true, entityTableId: true, id: true, namespaceEventsTableId: true, namespaceEventsTableName: true, namespacesTableId: true, namespacesTableName: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provisions: true, publicSchemaName: true, schemaId: true, scope: true } }).execute(); // Get one by id -const item = await db.namespaceModule.findOne({ id: '', select: { apiName: true, databaseId: true, defaultPermissions: true, entityField: true, entityTableId: true, id: true, namespaceEventsTableId: true, namespaceEventsTableName: true, namespacesTableId: true, namespacesTableName: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provisions: true, publicSchemaName: true, schemaId: true, scope: true } }).execute(); +const item = await db.namespaceModule.findOne({ id: '', select: { apiName: true, databaseId: true, defaultCapabilities: true, entityField: true, entityTableId: true, id: true, namespaceEventsTableId: true, namespaceEventsTableName: true, namespacesTableId: true, namespacesTableName: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provisions: true, publicSchemaName: true, schemaId: true, scope: true } }).execute(); // Create -const created = await db.namespaceModule.create({ data: { apiName: '', databaseId: '', defaultPermissions: '', entityField: '', entityTableId: '', namespaceEventsTableId: '', namespaceEventsTableName: '', namespacesTableId: '', namespacesTableName: '', policies: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', provisions: '', publicSchemaName: '', schemaId: '', scope: '' }, select: { id: true } }).execute(); +const created = await db.namespaceModule.create({ data: { apiName: '', databaseId: '', defaultCapabilities: '', entityField: '', entityTableId: '', namespaceEventsTableId: '', namespaceEventsTableName: '', namespacesTableId: '', namespacesTableName: '', policies: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', provisions: '', publicSchemaName: '', schemaId: '', scope: '' }, select: { id: true } }).execute(); // Update const updated = await db.namespaceModule.update({ where: { id: '' }, data: { apiName: '' }, select: { id: true } }).execute(); @@ -2334,7 +2576,7 @@ CRUD operations for NotificationsModule records. | `apiName` | String | Yes | | `channelsTableId` | UUID | Yes | | `databaseId` | UUID | Yes | -| `defaultPermissions` | String | Yes | +| `defaultCapabilities` | String | Yes | | `deliveryLogTableId` | UUID | Yes | | `entityField` | String | Yes | | `hasChannels` | Boolean | Yes | @@ -2360,13 +2602,13 @@ CRUD operations for NotificationsModule records. ```typescript // List all notificationsModule records -const items = await db.notificationsModule.findMany({ select: { apiName: true, channelsTableId: true, databaseId: true, defaultPermissions: true, deliveryLogTableId: true, entityField: true, hasChannels: true, hasDigestMetadata: true, hasPreferences: true, hasSettingsExtension: true, hasSubscriptions: true, id: true, notificationsTableId: true, organizationSettingsTableId: true, ownerTableId: true, preferencesTableId: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, publicSchemaName: true, readStateTableId: true, schemaId: true, suppressionsTableId: true, userSettingsTableId: true } }).execute(); +const items = await db.notificationsModule.findMany({ select: { apiName: true, channelsTableId: true, databaseId: true, defaultCapabilities: true, deliveryLogTableId: true, entityField: true, hasChannels: true, hasDigestMetadata: true, hasPreferences: true, hasSettingsExtension: true, hasSubscriptions: true, id: true, notificationsTableId: true, organizationSettingsTableId: true, ownerTableId: true, preferencesTableId: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, publicSchemaName: true, readStateTableId: true, schemaId: true, suppressionsTableId: true, userSettingsTableId: true } }).execute(); // Get one by id -const item = await db.notificationsModule.findOne({ id: '', select: { apiName: true, channelsTableId: true, databaseId: true, defaultPermissions: true, deliveryLogTableId: true, entityField: true, hasChannels: true, hasDigestMetadata: true, hasPreferences: true, hasSettingsExtension: true, hasSubscriptions: true, id: true, notificationsTableId: true, organizationSettingsTableId: true, ownerTableId: true, preferencesTableId: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, publicSchemaName: true, readStateTableId: true, schemaId: true, suppressionsTableId: true, userSettingsTableId: true } }).execute(); +const item = await db.notificationsModule.findOne({ id: '', select: { apiName: true, channelsTableId: true, databaseId: true, defaultCapabilities: true, deliveryLogTableId: true, entityField: true, hasChannels: true, hasDigestMetadata: true, hasPreferences: true, hasSettingsExtension: true, hasSubscriptions: true, id: true, notificationsTableId: true, organizationSettingsTableId: true, ownerTableId: true, preferencesTableId: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, publicSchemaName: true, readStateTableId: true, schemaId: true, suppressionsTableId: true, userSettingsTableId: true } }).execute(); // Create -const created = await db.notificationsModule.create({ data: { apiName: '', channelsTableId: '', databaseId: '', defaultPermissions: '', deliveryLogTableId: '', entityField: '', hasChannels: '', hasDigestMetadata: '', hasPreferences: '', hasSettingsExtension: '', hasSubscriptions: '', notificationsTableId: '', organizationSettingsTableId: '', ownerTableId: '', preferencesTableId: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', publicSchemaName: '', readStateTableId: '', schemaId: '', suppressionsTableId: '', userSettingsTableId: '' }, select: { id: true } }).execute(); +const created = await db.notificationsModule.create({ data: { apiName: '', channelsTableId: '', databaseId: '', defaultCapabilities: '', deliveryLogTableId: '', entityField: '', hasChannels: '', hasDigestMetadata: '', hasPreferences: '', hasSettingsExtension: '', hasSubscriptions: '', notificationsTableId: '', organizationSettingsTableId: '', ownerTableId: '', preferencesTableId: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', publicSchemaName: '', readStateTableId: '', schemaId: '', suppressionsTableId: '', userSettingsTableId: '' }, select: { id: true } }).execute(); // Update const updated = await db.notificationsModule.update({ where: { id: '' }, data: { apiName: '' }, select: { id: true } }).execute(); @@ -2375,101 +2617,91 @@ const updated = await db.notificationsModule.update({ where: { id: '' }, d const deleted = await db.notificationsModule.delete({ where: { id: '' } }).execute(); ``` -### `db.pagesModule` +### `db.oauthRequestsModule` -CRUD operations for PagesModule records. +CRUD operations for OauthRequestsModule records. **Fields:** | Field | Type | Editable | |-------|------|----------| -| `apiName` | String | Yes | -| `createdAt` | Datetime | No | | `databaseId` | UUID | Yes | +| `entityField` | String | Yes | | `entityTableId` | UUID | Yes | | `id` | UUID | No | -| `merkleStoreModuleId` | UUID | Yes | -| `pagesTableId` | UUID | Yes | -| `policies` | JSON | Yes | +| `oauthAuthorizationRequestsTableId` | UUID | Yes | +| `oauthAuthorizationRequestsTableName` | String | Yes | +| `pendingIdentityLinksTableId` | UUID | Yes | +| `pendingIdentityLinksTableName` | String | Yes | | `prefix` | String | Yes | -| `privateApiName` | String | Yes | | `privateSchemaId` | UUID | Yes | | `privateSchemaName` | String | Yes | -| `provisions` | JSON | Yes | -| `publicSchemaId` | UUID | Yes | -| `publicSchemaName` | String | Yes | | `scope` | String | Yes | -| `siteSurfaceModuleId` | UUID | Yes | -| `sitesTableId` | UUID | Yes | -| `storeNamePrefix` | String | Yes | **Operations:** ```typescript -// List all pagesModule records -const items = await db.pagesModule.findMany({ select: { apiName: true, createdAt: true, databaseId: true, entityTableId: true, id: true, merkleStoreModuleId: true, pagesTableId: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provisions: true, publicSchemaId: true, publicSchemaName: true, scope: true, siteSurfaceModuleId: true, sitesTableId: true, storeNamePrefix: true } }).execute(); +// List all oauthRequestsModule records +const items = await db.oauthRequestsModule.findMany({ select: { databaseId: true, entityField: true, entityTableId: true, id: true, oauthAuthorizationRequestsTableId: true, oauthAuthorizationRequestsTableName: true, pendingIdentityLinksTableId: true, pendingIdentityLinksTableName: true, prefix: true, privateSchemaId: true, privateSchemaName: true, scope: true } }).execute(); // Get one by id -const item = await db.pagesModule.findOne({ id: '', select: { apiName: true, createdAt: true, databaseId: true, entityTableId: true, id: true, merkleStoreModuleId: true, pagesTableId: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provisions: true, publicSchemaId: true, publicSchemaName: true, scope: true, siteSurfaceModuleId: true, sitesTableId: true, storeNamePrefix: true } }).execute(); +const item = await db.oauthRequestsModule.findOne({ id: '', select: { databaseId: true, entityField: true, entityTableId: true, id: true, oauthAuthorizationRequestsTableId: true, oauthAuthorizationRequestsTableName: true, pendingIdentityLinksTableId: true, pendingIdentityLinksTableName: true, prefix: true, privateSchemaId: true, privateSchemaName: true, scope: true } }).execute(); // Create -const created = await db.pagesModule.create({ data: { apiName: '', databaseId: '', entityTableId: '', merkleStoreModuleId: '', pagesTableId: '', policies: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', provisions: '', publicSchemaId: '', publicSchemaName: '', scope: '', siteSurfaceModuleId: '', sitesTableId: '', storeNamePrefix: '' }, select: { id: true } }).execute(); +const created = await db.oauthRequestsModule.create({ data: { databaseId: '', entityField: '', entityTableId: '', oauthAuthorizationRequestsTableId: '', oauthAuthorizationRequestsTableName: '', pendingIdentityLinksTableId: '', pendingIdentityLinksTableName: '', prefix: '', privateSchemaId: '', privateSchemaName: '', scope: '' }, select: { id: true } }).execute(); // Update -const updated = await db.pagesModule.update({ where: { id: '' }, data: { apiName: '' }, select: { id: true } }).execute(); +const updated = await db.oauthRequestsModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.pagesModule.delete({ where: { id: '' } }).execute(); +const deleted = await db.oauthRequestsModule.delete({ where: { id: '' } }).execute(); ``` -### `db.permissionsModule` +### `db.pagesModule` -CRUD operations for PermissionsModule records. +CRUD operations for PagesModule records. **Fields:** | Field | Type | Editable | |-------|------|----------| -| `actorTableId` | UUID | Yes | | `apiName` | String | Yes | -| `bitlen` | Int | Yes | +| `createdAt` | Datetime | No | | `databaseId` | UUID | Yes | -| `defaultTableId` | UUID | Yes | -| `defaultTableName` | String | Yes | -| `entityField` | String | Yes | | `entityTableId` | UUID | Yes | -| `getByMask` | String | Yes | -| `getMask` | String | Yes | -| `getMaskByName` | String | Yes | -| `getPaddedMask` | String | Yes | | `id` | UUID | No | +| `merkleStoreModuleId` | UUID | Yes | +| `pagesTableId` | UUID | Yes | +| `policies` | JSON | Yes | | `prefix` | String | Yes | | `privateApiName` | String | Yes | | `privateSchemaId` | UUID | Yes | | `privateSchemaName` | String | Yes | +| `provisions` | JSON | Yes | +| `publicSchemaId` | UUID | Yes | | `publicSchemaName` | String | Yes | -| `schemaId` | UUID | Yes | | `scope` | String | Yes | -| `tableId` | UUID | Yes | -| `tableName` | String | Yes | +| `siteSurfaceModuleId` | UUID | Yes | +| `sitesTableId` | UUID | Yes | +| `storeNamePrefix` | String | Yes | **Operations:** ```typescript -// List all permissionsModule records -const items = await db.permissionsModule.findMany({ select: { actorTableId: true, apiName: true, bitlen: true, databaseId: true, defaultTableId: true, defaultTableName: true, entityField: true, entityTableId: true, getByMask: true, getMask: true, getMaskByName: true, getPaddedMask: true, id: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, publicSchemaName: true, schemaId: true, scope: true, tableId: true, tableName: true } }).execute(); +// List all pagesModule records +const items = await db.pagesModule.findMany({ select: { apiName: true, createdAt: true, databaseId: true, entityTableId: true, id: true, merkleStoreModuleId: true, pagesTableId: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provisions: true, publicSchemaId: true, publicSchemaName: true, scope: true, siteSurfaceModuleId: true, sitesTableId: true, storeNamePrefix: true } }).execute(); // Get one by id -const item = await db.permissionsModule.findOne({ id: '', select: { actorTableId: true, apiName: true, bitlen: true, databaseId: true, defaultTableId: true, defaultTableName: true, entityField: true, entityTableId: true, getByMask: true, getMask: true, getMaskByName: true, getPaddedMask: true, id: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, publicSchemaName: true, schemaId: true, scope: true, tableId: true, tableName: true } }).execute(); +const item = await db.pagesModule.findOne({ id: '', select: { apiName: true, createdAt: true, databaseId: true, entityTableId: true, id: true, merkleStoreModuleId: true, pagesTableId: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provisions: true, publicSchemaId: true, publicSchemaName: true, scope: true, siteSurfaceModuleId: true, sitesTableId: true, storeNamePrefix: true } }).execute(); // Create -const created = await db.permissionsModule.create({ data: { actorTableId: '', apiName: '', bitlen: '', databaseId: '', defaultTableId: '', defaultTableName: '', entityField: '', entityTableId: '', getByMask: '', getMask: '', getMaskByName: '', getPaddedMask: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', publicSchemaName: '', schemaId: '', scope: '', tableId: '', tableName: '' }, select: { id: true } }).execute(); +const created = await db.pagesModule.create({ data: { apiName: '', databaseId: '', entityTableId: '', merkleStoreModuleId: '', pagesTableId: '', policies: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', provisions: '', publicSchemaId: '', publicSchemaName: '', scope: '', siteSurfaceModuleId: '', sitesTableId: '', storeNamePrefix: '' }, select: { id: true } }).execute(); // Update -const updated = await db.permissionsModule.update({ where: { id: '' }, data: { actorTableId: '' }, select: { id: true } }).execute(); +const updated = await db.pagesModule.update({ where: { id: '' }, data: { apiName: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.permissionsModule.delete({ where: { id: '' } }).execute(); +const deleted = await db.pagesModule.delete({ where: { id: '' } }).execute(); ``` ### `db.phoneNumbersModule` @@ -2614,22 +2846,24 @@ CRUD operations for ProfilesModule records. |-------|------|----------| | `actorTableId` | UUID | Yes | | `apiName` | String | Yes | +| `capabilitiesTableId` | UUID | Yes | | `databaseId` | UUID | Yes | | `entityField` | String | Yes | | `entityTableId` | UUID | Yes | | `id` | UUID | No | +| `membershipProfilesTableId` | UUID | Yes | +| `membershipProfilesTableName` | String | Yes | | `membershipsTableId` | UUID | Yes | -| `permissionsTableId` | UUID | Yes | | `prefix` | String | Yes | | `privateApiName` | String | Yes | | `privateSchemaId` | UUID | Yes | | `privateSchemaName` | String | Yes | +| `profileCapabilitiesTableId` | UUID | Yes | +| `profileCapabilitiesTableName` | String | Yes | | `profileDefinitionGrantsTableId` | UUID | Yes | | `profileDefinitionGrantsTableName` | String | Yes | | `profileGrantsTableId` | UUID | Yes | | `profileGrantsTableName` | String | Yes | -| `profilePermissionsTableId` | UUID | Yes | -| `profilePermissionsTableName` | String | Yes | | `profileTemplatesTableId` | UUID | Yes | | `profileTemplatesTableName` | String | Yes | | `publicSchemaName` | String | Yes | @@ -2642,13 +2876,13 @@ CRUD operations for ProfilesModule records. ```typescript // List all profilesModule records -const items = await db.profilesModule.findMany({ select: { actorTableId: true, apiName: true, databaseId: true, entityField: true, entityTableId: true, id: true, membershipsTableId: true, permissionsTableId: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, profileDefinitionGrantsTableId: true, profileDefinitionGrantsTableName: true, profileGrantsTableId: true, profileGrantsTableName: true, profilePermissionsTableId: true, profilePermissionsTableName: true, profileTemplatesTableId: true, profileTemplatesTableName: true, publicSchemaName: true, schemaId: true, scope: true, tableId: true, tableName: true } }).execute(); +const items = await db.profilesModule.findMany({ select: { actorTableId: true, apiName: true, capabilitiesTableId: true, databaseId: true, entityField: true, entityTableId: true, id: true, membershipProfilesTableId: true, membershipProfilesTableName: true, membershipsTableId: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, profileCapabilitiesTableId: true, profileCapabilitiesTableName: true, profileDefinitionGrantsTableId: true, profileDefinitionGrantsTableName: true, profileGrantsTableId: true, profileGrantsTableName: true, profileTemplatesTableId: true, profileTemplatesTableName: true, publicSchemaName: true, schemaId: true, scope: true, tableId: true, tableName: true } }).execute(); // Get one by id -const item = await db.profilesModule.findOne({ id: '', select: { actorTableId: true, apiName: true, databaseId: true, entityField: true, entityTableId: true, id: true, membershipsTableId: true, permissionsTableId: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, profileDefinitionGrantsTableId: true, profileDefinitionGrantsTableName: true, profileGrantsTableId: true, profileGrantsTableName: true, profilePermissionsTableId: true, profilePermissionsTableName: true, profileTemplatesTableId: true, profileTemplatesTableName: true, publicSchemaName: true, schemaId: true, scope: true, tableId: true, tableName: true } }).execute(); +const item = await db.profilesModule.findOne({ id: '', select: { actorTableId: true, apiName: true, capabilitiesTableId: true, databaseId: true, entityField: true, entityTableId: true, id: true, membershipProfilesTableId: true, membershipProfilesTableName: true, membershipsTableId: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, profileCapabilitiesTableId: true, profileCapabilitiesTableName: true, profileDefinitionGrantsTableId: true, profileDefinitionGrantsTableName: true, profileGrantsTableId: true, profileGrantsTableName: true, profileTemplatesTableId: true, profileTemplatesTableName: true, publicSchemaName: true, schemaId: true, scope: true, tableId: true, tableName: true } }).execute(); // Create -const created = await db.profilesModule.create({ data: { actorTableId: '', apiName: '', databaseId: '', entityField: '', entityTableId: '', membershipsTableId: '', permissionsTableId: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', profileDefinitionGrantsTableId: '', profileDefinitionGrantsTableName: '', profileGrantsTableId: '', profileGrantsTableName: '', profilePermissionsTableId: '', profilePermissionsTableName: '', profileTemplatesTableId: '', profileTemplatesTableName: '', publicSchemaName: '', schemaId: '', scope: '', tableId: '', tableName: '' }, select: { id: true } }).execute(); +const created = await db.profilesModule.create({ data: { actorTableId: '', apiName: '', capabilitiesTableId: '', databaseId: '', entityField: '', entityTableId: '', membershipProfilesTableId: '', membershipProfilesTableName: '', membershipsTableId: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', profileCapabilitiesTableId: '', profileCapabilitiesTableName: '', profileDefinitionGrantsTableId: '', profileDefinitionGrantsTableName: '', profileGrantsTableId: '', profileGrantsTableName: '', profileTemplatesTableId: '', profileTemplatesTableName: '', publicSchemaName: '', schemaId: '', scope: '', tableId: '', tableName: '' }, select: { id: true } }).execute(); // Update const updated = await db.profilesModule.update({ where: { id: '' }, data: { actorTableId: '' }, select: { id: true } }).execute(); @@ -2668,7 +2902,7 @@ CRUD operations for RateLimitMetersModule records. | `apiName` | String | Yes | | `checkRateLimitFunction` | String | Yes | | `databaseId` | UUID | Yes | -| `defaultPermissions` | String | Yes | +| `defaultCapabilities` | String | Yes | | `id` | UUID | No | | `prefix` | String | Yes | | `privateApiName` | String | Yes | @@ -2687,13 +2921,13 @@ CRUD operations for RateLimitMetersModule records. ```typescript // List all rateLimitMetersModule records -const items = await db.rateLimitMetersModule.findMany({ select: { apiName: true, checkRateLimitFunction: true, databaseId: true, defaultPermissions: true, id: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, publicSchemaName: true, rateLimitOverridesTableId: true, rateLimitOverridesTableName: true, rateLimitStateTableId: true, rateLimitStateTableName: true, rateWindowLimitsTableId: true, rateWindowLimitsTableName: true, schemaId: true } }).execute(); +const items = await db.rateLimitMetersModule.findMany({ select: { apiName: true, checkRateLimitFunction: true, databaseId: true, defaultCapabilities: true, id: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, publicSchemaName: true, rateLimitOverridesTableId: true, rateLimitOverridesTableName: true, rateLimitStateTableId: true, rateLimitStateTableName: true, rateWindowLimitsTableId: true, rateWindowLimitsTableName: true, schemaId: true } }).execute(); // Get one by id -const item = await db.rateLimitMetersModule.findOne({ id: '', select: { apiName: true, checkRateLimitFunction: true, databaseId: true, defaultPermissions: true, id: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, publicSchemaName: true, rateLimitOverridesTableId: true, rateLimitOverridesTableName: true, rateLimitStateTableId: true, rateLimitStateTableName: true, rateWindowLimitsTableId: true, rateWindowLimitsTableName: true, schemaId: true } }).execute(); +const item = await db.rateLimitMetersModule.findOne({ id: '', select: { apiName: true, checkRateLimitFunction: true, databaseId: true, defaultCapabilities: true, id: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, publicSchemaName: true, rateLimitOverridesTableId: true, rateLimitOverridesTableName: true, rateLimitStateTableId: true, rateLimitStateTableName: true, rateWindowLimitsTableId: true, rateWindowLimitsTableName: true, schemaId: true } }).execute(); // Create -const created = await db.rateLimitMetersModule.create({ data: { apiName: '', checkRateLimitFunction: '', databaseId: '', defaultPermissions: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', publicSchemaName: '', rateLimitOverridesTableId: '', rateLimitOverridesTableName: '', rateLimitStateTableId: '', rateLimitStateTableName: '', rateWindowLimitsTableId: '', rateWindowLimitsTableName: '', schemaId: '' }, select: { id: true } }).execute(); +const created = await db.rateLimitMetersModule.create({ data: { apiName: '', checkRateLimitFunction: '', databaseId: '', defaultCapabilities: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', publicSchemaName: '', rateLimitOverridesTableId: '', rateLimitOverridesTableName: '', rateLimitStateTableId: '', rateLimitStateTableName: '', rateWindowLimitsTableId: '', rateWindowLimitsTableName: '', schemaId: '' }, select: { id: true } }).execute(); // Update const updated = await db.rateLimitMetersModule.update({ where: { id: '' }, data: { apiName: '' }, select: { id: true } }).execute(); @@ -2843,7 +3077,7 @@ CRUD operations for ResourceModule records. |-------|------|----------| | `apiName` | String | Yes | | `databaseId` | UUID | Yes | -| `defaultPermissions` | String | Yes | +| `defaultCapabilities` | String | Yes | | `entityField` | String | Yes | | `entityTableId` | UUID | Yes | | `id` | UUID | No | @@ -2882,13 +3116,13 @@ CRUD operations for ResourceModule records. ```typescript // List all resourceModule records -const items = await db.resourceModule.findMany({ select: { apiName: true, databaseId: true, defaultPermissions: true, entityField: true, entityTableId: true, id: true, installationStoreName: true, merkleStoreModuleId: true, namespaceModuleId: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provisions: true, publicSchemaName: true, requirementsStateViewName: true, resolvedRequirementsViewName: true, resourceBillingRollupFunction: true, resourceDefinitionsTableId: true, resourceDefinitionsTableName: true, resourceEventsTableId: true, resourceEventsTableName: true, resourceInstallationsTableId: true, resourceInstallationsTableName: true, resourceStatusChecksTableId: true, resourceStatusChecksTableName: true, resourceUsageLogTableId: true, resourceUsageLogTableName: true, resourceUsageSummaryTableId: true, resourceUsageSummaryTableName: true, resourcesTableId: true, resourcesTableName: true, rollupResourceUsageSummaryFunction: true, schemaId: true, scope: true } }).execute(); +const items = await db.resourceModule.findMany({ select: { apiName: true, databaseId: true, defaultCapabilities: true, entityField: true, entityTableId: true, id: true, installationStoreName: true, merkleStoreModuleId: true, namespaceModuleId: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provisions: true, publicSchemaName: true, requirementsStateViewName: true, resolvedRequirementsViewName: true, resourceBillingRollupFunction: true, resourceDefinitionsTableId: true, resourceDefinitionsTableName: true, resourceEventsTableId: true, resourceEventsTableName: true, resourceInstallationsTableId: true, resourceInstallationsTableName: true, resourceStatusChecksTableId: true, resourceStatusChecksTableName: true, resourceUsageLogTableId: true, resourceUsageLogTableName: true, resourceUsageSummaryTableId: true, resourceUsageSummaryTableName: true, resourcesTableId: true, resourcesTableName: true, rollupResourceUsageSummaryFunction: true, schemaId: true, scope: true } }).execute(); // Get one by id -const item = await db.resourceModule.findOne({ id: '', select: { apiName: true, databaseId: true, defaultPermissions: true, entityField: true, entityTableId: true, id: true, installationStoreName: true, merkleStoreModuleId: true, namespaceModuleId: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provisions: true, publicSchemaName: true, requirementsStateViewName: true, resolvedRequirementsViewName: true, resourceBillingRollupFunction: true, resourceDefinitionsTableId: true, resourceDefinitionsTableName: true, resourceEventsTableId: true, resourceEventsTableName: true, resourceInstallationsTableId: true, resourceInstallationsTableName: true, resourceStatusChecksTableId: true, resourceStatusChecksTableName: true, resourceUsageLogTableId: true, resourceUsageLogTableName: true, resourceUsageSummaryTableId: true, resourceUsageSummaryTableName: true, resourcesTableId: true, resourcesTableName: true, rollupResourceUsageSummaryFunction: true, schemaId: true, scope: true } }).execute(); +const item = await db.resourceModule.findOne({ id: '', select: { apiName: true, databaseId: true, defaultCapabilities: true, entityField: true, entityTableId: true, id: true, installationStoreName: true, merkleStoreModuleId: true, namespaceModuleId: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provisions: true, publicSchemaName: true, requirementsStateViewName: true, resolvedRequirementsViewName: true, resourceBillingRollupFunction: true, resourceDefinitionsTableId: true, resourceDefinitionsTableName: true, resourceEventsTableId: true, resourceEventsTableName: true, resourceInstallationsTableId: true, resourceInstallationsTableName: true, resourceStatusChecksTableId: true, resourceStatusChecksTableName: true, resourceUsageLogTableId: true, resourceUsageLogTableName: true, resourceUsageSummaryTableId: true, resourceUsageSummaryTableName: true, resourcesTableId: true, resourcesTableName: true, rollupResourceUsageSummaryFunction: true, schemaId: true, scope: true } }).execute(); // Create -const created = await db.resourceModule.create({ data: { apiName: '', databaseId: '', defaultPermissions: '', entityField: '', entityTableId: '', installationStoreName: '', merkleStoreModuleId: '', namespaceModuleId: '', policies: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', provisions: '', publicSchemaName: '', requirementsStateViewName: '', resolvedRequirementsViewName: '', resourceBillingRollupFunction: '', resourceDefinitionsTableId: '', resourceDefinitionsTableName: '', resourceEventsTableId: '', resourceEventsTableName: '', resourceInstallationsTableId: '', resourceInstallationsTableName: '', resourceStatusChecksTableId: '', resourceStatusChecksTableName: '', resourceUsageLogTableId: '', resourceUsageLogTableName: '', resourceUsageSummaryTableId: '', resourceUsageSummaryTableName: '', resourcesTableId: '', resourcesTableName: '', rollupResourceUsageSummaryFunction: '', schemaId: '', scope: '' }, select: { id: true } }).execute(); +const created = await db.resourceModule.create({ data: { apiName: '', databaseId: '', defaultCapabilities: '', entityField: '', entityTableId: '', installationStoreName: '', merkleStoreModuleId: '', namespaceModuleId: '', policies: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', provisions: '', publicSchemaName: '', requirementsStateViewName: '', resolvedRequirementsViewName: '', resourceBillingRollupFunction: '', resourceDefinitionsTableId: '', resourceDefinitionsTableName: '', resourceEventsTableId: '', resourceEventsTableName: '', resourceInstallationsTableId: '', resourceInstallationsTableName: '', resourceStatusChecksTableId: '', resourceStatusChecksTableName: '', resourceUsageLogTableId: '', resourceUsageLogTableName: '', resourceUsageSummaryTableId: '', resourceUsageSummaryTableName: '', resourcesTableId: '', resourcesTableName: '', rollupResourceUsageSummaryFunction: '', schemaId: '', scope: '' }, select: { id: true } }).execute(); // Update const updated = await db.resourceModule.update({ where: { id: '' }, data: { apiName: '' }, select: { id: true } }).execute(); @@ -2947,9 +3181,11 @@ CRUD operations for RouteModule records. | Field | Type | Editable | |-------|------|----------| | `apiName` | String | Yes | +| `appLinksFunctionName` | String | Yes | | `catalogModuleId` | UUID | Yes | | `databaseId` | UUID | Yes | -| `defaultPermissions` | String | Yes | +| `deepLinkFunctionName` | String | Yes | +| `defaultCapabilities` | String | Yes | | `domainModuleId` | UUID | Yes | | `entityField` | String | Yes | | `entityTableId` | UUID | Yes | @@ -2975,13 +3211,13 @@ CRUD operations for RouteModule records. ```typescript // List all routeModule records -const items = await db.routeModule.findMany({ select: { apiName: true, catalogModuleId: true, databaseId: true, defaultPermissions: true, domainModuleId: true, entityField: true, entityTableId: true, hostnameBindingsTableId: true, hostnameBindingsTableName: true, id: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provisions: true, publicSchemaName: true, resolverFunctionName: true, routeBindingsTableId: true, routeBindingsTableName: true, routesTableId: true, routesTableName: true, schemaId: true, scope: true } }).execute(); +const items = await db.routeModule.findMany({ select: { apiName: true, appLinksFunctionName: true, catalogModuleId: true, databaseId: true, deepLinkFunctionName: true, defaultCapabilities: true, domainModuleId: true, entityField: true, entityTableId: true, hostnameBindingsTableId: true, hostnameBindingsTableName: true, id: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provisions: true, publicSchemaName: true, resolverFunctionName: true, routeBindingsTableId: true, routeBindingsTableName: true, routesTableId: true, routesTableName: true, schemaId: true, scope: true } }).execute(); // Get one by id -const item = await db.routeModule.findOne({ id: '', select: { apiName: true, catalogModuleId: true, databaseId: true, defaultPermissions: true, domainModuleId: true, entityField: true, entityTableId: true, hostnameBindingsTableId: true, hostnameBindingsTableName: true, id: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provisions: true, publicSchemaName: true, resolverFunctionName: true, routeBindingsTableId: true, routeBindingsTableName: true, routesTableId: true, routesTableName: true, schemaId: true, scope: true } }).execute(); +const item = await db.routeModule.findOne({ id: '', select: { apiName: true, appLinksFunctionName: true, catalogModuleId: true, databaseId: true, deepLinkFunctionName: true, defaultCapabilities: true, domainModuleId: true, entityField: true, entityTableId: true, hostnameBindingsTableId: true, hostnameBindingsTableName: true, id: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provisions: true, publicSchemaName: true, resolverFunctionName: true, routeBindingsTableId: true, routeBindingsTableName: true, routesTableId: true, routesTableName: true, schemaId: true, scope: true } }).execute(); // Create -const created = await db.routeModule.create({ data: { apiName: '', catalogModuleId: '', databaseId: '', defaultPermissions: '', domainModuleId: '', entityField: '', entityTableId: '', hostnameBindingsTableId: '', hostnameBindingsTableName: '', policies: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', provisions: '', publicSchemaName: '', resolverFunctionName: '', routeBindingsTableId: '', routeBindingsTableName: '', routesTableId: '', routesTableName: '', schemaId: '', scope: '' }, select: { id: true } }).execute(); +const created = await db.routeModule.create({ data: { apiName: '', appLinksFunctionName: '', catalogModuleId: '', databaseId: '', deepLinkFunctionName: '', defaultCapabilities: '', domainModuleId: '', entityField: '', entityTableId: '', hostnameBindingsTableId: '', hostnameBindingsTableName: '', policies: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', provisions: '', publicSchemaName: '', resolverFunctionName: '', routeBindingsTableId: '', routeBindingsTableName: '', routesTableId: '', routesTableName: '', schemaId: '', scope: '' }, select: { id: true } }).execute(); // Update const updated = await db.routeModule.update({ where: { id: '' }, data: { apiName: '' }, select: { id: true } }).execute(); @@ -2990,6 +3226,39 @@ const updated = await db.routeModule.update({ where: { id: '' }, data: { a const deleted = await db.routeModule.delete({ where: { id: '' } }).execute(); ``` +### `db.scopeTypesModule` + +CRUD operations for ScopeTypesModule records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `databaseId` | UUID | Yes | +| `id` | UUID | No | +| `privateSchemaName` | String | Yes | +| `schemaId` | UUID | Yes | +| `scopeTypesTableId` | UUID | Yes | + +**Operations:** + +```typescript +// List all scopeTypesModule records +const items = await db.scopeTypesModule.findMany({ select: { databaseId: true, id: true, privateSchemaName: true, schemaId: true, scopeTypesTableId: true } }).execute(); + +// Get one by id +const item = await db.scopeTypesModule.findOne({ id: '', select: { databaseId: true, id: true, privateSchemaName: true, schemaId: true, scopeTypesTableId: true } }).execute(); + +// Create +const created = await db.scopeTypesModule.create({ data: { databaseId: '', privateSchemaName: '', schemaId: '', scopeTypesTableId: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.scopeTypesModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.scopeTypesModule.delete({ where: { id: '' } }).execute(); +``` + ### `db.secureTableProvision` CRUD operations for SecureTableProvision records. @@ -3113,7 +3382,7 @@ CRUD operations for SiteSurfaceModule records. | `apiName` | String | Yes | | `catalogModuleId` | UUID | Yes | | `databaseId` | UUID | Yes | -| `defaultPermissions` | String | Yes | +| `defaultCapabilities` | String | Yes | | `entityField` | String | Yes | | `entityTableId` | UUID | Yes | | `id` | UUID | No | @@ -3147,13 +3416,13 @@ CRUD operations for SiteSurfaceModule records. ```typescript // List all siteSurfaceModule records -const items = await db.siteSurfaceModule.findMany({ select: { apiName: true, catalogModuleId: true, databaseId: true, defaultPermissions: true, entityField: true, entityTableId: true, id: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provisions: true, publicSchemaName: true, schemaId: true, scope: true, siteAppLinksTableId: true, siteAppLinksTableName: true, siteDeepLinksTableId: true, siteDeepLinksTableName: true, siteErrorPagesTableId: true, siteErrorPagesTableName: true, siteMetadataTableId: true, siteMetadataTableName: true, siteModulesTableId: true, siteModulesTableName: true, siteThemesTableId: true, siteThemesTableName: true, siteWebConfigTableId: true, siteWebConfigTableName: true, sitesTableId: true, sitesTableName: true } }).execute(); +const items = await db.siteSurfaceModule.findMany({ select: { apiName: true, catalogModuleId: true, databaseId: true, defaultCapabilities: true, entityField: true, entityTableId: true, id: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provisions: true, publicSchemaName: true, schemaId: true, scope: true, siteAppLinksTableId: true, siteAppLinksTableName: true, siteDeepLinksTableId: true, siteDeepLinksTableName: true, siteErrorPagesTableId: true, siteErrorPagesTableName: true, siteMetadataTableId: true, siteMetadataTableName: true, siteModulesTableId: true, siteModulesTableName: true, siteThemesTableId: true, siteThemesTableName: true, siteWebConfigTableId: true, siteWebConfigTableName: true, sitesTableId: true, sitesTableName: true } }).execute(); // Get one by id -const item = await db.siteSurfaceModule.findOne({ id: '', select: { apiName: true, catalogModuleId: true, databaseId: true, defaultPermissions: true, entityField: true, entityTableId: true, id: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provisions: true, publicSchemaName: true, schemaId: true, scope: true, siteAppLinksTableId: true, siteAppLinksTableName: true, siteDeepLinksTableId: true, siteDeepLinksTableName: true, siteErrorPagesTableId: true, siteErrorPagesTableName: true, siteMetadataTableId: true, siteMetadataTableName: true, siteModulesTableId: true, siteModulesTableName: true, siteThemesTableId: true, siteThemesTableName: true, siteWebConfigTableId: true, siteWebConfigTableName: true, sitesTableId: true, sitesTableName: true } }).execute(); +const item = await db.siteSurfaceModule.findOne({ id: '', select: { apiName: true, catalogModuleId: true, databaseId: true, defaultCapabilities: true, entityField: true, entityTableId: true, id: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provisions: true, publicSchemaName: true, schemaId: true, scope: true, siteAppLinksTableId: true, siteAppLinksTableName: true, siteDeepLinksTableId: true, siteDeepLinksTableName: true, siteErrorPagesTableId: true, siteErrorPagesTableName: true, siteMetadataTableId: true, siteMetadataTableName: true, siteModulesTableId: true, siteModulesTableName: true, siteThemesTableId: true, siteThemesTableName: true, siteWebConfigTableId: true, siteWebConfigTableName: true, sitesTableId: true, sitesTableName: true } }).execute(); // Create -const created = await db.siteSurfaceModule.create({ data: { apiName: '', catalogModuleId: '', databaseId: '', defaultPermissions: '', entityField: '', entityTableId: '', policies: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', provisions: '', publicSchemaName: '', schemaId: '', scope: '', siteAppLinksTableId: '', siteAppLinksTableName: '', siteDeepLinksTableId: '', siteDeepLinksTableName: '', siteErrorPagesTableId: '', siteErrorPagesTableName: '', siteMetadataTableId: '', siteMetadataTableName: '', siteModulesTableId: '', siteModulesTableName: '', siteThemesTableId: '', siteThemesTableName: '', siteWebConfigTableId: '', siteWebConfigTableName: '', sitesTableId: '', sitesTableName: '' }, select: { id: true } }).execute(); +const created = await db.siteSurfaceModule.create({ data: { apiName: '', catalogModuleId: '', databaseId: '', defaultCapabilities: '', entityField: '', entityTableId: '', policies: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', provisions: '', publicSchemaName: '', schemaId: '', scope: '', siteAppLinksTableId: '', siteAppLinksTableName: '', siteDeepLinksTableId: '', siteDeepLinksTableName: '', siteErrorPagesTableId: '', siteErrorPagesTableName: '', siteMetadataTableId: '', siteMetadataTableName: '', siteModulesTableId: '', siteModulesTableName: '', siteThemesTableId: '', siteThemesTableName: '', siteWebConfigTableId: '', siteWebConfigTableName: '', sitesTableId: '', sitesTableName: '' }, select: { id: true } }).execute(); // Update const updated = await db.siteSurfaceModule.update({ where: { id: '' }, data: { apiName: '' }, select: { id: true } }).execute(); @@ -3226,8 +3495,8 @@ CRUD operations for StorageModule records. | `catalogModuleId` | UUID | Yes | | `confirmUploadDelay` | Interval | Yes | | `databaseId` | UUID | Yes | +| `defaultCapabilities` | String | Yes | | `defaultMaxFileSize` | BigInt | Yes | -| `defaultPermissions` | String | Yes | | `downloadUrlExpirySeconds` | Int | Yes | | `endpoint` | String | Yes | | `entityField` | String | Yes | @@ -3264,13 +3533,13 @@ CRUD operations for StorageModule records. ```typescript // List all storageModule records -const items = await db.storageModule.findMany({ select: { allowedOrigins: true, apiName: true, bucketsTableId: true, bucketsTableName: true, cacheTtlSeconds: true, catalogModuleId: true, confirmUploadDelay: true, databaseId: true, defaultMaxFileSize: true, defaultPermissions: true, downloadUrlExpirySeconds: true, endpoint: true, entityField: true, entityTableId: true, fileEventsTableId: true, filesTableId: true, filesTableName: true, hasAuditLog: true, hasConfirmUpload: true, hasContentHash: true, hasCustomKeys: true, hasPathShares: true, hasVersioning: true, id: true, maxBulkFiles: true, maxBulkTotalSize: true, maxFilenameLength: true, pathSharesTableId: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provider: true, provisions: true, publicSchemaName: true, publicUrlPrefix: true, restrictReads: true, schemaId: true, scope: true, uploadUrlExpirySeconds: true } }).execute(); +const items = await db.storageModule.findMany({ select: { allowedOrigins: true, apiName: true, bucketsTableId: true, bucketsTableName: true, cacheTtlSeconds: true, catalogModuleId: true, confirmUploadDelay: true, databaseId: true, defaultCapabilities: true, defaultMaxFileSize: true, downloadUrlExpirySeconds: true, endpoint: true, entityField: true, entityTableId: true, fileEventsTableId: true, filesTableId: true, filesTableName: true, hasAuditLog: true, hasConfirmUpload: true, hasContentHash: true, hasCustomKeys: true, hasPathShares: true, hasVersioning: true, id: true, maxBulkFiles: true, maxBulkTotalSize: true, maxFilenameLength: true, pathSharesTableId: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provider: true, provisions: true, publicSchemaName: true, publicUrlPrefix: true, restrictReads: true, schemaId: true, scope: true, uploadUrlExpirySeconds: true } }).execute(); // Get one by id -const item = await db.storageModule.findOne({ id: '', select: { allowedOrigins: true, apiName: true, bucketsTableId: true, bucketsTableName: true, cacheTtlSeconds: true, catalogModuleId: true, confirmUploadDelay: true, databaseId: true, defaultMaxFileSize: true, defaultPermissions: true, downloadUrlExpirySeconds: true, endpoint: true, entityField: true, entityTableId: true, fileEventsTableId: true, filesTableId: true, filesTableName: true, hasAuditLog: true, hasConfirmUpload: true, hasContentHash: true, hasCustomKeys: true, hasPathShares: true, hasVersioning: true, id: true, maxBulkFiles: true, maxBulkTotalSize: true, maxFilenameLength: true, pathSharesTableId: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provider: true, provisions: true, publicSchemaName: true, publicUrlPrefix: true, restrictReads: true, schemaId: true, scope: true, uploadUrlExpirySeconds: true } }).execute(); +const item = await db.storageModule.findOne({ id: '', select: { allowedOrigins: true, apiName: true, bucketsTableId: true, bucketsTableName: true, cacheTtlSeconds: true, catalogModuleId: true, confirmUploadDelay: true, databaseId: true, defaultCapabilities: true, defaultMaxFileSize: true, downloadUrlExpirySeconds: true, endpoint: true, entityField: true, entityTableId: true, fileEventsTableId: true, filesTableId: true, filesTableName: true, hasAuditLog: true, hasConfirmUpload: true, hasContentHash: true, hasCustomKeys: true, hasPathShares: true, hasVersioning: true, id: true, maxBulkFiles: true, maxBulkTotalSize: true, maxFilenameLength: true, pathSharesTableId: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provider: true, provisions: true, publicSchemaName: true, publicUrlPrefix: true, restrictReads: true, schemaId: true, scope: true, uploadUrlExpirySeconds: true } }).execute(); // Create -const created = await db.storageModule.create({ data: { allowedOrigins: '', apiName: '', bucketsTableId: '', bucketsTableName: '', cacheTtlSeconds: '', catalogModuleId: '', confirmUploadDelay: '', databaseId: '', defaultMaxFileSize: '', defaultPermissions: '', downloadUrlExpirySeconds: '', endpoint: '', entityField: '', entityTableId: '', fileEventsTableId: '', filesTableId: '', filesTableName: '', hasAuditLog: '', hasConfirmUpload: '', hasContentHash: '', hasCustomKeys: '', hasPathShares: '', hasVersioning: '', maxBulkFiles: '', maxBulkTotalSize: '', maxFilenameLength: '', pathSharesTableId: '', policies: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', provider: '', provisions: '', publicSchemaName: '', publicUrlPrefix: '', restrictReads: '', schemaId: '', scope: '', uploadUrlExpirySeconds: '' }, select: { id: true } }).execute(); +const created = await db.storageModule.create({ data: { allowedOrigins: '', apiName: '', bucketsTableId: '', bucketsTableName: '', cacheTtlSeconds: '', catalogModuleId: '', confirmUploadDelay: '', databaseId: '', defaultCapabilities: '', defaultMaxFileSize: '', downloadUrlExpirySeconds: '', endpoint: '', entityField: '', entityTableId: '', fileEventsTableId: '', filesTableId: '', filesTableName: '', hasAuditLog: '', hasConfirmUpload: '', hasContentHash: '', hasCustomKeys: '', hasPathShares: '', hasVersioning: '', maxBulkFiles: '', maxBulkTotalSize: '', maxFilenameLength: '', pathSharesTableId: '', policies: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', provider: '', provisions: '', publicSchemaName: '', publicUrlPrefix: '', restrictReads: '', schemaId: '', scope: '', uploadUrlExpirySeconds: '' }, select: { id: true } }).execute(); // Update const updated = await db.storageModule.update({ where: { id: '' }, data: { allowedOrigins: '' }, select: { id: true } }).execute(); @@ -3453,6 +3722,41 @@ const updated = await db.userSettingsModule.update({ where: { id: '' }, da const deleted = await db.userSettingsModule.delete({ where: { id: '' } }).execute(); ``` +### `db.userSettingsSecurityModule` + +CRUD operations for UserSettingsSecurityModule records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `apiName` | String | Yes | +| `databaseId` | UUID | Yes | +| `id` | UUID | No | +| `ownerTableId` | UUID | Yes | +| `schemaId` | UUID | Yes | +| `tableId` | UUID | Yes | +| `tableName` | String | Yes | + +**Operations:** + +```typescript +// List all userSettingsSecurityModule records +const items = await db.userSettingsSecurityModule.findMany({ select: { apiName: true, databaseId: true, id: true, ownerTableId: true, schemaId: true, tableId: true, tableName: true } }).execute(); + +// Get one by id +const item = await db.userSettingsSecurityModule.findOne({ id: '', select: { apiName: true, databaseId: true, id: true, ownerTableId: true, schemaId: true, tableId: true, tableName: true } }).execute(); + +// Create +const created = await db.userSettingsSecurityModule.create({ data: { apiName: '', databaseId: '', ownerTableId: '', schemaId: '', tableId: '', tableName: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.userSettingsSecurityModule.update({ where: { id: '' }, data: { apiName: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.userSettingsSecurityModule.delete({ where: { id: '' } }).execute(); +``` + ### `db.userStateModule` CRUD operations for UserStateModule records. @@ -3615,7 +3919,7 @@ CRUD operations for WebhookModule records. |-------|------|----------| | `apiName` | String | Yes | | `databaseId` | UUID | Yes | -| `defaultPermissions` | String | Yes | +| `defaultCapabilities` | String | Yes | | `entityField` | String | Yes | | `entityTableId` | UUID | Yes | | `functionInvocationModuleId` | UUID | Yes | @@ -3641,13 +3945,13 @@ CRUD operations for WebhookModule records. ```typescript // List all webhookModule records -const items = await db.webhookModule.findMany({ select: { apiName: true, databaseId: true, defaultPermissions: true, entityField: true, entityTableId: true, functionInvocationModuleId: true, functionModuleId: true, id: true, infraSecretsModuleId: true, namespaceModuleId: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provisions: true, publicSchemaName: true, schemaId: true, scope: true, webhookEndpointsTableId: true, webhookEndpointsTableName: true, webhookEventsTableId: true, webhookEventsTableName: true } }).execute(); +const items = await db.webhookModule.findMany({ select: { apiName: true, databaseId: true, defaultCapabilities: true, entityField: true, entityTableId: true, functionInvocationModuleId: true, functionModuleId: true, id: true, infraSecretsModuleId: true, namespaceModuleId: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provisions: true, publicSchemaName: true, schemaId: true, scope: true, webhookEndpointsTableId: true, webhookEndpointsTableName: true, webhookEventsTableId: true, webhookEventsTableName: true } }).execute(); // Get one by id -const item = await db.webhookModule.findOne({ id: '', select: { apiName: true, databaseId: true, defaultPermissions: true, entityField: true, entityTableId: true, functionInvocationModuleId: true, functionModuleId: true, id: true, infraSecretsModuleId: true, namespaceModuleId: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provisions: true, publicSchemaName: true, schemaId: true, scope: true, webhookEndpointsTableId: true, webhookEndpointsTableName: true, webhookEventsTableId: true, webhookEventsTableName: true } }).execute(); +const item = await db.webhookModule.findOne({ id: '', select: { apiName: true, databaseId: true, defaultCapabilities: true, entityField: true, entityTableId: true, functionInvocationModuleId: true, functionModuleId: true, id: true, infraSecretsModuleId: true, namespaceModuleId: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provisions: true, publicSchemaName: true, schemaId: true, scope: true, webhookEndpointsTableId: true, webhookEndpointsTableName: true, webhookEventsTableId: true, webhookEventsTableName: true } }).execute(); // Create -const created = await db.webhookModule.create({ data: { apiName: '', databaseId: '', defaultPermissions: '', entityField: '', entityTableId: '', functionInvocationModuleId: '', functionModuleId: '', infraSecretsModuleId: '', namespaceModuleId: '', policies: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', provisions: '', publicSchemaName: '', schemaId: '', scope: '', webhookEndpointsTableId: '', webhookEndpointsTableName: '', webhookEventsTableId: '', webhookEventsTableName: '' }, select: { id: true } }).execute(); +const created = await db.webhookModule.create({ data: { apiName: '', databaseId: '', defaultCapabilities: '', entityField: '', entityTableId: '', functionInvocationModuleId: '', functionModuleId: '', infraSecretsModuleId: '', namespaceModuleId: '', policies: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', provisions: '', publicSchemaName: '', schemaId: '', scope: '', webhookEndpointsTableId: '', webhookEndpointsTableName: '', webhookEventsTableId: '', webhookEventsTableName: '' }, select: { id: true } }).execute(); // Update const updated = await db.webhookModule.update({ where: { id: '' }, data: { apiName: '' }, select: { id: true } }).execute(); @@ -3658,42 +3962,6 @@ const deleted = await db.webhookModule.delete({ where: { id: '' } }).execu ## Custom Operations -### `db.query.resolveBlueprintField` - -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. - -- **Type:** query -- **Arguments:** - - | Argument | Type | - |----------|------| - | `databaseId` | UUID | - | `fieldName` | String | - | `tableId` | UUID | - -```typescript -const result = await db.query.resolveBlueprintField({ databaseId: '', fieldName: '', tableId: '' }).execute(); -``` - -### `db.query.resolveBlueprintTable` - -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. - -- **Type:** query -- **Arguments:** - - | Argument | Type | - |----------|------| - | `databaseId` | UUID | - | `defaultSchemaId` | UUID | - | `schemaName` | String | - | `tableMap` | JSON | - | `tableName` | String | - -```typescript -const result = await db.query.resolveBlueprintTable({ databaseId: '', defaultSchemaId: '', schemaName: '', tableMap: '', tableName: '' }).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. 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 function_module is installed, 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. @@ -3742,111 +4010,6 @@ and lifecycle settings. const result = await db.mutation.provisionBucket({ input: { bucketKey: '', ownerId: '' } }).execute(); ``` -### `db.mutation.provisionCheckConstraint` - -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. - -- **Type:** mutation -- **Arguments:** - - | Argument | Type | - |----------|------| - | `input` | ProvisionCheckConstraintInput (required) | - -```typescript -const result = await db.mutation.provisionCheckConstraint({ input: { databaseId: '', definition: '', tableId: '' } }).execute(); -``` - -### `db.mutation.provisionFullTextSearch` - -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. - -- **Type:** mutation -- **Arguments:** - - | Argument | Type | - |----------|------| - | `input` | ProvisionFullTextSearchInput (required) | - -```typescript -const result = await db.mutation.provisionFullTextSearch({ input: { databaseId: '', definition: '', tableId: '' } }).execute(); -``` - -### `db.mutation.provisionIndex` - -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. - -- **Type:** mutation -- **Arguments:** - - | Argument | Type | - |----------|------| - | `input` | ProvisionIndexInput (required) | - -```typescript -const result = await db.mutation.provisionIndex({ input: { databaseId: '', definition: '', tableId: '' } }).execute(); -``` - -### `db.mutation.provisionRelation` - -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). - -- **Type:** mutation -- **Arguments:** - - | Argument | Type | - |----------|------| - | `input` | ProvisionRelationInput (required) | - -```typescript -const result = await db.mutation.provisionRelation({ input: '' }).execute(); -``` - -### `db.mutation.provisionSpatialRelation` - -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. - -- **Type:** mutation -- **Arguments:** - - | Argument | Type | - |----------|------| - | `input` | ProvisionSpatialRelationInput (required) | - -```typescript -const result = await db.mutation.provisionSpatialRelation({ input: '' }).execute(); -``` - -### `db.mutation.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). - -- **Type:** mutation -- **Arguments:** - - | Argument | Type | - |----------|------| - | `input` | ProvisionTableInput (required) | - -```typescript -const result = await db.mutation.provisionTable({ input: '' }).execute(); -``` - -### `db.mutation.provisionUniqueConstraint` - -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. - -- **Type:** mutation -- **Arguments:** - - | Argument | Type | - |----------|------| - | `input` | ProvisionUniqueConstraintInput (required) | - -```typescript -const result = await db.mutation.provisionUniqueConstraint({ input: { databaseId: '', definition: '', tableId: '' } }).execute(); -``` - --- Built by the [Constructive](https://constructive.io) team. diff --git a/sdk/constructive-react/src/modules/orm/index.ts b/sdk/constructive-react/src/modules/orm/index.ts index 0951126688..249a7e5114 100644 --- a/sdk/constructive-react/src/modules/orm/index.ts +++ b/sdk/constructive-react/src/modules/orm/index.ts @@ -13,12 +13,15 @@ import { BillingProviderModuleModel } from './models/billingProviderModule'; import { BlueprintModel } from './models/blueprint'; import { BlueprintConstructionModel } from './models/blueprintConstruction'; import { BlueprintTemplateModel } from './models/blueprintTemplate'; +import { CapabilitiesModuleModel } from './models/capabilitiesModule'; import { CatalogModuleModel } from './models/catalogModule'; import { ComputeLogModuleModel } from './models/computeLogModule'; import { ConfigSecretsUserModuleModel } from './models/configSecretsUserModule'; import { ConnectedAccountsModuleModel } from './models/connectedAccountsModule'; +import { ContentPresetModuleModel } from './models/contentPresetModule'; import { CryptoAddressesModuleModel } from './models/cryptoAddressesModule'; import { CryptoAuthModuleModel } from './models/cryptoAuthModule'; +import { DataCapabilitiesFieldModel } from './models/dataCapabilitiesField'; import { DatabaseProvisionModuleModel } from './models/databaseProvisionModule'; import { DatabaseSettingsModuleModel } from './models/databaseSettingsModule'; import { DbPoolConfigModel } from './models/dbPoolConfig'; @@ -29,9 +32,11 @@ import { DefaultIdsModuleModel } from './models/defaultIdsModule'; import { DenormalizedTableFieldModel } from './models/denormalizedTableField'; import { DevicesModuleModel } from './models/devicesModule'; import { DomainModuleModel } from './models/domainModule'; +import { EmailSenderModuleModel } from './models/emailSenderModule'; import { EmailsModuleModel } from './models/emailsModule'; import { EntityTypeProvisionModel } from './models/entityTypeProvision'; import { EventsModuleModel } from './models/eventsModule'; +import { FileRefFieldModel } from './models/fileRefField'; import { FunctionDeploymentModuleModel } from './models/functionDeploymentModule'; import { FunctionInvocationModuleModel } from './models/functionInvocationModule'; import { FunctionModuleModel } from './models/functionModule'; @@ -53,8 +58,8 @@ import { MembershipsModuleModel } from './models/membershipsModule'; import { MerkleStoreModuleModel } from './models/merkleStoreModule'; import { NamespaceModuleModel } from './models/namespaceModule'; import { NotificationsModuleModel } from './models/notificationsModule'; +import { OauthRequestsModuleModel } from './models/oauthRequestsModule'; import { PagesModuleModel } from './models/pagesModule'; -import { PermissionsModuleModel } from './models/permissionsModule'; import { PhoneNumbersModuleModel } from './models/phoneNumbersModule'; import { PlansModuleModel } from './models/plansModule'; import { PrincipalAuthModuleModel } from './models/principalAuthModule'; @@ -66,6 +71,7 @@ import { RelationProvisionModel } from './models/relationProvision'; import { ResourceModuleModel } from './models/resourceModule'; import { RlsModuleModel } from './models/rlsModule'; import { RouteModuleModel } from './models/routeModule'; +import { ScopeTypesModuleModel } from './models/scopeTypesModule'; import { SecureTableProvisionModel } from './models/secureTableProvision'; import { SessionSecretsModuleModel } from './models/sessionSecretsModule'; import { SessionsModuleModel } from './models/sessionsModule'; @@ -76,19 +82,18 @@ import { TransferLogModuleModel } from './models/transferLogModule'; import { UserAuthModuleModel } from './models/userAuthModule'; import { UserCredentialsModuleModel } from './models/userCredentialsModule'; import { UserSettingsModuleModel } from './models/userSettingsModule'; +import { UserSettingsSecurityModuleModel } from './models/userSettingsSecurityModule'; import { UserStateModuleModel } from './models/userStateModule'; import { UsersModuleModel } from './models/usersModule'; import { WebauthnAuthModuleModel } from './models/webauthnAuthModule'; import { WebauthnCredentialsModuleModel } from './models/webauthnCredentialsModule'; import { WebhookModuleModel } from './models/webhookModule'; -import { createQueryOperations } from './query'; import { createMutationOperations } from './mutation'; export type { OrmClientConfig, QueryResult, GraphQLError, GraphQLAdapter } from './client'; export { GraphQLRequestError, FetchAdapter } from './client'; export { QueryBuilder } from './query-builder'; export * from './select-types'; export * from './models'; -export { createQueryOperations } from './query'; export { createMutationOperations } from './mutation'; /** * Create an ORM client instance @@ -124,12 +129,15 @@ export function createClient(config: OrmClientConfig) { blueprint: new BlueprintModel(client), blueprintConstruction: new BlueprintConstructionModel(client), blueprintTemplate: new BlueprintTemplateModel(client), + capabilitiesModule: new CapabilitiesModuleModel(client), catalogModule: new CatalogModuleModel(client), computeLogModule: new ComputeLogModuleModel(client), configSecretsUserModule: new ConfigSecretsUserModuleModel(client), connectedAccountsModule: new ConnectedAccountsModuleModel(client), + contentPresetModule: new ContentPresetModuleModel(client), cryptoAddressesModule: new CryptoAddressesModuleModel(client), cryptoAuthModule: new CryptoAuthModuleModel(client), + dataCapabilitiesField: new DataCapabilitiesFieldModel(client), databaseProvisionModule: new DatabaseProvisionModuleModel(client), databaseSettingsModule: new DatabaseSettingsModuleModel(client), dbPoolConfig: new DbPoolConfigModel(client), @@ -140,9 +148,11 @@ export function createClient(config: OrmClientConfig) { denormalizedTableField: new DenormalizedTableFieldModel(client), devicesModule: new DevicesModuleModel(client), domainModule: new DomainModuleModel(client), + emailSenderModule: new EmailSenderModuleModel(client), emailsModule: new EmailsModuleModel(client), entityTypeProvision: new EntityTypeProvisionModel(client), eventsModule: new EventsModuleModel(client), + fileRefField: new FileRefFieldModel(client), functionDeploymentModule: new FunctionDeploymentModuleModel(client), functionInvocationModule: new FunctionInvocationModuleModel(client), functionModule: new FunctionModuleModel(client), @@ -164,8 +174,8 @@ export function createClient(config: OrmClientConfig) { merkleStoreModule: new MerkleStoreModuleModel(client), namespaceModule: new NamespaceModuleModel(client), notificationsModule: new NotificationsModuleModel(client), + oauthRequestsModule: new OauthRequestsModuleModel(client), pagesModule: new PagesModuleModel(client), - permissionsModule: new PermissionsModuleModel(client), phoneNumbersModule: new PhoneNumbersModuleModel(client), plansModule: new PlansModuleModel(client), principalAuthModule: new PrincipalAuthModuleModel(client), @@ -177,6 +187,7 @@ export function createClient(config: OrmClientConfig) { resourceModule: new ResourceModuleModel(client), rlsModule: new RlsModuleModel(client), routeModule: new RouteModuleModel(client), + scopeTypesModule: new ScopeTypesModuleModel(client), secureTableProvision: new SecureTableProvisionModel(client), sessionSecretsModule: new SessionSecretsModuleModel(client), sessionsModule: new SessionsModuleModel(client), @@ -187,12 +198,12 @@ export function createClient(config: OrmClientConfig) { userAuthModule: new UserAuthModuleModel(client), userCredentialsModule: new UserCredentialsModuleModel(client), userSettingsModule: new UserSettingsModuleModel(client), + userSettingsSecurityModule: new UserSettingsSecurityModuleModel(client), userStateModule: new UserStateModuleModel(client), usersModule: new UsersModuleModel(client), webauthnAuthModule: new WebauthnAuthModuleModel(client), webauthnCredentialsModule: new WebauthnCredentialsModuleModel(client), webhookModule: new WebhookModuleModel(client), - query: createQueryOperations(client), mutation: createMutationOperations(client), }; } diff --git a/sdk/constructive-react/src/modules/orm/input-types.ts b/sdk/constructive-react/src/modules/orm/input-types.ts index ed552e4810..27a0a0b958 100644 --- a/sdk/constructive-react/src/modules/orm/input-types.ts +++ b/sdk/constructive-react/src/modules/orm/input-types.ts @@ -236,7 +236,7 @@ export interface AgentModule { agentTableName?: string | null; apiName?: string | null; databaseId?: string | null; - defaultPermissions?: string[] | null; + defaultCapabilities?: string[] | null; entityField?: string | null; entityTableId?: string | null; hasAgents?: boolean | null; @@ -281,7 +281,7 @@ export interface ApiSurfaceModule { corsSettingsTableId?: string | null; corsSettingsTableName?: string | null; databaseId?: string | null; - defaultPermissions?: string[] | null; + defaultCapabilities?: string[] | null; entityField?: string | null; entityTableId?: string | null; id: string; @@ -301,7 +301,7 @@ export interface AppModule { appsTableName?: string | null; catalogModuleId?: string | null; databaseId?: string | null; - defaultPermissions?: string[] | null; + defaultCapabilities?: string[] | null; entityField?: string | null; entityTableId?: string | null; id: string; @@ -320,8 +320,8 @@ export interface BillingModule { balancesTableId?: string | null; balancesTableName?: string | null; databaseId?: string | null; + defaultCapabilities?: string[] | null; defaultMeterCatalog?: Record | null; - defaultPermissions?: string[] | null; id: string; ledgerTableId?: string | null; ledgerTableName?: string | null; @@ -349,16 +349,22 @@ export interface BillingProviderModule { apiName?: string | null; billingCustomersTableId?: string | null; billingCustomersTableName?: string | null; + billingInvoicesTableId?: string | null; + billingInvoicesTableName?: string | null; billingPricesTableId?: string | null; billingPricesTableName?: string | null; billingProductsTableId?: string | null; billingProductsTableName?: string | null; + billingRefundsTableId?: string | null; + billingRefundsTableName?: string | null; billingSubscriptionsTableId?: string | null; billingSubscriptionsTableName?: string | null; billingWebhookEventsTableId?: string | null; billingWebhookEventsTableName?: string | null; databaseId?: string | null; id: string; + listPendingUsageSyncFunction?: string | null; + markUsageSyncedFunction?: string | null; prefix?: string | null; pricesTableId?: string | null; privateApiName?: string | null; @@ -366,8 +372,10 @@ export interface BillingProviderModule { processBillingEventFunction?: string | null; productsTableId?: string | null; provider?: string | null; + recordRefundFunction?: string | null; schemaId?: string | null; subscriptionsTableId?: string | null; + upsertInvoiceFunction?: string | null; } /** An owned, editable blueprint scoped to a specific database. Created by copying from a blueprint_template via copy_template_to_blueprint() or built from scratch. The owner can customize the definition at any time. Execute it with construct_blueprint() which creates a separate blueprint_construction record to track the build. */ export interface Blueprint { @@ -464,16 +472,42 @@ export interface BlueprintTemplate { /** Access control for the template. private: only the owner can see and copy. public: anyone can browse and copy from the marketplace. Defaults to private. */ visibility?: string | null; } +export interface CapabilitiesModule { + actorTableId?: string | null; + apiName?: string | null; + bitlen?: number | null; + databaseId?: string | null; + defaultTableId?: string | null; + defaultTableName?: string | null; + entityField?: string | null; + entityTableId?: string | null; + getByMask?: string | null; + getMask?: string | null; + getMaskByName?: string | null; + getPaddedMask?: string | null; + id: string; + prefix?: string | null; + privateApiName?: string | null; + privateSchemaId?: string | null; + privateSchemaName?: string | null; + publicSchemaName?: string | null; + schemaId?: string | null; + scope?: string | null; + tableId?: string | null; + tableName?: string | null; +} export interface CatalogModule { apiName?: string | null; apisTableId?: string | null; apisTableName?: string | null; appsTableId?: string | null; appsTableName?: string | null; + bindingsTableId?: string | null; + bindingsTableName?: string | null; bucketsTableId?: string | null; bucketsTableName?: string | null; databaseId?: string | null; - defaultPermissions?: string[] | null; + defaultCapabilities?: string[] | null; domainsTableId?: string | null; domainsTableName?: string | null; entityTableId?: string | null; @@ -548,6 +582,25 @@ export interface ConnectedAccountsModule { tableId?: string | null; tableName?: string | null; } +export interface ContentPresetModule { + apiName?: string | null; + contentPresetsTableId?: string | null; + createdAt?: string | null; + databaseId?: string | null; + entityTableId?: string | null; + id: string; + merkleStoreModuleId?: string | null; + policies?: Record | null; + prefix?: string | null; + privateApiName?: string | null; + privateSchemaId?: string | null; + privateSchemaName?: string | null; + provisions?: Record | null; + publicSchemaId?: string | null; + publicSchemaName?: string | null; + scope?: string | null; + storeName?: string | null; +} export interface CryptoAddressesModule { apiName?: string | null; cryptoNetwork?: string | null; @@ -576,6 +629,19 @@ export interface CryptoAuthModule { userField?: string | null; usersTableId?: string | null; } +export interface DataCapabilitiesField { + capabilitiesModuleId?: string | null; + databaseId?: string | null; + fieldId?: string | null; + fromFieldId?: string | null; + id: string; + mappingFieldId?: string | null; + mappingKeyFieldId?: string | null; + mappingTableId?: string | null; + mode?: string | null; + subsetGuard?: boolean | null; + tableId?: 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 { /** When true, cold provisioning runs in the database:provision background job and the insert returns a pending ticket; when false, provisioning runs inline in the insert trigger */ @@ -598,7 +664,7 @@ export interface DatabaseProvisionModule { /** Uniform billing anchor: when the request was fulfilled with a usable database (cold provision completion or warm pool claim). Platform absorbs all provisioning compute before this point */ fulfilledAt?: string | null; id: string; - /** JSONB array of modules to install. Each element is either a string ("users_module") or a [name, options] tuple (["permissions_module", {"scope": "app"}]) */ + /** JSONB array of modules to install. Each element is either a string ("users_module") or a [name, options] tuple (["capabilities_module", {"scope": "app"}]) */ modules?: Record | null; /** Additional configuration options for provisioning */ options?: Record | null; @@ -617,7 +683,7 @@ export interface DatabaseSettingsModule { databaseId?: string | null; databaseSettingsTableId?: string | null; databaseSettingsTableName?: string | null; - defaultPermissions?: string[] | null; + defaultCapabilities?: string[] | null; entityField?: string | null; entityTableId?: string | null; id: string; @@ -701,7 +767,7 @@ export interface DbUsageModule { collectDbQueryStatsFunction?: string | null; collectDbTableStatsFunction?: string | null; databaseId?: string | null; - defaultPermissions?: string[] | null; + defaultCapabilities?: string[] | null; entityField?: string | null; id: string; interval?: string | null; @@ -756,7 +822,7 @@ export interface DomainModule { apiName?: string | null; catalogModuleId?: string | null; databaseId?: string | null; - defaultPermissions?: string[] | null; + defaultCapabilities?: string[] | null; domainEventsTableId?: string | null; domainEventsTableName?: string | null; domainVerificationsTableId?: string | null; @@ -778,6 +844,28 @@ export interface DomainModule { schemaId?: string | null; scope?: string | null; } +export interface EmailSenderModule { + apiName?: string | null; + databaseId?: string | null; + defaultCapabilities?: string[] | null; + emailIdentitiesTableId?: string | null; + emailIdentitiesTableName?: string | null; + emailProviderAccountsTableId?: string | null; + emailProviderAccountsTableName?: string | null; + emailSiteIdentitiesTableId?: string | null; + emailSiteIdentitiesTableName?: string | null; + entityField?: string | null; + entityTableId?: string | null; + id: string; + policies?: Record | null; + prefix?: string | null; + privateApiName?: string | null; + provisions?: Record | null; + publicSchemaName?: string | null; + schemaId?: string | null; + scope?: string | null; + siteSurfaceModuleId?: string | null; +} export interface EmailsModule { apiName?: string | null; databaseId?: string | null; @@ -791,7 +879,7 @@ export interface EmailsModule { } /** * Provisions a new membership entity type. Each INSERT creates an entity table, registers a membership type, - * and installs the required modules (permissions, memberships, limits) plus optional modules (profiles, levels, invites). + * and installs the required modules (capabilities, memberships, limits) plus optional modules (profiles, levels, invites). * Uses provision_membership_table() internally. Graceful: duplicate (database_id, prefix) pairs are silently skipped * via the unique constraint (use INSERT ... ON CONFLICT DO NOTHING). * Policy behavior: by default the five entity-table RLS policies are applied (gated by is_visible). @@ -813,7 +901,7 @@ export interface EntityTypeProvision { * - policies (jsonb array) RLS policy overrides. NULL = apply defaults from apply_function_security(). * Creates {prefix}_function_definitions (or {prefix}_{key}_function_definitions for non-default keys) * with entity-scoped RLS and a job trigger dispatching function:provision tasks. - * Registers manage_functions + invoke_functions permission bits on first provision. + * Registers manage_functions + invoke_functions capability bits on first provision. * Example: functions := '[{}]'::jsonb */ functions?: Record | null; @@ -823,9 +911,9 @@ export interface EntityTypeProvision { * Each element recognizes (all optional): * - key (text) module discriminator. Defaults to 'default'. * - policies (jsonb array) RLS policy overrides. NULL = apply defaults from apply_graph_security(). - * Registers manage_graphs + execute_graphs permission bits on first provision. + * Registers manage_graphs + execute_graphs capability bits on first provision. * Graph module requires a merkle_store_module_id dependency, so entity_type_provision - * only registers permissions here. The graph module itself must be provisioned + * only registers capabilities here. The graph module itself must be provisioned * separately with the merkle store dependency resolved. * Example: graphs := '[{}]'::jsonb */ @@ -865,8 +953,11 @@ export interface EntityTypeProvision { hasLimits?: boolean | null; /** * Whether to provision profiles_module for this type. Defaults to false. - * Profiles provide named permission roles (e.g. 'Editor', 'Viewer') with pre-configured permission bitmasks. - * When true, creates profile tables and applies profiles security. + * Profiles provide named capability roles (e.g. 'Editor', 'Viewer') with pre-configured capability bitmasks. + * When true, creates profile tables and applies profiles security. A membership may hold + * any number of profiles: the membership_profiles assignment table holds every profile a + * membership holds and the membership mask is granted | bit_or(held profile masks), with + * memberships.profile_id kept as a pointer at one held profile. */ hasProfiles?: boolean | null; /** Unique identifier for this provision row. */ @@ -893,7 +984,7 @@ export interface EntityTypeProvision { * - policies (jsonb array) RLS policy overrides. NULL = apply defaults from apply_namespace_security(). * Creates {prefix}_namespaces (or {prefix}_{key}_namespaces for non-default keys) * with entity-scoped RLS (AuthzEntityMembership) and a rename proxy trigger. - * Registers manage_namespaces permission bit on first provision. + * Registers manage_namespaces capability bit on first provision. * Example: namespaces := '[{}]'::jsonb */ namespaces?: Record | null; @@ -915,7 +1006,7 @@ export interface EntityTypeProvision { outGraphModuleId?: string | null; outGraphsTableId?: string | null; /** - * Output: array of installed module labels (e.g. ARRAY['permissions_module:data_room', 'memberships_module:data_room', 'invites_module:data_room']). + * Output: array of installed module labels (e.g. ARRAY['capabilities_module:data_room', 'memberships_module:data_room', 'invites_module:data_room']). * Populated by the trigger. Useful for verifying which modules were provisioned. */ outInstalledModules?: string[] | null; @@ -959,7 +1050,7 @@ export interface EntityTypeProvision { parentEntity?: string | null; /** * SQL prefix used for table and module naming, e.g. 'data_room', 'team_channel'. Required. - * Drives entity table name (prefix || 's' by default), module labels (permissions_module:prefix), + * Drives entity table name (prefix || 's' by default), module labels (capabilities_module:prefix), * and membership table names (prefix_memberships, prefix_members, etc.). * Must be unique per database — the (database_id, prefix) constraint ensures graceful ON CONFLICT DO NOTHING. */ @@ -973,8 +1064,8 @@ export interface EntityTypeProvision { * Defaults (applied when table_provision IS NULL and skip_entity_policies=false): * - SELECT (parent_member): parent entity members can see child entities (only when is_visible=true) * - SELECT (self_member): direct members of the entity can see it - * - INSERT: create_entity permission on the parent entity - * - UPDATE: admin_entity permission on the entity itself + * - INSERT: create_entity capability on the parent entity + * - UPDATE: admin_entity capability on the entity itself * - DELETE: owner of the entity can delete it */ skipEntityPolicies?: boolean | null; @@ -993,7 +1084,7 @@ export interface EntityTypeProvision { * - 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 + * - restrict_reads (boolean) require read_files capability 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 @@ -1019,7 +1110,7 @@ export interface EntityTypeProvision { tableName?: string | null; /** * Single jsonb object describing the full security setup to apply to the entity table. - * Uses the same vocabulary as metaschema_modules_public.provision_table() and blueprint tables[] + * Uses the same vocabulary as metaschema_modules_private.provision_table() and blueprint tables[] * entries, so an entity table is configured the same way an ordinary blueprint table is. * Defaults to NULL; when non-NULL, the five default policies are implicitly replaced by * table_provision.policies[] (is_visible becomes a no-op on this path). @@ -1056,7 +1147,7 @@ export interface EventsModule { actorTableId?: string | null; apiName?: string | null; databaseId?: string | null; - defaultPermissions?: string[] | null; + defaultCapabilities?: string[] | null; entityField?: string | null; entityTableId?: string | null; eventAggregatesTableId?: string | null; @@ -1065,6 +1156,7 @@ export interface EventsModule { eventTypesTableName?: string | null; eventsTableId?: string | null; eventsTableName?: string | null; + expireGrants?: string | null; grantAchievement?: string | null; id: string; interval?: string | null; @@ -1081,9 +1173,11 @@ export interface EventsModule { privateSchemaId?: string | null; privateSchemaName?: string | null; publicSchemaName?: string | null; + recomputeCapabilities?: string | null; recordEvent?: string | null; removeEvent?: string | null; retention?: string | null; + revokeAchievement?: string | null; schemaId?: string | null; scope?: string | null; stepsRequired?: string | null; @@ -1093,13 +1187,26 @@ export interface EventsModule { tgEventBool?: string | null; tgEventToggle?: string | null; tgEventToggleBool?: string | null; + tgLevelGrantSync?: string | null; tgUpdateAggregates?: string | null; + trustLadder?: Record | null; upsertAggregate?: string | null; } +export interface FileRefField { + bucketKey?: string | null; + bucketTags?: string[] | null; + databaseId?: string | null; + enforceFk?: boolean | null; + fieldId?: string | null; + id: string; + isPublic?: boolean | null; + storageModuleId?: string | null; + tableId?: string | null; +} export interface FunctionDeploymentModule { apiName?: string | null; databaseId?: string | null; - defaultPermissions?: string[] | null; + defaultCapabilities?: string[] | null; deploymentEventsTableId?: string | null; deploymentEventsTableName?: string | null; deploymentsTableId?: string | null; @@ -1124,7 +1231,7 @@ export interface FunctionInvocationModule { attemptsTableId?: string | null; attemptsTableName?: string | null; databaseId?: string | null; - defaultPermissions?: string[] | null; + defaultCapabilities?: string[] | null; entityField?: string | null; entityTableId?: string | null; executionLogsTableId?: string | null; @@ -1148,7 +1255,7 @@ export interface FunctionModule { bindingsTableName?: string | null; capabilityBindingsTableId?: string | null; databaseId?: string | null; - defaultPermissions?: string[] | null; + defaultCapabilities?: string[] | null; definitionsTableId?: string | null; definitionsTableName?: string | null; entityField?: string | null; @@ -1170,7 +1277,7 @@ export interface GraphExecutionModule { apiName?: string | null; createdAt?: string | null; databaseId?: string | null; - defaultPermissions?: string[] | null; + defaultCapabilities?: string[] | null; entityField?: string | null; entityTableId?: string | null; executionsTableId?: string | null; @@ -1195,7 +1302,7 @@ export interface GraphModule { apiName?: string | null; createdAt?: string | null; databaseId?: string | null; - defaultPermissions?: string[] | null; + defaultCapabilities?: string[] | null; entityField?: string | null; entityTableId?: string | null; graphsTableId?: string | null; @@ -1218,7 +1325,7 @@ export interface HierarchyModule { chartEdgesTableName?: string | null; createdAt?: string | null; databaseId?: string | null; - defaultPermissions?: string[] | null; + defaultCapabilities?: string[] | null; entityField?: string | null; entityTableId?: string | null; getManagersFunction?: string | null; @@ -1239,7 +1346,7 @@ export interface HierarchyModule { export interface HttpRouteModule { apiName?: string | null; databaseId?: string | null; - defaultPermissions?: string[] | null; + defaultCapabilities?: string[] | null; entityField?: string | null; entityTableId?: string | null; functionModuleId?: string | null; @@ -1442,6 +1549,7 @@ export interface LimitsModule { limitCreditsTableId?: string | null; limitDecrementFunction?: string | null; limitDecrementTrigger?: string | null; + limitDefaults?: Record | null; limitIncrementFunction?: string | null; limitIncrementTrigger?: string | null; limitUpdateTrigger?: string | null; @@ -1472,9 +1580,12 @@ export interface MembershipsModule { adminGrantsTableId?: string | null; adminGrantsTableName?: string | null; apiName?: string | null; + capabilitiesTableId?: string | null; + capabilityDefaultCapabilitiesTableId?: string | null; + capabilityDefaultGrantsTableId?: string | null; databaseId?: string | null; + defaultCapabilitiesTableId?: string | null; defaultLimitsTableId?: string | null; - defaultPermissionsTableId?: string | null; entityField?: string | null; entityIdsByMask?: string | null; entityIdsByPerm?: string | null; @@ -1497,9 +1608,6 @@ export interface MembershipsModule { membershipsTableName?: string | null; ownerGrantsTableId?: string | null; ownerGrantsTableName?: string | null; - permissionDefaultGrantsTableId?: string | null; - permissionDefaultPermissionsTableId?: string | null; - permissionsTableId?: string | null; prefix?: string | null; privateApiName?: string | null; privateSchemaId?: string | null; @@ -1511,6 +1619,7 @@ export interface MembershipsModule { } export interface MerkleStoreModule { apiName?: string | null; + capabilityKey?: string | null; commitTableId?: string | null; createdAt?: string | null; databaseId?: string | null; @@ -1518,7 +1627,6 @@ export interface MerkleStoreModule { functionPrefix?: string | null; id: string; objectTableId?: string | null; - permissionKey?: string | null; prefix?: string | null; privateApiName?: string | null; privateSchemaId?: string | null; @@ -1532,7 +1640,7 @@ export interface MerkleStoreModule { export interface NamespaceModule { apiName?: string | null; databaseId?: string | null; - defaultPermissions?: string[] | null; + defaultCapabilities?: string[] | null; entityField?: string | null; entityTableId?: string | null; id: string; @@ -1554,7 +1662,7 @@ export interface NotificationsModule { apiName?: string | null; channelsTableId?: string | null; databaseId?: string | null; - defaultPermissions?: string[] | null; + defaultCapabilities?: string[] | null; deliveryLogTableId?: string | null; entityField?: string | null; hasChannels?: boolean | null; @@ -1576,6 +1684,28 @@ export interface NotificationsModule { suppressionsTableId?: string | null; userSettingsTableId?: string | null; } +/** + * Config row for the oauth_requests_module, which provisions the in-flight half of an SSO + * sign-in: the OAuth authorization requests table (state + PKCE code_verifier) and the + * pending identity links table (a verified identity parked under a single-use ticket), + * both private, plus the five SECURITY DEFINER procedures that are their only surface. + * Sibling of identity_providers_module (durable provider configuration) rather than part + * of it: this is ephemeral, purged flow state with its own retention. + */ +export interface OauthRequestsModule { + databaseId?: string | null; + entityField?: string | null; + entityTableId?: string | null; + id: string; + oauthAuthorizationRequestsTableId?: string | null; + oauthAuthorizationRequestsTableName?: string | null; + pendingIdentityLinksTableId?: string | null; + pendingIdentityLinksTableName?: string | null; + prefix?: string | null; + privateSchemaId?: string | null; + privateSchemaName?: string | null; + scope?: string | null; +} export interface PagesModule { apiName?: string | null; createdAt?: string | null; @@ -1597,30 +1727,6 @@ export interface PagesModule { sitesTableId?: string | null; storeNamePrefix?: string | null; } -export interface PermissionsModule { - actorTableId?: string | null; - apiName?: string | null; - bitlen?: number | null; - databaseId?: string | null; - defaultTableId?: string | null; - defaultTableName?: string | null; - entityField?: string | null; - entityTableId?: string | null; - getByMask?: string | null; - getMask?: string | null; - getMaskByName?: string | null; - getPaddedMask?: string | null; - id: string; - prefix?: string | null; - privateApiName?: string | null; - privateSchemaId?: string | null; - privateSchemaName?: string | null; - publicSchemaName?: string | null; - schemaId?: string | null; - scope?: string | null; - tableId?: string | null; - tableName?: string | null; -} export interface PhoneNumbersModule { apiName?: string | null; databaseId?: string | null; @@ -1679,22 +1785,24 @@ export interface PrincipalAuthModule { export interface ProfilesModule { actorTableId?: string | null; apiName?: string | null; + capabilitiesTableId?: string | null; databaseId?: string | null; entityField?: string | null; entityTableId?: string | null; id: string; + membershipProfilesTableId?: string | null; + membershipProfilesTableName?: string | null; membershipsTableId?: string | null; - permissionsTableId?: string | null; prefix?: string | null; privateApiName?: string | null; privateSchemaId?: string | null; privateSchemaName?: string | null; + profileCapabilitiesTableId?: string | null; + profileCapabilitiesTableName?: string | null; profileDefinitionGrantsTableId?: string | null; profileDefinitionGrantsTableName?: string | null; profileGrantsTableId?: string | null; profileGrantsTableName?: string | null; - profilePermissionsTableId?: string | null; - profilePermissionsTableName?: string | null; profileTemplatesTableId?: string | null; profileTemplatesTableName?: string | null; publicSchemaName?: string | null; @@ -1707,7 +1815,7 @@ export interface RateLimitMetersModule { apiName?: string | null; checkRateLimitFunction?: string | null; databaseId?: string | null; - defaultPermissions?: string[] | null; + defaultCapabilities?: string[] | null; id: string; prefix?: string | null; privateApiName?: string | null; @@ -1885,7 +1993,7 @@ export interface RelationProvision { export interface ResourceModule { apiName?: string | null; databaseId?: string | null; - defaultPermissions?: string[] | null; + defaultCapabilities?: string[] | null; entityField?: string | null; entityTableId?: string | null; id: string; @@ -1937,9 +2045,11 @@ export interface RlsModule { } export interface RouteModule { apiName?: string | null; + appLinksFunctionName?: string | null; catalogModuleId?: string | null; databaseId?: string | null; - defaultPermissions?: string[] | null; + deepLinkFunctionName?: string | null; + defaultCapabilities?: string[] | null; domainModuleId?: string | null; entityField?: string | null; entityTableId?: string | null; @@ -1961,6 +2071,13 @@ export interface RouteModule { schemaId?: string | null; scope?: string | null; } +export interface ScopeTypesModule { + databaseId?: string | null; + id: string; + privateSchemaName?: string | null; + schemaId?: string | null; + scopeTypesTableId?: string | null; +} /** Provisions security, fields, grants, and policies onto a table. Each row can independently: (1) create fields via nodes[] array (supporting multiple Data* modules per row), (2) grant privileges via grants[] array (supporting per-role privilege targeting), (3) create RLS policies via policies[] array (supporting multiple Authz* policies per row). Multiple rows can target the same table to compose different concerns. All three concerns are optional and independent. */ export interface SecureTableProvision { /** The database this provision belongs to. Required. */ @@ -2013,7 +2130,7 @@ export interface SiteSurfaceModule { apiName?: string | null; catalogModuleId?: string | null; databaseId?: string | null; - defaultPermissions?: string[] | null; + defaultCapabilities?: string[] | null; entityField?: string | null; entityTableId?: string | null; id: string; @@ -2074,8 +2191,8 @@ export interface StorageModule { catalogModuleId?: string | null; confirmUploadDelay?: string | null; databaseId?: string | null; + defaultCapabilities?: string[] | null; defaultMaxFileSize?: string | null; - defaultPermissions?: string[] | null; downloadUrlExpirySeconds?: number | null; endpoint?: string | null; entityField?: string | null; @@ -2183,6 +2300,15 @@ export interface UserSettingsModule { tableId?: string | null; tableName?: string | null; } +export interface UserSettingsSecurityModule { + apiName?: string | null; + databaseId?: string | null; + id: string; + ownerTableId?: string | null; + schemaId?: string | null; + tableId?: string | null; + tableName?: string | null; +} export interface UserStateModule { databaseId?: string | null; entityField?: string | null; @@ -2236,7 +2362,7 @@ export interface WebauthnCredentialsModule { export interface WebhookModule { apiName?: string | null; databaseId?: string | null; - defaultPermissions?: string[] | null; + defaultCapabilities?: string[] | null; entityField?: string | null; entityTableId?: string | null; functionInvocationModuleId?: string | null; @@ -2292,6 +2418,9 @@ export interface BlueprintTemplateRelations { blueprintTemplatesByForkedFromId?: ConnectionResult; blueprintsByTemplateId?: ConnectionResult; } +export interface CapabilitiesModuleRelations { + dataCapabilitiesFields?: ConnectionResult; +} export interface CatalogModuleRelations { apiSurfaceModules?: ConnectionResult; appModules?: ConnectionResult; @@ -2302,8 +2431,14 @@ export interface CatalogModuleRelations { export interface ComputeLogModuleRelations {} export interface ConfigSecretsUserModuleRelations {} export interface ConnectedAccountsModuleRelations {} +export interface ContentPresetModuleRelations { + merkleStoreModule?: MerkleStoreModule | null; +} export interface CryptoAddressesModuleRelations {} export interface CryptoAuthModuleRelations {} +export interface DataCapabilitiesFieldRelations { + capabilitiesModule?: CapabilitiesModule | null; +} export interface DatabaseProvisionModuleRelations {} export interface DatabaseSettingsModuleRelations {} export interface DbPoolConfigRelations {} @@ -2319,9 +2454,15 @@ export interface DomainModuleRelations { catalogModule?: CatalogModule | null; routeModules?: ConnectionResult; } +export interface EmailSenderModuleRelations { + siteSurfaceModule?: SiteSurfaceModule | null; +} export interface EmailsModuleRelations {} export interface EntityTypeProvisionRelations {} export interface EventsModuleRelations {} +export interface FileRefFieldRelations { + storageModule?: StorageModule | null; +} export interface FunctionDeploymentModuleRelations { functionModule?: FunctionModule | null; namespaceModule?: NamespaceModule | null; @@ -2361,6 +2502,7 @@ export interface LimitsModuleRelations {} export interface MembershipTypesModuleRelations {} export interface MembershipsModuleRelations {} export interface MerkleStoreModuleRelations { + contentPresetModules?: ConnectionResult; dbPresetModules?: ConnectionResult; graphModules?: ConnectionResult; pagesModules?: ConnectionResult; @@ -2372,11 +2514,11 @@ export interface NamespaceModuleRelations { webhookModules?: ConnectionResult; } export interface NotificationsModuleRelations {} +export interface OauthRequestsModuleRelations {} export interface PagesModuleRelations { merkleStoreModule?: MerkleStoreModule | null; siteSurfaceModule?: SiteSurfaceModule | null; } -export interface PermissionsModuleRelations {} export interface PhoneNumbersModuleRelations {} export interface PlansModuleRelations {} export interface PrincipalAuthModuleRelations {} @@ -2395,21 +2537,25 @@ export interface RouteModuleRelations { catalogModule?: CatalogModule | null; domainModule?: DomainModule | null; } +export interface ScopeTypesModuleRelations {} export interface SecureTableProvisionRelations {} export interface SessionSecretsModuleRelations {} export interface SessionsModuleRelations {} export interface SiteSurfaceModuleRelations { catalogModule?: CatalogModule | null; + emailSenderModules?: ConnectionResult; pagesModules?: ConnectionResult; } export interface StorageLogModuleRelations {} export interface StorageModuleRelations { + fileRefFields?: ConnectionResult; httpRouteModules?: ConnectionResult; } export interface TransferLogModuleRelations {} export interface UserAuthModuleRelations {} export interface UserCredentialsModuleRelations {} export interface UserSettingsModuleRelations {} +export interface UserSettingsSecurityModuleRelations {} export interface UserStateModuleRelations {} export interface UsersModuleRelations {} export interface WebauthnAuthModuleRelations {} @@ -2431,15 +2577,19 @@ export type BlueprintWithRelations = Blueprint & BlueprintRelations; export type BlueprintConstructionWithRelations = BlueprintConstruction & BlueprintConstructionRelations; export type BlueprintTemplateWithRelations = BlueprintTemplate & BlueprintTemplateRelations; +export type CapabilitiesModuleWithRelations = CapabilitiesModule & CapabilitiesModuleRelations; export type CatalogModuleWithRelations = CatalogModule & CatalogModuleRelations; export type ComputeLogModuleWithRelations = ComputeLogModule & ComputeLogModuleRelations; export type ConfigSecretsUserModuleWithRelations = ConfigSecretsUserModule & ConfigSecretsUserModuleRelations; export type ConnectedAccountsModuleWithRelations = ConnectedAccountsModule & ConnectedAccountsModuleRelations; +export type ContentPresetModuleWithRelations = ContentPresetModule & ContentPresetModuleRelations; export type CryptoAddressesModuleWithRelations = CryptoAddressesModule & CryptoAddressesModuleRelations; export type CryptoAuthModuleWithRelations = CryptoAuthModule & CryptoAuthModuleRelations; +export type DataCapabilitiesFieldWithRelations = DataCapabilitiesField & + DataCapabilitiesFieldRelations; export type DatabaseProvisionModuleWithRelations = DatabaseProvisionModule & DatabaseProvisionModuleRelations; export type DatabaseSettingsModuleWithRelations = DatabaseSettingsModule & @@ -2453,9 +2603,11 @@ export type DenormalizedTableFieldWithRelations = DenormalizedTableField & DenormalizedTableFieldRelations; export type DevicesModuleWithRelations = DevicesModule & DevicesModuleRelations; export type DomainModuleWithRelations = DomainModule & DomainModuleRelations; +export type EmailSenderModuleWithRelations = EmailSenderModule & EmailSenderModuleRelations; export type EmailsModuleWithRelations = EmailsModule & EmailsModuleRelations; export type EntityTypeProvisionWithRelations = EntityTypeProvision & EntityTypeProvisionRelations; export type EventsModuleWithRelations = EventsModule & EventsModuleRelations; +export type FileRefFieldWithRelations = FileRefField & FileRefFieldRelations; export type FunctionDeploymentModuleWithRelations = FunctionDeploymentModule & FunctionDeploymentModuleRelations; export type FunctionInvocationModuleWithRelations = FunctionInvocationModule & @@ -2484,8 +2636,8 @@ export type MembershipsModuleWithRelations = MembershipsModule & MembershipsModu export type MerkleStoreModuleWithRelations = MerkleStoreModule & MerkleStoreModuleRelations; export type NamespaceModuleWithRelations = NamespaceModule & NamespaceModuleRelations; export type NotificationsModuleWithRelations = NotificationsModule & NotificationsModuleRelations; +export type OauthRequestsModuleWithRelations = OauthRequestsModule & OauthRequestsModuleRelations; export type PagesModuleWithRelations = PagesModule & PagesModuleRelations; -export type PermissionsModuleWithRelations = PermissionsModule & PermissionsModuleRelations; export type PhoneNumbersModuleWithRelations = PhoneNumbersModule & PhoneNumbersModuleRelations; export type PlansModuleWithRelations = PlansModule & PlansModuleRelations; export type PrincipalAuthModuleWithRelations = PrincipalAuthModule & PrincipalAuthModuleRelations; @@ -2498,6 +2650,7 @@ export type RelationProvisionWithRelations = RelationProvision & RelationProvisi export type ResourceModuleWithRelations = ResourceModule & ResourceModuleRelations; export type RlsModuleWithRelations = RlsModule & RlsModuleRelations; export type RouteModuleWithRelations = RouteModule & RouteModuleRelations; +export type ScopeTypesModuleWithRelations = ScopeTypesModule & ScopeTypesModuleRelations; export type SecureTableProvisionWithRelations = SecureTableProvision & SecureTableProvisionRelations; export type SessionSecretsModuleWithRelations = SessionSecretsModule & @@ -2511,6 +2664,8 @@ export type UserAuthModuleWithRelations = UserAuthModule & UserAuthModuleRelatio export type UserCredentialsModuleWithRelations = UserCredentialsModule & UserCredentialsModuleRelations; export type UserSettingsModuleWithRelations = UserSettingsModule & UserSettingsModuleRelations; +export type UserSettingsSecurityModuleWithRelations = UserSettingsSecurityModule & + UserSettingsSecurityModuleRelations; export type UserStateModuleWithRelations = UserStateModule & UserStateModuleRelations; export type UsersModuleWithRelations = UsersModule & UsersModuleRelations; export type WebauthnAuthModuleWithRelations = WebauthnAuthModule & WebauthnAuthModuleRelations; @@ -2523,7 +2678,7 @@ export type AgentModuleSelect = { agentTableName?: boolean; apiName?: boolean; databaseId?: boolean; - defaultPermissions?: boolean; + defaultCapabilities?: boolean; entityField?: boolean; entityTableId?: boolean; hasAgents?: boolean; @@ -2568,7 +2723,7 @@ export type ApiSurfaceModuleSelect = { corsSettingsTableId?: boolean; corsSettingsTableName?: boolean; databaseId?: boolean; - defaultPermissions?: boolean; + defaultCapabilities?: boolean; entityField?: boolean; entityTableId?: boolean; id?: boolean; @@ -2591,7 +2746,7 @@ export type AppModuleSelect = { appsTableName?: boolean; catalogModuleId?: boolean; databaseId?: boolean; - defaultPermissions?: boolean; + defaultCapabilities?: boolean; entityField?: boolean; entityTableId?: boolean; id?: boolean; @@ -2613,8 +2768,8 @@ export type BillingModuleSelect = { balancesTableId?: boolean; balancesTableName?: boolean; databaseId?: boolean; + defaultCapabilities?: boolean; defaultMeterCatalog?: boolean; - defaultPermissions?: boolean; id?: boolean; ledgerTableId?: boolean; ledgerTableName?: boolean; @@ -2642,16 +2797,22 @@ export type BillingProviderModuleSelect = { apiName?: boolean; billingCustomersTableId?: boolean; billingCustomersTableName?: boolean; + billingInvoicesTableId?: boolean; + billingInvoicesTableName?: boolean; billingPricesTableId?: boolean; billingPricesTableName?: boolean; billingProductsTableId?: boolean; billingProductsTableName?: boolean; + billingRefundsTableId?: boolean; + billingRefundsTableName?: boolean; billingSubscriptionsTableId?: boolean; billingSubscriptionsTableName?: boolean; billingWebhookEventsTableId?: boolean; billingWebhookEventsTableName?: boolean; databaseId?: boolean; id?: boolean; + listPendingUsageSyncFunction?: boolean; + markUsageSyncedFunction?: boolean; prefix?: boolean; pricesTableId?: boolean; privateApiName?: boolean; @@ -2659,8 +2820,10 @@ export type BillingProviderModuleSelect = { processBillingEventFunction?: boolean; productsTableId?: boolean; provider?: boolean; + recordRefundFunction?: boolean; schemaId?: boolean; subscriptionsTableId?: boolean; + upsertInvoiceFunction?: boolean; }; export type BlueprintSelect = { createdAt?: boolean; @@ -2738,16 +2901,48 @@ export type BlueprintTemplateSelect = { orderBy?: BlueprintOrderBy[]; }; }; +export type CapabilitiesModuleSelect = { + actorTableId?: boolean; + apiName?: boolean; + bitlen?: boolean; + databaseId?: boolean; + defaultTableId?: boolean; + defaultTableName?: boolean; + entityField?: boolean; + entityTableId?: boolean; + getByMask?: boolean; + getMask?: boolean; + getMaskByName?: boolean; + getPaddedMask?: boolean; + id?: boolean; + prefix?: boolean; + privateApiName?: boolean; + privateSchemaId?: boolean; + privateSchemaName?: boolean; + publicSchemaName?: boolean; + schemaId?: boolean; + scope?: boolean; + tableId?: boolean; + tableName?: boolean; + dataCapabilitiesFields?: { + select: DataCapabilitiesFieldSelect; + first?: number; + filter?: DataCapabilitiesFieldFilter; + orderBy?: DataCapabilitiesFieldOrderBy[]; + }; +}; export type CatalogModuleSelect = { apiName?: boolean; apisTableId?: boolean; apisTableName?: boolean; appsTableId?: boolean; appsTableName?: boolean; + bindingsTableId?: boolean; + bindingsTableName?: boolean; bucketsTableId?: boolean; bucketsTableName?: boolean; databaseId?: boolean; - defaultPermissions?: boolean; + defaultCapabilities?: boolean; domainsTableId?: boolean; domainsTableName?: boolean; entityTableId?: boolean; @@ -2852,6 +3047,28 @@ export type ConnectedAccountsModuleSelect = { tableId?: boolean; tableName?: boolean; }; +export type ContentPresetModuleSelect = { + apiName?: boolean; + contentPresetsTableId?: boolean; + createdAt?: boolean; + databaseId?: boolean; + entityTableId?: boolean; + id?: boolean; + merkleStoreModuleId?: boolean; + policies?: boolean; + prefix?: boolean; + privateApiName?: boolean; + privateSchemaId?: boolean; + privateSchemaName?: boolean; + provisions?: boolean; + publicSchemaId?: boolean; + publicSchemaName?: boolean; + scope?: boolean; + storeName?: boolean; + merkleStoreModule?: { + select: MerkleStoreModuleSelect; + }; +}; export type CryptoAddressesModuleSelect = { apiName?: boolean; cryptoNetwork?: boolean; @@ -2880,6 +3097,22 @@ export type CryptoAuthModuleSelect = { userField?: boolean; usersTableId?: boolean; }; +export type DataCapabilitiesFieldSelect = { + capabilitiesModuleId?: boolean; + databaseId?: boolean; + fieldId?: boolean; + fromFieldId?: boolean; + id?: boolean; + mappingFieldId?: boolean; + mappingKeyFieldId?: boolean; + mappingTableId?: boolean; + mode?: boolean; + subsetGuard?: boolean; + tableId?: boolean; + capabilitiesModule?: { + select: CapabilitiesModuleSelect; + }; +}; export type DatabaseProvisionModuleSelect = { async?: boolean; bootstrapError?: boolean; @@ -2906,7 +3139,7 @@ export type DatabaseSettingsModuleSelect = { databaseId?: boolean; databaseSettingsTableId?: boolean; databaseSettingsTableName?: boolean; - defaultPermissions?: boolean; + defaultCapabilities?: boolean; entityField?: boolean; entityTableId?: boolean; id?: boolean; @@ -2978,7 +3211,7 @@ export type DbUsageModuleSelect = { collectDbQueryStatsFunction?: boolean; collectDbTableStatsFunction?: boolean; databaseId?: boolean; - defaultPermissions?: boolean; + defaultCapabilities?: boolean; entityField?: boolean; id?: boolean; interval?: boolean; @@ -3033,7 +3266,7 @@ export type DomainModuleSelect = { apiName?: boolean; catalogModuleId?: boolean; databaseId?: boolean; - defaultPermissions?: boolean; + defaultCapabilities?: boolean; domainEventsTableId?: boolean; domainEventsTableName?: boolean; domainVerificationsTableId?: boolean; @@ -3064,6 +3297,31 @@ export type DomainModuleSelect = { orderBy?: RouteModuleOrderBy[]; }; }; +export type EmailSenderModuleSelect = { + apiName?: boolean; + databaseId?: boolean; + defaultCapabilities?: boolean; + emailIdentitiesTableId?: boolean; + emailIdentitiesTableName?: boolean; + emailProviderAccountsTableId?: boolean; + emailProviderAccountsTableName?: boolean; + emailSiteIdentitiesTableId?: boolean; + emailSiteIdentitiesTableName?: boolean; + entityField?: boolean; + entityTableId?: boolean; + id?: boolean; + policies?: boolean; + prefix?: boolean; + privateApiName?: boolean; + provisions?: boolean; + publicSchemaName?: boolean; + schemaId?: boolean; + scope?: boolean; + siteSurfaceModuleId?: boolean; + siteSurfaceModule?: { + select: SiteSurfaceModuleSelect; + }; +}; export type EmailsModuleSelect = { apiName?: boolean; databaseId?: boolean; @@ -3122,7 +3380,7 @@ export type EventsModuleSelect = { actorTableId?: boolean; apiName?: boolean; databaseId?: boolean; - defaultPermissions?: boolean; + defaultCapabilities?: boolean; entityField?: boolean; entityTableId?: boolean; eventAggregatesTableId?: boolean; @@ -3131,6 +3389,7 @@ export type EventsModuleSelect = { eventTypesTableName?: boolean; eventsTableId?: boolean; eventsTableName?: boolean; + expireGrants?: boolean; grantAchievement?: boolean; id?: boolean; interval?: boolean; @@ -3147,9 +3406,11 @@ export type EventsModuleSelect = { privateSchemaId?: boolean; privateSchemaName?: boolean; publicSchemaName?: boolean; + recomputeCapabilities?: boolean; recordEvent?: boolean; removeEvent?: boolean; retention?: boolean; + revokeAchievement?: boolean; schemaId?: boolean; scope?: boolean; stepsRequired?: boolean; @@ -3159,13 +3420,29 @@ export type EventsModuleSelect = { tgEventBool?: boolean; tgEventToggle?: boolean; tgEventToggleBool?: boolean; + tgLevelGrantSync?: boolean; tgUpdateAggregates?: boolean; + trustLadder?: boolean; upsertAggregate?: boolean; }; +export type FileRefFieldSelect = { + bucketKey?: boolean; + bucketTags?: boolean; + databaseId?: boolean; + enforceFk?: boolean; + fieldId?: boolean; + id?: boolean; + isPublic?: boolean; + storageModuleId?: boolean; + tableId?: boolean; + storageModule?: { + select: StorageModuleSelect; + }; +}; export type FunctionDeploymentModuleSelect = { apiName?: boolean; databaseId?: boolean; - defaultPermissions?: boolean; + defaultCapabilities?: boolean; deploymentEventsTableId?: boolean; deploymentEventsTableName?: boolean; deploymentsTableId?: boolean; @@ -3196,7 +3473,7 @@ export type FunctionInvocationModuleSelect = { attemptsTableId?: boolean; attemptsTableName?: boolean; databaseId?: boolean; - defaultPermissions?: boolean; + defaultCapabilities?: boolean; entityField?: boolean; entityTableId?: boolean; executionLogsTableId?: boolean; @@ -3226,7 +3503,7 @@ export type FunctionModuleSelect = { bindingsTableName?: boolean; capabilityBindingsTableId?: boolean; databaseId?: boolean; - defaultPermissions?: boolean; + defaultCapabilities?: boolean; definitionsTableId?: boolean; definitionsTableName?: boolean; entityField?: boolean; @@ -3266,7 +3543,7 @@ export type GraphExecutionModuleSelect = { apiName?: boolean; createdAt?: boolean; databaseId?: boolean; - defaultPermissions?: boolean; + defaultCapabilities?: boolean; entityField?: boolean; entityTableId?: boolean; executionsTableId?: boolean; @@ -3294,7 +3571,7 @@ export type GraphModuleSelect = { apiName?: boolean; createdAt?: boolean; databaseId?: boolean; - defaultPermissions?: boolean; + defaultCapabilities?: boolean; entityField?: boolean; entityTableId?: boolean; graphsTableId?: boolean; @@ -3326,7 +3603,7 @@ export type HierarchyModuleSelect = { chartEdgesTableName?: boolean; createdAt?: boolean; databaseId?: boolean; - defaultPermissions?: boolean; + defaultCapabilities?: boolean; entityField?: boolean; entityTableId?: boolean; getManagersFunction?: boolean; @@ -3347,7 +3624,7 @@ export type HierarchyModuleSelect = { export type HttpRouteModuleSelect = { apiName?: boolean; databaseId?: boolean; - defaultPermissions?: boolean; + defaultCapabilities?: boolean; entityField?: boolean; entityTableId?: boolean; functionModuleId?: boolean; @@ -3543,6 +3820,7 @@ export type LimitsModuleSelect = { limitCreditsTableId?: boolean; limitDecrementFunction?: boolean; limitDecrementTrigger?: boolean; + limitDefaults?: boolean; limitIncrementFunction?: boolean; limitIncrementTrigger?: boolean; limitUpdateTrigger?: boolean; @@ -3573,9 +3851,12 @@ export type MembershipsModuleSelect = { adminGrantsTableId?: boolean; adminGrantsTableName?: boolean; apiName?: boolean; + capabilitiesTableId?: boolean; + capabilityDefaultCapabilitiesTableId?: boolean; + capabilityDefaultGrantsTableId?: boolean; databaseId?: boolean; + defaultCapabilitiesTableId?: boolean; defaultLimitsTableId?: boolean; - defaultPermissionsTableId?: boolean; entityField?: boolean; entityIdsByMask?: boolean; entityIdsByPerm?: boolean; @@ -3598,9 +3879,6 @@ export type MembershipsModuleSelect = { membershipsTableName?: boolean; ownerGrantsTableId?: boolean; ownerGrantsTableName?: boolean; - permissionDefaultGrantsTableId?: boolean; - permissionDefaultPermissionsTableId?: boolean; - permissionsTableId?: boolean; prefix?: boolean; privateApiName?: boolean; privateSchemaId?: boolean; @@ -3612,6 +3890,7 @@ export type MembershipsModuleSelect = { }; export type MerkleStoreModuleSelect = { apiName?: boolean; + capabilityKey?: boolean; commitTableId?: boolean; createdAt?: boolean; databaseId?: boolean; @@ -3619,7 +3898,6 @@ export type MerkleStoreModuleSelect = { functionPrefix?: boolean; id?: boolean; objectTableId?: boolean; - permissionKey?: boolean; prefix?: boolean; privateApiName?: boolean; privateSchemaId?: boolean; @@ -3629,6 +3907,12 @@ export type MerkleStoreModuleSelect = { schemaId?: boolean; scope?: boolean; storeTableId?: boolean; + contentPresetModules?: { + select: ContentPresetModuleSelect; + first?: number; + filter?: ContentPresetModuleFilter; + orderBy?: ContentPresetModuleOrderBy[]; + }; dbPresetModules?: { select: DbPresetModuleSelect; first?: number; @@ -3657,7 +3941,7 @@ export type MerkleStoreModuleSelect = { export type NamespaceModuleSelect = { apiName?: boolean; databaseId?: boolean; - defaultPermissions?: boolean; + defaultCapabilities?: boolean; entityField?: boolean; entityTableId?: boolean; id?: boolean; @@ -3697,7 +3981,7 @@ export type NotificationsModuleSelect = { apiName?: boolean; channelsTableId?: boolean; databaseId?: boolean; - defaultPermissions?: boolean; + defaultCapabilities?: boolean; deliveryLogTableId?: boolean; entityField?: boolean; hasChannels?: boolean; @@ -3719,6 +4003,20 @@ export type NotificationsModuleSelect = { suppressionsTableId?: boolean; userSettingsTableId?: boolean; }; +export type OauthRequestsModuleSelect = { + databaseId?: boolean; + entityField?: boolean; + entityTableId?: boolean; + id?: boolean; + oauthAuthorizationRequestsTableId?: boolean; + oauthAuthorizationRequestsTableName?: boolean; + pendingIdentityLinksTableId?: boolean; + pendingIdentityLinksTableName?: boolean; + prefix?: boolean; + privateSchemaId?: boolean; + privateSchemaName?: boolean; + scope?: boolean; +}; export type PagesModuleSelect = { apiName?: boolean; createdAt?: boolean; @@ -3746,30 +4044,6 @@ export type PagesModuleSelect = { select: SiteSurfaceModuleSelect; }; }; -export type PermissionsModuleSelect = { - actorTableId?: boolean; - apiName?: boolean; - bitlen?: boolean; - databaseId?: boolean; - defaultTableId?: boolean; - defaultTableName?: boolean; - entityField?: boolean; - entityTableId?: boolean; - getByMask?: boolean; - getMask?: boolean; - getMaskByName?: boolean; - getPaddedMask?: boolean; - id?: boolean; - prefix?: boolean; - privateApiName?: boolean; - privateSchemaId?: boolean; - privateSchemaName?: boolean; - publicSchemaName?: boolean; - schemaId?: boolean; - scope?: boolean; - tableId?: boolean; - tableName?: boolean; -}; export type PhoneNumbersModuleSelect = { apiName?: boolean; databaseId?: boolean; @@ -3827,22 +4101,24 @@ export type PrincipalAuthModuleSelect = { export type ProfilesModuleSelect = { actorTableId?: boolean; apiName?: boolean; + capabilitiesTableId?: boolean; databaseId?: boolean; entityField?: boolean; entityTableId?: boolean; id?: boolean; + membershipProfilesTableId?: boolean; + membershipProfilesTableName?: boolean; membershipsTableId?: boolean; - permissionsTableId?: boolean; prefix?: boolean; privateApiName?: boolean; privateSchemaId?: boolean; privateSchemaName?: boolean; + profileCapabilitiesTableId?: boolean; + profileCapabilitiesTableName?: boolean; profileDefinitionGrantsTableId?: boolean; profileDefinitionGrantsTableName?: boolean; profileGrantsTableId?: boolean; profileGrantsTableName?: boolean; - profilePermissionsTableId?: boolean; - profilePermissionsTableName?: boolean; profileTemplatesTableId?: boolean; profileTemplatesTableName?: boolean; publicSchemaName?: boolean; @@ -3855,7 +4131,7 @@ export type RateLimitMetersModuleSelect = { apiName?: boolean; checkRateLimitFunction?: boolean; databaseId?: boolean; - defaultPermissions?: boolean; + defaultCapabilities?: boolean; id?: boolean; prefix?: boolean; privateApiName?: boolean; @@ -3926,7 +4202,7 @@ export type RelationProvisionSelect = { export type ResourceModuleSelect = { apiName?: boolean; databaseId?: boolean; - defaultPermissions?: boolean; + defaultCapabilities?: boolean; entityField?: boolean; entityTableId?: boolean; id?: boolean; @@ -3990,9 +4266,11 @@ export type RlsModuleSelect = { }; export type RouteModuleSelect = { apiName?: boolean; + appLinksFunctionName?: boolean; catalogModuleId?: boolean; databaseId?: boolean; - defaultPermissions?: boolean; + deepLinkFunctionName?: boolean; + defaultCapabilities?: boolean; domainModuleId?: boolean; entityField?: boolean; entityTableId?: boolean; @@ -4020,6 +4298,13 @@ export type RouteModuleSelect = { select: DomainModuleSelect; }; }; +export type ScopeTypesModuleSelect = { + databaseId?: boolean; + id?: boolean; + privateSchemaName?: boolean; + schemaId?: boolean; + scopeTypesTableId?: boolean; +}; export type SecureTableProvisionSelect = { databaseId?: boolean; fields?: boolean; @@ -4058,7 +4343,7 @@ export type SiteSurfaceModuleSelect = { apiName?: boolean; catalogModuleId?: boolean; databaseId?: boolean; - defaultPermissions?: boolean; + defaultCapabilities?: boolean; entityField?: boolean; entityTableId?: boolean; id?: boolean; @@ -4090,6 +4375,12 @@ export type SiteSurfaceModuleSelect = { catalogModule?: { select: CatalogModuleSelect; }; + emailSenderModules?: { + select: EmailSenderModuleSelect; + first?: number; + filter?: EmailSenderModuleFilter; + orderBy?: EmailSenderModuleOrderBy[]; + }; pagesModules?: { select: PagesModuleSelect; first?: number; @@ -4128,8 +4419,8 @@ export type StorageModuleSelect = { catalogModuleId?: boolean; confirmUploadDelay?: boolean; databaseId?: boolean; + defaultCapabilities?: boolean; defaultMaxFileSize?: boolean; - defaultPermissions?: boolean; downloadUrlExpirySeconds?: boolean; endpoint?: boolean; entityField?: boolean; @@ -4161,6 +4452,12 @@ export type StorageModuleSelect = { schemaId?: boolean; scope?: boolean; uploadUrlExpirySeconds?: boolean; + fileRefFields?: { + select: FileRefFieldSelect; + first?: number; + filter?: FileRefFieldFilter; + orderBy?: FileRefFieldOrderBy[]; + }; httpRouteModules?: { select: HttpRouteModuleSelect; first?: number; @@ -4238,6 +4535,15 @@ export type UserSettingsModuleSelect = { tableId?: boolean; tableName?: boolean; }; +export type UserSettingsSecurityModuleSelect = { + apiName?: boolean; + databaseId?: boolean; + id?: boolean; + ownerTableId?: boolean; + schemaId?: boolean; + tableId?: boolean; + tableName?: boolean; +}; export type UserStateModuleSelect = { databaseId?: boolean; entityField?: boolean; @@ -4289,7 +4595,7 @@ export type WebauthnCredentialsModuleSelect = { export type WebhookModuleSelect = { apiName?: boolean; databaseId?: boolean; - defaultPermissions?: boolean; + defaultCapabilities?: boolean; entityField?: boolean; entityTableId?: boolean; functionInvocationModuleId?: boolean; @@ -4335,8 +4641,8 @@ export interface AgentModuleFilter { apiName?: StringFilter; /** Filter by the object’s `databaseId` field. */ databaseId?: UUIDFilter; - /** Filter by the object’s `defaultPermissions` field. */ - defaultPermissions?: StringListFilter; + /** Filter by the object’s `defaultCapabilities` field. */ + defaultCapabilities?: StringListFilter; /** Filter by the object’s `entityField` field. */ entityField?: StringFilter; /** Filter by the object’s `entityTableId` field. */ @@ -4433,8 +4739,8 @@ export interface ApiSurfaceModuleFilter { corsSettingsTableName?: StringFilter; /** Filter by the object’s `databaseId` field. */ databaseId?: UUIDFilter; - /** Filter by the object’s `defaultPermissions` field. */ - defaultPermissions?: StringListFilter; + /** Filter by the object’s `defaultCapabilities` field. */ + defaultCapabilities?: StringListFilter; /** Filter by the object’s `entityField` field. */ entityField?: StringFilter; /** Filter by the object’s `entityTableId` field. */ @@ -4481,8 +4787,8 @@ export interface AppModuleFilter { catalogModuleId?: UUIDFilter; /** Filter by the object’s `databaseId` field. */ databaseId?: UUIDFilter; - /** Filter by the object’s `defaultPermissions` field. */ - defaultPermissions?: StringListFilter; + /** Filter by the object’s `defaultCapabilities` field. */ + defaultCapabilities?: StringListFilter; /** Filter by the object’s `entityField` field. */ entityField?: StringFilter; /** Filter by the object’s `entityTableId` field. */ @@ -4523,10 +4829,10 @@ export interface BillingModuleFilter { balancesTableName?: StringFilter; /** Filter by the object’s `databaseId` field. */ databaseId?: UUIDFilter; + /** Filter by the object’s `defaultCapabilities` field. */ + defaultCapabilities?: StringListFilter; /** Filter by the object’s `defaultMeterCatalog` field. */ defaultMeterCatalog?: JSONFilter; - /** Filter by the object’s `defaultPermissions` field. */ - defaultPermissions?: StringListFilter; /** Filter by the object’s `id` field. */ id?: UUIDFilter; /** Filter by the object’s `ledgerTableId` field. */ @@ -4585,6 +4891,10 @@ export interface BillingProviderModuleFilter { billingCustomersTableId?: UUIDFilter; /** Filter by the object’s `billingCustomersTableName` field. */ billingCustomersTableName?: StringFilter; + /** Filter by the object’s `billingInvoicesTableId` field. */ + billingInvoicesTableId?: UUIDFilter; + /** Filter by the object’s `billingInvoicesTableName` field. */ + billingInvoicesTableName?: StringFilter; /** Filter by the object’s `billingPricesTableId` field. */ billingPricesTableId?: UUIDFilter; /** Filter by the object’s `billingPricesTableName` field. */ @@ -4593,6 +4903,10 @@ export interface BillingProviderModuleFilter { billingProductsTableId?: UUIDFilter; /** Filter by the object’s `billingProductsTableName` field. */ billingProductsTableName?: StringFilter; + /** Filter by the object’s `billingRefundsTableId` field. */ + billingRefundsTableId?: UUIDFilter; + /** Filter by the object’s `billingRefundsTableName` field. */ + billingRefundsTableName?: StringFilter; /** Filter by the object’s `billingSubscriptionsTableId` field. */ billingSubscriptionsTableId?: UUIDFilter; /** Filter by the object’s `billingSubscriptionsTableName` field. */ @@ -4605,6 +4919,10 @@ export interface BillingProviderModuleFilter { databaseId?: UUIDFilter; /** Filter by the object’s `id` field. */ id?: UUIDFilter; + /** Filter by the object’s `listPendingUsageSyncFunction` field. */ + listPendingUsageSyncFunction?: StringFilter; + /** Filter by the object’s `markUsageSyncedFunction` field. */ + markUsageSyncedFunction?: StringFilter; /** Negates the expression. */ not?: BillingProviderModuleFilter; /** Checks for any expressions in this list. */ @@ -4623,10 +4941,14 @@ export interface BillingProviderModuleFilter { productsTableId?: UUIDFilter; /** Filter by the object’s `provider` field. */ provider?: StringFilter; + /** Filter by the object’s `recordRefundFunction` field. */ + recordRefundFunction?: StringFilter; /** Filter by the object’s `schemaId` field. */ schemaId?: UUIDFilter; /** Filter by the object’s `subscriptionsTableId` field. */ subscriptionsTableId?: UUIDFilter; + /** Filter by the object’s `upsertInvoiceFunction` field. */ + upsertInvoiceFunction?: StringFilter; } export interface BlueprintFilter { /** Checks for all expressions in this list. */ @@ -4760,9 +5082,65 @@ export interface BlueprintTemplateFilter { /** Filter by the object’s `visibility` field. */ visibility?: StringFilter; } -export interface CatalogModuleFilter { +export interface CapabilitiesModuleFilter { + /** Filter by the object’s `actorTableId` field. */ + actorTableId?: UUIDFilter; /** Checks for all expressions in this list. */ - and?: CatalogModuleFilter[]; + and?: CapabilitiesModuleFilter[]; + /** Filter by the object’s `apiName` field. */ + apiName?: StringFilter; + /** Filter by the object’s `bitlen` field. */ + bitlen?: IntFilter; + /** Filter by the object’s `dataCapabilitiesFields` relation. */ + dataCapabilitiesFields?: CapabilitiesModuleToManyDataCapabilitiesFieldFilter; + /** `dataCapabilitiesFields` exist. */ + dataCapabilitiesFieldsExist?: boolean; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `defaultTableId` field. */ + defaultTableId?: UUIDFilter; + /** Filter by the object’s `defaultTableName` field. */ + defaultTableName?: StringFilter; + /** Filter by the object’s `entityField` field. */ + entityField?: StringFilter; + /** Filter by the object’s `entityTableId` field. */ + entityTableId?: UUIDFilter; + /** Filter by the object’s `getByMask` field. */ + getByMask?: StringFilter; + /** Filter by the object’s `getMask` field. */ + getMask?: StringFilter; + /** Filter by the object’s `getMaskByName` field. */ + getMaskByName?: StringFilter; + /** Filter by the object’s `getPaddedMask` field. */ + getPaddedMask?: StringFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Negates the expression. */ + not?: CapabilitiesModuleFilter; + /** Checks for any expressions in this list. */ + or?: CapabilitiesModuleFilter[]; + /** Filter by the object’s `prefix` field. */ + prefix?: StringFilter; + /** Filter by the object’s `privateApiName` field. */ + privateApiName?: StringFilter; + /** Filter by the object’s `privateSchemaId` field. */ + privateSchemaId?: UUIDFilter; + /** Filter by the object’s `privateSchemaName` field. */ + privateSchemaName?: StringFilter; + /** Filter by the object’s `publicSchemaName` field. */ + publicSchemaName?: StringFilter; + /** Filter by the object’s `schemaId` field. */ + schemaId?: UUIDFilter; + /** Filter by the object’s `scope` field. */ + scope?: StringFilter; + /** Filter by the object’s `tableId` field. */ + tableId?: UUIDFilter; + /** Filter by the object’s `tableName` field. */ + tableName?: StringFilter; +} +export interface CatalogModuleFilter { + /** Checks for all expressions in this list. */ + and?: CatalogModuleFilter[]; /** Filter by the object’s `apiName` field. */ apiName?: StringFilter; /** Filter by the object’s `apiSurfaceModules` relation. */ @@ -4781,14 +5159,18 @@ export interface CatalogModuleFilter { appsTableId?: UUIDFilter; /** Filter by the object’s `appsTableName` field. */ appsTableName?: StringFilter; + /** Filter by the object’s `bindingsTableId` field. */ + bindingsTableId?: UUIDFilter; + /** Filter by the object’s `bindingsTableName` field. */ + bindingsTableName?: StringFilter; /** Filter by the object’s `bucketsTableId` field. */ bucketsTableId?: UUIDFilter; /** Filter by the object’s `bucketsTableName` field. */ bucketsTableName?: StringFilter; /** Filter by the object’s `databaseId` field. */ databaseId?: UUIDFilter; - /** Filter by the object’s `defaultPermissions` field. */ - defaultPermissions?: StringListFilter; + /** Filter by the object’s `defaultCapabilities` field. */ + defaultCapabilities?: StringListFilter; /** Filter by the object’s `domainModules` relation. */ domainModules?: CatalogModuleToManyDomainModuleFilter; /** `domainModules` exist. */ @@ -4964,6 +5346,50 @@ export interface ConnectedAccountsModuleFilter { /** Filter by the object’s `tableName` field. */ tableName?: StringFilter; } +export interface ContentPresetModuleFilter { + /** Checks for all expressions in this list. */ + and?: ContentPresetModuleFilter[]; + /** Filter by the object’s `apiName` field. */ + apiName?: StringFilter; + /** Filter by the object’s `contentPresetsTableId` field. */ + contentPresetsTableId?: UUIDFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `entityTableId` field. */ + entityTableId?: UUIDFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `merkleStoreModule` relation. */ + merkleStoreModule?: MerkleStoreModuleFilter; + /** Filter by the object’s `merkleStoreModuleId` field. */ + merkleStoreModuleId?: UUIDFilter; + /** Negates the expression. */ + not?: ContentPresetModuleFilter; + /** Checks for any expressions in this list. */ + or?: ContentPresetModuleFilter[]; + /** Filter by the object’s `policies` field. */ + policies?: JSONFilter; + /** Filter by the object’s `prefix` field. */ + prefix?: StringFilter; + /** Filter by the object’s `privateApiName` field. */ + privateApiName?: StringFilter; + /** Filter by the object’s `privateSchemaId` field. */ + privateSchemaId?: UUIDFilter; + /** Filter by the object’s `privateSchemaName` field. */ + privateSchemaName?: StringFilter; + /** Filter by the object’s `provisions` field. */ + provisions?: JSONFilter; + /** Filter by the object’s `publicSchemaId` field. */ + publicSchemaId?: UUIDFilter; + /** Filter by the object’s `publicSchemaName` field. */ + publicSchemaName?: StringFilter; + /** Filter by the object’s `scope` field. */ + scope?: StringFilter; + /** Filter by the object’s `storeName` field. */ + storeName?: StringFilter; +} export interface CryptoAddressesModuleFilter { /** Checks for all expressions in this list. */ and?: CryptoAddressesModuleFilter[]; @@ -5028,6 +5454,38 @@ export interface CryptoAuthModuleFilter { /** Filter by the object’s `usersTableId` field. */ usersTableId?: UUIDFilter; } +export interface DataCapabilitiesFieldFilter { + /** Checks for all expressions in this list. */ + and?: DataCapabilitiesFieldFilter[]; + /** Filter by the object’s `capabilitiesModule` relation. */ + capabilitiesModule?: CapabilitiesModuleFilter; + /** Filter by the object’s `capabilitiesModuleId` field. */ + capabilitiesModuleId?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `fieldId` field. */ + fieldId?: UUIDFilter; + /** Filter by the object’s `fromFieldId` field. */ + fromFieldId?: UUIDFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `mappingFieldId` field. */ + mappingFieldId?: UUIDFilter; + /** Filter by the object’s `mappingKeyFieldId` field. */ + mappingKeyFieldId?: UUIDFilter; + /** Filter by the object’s `mappingTableId` field. */ + mappingTableId?: UUIDFilter; + /** Filter by the object’s `mode` field. */ + mode?: StringFilter; + /** Negates the expression. */ + not?: DataCapabilitiesFieldFilter; + /** Checks for any expressions in this list. */ + or?: DataCapabilitiesFieldFilter[]; + /** Filter by the object’s `subsetGuard` field. */ + subsetGuard?: BooleanFilter; + /** Filter by the object’s `tableId` field. */ + tableId?: UUIDFilter; +} export interface DatabaseProvisionModuleFilter { /** Checks for all expressions in this list. */ and?: DatabaseProvisionModuleFilter[]; @@ -5085,8 +5543,8 @@ export interface DatabaseSettingsModuleFilter { databaseSettingsTableId?: UUIDFilter; /** Filter by the object’s `databaseSettingsTableName` field. */ databaseSettingsTableName?: StringFilter; - /** Filter by the object’s `defaultPermissions` field. */ - defaultPermissions?: StringListFilter; + /** Filter by the object’s `defaultCapabilities` field. */ + defaultCapabilities?: StringListFilter; /** Filter by the object’s `entityField` field. */ entityField?: StringFilter; /** Filter by the object’s `entityTableId` field. */ @@ -5241,8 +5699,8 @@ export interface DbUsageModuleFilter { collectDbTableStatsFunction?: StringFilter; /** Filter by the object’s `databaseId` field. */ databaseId?: UUIDFilter; - /** Filter by the object’s `defaultPermissions` field. */ - defaultPermissions?: StringListFilter; + /** Filter by the object’s `defaultCapabilities` field. */ + defaultCapabilities?: StringListFilter; /** Filter by the object’s `entityField` field. */ entityField?: StringFilter; /** Filter by the object’s `id` field. */ @@ -5371,8 +5829,8 @@ export interface DomainModuleFilter { catalogModuleId?: UUIDFilter; /** Filter by the object’s `databaseId` field. */ databaseId?: UUIDFilter; - /** Filter by the object’s `defaultPermissions` field. */ - defaultPermissions?: StringListFilter; + /** Filter by the object’s `defaultCapabilities` field. */ + defaultCapabilities?: StringListFilter; /** Filter by the object’s `domainEventsTableId` field. */ domainEventsTableId?: UUIDFilter; /** Filter by the object’s `domainEventsTableName` field. */ @@ -5422,6 +5880,58 @@ export interface DomainModuleFilter { /** Filter by the object’s `scope` field. */ scope?: StringFilter; } +export interface EmailSenderModuleFilter { + /** Checks for all expressions in this list. */ + and?: EmailSenderModuleFilter[]; + /** Filter by the object’s `apiName` field. */ + apiName?: StringFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `defaultCapabilities` field. */ + defaultCapabilities?: StringListFilter; + /** Filter by the object’s `emailIdentitiesTableId` field. */ + emailIdentitiesTableId?: UUIDFilter; + /** Filter by the object’s `emailIdentitiesTableName` field. */ + emailIdentitiesTableName?: StringFilter; + /** Filter by the object’s `emailProviderAccountsTableId` field. */ + emailProviderAccountsTableId?: UUIDFilter; + /** Filter by the object’s `emailProviderAccountsTableName` field. */ + emailProviderAccountsTableName?: StringFilter; + /** Filter by the object’s `emailSiteIdentitiesTableId` field. */ + emailSiteIdentitiesTableId?: UUIDFilter; + /** Filter by the object’s `emailSiteIdentitiesTableName` field. */ + emailSiteIdentitiesTableName?: StringFilter; + /** Filter by the object’s `entityField` field. */ + entityField?: StringFilter; + /** Filter by the object’s `entityTableId` field. */ + entityTableId?: UUIDFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Negates the expression. */ + not?: EmailSenderModuleFilter; + /** Checks for any expressions in this list. */ + or?: EmailSenderModuleFilter[]; + /** Filter by the object’s `policies` field. */ + policies?: JSONFilter; + /** Filter by the object’s `prefix` field. */ + prefix?: StringFilter; + /** Filter by the object’s `privateApiName` field. */ + privateApiName?: StringFilter; + /** Filter by the object’s `provisions` field. */ + provisions?: JSONFilter; + /** Filter by the object’s `publicSchemaName` field. */ + publicSchemaName?: StringFilter; + /** Filter by the object’s `schemaId` field. */ + schemaId?: UUIDFilter; + /** Filter by the object’s `scope` field. */ + scope?: StringFilter; + /** Filter by the object’s `siteSurfaceModule` relation. */ + siteSurfaceModule?: SiteSurfaceModuleFilter; + /** A related `siteSurfaceModule` exists. */ + siteSurfaceModuleExists?: boolean; + /** Filter by the object’s `siteSurfaceModuleId` field. */ + siteSurfaceModuleId?: UUIDFilter; +} export interface EmailsModuleFilter { /** Checks for all expressions in this list. */ and?: EmailsModuleFilter[]; @@ -5547,8 +6057,8 @@ export interface EventsModuleFilter { apiName?: StringFilter; /** Filter by the object’s `databaseId` field. */ databaseId?: UUIDFilter; - /** Filter by the object’s `defaultPermissions` field. */ - defaultPermissions?: StringListFilter; + /** Filter by the object’s `defaultCapabilities` field. */ + defaultCapabilities?: StringListFilter; /** Filter by the object’s `entityField` field. */ entityField?: StringFilter; /** Filter by the object’s `entityTableId` field. */ @@ -5565,6 +6075,8 @@ export interface EventsModuleFilter { eventsTableId?: UUIDFilter; /** Filter by the object’s `eventsTableName` field. */ eventsTableName?: StringFilter; + /** Filter by the object’s `expireGrants` field. */ + expireGrants?: StringFilter; /** Filter by the object’s `grantAchievement` field. */ grantAchievement?: StringFilter; /** Filter by the object’s `id` field. */ @@ -5601,12 +6113,16 @@ export interface EventsModuleFilter { privateSchemaName?: StringFilter; /** Filter by the object’s `publicSchemaName` field. */ publicSchemaName?: StringFilter; + /** Filter by the object’s `recomputeCapabilities` field. */ + recomputeCapabilities?: StringFilter; /** Filter by the object’s `recordEvent` field. */ recordEvent?: StringFilter; /** Filter by the object’s `removeEvent` field. */ removeEvent?: StringFilter; /** Filter by the object’s `retention` field. */ retention?: StringFilter; + /** Filter by the object’s `revokeAchievement` field. */ + revokeAchievement?: StringFilter; /** Filter by the object’s `schemaId` field. */ schemaId?: UUIDFilter; /** Filter by the object’s `scope` field. */ @@ -5625,11 +6141,43 @@ export interface EventsModuleFilter { tgEventToggle?: StringFilter; /** Filter by the object’s `tgEventToggleBool` field. */ tgEventToggleBool?: StringFilter; + /** Filter by the object’s `tgLevelGrantSync` field. */ + tgLevelGrantSync?: StringFilter; /** Filter by the object’s `tgUpdateAggregates` field. */ tgUpdateAggregates?: StringFilter; + /** Filter by the object’s `trustLadder` field. */ + trustLadder?: JSONFilter; /** Filter by the object’s `upsertAggregate` field. */ upsertAggregate?: StringFilter; } +export interface FileRefFieldFilter { + /** Checks for all expressions in this list. */ + and?: FileRefFieldFilter[]; + /** Filter by the object’s `bucketKey` field. */ + bucketKey?: StringFilter; + /** Filter by the object’s `bucketTags` field. */ + bucketTags?: StringListFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `enforceFk` field. */ + enforceFk?: BooleanFilter; + /** Filter by the object’s `fieldId` field. */ + fieldId?: UUIDFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `isPublic` field. */ + isPublic?: BooleanFilter; + /** Negates the expression. */ + not?: FileRefFieldFilter; + /** Checks for any expressions in this list. */ + or?: FileRefFieldFilter[]; + /** Filter by the object’s `storageModule` relation. */ + storageModule?: StorageModuleFilter; + /** Filter by the object’s `storageModuleId` field. */ + storageModuleId?: UUIDFilter; + /** Filter by the object’s `tableId` field. */ + tableId?: UUIDFilter; +} export interface FunctionDeploymentModuleFilter { /** Checks for all expressions in this list. */ and?: FunctionDeploymentModuleFilter[]; @@ -5637,8 +6185,8 @@ export interface FunctionDeploymentModuleFilter { apiName?: StringFilter; /** Filter by the object’s `databaseId` field. */ databaseId?: UUIDFilter; - /** Filter by the object’s `defaultPermissions` field. */ - defaultPermissions?: StringListFilter; + /** Filter by the object’s `defaultCapabilities` field. */ + defaultCapabilities?: StringListFilter; /** Filter by the object’s `deploymentEventsTableId` field. */ deploymentEventsTableId?: UUIDFilter; /** Filter by the object’s `deploymentEventsTableName` field. */ @@ -5699,8 +6247,8 @@ export interface FunctionInvocationModuleFilter { attemptsTableName?: StringFilter; /** Filter by the object’s `databaseId` field. */ databaseId?: UUIDFilter; - /** Filter by the object’s `defaultPermissions` field. */ - defaultPermissions?: StringListFilter; + /** Filter by the object’s `defaultCapabilities` field. */ + defaultCapabilities?: StringListFilter; /** Filter by the object’s `entityField` field. */ entityField?: StringFilter; /** Filter by the object’s `entityTableId` field. */ @@ -5755,8 +6303,8 @@ export interface FunctionModuleFilter { capabilityBindingsTableId?: UUIDFilter; /** Filter by the object’s `databaseId` field. */ databaseId?: UUIDFilter; - /** Filter by the object’s `defaultPermissions` field. */ - defaultPermissions?: StringListFilter; + /** Filter by the object’s `defaultCapabilities` field. */ + defaultCapabilities?: StringListFilter; /** Filter by the object’s `definitionsTableId` field. */ definitionsTableId?: UUIDFilter; /** Filter by the object’s `definitionsTableName` field. */ @@ -5815,8 +6363,8 @@ export interface GraphExecutionModuleFilter { createdAt?: DatetimeFilter; /** Filter by the object’s `databaseId` field. */ databaseId?: UUIDFilter; - /** Filter by the object’s `defaultPermissions` field. */ - defaultPermissions?: StringListFilter; + /** Filter by the object’s `defaultCapabilities` field. */ + defaultCapabilities?: StringListFilter; /** Filter by the object’s `entityField` field. */ entityField?: StringFilter; /** Filter by the object’s `entityTableId` field. */ @@ -5871,8 +6419,8 @@ export interface GraphModuleFilter { createdAt?: DatetimeFilter; /** Filter by the object’s `databaseId` field. */ databaseId?: UUIDFilter; - /** Filter by the object’s `defaultPermissions` field. */ - defaultPermissions?: StringListFilter; + /** Filter by the object’s `defaultCapabilities` field. */ + defaultCapabilities?: StringListFilter; /** Filter by the object’s `entityField` field. */ entityField?: StringFilter; /** Filter by the object’s `entityTableId` field. */ @@ -5927,8 +6475,8 @@ export interface HierarchyModuleFilter { createdAt?: DatetimeFilter; /** Filter by the object’s `databaseId` field. */ databaseId?: UUIDFilter; - /** Filter by the object’s `defaultPermissions` field. */ - defaultPermissions?: StringListFilter; + /** Filter by the object’s `defaultCapabilities` field. */ + defaultCapabilities?: StringListFilter; /** Filter by the object’s `entityField` field. */ entityField?: StringFilter; /** Filter by the object’s `entityTableId` field. */ @@ -5973,8 +6521,8 @@ export interface HttpRouteModuleFilter { apiName?: StringFilter; /** Filter by the object’s `databaseId` field. */ databaseId?: UUIDFilter; - /** Filter by the object’s `defaultPermissions` field. */ - defaultPermissions?: StringListFilter; + /** Filter by the object’s `defaultCapabilities` field. */ + defaultCapabilities?: StringListFilter; /** Filter by the object’s `entityField` field. */ entityField?: StringFilter; /** Filter by the object’s `entityTableId` field. */ @@ -6387,6 +6935,8 @@ export interface LimitsModuleFilter { limitDecrementFunction?: StringFilter; /** Filter by the object’s `limitDecrementTrigger` field. */ limitDecrementTrigger?: StringFilter; + /** Filter by the object’s `limitDefaults` field. */ + limitDefaults?: JSONFilter; /** Filter by the object’s `limitIncrementFunction` field. */ limitIncrementFunction?: StringFilter; /** Filter by the object’s `limitIncrementTrigger` field. */ @@ -6455,12 +7005,18 @@ export interface MembershipsModuleFilter { and?: MembershipsModuleFilter[]; /** Filter by the object’s `apiName` field. */ apiName?: StringFilter; + /** Filter by the object’s `capabilitiesTableId` field. */ + capabilitiesTableId?: UUIDFilter; + /** Filter by the object’s `capabilityDefaultCapabilitiesTableId` field. */ + capabilityDefaultCapabilitiesTableId?: UUIDFilter; + /** Filter by the object’s `capabilityDefaultGrantsTableId` field. */ + capabilityDefaultGrantsTableId?: UUIDFilter; /** Filter by the object’s `databaseId` field. */ databaseId?: UUIDFilter; + /** Filter by the object’s `defaultCapabilitiesTableId` field. */ + defaultCapabilitiesTableId?: UUIDFilter; /** Filter by the object’s `defaultLimitsTableId` field. */ defaultLimitsTableId?: UUIDFilter; - /** Filter by the object’s `defaultPermissionsTableId` field. */ - defaultPermissionsTableId?: UUIDFilter; /** Filter by the object’s `entityField` field. */ entityField?: StringFilter; /** Filter by the object’s `entityIdsByMask` field. */ @@ -6509,12 +7065,6 @@ export interface MembershipsModuleFilter { ownerGrantsTableId?: UUIDFilter; /** Filter by the object’s `ownerGrantsTableName` field. */ ownerGrantsTableName?: StringFilter; - /** Filter by the object’s `permissionDefaultGrantsTableId` field. */ - permissionDefaultGrantsTableId?: UUIDFilter; - /** Filter by the object’s `permissionDefaultPermissionsTableId` field. */ - permissionDefaultPermissionsTableId?: UUIDFilter; - /** Filter by the object’s `permissionsTableId` field. */ - permissionsTableId?: UUIDFilter; /** Filter by the object’s `prefix` field. */ prefix?: StringFilter; /** Filter by the object’s `privateApiName` field. */ @@ -6537,8 +7087,14 @@ export interface MerkleStoreModuleFilter { and?: MerkleStoreModuleFilter[]; /** Filter by the object’s `apiName` field. */ apiName?: StringFilter; + /** Filter by the object’s `capabilityKey` field. */ + capabilityKey?: StringFilter; /** Filter by the object’s `commitTableId` field. */ commitTableId?: UUIDFilter; + /** Filter by the object’s `contentPresetModules` relation. */ + contentPresetModules?: MerkleStoreModuleToManyContentPresetModuleFilter; + /** `contentPresetModules` exist. */ + contentPresetModulesExist?: boolean; /** Filter by the object’s `createdAt` field. */ createdAt?: DatetimeFilter; /** Filter by the object’s `databaseId` field. */ @@ -6567,8 +7123,6 @@ export interface MerkleStoreModuleFilter { pagesModules?: MerkleStoreModuleToManyPagesModuleFilter; /** `pagesModules` exist. */ pagesModulesExist?: boolean; - /** Filter by the object’s `permissionKey` field. */ - permissionKey?: StringFilter; /** Filter by the object’s `prefix` field. */ prefix?: StringFilter; /** Filter by the object’s `privateApiName` field. */ @@ -6599,8 +7153,8 @@ export interface NamespaceModuleFilter { apiName?: StringFilter; /** Filter by the object’s `databaseId` field. */ databaseId?: UUIDFilter; - /** Filter by the object’s `defaultPermissions` field. */ - defaultPermissions?: StringListFilter; + /** Filter by the object’s `defaultCapabilities` field. */ + defaultCapabilities?: StringListFilter; /** Filter by the object’s `entityField` field. */ entityField?: StringFilter; /** Filter by the object’s `entityTableId` field. */ @@ -6659,8 +7213,8 @@ export interface NotificationsModuleFilter { channelsTableId?: UUIDFilter; /** Filter by the object’s `databaseId` field. */ databaseId?: UUIDFilter; - /** Filter by the object’s `defaultPermissions` field. */ - defaultPermissions?: StringListFilter; + /** Filter by the object’s `defaultCapabilities` field. */ + defaultCapabilities?: StringListFilter; /** Filter by the object’s `deliveryLogTableId` field. */ deliveryLogTableId?: UUIDFilter; /** Filter by the object’s `entityField` field. */ @@ -6706,6 +7260,38 @@ export interface NotificationsModuleFilter { /** Filter by the object’s `userSettingsTableId` field. */ userSettingsTableId?: UUIDFilter; } +export interface OauthRequestsModuleFilter { + /** Checks for all expressions in this list. */ + and?: OauthRequestsModuleFilter[]; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `entityField` field. */ + entityField?: StringFilter; + /** Filter by the object’s `entityTableId` field. */ + entityTableId?: UUIDFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Negates the expression. */ + not?: OauthRequestsModuleFilter; + /** Filter by the object’s `oauthAuthorizationRequestsTableId` field. */ + oauthAuthorizationRequestsTableId?: UUIDFilter; + /** Filter by the object’s `oauthAuthorizationRequestsTableName` field. */ + oauthAuthorizationRequestsTableName?: StringFilter; + /** Checks for any expressions in this list. */ + or?: OauthRequestsModuleFilter[]; + /** Filter by the object’s `pendingIdentityLinksTableId` field. */ + pendingIdentityLinksTableId?: UUIDFilter; + /** Filter by the object’s `pendingIdentityLinksTableName` field. */ + pendingIdentityLinksTableName?: StringFilter; + /** Filter by the object’s `prefix` field. */ + prefix?: StringFilter; + /** Filter by the object’s `privateSchemaId` field. */ + privateSchemaId?: UUIDFilter; + /** Filter by the object’s `privateSchemaName` field. */ + privateSchemaName?: StringFilter; + /** Filter by the object’s `scope` field. */ + scope?: StringFilter; +} export interface PagesModuleFilter { /** Checks for all expressions in this list. */ and?: PagesModuleFilter[]; @@ -6758,58 +7344,6 @@ export interface PagesModuleFilter { /** Filter by the object’s `storeNamePrefix` field. */ storeNamePrefix?: StringFilter; } -export interface PermissionsModuleFilter { - /** Filter by the object’s `actorTableId` field. */ - actorTableId?: UUIDFilter; - /** Checks for all expressions in this list. */ - and?: PermissionsModuleFilter[]; - /** Filter by the object’s `apiName` field. */ - apiName?: StringFilter; - /** Filter by the object’s `bitlen` field. */ - bitlen?: IntFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Filter by the object’s `defaultTableId` field. */ - defaultTableId?: UUIDFilter; - /** Filter by the object’s `defaultTableName` field. */ - defaultTableName?: StringFilter; - /** Filter by the object’s `entityField` field. */ - entityField?: StringFilter; - /** Filter by the object’s `entityTableId` field. */ - entityTableId?: UUIDFilter; - /** Filter by the object’s `getByMask` field. */ - getByMask?: StringFilter; - /** Filter by the object’s `getMask` field. */ - getMask?: StringFilter; - /** Filter by the object’s `getMaskByName` field. */ - getMaskByName?: StringFilter; - /** Filter by the object’s `getPaddedMask` field. */ - getPaddedMask?: StringFilter; - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Negates the expression. */ - not?: PermissionsModuleFilter; - /** Checks for any expressions in this list. */ - or?: PermissionsModuleFilter[]; - /** Filter by the object’s `prefix` field. */ - prefix?: StringFilter; - /** Filter by the object’s `privateApiName` field. */ - privateApiName?: StringFilter; - /** Filter by the object’s `privateSchemaId` field. */ - privateSchemaId?: UUIDFilter; - /** Filter by the object’s `privateSchemaName` field. */ - privateSchemaName?: StringFilter; - /** Filter by the object’s `publicSchemaName` field. */ - publicSchemaName?: StringFilter; - /** Filter by the object’s `schemaId` field. */ - schemaId?: UUIDFilter; - /** Filter by the object’s `scope` field. */ - scope?: StringFilter; - /** Filter by the object’s `tableId` field. */ - tableId?: UUIDFilter; - /** Filter by the object’s `tableName` field. */ - tableName?: StringFilter; -} export interface PhoneNumbersModuleFilter { /** Checks for all expressions in this list. */ and?: PhoneNumbersModuleFilter[]; @@ -6937,6 +7471,8 @@ export interface ProfilesModuleFilter { and?: ProfilesModuleFilter[]; /** Filter by the object’s `apiName` field. */ apiName?: StringFilter; + /** Filter by the object’s `capabilitiesTableId` field. */ + capabilitiesTableId?: UUIDFilter; /** Filter by the object’s `databaseId` field. */ databaseId?: UUIDFilter; /** Filter by the object’s `entityField` field. */ @@ -6945,14 +7481,16 @@ export interface ProfilesModuleFilter { entityTableId?: UUIDFilter; /** Filter by the object’s `id` field. */ id?: UUIDFilter; + /** Filter by the object’s `membershipProfilesTableId` field. */ + membershipProfilesTableId?: UUIDFilter; + /** Filter by the object’s `membershipProfilesTableName` field. */ + membershipProfilesTableName?: StringFilter; /** Filter by the object’s `membershipsTableId` field. */ membershipsTableId?: UUIDFilter; /** Negates the expression. */ not?: ProfilesModuleFilter; /** Checks for any expressions in this list. */ or?: ProfilesModuleFilter[]; - /** Filter by the object’s `permissionsTableId` field. */ - permissionsTableId?: UUIDFilter; /** Filter by the object’s `prefix` field. */ prefix?: StringFilter; /** Filter by the object’s `privateApiName` field. */ @@ -6961,6 +7499,10 @@ export interface ProfilesModuleFilter { privateSchemaId?: UUIDFilter; /** Filter by the object’s `privateSchemaName` field. */ privateSchemaName?: StringFilter; + /** Filter by the object’s `profileCapabilitiesTableId` field. */ + profileCapabilitiesTableId?: UUIDFilter; + /** Filter by the object’s `profileCapabilitiesTableName` field. */ + profileCapabilitiesTableName?: StringFilter; /** Filter by the object’s `profileDefinitionGrantsTableId` field. */ profileDefinitionGrantsTableId?: UUIDFilter; /** Filter by the object’s `profileDefinitionGrantsTableName` field. */ @@ -6969,10 +7511,6 @@ export interface ProfilesModuleFilter { profileGrantsTableId?: UUIDFilter; /** Filter by the object’s `profileGrantsTableName` field. */ profileGrantsTableName?: StringFilter; - /** Filter by the object’s `profilePermissionsTableId` field. */ - profilePermissionsTableId?: UUIDFilter; - /** Filter by the object’s `profilePermissionsTableName` field. */ - profilePermissionsTableName?: StringFilter; /** Filter by the object’s `profileTemplatesTableId` field. */ profileTemplatesTableId?: UUIDFilter; /** Filter by the object’s `profileTemplatesTableName` field. */ @@ -6997,8 +7535,8 @@ export interface RateLimitMetersModuleFilter { checkRateLimitFunction?: StringFilter; /** Filter by the object’s `databaseId` field. */ databaseId?: UUIDFilter; - /** Filter by the object’s `defaultPermissions` field. */ - defaultPermissions?: StringListFilter; + /** Filter by the object’s `defaultCapabilities` field. */ + defaultCapabilities?: StringListFilter; /** Filter by the object’s `id` field. */ id?: UUIDFilter; /** Negates the expression. */ @@ -7155,8 +7693,8 @@ export interface ResourceModuleFilter { apiName?: StringFilter; /** Filter by the object’s `databaseId` field. */ databaseId?: UUIDFilter; - /** Filter by the object’s `defaultPermissions` field. */ - defaultPermissions?: StringListFilter; + /** Filter by the object’s `defaultCapabilities` field. */ + defaultCapabilities?: StringListFilter; /** Filter by the object’s `entityField` field. */ entityField?: StringFilter; /** Filter by the object’s `entityTableId` field. */ @@ -7279,6 +7817,8 @@ export interface RouteModuleFilter { and?: RouteModuleFilter[]; /** Filter by the object’s `apiName` field. */ apiName?: StringFilter; + /** Filter by the object’s `appLinksFunctionName` field. */ + appLinksFunctionName?: StringFilter; /** Filter by the object’s `catalogModule` relation. */ catalogModule?: CatalogModuleFilter; /** A related `catalogModule` exists. */ @@ -7287,8 +7827,10 @@ export interface RouteModuleFilter { catalogModuleId?: UUIDFilter; /** Filter by the object’s `databaseId` field. */ databaseId?: UUIDFilter; - /** Filter by the object’s `defaultPermissions` field. */ - defaultPermissions?: StringListFilter; + /** Filter by the object’s `deepLinkFunctionName` field. */ + deepLinkFunctionName?: StringFilter; + /** Filter by the object’s `defaultCapabilities` field. */ + defaultCapabilities?: StringListFilter; /** Filter by the object’s `domainModule` relation. */ domainModule?: DomainModuleFilter; /** A related `domainModule` exists. */ @@ -7338,6 +7880,24 @@ export interface RouteModuleFilter { /** Filter by the object’s `scope` field. */ scope?: StringFilter; } +export interface ScopeTypesModuleFilter { + /** Checks for all expressions in this list. */ + and?: ScopeTypesModuleFilter[]; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Negates the expression. */ + not?: ScopeTypesModuleFilter; + /** Checks for any expressions in this list. */ + or?: ScopeTypesModuleFilter[]; + /** Filter by the object’s `privateSchemaName` field. */ + privateSchemaName?: StringFilter; + /** Filter by the object’s `schemaId` field. */ + schemaId?: UUIDFilter; + /** Filter by the object’s `scopeTypesTableId` field. */ + scopeTypesTableId?: UUIDFilter; +} export interface SecureTableProvisionFilter { /** Checks for all expressions in this list. */ and?: SecureTableProvisionFilter[]; @@ -7431,8 +7991,12 @@ export interface SiteSurfaceModuleFilter { catalogModuleId?: UUIDFilter; /** Filter by the object’s `databaseId` field. */ databaseId?: UUIDFilter; - /** Filter by the object’s `defaultPermissions` field. */ - defaultPermissions?: StringListFilter; + /** Filter by the object’s `defaultCapabilities` field. */ + defaultCapabilities?: StringListFilter; + /** Filter by the object’s `emailSenderModules` relation. */ + emailSenderModules?: SiteSurfaceModuleToManyEmailSenderModuleFilter; + /** `emailSenderModules` exist. */ + emailSenderModulesExist?: boolean; /** Filter by the object’s `entityField` field. */ entityField?: StringFilter; /** Filter by the object’s `entityTableId` field. */ @@ -7565,10 +8129,10 @@ export interface StorageModuleFilter { confirmUploadDelay?: IntervalFilter; /** Filter by the object’s `databaseId` field. */ databaseId?: UUIDFilter; + /** Filter by the object’s `defaultCapabilities` field. */ + defaultCapabilities?: StringListFilter; /** Filter by the object’s `defaultMaxFileSize` field. */ defaultMaxFileSize?: BigIntFilter; - /** Filter by the object’s `defaultPermissions` field. */ - defaultPermissions?: StringListFilter; /** Filter by the object’s `downloadUrlExpirySeconds` field. */ downloadUrlExpirySeconds?: IntFilter; /** Filter by the object’s `endpoint` field. */ @@ -7579,6 +8143,10 @@ export interface StorageModuleFilter { entityTableId?: UUIDFilter; /** Filter by the object’s `fileEventsTableId` field. */ fileEventsTableId?: UUIDFilter; + /** Filter by the object’s `fileRefFields` relation. */ + fileRefFields?: StorageModuleToManyFileRefFieldFilter; + /** `fileRefFields` exist. */ + fileRefFieldsExist?: boolean; /** Filter by the object’s `filesTableId` field. */ filesTableId?: UUIDFilter; /** Filter by the object’s `filesTableName` field. */ @@ -7796,6 +8364,28 @@ export interface UserSettingsModuleFilter { /** Filter by the object’s `tableName` field. */ tableName?: StringFilter; } +export interface UserSettingsSecurityModuleFilter { + /** Checks for all expressions in this list. */ + and?: UserSettingsSecurityModuleFilter[]; + /** Filter by the object’s `apiName` field. */ + apiName?: StringFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Negates the expression. */ + not?: UserSettingsSecurityModuleFilter; + /** Checks for any expressions in this list. */ + or?: UserSettingsSecurityModuleFilter[]; + /** Filter by the object’s `ownerTableId` field. */ + ownerTableId?: 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; +} export interface UserStateModuleFilter { /** Checks for all expressions in this list. */ and?: UserStateModuleFilter[]; @@ -7915,8 +8505,8 @@ export interface WebhookModuleFilter { apiName?: StringFilter; /** Filter by the object’s `databaseId` field. */ databaseId?: UUIDFilter; - /** Filter by the object’s `defaultPermissions` field. */ - defaultPermissions?: StringListFilter; + /** Filter by the object’s `defaultCapabilities` field. */ + defaultCapabilities?: StringListFilter; /** Filter by the object’s `entityField` field. */ entityField?: StringFilter; /** Filter by the object’s `entityTableId` field. */ @@ -7988,8 +8578,8 @@ export type AgentModuleOrderBy = | 'API_NAME_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' - | 'DEFAULT_PERMISSIONS_ASC' - | 'DEFAULT_PERMISSIONS_DESC' + | 'DEFAULT_CAPABILITIES_ASC' + | 'DEFAULT_CAPABILITIES_DESC' | 'ENTITY_FIELD_ASC' | 'ENTITY_FIELD_DESC' | 'ENTITY_TABLE_ID_ASC' @@ -8078,8 +8668,8 @@ export type ApiSurfaceModuleOrderBy = | 'CORS_SETTINGS_TABLE_NAME_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' - | 'DEFAULT_PERMISSIONS_ASC' - | 'DEFAULT_PERMISSIONS_DESC' + | 'DEFAULT_CAPABILITIES_ASC' + | 'DEFAULT_CAPABILITIES_DESC' | 'ENTITY_FIELD_ASC' | 'ENTITY_FIELD_DESC' | 'ENTITY_TABLE_ID_ASC' @@ -8118,8 +8708,8 @@ export type AppModuleOrderBy = | 'CATALOG_MODULE_ID_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' - | 'DEFAULT_PERMISSIONS_ASC' - | 'DEFAULT_PERMISSIONS_DESC' + | 'DEFAULT_CAPABILITIES_ASC' + | 'DEFAULT_CAPABILITIES_DESC' | 'ENTITY_FIELD_ASC' | 'ENTITY_FIELD_DESC' | 'ENTITY_TABLE_ID_ASC' @@ -8156,10 +8746,10 @@ export type BillingModuleOrderBy = | 'BALANCES_TABLE_NAME_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' + | 'DEFAULT_CAPABILITIES_ASC' + | 'DEFAULT_CAPABILITIES_DESC' | 'DEFAULT_METER_CATALOG_ASC' | 'DEFAULT_METER_CATALOG_DESC' - | 'DEFAULT_PERMISSIONS_ASC' - | 'DEFAULT_PERMISSIONS_DESC' | 'ID_ASC' | 'ID_DESC' | 'LEDGER_TABLE_ID_ASC' @@ -8214,6 +8804,10 @@ export type BillingProviderModuleOrderBy = | 'BILLING_CUSTOMERS_TABLE_ID_DESC' | 'BILLING_CUSTOMERS_TABLE_NAME_ASC' | 'BILLING_CUSTOMERS_TABLE_NAME_DESC' + | 'BILLING_INVOICES_TABLE_ID_ASC' + | 'BILLING_INVOICES_TABLE_ID_DESC' + | 'BILLING_INVOICES_TABLE_NAME_ASC' + | 'BILLING_INVOICES_TABLE_NAME_DESC' | 'BILLING_PRICES_TABLE_ID_ASC' | 'BILLING_PRICES_TABLE_ID_DESC' | 'BILLING_PRICES_TABLE_NAME_ASC' @@ -8222,6 +8816,10 @@ export type BillingProviderModuleOrderBy = | 'BILLING_PRODUCTS_TABLE_ID_DESC' | 'BILLING_PRODUCTS_TABLE_NAME_ASC' | 'BILLING_PRODUCTS_TABLE_NAME_DESC' + | 'BILLING_REFUNDS_TABLE_ID_ASC' + | 'BILLING_REFUNDS_TABLE_ID_DESC' + | 'BILLING_REFUNDS_TABLE_NAME_ASC' + | 'BILLING_REFUNDS_TABLE_NAME_DESC' | 'BILLING_SUBSCRIPTIONS_TABLE_ID_ASC' | 'BILLING_SUBSCRIPTIONS_TABLE_ID_DESC' | 'BILLING_SUBSCRIPTIONS_TABLE_NAME_ASC' @@ -8234,6 +8832,10 @@ export type BillingProviderModuleOrderBy = | 'DATABASE_ID_DESC' | 'ID_ASC' | 'ID_DESC' + | 'LIST_PENDING_USAGE_SYNC_FUNCTION_ASC' + | 'LIST_PENDING_USAGE_SYNC_FUNCTION_DESC' + | 'MARK_USAGE_SYNCED_FUNCTION_ASC' + | 'MARK_USAGE_SYNCED_FUNCTION_DESC' | 'NATURAL' | 'PREFIX_ASC' | 'PREFIX_DESC' @@ -8251,10 +8853,14 @@ export type BillingProviderModuleOrderBy = | 'PRODUCTS_TABLE_ID_DESC' | 'PROVIDER_ASC' | 'PROVIDER_DESC' + | 'RECORD_REFUND_FUNCTION_ASC' + | 'RECORD_REFUND_FUNCTION_DESC' | 'SCHEMA_ID_ASC' | 'SCHEMA_ID_DESC' | 'SUBSCRIPTIONS_TABLE_ID_ASC' - | 'SUBSCRIPTIONS_TABLE_ID_DESC'; + | 'SUBSCRIPTIONS_TABLE_ID_DESC' + | 'UPSERT_INVOICE_FUNCTION_ASC' + | 'UPSERT_INVOICE_FUNCTION_DESC'; export type BlueprintOrderBy = | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' @@ -8353,25 +8959,77 @@ export type BlueprintTemplateOrderBy = | 'VERSION_DESC' | 'VISIBILITY_ASC' | 'VISIBILITY_DESC'; -export type CatalogModuleOrderBy = - | 'APIS_TABLE_ID_ASC' - | 'APIS_TABLE_ID_DESC' - | 'APIS_TABLE_NAME_ASC' - | 'APIS_TABLE_NAME_DESC' - | 'API_NAME_ASC' +export type CapabilitiesModuleOrderBy = + | 'ACTOR_TABLE_ID_ASC' + | 'ACTOR_TABLE_ID_DESC' + | 'API_NAME_ASC' + | 'API_NAME_DESC' + | 'BITLEN_ASC' + | 'BITLEN_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'DEFAULT_TABLE_ID_ASC' + | 'DEFAULT_TABLE_ID_DESC' + | 'DEFAULT_TABLE_NAME_ASC' + | 'DEFAULT_TABLE_NAME_DESC' + | 'ENTITY_FIELD_ASC' + | 'ENTITY_FIELD_DESC' + | 'ENTITY_TABLE_ID_ASC' + | 'ENTITY_TABLE_ID_DESC' + | 'GET_BY_MASK_ASC' + | 'GET_BY_MASK_DESC' + | 'GET_MASK_ASC' + | 'GET_MASK_BY_NAME_ASC' + | 'GET_MASK_BY_NAME_DESC' + | 'GET_MASK_DESC' + | 'GET_PADDED_MASK_ASC' + | 'GET_PADDED_MASK_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'NATURAL' + | 'PREFIX_ASC' + | 'PREFIX_DESC' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'PRIVATE_API_NAME_ASC' + | 'PRIVATE_API_NAME_DESC' + | 'PRIVATE_SCHEMA_ID_ASC' + | 'PRIVATE_SCHEMA_ID_DESC' + | 'PRIVATE_SCHEMA_NAME_ASC' + | 'PRIVATE_SCHEMA_NAME_DESC' + | 'PUBLIC_SCHEMA_NAME_ASC' + | 'PUBLIC_SCHEMA_NAME_DESC' + | 'SCHEMA_ID_ASC' + | 'SCHEMA_ID_DESC' + | 'SCOPE_ASC' + | 'SCOPE_DESC' + | 'TABLE_ID_ASC' + | 'TABLE_ID_DESC' + | 'TABLE_NAME_ASC' + | 'TABLE_NAME_DESC'; +export type CatalogModuleOrderBy = + | 'APIS_TABLE_ID_ASC' + | 'APIS_TABLE_ID_DESC' + | 'APIS_TABLE_NAME_ASC' + | 'APIS_TABLE_NAME_DESC' + | 'API_NAME_ASC' | 'API_NAME_DESC' | 'APPS_TABLE_ID_ASC' | 'APPS_TABLE_ID_DESC' | 'APPS_TABLE_NAME_ASC' | 'APPS_TABLE_NAME_DESC' + | 'BINDINGS_TABLE_ID_ASC' + | 'BINDINGS_TABLE_ID_DESC' + | 'BINDINGS_TABLE_NAME_ASC' + | 'BINDINGS_TABLE_NAME_DESC' | 'BUCKETS_TABLE_ID_ASC' | 'BUCKETS_TABLE_ID_DESC' | 'BUCKETS_TABLE_NAME_ASC' | 'BUCKETS_TABLE_NAME_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' - | 'DEFAULT_PERMISSIONS_ASC' - | 'DEFAULT_PERMISSIONS_DESC' + | 'DEFAULT_CAPABILITIES_ASC' + | 'DEFAULT_CAPABILITIES_DESC' | 'DOMAINS_TABLE_ID_ASC' | 'DOMAINS_TABLE_ID_DESC' | 'DOMAINS_TABLE_NAME_ASC' @@ -8521,6 +9179,44 @@ export type ConnectedAccountsModuleOrderBy = | 'TABLE_ID_DESC' | 'TABLE_NAME_ASC' | 'TABLE_NAME_DESC'; +export type ContentPresetModuleOrderBy = + | 'API_NAME_ASC' + | 'API_NAME_DESC' + | 'CONTENT_PRESETS_TABLE_ID_ASC' + | 'CONTENT_PRESETS_TABLE_ID_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'ENTITY_TABLE_ID_ASC' + | 'ENTITY_TABLE_ID_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'MERKLE_STORE_MODULE_ID_ASC' + | 'MERKLE_STORE_MODULE_ID_DESC' + | 'NATURAL' + | 'POLICIES_ASC' + | 'POLICIES_DESC' + | 'PREFIX_ASC' + | 'PREFIX_DESC' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'PRIVATE_API_NAME_ASC' + | 'PRIVATE_API_NAME_DESC' + | 'PRIVATE_SCHEMA_ID_ASC' + | 'PRIVATE_SCHEMA_ID_DESC' + | 'PRIVATE_SCHEMA_NAME_ASC' + | 'PRIVATE_SCHEMA_NAME_DESC' + | 'PROVISIONS_ASC' + | 'PROVISIONS_DESC' + | 'PUBLIC_SCHEMA_ID_ASC' + | 'PUBLIC_SCHEMA_ID_DESC' + | 'PUBLIC_SCHEMA_NAME_ASC' + | 'PUBLIC_SCHEMA_NAME_DESC' + | 'SCOPE_ASC' + | 'SCOPE_DESC' + | 'STORE_NAME_ASC' + | 'STORE_NAME_DESC'; export type CryptoAddressesModuleOrderBy = | 'API_NAME_ASC' | 'API_NAME_DESC' @@ -8577,6 +9273,32 @@ export type CryptoAuthModuleOrderBy = | 'USERS_TABLE_ID_DESC' | 'USER_FIELD_ASC' | 'USER_FIELD_DESC'; +export type DataCapabilitiesFieldOrderBy = + | 'CAPABILITIES_MODULE_ID_ASC' + | 'CAPABILITIES_MODULE_ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'FIELD_ID_ASC' + | 'FIELD_ID_DESC' + | 'FROM_FIELD_ID_ASC' + | 'FROM_FIELD_ID_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'MAPPING_FIELD_ID_ASC' + | 'MAPPING_FIELD_ID_DESC' + | 'MAPPING_KEY_FIELD_ID_ASC' + | 'MAPPING_KEY_FIELD_ID_DESC' + | 'MAPPING_TABLE_ID_ASC' + | 'MAPPING_TABLE_ID_DESC' + | 'MODE_ASC' + | 'MODE_DESC' + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'SUBSET_GUARD_ASC' + | 'SUBSET_GUARD_DESC' + | 'TABLE_ID_ASC' + | 'TABLE_ID_DESC'; export type DatabaseProvisionModuleOrderBy = | 'ASYNC_ASC' | 'ASYNC_DESC' @@ -8628,8 +9350,8 @@ export type DatabaseSettingsModuleOrderBy = | 'DATABASE_SETTINGS_TABLE_ID_DESC' | 'DATABASE_SETTINGS_TABLE_NAME_ASC' | 'DATABASE_SETTINGS_TABLE_NAME_DESC' - | 'DEFAULT_PERMISSIONS_ASC' - | 'DEFAULT_PERMISSIONS_DESC' + | 'DEFAULT_CAPABILITIES_ASC' + | 'DEFAULT_CAPABILITIES_DESC' | 'ENTITY_FIELD_ASC' | 'ENTITY_FIELD_DESC' | 'ENTITY_TABLE_ID_ASC' @@ -8766,8 +9488,8 @@ export type DbUsageModuleOrderBy = | 'COLLECT_DB_TABLE_STATS_FUNCTION_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' - | 'DEFAULT_PERMISSIONS_ASC' - | 'DEFAULT_PERMISSIONS_DESC' + | 'DEFAULT_CAPABILITIES_ASC' + | 'DEFAULT_CAPABILITIES_DESC' | 'ENTITY_FIELD_ASC' | 'ENTITY_FIELD_DESC' | 'ID_ASC' @@ -8876,8 +9598,8 @@ export type DomainModuleOrderBy = | 'CATALOG_MODULE_ID_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' - | 'DEFAULT_PERMISSIONS_ASC' - | 'DEFAULT_PERMISSIONS_DESC' + | 'DEFAULT_CAPABILITIES_ASC' + | 'DEFAULT_CAPABILITIES_DESC' | 'DOMAINS_TABLE_ID_ASC' | 'DOMAINS_TABLE_ID_DESC' | 'DOMAINS_TABLE_NAME_ASC' @@ -8921,6 +9643,50 @@ export type DomainModuleOrderBy = | 'SCHEMA_ID_DESC' | 'SCOPE_ASC' | 'SCOPE_DESC'; +export type EmailSenderModuleOrderBy = + | 'API_NAME_ASC' + | 'API_NAME_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'DEFAULT_CAPABILITIES_ASC' + | 'DEFAULT_CAPABILITIES_DESC' + | 'EMAIL_IDENTITIES_TABLE_ID_ASC' + | 'EMAIL_IDENTITIES_TABLE_ID_DESC' + | 'EMAIL_IDENTITIES_TABLE_NAME_ASC' + | 'EMAIL_IDENTITIES_TABLE_NAME_DESC' + | 'EMAIL_PROVIDER_ACCOUNTS_TABLE_ID_ASC' + | 'EMAIL_PROVIDER_ACCOUNTS_TABLE_ID_DESC' + | 'EMAIL_PROVIDER_ACCOUNTS_TABLE_NAME_ASC' + | 'EMAIL_PROVIDER_ACCOUNTS_TABLE_NAME_DESC' + | 'EMAIL_SITE_IDENTITIES_TABLE_ID_ASC' + | 'EMAIL_SITE_IDENTITIES_TABLE_ID_DESC' + | 'EMAIL_SITE_IDENTITIES_TABLE_NAME_ASC' + | 'EMAIL_SITE_IDENTITIES_TABLE_NAME_DESC' + | 'ENTITY_FIELD_ASC' + | 'ENTITY_FIELD_DESC' + | 'ENTITY_TABLE_ID_ASC' + | 'ENTITY_TABLE_ID_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'NATURAL' + | 'POLICIES_ASC' + | 'POLICIES_DESC' + | 'PREFIX_ASC' + | 'PREFIX_DESC' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'PRIVATE_API_NAME_ASC' + | 'PRIVATE_API_NAME_DESC' + | 'PROVISIONS_ASC' + | 'PROVISIONS_DESC' + | 'PUBLIC_SCHEMA_NAME_ASC' + | 'PUBLIC_SCHEMA_NAME_DESC' + | 'SCHEMA_ID_ASC' + | 'SCHEMA_ID_DESC' + | 'SCOPE_ASC' + | 'SCOPE_DESC' + | 'SITE_SURFACE_MODULE_ID_ASC' + | 'SITE_SURFACE_MODULE_ID_DESC'; export type EmailsModuleOrderBy = | 'API_NAME_ASC' | 'API_NAME_DESC' @@ -9036,8 +9802,8 @@ export type EventsModuleOrderBy = | 'API_NAME_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' - | 'DEFAULT_PERMISSIONS_ASC' - | 'DEFAULT_PERMISSIONS_DESC' + | 'DEFAULT_CAPABILITIES_ASC' + | 'DEFAULT_CAPABILITIES_DESC' | 'ENTITY_FIELD_ASC' | 'ENTITY_FIELD_DESC' | 'ENTITY_TABLE_ID_ASC' @@ -9054,6 +9820,8 @@ export type EventsModuleOrderBy = | 'EVENT_TYPES_TABLE_ID_DESC' | 'EVENT_TYPES_TABLE_NAME_ASC' | 'EVENT_TYPES_TABLE_NAME_DESC' + | 'EXPIRE_GRANTS_ASC' + | 'EXPIRE_GRANTS_DESC' | 'GRANT_ACHIEVEMENT_ASC' | 'GRANT_ACHIEVEMENT_DESC' | 'ID_ASC' @@ -9089,12 +9857,16 @@ export type EventsModuleOrderBy = | 'PRIVATE_SCHEMA_NAME_DESC' | 'PUBLIC_SCHEMA_NAME_ASC' | 'PUBLIC_SCHEMA_NAME_DESC' + | 'RECOMPUTE_CAPABILITIES_ASC' + | 'RECOMPUTE_CAPABILITIES_DESC' | 'RECORD_EVENT_ASC' | 'RECORD_EVENT_DESC' | 'REMOVE_EVENT_ASC' | 'REMOVE_EVENT_DESC' | 'RETENTION_ASC' | 'RETENTION_DESC' + | 'REVOKE_ACHIEVEMENT_ASC' + | 'REVOKE_ACHIEVEMENT_DESC' | 'SCHEMA_ID_ASC' | 'SCHEMA_ID_DESC' | 'SCOPE_ASC' @@ -9113,17 +9885,43 @@ export type EventsModuleOrderBy = | 'TG_EVENT_TOGGLE_BOOL_ASC' | 'TG_EVENT_TOGGLE_BOOL_DESC' | 'TG_EVENT_TOGGLE_DESC' + | 'TG_LEVEL_GRANT_SYNC_ASC' + | 'TG_LEVEL_GRANT_SYNC_DESC' | 'TG_UPDATE_AGGREGATES_ASC' | 'TG_UPDATE_AGGREGATES_DESC' + | 'TRUST_LADDER_ASC' + | 'TRUST_LADDER_DESC' | 'UPSERT_AGGREGATE_ASC' | 'UPSERT_AGGREGATE_DESC'; +export type FileRefFieldOrderBy = + | 'BUCKET_KEY_ASC' + | 'BUCKET_KEY_DESC' + | 'BUCKET_TAGS_ASC' + | 'BUCKET_TAGS_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'ENFORCE_FK_ASC' + | 'ENFORCE_FK_DESC' + | 'FIELD_ID_ASC' + | 'FIELD_ID_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'IS_PUBLIC_ASC' + | 'IS_PUBLIC_DESC' + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'STORAGE_MODULE_ID_ASC' + | 'STORAGE_MODULE_ID_DESC' + | 'TABLE_ID_ASC' + | 'TABLE_ID_DESC'; export type FunctionDeploymentModuleOrderBy = | 'API_NAME_ASC' | 'API_NAME_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' - | 'DEFAULT_PERMISSIONS_ASC' - | 'DEFAULT_PERMISSIONS_DESC' + | 'DEFAULT_CAPABILITIES_ASC' + | 'DEFAULT_CAPABILITIES_DESC' | 'DEPLOYMENTS_TABLE_ID_ASC' | 'DEPLOYMENTS_TABLE_ID_DESC' | 'DEPLOYMENTS_TABLE_NAME_ASC' @@ -9172,8 +9970,8 @@ export type FunctionInvocationModuleOrderBy = | 'ATTEMPTS_TABLE_NAME_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' - | 'DEFAULT_PERMISSIONS_ASC' - | 'DEFAULT_PERMISSIONS_DESC' + | 'DEFAULT_CAPABILITIES_ASC' + | 'DEFAULT_CAPABILITIES_DESC' | 'ENTITY_FIELD_ASC' | 'ENTITY_FIELD_DESC' | 'ENTITY_TABLE_ID_ASC' @@ -9220,8 +10018,8 @@ export type FunctionModuleOrderBy = | 'CAPABILITY_BINDINGS_TABLE_ID_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' - | 'DEFAULT_PERMISSIONS_ASC' - | 'DEFAULT_PERMISSIONS_DESC' + | 'DEFAULT_CAPABILITIES_ASC' + | 'DEFAULT_CAPABILITIES_DESC' | 'DEFINITIONS_TABLE_ID_ASC' | 'DEFINITIONS_TABLE_ID_DESC' | 'DEFINITIONS_TABLE_NAME_ASC' @@ -9264,8 +10062,8 @@ export type GraphExecutionModuleOrderBy = | 'CREATED_AT_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' - | 'DEFAULT_PERMISSIONS_ASC' - | 'DEFAULT_PERMISSIONS_DESC' + | 'DEFAULT_CAPABILITIES_ASC' + | 'DEFAULT_CAPABILITIES_DESC' | 'ENTITY_FIELD_ASC' | 'ENTITY_FIELD_DESC' | 'ENTITY_TABLE_ID_ASC' @@ -9314,8 +10112,8 @@ export type GraphModuleOrderBy = | 'CREATED_AT_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' - | 'DEFAULT_PERMISSIONS_ASC' - | 'DEFAULT_PERMISSIONS_DESC' + | 'DEFAULT_CAPABILITIES_ASC' + | 'DEFAULT_CAPABILITIES_DESC' | 'ENTITY_FIELD_ASC' | 'ENTITY_FIELD_DESC' | 'ENTITY_TABLE_ID_ASC' @@ -9360,8 +10158,8 @@ export type HierarchyModuleOrderBy = | 'CREATED_AT_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' - | 'DEFAULT_PERMISSIONS_ASC' - | 'DEFAULT_PERMISSIONS_DESC' + | 'DEFAULT_CAPABILITIES_ASC' + | 'DEFAULT_CAPABILITIES_DESC' | 'ENTITY_FIELD_ASC' | 'ENTITY_FIELD_DESC' | 'ENTITY_TABLE_ID_ASC' @@ -9402,8 +10200,8 @@ export type HttpRouteModuleOrderBy = | 'API_NAME_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' - | 'DEFAULT_PERMISSIONS_ASC' - | 'DEFAULT_PERMISSIONS_DESC' + | 'DEFAULT_CAPABILITIES_ASC' + | 'DEFAULT_CAPABILITIES_DESC' | 'ENTITY_FIELD_ASC' | 'ENTITY_FIELD_DESC' | 'ENTITY_TABLE_ID_ASC' @@ -9764,6 +10562,8 @@ export type LimitsModuleOrderBy = | 'LIMIT_DECREMENT_FUNCTION_DESC' | 'LIMIT_DECREMENT_TRIGGER_ASC' | 'LIMIT_DECREMENT_TRIGGER_DESC' + | 'LIMIT_DEFAULTS_ASC' + | 'LIMIT_DEFAULTS_DESC' | 'LIMIT_INCREMENT_FUNCTION_ASC' | 'LIMIT_INCREMENT_FUNCTION_DESC' | 'LIMIT_INCREMENT_TRIGGER_ASC' @@ -9824,12 +10624,18 @@ export type MembershipsModuleOrderBy = | 'ADMIN_GRANTS_TABLE_NAME_DESC' | 'API_NAME_ASC' | 'API_NAME_DESC' + | 'CAPABILITIES_TABLE_ID_ASC' + | 'CAPABILITIES_TABLE_ID_DESC' + | 'CAPABILITY_DEFAULT_CAPABILITIES_TABLE_ID_ASC' + | 'CAPABILITY_DEFAULT_CAPABILITIES_TABLE_ID_DESC' + | 'CAPABILITY_DEFAULT_GRANTS_TABLE_ID_ASC' + | 'CAPABILITY_DEFAULT_GRANTS_TABLE_ID_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' + | 'DEFAULT_CAPABILITIES_TABLE_ID_ASC' + | 'DEFAULT_CAPABILITIES_TABLE_ID_DESC' | 'DEFAULT_LIMITS_TABLE_ID_ASC' | 'DEFAULT_LIMITS_TABLE_ID_DESC' - | 'DEFAULT_PERMISSIONS_TABLE_ID_ASC' - | 'DEFAULT_PERMISSIONS_TABLE_ID_DESC' | 'ENTITY_FIELD_ASC' | 'ENTITY_FIELD_DESC' | 'ENTITY_IDS_BY_MASK_ASC' @@ -9875,12 +10681,6 @@ export type MembershipsModuleOrderBy = | 'OWNER_GRANTS_TABLE_ID_DESC' | 'OWNER_GRANTS_TABLE_NAME_ASC' | 'OWNER_GRANTS_TABLE_NAME_DESC' - | 'PERMISSIONS_TABLE_ID_ASC' - | 'PERMISSIONS_TABLE_ID_DESC' - | 'PERMISSION_DEFAULT_GRANTS_TABLE_ID_ASC' - | 'PERMISSION_DEFAULT_GRANTS_TABLE_ID_DESC' - | 'PERMISSION_DEFAULT_PERMISSIONS_TABLE_ID_ASC' - | 'PERMISSION_DEFAULT_PERMISSIONS_TABLE_ID_DESC' | 'PREFIX_ASC' | 'PREFIX_DESC' | 'PRIMARY_KEY_ASC' @@ -9902,6 +10702,8 @@ export type MembershipsModuleOrderBy = export type MerkleStoreModuleOrderBy = | 'API_NAME_ASC' | 'API_NAME_DESC' + | 'CAPABILITY_KEY_ASC' + | 'CAPABILITY_KEY_DESC' | 'COMMIT_TABLE_ID_ASC' | 'COMMIT_TABLE_ID_DESC' | 'CREATED_AT_ASC' @@ -9917,8 +10719,6 @@ export type MerkleStoreModuleOrderBy = | 'NATURAL' | 'OBJECT_TABLE_ID_ASC' | 'OBJECT_TABLE_ID_DESC' - | 'PERMISSION_KEY_ASC' - | 'PERMISSION_KEY_DESC' | 'PREFIX_ASC' | 'PREFIX_DESC' | 'PRIMARY_KEY_ASC' @@ -9944,8 +10744,8 @@ export type NamespaceModuleOrderBy = | 'API_NAME_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' - | 'DEFAULT_PERMISSIONS_ASC' - | 'DEFAULT_PERMISSIONS_DESC' + | 'DEFAULT_CAPABILITIES_ASC' + | 'DEFAULT_CAPABILITIES_DESC' | 'ENTITY_FIELD_ASC' | 'ENTITY_FIELD_DESC' | 'ENTITY_TABLE_ID_ASC' @@ -9988,8 +10788,8 @@ export type NotificationsModuleOrderBy = | 'CHANNELS_TABLE_ID_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' - | 'DEFAULT_PERMISSIONS_ASC' - | 'DEFAULT_PERMISSIONS_DESC' + | 'DEFAULT_CAPABILITIES_ASC' + | 'DEFAULT_CAPABILITIES_DESC' | 'DELIVERY_LOG_TABLE_ID_ASC' | 'DELIVERY_LOG_TABLE_ID_DESC' | 'ENTITY_FIELD_ASC' @@ -10033,6 +10833,34 @@ export type NotificationsModuleOrderBy = | 'SUPPRESSIONS_TABLE_ID_DESC' | 'USER_SETTINGS_TABLE_ID_ASC' | 'USER_SETTINGS_TABLE_ID_DESC'; +export type OauthRequestsModuleOrderBy = + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'ENTITY_FIELD_ASC' + | 'ENTITY_FIELD_DESC' + | 'ENTITY_TABLE_ID_ASC' + | 'ENTITY_TABLE_ID_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'NATURAL' + | 'OAUTH_AUTHORIZATION_REQUESTS_TABLE_ID_ASC' + | 'OAUTH_AUTHORIZATION_REQUESTS_TABLE_ID_DESC' + | 'OAUTH_AUTHORIZATION_REQUESTS_TABLE_NAME_ASC' + | 'OAUTH_AUTHORIZATION_REQUESTS_TABLE_NAME_DESC' + | 'PENDING_IDENTITY_LINKS_TABLE_ID_ASC' + | 'PENDING_IDENTITY_LINKS_TABLE_ID_DESC' + | 'PENDING_IDENTITY_LINKS_TABLE_NAME_ASC' + | 'PENDING_IDENTITY_LINKS_TABLE_NAME_DESC' + | 'PREFIX_ASC' + | 'PREFIX_DESC' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'PRIVATE_SCHEMA_ID_ASC' + | 'PRIVATE_SCHEMA_ID_DESC' + | 'PRIVATE_SCHEMA_NAME_ASC' + | 'PRIVATE_SCHEMA_NAME_DESC' + | 'SCOPE_ASC' + | 'SCOPE_DESC'; export type PagesModuleOrderBy = | 'API_NAME_ASC' | 'API_NAME_DESC' @@ -10075,54 +10903,6 @@ export type PagesModuleOrderBy = | 'SITE_SURFACE_MODULE_ID_DESC' | 'STORE_NAME_PREFIX_ASC' | 'STORE_NAME_PREFIX_DESC'; -export type PermissionsModuleOrderBy = - | 'ACTOR_TABLE_ID_ASC' - | 'ACTOR_TABLE_ID_DESC' - | 'API_NAME_ASC' - | 'API_NAME_DESC' - | 'BITLEN_ASC' - | 'BITLEN_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' - | 'DEFAULT_TABLE_ID_ASC' - | 'DEFAULT_TABLE_ID_DESC' - | 'DEFAULT_TABLE_NAME_ASC' - | 'DEFAULT_TABLE_NAME_DESC' - | 'ENTITY_FIELD_ASC' - | 'ENTITY_FIELD_DESC' - | 'ENTITY_TABLE_ID_ASC' - | 'ENTITY_TABLE_ID_DESC' - | 'GET_BY_MASK_ASC' - | 'GET_BY_MASK_DESC' - | 'GET_MASK_ASC' - | 'GET_MASK_BY_NAME_ASC' - | 'GET_MASK_BY_NAME_DESC' - | 'GET_MASK_DESC' - | 'GET_PADDED_MASK_ASC' - | 'GET_PADDED_MASK_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'NATURAL' - | 'PREFIX_ASC' - | 'PREFIX_DESC' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'PRIVATE_API_NAME_ASC' - | 'PRIVATE_API_NAME_DESC' - | 'PRIVATE_SCHEMA_ID_ASC' - | 'PRIVATE_SCHEMA_ID_DESC' - | 'PRIVATE_SCHEMA_NAME_ASC' - | 'PRIVATE_SCHEMA_NAME_DESC' - | 'PUBLIC_SCHEMA_NAME_ASC' - | 'PUBLIC_SCHEMA_NAME_DESC' - | 'SCHEMA_ID_ASC' - | 'SCHEMA_ID_DESC' - | 'SCOPE_ASC' - | 'SCOPE_DESC' - | 'TABLE_ID_ASC' - | 'TABLE_ID_DESC' - | 'TABLE_NAME_ASC' - | 'TABLE_NAME_DESC'; export type PhoneNumbersModuleOrderBy = | 'API_NAME_ASC' | 'API_NAME_DESC' @@ -10236,6 +11016,8 @@ export type ProfilesModuleOrderBy = | 'ACTOR_TABLE_ID_DESC' | 'API_NAME_ASC' | 'API_NAME_DESC' + | 'CAPABILITIES_TABLE_ID_ASC' + | 'CAPABILITIES_TABLE_ID_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' | 'ENTITY_FIELD_ASC' @@ -10246,9 +11028,11 @@ export type ProfilesModuleOrderBy = | 'ID_DESC' | 'MEMBERSHIPS_TABLE_ID_ASC' | 'MEMBERSHIPS_TABLE_ID_DESC' + | 'MEMBERSHIP_PROFILES_TABLE_ID_ASC' + | 'MEMBERSHIP_PROFILES_TABLE_ID_DESC' + | 'MEMBERSHIP_PROFILES_TABLE_NAME_ASC' + | 'MEMBERSHIP_PROFILES_TABLE_NAME_DESC' | 'NATURAL' - | 'PERMISSIONS_TABLE_ID_ASC' - | 'PERMISSIONS_TABLE_ID_DESC' | 'PREFIX_ASC' | 'PREFIX_DESC' | 'PRIMARY_KEY_ASC' @@ -10259,6 +11043,10 @@ export type ProfilesModuleOrderBy = | 'PRIVATE_SCHEMA_ID_DESC' | 'PRIVATE_SCHEMA_NAME_ASC' | 'PRIVATE_SCHEMA_NAME_DESC' + | 'PROFILE_CAPABILITIES_TABLE_ID_ASC' + | 'PROFILE_CAPABILITIES_TABLE_ID_DESC' + | 'PROFILE_CAPABILITIES_TABLE_NAME_ASC' + | 'PROFILE_CAPABILITIES_TABLE_NAME_DESC' | 'PROFILE_DEFINITION_GRANTS_TABLE_ID_ASC' | 'PROFILE_DEFINITION_GRANTS_TABLE_ID_DESC' | 'PROFILE_DEFINITION_GRANTS_TABLE_NAME_ASC' @@ -10267,10 +11055,6 @@ export type ProfilesModuleOrderBy = | 'PROFILE_GRANTS_TABLE_ID_DESC' | 'PROFILE_GRANTS_TABLE_NAME_ASC' | 'PROFILE_GRANTS_TABLE_NAME_DESC' - | 'PROFILE_PERMISSIONS_TABLE_ID_ASC' - | 'PROFILE_PERMISSIONS_TABLE_ID_DESC' - | 'PROFILE_PERMISSIONS_TABLE_NAME_ASC' - | 'PROFILE_PERMISSIONS_TABLE_NAME_DESC' | 'PROFILE_TEMPLATES_TABLE_ID_ASC' | 'PROFILE_TEMPLATES_TABLE_ID_DESC' | 'PROFILE_TEMPLATES_TABLE_NAME_ASC' @@ -10292,8 +11076,8 @@ export type RateLimitMetersModuleOrderBy = | 'CHECK_RATE_LIMIT_FUNCTION_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' - | 'DEFAULT_PERMISSIONS_ASC' - | 'DEFAULT_PERMISSIONS_DESC' + | 'DEFAULT_CAPABILITIES_ASC' + | 'DEFAULT_CAPABILITIES_DESC' | 'ID_ASC' | 'ID_DESC' | 'NATURAL' @@ -10434,8 +11218,8 @@ export type ResourceModuleOrderBy = | 'API_NAME_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' - | 'DEFAULT_PERMISSIONS_ASC' - | 'DEFAULT_PERMISSIONS_DESC' + | 'DEFAULT_CAPABILITIES_ASC' + | 'DEFAULT_CAPABILITIES_DESC' | 'ENTITY_FIELD_ASC' | 'ENTITY_FIELD_DESC' | 'ENTITY_TABLE_ID_ASC' @@ -10538,12 +11322,16 @@ export type RlsModuleOrderBy = export type RouteModuleOrderBy = | 'API_NAME_ASC' | 'API_NAME_DESC' + | 'APP_LINKS_FUNCTION_NAME_ASC' + | 'APP_LINKS_FUNCTION_NAME_DESC' | 'CATALOG_MODULE_ID_ASC' | 'CATALOG_MODULE_ID_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' - | 'DEFAULT_PERMISSIONS_ASC' - | 'DEFAULT_PERMISSIONS_DESC' + | 'DEEP_LINK_FUNCTION_NAME_ASC' + | 'DEEP_LINK_FUNCTION_NAME_DESC' + | 'DEFAULT_CAPABILITIES_ASC' + | 'DEFAULT_CAPABILITIES_DESC' | 'DOMAIN_MODULE_ID_ASC' | 'DOMAIN_MODULE_ID_DESC' | 'ENTITY_FIELD_ASC' @@ -10587,6 +11375,20 @@ export type RouteModuleOrderBy = | 'SCHEMA_ID_DESC' | 'SCOPE_ASC' | 'SCOPE_DESC'; +export type ScopeTypesModuleOrderBy = + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'PRIVATE_SCHEMA_NAME_ASC' + | 'PRIVATE_SCHEMA_NAME_DESC' + | 'SCHEMA_ID_ASC' + | 'SCHEMA_ID_DESC' + | 'SCOPE_TYPES_TABLE_ID_ASC' + | 'SCOPE_TYPES_TABLE_ID_DESC'; export type SecureTableProvisionOrderBy = | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' @@ -10662,8 +11464,8 @@ export type SiteSurfaceModuleOrderBy = | 'CATALOG_MODULE_ID_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' - | 'DEFAULT_PERMISSIONS_ASC' - | 'DEFAULT_PERMISSIONS_DESC' + | 'DEFAULT_CAPABILITIES_ASC' + | 'DEFAULT_CAPABILITIES_DESC' | 'ENTITY_FIELD_ASC' | 'ENTITY_FIELD_DESC' | 'ENTITY_TABLE_ID_ASC' @@ -10784,10 +11586,10 @@ export type StorageModuleOrderBy = | 'CONFIRM_UPLOAD_DELAY_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' + | 'DEFAULT_CAPABILITIES_ASC' + | 'DEFAULT_CAPABILITIES_DESC' | 'DEFAULT_MAX_FILE_SIZE_ASC' | 'DEFAULT_MAX_FILE_SIZE_DESC' - | 'DEFAULT_PERMISSIONS_ASC' - | 'DEFAULT_PERMISSIONS_DESC' | 'DOWNLOAD_URL_EXPIRY_SECONDS_ASC' | 'DOWNLOAD_URL_EXPIRY_SECONDS_DESC' | 'ENDPOINT_ASC' @@ -10993,6 +11795,24 @@ export type UserSettingsModuleOrderBy = | 'TABLE_ID_DESC' | 'TABLE_NAME_ASC' | 'TABLE_NAME_DESC'; +export type UserSettingsSecurityModuleOrderBy = + | 'API_NAME_ASC' + | 'API_NAME_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'NATURAL' + | 'OWNER_TABLE_ID_ASC' + | 'OWNER_TABLE_ID_DESC' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'SCHEMA_ID_ASC' + | 'SCHEMA_ID_DESC' + | 'TABLE_ID_ASC' + | 'TABLE_ID_DESC' + | 'TABLE_NAME_ASC' + | 'TABLE_NAME_DESC'; export type UserStateModuleOrderBy = | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' @@ -11094,8 +11914,8 @@ export type WebhookModuleOrderBy = | 'API_NAME_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' - | 'DEFAULT_PERMISSIONS_ASC' - | 'DEFAULT_PERMISSIONS_DESC' + | 'DEFAULT_CAPABILITIES_ASC' + | 'DEFAULT_CAPABILITIES_DESC' | 'ENTITY_FIELD_ASC' | 'ENTITY_FIELD_DESC' | 'ENTITY_TABLE_ID_ASC' @@ -11147,7 +11967,7 @@ export interface CreateAgentModuleInput { agentTableName?: string; apiName?: string; databaseId: string; - defaultPermissions?: string[]; + defaultCapabilities?: string[]; entityField?: string; entityTableId?: string; hasAgents?: boolean; @@ -11185,7 +12005,7 @@ export interface AgentModulePatch { agentTableName?: string | null; apiName?: string | null; databaseId?: string | null; - defaultPermissions?: string[] | null; + defaultCapabilities?: string[] | null; entityField?: string | null; entityTableId?: string | null; hasAgents?: boolean | null; @@ -11240,7 +12060,7 @@ export interface CreateApiSurfaceModuleInput { corsSettingsTableId?: string; corsSettingsTableName?: string; databaseId: string; - defaultPermissions?: string[]; + defaultCapabilities?: string[]; entityField?: string; entityTableId?: string; policies?: Record; @@ -11264,7 +12084,7 @@ export interface ApiSurfaceModulePatch { corsSettingsTableId?: string | null; corsSettingsTableName?: string | null; databaseId?: string | null; - defaultPermissions?: string[] | null; + defaultCapabilities?: string[] | null; entityField?: string | null; entityTableId?: string | null; policies?: Record | null; @@ -11294,7 +12114,7 @@ export interface CreateAppModuleInput { appsTableName?: string; catalogModuleId?: string; databaseId: string; - defaultPermissions?: string[]; + defaultCapabilities?: string[]; entityField?: string; entityTableId?: string; policies?: Record; @@ -11316,7 +12136,7 @@ export interface AppModulePatch { appsTableName?: string | null; catalogModuleId?: string | null; databaseId?: string | null; - defaultPermissions?: string[] | null; + defaultCapabilities?: string[] | null; entityField?: string | null; entityTableId?: string | null; policies?: Record | null; @@ -11345,8 +12165,8 @@ export interface CreateBillingModuleInput { balancesTableId?: string; balancesTableName?: string; databaseId: string; + defaultCapabilities?: string[]; defaultMeterCatalog?: Record; - defaultPermissions?: string[]; ledgerTableId?: string; ledgerTableName?: string; meterCreditsTableId?: string; @@ -11375,8 +12195,8 @@ export interface BillingModulePatch { balancesTableId?: string | null; balancesTableName?: string | null; databaseId?: string | null; + defaultCapabilities?: string[] | null; defaultMeterCatalog?: Record | null; - defaultPermissions?: string[] | null; ledgerTableId?: string | null; ledgerTableName?: string | null; meterCreditsTableId?: string | null; @@ -11414,15 +12234,21 @@ export interface CreateBillingProviderModuleInput { apiName?: string; billingCustomersTableId?: string; billingCustomersTableName?: string; + billingInvoicesTableId?: string; + billingInvoicesTableName?: string; billingPricesTableId?: string; billingPricesTableName?: string; billingProductsTableId?: string; billingProductsTableName?: string; + billingRefundsTableId?: string; + billingRefundsTableName?: string; billingSubscriptionsTableId?: string; billingSubscriptionsTableName?: string; billingWebhookEventsTableId?: string; billingWebhookEventsTableName?: string; databaseId: string; + listPendingUsageSyncFunction?: string; + markUsageSyncedFunction?: string; prefix?: string; pricesTableId?: string; privateApiName?: string; @@ -11430,23 +12256,31 @@ export interface CreateBillingProviderModuleInput { processBillingEventFunction?: string; productsTableId?: string; provider?: string; + recordRefundFunction?: string; schemaId?: string; subscriptionsTableId?: string; + upsertInvoiceFunction?: string; }; } export interface BillingProviderModulePatch { apiName?: string | null; billingCustomersTableId?: string | null; billingCustomersTableName?: string | null; + billingInvoicesTableId?: string | null; + billingInvoicesTableName?: string | null; billingPricesTableId?: string | null; billingPricesTableName?: string | null; billingProductsTableId?: string | null; billingProductsTableName?: string | null; + billingRefundsTableId?: string | null; + billingRefundsTableName?: string | null; billingSubscriptionsTableId?: string | null; billingSubscriptionsTableName?: string | null; billingWebhookEventsTableId?: string | null; billingWebhookEventsTableName?: string | null; databaseId?: string | null; + listPendingUsageSyncFunction?: string | null; + markUsageSyncedFunction?: string | null; prefix?: string | null; pricesTableId?: string | null; privateApiName?: string | null; @@ -11454,8 +12288,10 @@ export interface BillingProviderModulePatch { processBillingEventFunction?: string | null; productsTableId?: string | null; provider?: string | null; + recordRefundFunction?: string | null; schemaId?: string | null; subscriptionsTableId?: string | null; + upsertInvoiceFunction?: string | null; } export interface UpdateBillingProviderModuleInput { clientMutationId?: string; @@ -11582,27 +12418,87 @@ export interface DeleteBlueprintTemplateInput { clientMutationId?: string; id: string; } -export interface CreateCatalogModuleInput { +export interface CreateCapabilitiesModuleInput { clientMutationId?: string; - catalogModule: { + capabilitiesModule: { + actorTableId?: string; apiName?: string; - apisTableId?: string; - apisTableName?: string; - appsTableId?: string; - appsTableName?: string; - bucketsTableId?: string; - bucketsTableName?: string; + bitlen?: number; databaseId: string; - defaultPermissions?: string[]; - domainsTableId?: string; - domainsTableName?: string; + defaultTableId?: string; + defaultTableName?: string; + entityField?: string; entityTableId?: string; - functionsTableId?: string; - functionsTableName?: string; - namespacesTableId?: string; - namespacesTableName?: string; - policies?: Record; - privateApiName?: string; + getByMask?: string; + getMask?: string; + getMaskByName?: string; + getPaddedMask?: string; + prefix?: string; + privateApiName?: string; + privateSchemaId?: string; + privateSchemaName?: string; + publicSchemaName?: string; + schemaId?: string; + scope: string; + tableId?: string; + tableName?: string; + }; +} +export interface CapabilitiesModulePatch { + actorTableId?: string | null; + apiName?: string | null; + bitlen?: number | null; + databaseId?: string | null; + defaultTableId?: string | null; + defaultTableName?: string | null; + entityField?: string | null; + entityTableId?: string | null; + getByMask?: string | null; + getMask?: string | null; + getMaskByName?: string | null; + getPaddedMask?: string | null; + prefix?: string | null; + privateApiName?: string | null; + privateSchemaId?: string | null; + privateSchemaName?: string | null; + publicSchemaName?: string | null; + schemaId?: string | null; + scope?: string | null; + tableId?: string | null; + tableName?: string | null; +} +export interface UpdateCapabilitiesModuleInput { + clientMutationId?: string; + id: string; + capabilitiesModulePatch: CapabilitiesModulePatch; +} +export interface DeleteCapabilitiesModuleInput { + clientMutationId?: string; + id: string; +} +export interface CreateCatalogModuleInput { + clientMutationId?: string; + catalogModule: { + apiName?: string; + apisTableId?: string; + apisTableName?: string; + appsTableId?: string; + appsTableName?: string; + bindingsTableId?: string; + bindingsTableName?: string; + bucketsTableId?: string; + bucketsTableName?: string; + databaseId: string; + defaultCapabilities?: string[]; + domainsTableId?: string; + domainsTableName?: string; + entityTableId?: string; + functionsTableId?: string; + functionsTableName?: string; + namespacesTableId?: string; + namespacesTableName?: string; + policies?: Record; + privateApiName?: string; provisions?: Record; publicSchemaName?: string; resourceDefinitionsTableId?: string; @@ -11631,10 +12527,12 @@ export interface CatalogModulePatch { apisTableName?: string | null; appsTableId?: string | null; appsTableName?: string | null; + bindingsTableId?: string | null; + bindingsTableName?: string | null; bucketsTableId?: string | null; bucketsTableName?: string | null; databaseId?: string | null; - defaultPermissions?: string[] | null; + defaultCapabilities?: string[] | null; domainsTableId?: string | null; domainsTableName?: string | null; entityTableId?: string | null; @@ -11790,6 +12688,52 @@ export interface DeleteConnectedAccountsModuleInput { clientMutationId?: string; id: string; } +export interface CreateContentPresetModuleInput { + clientMutationId?: string; + contentPresetModule: { + apiName?: string; + contentPresetsTableId?: string; + databaseId: string; + entityTableId?: string; + merkleStoreModuleId: string; + policies?: Record; + prefix: string; + privateApiName?: string; + privateSchemaId?: string; + privateSchemaName?: string; + provisions?: Record; + publicSchemaId?: string; + publicSchemaName?: string; + scope: string; + storeName: string; + }; +} +export interface ContentPresetModulePatch { + apiName?: string | null; + contentPresetsTableId?: string | null; + databaseId?: string | null; + entityTableId?: string | null; + merkleStoreModuleId?: string | null; + policies?: Record | null; + prefix?: string | null; + privateApiName?: string | null; + privateSchemaId?: string | null; + privateSchemaName?: string | null; + provisions?: Record | null; + publicSchemaId?: string | null; + publicSchemaName?: string | null; + scope?: string | null; + storeName?: string | null; +} +export interface UpdateContentPresetModuleInput { + clientMutationId?: string; + id: string; + contentPresetModulePatch: ContentPresetModulePatch; +} +export interface DeleteContentPresetModuleInput { + clientMutationId?: string; + id: string; +} export interface CreateCryptoAddressesModuleInput { clientMutationId?: string; cryptoAddressesModule: { @@ -11866,6 +12810,42 @@ export interface DeleteCryptoAuthModuleInput { clientMutationId?: string; id: string; } +export interface CreateDataCapabilitiesFieldInput { + clientMutationId?: string; + dataCapabilitiesField: { + capabilitiesModuleId: string; + databaseId: string; + fieldId: string; + fromFieldId?: string; + mappingFieldId?: string; + mappingKeyFieldId?: string; + mappingTableId?: string; + mode?: string; + subsetGuard?: boolean; + tableId: string; + }; +} +export interface DataCapabilitiesFieldPatch { + capabilitiesModuleId?: string | null; + databaseId?: string | null; + fieldId?: string | null; + fromFieldId?: string | null; + mappingFieldId?: string | null; + mappingKeyFieldId?: string | null; + mappingTableId?: string | null; + mode?: string | null; + subsetGuard?: boolean | null; + tableId?: string | null; +} +export interface UpdateDataCapabilitiesFieldInput { + clientMutationId?: string; + id: string; + dataCapabilitiesFieldPatch: DataCapabilitiesFieldPatch; +} +export interface DeleteDataCapabilitiesFieldInput { + clientMutationId?: string; + id: string; +} export interface CreateDatabaseProvisionModuleInput { clientMutationId?: string; databaseProvisionModule: { @@ -11921,7 +12901,7 @@ export interface CreateDatabaseSettingsModuleInput { databaseId: string; databaseSettingsTableId?: string; databaseSettingsTableName?: string; - defaultPermissions?: string[]; + defaultCapabilities?: string[]; entityField?: string; entityTableId?: string; policies?: Record; @@ -11944,7 +12924,7 @@ export interface DatabaseSettingsModulePatch { databaseId?: string | null; databaseSettingsTableId?: string | null; databaseSettingsTableName?: string | null; - defaultPermissions?: string[] | null; + defaultCapabilities?: string[] | null; entityField?: string | null; entityTableId?: string | null; policies?: Record | null; @@ -12089,7 +13069,7 @@ export interface CreateDbUsageModuleInput { collectDbQueryStatsFunction?: string; collectDbTableStatsFunction?: string; databaseId: string; - defaultPermissions?: string[]; + defaultCapabilities?: string[]; entityField?: string; interval?: string; prefix?: string; @@ -12118,7 +13098,7 @@ export interface DbUsageModulePatch { collectDbQueryStatsFunction?: string | null; collectDbTableStatsFunction?: string | null; databaseId?: string | null; - defaultPermissions?: string[] | null; + defaultCapabilities?: string[] | null; entityField?: string | null; interval?: string | null; prefix?: string | null; @@ -12240,7 +13220,7 @@ export interface CreateDomainModuleInput { apiName?: string; catalogModuleId?: string; databaseId: string; - defaultPermissions?: string[]; + defaultCapabilities?: string[]; domainEventsTableId?: string; domainEventsTableName?: string; domainVerificationsTableId?: string; @@ -12266,7 +13246,7 @@ export interface DomainModulePatch { apiName?: string | null; catalogModuleId?: string | null; databaseId?: string | null; - defaultPermissions?: string[] | null; + defaultCapabilities?: string[] | null; domainEventsTableId?: string | null; domainEventsTableName?: string | null; domainVerificationsTableId?: string | null; @@ -12296,6 +13276,60 @@ export interface DeleteDomainModuleInput { clientMutationId?: string; id: string; } +export interface CreateEmailSenderModuleInput { + clientMutationId?: string; + emailSenderModule: { + apiName?: string; + databaseId: string; + defaultCapabilities?: string[]; + emailIdentitiesTableId?: string; + emailIdentitiesTableName?: string; + emailProviderAccountsTableId?: string; + emailProviderAccountsTableName?: string; + emailSiteIdentitiesTableId?: string; + emailSiteIdentitiesTableName?: string; + entityField?: string; + entityTableId?: string; + policies?: Record; + prefix?: string; + privateApiName?: string; + provisions?: Record; + publicSchemaName?: string; + schemaId?: string; + scope: string; + siteSurfaceModuleId?: string; + }; +} +export interface EmailSenderModulePatch { + apiName?: string | null; + databaseId?: string | null; + defaultCapabilities?: string[] | null; + emailIdentitiesTableId?: string | null; + emailIdentitiesTableName?: string | null; + emailProviderAccountsTableId?: string | null; + emailProviderAccountsTableName?: string | null; + emailSiteIdentitiesTableId?: string | null; + emailSiteIdentitiesTableName?: string | null; + entityField?: string | null; + entityTableId?: string | null; + policies?: Record | null; + prefix?: string | null; + privateApiName?: string | null; + provisions?: Record | null; + publicSchemaName?: string | null; + schemaId?: string | null; + scope?: string | null; + siteSurfaceModuleId?: string | null; +} +export interface UpdateEmailSenderModuleInput { + clientMutationId?: string; + id: string; + emailSenderModulePatch: EmailSenderModulePatch; +} +export interface DeleteEmailSenderModuleInput { + clientMutationId?: string; + id: string; +} export interface CreateEmailsModuleInput { clientMutationId?: string; emailsModule: { @@ -12428,7 +13462,7 @@ export interface CreateEventsModuleInput { actorTableId?: string; apiName?: string; databaseId: string; - defaultPermissions?: string[]; + defaultCapabilities?: string[]; entityField?: string; entityTableId?: string; eventAggregatesTableId?: string; @@ -12437,6 +13471,7 @@ export interface CreateEventsModuleInput { eventTypesTableName?: string; eventsTableId?: string; eventsTableName?: string; + expireGrants?: string; grantAchievement?: string; interval?: string; levelAchieved?: string; @@ -12452,9 +13487,11 @@ export interface CreateEventsModuleInput { privateSchemaId?: string; privateSchemaName?: string; publicSchemaName?: string; + recomputeCapabilities?: string; recordEvent?: string; removeEvent?: string; retention?: string; + revokeAchievement?: string; schemaId?: string; scope: string; stepsRequired?: string; @@ -12464,7 +13501,9 @@ export interface CreateEventsModuleInput { tgEventBool?: string; tgEventToggle?: string; tgEventToggleBool?: string; + tgLevelGrantSync?: string; tgUpdateAggregates?: string; + trustLadder?: Record; upsertAggregate?: string; }; } @@ -12474,7 +13513,7 @@ export interface EventsModulePatch { actorTableId?: string | null; apiName?: string | null; databaseId?: string | null; - defaultPermissions?: string[] | null; + defaultCapabilities?: string[] | null; entityField?: string | null; entityTableId?: string | null; eventAggregatesTableId?: string | null; @@ -12483,6 +13522,7 @@ export interface EventsModulePatch { eventTypesTableName?: string | null; eventsTableId?: string | null; eventsTableName?: string | null; + expireGrants?: string | null; grantAchievement?: string | null; interval?: string | null; levelAchieved?: string | null; @@ -12498,9 +13538,11 @@ export interface EventsModulePatch { privateSchemaId?: string | null; privateSchemaName?: string | null; publicSchemaName?: string | null; + recomputeCapabilities?: string | null; recordEvent?: string | null; removeEvent?: string | null; retention?: string | null; + revokeAchievement?: string | null; schemaId?: string | null; scope?: string | null; stepsRequired?: string | null; @@ -12510,7 +13552,9 @@ export interface EventsModulePatch { tgEventBool?: string | null; tgEventToggle?: string | null; tgEventToggleBool?: string | null; + tgLevelGrantSync?: string | null; tgUpdateAggregates?: string | null; + trustLadder?: Record | null; upsertAggregate?: string | null; } export interface UpdateEventsModuleInput { @@ -12522,12 +13566,44 @@ export interface DeleteEventsModuleInput { clientMutationId?: string; id: string; } +export interface CreateFileRefFieldInput { + clientMutationId?: string; + fileRefField: { + bucketKey?: string; + bucketTags?: string[]; + databaseId: string; + enforceFk?: boolean; + fieldId: string; + isPublic?: boolean; + storageModuleId: string; + tableId: string; + }; +} +export interface FileRefFieldPatch { + bucketKey?: string | null; + bucketTags?: string[] | null; + databaseId?: string | null; + enforceFk?: boolean | null; + fieldId?: string | null; + isPublic?: boolean | null; + storageModuleId?: string | null; + tableId?: string | null; +} +export interface UpdateFileRefFieldInput { + clientMutationId?: string; + id: string; + fileRefFieldPatch: FileRefFieldPatch; +} +export interface DeleteFileRefFieldInput { + clientMutationId?: string; + id: string; +} export interface CreateFunctionDeploymentModuleInput { clientMutationId?: string; functionDeploymentModule: { apiName?: string; databaseId: string; - defaultPermissions?: string[]; + defaultCapabilities?: string[]; deploymentEventsTableId?: string; deploymentEventsTableName?: string; deploymentsTableId?: string; @@ -12550,7 +13626,7 @@ export interface CreateFunctionDeploymentModuleInput { export interface FunctionDeploymentModulePatch { apiName?: string | null; databaseId?: string | null; - defaultPermissions?: string[] | null; + defaultCapabilities?: string[] | null; deploymentEventsTableId?: string | null; deploymentEventsTableName?: string | null; deploymentsTableId?: string | null; @@ -12585,7 +13661,7 @@ export interface CreateFunctionInvocationModuleInput { attemptsTableId?: string; attemptsTableName?: string; databaseId: string; - defaultPermissions?: string[]; + defaultCapabilities?: string[]; entityField?: string; entityTableId?: string; executionLogsTableId?: string; @@ -12608,7 +13684,7 @@ export interface FunctionInvocationModulePatch { attemptsTableId?: string | null; attemptsTableName?: string | null; databaseId?: string | null; - defaultPermissions?: string[] | null; + defaultCapabilities?: string[] | null; entityField?: string | null; entityTableId?: string | null; executionLogsTableId?: string | null; @@ -12642,7 +13718,7 @@ export interface CreateFunctionModuleInput { bindingsTableName?: string; capabilityBindingsTableId?: string; databaseId: string; - defaultPermissions?: string[]; + defaultCapabilities?: string[]; definitionsTableId?: string; definitionsTableName?: string; entityField?: string; @@ -12666,7 +13742,7 @@ export interface FunctionModulePatch { bindingsTableName?: string | null; capabilityBindingsTableId?: string | null; databaseId?: string | null; - defaultPermissions?: string[] | null; + defaultCapabilities?: string[] | null; definitionsTableId?: string | null; definitionsTableName?: string | null; entityField?: string | null; @@ -12697,7 +13773,7 @@ export interface CreateGraphExecutionModuleInput { graphExecutionModule: { apiName?: string; databaseId: string; - defaultPermissions?: string[]; + defaultCapabilities?: string[]; entityField?: string; entityTableId?: string; executionsTableId?: string; @@ -12721,7 +13797,7 @@ export interface CreateGraphExecutionModuleInput { export interface GraphExecutionModulePatch { apiName?: string | null; databaseId?: string | null; - defaultPermissions?: string[] | null; + defaultCapabilities?: string[] | null; entityField?: string | null; entityTableId?: string | null; executionsTableId?: string | null; @@ -12755,7 +13831,7 @@ export interface CreateGraphModuleInput { graphModule: { apiName?: string; databaseId: string; - defaultPermissions?: string[]; + defaultCapabilities?: string[]; entityField?: string; entityTableId?: string; graphsTableId?: string; @@ -12774,7 +13850,7 @@ export interface CreateGraphModuleInput { export interface GraphModulePatch { apiName?: string | null; databaseId?: string | null; - defaultPermissions?: string[] | null; + defaultCapabilities?: string[] | null; entityField?: string | null; entityTableId?: string | null; graphsTableId?: string | null; @@ -12806,7 +13882,7 @@ export interface CreateHierarchyModuleInput { chartEdgesTableId?: string; chartEdgesTableName?: string; databaseId: string; - defaultPermissions?: string[]; + defaultCapabilities?: string[]; entityField?: string; entityTableId: string; getManagersFunction?: string; @@ -12830,7 +13906,7 @@ export interface HierarchyModulePatch { chartEdgesTableId?: string | null; chartEdgesTableName?: string | null; databaseId?: string | null; - defaultPermissions?: string[] | null; + defaultCapabilities?: string[] | null; entityField?: string | null; entityTableId?: string | null; getManagersFunction?: string | null; @@ -12861,7 +13937,7 @@ export interface CreateHttpRouteModuleInput { httpRouteModule: { apiName?: string; databaseId: string; - defaultPermissions?: string[]; + defaultCapabilities?: string[]; entityField?: string; entityTableId?: string; functionModuleId?: string; @@ -12884,7 +13960,7 @@ export interface CreateHttpRouteModuleInput { export interface HttpRouteModulePatch { apiName?: string | null; databaseId?: string | null; - defaultPermissions?: string[] | null; + defaultCapabilities?: string[] | null; entityField?: string | null; entityTableId?: string | null; functionModuleId?: string | null; @@ -13292,6 +14368,7 @@ export interface CreateLimitsModuleInput { limitCreditsTableId?: string; limitDecrementFunction?: string; limitDecrementTrigger?: string; + limitDefaults?: Record; limitIncrementFunction?: string; limitIncrementTrigger?: string; limitUpdateTrigger?: string; @@ -13331,6 +14408,7 @@ export interface LimitsModulePatch { limitCreditsTableId?: string | null; limitDecrementFunction?: string | null; limitDecrementTrigger?: string | null; + limitDefaults?: Record | null; limitIncrementFunction?: string | null; limitIncrementTrigger?: string | null; limitUpdateTrigger?: string | null; @@ -13389,9 +14467,12 @@ export interface CreateMembershipsModuleInput { adminGrantsTableId?: string; adminGrantsTableName?: string; apiName?: string; + capabilitiesTableId?: string; + capabilityDefaultCapabilitiesTableId?: string; + capabilityDefaultGrantsTableId?: string; databaseId: string; + defaultCapabilitiesTableId?: string; defaultLimitsTableId?: string; - defaultPermissionsTableId?: string; entityField?: string; entityIdsByMask?: string; entityIdsByPerm?: string; @@ -13413,9 +14494,6 @@ export interface CreateMembershipsModuleInput { membershipsTableName?: string; ownerGrantsTableId?: string; ownerGrantsTableName?: string; - permissionDefaultGrantsTableId?: string; - permissionDefaultPermissionsTableId?: string; - permissionsTableId?: string; prefix?: string; privateApiName?: string; privateSchemaId?: string; @@ -13433,9 +14511,12 @@ export interface MembershipsModulePatch { adminGrantsTableId?: string | null; adminGrantsTableName?: string | null; apiName?: string | null; + capabilitiesTableId?: string | null; + capabilityDefaultCapabilitiesTableId?: string | null; + capabilityDefaultGrantsTableId?: string | null; databaseId?: string | null; + defaultCapabilitiesTableId?: string | null; defaultLimitsTableId?: string | null; - defaultPermissionsTableId?: string | null; entityField?: string | null; entityIdsByMask?: string | null; entityIdsByPerm?: string | null; @@ -13457,9 +14538,6 @@ export interface MembershipsModulePatch { membershipsTableName?: string | null; ownerGrantsTableId?: string | null; ownerGrantsTableName?: string | null; - permissionDefaultGrantsTableId?: string | null; - permissionDefaultPermissionsTableId?: string | null; - permissionsTableId?: string | null; prefix?: string | null; privateApiName?: string | null; privateSchemaId?: string | null; @@ -13482,12 +14560,12 @@ export interface CreateMerkleStoreModuleInput { clientMutationId?: string; merkleStoreModule: { apiName?: string; + capabilityKey?: string; commitTableId?: string; databaseId: string; entityField?: string; functionPrefix?: string; objectTableId?: string; - permissionKey?: string; prefix?: string; privateApiName?: string; privateSchemaId?: string; @@ -13501,12 +14579,12 @@ export interface CreateMerkleStoreModuleInput { } export interface MerkleStoreModulePatch { apiName?: string | null; + capabilityKey?: string | null; commitTableId?: string | null; databaseId?: string | null; entityField?: string | null; functionPrefix?: string | null; objectTableId?: string | null; - permissionKey?: string | null; prefix?: string | null; privateApiName?: string | null; privateSchemaId?: string | null; @@ -13531,7 +14609,7 @@ export interface CreateNamespaceModuleInput { namespaceModule: { apiName?: string; databaseId: string; - defaultPermissions?: string[]; + defaultCapabilities?: string[]; entityField?: string; entityTableId?: string; namespaceEventsTableId?: string; @@ -13552,7 +14630,7 @@ export interface CreateNamespaceModuleInput { export interface NamespaceModulePatch { apiName?: string | null; databaseId?: string | null; - defaultPermissions?: string[] | null; + defaultCapabilities?: string[] | null; entityField?: string | null; entityTableId?: string | null; namespaceEventsTableId?: string | null; @@ -13584,7 +14662,7 @@ export interface CreateNotificationsModuleInput { apiName?: string; channelsTableId?: string; databaseId: string; - defaultPermissions?: string[]; + defaultCapabilities?: string[]; deliveryLogTableId?: string; entityField?: string; hasChannels?: boolean; @@ -13610,7 +14688,7 @@ export interface NotificationsModulePatch { apiName?: string | null; channelsTableId?: string | null; databaseId?: string | null; - defaultPermissions?: string[] | null; + defaultCapabilities?: string[] | null; deliveryLogTableId?: string | null; entityField?: string | null; hasChannels?: boolean | null; @@ -13640,6 +14718,44 @@ export interface DeleteNotificationsModuleInput { clientMutationId?: string; id: string; } +export interface CreateOauthRequestsModuleInput { + clientMutationId?: string; + oauthRequestsModule: { + databaseId: string; + entityField?: string; + entityTableId?: string; + oauthAuthorizationRequestsTableId?: string; + oauthAuthorizationRequestsTableName?: string; + pendingIdentityLinksTableId?: string; + pendingIdentityLinksTableName?: string; + prefix?: string; + privateSchemaId?: string; + privateSchemaName?: string; + scope: string; + }; +} +export interface OauthRequestsModulePatch { + databaseId?: string | null; + entityField?: string | null; + entityTableId?: string | null; + oauthAuthorizationRequestsTableId?: string | null; + oauthAuthorizationRequestsTableName?: string | null; + pendingIdentityLinksTableId?: string | null; + pendingIdentityLinksTableName?: string | null; + prefix?: string | null; + privateSchemaId?: string | null; + privateSchemaName?: string | null; + scope?: string | null; +} +export interface UpdateOauthRequestsModuleInput { + clientMutationId?: string; + id: string; + oauthRequestsModulePatch: OauthRequestsModulePatch; +} +export interface DeleteOauthRequestsModuleInput { + clientMutationId?: string; + id: string; +} export interface CreatePagesModuleInput { clientMutationId?: string; pagesModule: { @@ -13690,64 +14806,6 @@ export interface DeletePagesModuleInput { clientMutationId?: string; id: string; } -export interface CreatePermissionsModuleInput { - clientMutationId?: string; - permissionsModule: { - actorTableId?: string; - apiName?: string; - bitlen?: number; - databaseId: string; - defaultTableId?: string; - defaultTableName?: string; - entityField?: string; - entityTableId?: string; - getByMask?: string; - getMask?: string; - getMaskByName?: string; - getPaddedMask?: string; - prefix?: string; - privateApiName?: string; - privateSchemaId?: string; - privateSchemaName?: string; - publicSchemaName?: string; - schemaId?: string; - scope: string; - tableId?: string; - tableName?: string; - }; -} -export interface PermissionsModulePatch { - actorTableId?: string | null; - apiName?: string | null; - bitlen?: number | null; - databaseId?: string | null; - defaultTableId?: string | null; - defaultTableName?: string | null; - entityField?: string | null; - entityTableId?: string | null; - getByMask?: string | null; - getMask?: string | null; - getMaskByName?: string | null; - getPaddedMask?: string | null; - prefix?: string | null; - privateApiName?: string | null; - privateSchemaId?: string | null; - privateSchemaName?: string | null; - publicSchemaName?: string | null; - schemaId?: string | null; - scope?: string | null; - tableId?: string | null; - tableName?: string | null; -} -export interface UpdatePermissionsModuleInput { - clientMutationId?: string; - id: string; - permissionsModulePatch: PermissionsModulePatch; -} -export interface DeletePermissionsModuleInput { - clientMutationId?: string; - id: string; -} export interface CreatePhoneNumbersModuleInput { clientMutationId?: string; phoneNumbersModule: { @@ -13891,21 +14949,23 @@ export interface CreateProfilesModuleInput { profilesModule: { actorTableId?: string; apiName?: string; + capabilitiesTableId?: string; databaseId: string; entityField?: string; entityTableId?: string; + membershipProfilesTableId?: string; + membershipProfilesTableName?: string; membershipsTableId?: string; - permissionsTableId?: string; prefix?: string; privateApiName?: string; privateSchemaId?: string; privateSchemaName?: string; + profileCapabilitiesTableId?: string; + profileCapabilitiesTableName?: string; profileDefinitionGrantsTableId?: string; profileDefinitionGrantsTableName?: string; profileGrantsTableId?: string; profileGrantsTableName?: string; - profilePermissionsTableId?: string; - profilePermissionsTableName?: string; profileTemplatesTableId?: string; profileTemplatesTableName?: string; publicSchemaName?: string; @@ -13918,21 +14978,23 @@ export interface CreateProfilesModuleInput { export interface ProfilesModulePatch { actorTableId?: string | null; apiName?: string | null; + capabilitiesTableId?: string | null; databaseId?: string | null; entityField?: string | null; entityTableId?: string | null; + membershipProfilesTableId?: string | null; + membershipProfilesTableName?: string | null; membershipsTableId?: string | null; - permissionsTableId?: string | null; prefix?: string | null; privateApiName?: string | null; privateSchemaId?: string | null; privateSchemaName?: string | null; + profileCapabilitiesTableId?: string | null; + profileCapabilitiesTableName?: string | null; profileDefinitionGrantsTableId?: string | null; profileDefinitionGrantsTableName?: string | null; profileGrantsTableId?: string | null; profileGrantsTableName?: string | null; - profilePermissionsTableId?: string | null; - profilePermissionsTableName?: string | null; profileTemplatesTableId?: string | null; profileTemplatesTableName?: string | null; publicSchemaName?: string | null; @@ -13956,7 +15018,7 @@ export interface CreateRateLimitMetersModuleInput { apiName?: string; checkRateLimitFunction?: string; databaseId: string; - defaultPermissions?: string[]; + defaultCapabilities?: string[]; prefix?: string; privateApiName?: string; privateSchemaId?: string; @@ -13975,7 +15037,7 @@ export interface RateLimitMetersModulePatch { apiName?: string | null; checkRateLimitFunction?: string | null; databaseId?: string | null; - defaultPermissions?: string[] | null; + defaultCapabilities?: string[] | null; prefix?: string | null; privateApiName?: string | null; privateSchemaId?: string | null; @@ -14139,7 +15201,7 @@ export interface CreateResourceModuleInput { resourceModule: { apiName?: string; databaseId: string; - defaultPermissions?: string[]; + defaultCapabilities?: string[]; entityField?: string; entityTableId?: string; installationStoreName?: string; @@ -14177,7 +15239,7 @@ export interface CreateResourceModuleInput { export interface ResourceModulePatch { apiName?: string | null; databaseId?: string | null; - defaultPermissions?: string[] | null; + defaultCapabilities?: string[] | null; entityField?: string | null; entityTableId?: string | null; installationStoreName?: string | null; @@ -14264,9 +15326,11 @@ export interface CreateRouteModuleInput { clientMutationId?: string; routeModule: { apiName?: string; + appLinksFunctionName?: string; catalogModuleId?: string; databaseId: string; - defaultPermissions?: string[]; + deepLinkFunctionName?: string; + defaultCapabilities?: string[]; domainModuleId?: string; entityField?: string; entityTableId?: string; @@ -14290,9 +15354,11 @@ export interface CreateRouteModuleInput { } export interface RouteModulePatch { apiName?: string | null; + appLinksFunctionName?: string | null; catalogModuleId?: string | null; databaseId?: string | null; - defaultPermissions?: string[] | null; + deepLinkFunctionName?: string | null; + defaultCapabilities?: string[] | null; domainModuleId?: string | null; entityField?: string | null; entityTableId?: string | null; @@ -14322,15 +15388,39 @@ export interface DeleteRouteModuleInput { clientMutationId?: string; id: string; } -export interface CreateSecureTableProvisionInput { +export interface CreateScopeTypesModuleInput { clientMutationId?: string; - secureTableProvision: { + scopeTypesModule: { databaseId: string; - fields?: Record[]; - grants?: Record; - nodes?: Record; - outFields?: string[]; - policies?: Record; + privateSchemaName?: string; + schemaId?: string; + scopeTypesTableId?: string; + }; +} +export interface ScopeTypesModulePatch { + databaseId?: string | null; + privateSchemaName?: string | null; + schemaId?: string | null; + scopeTypesTableId?: string | null; +} +export interface UpdateScopeTypesModuleInput { + clientMutationId?: string; + id: string; + scopeTypesModulePatch: ScopeTypesModulePatch; +} +export interface DeleteScopeTypesModuleInput { + clientMutationId?: string; + id: string; +} +export interface CreateSecureTableProvisionInput { + clientMutationId?: string; + secureTableProvision: { + databaseId: string; + fields?: Record[]; + grants?: Record; + nodes?: Record; + outFields?: string[]; + policies?: Record; schemaId?: string; tableId?: string; tableName?: string; @@ -14426,7 +15516,7 @@ export interface CreateSiteSurfaceModuleInput { apiName?: string; catalogModuleId?: string; databaseId: string; - defaultPermissions?: string[]; + defaultCapabilities?: string[]; entityField?: string; entityTableId?: string; policies?: Record; @@ -14460,7 +15550,7 @@ export interface SiteSurfaceModulePatch { apiName?: string | null; catalogModuleId?: string | null; databaseId?: string | null; - defaultPermissions?: string[] | null; + defaultCapabilities?: string[] | null; entityField?: string | null; entityTableId?: string | null; policies?: Record | null; @@ -14563,8 +15653,8 @@ export interface CreateStorageModuleInput { catalogModuleId?: string; confirmUploadDelay?: IntervalInput; databaseId: string; + defaultCapabilities?: string[]; defaultMaxFileSize?: string; - defaultPermissions?: string[]; downloadUrlExpirySeconds?: number; endpoint?: string; entityField?: string; @@ -14606,8 +15696,8 @@ export interface StorageModulePatch { catalogModuleId?: string | null; confirmUploadDelay?: IntervalInput | null; databaseId?: string | null; + defaultCapabilities?: string[] | null; defaultMaxFileSize?: string | null; - defaultPermissions?: string[] | null; downloadUrlExpirySeconds?: number | null; endpoint?: string | null; entityField?: string | null; @@ -14828,6 +15918,34 @@ export interface DeleteUserSettingsModuleInput { clientMutationId?: string; id: string; } +export interface CreateUserSettingsSecurityModuleInput { + clientMutationId?: string; + userSettingsSecurityModule: { + apiName?: string; + databaseId: string; + ownerTableId?: string; + schemaId?: string; + tableId?: string; + tableName?: string; + }; +} +export interface UserSettingsSecurityModulePatch { + apiName?: string | null; + databaseId?: string | null; + ownerTableId?: string | null; + schemaId?: string | null; + tableId?: string | null; + tableName?: string | null; +} +export interface UpdateUserSettingsSecurityModuleInput { + clientMutationId?: string; + id: string; + userSettingsSecurityModulePatch: UserSettingsSecurityModulePatch; +} +export interface DeleteUserSettingsSecurityModuleInput { + clientMutationId?: string; + id: string; +} export interface CreateUserStateModuleInput { clientMutationId?: string; userStateModule: { @@ -14969,7 +16087,7 @@ export interface CreateWebhookModuleInput { webhookModule: { apiName?: string; databaseId: string; - defaultPermissions?: string[]; + defaultCapabilities?: string[]; entityField?: string; entityTableId?: string; functionInvocationModuleId?: string; @@ -14994,7 +16112,7 @@ export interface CreateWebhookModuleInput { export interface WebhookModulePatch { apiName?: string | null; databaseId?: string | null; - defaultPermissions?: string[] | null; + defaultCapabilities?: string[] | null; entityField?: string | null; entityTableId?: string | null; functionInvocationModuleId?: string | null; @@ -15033,6 +16151,9 @@ export const connectionFieldsMap = { blueprintTemplatesByForkedFromId: 'BlueprintTemplate', blueprintsByTemplateId: 'Blueprint', }, + CapabilitiesModule: { + dataCapabilitiesFields: 'DataCapabilitiesField', + }, CatalogModule: { apiSurfaceModules: 'ApiSurfaceModule', appModules: 'AppModule', @@ -15058,6 +16179,7 @@ export const connectionFieldsMap = { webhookModules: 'WebhookModule', }, MerkleStoreModule: { + contentPresetModules: 'ContentPresetModule', dbPresetModules: 'DbPresetModule', graphModules: 'GraphModule', pagesModules: 'PagesModule', @@ -15072,9 +16194,11 @@ export const connectionFieldsMap = { httpRouteModules: 'HttpRouteModule', }, SiteSurfaceModule: { + emailSenderModules: 'EmailSenderModule', pagesModules: 'PagesModule', }, StorageModule: { + fileRefFields: 'FileRefField', httpRouteModules: 'HttpRouteModule', }, } as Record>; @@ -15101,79 +16225,6 @@ export interface ProvisionBucketInput { */ ownerId?: string; } -export interface ProvisionCheckConstraintInput { - clientMutationId?: string; - databaseId?: string; - definition?: Record; - tableId?: string; -} -export interface ProvisionFullTextSearchInput { - clientMutationId?: string; - databaseId?: string; - definition?: Record; - tableId?: string; -} -export interface ProvisionIndexInput { - clientMutationId?: string; - databaseId?: string; - definition?: Record; - tableId?: string; -} -export interface ProvisionRelationInput { - apiRequired?: boolean; - clientMutationId?: string; - createIndex?: boolean; - databaseId?: string; - deleteAction?: string; - exposeInApi?: boolean; - fieldName?: string; - grants?: Record; - isRequired?: boolean; - junctionSchemaId?: string; - junctionTableId?: string; - junctionTableName?: string; - nodes?: Record; - policies?: Record; - relationType?: string; - sourceFieldName?: string; - sourceTableId?: string; - targetFieldName?: string; - targetTableId?: string; - useCompositeKey?: boolean; -} -export interface ProvisionSpatialRelationInput { - clientMutationId?: string; - databaseId?: string; - name?: string; - operator?: string; - paramName?: string; - sourceFieldId?: string; - sourceTableId?: string; - targetFieldId?: string; - targetTableId?: string; -} -export interface ProvisionTableInput { - clientMutationId?: string; - databaseId?: string; - description?: string; - fields?: Record; - fullTextSearches?: Record; - grants?: Record; - indexes?: Record; - nodes?: Record; - policies?: Record; - schemaId?: string; - tableId?: string; - tableName?: string; - uniqueConstraints?: Record; - useRls?: boolean; -} -export interface ProvisionUniqueConstraintInput { - clientMutationId?: string; - databaseId?: string; - definition?: Record; - tableId?: string; -} /** A filter to be used against many `BlueprintConstruction` object types. All fields are combined with a logical ‘and.’ */ export interface BlueprintToManyBlueprintConstructionFilter { /** Filters to entities where every related entity matches. */ @@ -15201,6 +16252,15 @@ export interface BlueprintTemplateToManyBlueprintFilter { /** Filters to entities where at least one related entity matches. */ some?: BlueprintFilter; } +/** A filter to be used against many `DataCapabilitiesField` object types. All fields are combined with a logical ‘and.’ */ +export interface CapabilitiesModuleToManyDataCapabilitiesFieldFilter { + /** Filters to entities where every related entity matches. */ + every?: DataCapabilitiesFieldFilter; + /** Filters to entities where no related entity matches. */ + none?: DataCapabilitiesFieldFilter; + /** Filters to entities where at least one related entity matches. */ + some?: DataCapabilitiesFieldFilter; +} /** A filter to be used against many `ApiSurfaceModule` object types. All fields are combined with a logical ‘and.’ */ export interface CatalogModuleToManyApiSurfaceModuleFilter { /** Filters to entities where every related entity matches. */ @@ -15334,6 +16394,15 @@ export interface InfraSecretsModuleToManyWebhookModuleFilter { /** Filters to entities where at least one related entity matches. */ some?: WebhookModuleFilter; } +/** A filter to be used against many `ContentPresetModule` object types. All fields are combined with a logical ‘and.’ */ +export interface MerkleStoreModuleToManyContentPresetModuleFilter { + /** Filters to entities where every related entity matches. */ + every?: ContentPresetModuleFilter; + /** Filters to entities where no related entity matches. */ + none?: ContentPresetModuleFilter; + /** Filters to entities where at least one related entity matches. */ + some?: ContentPresetModuleFilter; +} /** A filter to be used against many `DbPresetModule` object types. All fields are combined with a logical ‘and.’ */ export interface MerkleStoreModuleToManyDbPresetModuleFilter { /** Filters to entities where every related entity matches. */ @@ -15445,6 +16514,15 @@ export interface JSONListFilter { /** Overlaps the specified list of values. */ overlaps?: Record[]; } +/** A filter to be used against many `EmailSenderModule` object types. All fields are combined with a logical ‘and.’ */ +export interface SiteSurfaceModuleToManyEmailSenderModuleFilter { + /** Filters to entities where every related entity matches. */ + every?: EmailSenderModuleFilter; + /** Filters to entities where no related entity matches. */ + none?: EmailSenderModuleFilter; + /** Filters to entities where at least one related entity matches. */ + some?: EmailSenderModuleFilter; +} /** A filter to be used against many `PagesModule` object types. All fields are combined with a logical ‘and.’ */ export interface SiteSurfaceModuleToManyPagesModuleFilter { /** Filters to entities where every related entity matches. */ @@ -15454,6 +16532,15 @@ export interface SiteSurfaceModuleToManyPagesModuleFilter { /** Filters to entities where at least one related entity matches. */ some?: PagesModuleFilter; } +/** A filter to be used against many `FileRefField` object types. All fields are combined with a logical ‘and.’ */ +export interface StorageModuleToManyFileRefFieldFilter { + /** Filters to entities where every related entity matches. */ + every?: FileRefFieldFilter; + /** Filters to entities where no related entity matches. */ + none?: FileRefFieldFilter; + /** Filters to entities where at least one related entity matches. */ + some?: FileRefFieldFilter; +} /** A filter to be used against many `HttpRouteModule` object types. All fields are combined with a logical ‘and.’ */ export interface StorageModuleToManyHttpRouteModuleFilter { /** Filters to entities where every related entity matches. */ @@ -15469,7 +16556,7 @@ export interface AgentModuleInput { agentTableName?: string; apiName?: string; databaseId: string; - defaultPermissions?: string[]; + defaultCapabilities?: string[]; entityField?: string; entityTableId?: string; hasAgents?: boolean; @@ -15515,7 +16602,7 @@ export interface ApiSurfaceModuleInput { corsSettingsTableId?: string; corsSettingsTableName?: string; databaseId: string; - defaultPermissions?: string[]; + defaultCapabilities?: string[]; entityField?: string; entityTableId?: string; id?: string; @@ -15536,7 +16623,7 @@ export interface AppModuleInput { appsTableName?: string; catalogModuleId?: string; databaseId: string; - defaultPermissions?: string[]; + defaultCapabilities?: string[]; entityField?: string; entityTableId?: string; id?: string; @@ -15556,8 +16643,8 @@ export interface BillingModuleInput { balancesTableId?: string; balancesTableName?: string; databaseId: string; + defaultCapabilities?: string[]; defaultMeterCatalog?: Record; - defaultPermissions?: string[]; id?: string; ledgerTableId?: string; ledgerTableName?: string; @@ -15586,16 +16673,22 @@ export interface BillingProviderModuleInput { apiName?: string; billingCustomersTableId?: string; billingCustomersTableName?: string; + billingInvoicesTableId?: string; + billingInvoicesTableName?: string; billingPricesTableId?: string; billingPricesTableName?: string; billingProductsTableId?: string; billingProductsTableName?: string; + billingRefundsTableId?: string; + billingRefundsTableName?: string; billingSubscriptionsTableId?: string; billingSubscriptionsTableName?: string; billingWebhookEventsTableId?: string; billingWebhookEventsTableName?: string; databaseId: string; id?: string; + listPendingUsageSyncFunction?: string; + markUsageSyncedFunction?: string; prefix?: string; pricesTableId?: string; privateApiName?: string; @@ -15603,8 +16696,10 @@ export interface BillingProviderModuleInput { processBillingEventFunction?: string; productsTableId?: string; provider?: string; + recordRefundFunction?: string; schemaId?: string; subscriptionsTableId?: string; + upsertInvoiceFunction?: string; } /** An input for mutations affecting `Blueprint` */ export interface BlueprintInput { @@ -15701,6 +16796,31 @@ export interface BlueprintTemplateInput { /** Access control for the template. private: only the owner can see and copy. public: anyone can browse and copy from the marketplace. Defaults to private. */ visibility?: string; } +/** An input for mutations affecting `CapabilitiesModule` */ +export interface CapabilitiesModuleInput { + actorTableId?: string; + apiName?: string; + bitlen?: number; + databaseId: string; + defaultTableId?: string; + defaultTableName?: string; + entityField?: string; + entityTableId?: string; + getByMask?: string; + getMask?: string; + getMaskByName?: string; + getPaddedMask?: string; + id?: string; + prefix?: string; + privateApiName?: string; + privateSchemaId?: string; + privateSchemaName?: string; + publicSchemaName?: string; + schemaId?: string; + scope: string; + tableId?: string; + tableName?: string; +} /** An input for mutations affecting `CatalogModule` */ export interface CatalogModuleInput { apiName?: string; @@ -15708,10 +16828,12 @@ export interface CatalogModuleInput { apisTableName?: string; appsTableId?: string; appsTableName?: string; + bindingsTableId?: string; + bindingsTableName?: string; bucketsTableId?: string; bucketsTableName?: string; databaseId: string; - defaultPermissions?: string[]; + defaultCapabilities?: string[]; domainsTableId?: string; domainsTableName?: string; entityTableId?: string; @@ -15789,6 +16911,26 @@ export interface ConnectedAccountsModuleInput { tableId?: string; tableName: string; } +/** An input for mutations affecting `ContentPresetModule` */ +export interface ContentPresetModuleInput { + apiName?: string; + contentPresetsTableId?: string; + createdAt?: string; + databaseId: string; + entityTableId?: string; + id?: string; + merkleStoreModuleId: string; + policies?: Record; + prefix: string; + privateApiName?: string; + privateSchemaId?: string; + privateSchemaName?: string; + provisions?: Record; + publicSchemaId?: string; + publicSchemaName?: string; + scope: string; + storeName: string; +} /** An input for mutations affecting `CryptoAddressesModule` */ export interface CryptoAddressesModuleInput { apiName?: string; @@ -15819,6 +16961,20 @@ export interface CryptoAuthModuleInput { userField: string; usersTableId?: string; } +/** An input for mutations affecting `DataCapabilitiesField` */ +export interface DataCapabilitiesFieldInput { + capabilitiesModuleId: string; + databaseId: string; + fieldId: string; + fromFieldId?: string; + id?: string; + mappingFieldId?: string; + mappingKeyFieldId?: string; + mappingTableId?: string; + mode?: string; + subsetGuard?: boolean; + tableId: string; +} /** An input for mutations affecting `DatabaseProvisionModule` */ export interface DatabaseProvisionModuleInput { /** When true, cold provisioning runs in the database:provision background job and the insert returns a pending ticket; when false, provisioning runs inline in the insert trigger */ @@ -15841,7 +16997,7 @@ export interface DatabaseProvisionModuleInput { /** Uniform billing anchor: when the request was fulfilled with a usable database (cold provision completion or warm pool claim). Platform absorbs all provisioning compute before this point */ fulfilledAt?: string; id?: string; - /** JSONB array of modules to install. Each element is either a string ("users_module") or a [name, options] tuple (["permissions_module", {"scope": "app"}]) */ + /** JSONB array of modules to install. Each element is either a string ("users_module") or a [name, options] tuple (["capabilities_module", {"scope": "app"}]) */ modules?: Record; /** Additional configuration options for provisioning */ options?: Record; @@ -15861,7 +17017,7 @@ export interface DatabaseSettingsModuleInput { databaseId: string; databaseSettingsTableId?: string; databaseSettingsTableName?: string; - defaultPermissions?: string[]; + defaultCapabilities?: string[]; entityField?: string; entityTableId?: string; id?: string; @@ -15966,7 +17122,7 @@ export interface DbUsageModuleInput { collectDbQueryStatsFunction?: string; collectDbTableStatsFunction?: string; databaseId: string; - defaultPermissions?: string[]; + defaultCapabilities?: string[]; entityField?: string; id?: string; interval?: string; @@ -16025,7 +17181,7 @@ export interface DomainModuleInput { apiName?: string; catalogModuleId?: string; databaseId: string; - defaultPermissions?: string[]; + defaultCapabilities?: string[]; domainEventsTableId?: string; domainEventsTableName?: string; domainVerificationsTableId?: string; @@ -16047,6 +17203,29 @@ export interface DomainModuleInput { schemaId?: string; scope: string; } +/** An input for mutations affecting `EmailSenderModule` */ +export interface EmailSenderModuleInput { + apiName?: string; + databaseId: string; + defaultCapabilities?: string[]; + emailIdentitiesTableId?: string; + emailIdentitiesTableName?: string; + emailProviderAccountsTableId?: string; + emailProviderAccountsTableName?: string; + emailSiteIdentitiesTableId?: string; + emailSiteIdentitiesTableName?: string; + entityField?: string; + entityTableId?: string; + id?: string; + policies?: Record; + prefix?: string; + privateApiName?: string; + provisions?: Record; + publicSchemaName?: string; + schemaId?: string; + scope: string; + siteSurfaceModuleId?: string; +} /** An input for mutations affecting `EmailsModule` */ export interface EmailsModuleInput { apiName?: string; @@ -16074,7 +17253,7 @@ export interface EntityTypeProvisionInput { * - policies (jsonb array) RLS policy overrides. NULL = apply defaults from apply_function_security(). * Creates {prefix}_function_definitions (or {prefix}_{key}_function_definitions for non-default keys) * with entity-scoped RLS and a job trigger dispatching function:provision tasks. - * Registers manage_functions + invoke_functions permission bits on first provision. + * Registers manage_functions + invoke_functions capability bits on first provision. * Example: functions := '[{}]'::jsonb */ functions?: Record; @@ -16084,9 +17263,9 @@ export interface EntityTypeProvisionInput { * Each element recognizes (all optional): * - key (text) module discriminator. Defaults to 'default'. * - policies (jsonb array) RLS policy overrides. NULL = apply defaults from apply_graph_security(). - * Registers manage_graphs + execute_graphs permission bits on first provision. + * Registers manage_graphs + execute_graphs capability bits on first provision. * Graph module requires a merkle_store_module_id dependency, so entity_type_provision - * only registers permissions here. The graph module itself must be provisioned + * only registers capabilities here. The graph module itself must be provisioned * separately with the merkle store dependency resolved. * Example: graphs := '[{}]'::jsonb */ @@ -16126,8 +17305,11 @@ export interface EntityTypeProvisionInput { hasLimits?: boolean; /** * Whether to provision profiles_module for this type. Defaults to false. - * Profiles provide named permission roles (e.g. 'Editor', 'Viewer') with pre-configured permission bitmasks. - * When true, creates profile tables and applies profiles security. + * Profiles provide named capability roles (e.g. 'Editor', 'Viewer') with pre-configured capability bitmasks. + * When true, creates profile tables and applies profiles security. A membership may hold + * any number of profiles: the membership_profiles assignment table holds every profile a + * membership holds and the membership mask is granted | bit_or(held profile masks), with + * memberships.profile_id kept as a pointer at one held profile. */ hasProfiles?: boolean; /** Unique identifier for this provision row. */ @@ -16154,7 +17336,7 @@ export interface EntityTypeProvisionInput { * - policies (jsonb array) RLS policy overrides. NULL = apply defaults from apply_namespace_security(). * Creates {prefix}_namespaces (or {prefix}_{key}_namespaces for non-default keys) * with entity-scoped RLS (AuthzEntityMembership) and a rename proxy trigger. - * Registers manage_namespaces permission bit on first provision. + * Registers manage_namespaces capability bit on first provision. * Example: namespaces := '[{}]'::jsonb */ namespaces?: Record; @@ -16176,7 +17358,7 @@ export interface EntityTypeProvisionInput { outGraphModuleId?: string; outGraphsTableId?: string; /** - * Output: array of installed module labels (e.g. ARRAY['permissions_module:data_room', 'memberships_module:data_room', 'invites_module:data_room']). + * Output: array of installed module labels (e.g. ARRAY['capabilities_module:data_room', 'memberships_module:data_room', 'invites_module:data_room']). * Populated by the trigger. Useful for verifying which modules were provisioned. */ outInstalledModules?: string[]; @@ -16220,7 +17402,7 @@ export interface EntityTypeProvisionInput { parentEntity?: string; /** * SQL prefix used for table and module naming, e.g. 'data_room', 'team_channel'. Required. - * Drives entity table name (prefix || 's' by default), module labels (permissions_module:prefix), + * Drives entity table name (prefix || 's' by default), module labels (capabilities_module:prefix), * and membership table names (prefix_memberships, prefix_members, etc.). * Must be unique per database — the (database_id, prefix) constraint ensures graceful ON CONFLICT DO NOTHING. */ @@ -16234,8 +17416,8 @@ export interface EntityTypeProvisionInput { * Defaults (applied when table_provision IS NULL and skip_entity_policies=false): * - SELECT (parent_member): parent entity members can see child entities (only when is_visible=true) * - SELECT (self_member): direct members of the entity can see it - * - INSERT: create_entity permission on the parent entity - * - UPDATE: admin_entity permission on the entity itself + * - INSERT: create_entity capability on the parent entity + * - UPDATE: admin_entity capability on the entity itself * - DELETE: owner of the entity can delete it */ skipEntityPolicies?: boolean; @@ -16254,7 +17436,7 @@ export interface EntityTypeProvisionInput { * - 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 + * - restrict_reads (boolean) require read_files capability 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 @@ -16280,7 +17462,7 @@ export interface EntityTypeProvisionInput { tableName?: string; /** * Single jsonb object describing the full security setup to apply to the entity table. - * Uses the same vocabulary as metaschema_modules_public.provision_table() and blueprint tables[] + * Uses the same vocabulary as metaschema_modules_private.provision_table() and blueprint tables[] * entries, so an entity table is configured the same way an ordinary blueprint table is. * Defaults to NULL; when non-NULL, the five default policies are implicitly replaced by * table_provision.policies[] (is_visible becomes a no-op on this path). @@ -16318,7 +17500,7 @@ export interface EventsModuleInput { actorTableId?: string; apiName?: string; databaseId: string; - defaultPermissions?: string[]; + defaultCapabilities?: string[]; entityField?: string; entityTableId?: string; eventAggregatesTableId?: string; @@ -16327,6 +17509,7 @@ export interface EventsModuleInput { eventTypesTableName?: string; eventsTableId?: string; eventsTableName?: string; + expireGrants?: string; grantAchievement?: string; id?: string; interval?: string; @@ -16343,9 +17526,11 @@ export interface EventsModuleInput { privateSchemaId?: string; privateSchemaName?: string; publicSchemaName?: string; + recomputeCapabilities?: string; recordEvent?: string; removeEvent?: string; retention?: string; + revokeAchievement?: string; schemaId?: string; scope: string; stepsRequired?: string; @@ -16355,14 +17540,28 @@ export interface EventsModuleInput { tgEventBool?: string; tgEventToggle?: string; tgEventToggleBool?: string; + tgLevelGrantSync?: string; tgUpdateAggregates?: string; + trustLadder?: Record; upsertAggregate?: string; } +/** An input for mutations affecting `FileRefField` */ +export interface FileRefFieldInput { + bucketKey?: string; + bucketTags?: string[]; + databaseId: string; + enforceFk?: boolean; + fieldId: string; + id?: string; + isPublic?: boolean; + storageModuleId: string; + tableId: string; +} /** An input for mutations affecting `FunctionDeploymentModule` */ export interface FunctionDeploymentModuleInput { apiName?: string; databaseId: string; - defaultPermissions?: string[]; + defaultCapabilities?: string[]; deploymentEventsTableId?: string; deploymentEventsTableName?: string; deploymentsTableId?: string; @@ -16388,7 +17587,7 @@ export interface FunctionInvocationModuleInput { attemptsTableId?: string; attemptsTableName?: string; databaseId: string; - defaultPermissions?: string[]; + defaultCapabilities?: string[]; entityField?: string; entityTableId?: string; executionLogsTableId?: string; @@ -16413,7 +17612,7 @@ export interface FunctionModuleInput { bindingsTableName?: string; capabilityBindingsTableId?: string; databaseId: string; - defaultPermissions?: string[]; + defaultCapabilities?: string[]; definitionsTableId?: string; definitionsTableName?: string; entityField?: string; @@ -16436,7 +17635,7 @@ export interface GraphExecutionModuleInput { apiName?: string; createdAt?: string; databaseId: string; - defaultPermissions?: string[]; + defaultCapabilities?: string[]; entityField?: string; entityTableId?: string; executionsTableId?: string; @@ -16462,7 +17661,7 @@ export interface GraphModuleInput { apiName?: string; createdAt?: string; databaseId: string; - defaultPermissions?: string[]; + defaultCapabilities?: string[]; entityField?: string; entityTableId?: string; graphsTableId?: string; @@ -16486,7 +17685,7 @@ export interface HierarchyModuleInput { chartEdgesTableName?: string; createdAt?: string; databaseId: string; - defaultPermissions?: string[]; + defaultCapabilities?: string[]; entityField?: string; entityTableId: string; getManagersFunction?: string; @@ -16508,7 +17707,7 @@ export interface HierarchyModuleInput { export interface HttpRouteModuleInput { apiName?: string; databaseId: string; - defaultPermissions?: string[]; + defaultCapabilities?: string[]; entityField?: string; entityTableId?: string; functionModuleId?: string; @@ -16699,6 +17898,7 @@ export interface LimitsModuleInput { limitCreditsTableId?: string; limitDecrementFunction?: string; limitDecrementTrigger?: string; + limitDefaults?: Record; limitIncrementFunction?: string; limitIncrementTrigger?: string; limitUpdateTrigger?: string; @@ -16731,9 +17931,12 @@ export interface MembershipsModuleInput { adminGrantsTableId?: string; adminGrantsTableName?: string; apiName?: string; + capabilitiesTableId?: string; + capabilityDefaultCapabilitiesTableId?: string; + capabilityDefaultGrantsTableId?: string; databaseId: string; + defaultCapabilitiesTableId?: string; defaultLimitsTableId?: string; - defaultPermissionsTableId?: string; entityField?: string; entityIdsByMask?: string; entityIdsByPerm?: string; @@ -16756,9 +17959,6 @@ export interface MembershipsModuleInput { membershipsTableName?: string; ownerGrantsTableId?: string; ownerGrantsTableName?: string; - permissionDefaultGrantsTableId?: string; - permissionDefaultPermissionsTableId?: string; - permissionsTableId?: string; prefix?: string; privateApiName?: string; privateSchemaId?: string; @@ -16771,6 +17971,7 @@ export interface MembershipsModuleInput { /** An input for mutations affecting `MerkleStoreModule` */ export interface MerkleStoreModuleInput { apiName?: string; + capabilityKey?: string; commitTableId?: string; createdAt?: string; databaseId: string; @@ -16778,7 +17979,6 @@ export interface MerkleStoreModuleInput { functionPrefix?: string; id?: string; objectTableId?: string; - permissionKey?: string; prefix?: string; privateApiName?: string; privateSchemaId?: string; @@ -16793,7 +17993,7 @@ export interface MerkleStoreModuleInput { export interface NamespaceModuleInput { apiName?: string; databaseId: string; - defaultPermissions?: string[]; + defaultCapabilities?: string[]; entityField?: string; entityTableId?: string; id?: string; @@ -16816,7 +18016,7 @@ export interface NotificationsModuleInput { apiName?: string; channelsTableId?: string; databaseId: string; - defaultPermissions?: string[]; + defaultCapabilities?: string[]; deliveryLogTableId?: string; entityField?: string; hasChannels?: boolean; @@ -16838,6 +18038,21 @@ export interface NotificationsModuleInput { suppressionsTableId?: string; userSettingsTableId?: string; } +/** An input for mutations affecting `OauthRequestsModule` */ +export interface OauthRequestsModuleInput { + databaseId: string; + entityField?: string; + entityTableId?: string; + id?: string; + oauthAuthorizationRequestsTableId?: string; + oauthAuthorizationRequestsTableName?: string; + pendingIdentityLinksTableId?: string; + pendingIdentityLinksTableName?: string; + prefix?: string; + privateSchemaId?: string; + privateSchemaName?: string; + scope: string; +} /** An input for mutations affecting `PagesModule` */ export interface PagesModuleInput { apiName?: string; @@ -16860,31 +18075,6 @@ export interface PagesModuleInput { sitesTableId?: string; storeNamePrefix?: string; } -/** An input for mutations affecting `PermissionsModule` */ -export interface PermissionsModuleInput { - actorTableId?: string; - apiName?: string; - bitlen?: number; - databaseId: string; - defaultTableId?: string; - defaultTableName?: string; - entityField?: string; - entityTableId?: string; - getByMask?: string; - getMask?: string; - getMaskByName?: string; - getPaddedMask?: string; - id?: string; - prefix?: string; - privateApiName?: string; - privateSchemaId?: string; - privateSchemaName?: string; - publicSchemaName?: string; - schemaId?: string; - scope: string; - tableId?: string; - tableName?: string; -} /** An input for mutations affecting `PhoneNumbersModule` */ export interface PhoneNumbersModuleInput { apiName?: string; @@ -16946,22 +18136,24 @@ export interface PrincipalAuthModuleInput { export interface ProfilesModuleInput { actorTableId?: string; apiName?: string; + capabilitiesTableId?: string; databaseId: string; entityField?: string; entityTableId?: string; id?: string; + membershipProfilesTableId?: string; + membershipProfilesTableName?: string; membershipsTableId?: string; - permissionsTableId?: string; prefix?: string; privateApiName?: string; privateSchemaId?: string; privateSchemaName?: string; + profileCapabilitiesTableId?: string; + profileCapabilitiesTableName?: string; profileDefinitionGrantsTableId?: string; profileDefinitionGrantsTableName?: string; profileGrantsTableId?: string; profileGrantsTableName?: string; - profilePermissionsTableId?: string; - profilePermissionsTableName?: string; profileTemplatesTableId?: string; profileTemplatesTableName?: string; publicSchemaName?: string; @@ -16975,7 +18167,7 @@ export interface RateLimitMetersModuleInput { apiName?: string; checkRateLimitFunction?: string; databaseId: string; - defaultPermissions?: string[]; + defaultCapabilities?: string[]; id?: string; prefix?: string; privateApiName?: string; @@ -17147,7 +18339,7 @@ export interface RelationProvisionInput { export interface ResourceModuleInput { apiName?: string; databaseId: string; - defaultPermissions?: string[]; + defaultCapabilities?: string[]; entityField?: string; entityTableId?: string; id?: string; @@ -17201,9 +18393,11 @@ export interface RlsModuleInput { /** An input for mutations affecting `RouteModule` */ export interface RouteModuleInput { apiName?: string; + appLinksFunctionName?: string; catalogModuleId?: string; databaseId: string; - defaultPermissions?: string[]; + deepLinkFunctionName?: string; + defaultCapabilities?: string[]; domainModuleId?: string; entityField?: string; entityTableId?: string; @@ -17225,6 +18419,14 @@ export interface RouteModuleInput { schemaId?: string; scope: string; } +/** An input for mutations affecting `ScopeTypesModule` */ +export interface ScopeTypesModuleInput { + databaseId: string; + id?: string; + privateSchemaName?: string; + schemaId?: string; + scopeTypesTableId?: string; +} /** An input for mutations affecting `SecureTableProvision` */ export interface SecureTableProvisionInput { /** The database this provision belongs to. Required. */ @@ -17279,7 +18481,7 @@ export interface SiteSurfaceModuleInput { apiName?: string; catalogModuleId?: string; databaseId: string; - defaultPermissions?: string[]; + defaultCapabilities?: string[]; entityField?: string; entityTableId?: string; id?: string; @@ -17342,8 +18544,8 @@ export interface StorageModuleInput { catalogModuleId?: string; confirmUploadDelay?: IntervalInput; databaseId: string; + defaultCapabilities?: string[]; defaultMaxFileSize?: string; - defaultPermissions?: string[]; downloadUrlExpirySeconds?: number; endpoint?: string; entityField?: string; @@ -17450,6 +18652,16 @@ export interface UserSettingsModuleInput { tableId?: string; tableName?: string; } +/** An input for mutations affecting `UserSettingsSecurityModule` */ +export interface UserSettingsSecurityModuleInput { + apiName?: string; + databaseId: string; + id?: string; + ownerTableId?: string; + schemaId?: string; + tableId?: string; + tableName?: string; +} /** An input for mutations affecting `UserStateModule` */ export interface UserStateModuleInput { databaseId: string; @@ -17507,7 +18719,7 @@ export interface WebauthnCredentialsModuleInput { export interface WebhookModuleInput { apiName?: string; databaseId: string; - defaultPermissions?: string[]; + defaultCapabilities?: string[]; entityField?: string; entityTableId?: string; functionInvocationModuleId?: string; @@ -17664,6 +18876,39 @@ export interface BlueprintFilter { /** Filter by the object’s `updatedAt` field. */ updatedAt?: DatetimeFilter; } +/** A filter to be used against `DataCapabilitiesField` object types. All fields are combined with a logical ‘and.’ */ +export interface DataCapabilitiesFieldFilter { + /** Checks for all expressions in this list. */ + and?: DataCapabilitiesFieldFilter[]; + /** Filter by the object’s `capabilitiesModule` relation. */ + capabilitiesModule?: CapabilitiesModuleFilter; + /** Filter by the object’s `capabilitiesModuleId` field. */ + capabilitiesModuleId?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `fieldId` field. */ + fieldId?: UUIDFilter; + /** Filter by the object’s `fromFieldId` field. */ + fromFieldId?: UUIDFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `mappingFieldId` field. */ + mappingFieldId?: UUIDFilter; + /** Filter by the object’s `mappingKeyFieldId` field. */ + mappingKeyFieldId?: UUIDFilter; + /** Filter by the object’s `mappingTableId` field. */ + mappingTableId?: UUIDFilter; + /** Filter by the object’s `mode` field. */ + mode?: StringFilter; + /** Negates the expression. */ + not?: DataCapabilitiesFieldFilter; + /** Checks for any expressions in this list. */ + or?: DataCapabilitiesFieldFilter[]; + /** Filter by the object’s `subsetGuard` field. */ + subsetGuard?: BooleanFilter; + /** Filter by the object’s `tableId` field. */ + tableId?: UUIDFilter; +} /** A filter to be used against `ApiSurfaceModule` object types. All fields are combined with a logical ‘and.’ */ export interface ApiSurfaceModuleFilter { /** Checks for all expressions in this list. */ @@ -17694,8 +18939,8 @@ export interface ApiSurfaceModuleFilter { corsSettingsTableName?: StringFilter; /** Filter by the object’s `databaseId` field. */ databaseId?: UUIDFilter; - /** Filter by the object’s `defaultPermissions` field. */ - defaultPermissions?: StringListFilter; + /** Filter by the object’s `defaultCapabilities` field. */ + defaultCapabilities?: StringListFilter; /** Filter by the object’s `entityField` field. */ entityField?: StringFilter; /** Filter by the object’s `entityTableId` field. */ @@ -17743,8 +18988,8 @@ export interface AppModuleFilter { catalogModuleId?: UUIDFilter; /** Filter by the object’s `databaseId` field. */ databaseId?: UUIDFilter; - /** Filter by the object’s `defaultPermissions` field. */ - defaultPermissions?: StringListFilter; + /** Filter by the object’s `defaultCapabilities` field. */ + defaultCapabilities?: StringListFilter; /** Filter by the object’s `entityField` field. */ entityField?: StringFilter; /** Filter by the object’s `entityTableId` field. */ @@ -17788,8 +19033,8 @@ export interface DomainModuleFilter { catalogModuleId?: UUIDFilter; /** Filter by the object’s `databaseId` field. */ databaseId?: UUIDFilter; - /** Filter by the object’s `defaultPermissions` field. */ - defaultPermissions?: StringListFilter; + /** Filter by the object’s `defaultCapabilities` field. */ + defaultCapabilities?: StringListFilter; /** Filter by the object’s `domainEventsTableId` field. */ domainEventsTableId?: UUIDFilter; /** Filter by the object’s `domainEventsTableName` field. */ @@ -17845,6 +19090,8 @@ export interface RouteModuleFilter { and?: RouteModuleFilter[]; /** Filter by the object’s `apiName` field. */ apiName?: StringFilter; + /** Filter by the object’s `appLinksFunctionName` field. */ + appLinksFunctionName?: StringFilter; /** Filter by the object’s `catalogModule` relation. */ catalogModule?: CatalogModuleFilter; /** A related `catalogModule` exists. */ @@ -17853,8 +19100,10 @@ export interface RouteModuleFilter { catalogModuleId?: UUIDFilter; /** Filter by the object’s `databaseId` field. */ databaseId?: UUIDFilter; - /** Filter by the object’s `defaultPermissions` field. */ - defaultPermissions?: StringListFilter; + /** Filter by the object’s `deepLinkFunctionName` field. */ + deepLinkFunctionName?: StringFilter; + /** Filter by the object’s `defaultCapabilities` field. */ + defaultCapabilities?: StringListFilter; /** Filter by the object’s `domainModule` relation. */ domainModule?: DomainModuleFilter; /** A related `domainModule` exists. */ @@ -17918,8 +19167,12 @@ export interface SiteSurfaceModuleFilter { catalogModuleId?: UUIDFilter; /** Filter by the object’s `databaseId` field. */ databaseId?: UUIDFilter; - /** Filter by the object’s `defaultPermissions` field. */ - defaultPermissions?: StringListFilter; + /** Filter by the object’s `defaultCapabilities` field. */ + defaultCapabilities?: StringListFilter; + /** Filter by the object’s `emailSenderModules` relation. */ + emailSenderModules?: SiteSurfaceModuleToManyEmailSenderModuleFilter; + /** `emailSenderModules` exist. */ + emailSenderModulesExist?: boolean; /** Filter by the object’s `entityField` field. */ entityField?: StringFilter; /** Filter by the object’s `entityTableId` field. */ @@ -17993,8 +19246,8 @@ export interface WebhookModuleFilter { apiName?: StringFilter; /** Filter by the object’s `databaseId` field. */ databaseId?: UUIDFilter; - /** Filter by the object’s `defaultPermissions` field. */ - defaultPermissions?: StringListFilter; + /** Filter by the object’s `defaultCapabilities` field. */ + defaultCapabilities?: StringListFilter; /** Filter by the object’s `entityField` field. */ entityField?: StringFilter; /** Filter by the object’s `entityTableId` field. */ @@ -18064,8 +19317,8 @@ export interface FunctionDeploymentModuleFilter { apiName?: StringFilter; /** Filter by the object’s `databaseId` field. */ databaseId?: UUIDFilter; - /** Filter by the object’s `defaultPermissions` field. */ - defaultPermissions?: StringListFilter; + /** Filter by the object’s `defaultCapabilities` field. */ + defaultCapabilities?: StringListFilter; /** Filter by the object’s `deploymentEventsTableId` field. */ deploymentEventsTableId?: UUIDFilter; /** Filter by the object’s `deploymentEventsTableName` field. */ @@ -18123,8 +19376,8 @@ export interface HttpRouteModuleFilter { apiName?: StringFilter; /** Filter by the object’s `databaseId` field. */ databaseId?: UUIDFilter; - /** Filter by the object’s `defaultPermissions` field. */ - defaultPermissions?: StringListFilter; + /** Filter by the object’s `defaultCapabilities` field. */ + defaultCapabilities?: StringListFilter; /** Filter by the object’s `entityField` field. */ entityField?: StringFilter; /** Filter by the object’s `entityTableId` field. */ @@ -18188,8 +19441,8 @@ export interface GraphExecutionModuleFilter { createdAt?: DatetimeFilter; /** Filter by the object’s `databaseId` field. */ databaseId?: UUIDFilter; - /** Filter by the object’s `defaultPermissions` field. */ - defaultPermissions?: StringListFilter; + /** Filter by the object’s `defaultCapabilities` field. */ + defaultCapabilities?: StringListFilter; /** Filter by the object’s `entityField` field. */ entityField?: StringFilter; /** Filter by the object’s `entityTableId` field. */ @@ -18235,6 +19488,51 @@ export interface GraphExecutionModuleFilter { /** Filter by the object’s `scope` field. */ scope?: StringFilter; } +/** A filter to be used against `ContentPresetModule` object types. All fields are combined with a logical ‘and.’ */ +export interface ContentPresetModuleFilter { + /** Checks for all expressions in this list. */ + and?: ContentPresetModuleFilter[]; + /** Filter by the object’s `apiName` field. */ + apiName?: StringFilter; + /** Filter by the object’s `contentPresetsTableId` field. */ + contentPresetsTableId?: UUIDFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `entityTableId` field. */ + entityTableId?: UUIDFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `merkleStoreModule` relation. */ + merkleStoreModule?: MerkleStoreModuleFilter; + /** Filter by the object’s `merkleStoreModuleId` field. */ + merkleStoreModuleId?: UUIDFilter; + /** Negates the expression. */ + not?: ContentPresetModuleFilter; + /** Checks for any expressions in this list. */ + or?: ContentPresetModuleFilter[]; + /** Filter by the object’s `policies` field. */ + policies?: JSONFilter; + /** Filter by the object’s `prefix` field. */ + prefix?: StringFilter; + /** Filter by the object’s `privateApiName` field. */ + privateApiName?: StringFilter; + /** Filter by the object’s `privateSchemaId` field. */ + privateSchemaId?: UUIDFilter; + /** Filter by the object’s `privateSchemaName` field. */ + privateSchemaName?: StringFilter; + /** Filter by the object’s `provisions` field. */ + provisions?: JSONFilter; + /** Filter by the object’s `publicSchemaId` field. */ + publicSchemaId?: UUIDFilter; + /** Filter by the object’s `publicSchemaName` field. */ + publicSchemaName?: StringFilter; + /** Filter by the object’s `scope` field. */ + scope?: StringFilter; + /** Filter by the object’s `storeName` field. */ + storeName?: StringFilter; +} /** A filter to be used against `DbPresetModule` object types. All fields are combined with a logical ‘and.’ */ export interface DbPresetModuleFilter { /** Checks for all expressions in this list. */ @@ -18290,8 +19588,8 @@ export interface GraphModuleFilter { createdAt?: DatetimeFilter; /** Filter by the object’s `databaseId` field. */ databaseId?: UUIDFilter; - /** Filter by the object’s `defaultPermissions` field. */ - defaultPermissions?: StringListFilter; + /** Filter by the object’s `defaultCapabilities` field. */ + defaultCapabilities?: StringListFilter; /** Filter by the object’s `entityField` field. */ entityField?: StringFilter; /** Filter by the object’s `entityTableId` field. */ @@ -18392,8 +19690,8 @@ export interface ResourceModuleFilter { apiName?: StringFilter; /** Filter by the object’s `databaseId` field. */ databaseId?: UUIDFilter; - /** Filter by the object’s `defaultPermissions` field. */ - defaultPermissions?: StringListFilter; + /** Filter by the object’s `defaultCapabilities` field. */ + defaultCapabilities?: StringListFilter; /** Filter by the object’s `entityField` field. */ entityField?: StringFilter; /** Filter by the object’s `entityTableId` field. */ @@ -18477,6 +19775,88 @@ export interface ResourceModuleFilter { /** Filter by the object’s `scope` field. */ scope?: StringFilter; } +/** A filter to be used against `EmailSenderModule` object types. All fields are combined with a logical ‘and.’ */ +export interface EmailSenderModuleFilter { + /** Checks for all expressions in this list. */ + and?: EmailSenderModuleFilter[]; + /** Filter by the object’s `apiName` field. */ + apiName?: StringFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `defaultCapabilities` field. */ + defaultCapabilities?: StringListFilter; + /** Filter by the object’s `emailIdentitiesTableId` field. */ + emailIdentitiesTableId?: UUIDFilter; + /** Filter by the object’s `emailIdentitiesTableName` field. */ + emailIdentitiesTableName?: StringFilter; + /** Filter by the object’s `emailProviderAccountsTableId` field. */ + emailProviderAccountsTableId?: UUIDFilter; + /** Filter by the object’s `emailProviderAccountsTableName` field. */ + emailProviderAccountsTableName?: StringFilter; + /** Filter by the object’s `emailSiteIdentitiesTableId` field. */ + emailSiteIdentitiesTableId?: UUIDFilter; + /** Filter by the object’s `emailSiteIdentitiesTableName` field. */ + emailSiteIdentitiesTableName?: StringFilter; + /** Filter by the object’s `entityField` field. */ + entityField?: StringFilter; + /** Filter by the object’s `entityTableId` field. */ + entityTableId?: UUIDFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Negates the expression. */ + not?: EmailSenderModuleFilter; + /** Checks for any expressions in this list. */ + or?: EmailSenderModuleFilter[]; + /** Filter by the object’s `policies` field. */ + policies?: JSONFilter; + /** Filter by the object’s `prefix` field. */ + prefix?: StringFilter; + /** Filter by the object’s `privateApiName` field. */ + privateApiName?: StringFilter; + /** Filter by the object’s `provisions` field. */ + provisions?: JSONFilter; + /** Filter by the object’s `publicSchemaName` field. */ + publicSchemaName?: StringFilter; + /** Filter by the object’s `schemaId` field. */ + schemaId?: UUIDFilter; + /** Filter by the object’s `scope` field. */ + scope?: StringFilter; + /** Filter by the object’s `siteSurfaceModule` relation. */ + siteSurfaceModule?: SiteSurfaceModuleFilter; + /** A related `siteSurfaceModule` exists. */ + siteSurfaceModuleExists?: boolean; + /** Filter by the object’s `siteSurfaceModuleId` field. */ + siteSurfaceModuleId?: UUIDFilter; +} +/** A filter to be used against `FileRefField` object types. All fields are combined with a logical ‘and.’ */ +export interface FileRefFieldFilter { + /** Checks for all expressions in this list. */ + and?: FileRefFieldFilter[]; + /** Filter by the object’s `bucketKey` field. */ + bucketKey?: StringFilter; + /** Filter by the object’s `bucketTags` field. */ + bucketTags?: StringListFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `enforceFk` field. */ + enforceFk?: BooleanFilter; + /** Filter by the object’s `fieldId` field. */ + fieldId?: UUIDFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `isPublic` field. */ + isPublic?: BooleanFilter; + /** Negates the expression. */ + not?: FileRefFieldFilter; + /** Checks for any expressions in this list. */ + or?: FileRefFieldFilter[]; + /** Filter by the object’s `storageModule` relation. */ + storageModule?: StorageModuleFilter; + /** Filter by the object’s `storageModuleId` field. */ + storageModuleId?: UUIDFilter; + /** Filter by the object’s `tableId` field. */ + tableId?: UUIDFilter; +} /** A filter to be used against UUID fields. All fields are combined with a logical ‘and.’ */ export interface UUIDFilter { /** Not equal to the specified value, treating null like an ordinary value. */ @@ -18703,6 +20083,88 @@ export interface IntFilter { /** Not included in the specified list. */ notIn?: number[]; } +/** A filter to be used against `CapabilitiesModule` object types. All fields are combined with a logical ‘and.’ */ +export interface CapabilitiesModuleFilter { + /** Filter by the object’s `actorTableId` field. */ + actorTableId?: UUIDFilter; + /** Checks for all expressions in this list. */ + and?: CapabilitiesModuleFilter[]; + /** Filter by the object’s `apiName` field. */ + apiName?: StringFilter; + /** Filter by the object’s `bitlen` field. */ + bitlen?: IntFilter; + /** Filter by the object’s `dataCapabilitiesFields` relation. */ + dataCapabilitiesFields?: CapabilitiesModuleToManyDataCapabilitiesFieldFilter; + /** `dataCapabilitiesFields` exist. */ + dataCapabilitiesFieldsExist?: boolean; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `defaultTableId` field. */ + defaultTableId?: UUIDFilter; + /** Filter by the object’s `defaultTableName` field. */ + defaultTableName?: StringFilter; + /** Filter by the object’s `entityField` field. */ + entityField?: StringFilter; + /** Filter by the object’s `entityTableId` field. */ + entityTableId?: UUIDFilter; + /** Filter by the object’s `getByMask` field. */ + getByMask?: StringFilter; + /** Filter by the object’s `getMask` field. */ + getMask?: StringFilter; + /** Filter by the object’s `getMaskByName` field. */ + getMaskByName?: StringFilter; + /** Filter by the object’s `getPaddedMask` field. */ + getPaddedMask?: StringFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Negates the expression. */ + not?: CapabilitiesModuleFilter; + /** Checks for any expressions in this list. */ + or?: CapabilitiesModuleFilter[]; + /** Filter by the object’s `prefix` field. */ + prefix?: StringFilter; + /** Filter by the object’s `privateApiName` field. */ + privateApiName?: StringFilter; + /** Filter by the object’s `privateSchemaId` field. */ + privateSchemaId?: UUIDFilter; + /** Filter by the object’s `privateSchemaName` field. */ + privateSchemaName?: StringFilter; + /** Filter by the object’s `publicSchemaName` field. */ + publicSchemaName?: StringFilter; + /** Filter by the object’s `schemaId` field. */ + schemaId?: UUIDFilter; + /** Filter by the object’s `scope` field. */ + scope?: StringFilter; + /** Filter by the object’s `tableId` field. */ + tableId?: UUIDFilter; + /** Filter by the object’s `tableName` field. */ + tableName?: StringFilter; +} +/** A filter to be used against Boolean fields. All fields are combined with a logical ‘and.’ */ +export interface BooleanFilter { + /** Not equal to the specified value, treating null like an ordinary value. */ + distinctFrom?: boolean; + /** Equal to the specified value. */ + equalTo?: boolean; + /** Greater than the specified value. */ + greaterThan?: boolean; + /** Greater than or equal to the specified value. */ + greaterThanOrEqualTo?: boolean; + /** Included in the specified list. */ + in?: boolean[]; + /** Is null (if `true` is specified) or is not null (if `false` is specified). */ + isNull?: boolean; + /** Less than the specified value. */ + lessThan?: boolean; + /** Less than or equal to the specified value. */ + lessThanOrEqualTo?: boolean; + /** Equal to the specified value, treating null like an ordinary value. */ + notDistinctFrom?: boolean; + /** Not equal to the specified value. */ + notEqualTo?: boolean; + /** Not included in the specified list. */ + notIn?: boolean[]; +} /** A filter to be used against `CatalogModule` object types. All fields are combined with a logical ‘and.’ */ export interface CatalogModuleFilter { /** Checks for all expressions in this list. */ @@ -18725,14 +20187,18 @@ export interface CatalogModuleFilter { appsTableId?: UUIDFilter; /** Filter by the object’s `appsTableName` field. */ appsTableName?: StringFilter; + /** Filter by the object’s `bindingsTableId` field. */ + bindingsTableId?: UUIDFilter; + /** Filter by the object’s `bindingsTableName` field. */ + bindingsTableName?: StringFilter; /** Filter by the object’s `bucketsTableId` field. */ bucketsTableId?: UUIDFilter; /** Filter by the object’s `bucketsTableName` field. */ bucketsTableName?: StringFilter; /** Filter by the object’s `databaseId` field. */ databaseId?: UUIDFilter; - /** Filter by the object’s `defaultPermissions` field. */ - defaultPermissions?: StringListFilter; + /** Filter by the object’s `defaultCapabilities` field. */ + defaultCapabilities?: StringListFilter; /** Filter by the object’s `domainModules` relation. */ domainModules?: CatalogModuleToManyDomainModuleFilter; /** `domainModules` exist. */ @@ -18822,8 +20288,8 @@ export interface FunctionInvocationModuleFilter { attemptsTableName?: StringFilter; /** Filter by the object’s `databaseId` field. */ databaseId?: UUIDFilter; - /** Filter by the object’s `defaultPermissions` field. */ - defaultPermissions?: StringListFilter; + /** Filter by the object’s `defaultCapabilities` field. */ + defaultCapabilities?: StringListFilter; /** Filter by the object’s `entityField` field. */ entityField?: StringFilter; /** Filter by the object’s `entityTableId` field. */ @@ -18879,8 +20345,8 @@ export interface FunctionModuleFilter { capabilityBindingsTableId?: UUIDFilter; /** Filter by the object’s `databaseId` field. */ databaseId?: UUIDFilter; - /** Filter by the object’s `defaultPermissions` field. */ - defaultPermissions?: StringListFilter; + /** Filter by the object’s `defaultCapabilities` field. */ + defaultCapabilities?: StringListFilter; /** Filter by the object’s `definitionsTableId` field. */ definitionsTableId?: UUIDFilter; /** Filter by the object’s `definitionsTableName` field. */ @@ -18983,8 +20449,8 @@ export interface NamespaceModuleFilter { apiName?: StringFilter; /** Filter by the object’s `databaseId` field. */ databaseId?: UUIDFilter; - /** Filter by the object’s `defaultPermissions` field. */ - defaultPermissions?: StringListFilter; + /** Filter by the object’s `defaultCapabilities` field. */ + defaultCapabilities?: StringListFilter; /** Filter by the object’s `entityField` field. */ entityField?: StringFilter; /** Filter by the object’s `entityTableId` field. */ @@ -19054,10 +20520,10 @@ export interface StorageModuleFilter { confirmUploadDelay?: IntervalFilter; /** Filter by the object’s `databaseId` field. */ databaseId?: UUIDFilter; + /** Filter by the object’s `defaultCapabilities` field. */ + defaultCapabilities?: StringListFilter; /** Filter by the object’s `defaultMaxFileSize` field. */ defaultMaxFileSize?: BigIntFilter; - /** Filter by the object’s `defaultPermissions` field. */ - defaultPermissions?: StringListFilter; /** Filter by the object’s `downloadUrlExpirySeconds` field. */ downloadUrlExpirySeconds?: IntFilter; /** Filter by the object’s `endpoint` field. */ @@ -19068,6 +20534,10 @@ export interface StorageModuleFilter { entityTableId?: UUIDFilter; /** Filter by the object’s `fileEventsTableId` field. */ fileEventsTableId?: UUIDFilter; + /** Filter by the object’s `fileRefFields` relation. */ + fileRefFields?: StorageModuleToManyFileRefFieldFilter; + /** `fileRefFields` exist. */ + fileRefFieldsExist?: boolean; /** Filter by the object’s `filesTableId` field. */ filesTableId?: UUIDFilter; /** Filter by the object’s `filesTableName` field. */ @@ -19135,8 +20605,14 @@ export interface MerkleStoreModuleFilter { and?: MerkleStoreModuleFilter[]; /** Filter by the object’s `apiName` field. */ apiName?: StringFilter; + /** Filter by the object’s `capabilityKey` field. */ + capabilityKey?: StringFilter; /** Filter by the object’s `commitTableId` field. */ commitTableId?: UUIDFilter; + /** Filter by the object’s `contentPresetModules` relation. */ + contentPresetModules?: MerkleStoreModuleToManyContentPresetModuleFilter; + /** `contentPresetModules` exist. */ + contentPresetModulesExist?: boolean; /** Filter by the object’s `createdAt` field. */ createdAt?: DatetimeFilter; /** Filter by the object’s `databaseId` field. */ @@ -19165,8 +20641,6 @@ export interface MerkleStoreModuleFilter { pagesModules?: MerkleStoreModuleToManyPagesModuleFilter; /** `pagesModules` exist. */ pagesModulesExist?: boolean; - /** Filter by the object’s `permissionKey` field. */ - permissionKey?: StringFilter; /** Filter by the object’s `prefix` field. */ prefix?: StringFilter; /** Filter by the object’s `privateApiName` field. */ @@ -19190,31 +20664,6 @@ export interface MerkleStoreModuleFilter { /** Filter by the object’s `storeTableId` field. */ storeTableId?: UUIDFilter; } -/** A filter to be used against Boolean fields. All fields are combined with a logical ‘and.’ */ -export interface BooleanFilter { - /** Not equal to the specified value, treating null like an ordinary value. */ - distinctFrom?: boolean; - /** Equal to the specified value. */ - equalTo?: boolean; - /** Greater than the specified value. */ - greaterThan?: boolean; - /** Greater than or equal to the specified value. */ - greaterThanOrEqualTo?: boolean; - /** Included in the specified list. */ - in?: boolean[]; - /** Is null (if `true` is specified) or is not null (if `false` is specified). */ - isNull?: boolean; - /** Less than the specified value. */ - lessThan?: boolean; - /** Less than or equal to the specified value. */ - lessThanOrEqualTo?: boolean; - /** Equal to the specified value, treating null like an ordinary value. */ - notDistinctFrom?: boolean; - /** Not equal to the specified value. */ - notEqualTo?: boolean; - /** Not included in the specified list. */ - notIn?: boolean[]; -} /** A filter to be used against BigInt fields. All fields are combined with a logical ‘and.’ */ export interface BigIntFilter { /** Not equal to the specified value, treating null like an ordinary value. */ @@ -19251,89 +20700,33 @@ export type ConstructBlueprintPayloadSelect = { }; export interface CopyTemplateToBlueprintPayload { clientMutationId?: string | null; - result?: string | null; -} -export type CopyTemplateToBlueprintPayloadSelect = { - clientMutationId?: boolean; - result?: boolean; -}; -export interface ProvisionBucketPayload { - /** The access type applied */ - accessType: string; - /** The S3 bucket name that was provisioned */ - bucketName: string; - /** The S3 endpoint (null for AWS S3 default) */ - endpoint?: string | null; - /** Error message if provisioning failed */ - error?: string | null; - /** The storage provider used */ - provider: string; - /** Whether provisioning succeeded */ - success: boolean; -} -export type ProvisionBucketPayloadSelect = { - accessType?: boolean; - bucketName?: boolean; - endpoint?: boolean; - error?: boolean; - provider?: boolean; - success?: boolean; -}; -export interface ProvisionCheckConstraintPayload { - clientMutationId?: string | null; -} -export type ProvisionCheckConstraintPayloadSelect = { - clientMutationId?: boolean; -}; -export interface ProvisionFullTextSearchPayload { - clientMutationId?: string | null; - result?: string | null; -} -export type ProvisionFullTextSearchPayloadSelect = { - clientMutationId?: boolean; - result?: boolean; -}; -export interface ProvisionIndexPayload { - clientMutationId?: string | null; - result?: string | null; -} -export type ProvisionIndexPayloadSelect = { - clientMutationId?: boolean; - result?: boolean; -}; -export interface ProvisionRelationPayload { - clientMutationId?: string | null; - result?: ProvisionRelationRecord[] | null; -} -export type ProvisionRelationPayloadSelect = { - clientMutationId?: boolean; - result?: { - select: ProvisionRelationRecordSelect; - }; -}; -export interface ProvisionSpatialRelationPayload { - clientMutationId?: string | null; - result?: string | null; -} -export type ProvisionSpatialRelationPayloadSelect = { - clientMutationId?: boolean; - result?: boolean; -}; -export interface ProvisionTablePayload { - clientMutationId?: string | null; - result?: ProvisionTableRecord[] | null; + result?: string | null; } -export type ProvisionTablePayloadSelect = { +export type CopyTemplateToBlueprintPayloadSelect = { clientMutationId?: boolean; - result?: { - select: ProvisionTableRecordSelect; - }; + result?: boolean; }; -export interface ProvisionUniqueConstraintPayload { - clientMutationId?: string | null; +export interface ProvisionBucketPayload { + /** The access type applied */ + accessType: string; + /** The S3 bucket name that was provisioned */ + bucketName: string; + /** The S3 endpoint (null for AWS S3 default) */ + endpoint?: string | null; + /** Error message if provisioning failed */ + error?: string | null; + /** The storage provider used */ + provider: string; + /** Whether provisioning succeeded */ + success: boolean; } -export type ProvisionUniqueConstraintPayloadSelect = { - clientMutationId?: boolean; +export type ProvisionBucketPayloadSelect = { + accessType?: boolean; + bucketName?: boolean; + endpoint?: boolean; + error?: boolean; + provider?: boolean; + success?: boolean; }; export interface CreateAgentModulePayload { /** The `AgentModule` that was created by this mutation. */ @@ -19695,6 +21088,51 @@ export type DeleteBlueprintTemplatePayloadSelect = { }; clientMutationId?: boolean; }; +export interface CreateCapabilitiesModulePayload { + /** The `CapabilitiesModule` that was created by this mutation. */ + capabilitiesModule?: CapabilitiesModule | null; + capabilitiesModuleEdge?: CapabilitiesModuleEdge | null; + clientMutationId?: string | null; +} +export type CreateCapabilitiesModulePayloadSelect = { + capabilitiesModule?: { + select: CapabilitiesModuleSelect; + }; + capabilitiesModuleEdge?: { + select: CapabilitiesModuleEdgeSelect; + }; + clientMutationId?: boolean; +}; +export interface UpdateCapabilitiesModulePayload { + /** The `CapabilitiesModule` that was updated by this mutation. */ + capabilitiesModule?: CapabilitiesModule | null; + capabilitiesModuleEdge?: CapabilitiesModuleEdge | null; + clientMutationId?: string | null; +} +export type UpdateCapabilitiesModulePayloadSelect = { + capabilitiesModule?: { + select: CapabilitiesModuleSelect; + }; + capabilitiesModuleEdge?: { + select: CapabilitiesModuleEdgeSelect; + }; + clientMutationId?: boolean; +}; +export interface DeleteCapabilitiesModulePayload { + /** The `CapabilitiesModule` that was deleted by this mutation. */ + capabilitiesModule?: CapabilitiesModule | null; + capabilitiesModuleEdge?: CapabilitiesModuleEdge | null; + clientMutationId?: string | null; +} +export type DeleteCapabilitiesModulePayloadSelect = { + capabilitiesModule?: { + select: CapabilitiesModuleSelect; + }; + capabilitiesModuleEdge?: { + select: CapabilitiesModuleEdgeSelect; + }; + clientMutationId?: boolean; +}; export interface CreateCatalogModulePayload { /** The `CatalogModule` that was created by this mutation. */ catalogModule?: CatalogModule | null; @@ -19875,6 +21313,51 @@ export type DeleteConnectedAccountsModulePayloadSelect = { select: ConnectedAccountsModuleEdgeSelect; }; }; +export interface CreateContentPresetModulePayload { + clientMutationId?: string | null; + /** The `ContentPresetModule` that was created by this mutation. */ + contentPresetModule?: ContentPresetModule | null; + contentPresetModuleEdge?: ContentPresetModuleEdge | null; +} +export type CreateContentPresetModulePayloadSelect = { + clientMutationId?: boolean; + contentPresetModule?: { + select: ContentPresetModuleSelect; + }; + contentPresetModuleEdge?: { + select: ContentPresetModuleEdgeSelect; + }; +}; +export interface UpdateContentPresetModulePayload { + clientMutationId?: string | null; + /** The `ContentPresetModule` that was updated by this mutation. */ + contentPresetModule?: ContentPresetModule | null; + contentPresetModuleEdge?: ContentPresetModuleEdge | null; +} +export type UpdateContentPresetModulePayloadSelect = { + clientMutationId?: boolean; + contentPresetModule?: { + select: ContentPresetModuleSelect; + }; + contentPresetModuleEdge?: { + select: ContentPresetModuleEdgeSelect; + }; +}; +export interface DeleteContentPresetModulePayload { + clientMutationId?: string | null; + /** The `ContentPresetModule` that was deleted by this mutation. */ + contentPresetModule?: ContentPresetModule | null; + contentPresetModuleEdge?: ContentPresetModuleEdge | null; +} +export type DeleteContentPresetModulePayloadSelect = { + clientMutationId?: boolean; + contentPresetModule?: { + select: ContentPresetModuleSelect; + }; + contentPresetModuleEdge?: { + select: ContentPresetModuleEdgeSelect; + }; +}; export interface CreateCryptoAddressesModulePayload { clientMutationId?: string | null; /** The `CryptoAddressesModule` that was created by this mutation. */ @@ -19965,6 +21448,51 @@ export type DeleteCryptoAuthModulePayloadSelect = { select: CryptoAuthModuleEdgeSelect; }; }; +export interface CreateDataCapabilitiesFieldPayload { + clientMutationId?: string | null; + /** The `DataCapabilitiesField` that was created by this mutation. */ + dataCapabilitiesField?: DataCapabilitiesField | null; + dataCapabilitiesFieldEdge?: DataCapabilitiesFieldEdge | null; +} +export type CreateDataCapabilitiesFieldPayloadSelect = { + clientMutationId?: boolean; + dataCapabilitiesField?: { + select: DataCapabilitiesFieldSelect; + }; + dataCapabilitiesFieldEdge?: { + select: DataCapabilitiesFieldEdgeSelect; + }; +}; +export interface UpdateDataCapabilitiesFieldPayload { + clientMutationId?: string | null; + /** The `DataCapabilitiesField` that was updated by this mutation. */ + dataCapabilitiesField?: DataCapabilitiesField | null; + dataCapabilitiesFieldEdge?: DataCapabilitiesFieldEdge | null; +} +export type UpdateDataCapabilitiesFieldPayloadSelect = { + clientMutationId?: boolean; + dataCapabilitiesField?: { + select: DataCapabilitiesFieldSelect; + }; + dataCapabilitiesFieldEdge?: { + select: DataCapabilitiesFieldEdgeSelect; + }; +}; +export interface DeleteDataCapabilitiesFieldPayload { + clientMutationId?: string | null; + /** The `DataCapabilitiesField` that was deleted by this mutation. */ + dataCapabilitiesField?: DataCapabilitiesField | null; + dataCapabilitiesFieldEdge?: DataCapabilitiesFieldEdge | null; +} +export type DeleteDataCapabilitiesFieldPayloadSelect = { + clientMutationId?: boolean; + dataCapabilitiesField?: { + select: DataCapabilitiesFieldSelect; + }; + dataCapabilitiesFieldEdge?: { + select: DataCapabilitiesFieldEdgeSelect; + }; +}; export interface CreateDatabaseProvisionModulePayload { clientMutationId?: string | null; /** The `DatabaseProvisionModule` that was created by this mutation. */ @@ -20415,6 +21943,51 @@ export type DeleteDomainModulePayloadSelect = { select: DomainModuleEdgeSelect; }; }; +export interface CreateEmailSenderModulePayload { + clientMutationId?: string | null; + /** The `EmailSenderModule` that was created by this mutation. */ + emailSenderModule?: EmailSenderModule | null; + emailSenderModuleEdge?: EmailSenderModuleEdge | null; +} +export type CreateEmailSenderModulePayloadSelect = { + clientMutationId?: boolean; + emailSenderModule?: { + select: EmailSenderModuleSelect; + }; + emailSenderModuleEdge?: { + select: EmailSenderModuleEdgeSelect; + }; +}; +export interface UpdateEmailSenderModulePayload { + clientMutationId?: string | null; + /** The `EmailSenderModule` that was updated by this mutation. */ + emailSenderModule?: EmailSenderModule | null; + emailSenderModuleEdge?: EmailSenderModuleEdge | null; +} +export type UpdateEmailSenderModulePayloadSelect = { + clientMutationId?: boolean; + emailSenderModule?: { + select: EmailSenderModuleSelect; + }; + emailSenderModuleEdge?: { + select: EmailSenderModuleEdgeSelect; + }; +}; +export interface DeleteEmailSenderModulePayload { + clientMutationId?: string | null; + /** The `EmailSenderModule` that was deleted by this mutation. */ + emailSenderModule?: EmailSenderModule | null; + emailSenderModuleEdge?: EmailSenderModuleEdge | null; +} +export type DeleteEmailSenderModulePayloadSelect = { + clientMutationId?: boolean; + emailSenderModule?: { + select: EmailSenderModuleSelect; + }; + emailSenderModuleEdge?: { + select: EmailSenderModuleEdgeSelect; + }; +}; export interface CreateEmailsModulePayload { clientMutationId?: string | null; /** The `EmailsModule` that was created by this mutation. */ @@ -20550,6 +22123,51 @@ export type DeleteEventsModulePayloadSelect = { select: EventsModuleEdgeSelect; }; }; +export interface CreateFileRefFieldPayload { + clientMutationId?: string | null; + /** The `FileRefField` that was created by this mutation. */ + fileRefField?: FileRefField | null; + fileRefFieldEdge?: FileRefFieldEdge | null; +} +export type CreateFileRefFieldPayloadSelect = { + clientMutationId?: boolean; + fileRefField?: { + select: FileRefFieldSelect; + }; + fileRefFieldEdge?: { + select: FileRefFieldEdgeSelect; + }; +}; +export interface UpdateFileRefFieldPayload { + clientMutationId?: string | null; + /** The `FileRefField` that was updated by this mutation. */ + fileRefField?: FileRefField | null; + fileRefFieldEdge?: FileRefFieldEdge | null; +} +export type UpdateFileRefFieldPayloadSelect = { + clientMutationId?: boolean; + fileRefField?: { + select: FileRefFieldSelect; + }; + fileRefFieldEdge?: { + select: FileRefFieldEdgeSelect; + }; +}; +export interface DeleteFileRefFieldPayload { + clientMutationId?: string | null; + /** The `FileRefField` that was deleted by this mutation. */ + fileRefField?: FileRefField | null; + fileRefFieldEdge?: FileRefFieldEdge | null; +} +export type DeleteFileRefFieldPayloadSelect = { + clientMutationId?: boolean; + fileRefField?: { + select: FileRefFieldSelect; + }; + fileRefFieldEdge?: { + select: FileRefFieldEdgeSelect; + }; +}; export interface CreateFunctionDeploymentModulePayload { clientMutationId?: string | null; /** The `FunctionDeploymentModule` that was created by this mutation. */ @@ -21495,6 +23113,51 @@ export type DeleteNotificationsModulePayloadSelect = { select: NotificationsModuleEdgeSelect; }; }; +export interface CreateOauthRequestsModulePayload { + clientMutationId?: string | null; + /** The `OauthRequestsModule` that was created by this mutation. */ + oauthRequestsModule?: OauthRequestsModule | null; + oauthRequestsModuleEdge?: OauthRequestsModuleEdge | null; +} +export type CreateOauthRequestsModulePayloadSelect = { + clientMutationId?: boolean; + oauthRequestsModule?: { + select: OauthRequestsModuleSelect; + }; + oauthRequestsModuleEdge?: { + select: OauthRequestsModuleEdgeSelect; + }; +}; +export interface UpdateOauthRequestsModulePayload { + clientMutationId?: string | null; + /** The `OauthRequestsModule` that was updated by this mutation. */ + oauthRequestsModule?: OauthRequestsModule | null; + oauthRequestsModuleEdge?: OauthRequestsModuleEdge | null; +} +export type UpdateOauthRequestsModulePayloadSelect = { + clientMutationId?: boolean; + oauthRequestsModule?: { + select: OauthRequestsModuleSelect; + }; + oauthRequestsModuleEdge?: { + select: OauthRequestsModuleEdgeSelect; + }; +}; +export interface DeleteOauthRequestsModulePayload { + clientMutationId?: string | null; + /** The `OauthRequestsModule` that was deleted by this mutation. */ + oauthRequestsModule?: OauthRequestsModule | null; + oauthRequestsModuleEdge?: OauthRequestsModuleEdge | null; +} +export type DeleteOauthRequestsModulePayloadSelect = { + clientMutationId?: boolean; + oauthRequestsModule?: { + select: OauthRequestsModuleSelect; + }; + oauthRequestsModuleEdge?: { + select: OauthRequestsModuleEdgeSelect; + }; +}; export interface CreatePagesModulePayload { clientMutationId?: string | null; /** The `PagesModule` that was created by this mutation. */ @@ -21540,51 +23203,6 @@ export type DeletePagesModulePayloadSelect = { select: PagesModuleEdgeSelect; }; }; -export interface CreatePermissionsModulePayload { - clientMutationId?: string | null; - /** The `PermissionsModule` that was created by this mutation. */ - permissionsModule?: PermissionsModule | null; - permissionsModuleEdge?: PermissionsModuleEdge | null; -} -export type CreatePermissionsModulePayloadSelect = { - clientMutationId?: boolean; - permissionsModule?: { - select: PermissionsModuleSelect; - }; - permissionsModuleEdge?: { - select: PermissionsModuleEdgeSelect; - }; -}; -export interface UpdatePermissionsModulePayload { - clientMutationId?: string | null; - /** The `PermissionsModule` that was updated by this mutation. */ - permissionsModule?: PermissionsModule | null; - permissionsModuleEdge?: PermissionsModuleEdge | null; -} -export type UpdatePermissionsModulePayloadSelect = { - clientMutationId?: boolean; - permissionsModule?: { - select: PermissionsModuleSelect; - }; - permissionsModuleEdge?: { - select: PermissionsModuleEdgeSelect; - }; -}; -export interface DeletePermissionsModulePayload { - clientMutationId?: string | null; - /** The `PermissionsModule` that was deleted by this mutation. */ - permissionsModule?: PermissionsModule | null; - permissionsModuleEdge?: PermissionsModuleEdge | null; -} -export type DeletePermissionsModulePayloadSelect = { - clientMutationId?: boolean; - permissionsModule?: { - select: PermissionsModuleSelect; - }; - permissionsModuleEdge?: { - select: PermissionsModuleEdgeSelect; - }; -}; export interface CreatePhoneNumbersModulePayload { clientMutationId?: string | null; /** The `PhoneNumbersModule` that was created by this mutation. */ @@ -22080,6 +23698,51 @@ export type DeleteRouteModulePayloadSelect = { select: RouteModuleEdgeSelect; }; }; +export interface CreateScopeTypesModulePayload { + clientMutationId?: string | null; + /** The `ScopeTypesModule` that was created by this mutation. */ + scopeTypesModule?: ScopeTypesModule | null; + scopeTypesModuleEdge?: ScopeTypesModuleEdge | null; +} +export type CreateScopeTypesModulePayloadSelect = { + clientMutationId?: boolean; + scopeTypesModule?: { + select: ScopeTypesModuleSelect; + }; + scopeTypesModuleEdge?: { + select: ScopeTypesModuleEdgeSelect; + }; +}; +export interface UpdateScopeTypesModulePayload { + clientMutationId?: string | null; + /** The `ScopeTypesModule` that was updated by this mutation. */ + scopeTypesModule?: ScopeTypesModule | null; + scopeTypesModuleEdge?: ScopeTypesModuleEdge | null; +} +export type UpdateScopeTypesModulePayloadSelect = { + clientMutationId?: boolean; + scopeTypesModule?: { + select: ScopeTypesModuleSelect; + }; + scopeTypesModuleEdge?: { + select: ScopeTypesModuleEdgeSelect; + }; +}; +export interface DeleteScopeTypesModulePayload { + clientMutationId?: string | null; + /** The `ScopeTypesModule` that was deleted by this mutation. */ + scopeTypesModule?: ScopeTypesModule | null; + scopeTypesModuleEdge?: ScopeTypesModuleEdge | null; +} +export type DeleteScopeTypesModulePayloadSelect = { + clientMutationId?: boolean; + scopeTypesModule?: { + select: ScopeTypesModuleSelect; + }; + scopeTypesModuleEdge?: { + select: ScopeTypesModuleEdgeSelect; + }; +}; export interface CreateSecureTableProvisionPayload { clientMutationId?: string | null; /** The `SecureTableProvision` that was created by this mutation. */ @@ -22530,6 +24193,51 @@ export type DeleteUserSettingsModulePayloadSelect = { select: UserSettingsModuleEdgeSelect; }; }; +export interface CreateUserSettingsSecurityModulePayload { + clientMutationId?: string | null; + /** The `UserSettingsSecurityModule` that was created by this mutation. */ + userSettingsSecurityModule?: UserSettingsSecurityModule | null; + userSettingsSecurityModuleEdge?: UserSettingsSecurityModuleEdge | null; +} +export type CreateUserSettingsSecurityModulePayloadSelect = { + clientMutationId?: boolean; + userSettingsSecurityModule?: { + select: UserSettingsSecurityModuleSelect; + }; + userSettingsSecurityModuleEdge?: { + select: UserSettingsSecurityModuleEdgeSelect; + }; +}; +export interface UpdateUserSettingsSecurityModulePayload { + clientMutationId?: string | null; + /** The `UserSettingsSecurityModule` that was updated by this mutation. */ + userSettingsSecurityModule?: UserSettingsSecurityModule | null; + userSettingsSecurityModuleEdge?: UserSettingsSecurityModuleEdge | null; +} +export type UpdateUserSettingsSecurityModulePayloadSelect = { + clientMutationId?: boolean; + userSettingsSecurityModule?: { + select: UserSettingsSecurityModuleSelect; + }; + userSettingsSecurityModuleEdge?: { + select: UserSettingsSecurityModuleEdgeSelect; + }; +}; +export interface DeleteUserSettingsSecurityModulePayload { + clientMutationId?: string | null; + /** The `UserSettingsSecurityModule` that was deleted by this mutation. */ + userSettingsSecurityModule?: UserSettingsSecurityModule | null; + userSettingsSecurityModuleEdge?: UserSettingsSecurityModuleEdge | null; +} +export type DeleteUserSettingsSecurityModulePayloadSelect = { + clientMutationId?: boolean; + userSettingsSecurityModule?: { + select: UserSettingsSecurityModuleSelect; + }; + userSettingsSecurityModuleEdge?: { + select: UserSettingsSecurityModuleEdgeSelect; + }; +}; export interface CreateUserStateModulePayload { clientMutationId?: string | null; /** The `UserStateModule` that was created by this mutation. */ @@ -22755,26 +24463,6 @@ export type DeleteWebhookModulePayloadSelect = { select: WebhookModuleEdgeSelect; }; }; -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 ProvisionTableRecord { - outFields?: string[] | null; - outTableId?: string | null; -} -export type ProvisionTableRecordSelect = { - outFields?: boolean; - outTableId?: boolean; -}; /** A `AgentModule` edge in the connection. */ export interface AgentModuleEdge { cursor?: string | null; @@ -22871,6 +24559,18 @@ export type BlueprintTemplateEdgeSelect = { select: BlueprintTemplateSelect; }; }; +/** A `CapabilitiesModule` edge in the connection. */ +export interface CapabilitiesModuleEdge { + cursor?: string | null; + /** The `CapabilitiesModule` at the end of the edge. */ + node?: CapabilitiesModule | null; +} +export type CapabilitiesModuleEdgeSelect = { + cursor?: boolean; + node?: { + select: CapabilitiesModuleSelect; + }; +}; /** A `CatalogModule` edge in the connection. */ export interface CatalogModuleEdge { cursor?: string | null; @@ -22919,6 +24619,18 @@ export type ConnectedAccountsModuleEdgeSelect = { select: ConnectedAccountsModuleSelect; }; }; +/** A `ContentPresetModule` edge in the connection. */ +export interface ContentPresetModuleEdge { + cursor?: string | null; + /** The `ContentPresetModule` at the end of the edge. */ + node?: ContentPresetModule | null; +} +export type ContentPresetModuleEdgeSelect = { + cursor?: boolean; + node?: { + select: ContentPresetModuleSelect; + }; +}; /** A `CryptoAddressesModule` edge in the connection. */ export interface CryptoAddressesModuleEdge { cursor?: string | null; @@ -22943,6 +24655,18 @@ export type CryptoAuthModuleEdgeSelect = { select: CryptoAuthModuleSelect; }; }; +/** A `DataCapabilitiesField` edge in the connection. */ +export interface DataCapabilitiesFieldEdge { + cursor?: string | null; + /** The `DataCapabilitiesField` at the end of the edge. */ + node?: DataCapabilitiesField | null; +} +export type DataCapabilitiesFieldEdgeSelect = { + cursor?: boolean; + node?: { + select: DataCapabilitiesFieldSelect; + }; +}; /** A `DatabaseProvisionModule` edge in the connection. */ export interface DatabaseProvisionModuleEdge { cursor?: string | null; @@ -23063,6 +24787,18 @@ export type DomainModuleEdgeSelect = { select: DomainModuleSelect; }; }; +/** A `EmailSenderModule` edge in the connection. */ +export interface EmailSenderModuleEdge { + cursor?: string | null; + /** The `EmailSenderModule` at the end of the edge. */ + node?: EmailSenderModule | null; +} +export type EmailSenderModuleEdgeSelect = { + cursor?: boolean; + node?: { + select: EmailSenderModuleSelect; + }; +}; /** A `EmailsModule` edge in the connection. */ export interface EmailsModuleEdge { cursor?: string | null; @@ -23099,6 +24835,18 @@ export type EventsModuleEdgeSelect = { select: EventsModuleSelect; }; }; +/** A `FileRefField` edge in the connection. */ +export interface FileRefFieldEdge { + cursor?: string | null; + /** The `FileRefField` at the end of the edge. */ + node?: FileRefField | null; +} +export type FileRefFieldEdgeSelect = { + cursor?: boolean; + node?: { + select: FileRefFieldSelect; + }; +}; /** A `FunctionDeploymentModule` edge in the connection. */ export interface FunctionDeploymentModuleEdge { cursor?: string | null; @@ -23351,28 +25099,28 @@ export type NotificationsModuleEdgeSelect = { select: NotificationsModuleSelect; }; }; -/** A `PagesModule` edge in the connection. */ -export interface PagesModuleEdge { +/** A `OauthRequestsModule` edge in the connection. */ +export interface OauthRequestsModuleEdge { cursor?: string | null; - /** The `PagesModule` at the end of the edge. */ - node?: PagesModule | null; + /** The `OauthRequestsModule` at the end of the edge. */ + node?: OauthRequestsModule | null; } -export type PagesModuleEdgeSelect = { +export type OauthRequestsModuleEdgeSelect = { cursor?: boolean; node?: { - select: PagesModuleSelect; + select: OauthRequestsModuleSelect; }; }; -/** A `PermissionsModule` edge in the connection. */ -export interface PermissionsModuleEdge { +/** A `PagesModule` edge in the connection. */ +export interface PagesModuleEdge { cursor?: string | null; - /** The `PermissionsModule` at the end of the edge. */ - node?: PermissionsModule | null; + /** The `PagesModule` at the end of the edge. */ + node?: PagesModule | null; } -export type PermissionsModuleEdgeSelect = { +export type PagesModuleEdgeSelect = { cursor?: boolean; node?: { - select: PermissionsModuleSelect; + select: PagesModuleSelect; }; }; /** A `PhoneNumbersModule` edge in the connection. */ @@ -23507,6 +25255,18 @@ export type RouteModuleEdgeSelect = { select: RouteModuleSelect; }; }; +/** A `ScopeTypesModule` edge in the connection. */ +export interface ScopeTypesModuleEdge { + cursor?: string | null; + /** The `ScopeTypesModule` at the end of the edge. */ + node?: ScopeTypesModule | null; +} +export type ScopeTypesModuleEdgeSelect = { + cursor?: boolean; + node?: { + select: ScopeTypesModuleSelect; + }; +}; /** A `SecureTableProvision` edge in the connection. */ export interface SecureTableProvisionEdge { cursor?: string | null; @@ -23627,6 +25387,18 @@ export type UserSettingsModuleEdgeSelect = { select: UserSettingsModuleSelect; }; }; +/** A `UserSettingsSecurityModule` edge in the connection. */ +export interface UserSettingsSecurityModuleEdge { + cursor?: string | null; + /** The `UserSettingsSecurityModule` at the end of the edge. */ + node?: UserSettingsSecurityModule | null; +} +export type UserSettingsSecurityModuleEdgeSelect = { + cursor?: boolean; + node?: { + select: UserSettingsSecurityModuleSelect; + }; +}; /** A `UserStateModule` edge in the connection. */ export interface UserStateModuleEdge { cursor?: string | null; diff --git a/sdk/constructive-react/src/modules/orm/models/capabilitiesModule.ts b/sdk/constructive-react/src/modules/orm/models/capabilitiesModule.ts new file mode 100644 index 0000000000..60aa4dabf4 --- /dev/null +++ b/sdk/constructive-react/src/modules/orm/models/capabilitiesModule.ts @@ -0,0 +1,245 @@ +/** + * CapabilitiesModule 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 { + CapabilitiesModule, + CapabilitiesModuleWithRelations, + CapabilitiesModuleSelect, + CapabilitiesModuleFilter, + CapabilitiesModuleOrderBy, + CreateCapabilitiesModuleInput, + UpdateCapabilitiesModuleInput, + CapabilitiesModulePatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class CapabilitiesModuleModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + capabilitiesModules: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'CapabilitiesModule', + 'capabilitiesModules', + 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, + }, + 'CapabilitiesModuleFilter', + 'CapabilitiesModuleOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'CapabilitiesModule', + fieldName: 'capabilitiesModules', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + capabilitiesModule: InferSelectResult | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'CapabilitiesModule', + 'capabilitiesModules', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'CapabilitiesModuleFilter', + 'CapabilitiesModuleOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'CapabilitiesModule', + fieldName: 'capabilitiesModule', + document, + variables, + transform: (data: { + capabilitiesModules?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + capabilitiesModule: data.capabilitiesModules?.nodes?.[0] ?? null, + }), + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + capabilitiesModule: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'CapabilitiesModule', + 'capabilitiesModules', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'CapabilitiesModuleFilter', + 'CapabilitiesModuleOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'CapabilitiesModule', + fieldName: 'capabilitiesModule', + document, + variables, + transform: (data: { + capabilitiesModules?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + capabilitiesModule: data.capabilitiesModules?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createCapabilitiesModule: { + capabilitiesModule: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'CapabilitiesModule', + 'createCapabilitiesModule', + 'capabilitiesModule', + args.select, + args.data, + 'CreateCapabilitiesModuleInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'CapabilitiesModule', + fieldName: 'createCapabilitiesModule', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + CapabilitiesModulePatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateCapabilitiesModule: { + capabilitiesModule: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'CapabilitiesModule', + 'updateCapabilitiesModule', + 'capabilitiesModule', + args.select, + args.where.id, + args.data, + 'UpdateCapabilitiesModuleInput', + 'id', + 'capabilitiesModulePatch', + connectionFieldsMap, + undefined + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'CapabilitiesModule', + fieldName: 'updateCapabilitiesModule', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteCapabilitiesModule: { + capabilitiesModule: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'CapabilitiesModule', + 'deleteCapabilitiesModule', + 'capabilitiesModule', + { + id: args.where.id, + }, + 'DeleteCapabilitiesModuleInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'CapabilitiesModule', + fieldName: 'deleteCapabilitiesModule', + document, + variables, + }); + } +} diff --git a/sdk/constructive-react/src/modules/orm/models/contentPresetModule.ts b/sdk/constructive-react/src/modules/orm/models/contentPresetModule.ts new file mode 100644 index 0000000000..b756c7a1b2 --- /dev/null +++ b/sdk/constructive-react/src/modules/orm/models/contentPresetModule.ts @@ -0,0 +1,245 @@ +/** + * ContentPresetModule 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 { + ContentPresetModule, + ContentPresetModuleWithRelations, + ContentPresetModuleSelect, + ContentPresetModuleFilter, + ContentPresetModuleOrderBy, + CreateContentPresetModuleInput, + UpdateContentPresetModuleInput, + ContentPresetModulePatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class ContentPresetModuleModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + contentPresetModules: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'ContentPresetModule', + 'contentPresetModules', + 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, + }, + 'ContentPresetModuleFilter', + 'ContentPresetModuleOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'ContentPresetModule', + fieldName: 'contentPresetModules', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + contentPresetModule: InferSelectResult | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'ContentPresetModule', + 'contentPresetModules', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'ContentPresetModuleFilter', + 'ContentPresetModuleOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'ContentPresetModule', + fieldName: 'contentPresetModule', + document, + variables, + transform: (data: { + contentPresetModules?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + contentPresetModule: data.contentPresetModules?.nodes?.[0] ?? null, + }), + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + contentPresetModule: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'ContentPresetModule', + 'contentPresetModules', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'ContentPresetModuleFilter', + 'ContentPresetModuleOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'ContentPresetModule', + fieldName: 'contentPresetModule', + document, + variables, + transform: (data: { + contentPresetModules?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + contentPresetModule: data.contentPresetModules?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createContentPresetModule: { + contentPresetModule: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'ContentPresetModule', + 'createContentPresetModule', + 'contentPresetModule', + args.select, + args.data, + 'CreateContentPresetModuleInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'ContentPresetModule', + fieldName: 'createContentPresetModule', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + ContentPresetModulePatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateContentPresetModule: { + contentPresetModule: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'ContentPresetModule', + 'updateContentPresetModule', + 'contentPresetModule', + args.select, + args.where.id, + args.data, + 'UpdateContentPresetModuleInput', + 'id', + 'contentPresetModulePatch', + connectionFieldsMap, + undefined + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'ContentPresetModule', + fieldName: 'updateContentPresetModule', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteContentPresetModule: { + contentPresetModule: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'ContentPresetModule', + 'deleteContentPresetModule', + 'contentPresetModule', + { + id: args.where.id, + }, + 'DeleteContentPresetModuleInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'ContentPresetModule', + fieldName: 'deleteContentPresetModule', + document, + variables, + }); + } +} diff --git a/sdk/constructive-react/src/modules/orm/models/dataCapabilitiesField.ts b/sdk/constructive-react/src/modules/orm/models/dataCapabilitiesField.ts new file mode 100644 index 0000000000..f2d9ae971b --- /dev/null +++ b/sdk/constructive-react/src/modules/orm/models/dataCapabilitiesField.ts @@ -0,0 +1,247 @@ +/** + * DataCapabilitiesField 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 { + DataCapabilitiesField, + DataCapabilitiesFieldWithRelations, + DataCapabilitiesFieldSelect, + DataCapabilitiesFieldFilter, + DataCapabilitiesFieldOrderBy, + CreateDataCapabilitiesFieldInput, + UpdateDataCapabilitiesFieldInput, + DataCapabilitiesFieldPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class DataCapabilitiesFieldModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + dataCapabilitiesFields: ConnectionResult< + InferSelectResult + >; + }> { + const { document, variables } = buildFindManyDocument( + 'DataCapabilitiesField', + 'dataCapabilitiesFields', + 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, + }, + 'DataCapabilitiesFieldFilter', + 'DataCapabilitiesFieldOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'DataCapabilitiesField', + fieldName: 'dataCapabilitiesFields', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + dataCapabilitiesField: InferSelectResult | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'DataCapabilitiesField', + 'dataCapabilitiesFields', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'DataCapabilitiesFieldFilter', + 'DataCapabilitiesFieldOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'DataCapabilitiesField', + fieldName: 'dataCapabilitiesField', + document, + variables, + transform: (data: { + dataCapabilitiesFields?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + dataCapabilitiesField: data.dataCapabilitiesFields?.nodes?.[0] ?? null, + }), + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + dataCapabilitiesField: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'DataCapabilitiesField', + 'dataCapabilitiesFields', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'DataCapabilitiesFieldFilter', + 'DataCapabilitiesFieldOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'DataCapabilitiesField', + fieldName: 'dataCapabilitiesField', + document, + variables, + transform: (data: { + dataCapabilitiesFields?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + dataCapabilitiesField: data.dataCapabilitiesFields?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createDataCapabilitiesField: { + dataCapabilitiesField: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'DataCapabilitiesField', + 'createDataCapabilitiesField', + 'dataCapabilitiesField', + args.select, + args.data, + 'CreateDataCapabilitiesFieldInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'DataCapabilitiesField', + fieldName: 'createDataCapabilitiesField', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + DataCapabilitiesFieldPatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateDataCapabilitiesField: { + dataCapabilitiesField: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'DataCapabilitiesField', + 'updateDataCapabilitiesField', + 'dataCapabilitiesField', + args.select, + args.where.id, + args.data, + 'UpdateDataCapabilitiesFieldInput', + 'id', + 'dataCapabilitiesFieldPatch', + connectionFieldsMap, + undefined + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'DataCapabilitiesField', + fieldName: 'updateDataCapabilitiesField', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteDataCapabilitiesField: { + dataCapabilitiesField: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'DataCapabilitiesField', + 'deleteDataCapabilitiesField', + 'dataCapabilitiesField', + { + id: args.where.id, + }, + 'DeleteDataCapabilitiesFieldInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'DataCapabilitiesField', + fieldName: 'deleteDataCapabilitiesField', + document, + variables, + }); + } +} diff --git a/sdk/constructive-react/src/modules/orm/models/permissionsModule.ts b/sdk/constructive-react/src/modules/orm/models/emailSenderModule.ts similarity index 51% rename from sdk/constructive-react/src/modules/orm/models/permissionsModule.ts rename to sdk/constructive-react/src/modules/orm/models/emailSenderModule.ts index 2a330457b5..3f5f0f6385 100644 --- a/sdk/constructive-react/src/modules/orm/models/permissionsModule.ts +++ b/sdk/constructive-react/src/modules/orm/models/emailSenderModule.ts @@ -1,5 +1,5 @@ /** - * PermissionsModule model for ORM client + * EmailSenderModule 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 { - PermissionsModule, - PermissionsModuleWithRelations, - PermissionsModuleSelect, - PermissionsModuleFilter, - PermissionsModuleOrderBy, - CreatePermissionsModuleInput, - UpdatePermissionsModuleInput, - PermissionsModulePatch, + EmailSenderModule, + EmailSenderModuleWithRelations, + EmailSenderModuleSelect, + EmailSenderModuleFilter, + EmailSenderModuleOrderBy, + CreateEmailSenderModuleInput, + UpdateEmailSenderModuleInput, + EmailSenderModulePatch, } from '../input-types'; import { connectionFieldsMap } from '../input-types'; -export class PermissionsModuleModel { +export class EmailSenderModuleModel { constructor(private client: OrmClient) {} - findMany( - args: FindManyArgs & { + findMany( + args: FindManyArgs & { select: S; - } & StrictSelect + } & StrictSelect ): QueryBuilder<{ - permissionsModules: ConnectionResult>; + emailSenderModules: ConnectionResult>; }> { const { document, variables } = buildFindManyDocument( - 'PermissionsModule', - 'permissionsModules', + 'EmailSenderModule', + 'emailSenderModules', args.select, { where: args?.where, @@ -56,65 +56,65 @@ export class PermissionsModuleModel { before: args?.before, offset: args?.offset, }, - 'PermissionsModuleFilter', - 'PermissionsModuleOrderBy', + 'EmailSenderModuleFilter', + 'EmailSenderModuleOrderBy', connectionFieldsMap ); return new QueryBuilder({ client: this.client, operation: 'query', - operationName: 'PermissionsModule', - fieldName: 'permissionsModules', + operationName: 'EmailSenderModule', + fieldName: 'emailSenderModules', document, variables, }); } - findFirst( - args: FindFirstArgs & { + findFirst( + args: FindFirstArgs & { select: S; - } & StrictSelect + } & StrictSelect ): QueryBuilder<{ - permissionsModule: InferSelectResult | null; + emailSenderModule: InferSelectResult | null; }> { const { document, variables } = buildFindFirstDocument( - 'PermissionsModule', - 'permissionsModules', + 'EmailSenderModule', + 'emailSenderModules', args.select, { where: args?.where, orderBy: args?.orderBy as string[] | undefined, }, - 'PermissionsModuleFilter', - 'PermissionsModuleOrderBy', + 'EmailSenderModuleFilter', + 'EmailSenderModuleOrderBy', connectionFieldsMap ); return new QueryBuilder({ client: this.client, operation: 'query', - operationName: 'PermissionsModule', - fieldName: 'permissionsModule', + operationName: 'EmailSenderModule', + fieldName: 'emailSenderModule', document, variables, transform: (data: { - permissionsModules?: { - nodes?: InferSelectResult[]; + emailSenderModules?: { + nodes?: InferSelectResult[]; }; }) => ({ - permissionsModule: data.permissionsModules?.nodes?.[0] ?? null, + emailSenderModule: data.emailSenderModules?.nodes?.[0] ?? null, }), }); } - findOne( + findOne( args: { id: string; select: S; - } & StrictSelect + } & StrictSelect ): QueryBuilder<{ - permissionsModule: InferSelectResult | null; + emailSenderModule: InferSelectResult | null; }> { const { document, variables } = buildFindManyDocument( - 'PermissionsModule', - 'permissionsModules', + 'EmailSenderModule', + 'emailSenderModules', args.select, { where: { @@ -124,91 +124,91 @@ export class PermissionsModuleModel { }, first: 1, }, - 'PermissionsModuleFilter', - 'PermissionsModuleOrderBy', + 'EmailSenderModuleFilter', + 'EmailSenderModuleOrderBy', connectionFieldsMap ); return new QueryBuilder({ client: this.client, operation: 'query', - operationName: 'PermissionsModule', - fieldName: 'permissionsModule', + operationName: 'EmailSenderModule', + fieldName: 'emailSenderModule', document, variables, transform: (data: { - permissionsModules?: { - nodes?: InferSelectResult[]; + emailSenderModules?: { + nodes?: InferSelectResult[]; }; }) => ({ - permissionsModule: data.permissionsModules?.nodes?.[0] ?? null, + emailSenderModule: data.emailSenderModules?.nodes?.[0] ?? null, }), }); } - create( - args: CreateArgs & { + create( + args: CreateArgs & { select: S; - } & StrictSelect + } & StrictSelect ): QueryBuilder<{ - createPermissionsModule: { - permissionsModule: InferSelectResult; + createEmailSenderModule: { + emailSenderModule: InferSelectResult; }; }> { const { document, variables } = buildCreateDocument( - 'PermissionsModule', - 'createPermissionsModule', - 'permissionsModule', + 'EmailSenderModule', + 'createEmailSenderModule', + 'emailSenderModule', args.select, args.data, - 'CreatePermissionsModuleInput', + 'CreateEmailSenderModuleInput', connectionFieldsMap ); return new QueryBuilder({ client: this.client, operation: 'mutation', - operationName: 'PermissionsModule', - fieldName: 'createPermissionsModule', + operationName: 'EmailSenderModule', + fieldName: 'createEmailSenderModule', document, variables, }); } - update( + update( args: UpdateArgs< S, { id: string; }, - PermissionsModulePatch + EmailSenderModulePatch > & { select: S; - } & StrictSelect + } & StrictSelect ): QueryBuilder<{ - updatePermissionsModule: { - permissionsModule: InferSelectResult; + updateEmailSenderModule: { + emailSenderModule: InferSelectResult; }; }> { const { document, variables } = buildUpdateByPkDocument( - 'PermissionsModule', - 'updatePermissionsModule', - 'permissionsModule', + 'EmailSenderModule', + 'updateEmailSenderModule', + 'emailSenderModule', args.select, args.where.id, args.data, - 'UpdatePermissionsModuleInput', + 'UpdateEmailSenderModuleInput', 'id', - 'permissionsModulePatch', + 'emailSenderModulePatch', connectionFieldsMap, undefined ); return new QueryBuilder({ client: this.client, operation: 'mutation', - operationName: 'PermissionsModule', - fieldName: 'updatePermissionsModule', + operationName: 'EmailSenderModule', + fieldName: 'updateEmailSenderModule', document, variables, }); } - delete( + delete( args: DeleteArgs< { id: string; @@ -216,28 +216,28 @@ export class PermissionsModuleModel { S > & { select: S; - } & StrictSelect + } & StrictSelect ): QueryBuilder<{ - deletePermissionsModule: { - permissionsModule: InferSelectResult; + deleteEmailSenderModule: { + emailSenderModule: InferSelectResult; }; }> { const { document, variables } = buildDeleteByPkDocument( - 'PermissionsModule', - 'deletePermissionsModule', - 'permissionsModule', + 'EmailSenderModule', + 'deleteEmailSenderModule', + 'emailSenderModule', { id: args.where.id, }, - 'DeletePermissionsModuleInput', + 'DeleteEmailSenderModuleInput', args.select, connectionFieldsMap ); return new QueryBuilder({ client: this.client, operation: 'mutation', - operationName: 'PermissionsModule', - fieldName: 'deletePermissionsModule', + operationName: 'EmailSenderModule', + fieldName: 'deleteEmailSenderModule', document, variables, }); diff --git a/sdk/constructive-react/src/modules/orm/models/fileRefField.ts b/sdk/constructive-react/src/modules/orm/models/fileRefField.ts new file mode 100644 index 0000000000..130f0d6858 --- /dev/null +++ b/sdk/constructive-react/src/modules/orm/models/fileRefField.ts @@ -0,0 +1,245 @@ +/** + * FileRefField 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 { + FileRefField, + FileRefFieldWithRelations, + FileRefFieldSelect, + FileRefFieldFilter, + FileRefFieldOrderBy, + CreateFileRefFieldInput, + UpdateFileRefFieldInput, + FileRefFieldPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class FileRefFieldModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + fileRefFields: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'FileRefField', + 'fileRefFields', + 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, + }, + 'FileRefFieldFilter', + 'FileRefFieldOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'FileRefField', + fieldName: 'fileRefFields', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + fileRefField: InferSelectResult | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'FileRefField', + 'fileRefFields', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'FileRefFieldFilter', + 'FileRefFieldOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'FileRefField', + fieldName: 'fileRefField', + document, + variables, + transform: (data: { + fileRefFields?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + fileRefField: data.fileRefFields?.nodes?.[0] ?? null, + }), + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + fileRefField: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'FileRefField', + 'fileRefFields', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'FileRefFieldFilter', + 'FileRefFieldOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'FileRefField', + fieldName: 'fileRefField', + document, + variables, + transform: (data: { + fileRefFields?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + fileRefField: data.fileRefFields?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createFileRefField: { + fileRefField: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'FileRefField', + 'createFileRefField', + 'fileRefField', + args.select, + args.data, + 'CreateFileRefFieldInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'FileRefField', + fieldName: 'createFileRefField', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + FileRefFieldPatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateFileRefField: { + fileRefField: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'FileRefField', + 'updateFileRefField', + 'fileRefField', + args.select, + args.where.id, + args.data, + 'UpdateFileRefFieldInput', + 'id', + 'fileRefFieldPatch', + connectionFieldsMap, + undefined + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'FileRefField', + fieldName: 'updateFileRefField', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteFileRefField: { + fileRefField: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'FileRefField', + 'deleteFileRefField', + 'fileRefField', + { + id: args.where.id, + }, + 'DeleteFileRefFieldInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'FileRefField', + fieldName: 'deleteFileRefField', + document, + variables, + }); + } +} diff --git a/sdk/constructive-react/src/modules/orm/models/index.ts b/sdk/constructive-react/src/modules/orm/models/index.ts index 55e18104c1..beb1e2e872 100644 --- a/sdk/constructive-react/src/modules/orm/models/index.ts +++ b/sdk/constructive-react/src/modules/orm/models/index.ts @@ -11,12 +11,15 @@ export { BillingProviderModuleModel } from './billingProviderModule'; export { BlueprintModel } from './blueprint'; export { BlueprintConstructionModel } from './blueprintConstruction'; export { BlueprintTemplateModel } from './blueprintTemplate'; +export { CapabilitiesModuleModel } from './capabilitiesModule'; export { CatalogModuleModel } from './catalogModule'; export { ComputeLogModuleModel } from './computeLogModule'; export { ConfigSecretsUserModuleModel } from './configSecretsUserModule'; export { ConnectedAccountsModuleModel } from './connectedAccountsModule'; +export { ContentPresetModuleModel } from './contentPresetModule'; export { CryptoAddressesModuleModel } from './cryptoAddressesModule'; export { CryptoAuthModuleModel } from './cryptoAuthModule'; +export { DataCapabilitiesFieldModel } from './dataCapabilitiesField'; export { DatabaseProvisionModuleModel } from './databaseProvisionModule'; export { DatabaseSettingsModuleModel } from './databaseSettingsModule'; export { DbPoolConfigModel } from './dbPoolConfig'; @@ -27,9 +30,11 @@ export { DefaultIdsModuleModel } from './defaultIdsModule'; export { DenormalizedTableFieldModel } from './denormalizedTableField'; export { DevicesModuleModel } from './devicesModule'; export { DomainModuleModel } from './domainModule'; +export { EmailSenderModuleModel } from './emailSenderModule'; export { EmailsModuleModel } from './emailsModule'; export { EntityTypeProvisionModel } from './entityTypeProvision'; export { EventsModuleModel } from './eventsModule'; +export { FileRefFieldModel } from './fileRefField'; export { FunctionDeploymentModuleModel } from './functionDeploymentModule'; export { FunctionInvocationModuleModel } from './functionInvocationModule'; export { FunctionModuleModel } from './functionModule'; @@ -51,8 +56,8 @@ export { MembershipsModuleModel } from './membershipsModule'; export { MerkleStoreModuleModel } from './merkleStoreModule'; export { NamespaceModuleModel } from './namespaceModule'; export { NotificationsModuleModel } from './notificationsModule'; +export { OauthRequestsModuleModel } from './oauthRequestsModule'; export { PagesModuleModel } from './pagesModule'; -export { PermissionsModuleModel } from './permissionsModule'; export { PhoneNumbersModuleModel } from './phoneNumbersModule'; export { PlansModuleModel } from './plansModule'; export { PrincipalAuthModuleModel } from './principalAuthModule'; @@ -64,6 +69,7 @@ export { RelationProvisionModel } from './relationProvision'; export { ResourceModuleModel } from './resourceModule'; export { RlsModuleModel } from './rlsModule'; export { RouteModuleModel } from './routeModule'; +export { ScopeTypesModuleModel } from './scopeTypesModule'; export { SecureTableProvisionModel } from './secureTableProvision'; export { SessionSecretsModuleModel } from './sessionSecretsModule'; export { SessionsModuleModel } from './sessionsModule'; @@ -74,6 +80,7 @@ export { TransferLogModuleModel } from './transferLogModule'; export { UserAuthModuleModel } from './userAuthModule'; export { UserCredentialsModuleModel } from './userCredentialsModule'; export { UserSettingsModuleModel } from './userSettingsModule'; +export { UserSettingsSecurityModuleModel } from './userSettingsSecurityModule'; export { UserStateModuleModel } from './userStateModule'; export { UsersModuleModel } from './usersModule'; export { WebauthnAuthModuleModel } from './webauthnAuthModule'; diff --git a/sdk/constructive-react/src/modules/orm/models/oauthRequestsModule.ts b/sdk/constructive-react/src/modules/orm/models/oauthRequestsModule.ts new file mode 100644 index 0000000000..a874125a9e --- /dev/null +++ b/sdk/constructive-react/src/modules/orm/models/oauthRequestsModule.ts @@ -0,0 +1,245 @@ +/** + * OauthRequestsModule 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 { + OauthRequestsModule, + OauthRequestsModuleWithRelations, + OauthRequestsModuleSelect, + OauthRequestsModuleFilter, + OauthRequestsModuleOrderBy, + CreateOauthRequestsModuleInput, + UpdateOauthRequestsModuleInput, + OauthRequestsModulePatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class OauthRequestsModuleModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + oauthRequestsModules: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'OauthRequestsModule', + 'oauthRequestsModules', + 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, + }, + 'OauthRequestsModuleFilter', + 'OauthRequestsModuleOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'OauthRequestsModule', + fieldName: 'oauthRequestsModules', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + oauthRequestsModule: InferSelectResult | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'OauthRequestsModule', + 'oauthRequestsModules', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'OauthRequestsModuleFilter', + 'OauthRequestsModuleOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'OauthRequestsModule', + fieldName: 'oauthRequestsModule', + document, + variables, + transform: (data: { + oauthRequestsModules?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + oauthRequestsModule: data.oauthRequestsModules?.nodes?.[0] ?? null, + }), + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + oauthRequestsModule: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'OauthRequestsModule', + 'oauthRequestsModules', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'OauthRequestsModuleFilter', + 'OauthRequestsModuleOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'OauthRequestsModule', + fieldName: 'oauthRequestsModule', + document, + variables, + transform: (data: { + oauthRequestsModules?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + oauthRequestsModule: data.oauthRequestsModules?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createOauthRequestsModule: { + oauthRequestsModule: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'OauthRequestsModule', + 'createOauthRequestsModule', + 'oauthRequestsModule', + args.select, + args.data, + 'CreateOauthRequestsModuleInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'OauthRequestsModule', + fieldName: 'createOauthRequestsModule', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + OauthRequestsModulePatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateOauthRequestsModule: { + oauthRequestsModule: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'OauthRequestsModule', + 'updateOauthRequestsModule', + 'oauthRequestsModule', + args.select, + args.where.id, + args.data, + 'UpdateOauthRequestsModuleInput', + 'id', + 'oauthRequestsModulePatch', + connectionFieldsMap, + undefined + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'OauthRequestsModule', + fieldName: 'updateOauthRequestsModule', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteOauthRequestsModule: { + oauthRequestsModule: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'OauthRequestsModule', + 'deleteOauthRequestsModule', + 'oauthRequestsModule', + { + id: args.where.id, + }, + 'DeleteOauthRequestsModuleInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'OauthRequestsModule', + fieldName: 'deleteOauthRequestsModule', + document, + variables, + }); + } +} diff --git a/sdk/constructive-react/src/modules/orm/models/scopeTypesModule.ts b/sdk/constructive-react/src/modules/orm/models/scopeTypesModule.ts new file mode 100644 index 0000000000..1cbd281d05 --- /dev/null +++ b/sdk/constructive-react/src/modules/orm/models/scopeTypesModule.ts @@ -0,0 +1,245 @@ +/** + * ScopeTypesModule 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 { + ScopeTypesModule, + ScopeTypesModuleWithRelations, + ScopeTypesModuleSelect, + ScopeTypesModuleFilter, + ScopeTypesModuleOrderBy, + CreateScopeTypesModuleInput, + UpdateScopeTypesModuleInput, + ScopeTypesModulePatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class ScopeTypesModuleModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + scopeTypesModules: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'ScopeTypesModule', + 'scopeTypesModules', + 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, + }, + 'ScopeTypesModuleFilter', + 'ScopeTypesModuleOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'ScopeTypesModule', + fieldName: 'scopeTypesModules', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + scopeTypesModule: InferSelectResult | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'ScopeTypesModule', + 'scopeTypesModules', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'ScopeTypesModuleFilter', + 'ScopeTypesModuleOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'ScopeTypesModule', + fieldName: 'scopeTypesModule', + document, + variables, + transform: (data: { + scopeTypesModules?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + scopeTypesModule: data.scopeTypesModules?.nodes?.[0] ?? null, + }), + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + scopeTypesModule: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'ScopeTypesModule', + 'scopeTypesModules', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'ScopeTypesModuleFilter', + 'ScopeTypesModuleOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'ScopeTypesModule', + fieldName: 'scopeTypesModule', + document, + variables, + transform: (data: { + scopeTypesModules?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + scopeTypesModule: data.scopeTypesModules?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createScopeTypesModule: { + scopeTypesModule: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'ScopeTypesModule', + 'createScopeTypesModule', + 'scopeTypesModule', + args.select, + args.data, + 'CreateScopeTypesModuleInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'ScopeTypesModule', + fieldName: 'createScopeTypesModule', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + ScopeTypesModulePatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateScopeTypesModule: { + scopeTypesModule: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'ScopeTypesModule', + 'updateScopeTypesModule', + 'scopeTypesModule', + args.select, + args.where.id, + args.data, + 'UpdateScopeTypesModuleInput', + 'id', + 'scopeTypesModulePatch', + connectionFieldsMap, + undefined + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'ScopeTypesModule', + fieldName: 'updateScopeTypesModule', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteScopeTypesModule: { + scopeTypesModule: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'ScopeTypesModule', + 'deleteScopeTypesModule', + 'scopeTypesModule', + { + id: args.where.id, + }, + 'DeleteScopeTypesModuleInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'ScopeTypesModule', + fieldName: 'deleteScopeTypesModule', + document, + variables, + }); + } +} diff --git a/sdk/constructive-react/src/modules/orm/models/userSettingsSecurityModule.ts b/sdk/constructive-react/src/modules/orm/models/userSettingsSecurityModule.ts new file mode 100644 index 0000000000..13b7c87010 --- /dev/null +++ b/sdk/constructive-react/src/modules/orm/models/userSettingsSecurityModule.ts @@ -0,0 +1,253 @@ +/** + * UserSettingsSecurityModule 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 { + UserSettingsSecurityModule, + UserSettingsSecurityModuleWithRelations, + UserSettingsSecurityModuleSelect, + UserSettingsSecurityModuleFilter, + UserSettingsSecurityModuleOrderBy, + CreateUserSettingsSecurityModuleInput, + UpdateUserSettingsSecurityModuleInput, + UserSettingsSecurityModulePatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class UserSettingsSecurityModuleModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + userSettingsSecurityModules: ConnectionResult< + InferSelectResult + >; + }> { + const { document, variables } = buildFindManyDocument( + 'UserSettingsSecurityModule', + 'userSettingsSecurityModules', + 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, + }, + 'UserSettingsSecurityModuleFilter', + 'UserSettingsSecurityModuleOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'UserSettingsSecurityModule', + fieldName: 'userSettingsSecurityModules', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + userSettingsSecurityModule: InferSelectResult< + UserSettingsSecurityModuleWithRelations, + S + > | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'UserSettingsSecurityModule', + 'userSettingsSecurityModules', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'UserSettingsSecurityModuleFilter', + 'UserSettingsSecurityModuleOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'UserSettingsSecurityModule', + fieldName: 'userSettingsSecurityModule', + document, + variables, + transform: (data: { + userSettingsSecurityModules?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + userSettingsSecurityModule: data.userSettingsSecurityModules?.nodes?.[0] ?? null, + }), + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + userSettingsSecurityModule: InferSelectResult< + UserSettingsSecurityModuleWithRelations, + S + > | null; + }> { + const { document, variables } = buildFindManyDocument( + 'UserSettingsSecurityModule', + 'userSettingsSecurityModules', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'UserSettingsSecurityModuleFilter', + 'UserSettingsSecurityModuleOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'UserSettingsSecurityModule', + fieldName: 'userSettingsSecurityModule', + document, + variables, + transform: (data: { + userSettingsSecurityModules?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + userSettingsSecurityModule: data.userSettingsSecurityModules?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createUserSettingsSecurityModule: { + userSettingsSecurityModule: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'UserSettingsSecurityModule', + 'createUserSettingsSecurityModule', + 'userSettingsSecurityModule', + args.select, + args.data, + 'CreateUserSettingsSecurityModuleInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'UserSettingsSecurityModule', + fieldName: 'createUserSettingsSecurityModule', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + UserSettingsSecurityModulePatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateUserSettingsSecurityModule: { + userSettingsSecurityModule: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'UserSettingsSecurityModule', + 'updateUserSettingsSecurityModule', + 'userSettingsSecurityModule', + args.select, + args.where.id, + args.data, + 'UpdateUserSettingsSecurityModuleInput', + 'id', + 'userSettingsSecurityModulePatch', + connectionFieldsMap, + undefined + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'UserSettingsSecurityModule', + fieldName: 'updateUserSettingsSecurityModule', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteUserSettingsSecurityModule: { + userSettingsSecurityModule: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'UserSettingsSecurityModule', + 'deleteUserSettingsSecurityModule', + 'userSettingsSecurityModule', + { + id: args.where.id, + }, + 'DeleteUserSettingsSecurityModuleInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'UserSettingsSecurityModule', + fieldName: 'deleteUserSettingsSecurityModule', + document, + variables, + }); + } +} diff --git a/sdk/constructive-react/src/modules/orm/mutation/index.ts b/sdk/constructive-react/src/modules/orm/mutation/index.ts index 60041efadb..5450eca294 100644 --- a/sdk/constructive-react/src/modules/orm/mutation/index.ts +++ b/sdk/constructive-react/src/modules/orm/mutation/index.ts @@ -10,33 +10,12 @@ import type { ConstructBlueprintInput, CopyTemplateToBlueprintInput, ProvisionBucketInput, - ProvisionCheckConstraintInput, - ProvisionFullTextSearchInput, - ProvisionIndexInput, - ProvisionRelationInput, - ProvisionSpatialRelationInput, - ProvisionTableInput, - ProvisionUniqueConstraintInput, ConstructBlueprintPayload, CopyTemplateToBlueprintPayload, ProvisionBucketPayload, - ProvisionCheckConstraintPayload, - ProvisionFullTextSearchPayload, - ProvisionIndexPayload, - ProvisionRelationPayload, - ProvisionSpatialRelationPayload, - ProvisionTablePayload, - ProvisionUniqueConstraintPayload, ConstructBlueprintPayloadSelect, CopyTemplateToBlueprintPayloadSelect, ProvisionBucketPayloadSelect, - ProvisionCheckConstraintPayloadSelect, - ProvisionFullTextSearchPayloadSelect, - ProvisionIndexPayloadSelect, - ProvisionRelationPayloadSelect, - ProvisionSpatialRelationPayloadSelect, - ProvisionTablePayloadSelect, - ProvisionUniqueConstraintPayloadSelect, } from '../input-types'; import { connectionFieldsMap } from '../input-types'; /** @@ -63,55 +42,6 @@ and lifecycle settings. export interface ProvisionBucketVariables { input: ProvisionBucketInput; } -/** - * Variables for provisionCheckConstraint - * 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. - */ -export interface ProvisionCheckConstraintVariables { - input: ProvisionCheckConstraintInput; -} -/** - * Variables for provisionFullTextSearch - * 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. - */ -export interface ProvisionFullTextSearchVariables { - input: ProvisionFullTextSearchInput; -} -/** - * Variables for provisionIndex - * 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. - */ -export interface ProvisionIndexVariables { - input: ProvisionIndexInput; -} -/** - * Variables for provisionRelation - * 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). - */ -export interface ProvisionRelationVariables { - input: ProvisionRelationInput; -} -/** - * Variables for provisionSpatialRelation - * 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. - */ -export interface ProvisionSpatialRelationVariables { - input: ProvisionSpatialRelationInput; -} -/** - * 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). - */ -export interface ProvisionTableVariables { - input: ProvisionTableInput; -} -/** - * Variables for provisionUniqueConstraint - * 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. - */ -export interface ProvisionUniqueConstraintVariables { - input: ProvisionUniqueConstraintInput; -} export function createMutationOperations(client: OrmClient) { return { constructBlueprint: ( @@ -201,208 +131,5 @@ export function createMutationOperations(client: OrmClient) { 'ProvisionBucketPayload' ), }), - provisionCheckConstraint: ( - args: ProvisionCheckConstraintVariables, - options: { - select: S; - } & StrictSelect - ) => - new QueryBuilder<{ - provisionCheckConstraint: InferSelectResult | null; - }>({ - client, - operation: 'mutation', - operationName: 'ProvisionCheckConstraint', - fieldName: 'provisionCheckConstraint', - ...buildCustomDocument( - 'mutation', - 'ProvisionCheckConstraint', - 'provisionCheckConstraint', - options.select, - args, - [ - { - name: 'input', - type: 'ProvisionCheckConstraintInput!', - }, - ], - connectionFieldsMap, - 'ProvisionCheckConstraintPayload' - ), - }), - provisionFullTextSearch: ( - args: ProvisionFullTextSearchVariables, - options: { - select: S; - } & StrictSelect - ) => - new QueryBuilder<{ - provisionFullTextSearch: InferSelectResult | null; - }>({ - client, - operation: 'mutation', - operationName: 'ProvisionFullTextSearch', - fieldName: 'provisionFullTextSearch', - ...buildCustomDocument( - 'mutation', - 'ProvisionFullTextSearch', - 'provisionFullTextSearch', - options.select, - args, - [ - { - name: 'input', - type: 'ProvisionFullTextSearchInput!', - }, - ], - connectionFieldsMap, - 'ProvisionFullTextSearchPayload' - ), - }), - provisionIndex: ( - args: ProvisionIndexVariables, - options: { - select: S; - } & StrictSelect - ) => - new QueryBuilder<{ - provisionIndex: InferSelectResult | null; - }>({ - client, - operation: 'mutation', - operationName: 'ProvisionIndex', - fieldName: 'provisionIndex', - ...buildCustomDocument( - 'mutation', - 'ProvisionIndex', - 'provisionIndex', - options.select, - args, - [ - { - name: 'input', - type: 'ProvisionIndexInput!', - }, - ], - connectionFieldsMap, - 'ProvisionIndexPayload' - ), - }), - provisionRelation: ( - args: ProvisionRelationVariables, - options: { - select: S; - } & StrictSelect - ) => - new QueryBuilder<{ - provisionRelation: InferSelectResult | null; - }>({ - client, - operation: 'mutation', - operationName: 'ProvisionRelation', - fieldName: 'provisionRelation', - ...buildCustomDocument( - 'mutation', - 'ProvisionRelation', - 'provisionRelation', - options.select, - args, - [ - { - name: 'input', - type: 'ProvisionRelationInput!', - }, - ], - connectionFieldsMap, - 'ProvisionRelationPayload' - ), - }), - provisionSpatialRelation: ( - args: ProvisionSpatialRelationVariables, - options: { - select: S; - } & StrictSelect - ) => - new QueryBuilder<{ - provisionSpatialRelation: InferSelectResult | null; - }>({ - client, - operation: 'mutation', - operationName: 'ProvisionSpatialRelation', - fieldName: 'provisionSpatialRelation', - ...buildCustomDocument( - 'mutation', - 'ProvisionSpatialRelation', - 'provisionSpatialRelation', - options.select, - args, - [ - { - name: 'input', - type: 'ProvisionSpatialRelationInput!', - }, - ], - connectionFieldsMap, - 'ProvisionSpatialRelationPayload' - ), - }), - provisionTable: ( - args: ProvisionTableVariables, - options: { - select: S; - } & StrictSelect - ) => - new QueryBuilder<{ - provisionTable: InferSelectResult | null; - }>({ - client, - operation: 'mutation', - operationName: 'ProvisionTable', - fieldName: 'provisionTable', - ...buildCustomDocument( - 'mutation', - 'ProvisionTable', - 'provisionTable', - options.select, - args, - [ - { - name: 'input', - type: 'ProvisionTableInput!', - }, - ], - connectionFieldsMap, - 'ProvisionTablePayload' - ), - }), - provisionUniqueConstraint: ( - args: ProvisionUniqueConstraintVariables, - options: { - select: S; - } & StrictSelect - ) => - new QueryBuilder<{ - provisionUniqueConstraint: InferSelectResult | null; - }>({ - client, - operation: 'mutation', - operationName: 'ProvisionUniqueConstraint', - fieldName: 'provisionUniqueConstraint', - ...buildCustomDocument( - 'mutation', - 'ProvisionUniqueConstraint', - 'provisionUniqueConstraint', - options.select, - args, - [ - { - name: 'input', - type: 'ProvisionUniqueConstraintInput!', - }, - ], - connectionFieldsMap, - 'ProvisionUniqueConstraintPayload' - ), - }), }; } diff --git a/sdk/constructive-react/src/modules/orm/query/index.ts b/sdk/constructive-react/src/modules/orm/query/index.ts deleted file mode 100644 index 70496d57ba..0000000000 --- a/sdk/constructive-react/src/modules/orm/query/index.ts +++ /dev/null @@ -1,115 +0,0 @@ -/** - * Custom query operations - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ -import { OrmClient } from '../client'; -import { QueryBuilder, buildCustomDocument } from '../query-builder'; -import type { InferSelectResult, StrictSelect } from '../select-types'; -import { connectionFieldsMap } from '../input-types'; -/** - * Variables for resolveBlueprintField - * 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. - */ -export interface ResolveBlueprintFieldVariables { - databaseId?: string; - fieldName?: string; - tableId?: string; -} -/** - * Variables for resolveBlueprintTable - * 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. - */ -export interface ResolveBlueprintTableVariables { - databaseId?: string; - defaultSchemaId?: string; - schemaName?: string; - tableMap?: unknown; - tableName?: string; -} -export function createQueryOperations(client: OrmClient) { - return { - resolveBlueprintField: ( - args: ResolveBlueprintFieldVariables, - options?: { - select?: Record; - } - ) => - new QueryBuilder<{ - resolveBlueprintField: string | null; - }>({ - client, - operation: 'query', - operationName: 'ResolveBlueprintField', - fieldName: 'resolveBlueprintField', - ...buildCustomDocument( - 'query', - 'ResolveBlueprintField', - 'resolveBlueprintField', - options?.select, - args, - [ - { - name: 'databaseId', - type: 'UUID', - }, - { - name: 'fieldName', - type: 'String', - }, - { - name: 'tableId', - type: 'UUID', - }, - ], - connectionFieldsMap, - undefined - ), - }), - resolveBlueprintTable: ( - args: ResolveBlueprintTableVariables, - options?: { - select?: Record; - } - ) => - new QueryBuilder<{ - resolveBlueprintTable: string | null; - }>({ - client, - operation: 'query', - operationName: 'ResolveBlueprintTable', - fieldName: 'resolveBlueprintTable', - ...buildCustomDocument( - 'query', - 'ResolveBlueprintTable', - 'resolveBlueprintTable', - options?.select, - args, - [ - { - name: 'databaseId', - type: 'UUID', - }, - { - name: 'defaultSchemaId', - type: 'UUID', - }, - { - name: 'schemaName', - type: 'String', - }, - { - name: 'tableMap', - type: 'JSON', - }, - { - name: 'tableName', - type: 'String', - }, - ], - connectionFieldsMap, - undefined - ), - }), - }; -} diff --git a/sdk/constructive-react/src/modules/schema-types.ts b/sdk/constructive-react/src/modules/schema-types.ts index 4332cbba3f..25ead43ac0 100644 --- a/sdk/constructive-react/src/modules/schema-types.ts +++ b/sdk/constructive-react/src/modules/schema-types.ts @@ -13,12 +13,15 @@ import type { Blueprint, BlueprintConstruction, BlueprintTemplate, + CapabilitiesModule, CatalogModule, ComputeLogModule, ConfigSecretsUserModule, ConnectedAccountsModule, + ContentPresetModule, CryptoAddressesModule, CryptoAuthModule, + DataCapabilitiesField, DatabaseProvisionModule, DatabaseSettingsModule, DbPool, @@ -29,9 +32,11 @@ import type { DenormalizedTableField, DevicesModule, DomainModule, + EmailSenderModule, EmailsModule, EntityTypeProvision, EventsModule, + FileRefField, FunctionDeploymentModule, FunctionInvocationModule, FunctionModule, @@ -53,8 +58,8 @@ import type { MerkleStoreModule, NamespaceModule, NotificationsModule, + OauthRequestsModule, PagesModule, - PermissionsModule, PhoneNumbersModule, PlansModule, PrincipalAuthModule, @@ -66,6 +71,7 @@ import type { ResourceModule, RlsModule, RouteModule, + ScopeTypesModule, SecureTableProvision, SessionSecretsModule, SessionsModule, @@ -76,6 +82,7 @@ import type { UserAuthModule, UserCredentialsModule, UserSettingsModule, + UserSettingsSecurityModule, UserStateModule, UsersModule, WebauthnAuthModule, @@ -109,8 +116,8 @@ export type AgentModuleOrderBy = | 'API_NAME_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' - | 'DEFAULT_PERMISSIONS_ASC' - | 'DEFAULT_PERMISSIONS_DESC' + | 'DEFAULT_CAPABILITIES_ASC' + | 'DEFAULT_CAPABILITIES_DESC' | 'ENTITY_FIELD_ASC' | 'ENTITY_FIELD_DESC' | 'ENTITY_TABLE_ID_ASC' @@ -200,8 +207,8 @@ export type ApiSurfaceModuleOrderBy = | 'CORS_SETTINGS_TABLE_NAME_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' - | 'DEFAULT_PERMISSIONS_ASC' - | 'DEFAULT_PERMISSIONS_DESC' + | 'DEFAULT_CAPABILITIES_ASC' + | 'DEFAULT_CAPABILITIES_DESC' | 'ENTITY_FIELD_ASC' | 'ENTITY_FIELD_DESC' | 'ENTITY_TABLE_ID_ASC' @@ -241,8 +248,8 @@ export type AppModuleOrderBy = | 'CATALOG_MODULE_ID_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' - | 'DEFAULT_PERMISSIONS_ASC' - | 'DEFAULT_PERMISSIONS_DESC' + | 'DEFAULT_CAPABILITIES_ASC' + | 'DEFAULT_CAPABILITIES_DESC' | 'ENTITY_FIELD_ASC' | 'ENTITY_FIELD_DESC' | 'ENTITY_TABLE_ID_ASC' @@ -280,10 +287,10 @@ export type BillingModuleOrderBy = | 'BALANCES_TABLE_NAME_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' + | 'DEFAULT_CAPABILITIES_ASC' + | 'DEFAULT_CAPABILITIES_DESC' | 'DEFAULT_METER_CATALOG_ASC' | 'DEFAULT_METER_CATALOG_DESC' - | 'DEFAULT_PERMISSIONS_ASC' - | 'DEFAULT_PERMISSIONS_DESC' | 'ID_ASC' | 'ID_DESC' | 'LEDGER_TABLE_ID_ASC' @@ -339,6 +346,10 @@ export type BillingProviderModuleOrderBy = | 'BILLING_CUSTOMERS_TABLE_ID_DESC' | 'BILLING_CUSTOMERS_TABLE_NAME_ASC' | 'BILLING_CUSTOMERS_TABLE_NAME_DESC' + | 'BILLING_INVOICES_TABLE_ID_ASC' + | 'BILLING_INVOICES_TABLE_ID_DESC' + | 'BILLING_INVOICES_TABLE_NAME_ASC' + | 'BILLING_INVOICES_TABLE_NAME_DESC' | 'BILLING_PRICES_TABLE_ID_ASC' | 'BILLING_PRICES_TABLE_ID_DESC' | 'BILLING_PRICES_TABLE_NAME_ASC' @@ -347,6 +358,10 @@ export type BillingProviderModuleOrderBy = | 'BILLING_PRODUCTS_TABLE_ID_DESC' | 'BILLING_PRODUCTS_TABLE_NAME_ASC' | 'BILLING_PRODUCTS_TABLE_NAME_DESC' + | 'BILLING_REFUNDS_TABLE_ID_ASC' + | 'BILLING_REFUNDS_TABLE_ID_DESC' + | 'BILLING_REFUNDS_TABLE_NAME_ASC' + | 'BILLING_REFUNDS_TABLE_NAME_DESC' | 'BILLING_SUBSCRIPTIONS_TABLE_ID_ASC' | 'BILLING_SUBSCRIPTIONS_TABLE_ID_DESC' | 'BILLING_SUBSCRIPTIONS_TABLE_NAME_ASC' @@ -359,6 +374,10 @@ export type BillingProviderModuleOrderBy = | 'DATABASE_ID_DESC' | 'ID_ASC' | 'ID_DESC' + | 'LIST_PENDING_USAGE_SYNC_FUNCTION_ASC' + | 'LIST_PENDING_USAGE_SYNC_FUNCTION_DESC' + | 'MARK_USAGE_SYNCED_FUNCTION_ASC' + | 'MARK_USAGE_SYNCED_FUNCTION_DESC' | 'NATURAL' | 'PREFIX_ASC' | 'PREFIX_DESC' @@ -376,10 +395,14 @@ export type BillingProviderModuleOrderBy = | 'PRODUCTS_TABLE_ID_DESC' | 'PROVIDER_ASC' | 'PROVIDER_DESC' + | 'RECORD_REFUND_FUNCTION_ASC' + | 'RECORD_REFUND_FUNCTION_DESC' | 'SCHEMA_ID_ASC' | 'SCHEMA_ID_DESC' | 'SUBSCRIPTIONS_TABLE_ID_ASC' - | 'SUBSCRIPTIONS_TABLE_ID_DESC'; + | 'SUBSCRIPTIONS_TABLE_ID_DESC' + | 'UPSERT_INVOICE_FUNCTION_ASC' + | 'UPSERT_INVOICE_FUNCTION_DESC'; /** Methods to use when ordering `BlueprintConstruction`. */ export type BlueprintConstructionOrderBy = | 'BLUEPRINT_ID_ASC' @@ -481,6 +504,55 @@ export type BlueprintTemplateOrderBy = | 'VERSION_DESC' | 'VISIBILITY_ASC' | 'VISIBILITY_DESC'; +/** Methods to use when ordering `CapabilitiesModule`. */ +export type CapabilitiesModuleOrderBy = + | 'ACTOR_TABLE_ID_ASC' + | 'ACTOR_TABLE_ID_DESC' + | 'API_NAME_ASC' + | 'API_NAME_DESC' + | 'BITLEN_ASC' + | 'BITLEN_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'DEFAULT_TABLE_ID_ASC' + | 'DEFAULT_TABLE_ID_DESC' + | 'DEFAULT_TABLE_NAME_ASC' + | 'DEFAULT_TABLE_NAME_DESC' + | 'ENTITY_FIELD_ASC' + | 'ENTITY_FIELD_DESC' + | 'ENTITY_TABLE_ID_ASC' + | 'ENTITY_TABLE_ID_DESC' + | 'GET_BY_MASK_ASC' + | 'GET_BY_MASK_DESC' + | 'GET_MASK_ASC' + | 'GET_MASK_BY_NAME_ASC' + | 'GET_MASK_BY_NAME_DESC' + | 'GET_MASK_DESC' + | 'GET_PADDED_MASK_ASC' + | 'GET_PADDED_MASK_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'NATURAL' + | 'PREFIX_ASC' + | 'PREFIX_DESC' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'PRIVATE_API_NAME_ASC' + | 'PRIVATE_API_NAME_DESC' + | 'PRIVATE_SCHEMA_ID_ASC' + | 'PRIVATE_SCHEMA_ID_DESC' + | 'PRIVATE_SCHEMA_NAME_ASC' + | 'PRIVATE_SCHEMA_NAME_DESC' + | 'PUBLIC_SCHEMA_NAME_ASC' + | 'PUBLIC_SCHEMA_NAME_DESC' + | 'SCHEMA_ID_ASC' + | 'SCHEMA_ID_DESC' + | 'SCOPE_ASC' + | 'SCOPE_DESC' + | 'TABLE_ID_ASC' + | 'TABLE_ID_DESC' + | 'TABLE_NAME_ASC' + | 'TABLE_NAME_DESC'; /** Methods to use when ordering `CatalogModule`. */ export type CatalogModuleOrderBy = | 'APIS_TABLE_ID_ASC' @@ -493,14 +565,18 @@ export type CatalogModuleOrderBy = | 'APPS_TABLE_ID_DESC' | 'APPS_TABLE_NAME_ASC' | 'APPS_TABLE_NAME_DESC' + | 'BINDINGS_TABLE_ID_ASC' + | 'BINDINGS_TABLE_ID_DESC' + | 'BINDINGS_TABLE_NAME_ASC' + | 'BINDINGS_TABLE_NAME_DESC' | 'BUCKETS_TABLE_ID_ASC' | 'BUCKETS_TABLE_ID_DESC' | 'BUCKETS_TABLE_NAME_ASC' | 'BUCKETS_TABLE_NAME_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' - | 'DEFAULT_PERMISSIONS_ASC' - | 'DEFAULT_PERMISSIONS_DESC' + | 'DEFAULT_CAPABILITIES_ASC' + | 'DEFAULT_CAPABILITIES_DESC' | 'DOMAINS_TABLE_ID_ASC' | 'DOMAINS_TABLE_ID_DESC' | 'DOMAINS_TABLE_NAME_ASC' @@ -653,6 +729,45 @@ export type ConnectedAccountsModuleOrderBy = | 'TABLE_ID_DESC' | 'TABLE_NAME_ASC' | 'TABLE_NAME_DESC'; +/** Methods to use when ordering `ContentPresetModule`. */ +export type ContentPresetModuleOrderBy = + | 'API_NAME_ASC' + | 'API_NAME_DESC' + | 'CONTENT_PRESETS_TABLE_ID_ASC' + | 'CONTENT_PRESETS_TABLE_ID_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'ENTITY_TABLE_ID_ASC' + | 'ENTITY_TABLE_ID_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'MERKLE_STORE_MODULE_ID_ASC' + | 'MERKLE_STORE_MODULE_ID_DESC' + | 'NATURAL' + | 'POLICIES_ASC' + | 'POLICIES_DESC' + | 'PREFIX_ASC' + | 'PREFIX_DESC' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'PRIVATE_API_NAME_ASC' + | 'PRIVATE_API_NAME_DESC' + | 'PRIVATE_SCHEMA_ID_ASC' + | 'PRIVATE_SCHEMA_ID_DESC' + | 'PRIVATE_SCHEMA_NAME_ASC' + | 'PRIVATE_SCHEMA_NAME_DESC' + | 'PROVISIONS_ASC' + | 'PROVISIONS_DESC' + | 'PUBLIC_SCHEMA_ID_ASC' + | 'PUBLIC_SCHEMA_ID_DESC' + | 'PUBLIC_SCHEMA_NAME_ASC' + | 'PUBLIC_SCHEMA_NAME_DESC' + | 'SCOPE_ASC' + | 'SCOPE_DESC' + | 'STORE_NAME_ASC' + | 'STORE_NAME_DESC'; /** Methods to use when ordering `CryptoAddressesModule`. */ export type CryptoAddressesModuleOrderBy = | 'API_NAME_ASC' @@ -711,6 +826,33 @@ export type CryptoAuthModuleOrderBy = | 'USERS_TABLE_ID_DESC' | 'USER_FIELD_ASC' | 'USER_FIELD_DESC'; +/** Methods to use when ordering `DataCapabilitiesField`. */ +export type DataCapabilitiesFieldOrderBy = + | 'CAPABILITIES_MODULE_ID_ASC' + | 'CAPABILITIES_MODULE_ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'FIELD_ID_ASC' + | 'FIELD_ID_DESC' + | 'FROM_FIELD_ID_ASC' + | 'FROM_FIELD_ID_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'MAPPING_FIELD_ID_ASC' + | 'MAPPING_FIELD_ID_DESC' + | 'MAPPING_KEY_FIELD_ID_ASC' + | 'MAPPING_KEY_FIELD_ID_DESC' + | 'MAPPING_TABLE_ID_ASC' + | 'MAPPING_TABLE_ID_DESC' + | 'MODE_ASC' + | 'MODE_DESC' + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'SUBSET_GUARD_ASC' + | 'SUBSET_GUARD_DESC' + | 'TABLE_ID_ASC' + | 'TABLE_ID_DESC'; /** Methods to use when ordering `DatabaseProvisionModule`. */ export type DatabaseProvisionModuleOrderBy = | 'ASYNC_ASC' @@ -764,8 +906,8 @@ export type DatabaseSettingsModuleOrderBy = | 'DATABASE_SETTINGS_TABLE_ID_DESC' | 'DATABASE_SETTINGS_TABLE_NAME_ASC' | 'DATABASE_SETTINGS_TABLE_NAME_DESC' - | 'DEFAULT_PERMISSIONS_ASC' - | 'DEFAULT_PERMISSIONS_DESC' + | 'DEFAULT_CAPABILITIES_ASC' + | 'DEFAULT_CAPABILITIES_DESC' | 'ENTITY_FIELD_ASC' | 'ENTITY_FIELD_DESC' | 'ENTITY_TABLE_ID_ASC' @@ -906,8 +1048,8 @@ export type DbUsageModuleOrderBy = | 'COLLECT_DB_TABLE_STATS_FUNCTION_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' - | 'DEFAULT_PERMISSIONS_ASC' - | 'DEFAULT_PERMISSIONS_DESC' + | 'DEFAULT_CAPABILITIES_ASC' + | 'DEFAULT_CAPABILITIES_DESC' | 'ENTITY_FIELD_ASC' | 'ENTITY_FIELD_DESC' | 'ID_ASC' @@ -1020,8 +1162,8 @@ export type DomainModuleOrderBy = | 'CATALOG_MODULE_ID_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' - | 'DEFAULT_PERMISSIONS_ASC' - | 'DEFAULT_PERMISSIONS_DESC' + | 'DEFAULT_CAPABILITIES_ASC' + | 'DEFAULT_CAPABILITIES_DESC' | 'DOMAINS_TABLE_ID_ASC' | 'DOMAINS_TABLE_ID_DESC' | 'DOMAINS_TABLE_NAME_ASC' @@ -1065,6 +1207,51 @@ export type DomainModuleOrderBy = | 'SCHEMA_ID_DESC' | 'SCOPE_ASC' | 'SCOPE_DESC'; +/** Methods to use when ordering `EmailSenderModule`. */ +export type EmailSenderModuleOrderBy = + | 'API_NAME_ASC' + | 'API_NAME_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'DEFAULT_CAPABILITIES_ASC' + | 'DEFAULT_CAPABILITIES_DESC' + | 'EMAIL_IDENTITIES_TABLE_ID_ASC' + | 'EMAIL_IDENTITIES_TABLE_ID_DESC' + | 'EMAIL_IDENTITIES_TABLE_NAME_ASC' + | 'EMAIL_IDENTITIES_TABLE_NAME_DESC' + | 'EMAIL_PROVIDER_ACCOUNTS_TABLE_ID_ASC' + | 'EMAIL_PROVIDER_ACCOUNTS_TABLE_ID_DESC' + | 'EMAIL_PROVIDER_ACCOUNTS_TABLE_NAME_ASC' + | 'EMAIL_PROVIDER_ACCOUNTS_TABLE_NAME_DESC' + | 'EMAIL_SITE_IDENTITIES_TABLE_ID_ASC' + | 'EMAIL_SITE_IDENTITIES_TABLE_ID_DESC' + | 'EMAIL_SITE_IDENTITIES_TABLE_NAME_ASC' + | 'EMAIL_SITE_IDENTITIES_TABLE_NAME_DESC' + | 'ENTITY_FIELD_ASC' + | 'ENTITY_FIELD_DESC' + | 'ENTITY_TABLE_ID_ASC' + | 'ENTITY_TABLE_ID_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'NATURAL' + | 'POLICIES_ASC' + | 'POLICIES_DESC' + | 'PREFIX_ASC' + | 'PREFIX_DESC' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'PRIVATE_API_NAME_ASC' + | 'PRIVATE_API_NAME_DESC' + | 'PROVISIONS_ASC' + | 'PROVISIONS_DESC' + | 'PUBLIC_SCHEMA_NAME_ASC' + | 'PUBLIC_SCHEMA_NAME_DESC' + | 'SCHEMA_ID_ASC' + | 'SCHEMA_ID_DESC' + | 'SCOPE_ASC' + | 'SCOPE_DESC' + | 'SITE_SURFACE_MODULE_ID_ASC' + | 'SITE_SURFACE_MODULE_ID_DESC'; /** Methods to use when ordering `EmailsModule`. */ export type EmailsModuleOrderBy = | 'API_NAME_ASC' @@ -1183,8 +1370,8 @@ export type EventsModuleOrderBy = | 'API_NAME_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' - | 'DEFAULT_PERMISSIONS_ASC' - | 'DEFAULT_PERMISSIONS_DESC' + | 'DEFAULT_CAPABILITIES_ASC' + | 'DEFAULT_CAPABILITIES_DESC' | 'ENTITY_FIELD_ASC' | 'ENTITY_FIELD_DESC' | 'ENTITY_TABLE_ID_ASC' @@ -1201,6 +1388,8 @@ export type EventsModuleOrderBy = | 'EVENT_TYPES_TABLE_ID_DESC' | 'EVENT_TYPES_TABLE_NAME_ASC' | 'EVENT_TYPES_TABLE_NAME_DESC' + | 'EXPIRE_GRANTS_ASC' + | 'EXPIRE_GRANTS_DESC' | 'GRANT_ACHIEVEMENT_ASC' | 'GRANT_ACHIEVEMENT_DESC' | 'ID_ASC' @@ -1236,12 +1425,16 @@ export type EventsModuleOrderBy = | 'PRIVATE_SCHEMA_NAME_DESC' | 'PUBLIC_SCHEMA_NAME_ASC' | 'PUBLIC_SCHEMA_NAME_DESC' + | 'RECOMPUTE_CAPABILITIES_ASC' + | 'RECOMPUTE_CAPABILITIES_DESC' | 'RECORD_EVENT_ASC' | 'RECORD_EVENT_DESC' | 'REMOVE_EVENT_ASC' | 'REMOVE_EVENT_DESC' | 'RETENTION_ASC' | 'RETENTION_DESC' + | 'REVOKE_ACHIEVEMENT_ASC' + | 'REVOKE_ACHIEVEMENT_DESC' | 'SCHEMA_ID_ASC' | 'SCHEMA_ID_DESC' | 'SCOPE_ASC' @@ -1260,18 +1453,45 @@ export type EventsModuleOrderBy = | 'TG_EVENT_TOGGLE_BOOL_ASC' | 'TG_EVENT_TOGGLE_BOOL_DESC' | 'TG_EVENT_TOGGLE_DESC' + | 'TG_LEVEL_GRANT_SYNC_ASC' + | 'TG_LEVEL_GRANT_SYNC_DESC' | 'TG_UPDATE_AGGREGATES_ASC' | 'TG_UPDATE_AGGREGATES_DESC' + | 'TRUST_LADDER_ASC' + | 'TRUST_LADDER_DESC' | 'UPSERT_AGGREGATE_ASC' | 'UPSERT_AGGREGATE_DESC'; +/** Methods to use when ordering `FileRefField`. */ +export type FileRefFieldOrderBy = + | 'BUCKET_KEY_ASC' + | 'BUCKET_KEY_DESC' + | 'BUCKET_TAGS_ASC' + | 'BUCKET_TAGS_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'ENFORCE_FK_ASC' + | 'ENFORCE_FK_DESC' + | 'FIELD_ID_ASC' + | 'FIELD_ID_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'IS_PUBLIC_ASC' + | 'IS_PUBLIC_DESC' + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'STORAGE_MODULE_ID_ASC' + | 'STORAGE_MODULE_ID_DESC' + | 'TABLE_ID_ASC' + | 'TABLE_ID_DESC'; /** Methods to use when ordering `FunctionDeploymentModule`. */ export type FunctionDeploymentModuleOrderBy = | 'API_NAME_ASC' | 'API_NAME_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' - | 'DEFAULT_PERMISSIONS_ASC' - | 'DEFAULT_PERMISSIONS_DESC' + | 'DEFAULT_CAPABILITIES_ASC' + | 'DEFAULT_CAPABILITIES_DESC' | 'DEPLOYMENTS_TABLE_ID_ASC' | 'DEPLOYMENTS_TABLE_ID_DESC' | 'DEPLOYMENTS_TABLE_NAME_ASC' @@ -1321,8 +1541,8 @@ export type FunctionInvocationModuleOrderBy = | 'ATTEMPTS_TABLE_NAME_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' - | 'DEFAULT_PERMISSIONS_ASC' - | 'DEFAULT_PERMISSIONS_DESC' + | 'DEFAULT_CAPABILITIES_ASC' + | 'DEFAULT_CAPABILITIES_DESC' | 'ENTITY_FIELD_ASC' | 'ENTITY_FIELD_DESC' | 'ENTITY_TABLE_ID_ASC' @@ -1370,8 +1590,8 @@ export type FunctionModuleOrderBy = | 'CAPABILITY_BINDINGS_TABLE_ID_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' - | 'DEFAULT_PERMISSIONS_ASC' - | 'DEFAULT_PERMISSIONS_DESC' + | 'DEFAULT_CAPABILITIES_ASC' + | 'DEFAULT_CAPABILITIES_DESC' | 'DEFINITIONS_TABLE_ID_ASC' | 'DEFINITIONS_TABLE_ID_DESC' | 'DEFINITIONS_TABLE_NAME_ASC' @@ -1415,8 +1635,8 @@ export type GraphExecutionModuleOrderBy = | 'CREATED_AT_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' - | 'DEFAULT_PERMISSIONS_ASC' - | 'DEFAULT_PERMISSIONS_DESC' + | 'DEFAULT_CAPABILITIES_ASC' + | 'DEFAULT_CAPABILITIES_DESC' | 'ENTITY_FIELD_ASC' | 'ENTITY_FIELD_DESC' | 'ENTITY_TABLE_ID_ASC' @@ -1466,8 +1686,8 @@ export type GraphModuleOrderBy = | 'CREATED_AT_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' - | 'DEFAULT_PERMISSIONS_ASC' - | 'DEFAULT_PERMISSIONS_DESC' + | 'DEFAULT_CAPABILITIES_ASC' + | 'DEFAULT_CAPABILITIES_DESC' | 'ENTITY_FIELD_ASC' | 'ENTITY_FIELD_DESC' | 'ENTITY_TABLE_ID_ASC' @@ -1513,8 +1733,8 @@ export type HierarchyModuleOrderBy = | 'CREATED_AT_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' - | 'DEFAULT_PERMISSIONS_ASC' - | 'DEFAULT_PERMISSIONS_DESC' + | 'DEFAULT_CAPABILITIES_ASC' + | 'DEFAULT_CAPABILITIES_DESC' | 'ENTITY_FIELD_ASC' | 'ENTITY_FIELD_DESC' | 'ENTITY_TABLE_ID_ASC' @@ -1556,8 +1776,8 @@ export type HttpRouteModuleOrderBy = | 'API_NAME_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' - | 'DEFAULT_PERMISSIONS_ASC' - | 'DEFAULT_PERMISSIONS_DESC' + | 'DEFAULT_CAPABILITIES_ASC' + | 'DEFAULT_CAPABILITIES_DESC' | 'ENTITY_FIELD_ASC' | 'ENTITY_FIELD_DESC' | 'ENTITY_TABLE_ID_ASC' @@ -1927,6 +2147,8 @@ export type LimitsModuleOrderBy = | 'LIMIT_DECREMENT_FUNCTION_DESC' | 'LIMIT_DECREMENT_TRIGGER_ASC' | 'LIMIT_DECREMENT_TRIGGER_DESC' + | 'LIMIT_DEFAULTS_ASC' + | 'LIMIT_DEFAULTS_DESC' | 'LIMIT_INCREMENT_FUNCTION_ASC' | 'LIMIT_INCREMENT_FUNCTION_DESC' | 'LIMIT_INCREMENT_TRIGGER_ASC' @@ -1989,12 +2211,18 @@ export type MembershipsModuleOrderBy = | 'ADMIN_GRANTS_TABLE_NAME_DESC' | 'API_NAME_ASC' | 'API_NAME_DESC' + | 'CAPABILITIES_TABLE_ID_ASC' + | 'CAPABILITIES_TABLE_ID_DESC' + | 'CAPABILITY_DEFAULT_CAPABILITIES_TABLE_ID_ASC' + | 'CAPABILITY_DEFAULT_CAPABILITIES_TABLE_ID_DESC' + | 'CAPABILITY_DEFAULT_GRANTS_TABLE_ID_ASC' + | 'CAPABILITY_DEFAULT_GRANTS_TABLE_ID_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' + | 'DEFAULT_CAPABILITIES_TABLE_ID_ASC' + | 'DEFAULT_CAPABILITIES_TABLE_ID_DESC' | 'DEFAULT_LIMITS_TABLE_ID_ASC' | 'DEFAULT_LIMITS_TABLE_ID_DESC' - | 'DEFAULT_PERMISSIONS_TABLE_ID_ASC' - | 'DEFAULT_PERMISSIONS_TABLE_ID_DESC' | 'ENTITY_FIELD_ASC' | 'ENTITY_FIELD_DESC' | 'ENTITY_IDS_BY_MASK_ASC' @@ -2040,12 +2268,6 @@ export type MembershipsModuleOrderBy = | 'OWNER_GRANTS_TABLE_ID_DESC' | 'OWNER_GRANTS_TABLE_NAME_ASC' | 'OWNER_GRANTS_TABLE_NAME_DESC' - | 'PERMISSIONS_TABLE_ID_ASC' - | 'PERMISSIONS_TABLE_ID_DESC' - | 'PERMISSION_DEFAULT_GRANTS_TABLE_ID_ASC' - | 'PERMISSION_DEFAULT_GRANTS_TABLE_ID_DESC' - | 'PERMISSION_DEFAULT_PERMISSIONS_TABLE_ID_ASC' - | 'PERMISSION_DEFAULT_PERMISSIONS_TABLE_ID_DESC' | 'PREFIX_ASC' | 'PREFIX_DESC' | 'PRIMARY_KEY_ASC' @@ -2068,6 +2290,8 @@ export type MembershipsModuleOrderBy = export type MerkleStoreModuleOrderBy = | 'API_NAME_ASC' | 'API_NAME_DESC' + | 'CAPABILITY_KEY_ASC' + | 'CAPABILITY_KEY_DESC' | 'COMMIT_TABLE_ID_ASC' | 'COMMIT_TABLE_ID_DESC' | 'CREATED_AT_ASC' @@ -2083,8 +2307,6 @@ export type MerkleStoreModuleOrderBy = | 'NATURAL' | 'OBJECT_TABLE_ID_ASC' | 'OBJECT_TABLE_ID_DESC' - | 'PERMISSION_KEY_ASC' - | 'PERMISSION_KEY_DESC' | 'PREFIX_ASC' | 'PREFIX_DESC' | 'PRIMARY_KEY_ASC' @@ -2111,8 +2333,8 @@ export type NamespaceModuleOrderBy = | 'API_NAME_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' - | 'DEFAULT_PERMISSIONS_ASC' - | 'DEFAULT_PERMISSIONS_DESC' + | 'DEFAULT_CAPABILITIES_ASC' + | 'DEFAULT_CAPABILITIES_DESC' | 'ENTITY_FIELD_ASC' | 'ENTITY_FIELD_DESC' | 'ENTITY_TABLE_ID_ASC' @@ -2156,8 +2378,8 @@ export type NotificationsModuleOrderBy = | 'CHANNELS_TABLE_ID_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' - | 'DEFAULT_PERMISSIONS_ASC' - | 'DEFAULT_PERMISSIONS_DESC' + | 'DEFAULT_CAPABILITIES_ASC' + | 'DEFAULT_CAPABILITIES_DESC' | 'DELIVERY_LOG_TABLE_ID_ASC' | 'DELIVERY_LOG_TABLE_ID_DESC' | 'ENTITY_FIELD_ASC' @@ -2201,6 +2423,35 @@ export type NotificationsModuleOrderBy = | 'SUPPRESSIONS_TABLE_ID_DESC' | 'USER_SETTINGS_TABLE_ID_ASC' | 'USER_SETTINGS_TABLE_ID_DESC'; +/** Methods to use when ordering `OauthRequestsModule`. */ +export type OauthRequestsModuleOrderBy = + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'ENTITY_FIELD_ASC' + | 'ENTITY_FIELD_DESC' + | 'ENTITY_TABLE_ID_ASC' + | 'ENTITY_TABLE_ID_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'NATURAL' + | 'OAUTH_AUTHORIZATION_REQUESTS_TABLE_ID_ASC' + | 'OAUTH_AUTHORIZATION_REQUESTS_TABLE_ID_DESC' + | 'OAUTH_AUTHORIZATION_REQUESTS_TABLE_NAME_ASC' + | 'OAUTH_AUTHORIZATION_REQUESTS_TABLE_NAME_DESC' + | 'PENDING_IDENTITY_LINKS_TABLE_ID_ASC' + | 'PENDING_IDENTITY_LINKS_TABLE_ID_DESC' + | 'PENDING_IDENTITY_LINKS_TABLE_NAME_ASC' + | 'PENDING_IDENTITY_LINKS_TABLE_NAME_DESC' + | 'PREFIX_ASC' + | 'PREFIX_DESC' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'PRIVATE_SCHEMA_ID_ASC' + | 'PRIVATE_SCHEMA_ID_DESC' + | 'PRIVATE_SCHEMA_NAME_ASC' + | 'PRIVATE_SCHEMA_NAME_DESC' + | 'SCOPE_ASC' + | 'SCOPE_DESC'; /** Methods to use when ordering `PagesModule`. */ export type PagesModuleOrderBy = | 'API_NAME_ASC' @@ -2244,55 +2495,6 @@ export type PagesModuleOrderBy = | 'SITE_SURFACE_MODULE_ID_DESC' | 'STORE_NAME_PREFIX_ASC' | 'STORE_NAME_PREFIX_DESC'; -/** Methods to use when ordering `PermissionsModule`. */ -export type PermissionsModuleOrderBy = - | 'ACTOR_TABLE_ID_ASC' - | 'ACTOR_TABLE_ID_DESC' - | 'API_NAME_ASC' - | 'API_NAME_DESC' - | 'BITLEN_ASC' - | 'BITLEN_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' - | 'DEFAULT_TABLE_ID_ASC' - | 'DEFAULT_TABLE_ID_DESC' - | 'DEFAULT_TABLE_NAME_ASC' - | 'DEFAULT_TABLE_NAME_DESC' - | 'ENTITY_FIELD_ASC' - | 'ENTITY_FIELD_DESC' - | 'ENTITY_TABLE_ID_ASC' - | 'ENTITY_TABLE_ID_DESC' - | 'GET_BY_MASK_ASC' - | 'GET_BY_MASK_DESC' - | 'GET_MASK_ASC' - | 'GET_MASK_BY_NAME_ASC' - | 'GET_MASK_BY_NAME_DESC' - | 'GET_MASK_DESC' - | 'GET_PADDED_MASK_ASC' - | 'GET_PADDED_MASK_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'NATURAL' - | 'PREFIX_ASC' - | 'PREFIX_DESC' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'PRIVATE_API_NAME_ASC' - | 'PRIVATE_API_NAME_DESC' - | 'PRIVATE_SCHEMA_ID_ASC' - | 'PRIVATE_SCHEMA_ID_DESC' - | 'PRIVATE_SCHEMA_NAME_ASC' - | 'PRIVATE_SCHEMA_NAME_DESC' - | 'PUBLIC_SCHEMA_NAME_ASC' - | 'PUBLIC_SCHEMA_NAME_DESC' - | 'SCHEMA_ID_ASC' - | 'SCHEMA_ID_DESC' - | 'SCOPE_ASC' - | 'SCOPE_DESC' - | 'TABLE_ID_ASC' - | 'TABLE_ID_DESC' - | 'TABLE_NAME_ASC' - | 'TABLE_NAME_DESC'; /** Methods to use when ordering `PhoneNumbersModule`. */ export type PhoneNumbersModuleOrderBy = | 'API_NAME_ASC' @@ -2410,6 +2612,8 @@ export type ProfilesModuleOrderBy = | 'ACTOR_TABLE_ID_DESC' | 'API_NAME_ASC' | 'API_NAME_DESC' + | 'CAPABILITIES_TABLE_ID_ASC' + | 'CAPABILITIES_TABLE_ID_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' | 'ENTITY_FIELD_ASC' @@ -2420,9 +2624,11 @@ export type ProfilesModuleOrderBy = | 'ID_DESC' | 'MEMBERSHIPS_TABLE_ID_ASC' | 'MEMBERSHIPS_TABLE_ID_DESC' + | 'MEMBERSHIP_PROFILES_TABLE_ID_ASC' + | 'MEMBERSHIP_PROFILES_TABLE_ID_DESC' + | 'MEMBERSHIP_PROFILES_TABLE_NAME_ASC' + | 'MEMBERSHIP_PROFILES_TABLE_NAME_DESC' | 'NATURAL' - | 'PERMISSIONS_TABLE_ID_ASC' - | 'PERMISSIONS_TABLE_ID_DESC' | 'PREFIX_ASC' | 'PREFIX_DESC' | 'PRIMARY_KEY_ASC' @@ -2433,6 +2639,10 @@ export type ProfilesModuleOrderBy = | 'PRIVATE_SCHEMA_ID_DESC' | 'PRIVATE_SCHEMA_NAME_ASC' | 'PRIVATE_SCHEMA_NAME_DESC' + | 'PROFILE_CAPABILITIES_TABLE_ID_ASC' + | 'PROFILE_CAPABILITIES_TABLE_ID_DESC' + | 'PROFILE_CAPABILITIES_TABLE_NAME_ASC' + | 'PROFILE_CAPABILITIES_TABLE_NAME_DESC' | 'PROFILE_DEFINITION_GRANTS_TABLE_ID_ASC' | 'PROFILE_DEFINITION_GRANTS_TABLE_ID_DESC' | 'PROFILE_DEFINITION_GRANTS_TABLE_NAME_ASC' @@ -2441,10 +2651,6 @@ export type ProfilesModuleOrderBy = | 'PROFILE_GRANTS_TABLE_ID_DESC' | 'PROFILE_GRANTS_TABLE_NAME_ASC' | 'PROFILE_GRANTS_TABLE_NAME_DESC' - | 'PROFILE_PERMISSIONS_TABLE_ID_ASC' - | 'PROFILE_PERMISSIONS_TABLE_ID_DESC' - | 'PROFILE_PERMISSIONS_TABLE_NAME_ASC' - | 'PROFILE_PERMISSIONS_TABLE_NAME_DESC' | 'PROFILE_TEMPLATES_TABLE_ID_ASC' | 'PROFILE_TEMPLATES_TABLE_ID_DESC' | 'PROFILE_TEMPLATES_TABLE_NAME_ASC' @@ -2467,8 +2673,8 @@ export type RateLimitMetersModuleOrderBy = | 'CHECK_RATE_LIMIT_FUNCTION_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' - | 'DEFAULT_PERMISSIONS_ASC' - | 'DEFAULT_PERMISSIONS_DESC' + | 'DEFAULT_CAPABILITIES_ASC' + | 'DEFAULT_CAPABILITIES_DESC' | 'ID_ASC' | 'ID_DESC' | 'NATURAL' @@ -2613,8 +2819,8 @@ export type ResourceModuleOrderBy = | 'API_NAME_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' - | 'DEFAULT_PERMISSIONS_ASC' - | 'DEFAULT_PERMISSIONS_DESC' + | 'DEFAULT_CAPABILITIES_ASC' + | 'DEFAULT_CAPABILITIES_DESC' | 'ENTITY_FIELD_ASC' | 'ENTITY_FIELD_DESC' | 'ENTITY_TABLE_ID_ASC' @@ -2719,12 +2925,16 @@ export type RlsModuleOrderBy = export type RouteModuleOrderBy = | 'API_NAME_ASC' | 'API_NAME_DESC' + | 'APP_LINKS_FUNCTION_NAME_ASC' + | 'APP_LINKS_FUNCTION_NAME_DESC' | 'CATALOG_MODULE_ID_ASC' | 'CATALOG_MODULE_ID_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' - | 'DEFAULT_PERMISSIONS_ASC' - | 'DEFAULT_PERMISSIONS_DESC' + | 'DEEP_LINK_FUNCTION_NAME_ASC' + | 'DEEP_LINK_FUNCTION_NAME_DESC' + | 'DEFAULT_CAPABILITIES_ASC' + | 'DEFAULT_CAPABILITIES_DESC' | 'DOMAIN_MODULE_ID_ASC' | 'DOMAIN_MODULE_ID_DESC' | 'ENTITY_FIELD_ASC' @@ -2768,6 +2978,21 @@ export type RouteModuleOrderBy = | 'SCHEMA_ID_DESC' | 'SCOPE_ASC' | 'SCOPE_DESC'; +/** Methods to use when ordering `ScopeTypesModule`. */ +export type ScopeTypesModuleOrderBy = + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'PRIVATE_SCHEMA_NAME_ASC' + | 'PRIVATE_SCHEMA_NAME_DESC' + | 'SCHEMA_ID_ASC' + | 'SCHEMA_ID_DESC' + | 'SCOPE_TYPES_TABLE_ID_ASC' + | 'SCOPE_TYPES_TABLE_ID_DESC'; /** Methods to use when ordering `SecureTableProvision`. */ export type SecureTableProvisionOrderBy = | 'DATABASE_ID_ASC' @@ -2847,8 +3072,8 @@ export type SiteSurfaceModuleOrderBy = | 'CATALOG_MODULE_ID_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' - | 'DEFAULT_PERMISSIONS_ASC' - | 'DEFAULT_PERMISSIONS_DESC' + | 'DEFAULT_CAPABILITIES_ASC' + | 'DEFAULT_CAPABILITIES_DESC' | 'ENTITY_FIELD_ASC' | 'ENTITY_FIELD_DESC' | 'ENTITY_TABLE_ID_ASC' @@ -2971,10 +3196,10 @@ export type StorageModuleOrderBy = | 'CONFIRM_UPLOAD_DELAY_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' + | 'DEFAULT_CAPABILITIES_ASC' + | 'DEFAULT_CAPABILITIES_DESC' | 'DEFAULT_MAX_FILE_SIZE_ASC' | 'DEFAULT_MAX_FILE_SIZE_DESC' - | 'DEFAULT_PERMISSIONS_ASC' - | 'DEFAULT_PERMISSIONS_DESC' | 'DOWNLOAD_URL_EXPIRY_SECONDS_ASC' | 'DOWNLOAD_URL_EXPIRY_SECONDS_DESC' | 'ENDPOINT_ASC' @@ -3184,6 +3409,25 @@ export type UserSettingsModuleOrderBy = | 'TABLE_ID_DESC' | 'TABLE_NAME_ASC' | 'TABLE_NAME_DESC'; +/** Methods to use when ordering `UserSettingsSecurityModule`. */ +export type UserSettingsSecurityModuleOrderBy = + | 'API_NAME_ASC' + | 'API_NAME_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'NATURAL' + | 'OWNER_TABLE_ID_ASC' + | 'OWNER_TABLE_ID_DESC' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'SCHEMA_ID_ASC' + | 'SCHEMA_ID_DESC' + | 'TABLE_ID_ASC' + | 'TABLE_ID_DESC' + | 'TABLE_NAME_ASC' + | 'TABLE_NAME_DESC'; /** Methods to use when ordering `UserStateModule`. */ export type UserStateModuleOrderBy = | 'DATABASE_ID_ASC' @@ -3290,8 +3534,8 @@ export type WebhookModuleOrderBy = | 'API_NAME_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' - | 'DEFAULT_PERMISSIONS_ASC' - | 'DEFAULT_PERMISSIONS_DESC' + | 'DEFAULT_CAPABILITIES_ASC' + | 'DEFAULT_CAPABILITIES_DESC' | 'ENTITY_FIELD_ASC' | 'ENTITY_FIELD_DESC' | 'ENTITY_TABLE_ID_ASC' @@ -3347,8 +3591,8 @@ export interface AgentModuleFilter { apiName?: StringFilter; /** Filter by the object’s `databaseId` field. */ databaseId?: UUIDFilter; - /** Filter by the object’s `defaultPermissions` field. */ - defaultPermissions?: StringListFilter; + /** Filter by the object’s `defaultCapabilities` field. */ + defaultCapabilities?: StringListFilter; /** Filter by the object’s `entityField` field. */ entityField?: StringFilter; /** Filter by the object’s `entityTableId` field. */ @@ -3422,7 +3666,7 @@ export interface AgentModuleInput { agentTableName?: string; apiName?: string; databaseId: string; - defaultPermissions?: string[]; + defaultCapabilities?: string[]; entityField?: string; entityTableId?: string; hasAgents?: boolean; @@ -3461,7 +3705,7 @@ export interface AgentModulePatch { agentTableName?: string; apiName?: string; databaseId?: string; - defaultPermissions?: string[]; + defaultCapabilities?: string[]; entityField?: string; entityTableId?: string; hasAgents?: boolean; @@ -3524,8 +3768,8 @@ export interface ApiSurfaceModuleFilter { corsSettingsTableName?: StringFilter; /** Filter by the object’s `databaseId` field. */ databaseId?: UUIDFilter; - /** Filter by the object’s `defaultPermissions` field. */ - defaultPermissions?: StringListFilter; + /** Filter by the object’s `defaultCapabilities` field. */ + defaultCapabilities?: StringListFilter; /** Filter by the object’s `entityField` field. */ entityField?: StringFilter; /** Filter by the object’s `entityTableId` field. */ @@ -3564,7 +3808,7 @@ export interface ApiSurfaceModuleInput { corsSettingsTableId?: string; corsSettingsTableName?: string; databaseId: string; - defaultPermissions?: string[]; + defaultCapabilities?: string[]; entityField?: string; entityTableId?: string; id?: string; @@ -3589,7 +3833,7 @@ export interface ApiSurfaceModulePatch { corsSettingsTableId?: string; corsSettingsTableName?: string; databaseId?: string; - defaultPermissions?: string[]; + defaultCapabilities?: string[]; entityField?: string; entityTableId?: string; id?: string; @@ -3623,8 +3867,8 @@ export interface AppModuleFilter { catalogModuleId?: UUIDFilter; /** Filter by the object’s `databaseId` field. */ databaseId?: UUIDFilter; - /** Filter by the object’s `defaultPermissions` field. */ - defaultPermissions?: StringListFilter; + /** Filter by the object’s `defaultCapabilities` field. */ + defaultCapabilities?: StringListFilter; /** Filter by the object’s `entityField` field. */ entityField?: StringFilter; /** Filter by the object’s `entityTableId` field. */ @@ -3663,7 +3907,7 @@ export interface AppModuleInput { appsTableName?: string; catalogModuleId?: string; databaseId: string; - defaultPermissions?: string[]; + defaultCapabilities?: string[]; entityField?: string; entityTableId?: string; id?: string; @@ -3686,7 +3930,7 @@ export interface AppModulePatch { appsTableName?: string; catalogModuleId?: string; databaseId?: string; - defaultPermissions?: string[]; + defaultCapabilities?: string[]; entityField?: string; entityTableId?: string; id?: string; @@ -3712,10 +3956,10 @@ export interface BillingModuleFilter { balancesTableName?: StringFilter; /** Filter by the object’s `databaseId` field. */ databaseId?: UUIDFilter; + /** Filter by the object’s `defaultCapabilities` field. */ + defaultCapabilities?: StringListFilter; /** Filter by the object’s `defaultMeterCatalog` field. */ defaultMeterCatalog?: JSONFilter; - /** Filter by the object’s `defaultPermissions` field. */ - defaultPermissions?: StringListFilter; /** Filter by the object’s `id` field. */ id?: UUIDFilter; /** Filter by the object’s `ledgerTableId` field. */ @@ -3771,8 +4015,8 @@ export interface BillingModuleInput { balancesTableId?: string; balancesTableName?: string; databaseId: string; + defaultCapabilities?: string[]; defaultMeterCatalog?: unknown; - defaultPermissions?: string[]; id?: string; ledgerTableId?: string; ledgerTableName?: string; @@ -3802,8 +4046,8 @@ export interface BillingModulePatch { balancesTableId?: string; balancesTableName?: string; databaseId?: string; + defaultCapabilities?: string[]; defaultMeterCatalog?: unknown; - defaultPermissions?: string[]; id?: string; ledgerTableId?: string; ledgerTableName?: string; @@ -3837,6 +4081,10 @@ export interface BillingProviderModuleFilter { billingCustomersTableId?: UUIDFilter; /** Filter by the object’s `billingCustomersTableName` field. */ billingCustomersTableName?: StringFilter; + /** Filter by the object’s `billingInvoicesTableId` field. */ + billingInvoicesTableId?: UUIDFilter; + /** Filter by the object’s `billingInvoicesTableName` field. */ + billingInvoicesTableName?: StringFilter; /** Filter by the object’s `billingPricesTableId` field. */ billingPricesTableId?: UUIDFilter; /** Filter by the object’s `billingPricesTableName` field. */ @@ -3845,6 +4093,10 @@ export interface BillingProviderModuleFilter { billingProductsTableId?: UUIDFilter; /** Filter by the object’s `billingProductsTableName` field. */ billingProductsTableName?: StringFilter; + /** Filter by the object’s `billingRefundsTableId` field. */ + billingRefundsTableId?: UUIDFilter; + /** Filter by the object’s `billingRefundsTableName` field. */ + billingRefundsTableName?: StringFilter; /** Filter by the object’s `billingSubscriptionsTableId` field. */ billingSubscriptionsTableId?: UUIDFilter; /** Filter by the object’s `billingSubscriptionsTableName` field. */ @@ -3857,6 +4109,10 @@ export interface BillingProviderModuleFilter { databaseId?: UUIDFilter; /** Filter by the object’s `id` field. */ id?: UUIDFilter; + /** Filter by the object’s `listPendingUsageSyncFunction` field. */ + listPendingUsageSyncFunction?: StringFilter; + /** Filter by the object’s `markUsageSyncedFunction` field. */ + markUsageSyncedFunction?: StringFilter; /** Negates the expression. */ not?: BillingProviderModuleFilter; /** Checks for any expressions in this list. */ @@ -3875,26 +4131,36 @@ export interface BillingProviderModuleFilter { productsTableId?: UUIDFilter; /** Filter by the object’s `provider` field. */ provider?: StringFilter; + /** Filter by the object’s `recordRefundFunction` field. */ + recordRefundFunction?: StringFilter; /** Filter by the object’s `schemaId` field. */ schemaId?: UUIDFilter; /** Filter by the object’s `subscriptionsTableId` field. */ subscriptionsTableId?: UUIDFilter; + /** Filter by the object’s `upsertInvoiceFunction` field. */ + upsertInvoiceFunction?: StringFilter; } /** An input for mutations affecting `BillingProviderModule` */ export interface BillingProviderModuleInput { apiName?: string; billingCustomersTableId?: string; billingCustomersTableName?: string; + billingInvoicesTableId?: string; + billingInvoicesTableName?: string; billingPricesTableId?: string; billingPricesTableName?: string; billingProductsTableId?: string; billingProductsTableName?: string; + billingRefundsTableId?: string; + billingRefundsTableName?: string; billingSubscriptionsTableId?: string; billingSubscriptionsTableName?: string; billingWebhookEventsTableId?: string; billingWebhookEventsTableName?: string; databaseId: string; id?: string; + listPendingUsageSyncFunction?: string; + markUsageSyncedFunction?: string; prefix?: string; pricesTableId?: string; privateApiName?: string; @@ -3902,24 +4168,32 @@ export interface BillingProviderModuleInput { processBillingEventFunction?: string; productsTableId?: string; provider?: string; + recordRefundFunction?: string; schemaId?: string; subscriptionsTableId?: string; + upsertInvoiceFunction?: string; } /** Represents an update to a `BillingProviderModule`. Fields that are set will be updated. */ export interface BillingProviderModulePatch { apiName?: string; billingCustomersTableId?: string; billingCustomersTableName?: string; + billingInvoicesTableId?: string; + billingInvoicesTableName?: string; billingPricesTableId?: string; billingPricesTableName?: string; billingProductsTableId?: string; billingProductsTableName?: string; + billingRefundsTableId?: string; + billingRefundsTableName?: string; billingSubscriptionsTableId?: string; billingSubscriptionsTableName?: string; billingWebhookEventsTableId?: string; billingWebhookEventsTableName?: string; databaseId?: string; id?: string; + listPendingUsageSyncFunction?: string; + markUsageSyncedFunction?: string; prefix?: string; pricesTableId?: string; privateApiName?: string; @@ -3927,8 +4201,10 @@ export interface BillingProviderModulePatch { processBillingEventFunction?: string; productsTableId?: string; provider?: string; + recordRefundFunction?: string; schemaId?: string; subscriptionsTableId?: string; + upsertInvoiceFunction?: string; } /** A filter to be used against `BlueprintConstruction` object types. All fields are combined with a logical ‘and.’ */ export interface BlueprintConstructionFilter { @@ -4282,36 +4558,156 @@ export interface BlueprintToManyBlueprintConstructionFilter { /** Filters to entities where at least one related entity matches. */ some?: BlueprintConstructionFilter; } -/** A filter to be used against `CatalogModule` object types. All fields are combined with a logical ‘and.’ */ -export interface CatalogModuleFilter { +/** A filter to be used against `CapabilitiesModule` object types. All fields are combined with a logical ‘and.’ */ +export interface CapabilitiesModuleFilter { + /** Filter by the object’s `actorTableId` field. */ + actorTableId?: UUIDFilter; /** Checks for all expressions in this list. */ - and?: CatalogModuleFilter[]; + and?: CapabilitiesModuleFilter[]; /** Filter by the object’s `apiName` field. */ apiName?: StringFilter; - /** Filter by the object’s `apiSurfaceModules` relation. */ - apiSurfaceModules?: CatalogModuleToManyApiSurfaceModuleFilter; - /** `apiSurfaceModules` exist. */ - apiSurfaceModulesExist?: boolean; - /** Filter by the object’s `apisTableId` field. */ - apisTableId?: UUIDFilter; - /** Filter by the object’s `apisTableName` field. */ - apisTableName?: StringFilter; - /** Filter by the object’s `appModules` relation. */ - appModules?: CatalogModuleToManyAppModuleFilter; - /** `appModules` exist. */ - appModulesExist?: boolean; - /** Filter by the object’s `appsTableId` field. */ - appsTableId?: UUIDFilter; - /** Filter by the object’s `appsTableName` field. */ - appsTableName?: StringFilter; - /** Filter by the object’s `bucketsTableId` field. */ - bucketsTableId?: UUIDFilter; - /** Filter by the object’s `bucketsTableName` field. */ - bucketsTableName?: StringFilter; + /** Filter by the object’s `bitlen` field. */ + bitlen?: IntFilter; + /** Filter by the object’s `dataCapabilitiesFields` relation. */ + dataCapabilitiesFields?: CapabilitiesModuleToManyDataCapabilitiesFieldFilter; + /** `dataCapabilitiesFields` exist. */ + dataCapabilitiesFieldsExist?: boolean; /** Filter by the object’s `databaseId` field. */ databaseId?: UUIDFilter; - /** Filter by the object’s `defaultPermissions` field. */ - defaultPermissions?: StringListFilter; + /** Filter by the object’s `defaultTableId` field. */ + defaultTableId?: UUIDFilter; + /** Filter by the object’s `defaultTableName` field. */ + defaultTableName?: StringFilter; + /** Filter by the object’s `entityField` field. */ + entityField?: StringFilter; + /** Filter by the object’s `entityTableId` field. */ + entityTableId?: UUIDFilter; + /** Filter by the object’s `getByMask` field. */ + getByMask?: StringFilter; + /** Filter by the object’s `getMask` field. */ + getMask?: StringFilter; + /** Filter by the object’s `getMaskByName` field. */ + getMaskByName?: StringFilter; + /** Filter by the object’s `getPaddedMask` field. */ + getPaddedMask?: StringFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Negates the expression. */ + not?: CapabilitiesModuleFilter; + /** Checks for any expressions in this list. */ + or?: CapabilitiesModuleFilter[]; + /** Filter by the object’s `prefix` field. */ + prefix?: StringFilter; + /** Filter by the object’s `privateApiName` field. */ + privateApiName?: StringFilter; + /** Filter by the object’s `privateSchemaId` field. */ + privateSchemaId?: UUIDFilter; + /** Filter by the object’s `privateSchemaName` field. */ + privateSchemaName?: StringFilter; + /** Filter by the object’s `publicSchemaName` field. */ + publicSchemaName?: StringFilter; + /** Filter by the object’s `schemaId` field. */ + schemaId?: UUIDFilter; + /** Filter by the object’s `scope` field. */ + scope?: StringFilter; + /** Filter by the object’s `tableId` field. */ + tableId?: UUIDFilter; + /** Filter by the object’s `tableName` field. */ + tableName?: StringFilter; +} +/** An input for mutations affecting `CapabilitiesModule` */ +export interface CapabilitiesModuleInput { + actorTableId?: string; + apiName?: string; + bitlen?: number; + databaseId: string; + defaultTableId?: string; + defaultTableName?: string; + entityField?: string; + entityTableId?: string; + getByMask?: string; + getMask?: string; + getMaskByName?: string; + getPaddedMask?: string; + id?: string; + prefix?: string; + privateApiName?: string; + privateSchemaId?: string; + privateSchemaName?: string; + publicSchemaName?: string; + schemaId?: string; + scope: string; + tableId?: string; + tableName?: string; +} +/** Represents an update to a `CapabilitiesModule`. Fields that are set will be updated. */ +export interface CapabilitiesModulePatch { + actorTableId?: string; + apiName?: string; + bitlen?: number; + databaseId?: string; + defaultTableId?: string; + defaultTableName?: string; + entityField?: string; + entityTableId?: string; + getByMask?: string; + getMask?: string; + getMaskByName?: string; + getPaddedMask?: string; + id?: string; + prefix?: string; + privateApiName?: string; + privateSchemaId?: string; + privateSchemaName?: string; + publicSchemaName?: string; + schemaId?: string; + scope?: string; + tableId?: string; + tableName?: string; +} +/** A filter to be used against many `DataCapabilitiesField` object types. All fields are combined with a logical ‘and.’ */ +export interface CapabilitiesModuleToManyDataCapabilitiesFieldFilter { + /** Filters to entities where every related entity matches. */ + every?: DataCapabilitiesFieldFilter; + /** Filters to entities where no related entity matches. */ + none?: DataCapabilitiesFieldFilter; + /** Filters to entities where at least one related entity matches. */ + some?: DataCapabilitiesFieldFilter; +} +/** A filter to be used against `CatalogModule` object types. All fields are combined with a logical ‘and.’ */ +export interface CatalogModuleFilter { + /** Checks for all expressions in this list. */ + and?: CatalogModuleFilter[]; + /** Filter by the object’s `apiName` field. */ + apiName?: StringFilter; + /** Filter by the object’s `apiSurfaceModules` relation. */ + apiSurfaceModules?: CatalogModuleToManyApiSurfaceModuleFilter; + /** `apiSurfaceModules` exist. */ + apiSurfaceModulesExist?: boolean; + /** Filter by the object’s `apisTableId` field. */ + apisTableId?: UUIDFilter; + /** Filter by the object’s `apisTableName` field. */ + apisTableName?: StringFilter; + /** Filter by the object’s `appModules` relation. */ + appModules?: CatalogModuleToManyAppModuleFilter; + /** `appModules` exist. */ + appModulesExist?: boolean; + /** Filter by the object’s `appsTableId` field. */ + appsTableId?: UUIDFilter; + /** Filter by the object’s `appsTableName` field. */ + appsTableName?: StringFilter; + /** Filter by the object’s `bindingsTableId` field. */ + bindingsTableId?: UUIDFilter; + /** Filter by the object’s `bindingsTableName` field. */ + bindingsTableName?: StringFilter; + /** Filter by the object’s `bucketsTableId` field. */ + bucketsTableId?: UUIDFilter; + /** Filter by the object’s `bucketsTableName` field. */ + bucketsTableName?: StringFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `defaultCapabilities` field. */ + defaultCapabilities?: StringListFilter; /** Filter by the object’s `domainModules` relation. */ domainModules?: CatalogModuleToManyDomainModuleFilter; /** `domainModules` exist. */ @@ -4396,10 +4792,12 @@ export interface CatalogModuleInput { apisTableName?: string; appsTableId?: string; appsTableName?: string; + bindingsTableId?: string; + bindingsTableName?: string; bucketsTableId?: string; bucketsTableName?: string; databaseId: string; - defaultPermissions?: string[]; + defaultCapabilities?: string[]; domainsTableId?: string; domainsTableName?: string; entityTableId?: string; @@ -4438,10 +4836,12 @@ export interface CatalogModulePatch { apisTableName?: string; appsTableId?: string; appsTableName?: string; + bindingsTableId?: string; + bindingsTableName?: string; bucketsTableId?: string; bucketsTableName?: string; databaseId?: string; - defaultPermissions?: string[]; + defaultCapabilities?: string[]; domainsTableId?: string; domainsTableName?: string; entityTableId?: string; @@ -4716,6 +5116,91 @@ export interface ConstructBlueprintInput { clientMutationId?: string; schemaId?: string; } +/** A filter to be used against `ContentPresetModule` object types. All fields are combined with a logical ‘and.’ */ +export interface ContentPresetModuleFilter { + /** Checks for all expressions in this list. */ + and?: ContentPresetModuleFilter[]; + /** Filter by the object’s `apiName` field. */ + apiName?: StringFilter; + /** Filter by the object’s `contentPresetsTableId` field. */ + contentPresetsTableId?: UUIDFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `entityTableId` field. */ + entityTableId?: UUIDFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `merkleStoreModule` relation. */ + merkleStoreModule?: MerkleStoreModuleFilter; + /** Filter by the object’s `merkleStoreModuleId` field. */ + merkleStoreModuleId?: UUIDFilter; + /** Negates the expression. */ + not?: ContentPresetModuleFilter; + /** Checks for any expressions in this list. */ + or?: ContentPresetModuleFilter[]; + /** Filter by the object’s `policies` field. */ + policies?: JSONFilter; + /** Filter by the object’s `prefix` field. */ + prefix?: StringFilter; + /** Filter by the object’s `privateApiName` field. */ + privateApiName?: StringFilter; + /** Filter by the object’s `privateSchemaId` field. */ + privateSchemaId?: UUIDFilter; + /** Filter by the object’s `privateSchemaName` field. */ + privateSchemaName?: StringFilter; + /** Filter by the object’s `provisions` field. */ + provisions?: JSONFilter; + /** Filter by the object’s `publicSchemaId` field. */ + publicSchemaId?: UUIDFilter; + /** Filter by the object’s `publicSchemaName` field. */ + publicSchemaName?: StringFilter; + /** Filter by the object’s `scope` field. */ + scope?: StringFilter; + /** Filter by the object’s `storeName` field. */ + storeName?: StringFilter; +} +/** An input for mutations affecting `ContentPresetModule` */ +export interface ContentPresetModuleInput { + apiName?: string; + contentPresetsTableId?: string; + createdAt?: string; + databaseId: string; + entityTableId?: string; + id?: string; + merkleStoreModuleId: string; + policies?: unknown; + prefix: string; + privateApiName?: string; + privateSchemaId?: string; + privateSchemaName?: string; + provisions?: unknown; + publicSchemaId?: string; + publicSchemaName?: string; + scope: string; + storeName: string; +} +/** Represents an update to a `ContentPresetModule`. Fields that are set will be updated. */ +export interface ContentPresetModulePatch { + apiName?: string; + contentPresetsTableId?: string; + createdAt?: string; + databaseId?: string; + entityTableId?: string; + id?: string; + merkleStoreModuleId?: string; + policies?: unknown; + prefix?: string; + privateApiName?: string; + privateSchemaId?: string; + privateSchemaName?: string; + provisions?: unknown; + publicSchemaId?: string; + publicSchemaName?: string; + scope?: string; + storeName?: string; +} export interface CopyTemplateToBlueprintInput { clientMutationId?: string; databaseId?: string; @@ -4764,6 +5249,11 @@ export interface CreateBlueprintTemplateInput { blueprintTemplate: BlueprintTemplateInput; clientMutationId?: string; } +export interface CreateCapabilitiesModuleInput { + /** The `CapabilitiesModule` to be created by this mutation. */ + capabilitiesModule: CapabilitiesModuleInput; + clientMutationId?: string; +} export interface CreateCatalogModuleInput { /** The `CatalogModule` to be created by this mutation. */ catalogModule: CatalogModuleInput; @@ -4784,6 +5274,11 @@ export interface CreateConnectedAccountsModuleInput { /** The `ConnectedAccountsModule` to be created by this mutation. */ connectedAccountsModule: ConnectedAccountsModuleInput; } +export interface CreateContentPresetModuleInput { + clientMutationId?: string; + /** The `ContentPresetModule` to be created by this mutation. */ + contentPresetModule: ContentPresetModuleInput; +} export interface CreateCryptoAddressesModuleInput { clientMutationId?: string; /** The `CryptoAddressesModule` to be created by this mutation. */ @@ -4794,6 +5289,11 @@ export interface CreateCryptoAuthModuleInput { /** The `CryptoAuthModule` to be created by this mutation. */ cryptoAuthModule: CryptoAuthModuleInput; } +export interface CreateDataCapabilitiesFieldInput { + clientMutationId?: string; + /** The `DataCapabilitiesField` to be created by this mutation. */ + dataCapabilitiesField: DataCapabilitiesFieldInput; +} export interface CreateDatabaseProvisionModuleInput { clientMutationId?: string; /** The `DatabaseProvisionModule` to be created by this mutation. */ @@ -4844,6 +5344,11 @@ export interface CreateDomainModuleInput { /** The `DomainModule` to be created by this mutation. */ domainModule: DomainModuleInput; } +export interface CreateEmailSenderModuleInput { + clientMutationId?: string; + /** The `EmailSenderModule` to be created by this mutation. */ + emailSenderModule: EmailSenderModuleInput; +} export interface CreateEmailsModuleInput { clientMutationId?: string; /** The `EmailsModule` to be created by this mutation. */ @@ -4859,6 +5364,11 @@ export interface CreateEventsModuleInput { /** The `EventsModule` to be created by this mutation. */ eventsModule: EventsModuleInput; } +export interface CreateFileRefFieldInput { + clientMutationId?: string; + /** The `FileRefField` to be created by this mutation. */ + fileRefField: FileRefFieldInput; +} export interface CreateFunctionDeploymentModuleInput { clientMutationId?: string; /** The `FunctionDeploymentModule` to be created by this mutation. */ @@ -4964,16 +5474,16 @@ export interface CreateNotificationsModuleInput { /** The `NotificationsModule` to be created by this mutation. */ notificationsModule: NotificationsModuleInput; } +export interface CreateOauthRequestsModuleInput { + clientMutationId?: string; + /** The `OauthRequestsModule` to be created by this mutation. */ + oauthRequestsModule: OauthRequestsModuleInput; +} export interface CreatePagesModuleInput { clientMutationId?: string; /** The `PagesModule` to be created by this mutation. */ pagesModule: PagesModuleInput; } -export interface CreatePermissionsModuleInput { - clientMutationId?: string; - /** The `PermissionsModule` to be created by this mutation. */ - permissionsModule: PermissionsModuleInput; -} export interface CreatePhoneNumbersModuleInput { clientMutationId?: string; /** The `PhoneNumbersModule` to be created by this mutation. */ @@ -5029,6 +5539,11 @@ export interface CreateRouteModuleInput { /** The `RouteModule` to be created by this mutation. */ routeModule: RouteModuleInput; } +export interface CreateScopeTypesModuleInput { + clientMutationId?: string; + /** The `ScopeTypesModule` to be created by this mutation. */ + scopeTypesModule: ScopeTypesModuleInput; +} export interface CreateSecureTableProvisionInput { clientMutationId?: string; /** The `SecureTableProvision` to be created by this mutation. */ @@ -5079,6 +5594,11 @@ export interface CreateUserSettingsModuleInput { /** The `UserSettingsModule` to be created by this mutation. */ userSettingsModule: UserSettingsModuleInput; } +export interface CreateUserSettingsSecurityModuleInput { + clientMutationId?: string; + /** The `UserSettingsSecurityModule` to be created by this mutation. */ + userSettingsSecurityModule: UserSettingsSecurityModuleInput; +} export interface CreateUserStateModuleInput { clientMutationId?: string; /** The `UserStateModule` to be created by this mutation. */ @@ -5230,6 +5750,67 @@ export interface CryptoAuthModulePatch { userField?: string; usersTableId?: string; } +/** A filter to be used against `DataCapabilitiesField` object types. All fields are combined with a logical ‘and.’ */ +export interface DataCapabilitiesFieldFilter { + /** Checks for all expressions in this list. */ + and?: DataCapabilitiesFieldFilter[]; + /** Filter by the object’s `capabilitiesModule` relation. */ + capabilitiesModule?: CapabilitiesModuleFilter; + /** Filter by the object’s `capabilitiesModuleId` field. */ + capabilitiesModuleId?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `fieldId` field. */ + fieldId?: UUIDFilter; + /** Filter by the object’s `fromFieldId` field. */ + fromFieldId?: UUIDFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `mappingFieldId` field. */ + mappingFieldId?: UUIDFilter; + /** Filter by the object’s `mappingKeyFieldId` field. */ + mappingKeyFieldId?: UUIDFilter; + /** Filter by the object’s `mappingTableId` field. */ + mappingTableId?: UUIDFilter; + /** Filter by the object’s `mode` field. */ + mode?: StringFilter; + /** Negates the expression. */ + not?: DataCapabilitiesFieldFilter; + /** Checks for any expressions in this list. */ + or?: DataCapabilitiesFieldFilter[]; + /** Filter by the object’s `subsetGuard` field. */ + subsetGuard?: BooleanFilter; + /** Filter by the object’s `tableId` field. */ + tableId?: UUIDFilter; +} +/** An input for mutations affecting `DataCapabilitiesField` */ +export interface DataCapabilitiesFieldInput { + capabilitiesModuleId: string; + databaseId: string; + fieldId: string; + fromFieldId?: string; + id?: string; + mappingFieldId?: string; + mappingKeyFieldId?: string; + mappingTableId?: string; + mode?: string; + subsetGuard?: boolean; + tableId: string; +} +/** Represents an update to a `DataCapabilitiesField`. Fields that are set will be updated. */ +export interface DataCapabilitiesFieldPatch { + capabilitiesModuleId?: string; + databaseId?: string; + fieldId?: string; + fromFieldId?: string; + id?: string; + mappingFieldId?: string; + mappingKeyFieldId?: string; + mappingTableId?: string; + mode?: string; + subsetGuard?: boolean; + tableId?: string; +} /** A filter to be used against `DatabaseProvisionModule` object types. All fields are combined with a logical ‘and.’ */ export interface DatabaseProvisionModuleFilter { /** Checks for all expressions in this list. */ @@ -5299,7 +5880,7 @@ export interface DatabaseProvisionModuleInput { /** Uniform billing anchor: when the request was fulfilled with a usable database (cold provision completion or warm pool claim). Platform absorbs all provisioning compute before this point */ fulfilledAt?: string; id?: string; - /** JSONB array of modules to install. Each element is either a string ("users_module") or a [name, options] tuple (["permissions_module", {"scope": "app"}]) */ + /** JSONB array of modules to install. Each element is either a string ("users_module") or a [name, options] tuple (["capabilities_module", {"scope": "app"}]) */ modules?: unknown; /** Additional configuration options for provisioning */ options?: unknown; @@ -5335,7 +5916,7 @@ export interface DatabaseProvisionModulePatch { /** Uniform billing anchor: when the request was fulfilled with a usable database (cold provision completion or warm pool claim). Platform absorbs all provisioning compute before this point */ fulfilledAt?: string; id?: string; - /** JSONB array of modules to install. Each element is either a string ("users_module") or a [name, options] tuple (["permissions_module", {"scope": "app"}]) */ + /** JSONB array of modules to install. Each element is either a string ("users_module") or a [name, options] tuple (["capabilities_module", {"scope": "app"}]) */ modules?: unknown; /** Additional configuration options for provisioning */ options?: unknown; @@ -5361,8 +5942,8 @@ export interface DatabaseSettingsModuleFilter { databaseSettingsTableId?: UUIDFilter; /** Filter by the object’s `databaseSettingsTableName` field. */ databaseSettingsTableName?: StringFilter; - /** Filter by the object’s `defaultPermissions` field. */ - defaultPermissions?: StringListFilter; + /** Filter by the object’s `defaultCapabilities` field. */ + defaultCapabilities?: StringListFilter; /** Filter by the object’s `entityField` field. */ entityField?: StringFilter; /** Filter by the object’s `entityTableId` field. */ @@ -5406,7 +5987,7 @@ export interface DatabaseSettingsModuleInput { databaseId: string; databaseSettingsTableId?: string; databaseSettingsTableName?: string; - defaultPermissions?: string[]; + defaultCapabilities?: string[]; entityField?: string; entityTableId?: string; id?: string; @@ -5430,7 +6011,7 @@ export interface DatabaseSettingsModulePatch { databaseId?: string; databaseSettingsTableId?: string; databaseSettingsTableName?: string; - defaultPermissions?: string[]; + defaultCapabilities?: string[]; entityField?: string; entityTableId?: string; id?: string; @@ -5693,8 +6274,8 @@ export interface DbUsageModuleFilter { collectDbTableStatsFunction?: StringFilter; /** Filter by the object’s `databaseId` field. */ databaseId?: UUIDFilter; - /** Filter by the object’s `defaultPermissions` field. */ - defaultPermissions?: StringListFilter; + /** Filter by the object’s `defaultCapabilities` field. */ + defaultCapabilities?: StringListFilter; /** Filter by the object’s `entityField` field. */ entityField?: StringFilter; /** Filter by the object’s `id` field. */ @@ -5750,7 +6331,7 @@ export interface DbUsageModuleInput { collectDbQueryStatsFunction?: string; collectDbTableStatsFunction?: string; databaseId: string; - defaultPermissions?: string[]; + defaultCapabilities?: string[]; entityField?: string; id?: string; interval?: string; @@ -5780,7 +6361,7 @@ export interface DbUsageModulePatch { collectDbQueryStatsFunction?: string; collectDbTableStatsFunction?: string; databaseId?: string; - defaultPermissions?: string[]; + defaultCapabilities?: string[]; entityField?: string; id?: string; interval?: string; @@ -5862,6 +6443,10 @@ export interface DeleteBlueprintTemplateInput { /** Unique identifier for this template. */ id: string; } +export interface DeleteCapabilitiesModuleInput { + clientMutationId?: string; + id: string; +} export interface DeleteCatalogModuleInput { clientMutationId?: string; id: string; @@ -5878,6 +6463,10 @@ export interface DeleteConnectedAccountsModuleInput { clientMutationId?: string; id: string; } +export interface DeleteContentPresetModuleInput { + clientMutationId?: string; + id: string; +} export interface DeleteCryptoAddressesModuleInput { clientMutationId?: string; id: string; @@ -5886,6 +6475,10 @@ export interface DeleteCryptoAuthModuleInput { clientMutationId?: string; id: string; } +export interface DeleteDataCapabilitiesFieldInput { + clientMutationId?: string; + id: string; +} export interface DeleteDatabaseProvisionModuleInput { clientMutationId?: string; id: string; @@ -5926,6 +6519,10 @@ export interface DeleteDomainModuleInput { clientMutationId?: string; id: string; } +export interface DeleteEmailSenderModuleInput { + clientMutationId?: string; + id: string; +} export interface DeleteEmailsModuleInput { clientMutationId?: string; id: string; @@ -5939,6 +6536,10 @@ export interface DeleteEventsModuleInput { clientMutationId?: string; id: string; } +export interface DeleteFileRefFieldInput { + clientMutationId?: string; + id: string; +} export interface DeleteFunctionDeploymentModuleInput { clientMutationId?: string; id: string; @@ -6023,11 +6624,11 @@ export interface DeleteNotificationsModuleInput { clientMutationId?: string; id: string; } -export interface DeletePagesModuleInput { +export interface DeleteOauthRequestsModuleInput { clientMutationId?: string; id: string; } -export interface DeletePermissionsModuleInput { +export interface DeletePagesModuleInput { clientMutationId?: string; id: string; } @@ -6076,6 +6677,10 @@ export interface DeleteRouteModuleInput { clientMutationId?: string; id: string; } +export interface DeleteScopeTypesModuleInput { + clientMutationId?: string; + id: string; +} export interface DeleteSecureTableProvisionInput { clientMutationId?: string; /** Unique identifier for this provision row. */ @@ -6117,6 +6722,10 @@ export interface DeleteUserSettingsModuleInput { clientMutationId?: string; id: string; } +export interface DeleteUserSettingsSecurityModuleInput { + clientMutationId?: string; + id: string; +} export interface DeleteUserStateModuleInput { clientMutationId?: string; id: string; @@ -6257,8 +6866,8 @@ export interface DomainModuleFilter { catalogModuleId?: UUIDFilter; /** Filter by the object’s `databaseId` field. */ databaseId?: UUIDFilter; - /** Filter by the object’s `defaultPermissions` field. */ - defaultPermissions?: StringListFilter; + /** Filter by the object’s `defaultCapabilities` field. */ + defaultCapabilities?: StringListFilter; /** Filter by the object’s `domainEventsTableId` field. */ domainEventsTableId?: UUIDFilter; /** Filter by the object’s `domainEventsTableName` field. */ @@ -6313,7 +6922,7 @@ export interface DomainModuleInput { apiName?: string; catalogModuleId?: string; databaseId: string; - defaultPermissions?: string[]; + defaultCapabilities?: string[]; domainEventsTableId?: string; domainEventsTableName?: string; domainVerificationsTableId?: string; @@ -6340,7 +6949,7 @@ export interface DomainModulePatch { apiName?: string; catalogModuleId?: string; databaseId?: string; - defaultPermissions?: string[]; + defaultCapabilities?: string[]; domainEventsTableId?: string; domainEventsTableName?: string; domainVerificationsTableId?: string; @@ -6371,6 +6980,105 @@ export interface DomainModuleToManyRouteModuleFilter { /** Filters to entities where at least one related entity matches. */ some?: RouteModuleFilter; } +/** A filter to be used against `EmailSenderModule` object types. All fields are combined with a logical ‘and.’ */ +export interface EmailSenderModuleFilter { + /** Checks for all expressions in this list. */ + and?: EmailSenderModuleFilter[]; + /** Filter by the object’s `apiName` field. */ + apiName?: StringFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `defaultCapabilities` field. */ + defaultCapabilities?: StringListFilter; + /** Filter by the object’s `emailIdentitiesTableId` field. */ + emailIdentitiesTableId?: UUIDFilter; + /** Filter by the object’s `emailIdentitiesTableName` field. */ + emailIdentitiesTableName?: StringFilter; + /** Filter by the object’s `emailProviderAccountsTableId` field. */ + emailProviderAccountsTableId?: UUIDFilter; + /** Filter by the object’s `emailProviderAccountsTableName` field. */ + emailProviderAccountsTableName?: StringFilter; + /** Filter by the object’s `emailSiteIdentitiesTableId` field. */ + emailSiteIdentitiesTableId?: UUIDFilter; + /** Filter by the object’s `emailSiteIdentitiesTableName` field. */ + emailSiteIdentitiesTableName?: StringFilter; + /** Filter by the object’s `entityField` field. */ + entityField?: StringFilter; + /** Filter by the object’s `entityTableId` field. */ + entityTableId?: UUIDFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Negates the expression. */ + not?: EmailSenderModuleFilter; + /** Checks for any expressions in this list. */ + or?: EmailSenderModuleFilter[]; + /** Filter by the object’s `policies` field. */ + policies?: JSONFilter; + /** Filter by the object’s `prefix` field. */ + prefix?: StringFilter; + /** Filter by the object’s `privateApiName` field. */ + privateApiName?: StringFilter; + /** Filter by the object’s `provisions` field. */ + provisions?: JSONFilter; + /** Filter by the object’s `publicSchemaName` field. */ + publicSchemaName?: StringFilter; + /** Filter by the object’s `schemaId` field. */ + schemaId?: UUIDFilter; + /** Filter by the object’s `scope` field. */ + scope?: StringFilter; + /** Filter by the object’s `siteSurfaceModule` relation. */ + siteSurfaceModule?: SiteSurfaceModuleFilter; + /** A related `siteSurfaceModule` exists. */ + siteSurfaceModuleExists?: boolean; + /** Filter by the object’s `siteSurfaceModuleId` field. */ + siteSurfaceModuleId?: UUIDFilter; +} +/** An input for mutations affecting `EmailSenderModule` */ +export interface EmailSenderModuleInput { + apiName?: string; + databaseId: string; + defaultCapabilities?: string[]; + emailIdentitiesTableId?: string; + emailIdentitiesTableName?: string; + emailProviderAccountsTableId?: string; + emailProviderAccountsTableName?: string; + emailSiteIdentitiesTableId?: string; + emailSiteIdentitiesTableName?: string; + entityField?: string; + entityTableId?: string; + id?: string; + policies?: unknown; + prefix?: string; + privateApiName?: string; + provisions?: unknown; + publicSchemaName?: string; + schemaId?: string; + scope: string; + siteSurfaceModuleId?: string; +} +/** Represents an update to a `EmailSenderModule`. Fields that are set will be updated. */ +export interface EmailSenderModulePatch { + apiName?: string; + databaseId?: string; + defaultCapabilities?: string[]; + emailIdentitiesTableId?: string; + emailIdentitiesTableName?: string; + emailProviderAccountsTableId?: string; + emailProviderAccountsTableName?: string; + emailSiteIdentitiesTableId?: string; + emailSiteIdentitiesTableName?: string; + entityField?: string; + entityTableId?: string; + id?: string; + policies?: unknown; + prefix?: string; + privateApiName?: string; + provisions?: unknown; + publicSchemaName?: string; + schemaId?: string; + scope?: string; + siteSurfaceModuleId?: string; +} /** A filter to be used against `EmailsModule` object types. All fields are combined with a logical ‘and.’ */ export interface EmailsModuleFilter { /** Checks for all expressions in this list. */ @@ -6524,7 +7232,7 @@ export interface EntityTypeProvisionInput { * - policies (jsonb array) RLS policy overrides. NULL = apply defaults from apply_function_security(). * Creates {prefix}_function_definitions (or {prefix}_{key}_function_definitions for non-default keys) * with entity-scoped RLS and a job trigger dispatching function:provision tasks. - * Registers manage_functions + invoke_functions permission bits on first provision. + * Registers manage_functions + invoke_functions capability bits on first provision. * Example: functions := '[{}]'::jsonb */ functions?: unknown; @@ -6534,9 +7242,9 @@ export interface EntityTypeProvisionInput { * Each element recognizes (all optional): * - key (text) module discriminator. Defaults to 'default'. * - policies (jsonb array) RLS policy overrides. NULL = apply defaults from apply_graph_security(). - * Registers manage_graphs + execute_graphs permission bits on first provision. + * Registers manage_graphs + execute_graphs capability bits on first provision. * Graph module requires a merkle_store_module_id dependency, so entity_type_provision - * only registers permissions here. The graph module itself must be provisioned + * only registers capabilities here. The graph module itself must be provisioned * separately with the merkle store dependency resolved. * Example: graphs := '[{}]'::jsonb */ @@ -6576,8 +7284,11 @@ export interface EntityTypeProvisionInput { hasLimits?: boolean; /** * Whether to provision profiles_module for this type. Defaults to false. - * Profiles provide named permission roles (e.g. 'Editor', 'Viewer') with pre-configured permission bitmasks. - * When true, creates profile tables and applies profiles security. + * Profiles provide named capability roles (e.g. 'Editor', 'Viewer') with pre-configured capability bitmasks. + * When true, creates profile tables and applies profiles security. A membership may hold + * any number of profiles: the membership_profiles assignment table holds every profile a + * membership holds and the membership mask is granted | bit_or(held profile masks), with + * memberships.profile_id kept as a pointer at one held profile. */ hasProfiles?: boolean; /** Unique identifier for this provision row. */ @@ -6604,7 +7315,7 @@ export interface EntityTypeProvisionInput { * - policies (jsonb array) RLS policy overrides. NULL = apply defaults from apply_namespace_security(). * Creates {prefix}_namespaces (or {prefix}_{key}_namespaces for non-default keys) * with entity-scoped RLS (AuthzEntityMembership) and a rename proxy trigger. - * Registers manage_namespaces permission bit on first provision. + * Registers manage_namespaces capability bit on first provision. * Example: namespaces := '[{}]'::jsonb */ namespaces?: unknown; @@ -6626,7 +7337,7 @@ export interface EntityTypeProvisionInput { outGraphModuleId?: string; outGraphsTableId?: string; /** - * Output: array of installed module labels (e.g. ARRAY['permissions_module:data_room', 'memberships_module:data_room', 'invites_module:data_room']). + * Output: array of installed module labels (e.g. ARRAY['capabilities_module:data_room', 'memberships_module:data_room', 'invites_module:data_room']). * Populated by the trigger. Useful for verifying which modules were provisioned. */ outInstalledModules?: string[]; @@ -6670,7 +7381,7 @@ export interface EntityTypeProvisionInput { parentEntity?: string; /** * SQL prefix used for table and module naming, e.g. 'data_room', 'team_channel'. Required. - * Drives entity table name (prefix || 's' by default), module labels (permissions_module:prefix), + * Drives entity table name (prefix || 's' by default), module labels (capabilities_module:prefix), * and membership table names (prefix_memberships, prefix_members, etc.). * Must be unique per database — the (database_id, prefix) constraint ensures graceful ON CONFLICT DO NOTHING. */ @@ -6684,8 +7395,8 @@ export interface EntityTypeProvisionInput { * Defaults (applied when table_provision IS NULL and skip_entity_policies=false): * - SELECT (parent_member): parent entity members can see child entities (only when is_visible=true) * - SELECT (self_member): direct members of the entity can see it - * - INSERT: create_entity permission on the parent entity - * - UPDATE: admin_entity permission on the entity itself + * - INSERT: create_entity capability on the parent entity + * - UPDATE: admin_entity capability on the entity itself * - DELETE: owner of the entity can delete it */ skipEntityPolicies?: boolean; @@ -6704,7 +7415,7 @@ export interface EntityTypeProvisionInput { * - 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 + * - restrict_reads (boolean) require read_files capability 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 @@ -6730,7 +7441,7 @@ export interface EntityTypeProvisionInput { tableName?: string; /** * Single jsonb object describing the full security setup to apply to the entity table. - * Uses the same vocabulary as metaschema_modules_public.provision_table() and blueprint tables[] + * Uses the same vocabulary as metaschema_modules_private.provision_table() and blueprint tables[] * entries, so an entity table is configured the same way an ordinary blueprint table is. * Defaults to NULL; when non-NULL, the five default policies are implicitly replaced by * table_provision.policies[] (is_visible becomes a no-op on this path). @@ -6776,7 +7487,7 @@ export interface EntityTypeProvisionPatch { * - policies (jsonb array) RLS policy overrides. NULL = apply defaults from apply_function_security(). * Creates {prefix}_function_definitions (or {prefix}_{key}_function_definitions for non-default keys) * with entity-scoped RLS and a job trigger dispatching function:provision tasks. - * Registers manage_functions + invoke_functions permission bits on first provision. + * Registers manage_functions + invoke_functions capability bits on first provision. * Example: functions := '[{}]'::jsonb */ functions?: unknown; @@ -6786,9 +7497,9 @@ export interface EntityTypeProvisionPatch { * Each element recognizes (all optional): * - key (text) module discriminator. Defaults to 'default'. * - policies (jsonb array) RLS policy overrides. NULL = apply defaults from apply_graph_security(). - * Registers manage_graphs + execute_graphs permission bits on first provision. + * Registers manage_graphs + execute_graphs capability bits on first provision. * Graph module requires a merkle_store_module_id dependency, so entity_type_provision - * only registers permissions here. The graph module itself must be provisioned + * only registers capabilities here. The graph module itself must be provisioned * separately with the merkle store dependency resolved. * Example: graphs := '[{}]'::jsonb */ @@ -6828,8 +7539,11 @@ export interface EntityTypeProvisionPatch { hasLimits?: boolean; /** * Whether to provision profiles_module for this type. Defaults to false. - * Profiles provide named permission roles (e.g. 'Editor', 'Viewer') with pre-configured permission bitmasks. - * When true, creates profile tables and applies profiles security. + * Profiles provide named capability roles (e.g. 'Editor', 'Viewer') with pre-configured capability bitmasks. + * When true, creates profile tables and applies profiles security. A membership may hold + * any number of profiles: the membership_profiles assignment table holds every profile a + * membership holds and the membership mask is granted | bit_or(held profile masks), with + * memberships.profile_id kept as a pointer at one held profile. */ hasProfiles?: boolean; /** Unique identifier for this provision row. */ @@ -6856,7 +7570,7 @@ export interface EntityTypeProvisionPatch { * - policies (jsonb array) RLS policy overrides. NULL = apply defaults from apply_namespace_security(). * Creates {prefix}_namespaces (or {prefix}_{key}_namespaces for non-default keys) * with entity-scoped RLS (AuthzEntityMembership) and a rename proxy trigger. - * Registers manage_namespaces permission bit on first provision. + * Registers manage_namespaces capability bit on first provision. * Example: namespaces := '[{}]'::jsonb */ namespaces?: unknown; @@ -6878,7 +7592,7 @@ export interface EntityTypeProvisionPatch { outGraphModuleId?: string; outGraphsTableId?: string; /** - * Output: array of installed module labels (e.g. ARRAY['permissions_module:data_room', 'memberships_module:data_room', 'invites_module:data_room']). + * Output: array of installed module labels (e.g. ARRAY['capabilities_module:data_room', 'memberships_module:data_room', 'invites_module:data_room']). * Populated by the trigger. Useful for verifying which modules were provisioned. */ outInstalledModules?: string[]; @@ -6922,7 +7636,7 @@ export interface EntityTypeProvisionPatch { parentEntity?: string; /** * SQL prefix used for table and module naming, e.g. 'data_room', 'team_channel'. Required. - * Drives entity table name (prefix || 's' by default), module labels (permissions_module:prefix), + * Drives entity table name (prefix || 's' by default), module labels (capabilities_module:prefix), * and membership table names (prefix_memberships, prefix_members, etc.). * Must be unique per database — the (database_id, prefix) constraint ensures graceful ON CONFLICT DO NOTHING. */ @@ -6936,8 +7650,8 @@ export interface EntityTypeProvisionPatch { * Defaults (applied when table_provision IS NULL and skip_entity_policies=false): * - SELECT (parent_member): parent entity members can see child entities (only when is_visible=true) * - SELECT (self_member): direct members of the entity can see it - * - INSERT: create_entity permission on the parent entity - * - UPDATE: admin_entity permission on the entity itself + * - INSERT: create_entity capability on the parent entity + * - UPDATE: admin_entity capability on the entity itself * - DELETE: owner of the entity can delete it */ skipEntityPolicies?: boolean; @@ -6956,7 +7670,7 @@ export interface EntityTypeProvisionPatch { * - 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 + * - restrict_reads (boolean) require read_files capability 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 @@ -6982,7 +7696,7 @@ export interface EntityTypeProvisionPatch { tableName?: string; /** * Single jsonb object describing the full security setup to apply to the entity table. - * Uses the same vocabulary as metaschema_modules_public.provision_table() and blueprint tables[] + * Uses the same vocabulary as metaschema_modules_private.provision_table() and blueprint tables[] * entries, so an entity table is configured the same way an ordinary blueprint table is. * Defaults to NULL; when non-NULL, the five default policies are implicitly replaced by * table_provision.policies[] (is_visible becomes a no-op on this path). @@ -7027,8 +7741,8 @@ export interface EventsModuleFilter { apiName?: StringFilter; /** Filter by the object’s `databaseId` field. */ databaseId?: UUIDFilter; - /** Filter by the object’s `defaultPermissions` field. */ - defaultPermissions?: StringListFilter; + /** Filter by the object’s `defaultCapabilities` field. */ + defaultCapabilities?: StringListFilter; /** Filter by the object’s `entityField` field. */ entityField?: StringFilter; /** Filter by the object’s `entityTableId` field. */ @@ -7045,6 +7759,8 @@ export interface EventsModuleFilter { eventsTableId?: UUIDFilter; /** Filter by the object’s `eventsTableName` field. */ eventsTableName?: StringFilter; + /** Filter by the object’s `expireGrants` field. */ + expireGrants?: StringFilter; /** Filter by the object’s `grantAchievement` field. */ grantAchievement?: StringFilter; /** Filter by the object’s `id` field. */ @@ -7081,12 +7797,16 @@ export interface EventsModuleFilter { privateSchemaName?: StringFilter; /** Filter by the object’s `publicSchemaName` field. */ publicSchemaName?: StringFilter; + /** Filter by the object’s `recomputeCapabilities` field. */ + recomputeCapabilities?: StringFilter; /** Filter by the object’s `recordEvent` field. */ recordEvent?: StringFilter; /** Filter by the object’s `removeEvent` field. */ removeEvent?: StringFilter; /** Filter by the object’s `retention` field. */ retention?: StringFilter; + /** Filter by the object’s `revokeAchievement` field. */ + revokeAchievement?: StringFilter; /** Filter by the object’s `schemaId` field. */ schemaId?: UUIDFilter; /** Filter by the object’s `scope` field. */ @@ -7105,8 +7825,12 @@ export interface EventsModuleFilter { tgEventToggle?: StringFilter; /** Filter by the object’s `tgEventToggleBool` field. */ tgEventToggleBool?: StringFilter; + /** Filter by the object’s `tgLevelGrantSync` field. */ + tgLevelGrantSync?: StringFilter; /** Filter by the object’s `tgUpdateAggregates` field. */ tgUpdateAggregates?: StringFilter; + /** Filter by the object’s `trustLadder` field. */ + trustLadder?: JSONFilter; /** Filter by the object’s `upsertAggregate` field. */ upsertAggregate?: StringFilter; } @@ -7117,7 +7841,7 @@ export interface EventsModuleInput { actorTableId?: string; apiName?: string; databaseId: string; - defaultPermissions?: string[]; + defaultCapabilities?: string[]; entityField?: string; entityTableId?: string; eventAggregatesTableId?: string; @@ -7126,6 +7850,7 @@ export interface EventsModuleInput { eventTypesTableName?: string; eventsTableId?: string; eventsTableName?: string; + expireGrants?: string; grantAchievement?: string; id?: string; interval?: string; @@ -7142,9 +7867,11 @@ export interface EventsModuleInput { privateSchemaId?: string; privateSchemaName?: string; publicSchemaName?: string; + recomputeCapabilities?: string; recordEvent?: string; removeEvent?: string; retention?: string; + revokeAchievement?: string; schemaId?: string; scope: string; stepsRequired?: string; @@ -7154,7 +7881,9 @@ export interface EventsModuleInput { tgEventBool?: string; tgEventToggle?: string; tgEventToggleBool?: string; + tgLevelGrantSync?: string; tgUpdateAggregates?: string; + trustLadder?: unknown; upsertAggregate?: string; } /** Represents an update to a `EventsModule`. Fields that are set will be updated. */ @@ -7164,7 +7893,7 @@ export interface EventsModulePatch { actorTableId?: string; apiName?: string; databaseId?: string; - defaultPermissions?: string[]; + defaultCapabilities?: string[]; entityField?: string; entityTableId?: string; eventAggregatesTableId?: string; @@ -7173,6 +7902,7 @@ export interface EventsModulePatch { eventTypesTableName?: string; eventsTableId?: string; eventsTableName?: string; + expireGrants?: string; grantAchievement?: string; id?: string; interval?: string; @@ -7189,9 +7919,11 @@ export interface EventsModulePatch { privateSchemaId?: string; privateSchemaName?: string; publicSchemaName?: string; + recomputeCapabilities?: string; recordEvent?: string; removeEvent?: string; retention?: string; + revokeAchievement?: string; schemaId?: string; scope?: string; stepsRequired?: string; @@ -7201,9 +7933,64 @@ export interface EventsModulePatch { tgEventBool?: string; tgEventToggle?: string; tgEventToggleBool?: string; + tgLevelGrantSync?: string; tgUpdateAggregates?: string; + trustLadder?: unknown; upsertAggregate?: string; } +/** A filter to be used against `FileRefField` object types. All fields are combined with a logical ‘and.’ */ +export interface FileRefFieldFilter { + /** Checks for all expressions in this list. */ + and?: FileRefFieldFilter[]; + /** Filter by the object’s `bucketKey` field. */ + bucketKey?: StringFilter; + /** Filter by the object’s `bucketTags` field. */ + bucketTags?: StringListFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `enforceFk` field. */ + enforceFk?: BooleanFilter; + /** Filter by the object’s `fieldId` field. */ + fieldId?: UUIDFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `isPublic` field. */ + isPublic?: BooleanFilter; + /** Negates the expression. */ + not?: FileRefFieldFilter; + /** Checks for any expressions in this list. */ + or?: FileRefFieldFilter[]; + /** Filter by the object’s `storageModule` relation. */ + storageModule?: StorageModuleFilter; + /** Filter by the object’s `storageModuleId` field. */ + storageModuleId?: UUIDFilter; + /** Filter by the object’s `tableId` field. */ + tableId?: UUIDFilter; +} +/** An input for mutations affecting `FileRefField` */ +export interface FileRefFieldInput { + bucketKey?: string; + bucketTags?: string[]; + databaseId: string; + enforceFk?: boolean; + fieldId: string; + id?: string; + isPublic?: boolean; + storageModuleId: string; + tableId: string; +} +/** Represents an update to a `FileRefField`. Fields that are set will be updated. */ +export interface FileRefFieldPatch { + bucketKey?: string; + bucketTags?: string[]; + databaseId?: string; + enforceFk?: boolean; + fieldId?: string; + id?: string; + isPublic?: boolean; + storageModuleId?: string; + tableId?: string; +} /** A filter to be used against `FunctionDeploymentModule` object types. All fields are combined with a logical ‘and.’ */ export interface FunctionDeploymentModuleFilter { /** Checks for all expressions in this list. */ @@ -7212,8 +7999,8 @@ export interface FunctionDeploymentModuleFilter { apiName?: StringFilter; /** Filter by the object’s `databaseId` field. */ databaseId?: UUIDFilter; - /** Filter by the object’s `defaultPermissions` field. */ - defaultPermissions?: StringListFilter; + /** Filter by the object’s `defaultCapabilities` field. */ + defaultCapabilities?: StringListFilter; /** Filter by the object’s `deploymentEventsTableId` field. */ deploymentEventsTableId?: UUIDFilter; /** Filter by the object’s `deploymentEventsTableName` field. */ @@ -7267,7 +8054,7 @@ export interface FunctionDeploymentModuleFilter { export interface FunctionDeploymentModuleInput { apiName?: string; databaseId: string; - defaultPermissions?: string[]; + defaultCapabilities?: string[]; deploymentEventsTableId?: string; deploymentEventsTableName?: string; deploymentsTableId?: string; @@ -7291,7 +8078,7 @@ export interface FunctionDeploymentModuleInput { export interface FunctionDeploymentModulePatch { apiName?: string; databaseId?: string; - defaultPermissions?: string[]; + defaultCapabilities?: string[]; deploymentEventsTableId?: string; deploymentEventsTableName?: string; deploymentsTableId?: string; @@ -7323,8 +8110,8 @@ export interface FunctionInvocationModuleFilter { attemptsTableName?: StringFilter; /** Filter by the object’s `databaseId` field. */ databaseId?: UUIDFilter; - /** Filter by the object’s `defaultPermissions` field. */ - defaultPermissions?: StringListFilter; + /** Filter by the object’s `defaultCapabilities` field. */ + defaultCapabilities?: StringListFilter; /** Filter by the object’s `entityField` field. */ entityField?: StringFilter; /** Filter by the object’s `entityTableId` field. */ @@ -7372,7 +8159,7 @@ export interface FunctionInvocationModuleInput { attemptsTableId?: string; attemptsTableName?: string; databaseId: string; - defaultPermissions?: string[]; + defaultCapabilities?: string[]; entityField?: string; entityTableId?: string; executionLogsTableId?: string; @@ -7396,7 +8183,7 @@ export interface FunctionInvocationModulePatch { attemptsTableId?: string; attemptsTableName?: string; databaseId?: string; - defaultPermissions?: string[]; + defaultCapabilities?: string[]; entityField?: string; entityTableId?: string; executionLogsTableId?: string; @@ -7437,8 +8224,8 @@ export interface FunctionModuleFilter { capabilityBindingsTableId?: UUIDFilter; /** Filter by the object’s `databaseId` field. */ databaseId?: UUIDFilter; - /** Filter by the object’s `defaultPermissions` field. */ - defaultPermissions?: StringListFilter; + /** Filter by the object’s `defaultCapabilities` field. */ + defaultCapabilities?: StringListFilter; /** Filter by the object’s `definitionsTableId` field. */ definitionsTableId?: UUIDFilter; /** Filter by the object’s `definitionsTableName` field. */ @@ -7495,7 +8282,7 @@ export interface FunctionModuleInput { bindingsTableName?: string; capabilityBindingsTableId?: string; databaseId: string; - defaultPermissions?: string[]; + defaultCapabilities?: string[]; definitionsTableId?: string; definitionsTableName?: string; entityField?: string; @@ -7520,7 +8307,7 @@ export interface FunctionModulePatch { bindingsTableName?: string; capabilityBindingsTableId?: string; databaseId?: string; - defaultPermissions?: string[]; + defaultCapabilities?: string[]; definitionsTableId?: string; definitionsTableName?: string; entityField?: string; @@ -7575,8 +8362,8 @@ export interface GraphExecutionModuleFilter { createdAt?: DatetimeFilter; /** Filter by the object’s `databaseId` field. */ databaseId?: UUIDFilter; - /** Filter by the object’s `defaultPermissions` field. */ - defaultPermissions?: StringListFilter; + /** Filter by the object’s `defaultCapabilities` field. */ + defaultCapabilities?: StringListFilter; /** Filter by the object’s `entityField` field. */ entityField?: StringFilter; /** Filter by the object’s `entityTableId` field. */ @@ -7627,7 +8414,7 @@ export interface GraphExecutionModuleInput { apiName?: string; createdAt?: string; databaseId: string; - defaultPermissions?: string[]; + defaultCapabilities?: string[]; entityField?: string; entityTableId?: string; executionsTableId?: string; @@ -7653,7 +8440,7 @@ export interface GraphExecutionModulePatch { apiName?: string; createdAt?: string; databaseId?: string; - defaultPermissions?: string[]; + defaultCapabilities?: string[]; entityField?: string; entityTableId?: string; executionsTableId?: string; @@ -7684,8 +8471,8 @@ export interface GraphModuleFilter { createdAt?: DatetimeFilter; /** Filter by the object’s `databaseId` field. */ databaseId?: UUIDFilter; - /** Filter by the object’s `defaultPermissions` field. */ - defaultPermissions?: StringListFilter; + /** Filter by the object’s `defaultCapabilities` field. */ + defaultCapabilities?: StringListFilter; /** Filter by the object’s `entityField` field. */ entityField?: StringFilter; /** Filter by the object’s `entityTableId` field. */ @@ -7730,7 +8517,7 @@ export interface GraphModuleInput { apiName?: string; createdAt?: string; databaseId: string; - defaultPermissions?: string[]; + defaultCapabilities?: string[]; entityField?: string; entityTableId?: string; graphsTableId?: string; @@ -7751,7 +8538,7 @@ export interface GraphModulePatch { apiName?: string; createdAt?: string; databaseId?: string; - defaultPermissions?: string[]; + defaultCapabilities?: string[]; entityField?: string; entityTableId?: string; graphsTableId?: string; @@ -7792,8 +8579,8 @@ export interface HierarchyModuleFilter { createdAt?: DatetimeFilter; /** Filter by the object’s `databaseId` field. */ databaseId?: UUIDFilter; - /** Filter by the object’s `defaultPermissions` field. */ - defaultPermissions?: StringListFilter; + /** Filter by the object’s `defaultCapabilities` field. */ + defaultCapabilities?: StringListFilter; /** Filter by the object’s `entityField` field. */ entityField?: StringFilter; /** Filter by the object’s `entityTableId` field. */ @@ -7839,7 +8626,7 @@ export interface HierarchyModuleInput { chartEdgesTableName?: string; createdAt?: string; databaseId: string; - defaultPermissions?: string[]; + defaultCapabilities?: string[]; entityField?: string; entityTableId: string; getManagersFunction?: string; @@ -7865,7 +8652,7 @@ export interface HierarchyModulePatch { chartEdgesTableName?: string; createdAt?: string; databaseId?: string; - defaultPermissions?: string[]; + defaultCapabilities?: string[]; entityField?: string; entityTableId?: string; getManagersFunction?: string; @@ -7891,8 +8678,8 @@ export interface HttpRouteModuleFilter { apiName?: StringFilter; /** Filter by the object’s `databaseId` field. */ databaseId?: UUIDFilter; - /** Filter by the object’s `defaultPermissions` field. */ - defaultPermissions?: StringListFilter; + /** Filter by the object’s `defaultCapabilities` field. */ + defaultCapabilities?: StringListFilter; /** Filter by the object’s `entityField` field. */ entityField?: StringFilter; /** Filter by the object’s `entityTableId` field. */ @@ -7950,7 +8737,7 @@ export interface HttpRouteModuleFilter { export interface HttpRouteModuleInput { apiName?: string; databaseId: string; - defaultPermissions?: string[]; + defaultCapabilities?: string[]; entityField?: string; entityTableId?: string; functionModuleId?: string; @@ -7974,7 +8761,7 @@ export interface HttpRouteModuleInput { export interface HttpRouteModulePatch { apiName?: string; databaseId?: string; - defaultPermissions?: string[]; + defaultCapabilities?: string[]; entityField?: string; entityTableId?: string; functionModuleId?: string; @@ -8748,6 +9535,8 @@ export interface LimitsModuleFilter { limitDecrementFunction?: StringFilter; /** Filter by the object’s `limitDecrementTrigger` field. */ limitDecrementTrigger?: StringFilter; + /** Filter by the object’s `limitDefaults` field. */ + limitDefaults?: JSONFilter; /** Filter by the object’s `limitIncrementFunction` field. */ limitIncrementFunction?: StringFilter; /** Filter by the object’s `limitIncrementTrigger` field. */ @@ -8807,6 +9596,7 @@ export interface LimitsModuleInput { limitCreditsTableId?: string; limitDecrementFunction?: string; limitDecrementTrigger?: string; + limitDefaults?: unknown; limitIncrementFunction?: string; limitIncrementTrigger?: string; limitUpdateTrigger?: string; @@ -8847,6 +9637,7 @@ export interface LimitsModulePatch { limitCreditsTableId?: string; limitDecrementFunction?: string; limitDecrementTrigger?: string; + limitDefaults?: unknown; limitIncrementFunction?: string; limitIncrementTrigger?: string; limitUpdateTrigger?: string; @@ -8914,12 +9705,18 @@ export interface MembershipsModuleFilter { and?: MembershipsModuleFilter[]; /** Filter by the object’s `apiName` field. */ apiName?: StringFilter; + /** Filter by the object’s `capabilitiesTableId` field. */ + capabilitiesTableId?: UUIDFilter; + /** Filter by the object’s `capabilityDefaultCapabilitiesTableId` field. */ + capabilityDefaultCapabilitiesTableId?: UUIDFilter; + /** Filter by the object’s `capabilityDefaultGrantsTableId` field. */ + capabilityDefaultGrantsTableId?: UUIDFilter; /** Filter by the object’s `databaseId` field. */ databaseId?: UUIDFilter; + /** Filter by the object’s `defaultCapabilitiesTableId` field. */ + defaultCapabilitiesTableId?: UUIDFilter; /** Filter by the object’s `defaultLimitsTableId` field. */ defaultLimitsTableId?: UUIDFilter; - /** Filter by the object’s `defaultPermissionsTableId` field. */ - defaultPermissionsTableId?: UUIDFilter; /** Filter by the object’s `entityField` field. */ entityField?: StringFilter; /** Filter by the object’s `entityIdsByMask` field. */ @@ -8968,12 +9765,6 @@ export interface MembershipsModuleFilter { ownerGrantsTableId?: UUIDFilter; /** Filter by the object’s `ownerGrantsTableName` field. */ ownerGrantsTableName?: StringFilter; - /** Filter by the object’s `permissionDefaultGrantsTableId` field. */ - permissionDefaultGrantsTableId?: UUIDFilter; - /** Filter by the object’s `permissionDefaultPermissionsTableId` field. */ - permissionDefaultPermissionsTableId?: UUIDFilter; - /** Filter by the object’s `permissionsTableId` field. */ - permissionsTableId?: UUIDFilter; /** Filter by the object’s `prefix` field. */ prefix?: StringFilter; /** Filter by the object’s `privateApiName` field. */ @@ -8999,9 +9790,12 @@ export interface MembershipsModuleInput { adminGrantsTableId?: string; adminGrantsTableName?: string; apiName?: string; + capabilitiesTableId?: string; + capabilityDefaultCapabilitiesTableId?: string; + capabilityDefaultGrantsTableId?: string; databaseId: string; + defaultCapabilitiesTableId?: string; defaultLimitsTableId?: string; - defaultPermissionsTableId?: string; entityField?: string; entityIdsByMask?: string; entityIdsByPerm?: string; @@ -9024,9 +9818,6 @@ export interface MembershipsModuleInput { membershipsTableName?: string; ownerGrantsTableId?: string; ownerGrantsTableName?: string; - permissionDefaultGrantsTableId?: string; - permissionDefaultPermissionsTableId?: string; - permissionsTableId?: string; prefix?: string; privateApiName?: string; privateSchemaId?: string; @@ -9044,9 +9835,12 @@ export interface MembershipsModulePatch { adminGrantsTableId?: string; adminGrantsTableName?: string; apiName?: string; + capabilitiesTableId?: string; + capabilityDefaultCapabilitiesTableId?: string; + capabilityDefaultGrantsTableId?: string; databaseId?: string; + defaultCapabilitiesTableId?: string; defaultLimitsTableId?: string; - defaultPermissionsTableId?: string; entityField?: string; entityIdsByMask?: string; entityIdsByPerm?: string; @@ -9069,9 +9863,6 @@ export interface MembershipsModulePatch { membershipsTableName?: string; ownerGrantsTableId?: string; ownerGrantsTableName?: string; - permissionDefaultGrantsTableId?: string; - permissionDefaultPermissionsTableId?: string; - permissionsTableId?: string; prefix?: string; privateApiName?: string; privateSchemaId?: string; @@ -9087,8 +9878,14 @@ export interface MerkleStoreModuleFilter { and?: MerkleStoreModuleFilter[]; /** Filter by the object’s `apiName` field. */ apiName?: StringFilter; + /** Filter by the object’s `capabilityKey` field. */ + capabilityKey?: StringFilter; /** Filter by the object’s `commitTableId` field. */ commitTableId?: UUIDFilter; + /** Filter by the object’s `contentPresetModules` relation. */ + contentPresetModules?: MerkleStoreModuleToManyContentPresetModuleFilter; + /** `contentPresetModules` exist. */ + contentPresetModulesExist?: boolean; /** Filter by the object’s `createdAt` field. */ createdAt?: DatetimeFilter; /** Filter by the object’s `databaseId` field. */ @@ -9117,8 +9914,6 @@ export interface MerkleStoreModuleFilter { pagesModules?: MerkleStoreModuleToManyPagesModuleFilter; /** `pagesModules` exist. */ pagesModulesExist?: boolean; - /** Filter by the object’s `permissionKey` field. */ - permissionKey?: StringFilter; /** Filter by the object’s `prefix` field. */ prefix?: StringFilter; /** Filter by the object’s `privateApiName` field. */ @@ -9145,6 +9940,7 @@ export interface MerkleStoreModuleFilter { /** An input for mutations affecting `MerkleStoreModule` */ export interface MerkleStoreModuleInput { apiName?: string; + capabilityKey?: string; commitTableId?: string; createdAt?: string; databaseId: string; @@ -9152,7 +9948,6 @@ export interface MerkleStoreModuleInput { functionPrefix?: string; id?: string; objectTableId?: string; - permissionKey?: string; prefix?: string; privateApiName?: string; privateSchemaId?: string; @@ -9166,6 +9961,7 @@ export interface MerkleStoreModuleInput { /** Represents an update to a `MerkleStoreModule`. Fields that are set will be updated. */ export interface MerkleStoreModulePatch { apiName?: string; + capabilityKey?: string; commitTableId?: string; createdAt?: string; databaseId?: string; @@ -9173,7 +9969,6 @@ export interface MerkleStoreModulePatch { functionPrefix?: string; id?: string; objectTableId?: string; - permissionKey?: string; prefix?: string; privateApiName?: string; privateSchemaId?: string; @@ -9184,6 +9979,15 @@ export interface MerkleStoreModulePatch { scope?: string; storeTableId?: string; } +/** A filter to be used against many `ContentPresetModule` object types. All fields are combined with a logical ‘and.’ */ +export interface MerkleStoreModuleToManyContentPresetModuleFilter { + /** Filters to entities where every related entity matches. */ + every?: ContentPresetModuleFilter; + /** Filters to entities where no related entity matches. */ + none?: ContentPresetModuleFilter; + /** Filters to entities where at least one related entity matches. */ + some?: ContentPresetModuleFilter; +} /** A filter to be used against many `DbPresetModule` object types. All fields are combined with a logical ‘and.’ */ export interface MerkleStoreModuleToManyDbPresetModuleFilter { /** Filters to entities where every related entity matches. */ @@ -9228,8 +10032,8 @@ export interface NamespaceModuleFilter { apiName?: StringFilter; /** Filter by the object’s `databaseId` field. */ databaseId?: UUIDFilter; - /** Filter by the object’s `defaultPermissions` field. */ - defaultPermissions?: StringListFilter; + /** Filter by the object’s `defaultCapabilities` field. */ + defaultCapabilities?: StringListFilter; /** Filter by the object’s `entityField` field. */ entityField?: StringFilter; /** Filter by the object’s `entityTableId` field. */ @@ -9283,7 +10087,7 @@ export interface NamespaceModuleFilter { export interface NamespaceModuleInput { apiName?: string; databaseId: string; - defaultPermissions?: string[]; + defaultCapabilities?: string[]; entityField?: string; entityTableId?: string; id?: string; @@ -9305,7 +10109,7 @@ export interface NamespaceModuleInput { export interface NamespaceModulePatch { apiName?: string; databaseId?: string; - defaultPermissions?: string[]; + defaultCapabilities?: string[]; entityField?: string; entityTableId?: string; id?: string; @@ -9360,8 +10164,8 @@ export interface NotificationsModuleFilter { channelsTableId?: UUIDFilter; /** Filter by the object’s `databaseId` field. */ databaseId?: UUIDFilter; - /** Filter by the object’s `defaultPermissions` field. */ - defaultPermissions?: StringListFilter; + /** Filter by the object’s `defaultCapabilities` field. */ + defaultCapabilities?: StringListFilter; /** Filter by the object’s `deliveryLogTableId` field. */ deliveryLogTableId?: UUIDFilter; /** Filter by the object’s `entityField` field. */ @@ -9412,7 +10216,7 @@ export interface NotificationsModuleInput { apiName?: string; channelsTableId?: string; databaseId: string; - defaultPermissions?: string[]; + defaultCapabilities?: string[]; deliveryLogTableId?: string; entityField?: string; hasChannels?: boolean; @@ -9439,7 +10243,7 @@ export interface NotificationsModulePatch { apiName?: string; channelsTableId?: string; databaseId?: string; - defaultPermissions?: string[]; + defaultCapabilities?: string[]; deliveryLogTableId?: string; entityField?: string; hasChannels?: boolean; @@ -9461,6 +10265,69 @@ export interface NotificationsModulePatch { suppressionsTableId?: string; userSettingsTableId?: string; } +/** A filter to be used against `OauthRequestsModule` object types. All fields are combined with a logical ‘and.’ */ +export interface OauthRequestsModuleFilter { + /** Checks for all expressions in this list. */ + and?: OauthRequestsModuleFilter[]; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `entityField` field. */ + entityField?: StringFilter; + /** Filter by the object’s `entityTableId` field. */ + entityTableId?: UUIDFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Negates the expression. */ + not?: OauthRequestsModuleFilter; + /** Filter by the object’s `oauthAuthorizationRequestsTableId` field. */ + oauthAuthorizationRequestsTableId?: UUIDFilter; + /** Filter by the object’s `oauthAuthorizationRequestsTableName` field. */ + oauthAuthorizationRequestsTableName?: StringFilter; + /** Checks for any expressions in this list. */ + or?: OauthRequestsModuleFilter[]; + /** Filter by the object’s `pendingIdentityLinksTableId` field. */ + pendingIdentityLinksTableId?: UUIDFilter; + /** Filter by the object’s `pendingIdentityLinksTableName` field. */ + pendingIdentityLinksTableName?: StringFilter; + /** Filter by the object’s `prefix` field. */ + prefix?: StringFilter; + /** Filter by the object’s `privateSchemaId` field. */ + privateSchemaId?: UUIDFilter; + /** Filter by the object’s `privateSchemaName` field. */ + privateSchemaName?: StringFilter; + /** Filter by the object’s `scope` field. */ + scope?: StringFilter; +} +/** An input for mutations affecting `OauthRequestsModule` */ +export interface OauthRequestsModuleInput { + databaseId: string; + entityField?: string; + entityTableId?: string; + id?: string; + oauthAuthorizationRequestsTableId?: string; + oauthAuthorizationRequestsTableName?: string; + pendingIdentityLinksTableId?: string; + pendingIdentityLinksTableName?: string; + prefix?: string; + privateSchemaId?: string; + privateSchemaName?: string; + scope: string; +} +/** Represents an update to a `OauthRequestsModule`. Fields that are set will be updated. */ +export interface OauthRequestsModulePatch { + databaseId?: string; + entityField?: string; + entityTableId?: string; + id?: string; + oauthAuthorizationRequestsTableId?: string; + oauthAuthorizationRequestsTableName?: string; + pendingIdentityLinksTableId?: string; + pendingIdentityLinksTableName?: string; + prefix?: string; + privateSchemaId?: string; + privateSchemaName?: string; + scope?: string; +} /** A filter to be used against `PagesModule` object types. All fields are combined with a logical ‘and.’ */ export interface PagesModuleFilter { /** Checks for all expressions in this list. */ @@ -9558,109 +10425,6 @@ export interface PagesModulePatch { sitesTableId?: string; storeNamePrefix?: string; } -/** A filter to be used against `PermissionsModule` object types. All fields are combined with a logical ‘and.’ */ -export interface PermissionsModuleFilter { - /** Filter by the object’s `actorTableId` field. */ - actorTableId?: UUIDFilter; - /** Checks for all expressions in this list. */ - and?: PermissionsModuleFilter[]; - /** Filter by the object’s `apiName` field. */ - apiName?: StringFilter; - /** Filter by the object’s `bitlen` field. */ - bitlen?: IntFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Filter by the object’s `defaultTableId` field. */ - defaultTableId?: UUIDFilter; - /** Filter by the object’s `defaultTableName` field. */ - defaultTableName?: StringFilter; - /** Filter by the object’s `entityField` field. */ - entityField?: StringFilter; - /** Filter by the object’s `entityTableId` field. */ - entityTableId?: UUIDFilter; - /** Filter by the object’s `getByMask` field. */ - getByMask?: StringFilter; - /** Filter by the object’s `getMask` field. */ - getMask?: StringFilter; - /** Filter by the object’s `getMaskByName` field. */ - getMaskByName?: StringFilter; - /** Filter by the object’s `getPaddedMask` field. */ - getPaddedMask?: StringFilter; - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Negates the expression. */ - not?: PermissionsModuleFilter; - /** Checks for any expressions in this list. */ - or?: PermissionsModuleFilter[]; - /** Filter by the object’s `prefix` field. */ - prefix?: StringFilter; - /** Filter by the object’s `privateApiName` field. */ - privateApiName?: StringFilter; - /** Filter by the object’s `privateSchemaId` field. */ - privateSchemaId?: UUIDFilter; - /** Filter by the object’s `privateSchemaName` field. */ - privateSchemaName?: StringFilter; - /** Filter by the object’s `publicSchemaName` field. */ - publicSchemaName?: StringFilter; - /** Filter by the object’s `schemaId` field. */ - schemaId?: UUIDFilter; - /** Filter by the object’s `scope` field. */ - scope?: StringFilter; - /** Filter by the object’s `tableId` field. */ - tableId?: UUIDFilter; - /** Filter by the object’s `tableName` field. */ - tableName?: StringFilter; -} -/** An input for mutations affecting `PermissionsModule` */ -export interface PermissionsModuleInput { - actorTableId?: string; - apiName?: string; - bitlen?: number; - databaseId: string; - defaultTableId?: string; - defaultTableName?: string; - entityField?: string; - entityTableId?: string; - getByMask?: string; - getMask?: string; - getMaskByName?: string; - getPaddedMask?: string; - id?: string; - prefix?: string; - privateApiName?: string; - privateSchemaId?: string; - privateSchemaName?: string; - publicSchemaName?: string; - schemaId?: string; - scope: string; - tableId?: string; - tableName?: string; -} -/** Represents an update to a `PermissionsModule`. Fields that are set will be updated. */ -export interface PermissionsModulePatch { - actorTableId?: string; - apiName?: string; - bitlen?: number; - databaseId?: string; - defaultTableId?: string; - defaultTableName?: string; - entityField?: string; - entityTableId?: string; - getByMask?: string; - getMask?: string; - getMaskByName?: string; - getPaddedMask?: string; - id?: string; - prefix?: string; - privateApiName?: string; - privateSchemaId?: string; - privateSchemaName?: string; - publicSchemaName?: string; - schemaId?: string; - scope?: string; - tableId?: string; - tableName?: string; -} /** A filter to be used against `PhoneNumbersModule` object types. All fields are combined with a logical ‘and.’ */ export interface PhoneNumbersModuleFilter { /** Checks for all expressions in this list. */ @@ -9906,6 +10670,8 @@ export interface ProfilesModuleFilter { and?: ProfilesModuleFilter[]; /** Filter by the object’s `apiName` field. */ apiName?: StringFilter; + /** Filter by the object’s `capabilitiesTableId` field. */ + capabilitiesTableId?: UUIDFilter; /** Filter by the object’s `databaseId` field. */ databaseId?: UUIDFilter; /** Filter by the object’s `entityField` field. */ @@ -9914,14 +10680,16 @@ export interface ProfilesModuleFilter { entityTableId?: UUIDFilter; /** Filter by the object’s `id` field. */ id?: UUIDFilter; + /** Filter by the object’s `membershipProfilesTableId` field. */ + membershipProfilesTableId?: UUIDFilter; + /** Filter by the object’s `membershipProfilesTableName` field. */ + membershipProfilesTableName?: StringFilter; /** Filter by the object’s `membershipsTableId` field. */ membershipsTableId?: UUIDFilter; /** Negates the expression. */ not?: ProfilesModuleFilter; /** Checks for any expressions in this list. */ or?: ProfilesModuleFilter[]; - /** Filter by the object’s `permissionsTableId` field. */ - permissionsTableId?: UUIDFilter; /** Filter by the object’s `prefix` field. */ prefix?: StringFilter; /** Filter by the object’s `privateApiName` field. */ @@ -9930,6 +10698,10 @@ export interface ProfilesModuleFilter { privateSchemaId?: UUIDFilter; /** Filter by the object’s `privateSchemaName` field. */ privateSchemaName?: StringFilter; + /** Filter by the object’s `profileCapabilitiesTableId` field. */ + profileCapabilitiesTableId?: UUIDFilter; + /** Filter by the object’s `profileCapabilitiesTableName` field. */ + profileCapabilitiesTableName?: StringFilter; /** Filter by the object’s `profileDefinitionGrantsTableId` field. */ profileDefinitionGrantsTableId?: UUIDFilter; /** Filter by the object’s `profileDefinitionGrantsTableName` field. */ @@ -9938,10 +10710,6 @@ export interface ProfilesModuleFilter { profileGrantsTableId?: UUIDFilter; /** Filter by the object’s `profileGrantsTableName` field. */ profileGrantsTableName?: StringFilter; - /** Filter by the object’s `profilePermissionsTableId` field. */ - profilePermissionsTableId?: UUIDFilter; - /** Filter by the object’s `profilePermissionsTableName` field. */ - profilePermissionsTableName?: StringFilter; /** Filter by the object’s `profileTemplatesTableId` field. */ profileTemplatesTableId?: UUIDFilter; /** Filter by the object’s `profileTemplatesTableName` field. */ @@ -9961,139 +10729,70 @@ export interface ProfilesModuleFilter { export interface ProfilesModuleInput { actorTableId?: string; apiName?: string; + capabilitiesTableId?: string; databaseId: string; entityField?: string; entityTableId?: string; id?: string; - membershipsTableId?: string; - permissionsTableId?: string; - prefix?: string; - privateApiName?: string; - privateSchemaId?: string; - privateSchemaName?: string; - profileDefinitionGrantsTableId?: string; - profileDefinitionGrantsTableName?: string; - profileGrantsTableId?: string; - profileGrantsTableName?: string; - profilePermissionsTableId?: string; - profilePermissionsTableName?: string; - profileTemplatesTableId?: string; - profileTemplatesTableName?: string; - publicSchemaName?: string; - schemaId?: string; - scope: string; - tableId?: string; - tableName?: string; -} -/** Represents an update to a `ProfilesModule`. Fields that are set will be updated. */ -export interface ProfilesModulePatch { - actorTableId?: string; - apiName?: string; - databaseId?: string; - entityField?: string; - entityTableId?: string; - id?: string; - membershipsTableId?: string; - permissionsTableId?: string; - prefix?: string; - privateApiName?: string; - privateSchemaId?: string; - privateSchemaName?: string; - profileDefinitionGrantsTableId?: string; - profileDefinitionGrantsTableName?: string; - profileGrantsTableId?: string; - profileGrantsTableName?: string; - profilePermissionsTableId?: string; - profilePermissionsTableName?: string; - profileTemplatesTableId?: string; - profileTemplatesTableName?: string; - publicSchemaName?: string; - schemaId?: string; - scope?: string; - tableId?: string; - tableName?: string; -} -export interface ProvisionBucketInput { - /** The logical bucket key (e.g., "public", "private") */ - bucketKey: string; - /** - * Owner entity ID for entity-scoped bucket provisioning. - * Omit for app-level (database-wide) storage. - */ - ownerId?: string; -} -export interface ProvisionCheckConstraintInput { - clientMutationId?: string; - databaseId?: string; - definition?: unknown; - tableId?: string; -} -export interface ProvisionFullTextSearchInput { - clientMutationId?: string; - databaseId?: string; - definition?: unknown; - tableId?: string; -} -export interface ProvisionIndexInput { - clientMutationId?: string; - databaseId?: string; - definition?: unknown; - tableId?: string; -} -export interface ProvisionRelationInput { - apiRequired?: boolean; - clientMutationId?: string; - createIndex?: boolean; - databaseId?: string; - deleteAction?: string; - exposeInApi?: boolean; - fieldName?: string; - grants?: unknown; - isRequired?: boolean; - junctionSchemaId?: string; - junctionTableId?: string; - junctionTableName?: string; - nodes?: unknown; - policies?: unknown; - relationType?: string; - sourceFieldName?: string; - sourceTableId?: string; - targetFieldName?: string; - targetTableId?: string; - useCompositeKey?: boolean; -} -export interface ProvisionSpatialRelationInput { - clientMutationId?: string; - databaseId?: string; - name?: string; - operator?: string; - paramName?: string; - sourceFieldId?: string; - sourceTableId?: string; - targetFieldId?: string; - targetTableId?: string; -} -export interface ProvisionTableInput { - clientMutationId?: string; - databaseId?: string; - description?: string; - fields?: unknown; - fullTextSearches?: unknown; - grants?: unknown; - indexes?: unknown; - nodes?: unknown; - policies?: unknown; + membershipProfilesTableId?: string; + membershipProfilesTableName?: string; + membershipsTableId?: string; + prefix?: string; + privateApiName?: string; + privateSchemaId?: string; + privateSchemaName?: string; + profileCapabilitiesTableId?: string; + profileCapabilitiesTableName?: string; + profileDefinitionGrantsTableId?: string; + profileDefinitionGrantsTableName?: string; + profileGrantsTableId?: string; + profileGrantsTableName?: string; + profileTemplatesTableId?: string; + profileTemplatesTableName?: string; + publicSchemaName?: string; schemaId?: string; + scope: string; tableId?: string; tableName?: string; - uniqueConstraints?: unknown; - useRls?: boolean; } -export interface ProvisionUniqueConstraintInput { - clientMutationId?: string; +/** Represents an update to a `ProfilesModule`. Fields that are set will be updated. */ +export interface ProfilesModulePatch { + actorTableId?: string; + apiName?: string; + capabilitiesTableId?: string; databaseId?: string; - definition?: unknown; + entityField?: string; + entityTableId?: string; + id?: string; + membershipProfilesTableId?: string; + membershipProfilesTableName?: string; + membershipsTableId?: string; + prefix?: string; + privateApiName?: string; + privateSchemaId?: string; + privateSchemaName?: string; + profileCapabilitiesTableId?: string; + profileCapabilitiesTableName?: string; + profileDefinitionGrantsTableId?: string; + profileDefinitionGrantsTableName?: string; + profileGrantsTableId?: string; + profileGrantsTableName?: string; + profileTemplatesTableId?: string; + profileTemplatesTableName?: string; + publicSchemaName?: string; + schemaId?: string; + scope?: string; tableId?: string; + tableName?: string; +} +export interface ProvisionBucketInput { + /** The logical bucket key (e.g., "public", "private") */ + bucketKey: string; + /** + * Owner entity ID for entity-scoped bucket provisioning. + * Omit for app-level (database-wide) storage. + */ + ownerId?: string; } /** A filter to be used against `RateLimitMetersModule` object types. All fields are combined with a logical ‘and.’ */ export interface RateLimitMetersModuleFilter { @@ -10105,8 +10804,8 @@ export interface RateLimitMetersModuleFilter { checkRateLimitFunction?: StringFilter; /** Filter by the object’s `databaseId` field. */ databaseId?: UUIDFilter; - /** Filter by the object’s `defaultPermissions` field. */ - defaultPermissions?: StringListFilter; + /** Filter by the object’s `defaultCapabilities` field. */ + defaultCapabilities?: StringListFilter; /** Filter by the object’s `id` field. */ id?: UUIDFilter; /** Negates the expression. */ @@ -10143,7 +10842,7 @@ export interface RateLimitMetersModuleInput { apiName?: string; checkRateLimitFunction?: string; databaseId: string; - defaultPermissions?: string[]; + defaultCapabilities?: string[]; id?: string; prefix?: string; privateApiName?: string; @@ -10163,7 +10862,7 @@ export interface RateLimitMetersModulePatch { apiName?: string; checkRateLimitFunction?: string; databaseId?: string; - defaultPermissions?: string[]; + defaultCapabilities?: string[]; id?: string; prefix?: string; privateApiName?: string; @@ -10613,8 +11312,8 @@ export interface ResourceModuleFilter { apiName?: StringFilter; /** Filter by the object’s `databaseId` field. */ databaseId?: UUIDFilter; - /** Filter by the object’s `defaultPermissions` field. */ - defaultPermissions?: StringListFilter; + /** Filter by the object’s `defaultCapabilities` field. */ + defaultCapabilities?: StringListFilter; /** Filter by the object’s `entityField` field. */ entityField?: StringFilter; /** Filter by the object’s `entityTableId` field. */ @@ -10702,7 +11401,7 @@ export interface ResourceModuleFilter { export interface ResourceModuleInput { apiName?: string; databaseId: string; - defaultPermissions?: string[]; + defaultCapabilities?: string[]; entityField?: string; entityTableId?: string; id?: string; @@ -10741,7 +11440,7 @@ export interface ResourceModuleInput { export interface ResourceModulePatch { apiName?: string; databaseId?: string; - defaultPermissions?: string[]; + defaultCapabilities?: string[]; entityField?: string; entityTableId?: string; id?: string; @@ -10858,6 +11557,8 @@ export interface RouteModuleFilter { and?: RouteModuleFilter[]; /** Filter by the object’s `apiName` field. */ apiName?: StringFilter; + /** Filter by the object’s `appLinksFunctionName` field. */ + appLinksFunctionName?: StringFilter; /** Filter by the object’s `catalogModule` relation. */ catalogModule?: CatalogModuleFilter; /** A related `catalogModule` exists. */ @@ -10866,8 +11567,10 @@ export interface RouteModuleFilter { catalogModuleId?: UUIDFilter; /** Filter by the object’s `databaseId` field. */ databaseId?: UUIDFilter; - /** Filter by the object’s `defaultPermissions` field. */ - defaultPermissions?: StringListFilter; + /** Filter by the object’s `deepLinkFunctionName` field. */ + deepLinkFunctionName?: StringFilter; + /** Filter by the object’s `defaultCapabilities` field. */ + defaultCapabilities?: StringListFilter; /** Filter by the object’s `domainModule` relation. */ domainModule?: DomainModuleFilter; /** A related `domainModule` exists. */ @@ -10920,9 +11623,11 @@ export interface RouteModuleFilter { /** An input for mutations affecting `RouteModule` */ export interface RouteModuleInput { apiName?: string; + appLinksFunctionName?: string; catalogModuleId?: string; databaseId: string; - defaultPermissions?: string[]; + deepLinkFunctionName?: string; + defaultCapabilities?: string[]; domainModuleId?: string; entityField?: string; entityTableId?: string; @@ -10947,9 +11652,11 @@ export interface RouteModuleInput { /** Represents an update to a `RouteModule`. Fields that are set will be updated. */ export interface RouteModulePatch { apiName?: string; + appLinksFunctionName?: string; catalogModuleId?: string; databaseId?: string; - defaultPermissions?: string[]; + deepLinkFunctionName?: string; + defaultCapabilities?: string[]; domainModuleId?: string; entityField?: string; entityTableId?: string; @@ -10971,6 +11678,41 @@ export interface RouteModulePatch { schemaId?: string; scope?: string; } +/** A filter to be used against `ScopeTypesModule` object types. All fields are combined with a logical ‘and.’ */ +export interface ScopeTypesModuleFilter { + /** Checks for all expressions in this list. */ + and?: ScopeTypesModuleFilter[]; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Negates the expression. */ + not?: ScopeTypesModuleFilter; + /** Checks for any expressions in this list. */ + or?: ScopeTypesModuleFilter[]; + /** Filter by the object’s `privateSchemaName` field. */ + privateSchemaName?: StringFilter; + /** Filter by the object’s `schemaId` field. */ + schemaId?: UUIDFilter; + /** Filter by the object’s `scopeTypesTableId` field. */ + scopeTypesTableId?: UUIDFilter; +} +/** An input for mutations affecting `ScopeTypesModule` */ +export interface ScopeTypesModuleInput { + databaseId: string; + id?: string; + privateSchemaName?: string; + schemaId?: string; + scopeTypesTableId?: string; +} +/** Represents an update to a `ScopeTypesModule`. Fields that are set will be updated. */ +export interface ScopeTypesModulePatch { + databaseId?: string; + id?: string; + privateSchemaName?: string; + schemaId?: string; + scopeTypesTableId?: string; +} /** A filter to be used against `SecureTableProvision` object types. All fields are combined with a logical ‘and.’ */ export interface SecureTableProvisionFilter { /** Checks for all expressions in this list. */ @@ -11166,8 +11908,12 @@ export interface SiteSurfaceModuleFilter { catalogModuleId?: UUIDFilter; /** Filter by the object’s `databaseId` field. */ databaseId?: UUIDFilter; - /** Filter by the object’s `defaultPermissions` field. */ - defaultPermissions?: StringListFilter; + /** Filter by the object’s `defaultCapabilities` field. */ + defaultCapabilities?: StringListFilter; + /** Filter by the object’s `emailSenderModules` relation. */ + emailSenderModules?: SiteSurfaceModuleToManyEmailSenderModuleFilter; + /** `emailSenderModules` exist. */ + emailSenderModulesExist?: boolean; /** Filter by the object’s `entityField` field. */ entityField?: StringFilter; /** Filter by the object’s `entityTableId` field. */ @@ -11238,7 +11984,7 @@ export interface SiteSurfaceModuleInput { apiName?: string; catalogModuleId?: string; databaseId: string; - defaultPermissions?: string[]; + defaultCapabilities?: string[]; entityField?: string; entityTableId?: string; id?: string; @@ -11273,7 +12019,7 @@ export interface SiteSurfaceModulePatch { apiName?: string; catalogModuleId?: string; databaseId?: string; - defaultPermissions?: string[]; + defaultCapabilities?: string[]; entityField?: string; entityTableId?: string; id?: string; @@ -11303,6 +12049,15 @@ export interface SiteSurfaceModulePatch { sitesTableId?: string; sitesTableName?: string; } +/** A filter to be used against many `EmailSenderModule` object types. All fields are combined with a logical ‘and.’ */ +export interface SiteSurfaceModuleToManyEmailSenderModuleFilter { + /** Filters to entities where every related entity matches. */ + every?: EmailSenderModuleFilter; + /** Filters to entities where no related entity matches. */ + none?: EmailSenderModuleFilter; + /** Filters to entities where at least one related entity matches. */ + some?: EmailSenderModuleFilter; +} /** A filter to be used against many `PagesModule` object types. All fields are combined with a logical ‘and.’ */ export interface SiteSurfaceModuleToManyPagesModuleFilter { /** Filters to entities where every related entity matches. */ @@ -11427,10 +12182,10 @@ export interface StorageModuleFilter { confirmUploadDelay?: IntervalFilter; /** Filter by the object’s `databaseId` field. */ databaseId?: UUIDFilter; + /** Filter by the object’s `defaultCapabilities` field. */ + defaultCapabilities?: StringListFilter; /** Filter by the object’s `defaultMaxFileSize` field. */ defaultMaxFileSize?: BigIntFilter; - /** Filter by the object’s `defaultPermissions` field. */ - defaultPermissions?: StringListFilter; /** Filter by the object’s `downloadUrlExpirySeconds` field. */ downloadUrlExpirySeconds?: IntFilter; /** Filter by the object’s `endpoint` field. */ @@ -11441,6 +12196,10 @@ export interface StorageModuleFilter { entityTableId?: UUIDFilter; /** Filter by the object’s `fileEventsTableId` field. */ fileEventsTableId?: UUIDFilter; + /** Filter by the object’s `fileRefFields` relation. */ + fileRefFields?: StorageModuleToManyFileRefFieldFilter; + /** `fileRefFields` exist. */ + fileRefFieldsExist?: boolean; /** Filter by the object’s `filesTableId` field. */ filesTableId?: UUIDFilter; /** Filter by the object’s `filesTableName` field. */ @@ -11512,8 +12271,8 @@ export interface StorageModuleInput { catalogModuleId?: string; confirmUploadDelay?: IntervalInput; databaseId: string; + defaultCapabilities?: string[]; defaultMaxFileSize?: string; - defaultPermissions?: string[]; downloadUrlExpirySeconds?: number; endpoint?: string; entityField?: string; @@ -11556,8 +12315,8 @@ export interface StorageModulePatch { catalogModuleId?: string; confirmUploadDelay?: IntervalInput; databaseId?: string; + defaultCapabilities?: string[]; defaultMaxFileSize?: string; - defaultPermissions?: string[]; downloadUrlExpirySeconds?: number; endpoint?: string; entityField?: string; @@ -11590,6 +12349,15 @@ export interface StorageModulePatch { scope?: string; uploadUrlExpirySeconds?: number; } +/** A filter to be used against many `FileRefField` object types. All fields are combined with a logical ‘and.’ */ +export interface StorageModuleToManyFileRefFieldFilter { + /** Filters to entities where every related entity matches. */ + every?: FileRefFieldFilter; + /** Filters to entities where no related entity matches. */ + none?: FileRefFieldFilter; + /** Filters to entities where at least one related entity matches. */ + some?: FileRefFieldFilter; +} /** A filter to be used against many `HttpRouteModule` object types. All fields are combined with a logical ‘and.’ */ export interface StorageModuleToManyHttpRouteModuleFilter { /** Filters to entities where every related entity matches. */ @@ -11745,6 +12513,12 @@ export interface UpdateBlueprintTemplateInput { /** Unique identifier for this template. */ id: string; } +export interface UpdateCapabilitiesModuleInput { + /** An object where the defined keys will be set on the `CapabilitiesModule` being updated. */ + capabilitiesModulePatch: CapabilitiesModulePatch; + clientMutationId?: string; + id: string; +} export interface UpdateCatalogModuleInput { /** An object where the defined keys will be set on the `CatalogModule` being updated. */ catalogModulePatch: CatalogModulePatch; @@ -11769,6 +12543,12 @@ export interface UpdateConnectedAccountsModuleInput { connectedAccountsModulePatch: ConnectedAccountsModulePatch; id: string; } +export interface UpdateContentPresetModuleInput { + clientMutationId?: string; + /** An object where the defined keys will be set on the `ContentPresetModule` being updated. */ + contentPresetModulePatch: ContentPresetModulePatch; + id: string; +} export interface UpdateCryptoAddressesModuleInput { clientMutationId?: string; /** An object where the defined keys will be set on the `CryptoAddressesModule` being updated. */ @@ -11781,6 +12561,12 @@ export interface UpdateCryptoAuthModuleInput { cryptoAuthModulePatch: CryptoAuthModulePatch; id: string; } +export interface UpdateDataCapabilitiesFieldInput { + clientMutationId?: string; + /** An object where the defined keys will be set on the `DataCapabilitiesField` being updated. */ + dataCapabilitiesFieldPatch: DataCapabilitiesFieldPatch; + id: string; +} export interface UpdateDatabaseProvisionModuleInput { clientMutationId?: string; /** An object where the defined keys will be set on the `DatabaseProvisionModule` being updated. */ @@ -11841,6 +12627,12 @@ export interface UpdateDomainModuleInput { domainModulePatch: DomainModulePatch; id: string; } +export interface UpdateEmailSenderModuleInput { + clientMutationId?: string; + /** An object where the defined keys will be set on the `EmailSenderModule` being updated. */ + emailSenderModulePatch: EmailSenderModulePatch; + id: string; +} export interface UpdateEmailsModuleInput { clientMutationId?: string; /** An object where the defined keys will be set on the `EmailsModule` being updated. */ @@ -11860,6 +12652,12 @@ export interface UpdateEventsModuleInput { eventsModulePatch: EventsModulePatch; id: string; } +export interface UpdateFileRefFieldInput { + clientMutationId?: string; + /** An object where the defined keys will be set on the `FileRefField` being updated. */ + fileRefFieldPatch: FileRefFieldPatch; + id: string; +} export interface UpdateFunctionDeploymentModuleInput { clientMutationId?: string; /** An object where the defined keys will be set on the `FunctionDeploymentModule` being updated. */ @@ -11986,17 +12784,17 @@ export interface UpdateNotificationsModuleInput { /** An object where the defined keys will be set on the `NotificationsModule` being updated. */ notificationsModulePatch: NotificationsModulePatch; } -export interface UpdatePagesModuleInput { +export interface UpdateOauthRequestsModuleInput { clientMutationId?: string; id: string; - /** An object where the defined keys will be set on the `PagesModule` being updated. */ - pagesModulePatch: PagesModulePatch; + /** An object where the defined keys will be set on the `OauthRequestsModule` being updated. */ + oauthRequestsModulePatch: OauthRequestsModulePatch; } -export interface UpdatePermissionsModuleInput { +export interface UpdatePagesModuleInput { clientMutationId?: string; id: string; - /** An object where the defined keys will be set on the `PermissionsModule` being updated. */ - permissionsModulePatch: PermissionsModulePatch; + /** An object where the defined keys will be set on the `PagesModule` being updated. */ + pagesModulePatch: PagesModulePatch; } export interface UpdatePhoneNumbersModuleInput { clientMutationId?: string; @@ -12065,6 +12863,12 @@ export interface UpdateRouteModuleInput { /** An object where the defined keys will be set on the `RouteModule` being updated. */ routeModulePatch: RouteModulePatch; } +export interface UpdateScopeTypesModuleInput { + clientMutationId?: string; + id: string; + /** An object where the defined keys will be set on the `ScopeTypesModule` being updated. */ + scopeTypesModulePatch: ScopeTypesModulePatch; +} export interface UpdateSecureTableProvisionInput { clientMutationId?: string; /** Unique identifier for this provision row. */ @@ -12126,6 +12930,12 @@ export interface UpdateUserSettingsModuleInput { /** An object where the defined keys will be set on the `UserSettingsModule` being updated. */ userSettingsModulePatch: UserSettingsModulePatch; } +export interface UpdateUserSettingsSecurityModuleInput { + clientMutationId?: string; + id: string; + /** An object where the defined keys will be set on the `UserSettingsSecurityModule` being updated. */ + userSettingsSecurityModulePatch: UserSettingsSecurityModulePatch; +} export interface UpdateUserStateModuleInput { clientMutationId?: string; id: string; @@ -12369,6 +13179,49 @@ export interface UserSettingsModulePatch { tableId?: string; tableName?: string; } +/** A filter to be used against `UserSettingsSecurityModule` object types. All fields are combined with a logical ‘and.’ */ +export interface UserSettingsSecurityModuleFilter { + /** Checks for all expressions in this list. */ + and?: UserSettingsSecurityModuleFilter[]; + /** Filter by the object’s `apiName` field. */ + apiName?: StringFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Negates the expression. */ + not?: UserSettingsSecurityModuleFilter; + /** Checks for any expressions in this list. */ + or?: UserSettingsSecurityModuleFilter[]; + /** Filter by the object’s `ownerTableId` field. */ + ownerTableId?: 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; +} +/** An input for mutations affecting `UserSettingsSecurityModule` */ +export interface UserSettingsSecurityModuleInput { + apiName?: string; + databaseId: string; + id?: string; + ownerTableId?: string; + schemaId?: string; + tableId?: string; + tableName?: string; +} +/** Represents an update to a `UserSettingsSecurityModule`. Fields that are set will be updated. */ +export interface UserSettingsSecurityModulePatch { + apiName?: string; + databaseId?: string; + id?: string; + ownerTableId?: string; + schemaId?: string; + tableId?: string; + tableName?: string; +} /** A filter to be used against `UserStateModule` object types. All fields are combined with a logical ‘and.’ */ export interface UserStateModuleFilter { /** Checks for all expressions in this list. */ @@ -12599,8 +13452,8 @@ export interface WebhookModuleFilter { apiName?: StringFilter; /** Filter by the object’s `databaseId` field. */ databaseId?: UUIDFilter; - /** Filter by the object’s `defaultPermissions` field. */ - defaultPermissions?: StringListFilter; + /** Filter by the object’s `defaultCapabilities` field. */ + defaultCapabilities?: StringListFilter; /** Filter by the object’s `entityField` field. */ entityField?: StringFilter; /** Filter by the object’s `entityTableId` field. */ @@ -12666,7 +13519,7 @@ export interface WebhookModuleFilter { export interface WebhookModuleInput { apiName?: string; databaseId: string; - defaultPermissions?: string[]; + defaultCapabilities?: string[]; entityField?: string; entityTableId?: string; functionInvocationModuleId?: string; @@ -12692,7 +13545,7 @@ export interface WebhookModuleInput { export interface WebhookModulePatch { apiName?: string; databaseId?: string; - defaultPermissions?: string[]; + defaultCapabilities?: string[]; entityField?: string; entityTableId?: string; functionInvocationModuleId?: string; @@ -12774,6 +13627,13 @@ export interface BlueprintConnection { pageInfo: PageInfo; totalCount: number; } +/** A connection to a list of `CapabilitiesModule` values. */ +export interface CapabilitiesModuleConnection { + edges: CapabilitiesModuleEdge[]; + nodes: CapabilitiesModule[]; + pageInfo: PageInfo; + totalCount: number; +} /** A connection to a list of `CatalogModule` values. */ export interface CatalogModuleConnection { edges: CatalogModuleEdge[]; @@ -12802,6 +13662,13 @@ export interface ConnectedAccountsModuleConnection { pageInfo: PageInfo; totalCount: number; } +/** A connection to a list of `ContentPresetModule` values. */ +export interface ContentPresetModuleConnection { + edges: ContentPresetModuleEdge[]; + nodes: ContentPresetModule[]; + pageInfo: PageInfo; + totalCount: number; +} /** A connection to a list of `CryptoAddressesModule` values. */ export interface CryptoAddressesModuleConnection { edges: CryptoAddressesModuleEdge[]; @@ -12816,6 +13683,13 @@ export interface CryptoAuthModuleConnection { pageInfo: PageInfo; totalCount: number; } +/** A connection to a list of `DataCapabilitiesField` values. */ +export interface DataCapabilitiesFieldConnection { + edges: DataCapabilitiesFieldEdge[]; + nodes: DataCapabilitiesField[]; + pageInfo: PageInfo; + totalCount: number; +} /** A connection to a list of `DatabaseProvisionModule` values. */ export interface DatabaseProvisionModuleConnection { edges: DatabaseProvisionModuleEdge[]; @@ -12886,6 +13760,13 @@ export interface DomainModuleConnection { pageInfo: PageInfo; totalCount: number; } +/** A connection to a list of `EmailSenderModule` values. */ +export interface EmailSenderModuleConnection { + edges: EmailSenderModuleEdge[]; + nodes: EmailSenderModule[]; + pageInfo: PageInfo; + totalCount: number; +} /** A connection to a list of `EmailsModule` values. */ export interface EmailsModuleConnection { edges: EmailsModuleEdge[]; @@ -12907,6 +13788,13 @@ export interface EventsModuleConnection { pageInfo: PageInfo; totalCount: number; } +/** A connection to a list of `FileRefField` values. */ +export interface FileRefFieldConnection { + edges: FileRefFieldEdge[]; + nodes: FileRefField[]; + pageInfo: PageInfo; + totalCount: number; +} /** A connection to a list of `FunctionDeploymentModule` values. */ export interface FunctionDeploymentModuleConnection { edges: FunctionDeploymentModuleEdge[]; @@ -13054,6 +13942,13 @@ export interface NotificationsModuleConnection { pageInfo: PageInfo; totalCount: number; } +/** A connection to a list of `OauthRequestsModule` values. */ +export interface OauthRequestsModuleConnection { + edges: OauthRequestsModuleEdge[]; + nodes: OauthRequestsModule[]; + pageInfo: PageInfo; + totalCount: number; +} /** A connection to a list of `PagesModule` values. */ export interface PagesModuleConnection { edges: PagesModuleEdge[]; @@ -13061,13 +13956,6 @@ export interface PagesModuleConnection { pageInfo: PageInfo; totalCount: number; } -/** A connection to a list of `PermissionsModule` values. */ -export interface PermissionsModuleConnection { - edges: PermissionsModuleEdge[]; - nodes: PermissionsModule[]; - pageInfo: PageInfo; - totalCount: number; -} /** A connection to a list of `PhoneNumbersModule` values. */ export interface PhoneNumbersModuleConnection { edges: PhoneNumbersModuleEdge[]; @@ -13145,6 +14033,13 @@ export interface RouteModuleConnection { pageInfo: PageInfo; totalCount: number; } +/** A connection to a list of `ScopeTypesModule` values. */ +export interface ScopeTypesModuleConnection { + edges: ScopeTypesModuleEdge[]; + nodes: ScopeTypesModule[]; + pageInfo: PageInfo; + totalCount: number; +} /** A connection to a list of `SecureTableProvision` values. */ export interface SecureTableProvisionConnection { edges: SecureTableProvisionEdge[]; @@ -13215,6 +14110,13 @@ export interface UserSettingsModuleConnection { pageInfo: PageInfo; totalCount: number; } +/** A connection to a list of `UserSettingsSecurityModule` values. */ +export interface UserSettingsSecurityModuleConnection { + edges: UserSettingsSecurityModuleEdge[]; + nodes: UserSettingsSecurityModule[]; + pageInfo: PageInfo; + totalCount: number; +} /** A connection to a list of `UserStateModule` values. */ export interface UserStateModuleConnection { edges: UserStateModuleEdge[]; @@ -13306,6 +14208,12 @@ export interface CreateBlueprintTemplatePayload { blueprintTemplateEdge?: BlueprintTemplateEdge | null; clientMutationId?: string | null; } +export interface CreateCapabilitiesModulePayload { + /** The `CapabilitiesModule` that was created by this mutation. */ + capabilitiesModule?: CapabilitiesModule | null; + capabilitiesModuleEdge?: CapabilitiesModuleEdge | null; + clientMutationId?: string | null; +} export interface CreateCatalogModulePayload { /** The `CatalogModule` that was created by this mutation. */ catalogModule?: CatalogModule | null; @@ -13330,6 +14238,12 @@ export interface CreateConnectedAccountsModulePayload { connectedAccountsModule?: ConnectedAccountsModule | null; connectedAccountsModuleEdge?: ConnectedAccountsModuleEdge | null; } +export interface CreateContentPresetModulePayload { + clientMutationId?: string | null; + /** The `ContentPresetModule` that was created by this mutation. */ + contentPresetModule?: ContentPresetModule | null; + contentPresetModuleEdge?: ContentPresetModuleEdge | null; +} export interface CreateCryptoAddressesModulePayload { clientMutationId?: string | null; /** The `CryptoAddressesModule` that was created by this mutation. */ @@ -13342,6 +14256,12 @@ export interface CreateCryptoAuthModulePayload { cryptoAuthModule?: CryptoAuthModule | null; cryptoAuthModuleEdge?: CryptoAuthModuleEdge | null; } +export interface CreateDataCapabilitiesFieldPayload { + clientMutationId?: string | null; + /** The `DataCapabilitiesField` that was created by this mutation. */ + dataCapabilitiesField?: DataCapabilitiesField | null; + dataCapabilitiesFieldEdge?: DataCapabilitiesFieldEdge | null; +} export interface CreateDatabaseProvisionModulePayload { clientMutationId?: string | null; /** The `DatabaseProvisionModule` that was created by this mutation. */ @@ -13402,6 +14322,12 @@ export interface CreateDomainModulePayload { domainModule?: DomainModule | null; domainModuleEdge?: DomainModuleEdge | null; } +export interface CreateEmailSenderModulePayload { + clientMutationId?: string | null; + /** The `EmailSenderModule` that was created by this mutation. */ + emailSenderModule?: EmailSenderModule | null; + emailSenderModuleEdge?: EmailSenderModuleEdge | null; +} export interface CreateEmailsModulePayload { clientMutationId?: string | null; /** The `EmailsModule` that was created by this mutation. */ @@ -13420,6 +14346,12 @@ export interface CreateEventsModulePayload { eventsModule?: EventsModule | null; eventsModuleEdge?: EventsModuleEdge | null; } +export interface CreateFileRefFieldPayload { + clientMutationId?: string | null; + /** The `FileRefField` that was created by this mutation. */ + fileRefField?: FileRefField | null; + fileRefFieldEdge?: FileRefFieldEdge | null; +} export interface CreateFunctionDeploymentModulePayload { clientMutationId?: string | null; /** The `FunctionDeploymentModule` that was created by this mutation. */ @@ -13546,18 +14478,18 @@ export interface CreateNotificationsModulePayload { notificationsModule?: NotificationsModule | null; notificationsModuleEdge?: NotificationsModuleEdge | null; } +export interface CreateOauthRequestsModulePayload { + clientMutationId?: string | null; + /** The `OauthRequestsModule` that was created by this mutation. */ + oauthRequestsModule?: OauthRequestsModule | null; + oauthRequestsModuleEdge?: OauthRequestsModuleEdge | null; +} export interface CreatePagesModulePayload { clientMutationId?: string | null; /** The `PagesModule` that was created by this mutation. */ pagesModule?: PagesModule | null; pagesModuleEdge?: PagesModuleEdge | null; } -export interface CreatePermissionsModulePayload { - clientMutationId?: string | null; - /** The `PermissionsModule` that was created by this mutation. */ - permissionsModule?: PermissionsModule | null; - permissionsModuleEdge?: PermissionsModuleEdge | null; -} export interface CreatePhoneNumbersModulePayload { clientMutationId?: string | null; /** The `PhoneNumbersModule` that was created by this mutation. */ @@ -13624,6 +14556,12 @@ export interface CreateRouteModulePayload { routeModule?: RouteModule | null; routeModuleEdge?: RouteModuleEdge | null; } +export interface CreateScopeTypesModulePayload { + clientMutationId?: string | null; + /** The `ScopeTypesModule` that was created by this mutation. */ + scopeTypesModule?: ScopeTypesModule | null; + scopeTypesModuleEdge?: ScopeTypesModuleEdge | null; +} export interface CreateSecureTableProvisionPayload { clientMutationId?: string | null; /** The `SecureTableProvision` that was created by this mutation. */ @@ -13684,6 +14622,12 @@ export interface CreateUserSettingsModulePayload { userSettingsModule?: UserSettingsModule | null; userSettingsModuleEdge?: UserSettingsModuleEdge | null; } +export interface CreateUserSettingsSecurityModulePayload { + clientMutationId?: string | null; + /** The `UserSettingsSecurityModule` that was created by this mutation. */ + userSettingsSecurityModule?: UserSettingsSecurityModule | null; + userSettingsSecurityModuleEdge?: UserSettingsSecurityModuleEdge | null; +} export interface CreateUserStateModulePayload { clientMutationId?: string | null; /** The `UserStateModule` that was created by this mutation. */ @@ -13762,6 +14706,12 @@ export interface DeleteBlueprintTemplatePayload { blueprintTemplateEdge?: BlueprintTemplateEdge | null; clientMutationId?: string | null; } +export interface DeleteCapabilitiesModulePayload { + /** The `CapabilitiesModule` that was deleted by this mutation. */ + capabilitiesModule?: CapabilitiesModule | null; + capabilitiesModuleEdge?: CapabilitiesModuleEdge | null; + clientMutationId?: string | null; +} export interface DeleteCatalogModulePayload { /** The `CatalogModule` that was deleted by this mutation. */ catalogModule?: CatalogModule | null; @@ -13786,6 +14736,12 @@ export interface DeleteConnectedAccountsModulePayload { connectedAccountsModule?: ConnectedAccountsModule | null; connectedAccountsModuleEdge?: ConnectedAccountsModuleEdge | null; } +export interface DeleteContentPresetModulePayload { + clientMutationId?: string | null; + /** The `ContentPresetModule` that was deleted by this mutation. */ + contentPresetModule?: ContentPresetModule | null; + contentPresetModuleEdge?: ContentPresetModuleEdge | null; +} export interface DeleteCryptoAddressesModulePayload { clientMutationId?: string | null; /** The `CryptoAddressesModule` that was deleted by this mutation. */ @@ -13798,6 +14754,12 @@ export interface DeleteCryptoAuthModulePayload { cryptoAuthModule?: CryptoAuthModule | null; cryptoAuthModuleEdge?: CryptoAuthModuleEdge | null; } +export interface DeleteDataCapabilitiesFieldPayload { + clientMutationId?: string | null; + /** The `DataCapabilitiesField` that was deleted by this mutation. */ + dataCapabilitiesField?: DataCapabilitiesField | null; + dataCapabilitiesFieldEdge?: DataCapabilitiesFieldEdge | null; +} export interface DeleteDatabaseProvisionModulePayload { clientMutationId?: string | null; /** The `DatabaseProvisionModule` that was deleted by this mutation. */ @@ -13858,6 +14820,12 @@ export interface DeleteDomainModulePayload { domainModule?: DomainModule | null; domainModuleEdge?: DomainModuleEdge | null; } +export interface DeleteEmailSenderModulePayload { + clientMutationId?: string | null; + /** The `EmailSenderModule` that was deleted by this mutation. */ + emailSenderModule?: EmailSenderModule | null; + emailSenderModuleEdge?: EmailSenderModuleEdge | null; +} export interface DeleteEmailsModulePayload { clientMutationId?: string | null; /** The `EmailsModule` that was deleted by this mutation. */ @@ -13876,6 +14844,12 @@ export interface DeleteEventsModulePayload { eventsModule?: EventsModule | null; eventsModuleEdge?: EventsModuleEdge | null; } +export interface DeleteFileRefFieldPayload { + clientMutationId?: string | null; + /** The `FileRefField` that was deleted by this mutation. */ + fileRefField?: FileRefField | null; + fileRefFieldEdge?: FileRefFieldEdge | null; +} export interface DeleteFunctionDeploymentModulePayload { clientMutationId?: string | null; /** The `FunctionDeploymentModule` that was deleted by this mutation. */ @@ -14002,18 +14976,18 @@ export interface DeleteNotificationsModulePayload { notificationsModule?: NotificationsModule | null; notificationsModuleEdge?: NotificationsModuleEdge | null; } +export interface DeleteOauthRequestsModulePayload { + clientMutationId?: string | null; + /** The `OauthRequestsModule` that was deleted by this mutation. */ + oauthRequestsModule?: OauthRequestsModule | null; + oauthRequestsModuleEdge?: OauthRequestsModuleEdge | null; +} export interface DeletePagesModulePayload { clientMutationId?: string | null; /** The `PagesModule` that was deleted by this mutation. */ pagesModule?: PagesModule | null; pagesModuleEdge?: PagesModuleEdge | null; } -export interface DeletePermissionsModulePayload { - clientMutationId?: string | null; - /** The `PermissionsModule` that was deleted by this mutation. */ - permissionsModule?: PermissionsModule | null; - permissionsModuleEdge?: PermissionsModuleEdge | null; -} export interface DeletePhoneNumbersModulePayload { clientMutationId?: string | null; /** The `PhoneNumbersModule` that was deleted by this mutation. */ @@ -14080,6 +15054,12 @@ export interface DeleteRouteModulePayload { routeModule?: RouteModule | null; routeModuleEdge?: RouteModuleEdge | null; } +export interface DeleteScopeTypesModulePayload { + clientMutationId?: string | null; + /** The `ScopeTypesModule` that was deleted by this mutation. */ + scopeTypesModule?: ScopeTypesModule | null; + scopeTypesModuleEdge?: ScopeTypesModuleEdge | null; +} export interface DeleteSecureTableProvisionPayload { clientMutationId?: string | null; /** The `SecureTableProvision` that was deleted by this mutation. */ @@ -14140,6 +15120,12 @@ export interface DeleteUserSettingsModulePayload { userSettingsModule?: UserSettingsModule | null; userSettingsModuleEdge?: UserSettingsModuleEdge | null; } +export interface DeleteUserSettingsSecurityModulePayload { + clientMutationId?: string | null; + /** The `UserSettingsSecurityModule` that was deleted by this mutation. */ + userSettingsSecurityModule?: UserSettingsSecurityModule | null; + userSettingsSecurityModuleEdge?: UserSettingsSecurityModuleEdge | null; +} export interface DeleteUserStateModulePayload { clientMutationId?: string | null; /** The `UserStateModule` that was deleted by this mutation. */ @@ -14184,32 +15170,6 @@ export interface ProvisionBucketPayload { /** Whether provisioning succeeded */ success: boolean; } -export interface ProvisionCheckConstraintPayload { - clientMutationId?: string | null; -} -export interface ProvisionFullTextSearchPayload { - clientMutationId?: string | null; - result?: string | null; -} -export interface ProvisionIndexPayload { - clientMutationId?: string | null; - result?: string | null; -} -export interface ProvisionRelationPayload { - clientMutationId?: string | null; - result?: ProvisionRelationRecord[] | null; -} -export interface ProvisionSpatialRelationPayload { - clientMutationId?: string | null; - result?: string | null; -} -export interface ProvisionTablePayload { - clientMutationId?: string | null; - result?: ProvisionTableRecord[] | null; -} -export interface ProvisionUniqueConstraintPayload { - clientMutationId?: string | null; -} export interface UpdateAgentModulePayload { /** The `AgentModule` that was updated by this mutation. */ agentModule?: AgentModule | null; @@ -14258,6 +15218,12 @@ export interface UpdateBlueprintTemplatePayload { blueprintTemplateEdge?: BlueprintTemplateEdge | null; clientMutationId?: string | null; } +export interface UpdateCapabilitiesModulePayload { + /** The `CapabilitiesModule` that was updated by this mutation. */ + capabilitiesModule?: CapabilitiesModule | null; + capabilitiesModuleEdge?: CapabilitiesModuleEdge | null; + clientMutationId?: string | null; +} export interface UpdateCatalogModulePayload { /** The `CatalogModule` that was updated by this mutation. */ catalogModule?: CatalogModule | null; @@ -14282,6 +15248,12 @@ export interface UpdateConnectedAccountsModulePayload { connectedAccountsModule?: ConnectedAccountsModule | null; connectedAccountsModuleEdge?: ConnectedAccountsModuleEdge | null; } +export interface UpdateContentPresetModulePayload { + clientMutationId?: string | null; + /** The `ContentPresetModule` that was updated by this mutation. */ + contentPresetModule?: ContentPresetModule | null; + contentPresetModuleEdge?: ContentPresetModuleEdge | null; +} export interface UpdateCryptoAddressesModulePayload { clientMutationId?: string | null; /** The `CryptoAddressesModule` that was updated by this mutation. */ @@ -14294,6 +15266,12 @@ export interface UpdateCryptoAuthModulePayload { cryptoAuthModule?: CryptoAuthModule | null; cryptoAuthModuleEdge?: CryptoAuthModuleEdge | null; } +export interface UpdateDataCapabilitiesFieldPayload { + clientMutationId?: string | null; + /** The `DataCapabilitiesField` that was updated by this mutation. */ + dataCapabilitiesField?: DataCapabilitiesField | null; + dataCapabilitiesFieldEdge?: DataCapabilitiesFieldEdge | null; +} export interface UpdateDatabaseProvisionModulePayload { clientMutationId?: string | null; /** The `DatabaseProvisionModule` that was updated by this mutation. */ @@ -14354,6 +15332,12 @@ export interface UpdateDomainModulePayload { domainModule?: DomainModule | null; domainModuleEdge?: DomainModuleEdge | null; } +export interface UpdateEmailSenderModulePayload { + clientMutationId?: string | null; + /** The `EmailSenderModule` that was updated by this mutation. */ + emailSenderModule?: EmailSenderModule | null; + emailSenderModuleEdge?: EmailSenderModuleEdge | null; +} export interface UpdateEmailsModulePayload { clientMutationId?: string | null; /** The `EmailsModule` that was updated by this mutation. */ @@ -14372,6 +15356,12 @@ export interface UpdateEventsModulePayload { eventsModule?: EventsModule | null; eventsModuleEdge?: EventsModuleEdge | null; } +export interface UpdateFileRefFieldPayload { + clientMutationId?: string | null; + /** The `FileRefField` that was updated by this mutation. */ + fileRefField?: FileRefField | null; + fileRefFieldEdge?: FileRefFieldEdge | null; +} export interface UpdateFunctionDeploymentModulePayload { clientMutationId?: string | null; /** The `FunctionDeploymentModule` that was updated by this mutation. */ @@ -14498,18 +15488,18 @@ export interface UpdateNotificationsModulePayload { notificationsModule?: NotificationsModule | null; notificationsModuleEdge?: NotificationsModuleEdge | null; } +export interface UpdateOauthRequestsModulePayload { + clientMutationId?: string | null; + /** The `OauthRequestsModule` that was updated by this mutation. */ + oauthRequestsModule?: OauthRequestsModule | null; + oauthRequestsModuleEdge?: OauthRequestsModuleEdge | null; +} export interface UpdatePagesModulePayload { clientMutationId?: string | null; /** The `PagesModule` that was updated by this mutation. */ pagesModule?: PagesModule | null; pagesModuleEdge?: PagesModuleEdge | null; } -export interface UpdatePermissionsModulePayload { - clientMutationId?: string | null; - /** The `PermissionsModule` that was updated by this mutation. */ - permissionsModule?: PermissionsModule | null; - permissionsModuleEdge?: PermissionsModuleEdge | null; -} export interface UpdatePhoneNumbersModulePayload { clientMutationId?: string | null; /** The `PhoneNumbersModule` that was updated by this mutation. */ @@ -14576,6 +15566,12 @@ export interface UpdateRouteModulePayload { routeModule?: RouteModule | null; routeModuleEdge?: RouteModuleEdge | null; } +export interface UpdateScopeTypesModulePayload { + clientMutationId?: string | null; + /** The `ScopeTypesModule` that was updated by this mutation. */ + scopeTypesModule?: ScopeTypesModule | null; + scopeTypesModuleEdge?: ScopeTypesModuleEdge | null; +} export interface UpdateSecureTableProvisionPayload { clientMutationId?: string | null; /** The `SecureTableProvision` that was updated by this mutation. */ @@ -14636,6 +15632,12 @@ export interface UpdateUserSettingsModulePayload { userSettingsModule?: UserSettingsModule | null; userSettingsModuleEdge?: UserSettingsModuleEdge | null; } +export interface UpdateUserSettingsSecurityModulePayload { + clientMutationId?: string | null; + /** The `UserSettingsSecurityModule` that was updated by this mutation. */ + userSettingsSecurityModule?: UserSettingsSecurityModule | null; + userSettingsSecurityModuleEdge?: UserSettingsSecurityModuleEdge | null; +} export interface UpdateUserStateModulePayload { clientMutationId?: string | null; /** The `UserStateModule` that was updated by this mutation. */ @@ -14752,6 +15754,12 @@ export interface BlueprintEdge { /** The `Blueprint` at the end of the edge. */ node?: Blueprint | null; } +/** A `CapabilitiesModule` edge in the connection. */ +export interface CapabilitiesModuleEdge { + cursor?: string | null; + /** The `CapabilitiesModule` at the end of the edge. */ + node?: CapabilitiesModule | null; +} /** A `CatalogModule` edge in the connection. */ export interface CatalogModuleEdge { cursor?: string | null; @@ -14776,6 +15784,12 @@ export interface ConnectedAccountsModuleEdge { /** The `ConnectedAccountsModule` at the end of the edge. */ node?: ConnectedAccountsModule | null; } +/** A `ContentPresetModule` edge in the connection. */ +export interface ContentPresetModuleEdge { + cursor?: string | null; + /** The `ContentPresetModule` at the end of the edge. */ + node?: ContentPresetModule | null; +} /** A `CryptoAddressesModule` edge in the connection. */ export interface CryptoAddressesModuleEdge { cursor?: string | null; @@ -14788,6 +15802,12 @@ export interface CryptoAuthModuleEdge { /** The `CryptoAuthModule` at the end of the edge. */ node?: CryptoAuthModule | null; } +/** A `DataCapabilitiesField` edge in the connection. */ +export interface DataCapabilitiesFieldEdge { + cursor?: string | null; + /** The `DataCapabilitiesField` at the end of the edge. */ + node?: DataCapabilitiesField | null; +} /** A `DatabaseProvisionModule` edge in the connection. */ export interface DatabaseProvisionModuleEdge { cursor?: string | null; @@ -14848,6 +15868,12 @@ export interface DomainModuleEdge { /** The `DomainModule` at the end of the edge. */ node?: DomainModule | null; } +/** A `EmailSenderModule` edge in the connection. */ +export interface EmailSenderModuleEdge { + cursor?: string | null; + /** The `EmailSenderModule` at the end of the edge. */ + node?: EmailSenderModule | null; +} /** A `EmailsModule` edge in the connection. */ export interface EmailsModuleEdge { cursor?: string | null; @@ -14866,6 +15892,12 @@ export interface EventsModuleEdge { /** The `EventsModule` at the end of the edge. */ node?: EventsModule | null; } +/** A `FileRefField` edge in the connection. */ +export interface FileRefFieldEdge { + cursor?: string | null; + /** The `FileRefField` at the end of the edge. */ + node?: FileRefField | null; +} /** A `FunctionDeploymentModule` edge in the connection. */ export interface FunctionDeploymentModuleEdge { cursor?: string | null; @@ -14992,18 +16024,18 @@ export interface NotificationsModuleEdge { /** The `NotificationsModule` at the end of the edge. */ node?: NotificationsModule | null; } +/** A `OauthRequestsModule` edge in the connection. */ +export interface OauthRequestsModuleEdge { + cursor?: string | null; + /** The `OauthRequestsModule` at the end of the edge. */ + node?: OauthRequestsModule | null; +} /** A `PagesModule` edge in the connection. */ export interface PagesModuleEdge { cursor?: string | null; /** The `PagesModule` at the end of the edge. */ node?: PagesModule | null; } -/** A `PermissionsModule` edge in the connection. */ -export interface PermissionsModuleEdge { - cursor?: string | null; - /** The `PermissionsModule` at the end of the edge. */ - node?: PermissionsModule | null; -} /** A `PhoneNumbersModule` edge in the connection. */ export interface PhoneNumbersModuleEdge { cursor?: string | null; @@ -15070,6 +16102,12 @@ export interface RouteModuleEdge { /** The `RouteModule` at the end of the edge. */ node?: RouteModule | null; } +/** A `ScopeTypesModule` edge in the connection. */ +export interface ScopeTypesModuleEdge { + cursor?: string | null; + /** The `ScopeTypesModule` at the end of the edge. */ + node?: ScopeTypesModule | null; +} /** A `SecureTableProvision` edge in the connection. */ export interface SecureTableProvisionEdge { cursor?: string | null; @@ -15130,6 +16168,12 @@ export interface UserSettingsModuleEdge { /** The `UserSettingsModule` at the end of the edge. */ node?: UserSettingsModule | null; } +/** A `UserSettingsSecurityModule` edge in the connection. */ +export interface UserSettingsSecurityModuleEdge { + cursor?: string | null; + /** The `UserSettingsSecurityModule` at the end of the edge. */ + node?: UserSettingsSecurityModule | null; +} /** A `UserStateModule` edge in the connection. */ export interface UserStateModuleEdge { cursor?: string | null; @@ -15160,16 +16204,6 @@ export interface WebhookModuleEdge { /** The `WebhookModule` at the end of the edge. */ node?: WebhookModule | null; } -export interface ProvisionRelationRecord { - outFieldId?: string | null; - outJunctionTableId?: string | null; - outSourceFieldId?: string | null; - outTargetFieldId?: string | null; -} -export interface ProvisionTableRecord { - outFields?: string[] | null; - outTableId?: string | null; -} /** Table constraints */ export interface MetaConstraints { foreignKey: MetaForeignKeyConstraint[]; diff --git a/sdk/constructive-react/src/modules/types.ts b/sdk/constructive-react/src/modules/types.ts index 48928cdb88..eea5320eec 100644 --- a/sdk/constructive-react/src/modules/types.ts +++ b/sdk/constructive-react/src/modules/types.ts @@ -8,7 +8,7 @@ export interface AgentModule { agentTableName: string | null; apiName: string | null; databaseId: string | null; - defaultPermissions: string[] | null; + defaultCapabilities: string[] | null; entityField: string | null; entityTableId: string | null; hasAgents: boolean | null; @@ -53,7 +53,7 @@ export interface ApiSurfaceModule { corsSettingsTableId: string | null; corsSettingsTableName: string | null; databaseId: string | null; - defaultPermissions: string[] | null; + defaultCapabilities: string[] | null; entityField: string | null; entityTableId: string | null; id: string | null; @@ -73,7 +73,7 @@ export interface AppModule { appsTableName: string | null; catalogModuleId: string | null; databaseId: string | null; - defaultPermissions: string[] | null; + defaultCapabilities: string[] | null; entityField: string | null; entityTableId: string | null; id: string | null; @@ -92,8 +92,8 @@ export interface BillingModule { balancesTableId: string | null; balancesTableName: string | null; databaseId: string | null; + defaultCapabilities: string[] | null; defaultMeterCatalog: unknown | null; - defaultPermissions: string[] | null; id: string | null; ledgerTableId: string | null; ledgerTableName: string | null; @@ -121,16 +121,22 @@ export interface BillingProviderModule { apiName: string | null; billingCustomersTableId: string | null; billingCustomersTableName: string | null; + billingInvoicesTableId: string | null; + billingInvoicesTableName: string | null; billingPricesTableId: string | null; billingPricesTableName: string | null; billingProductsTableId: string | null; billingProductsTableName: string | null; + billingRefundsTableId: string | null; + billingRefundsTableName: string | null; billingSubscriptionsTableId: string | null; billingSubscriptionsTableName: string | null; billingWebhookEventsTableId: string | null; billingWebhookEventsTableName: string | null; databaseId: string | null; id: string | null; + listPendingUsageSyncFunction: string | null; + markUsageSyncedFunction: string | null; prefix: string | null; pricesTableId: string | null; privateApiName: string | null; @@ -138,8 +144,10 @@ export interface BillingProviderModule { processBillingEventFunction: string | null; productsTableId: string | null; provider: string | null; + recordRefundFunction: string | null; schemaId: string | null; subscriptionsTableId: string | null; + upsertInvoiceFunction: string | null; } export interface Blueprint { createdAt: string | null; @@ -190,16 +198,42 @@ export interface BlueprintTemplate { version: string | null; visibility: string | null; } +export interface CapabilitiesModule { + actorTableId: string | null; + apiName: string | null; + bitlen: number | null; + databaseId: string | null; + defaultTableId: string | null; + defaultTableName: string | null; + entityField: string | null; + entityTableId: string | null; + getByMask: string | null; + getMask: string | null; + getMaskByName: string | null; + getPaddedMask: string | null; + id: string | null; + prefix: string | null; + privateApiName: string | null; + privateSchemaId: string | null; + privateSchemaName: string | null; + publicSchemaName: string | null; + schemaId: string | null; + scope: string | null; + tableId: string | null; + tableName: string | null; +} export interface CatalogModule { apiName: string | null; apisTableId: string | null; apisTableName: string | null; appsTableId: string | null; appsTableName: string | null; + bindingsTableId: string | null; + bindingsTableName: string | null; bucketsTableId: string | null; bucketsTableName: string | null; databaseId: string | null; - defaultPermissions: string[] | null; + defaultCapabilities: string[] | null; domainsTableId: string | null; domainsTableName: string | null; entityTableId: string | null; @@ -274,6 +308,25 @@ export interface ConnectedAccountsModule { tableId: string | null; tableName: string | null; } +export interface ContentPresetModule { + apiName: string | null; + contentPresetsTableId: string | null; + createdAt: string | null; + databaseId: string | null; + entityTableId: string | null; + id: string | null; + merkleStoreModuleId: string | null; + policies: unknown | null; + prefix: string | null; + privateApiName: string | null; + privateSchemaId: string | null; + privateSchemaName: string | null; + provisions: unknown | null; + publicSchemaId: string | null; + publicSchemaName: string | null; + scope: string | null; + storeName: string | null; +} export interface CryptoAddressesModule { apiName: string | null; cryptoNetwork: string | null; @@ -302,6 +355,19 @@ export interface CryptoAuthModule { userField: string | null; usersTableId: string | null; } +export interface DataCapabilitiesField { + capabilitiesModuleId: string | null; + databaseId: string | null; + fieldId: string | null; + fromFieldId: string | null; + id: string | null; + mappingFieldId: string | null; + mappingKeyFieldId: string | null; + mappingTableId: string | null; + mode: string | null; + subsetGuard: boolean | null; + tableId: string | null; +} export interface DatabaseProvisionModule { async: boolean | null; bootstrapError: string | null; @@ -328,7 +394,7 @@ export interface DatabaseSettingsModule { databaseId: string | null; databaseSettingsTableId: string | null; databaseSettingsTableName: string | null; - defaultPermissions: string[] | null; + defaultCapabilities: string[] | null; entityField: string | null; entityTableId: string | null; id: string | null; @@ -397,7 +463,7 @@ export interface DbUsageModule { collectDbQueryStatsFunction: string | null; collectDbTableStatsFunction: string | null; databaseId: string | null; - defaultPermissions: string[] | null; + defaultCapabilities: string[] | null; entityField: string | null; id: string | null; interval: string | null; @@ -452,7 +518,7 @@ export interface DomainModule { apiName: string | null; catalogModuleId: string | null; databaseId: string | null; - defaultPermissions: string[] | null; + defaultCapabilities: string[] | null; domainEventsTableId: string | null; domainEventsTableName: string | null; domainVerificationsTableId: string | null; @@ -474,6 +540,28 @@ export interface DomainModule { schemaId: string | null; scope: string | null; } +export interface EmailSenderModule { + apiName: string | null; + databaseId: string | null; + defaultCapabilities: string[] | null; + emailIdentitiesTableId: string | null; + emailIdentitiesTableName: string | null; + emailProviderAccountsTableId: string | null; + emailProviderAccountsTableName: string | null; + emailSiteIdentitiesTableId: string | null; + emailSiteIdentitiesTableName: string | null; + entityField: string | null; + entityTableId: string | null; + id: string | null; + policies: unknown | null; + prefix: string | null; + privateApiName: string | null; + provisions: unknown | null; + publicSchemaName: string | null; + schemaId: string | null; + scope: string | null; + siteSurfaceModuleId: string | null; +} export interface EmailsModule { apiName: string | null; databaseId: string | null; @@ -532,7 +620,7 @@ export interface EventsModule { actorTableId: string | null; apiName: string | null; databaseId: string | null; - defaultPermissions: string[] | null; + defaultCapabilities: string[] | null; entityField: string | null; entityTableId: string | null; eventAggregatesTableId: string | null; @@ -541,6 +629,7 @@ export interface EventsModule { eventTypesTableName: string | null; eventsTableId: string | null; eventsTableName: string | null; + expireGrants: string | null; grantAchievement: string | null; id: string | null; interval: string | null; @@ -557,9 +646,11 @@ export interface EventsModule { privateSchemaId: string | null; privateSchemaName: string | null; publicSchemaName: string | null; + recomputeCapabilities: string | null; recordEvent: string | null; removeEvent: string | null; retention: string | null; + revokeAchievement: string | null; schemaId: string | null; scope: string | null; stepsRequired: string | null; @@ -569,13 +660,26 @@ export interface EventsModule { tgEventBool: string | null; tgEventToggle: string | null; tgEventToggleBool: string | null; + tgLevelGrantSync: string | null; tgUpdateAggregates: string | null; + trustLadder: unknown | null; upsertAggregate: string | null; } +export interface FileRefField { + bucketKey: string | null; + bucketTags: string[] | null; + databaseId: string | null; + enforceFk: boolean | null; + fieldId: string | null; + id: string | null; + isPublic: boolean | null; + storageModuleId: string | null; + tableId: string | null; +} export interface FunctionDeploymentModule { apiName: string | null; databaseId: string | null; - defaultPermissions: string[] | null; + defaultCapabilities: string[] | null; deploymentEventsTableId: string | null; deploymentEventsTableName: string | null; deploymentsTableId: string | null; @@ -600,7 +704,7 @@ export interface FunctionInvocationModule { attemptsTableId: string | null; attemptsTableName: string | null; databaseId: string | null; - defaultPermissions: string[] | null; + defaultCapabilities: string[] | null; entityField: string | null; entityTableId: string | null; executionLogsTableId: string | null; @@ -624,7 +728,7 @@ export interface FunctionModule { bindingsTableName: string | null; capabilityBindingsTableId: string | null; databaseId: string | null; - defaultPermissions: string[] | null; + defaultCapabilities: string[] | null; definitionsTableId: string | null; definitionsTableName: string | null; entityField: string | null; @@ -646,7 +750,7 @@ export interface GraphExecutionModule { apiName: string | null; createdAt: string | null; databaseId: string | null; - defaultPermissions: string[] | null; + defaultCapabilities: string[] | null; entityField: string | null; entityTableId: string | null; executionsTableId: string | null; @@ -671,7 +775,7 @@ export interface GraphModule { apiName: string | null; createdAt: string | null; databaseId: string | null; - defaultPermissions: string[] | null; + defaultCapabilities: string[] | null; entityField: string | null; entityTableId: string | null; graphsTableId: string | null; @@ -694,7 +798,7 @@ export interface HierarchyModule { chartEdgesTableName: string | null; createdAt: string | null; databaseId: string | null; - defaultPermissions: string[] | null; + defaultCapabilities: string[] | null; entityField: string | null; entityTableId: string | null; getManagersFunction: string | null; @@ -715,7 +819,7 @@ export interface HierarchyModule { export interface HttpRouteModule { apiName: string | null; databaseId: string | null; - defaultPermissions: string[] | null; + defaultCapabilities: string[] | null; entityField: string | null; entityTableId: string | null; functionModuleId: string | null; @@ -896,6 +1000,7 @@ export interface LimitsModule { limitCreditsTableId: string | null; limitDecrementFunction: string | null; limitDecrementTrigger: string | null; + limitDefaults: unknown | null; limitIncrementFunction: string | null; limitIncrementTrigger: string | null; limitUpdateTrigger: string | null; @@ -926,9 +1031,12 @@ export interface MembershipsModule { adminGrantsTableId: string | null; adminGrantsTableName: string | null; apiName: string | null; + capabilitiesTableId: string | null; + capabilityDefaultCapabilitiesTableId: string | null; + capabilityDefaultGrantsTableId: string | null; databaseId: string | null; + defaultCapabilitiesTableId: string | null; defaultLimitsTableId: string | null; - defaultPermissionsTableId: string | null; entityField: string | null; entityIdsByMask: string | null; entityIdsByPerm: string | null; @@ -951,9 +1059,6 @@ export interface MembershipsModule { membershipsTableName: string | null; ownerGrantsTableId: string | null; ownerGrantsTableName: string | null; - permissionDefaultGrantsTableId: string | null; - permissionDefaultPermissionsTableId: string | null; - permissionsTableId: string | null; prefix: string | null; privateApiName: string | null; privateSchemaId: string | null; @@ -965,6 +1070,7 @@ export interface MembershipsModule { } export interface MerkleStoreModule { apiName: string | null; + capabilityKey: string | null; commitTableId: string | null; createdAt: string | null; databaseId: string | null; @@ -972,7 +1078,6 @@ export interface MerkleStoreModule { functionPrefix: string | null; id: string | null; objectTableId: string | null; - permissionKey: string | null; prefix: string | null; privateApiName: string | null; privateSchemaId: string | null; @@ -986,7 +1091,7 @@ export interface MerkleStoreModule { export interface NamespaceModule { apiName: string | null; databaseId: string | null; - defaultPermissions: string[] | null; + defaultCapabilities: string[] | null; entityField: string | null; entityTableId: string | null; id: string | null; @@ -1008,7 +1113,7 @@ export interface NotificationsModule { apiName: string | null; channelsTableId: string | null; databaseId: string | null; - defaultPermissions: string[] | null; + defaultCapabilities: string[] | null; deliveryLogTableId: string | null; entityField: string | null; hasChannels: boolean | null; @@ -1030,6 +1135,20 @@ export interface NotificationsModule { suppressionsTableId: string | null; userSettingsTableId: string | null; } +export interface OauthRequestsModule { + databaseId: string | null; + entityField: string | null; + entityTableId: string | null; + id: string | null; + oauthAuthorizationRequestsTableId: string | null; + oauthAuthorizationRequestsTableName: string | null; + pendingIdentityLinksTableId: string | null; + pendingIdentityLinksTableName: string | null; + prefix: string | null; + privateSchemaId: string | null; + privateSchemaName: string | null; + scope: string | null; +} export interface PagesModule { apiName: string | null; createdAt: string | null; @@ -1051,30 +1170,6 @@ export interface PagesModule { sitesTableId: string | null; storeNamePrefix: string | null; } -export interface PermissionsModule { - actorTableId: string | null; - apiName: string | null; - bitlen: number | null; - databaseId: string | null; - defaultTableId: string | null; - defaultTableName: string | null; - entityField: string | null; - entityTableId: string | null; - getByMask: string | null; - getMask: string | null; - getMaskByName: string | null; - getPaddedMask: string | null; - id: string | null; - prefix: string | null; - privateApiName: string | null; - privateSchemaId: string | null; - privateSchemaName: string | null; - publicSchemaName: string | null; - schemaId: string | null; - scope: string | null; - tableId: string | null; - tableName: string | null; -} export interface PhoneNumbersModule { apiName: string | null; databaseId: string | null; @@ -1132,22 +1227,24 @@ export interface PrincipalAuthModule { export interface ProfilesModule { actorTableId: string | null; apiName: string | null; + capabilitiesTableId: string | null; databaseId: string | null; entityField: string | null; entityTableId: string | null; id: string | null; + membershipProfilesTableId: string | null; + membershipProfilesTableName: string | null; membershipsTableId: string | null; - permissionsTableId: string | null; prefix: string | null; privateApiName: string | null; privateSchemaId: string | null; privateSchemaName: string | null; + profileCapabilitiesTableId: string | null; + profileCapabilitiesTableName: string | null; profileDefinitionGrantsTableId: string | null; profileDefinitionGrantsTableName: string | null; profileGrantsTableId: string | null; profileGrantsTableName: string | null; - profilePermissionsTableId: string | null; - profilePermissionsTableName: string | null; profileTemplatesTableId: string | null; profileTemplatesTableName: string | null; publicSchemaName: string | null; @@ -1160,7 +1257,7 @@ export interface RateLimitMetersModule { apiName: string | null; checkRateLimitFunction: string | null; databaseId: string | null; - defaultPermissions: string[] | null; + defaultCapabilities: string[] | null; id: string | null; prefix: string | null; privateApiName: string | null; @@ -1231,7 +1328,7 @@ export interface RelationProvision { export interface ResourceModule { apiName: string | null; databaseId: string | null; - defaultPermissions: string[] | null; + defaultCapabilities: string[] | null; entityField: string | null; entityTableId: string | null; id: string | null; @@ -1283,9 +1380,11 @@ export interface RlsModule { } export interface RouteModule { apiName: string | null; + appLinksFunctionName: string | null; catalogModuleId: string | null; databaseId: string | null; - defaultPermissions: string[] | null; + deepLinkFunctionName: string | null; + defaultCapabilities: string[] | null; domainModuleId: string | null; entityField: string | null; entityTableId: string | null; @@ -1307,6 +1406,13 @@ export interface RouteModule { schemaId: string | null; scope: string | null; } +export interface ScopeTypesModule { + databaseId: string | null; + id: string | null; + privateSchemaName: string | null; + schemaId: string | null; + scopeTypesTableId: string | null; +} export interface SecureTableProvision { databaseId: string | null; fields: unknown[] | null; @@ -1345,7 +1451,7 @@ export interface SiteSurfaceModule { apiName: string | null; catalogModuleId: string | null; databaseId: string | null; - defaultPermissions: string[] | null; + defaultCapabilities: string[] | null; entityField: string | null; entityTableId: string | null; id: string | null; @@ -1406,8 +1512,8 @@ export interface StorageModule { catalogModuleId: string | null; confirmUploadDelay: string | null; databaseId: string | null; + defaultCapabilities: string[] | null; defaultMaxFileSize: string | null; - defaultPermissions: string[] | null; downloadUrlExpirySeconds: number | null; endpoint: string | null; entityField: string | null; @@ -1510,6 +1616,15 @@ export interface UserSettingsModule { tableId: string | null; tableName: string | null; } +export interface UserSettingsSecurityModule { + apiName: string | null; + databaseId: string | null; + id: string | null; + ownerTableId: string | null; + schemaId: string | null; + tableId: string | null; + tableName: string | null; +} export interface UserStateModule { databaseId: string | null; entityField: string | null; @@ -1561,7 +1676,7 @@ export interface WebauthnCredentialsModule { export interface WebhookModule { apiName: string | null; databaseId: string | null; - defaultPermissions: string[] | null; + defaultCapabilities: string[] | null; entityField: string | null; entityTableId: string | null; functionInvocationModuleId: string | null; diff --git a/sdk/constructive-react/src/objects/README.md b/sdk/constructive-react/src/objects/README.md index e83f78ee5e..98706faac9 100644 --- a/sdk/constructive-react/src/objects/README.md +++ b/sdk/constructive-react/src/objects/README.md @@ -10,7 +10,7 @@ - **Tables:** 5 - **Custom queries:** 0 -- **Custom mutations:** 4 +- **Custom mutations:** 7 **Generators:** ORM, React Query diff --git a/sdk/constructive-react/src/objects/hooks/README.md b/sdk/constructive-react/src/objects/hooks/README.md index a8cc8a0744..ed5348a544 100644 --- a/sdk/constructive-react/src/objects/hooks/README.md +++ b/sdk/constructive-react/src/objects/hooks/README.md @@ -56,11 +56,14 @@ function App() { | `useDeleteStoreMutation` | Mutation | Named stores — one per version-controlled tree (e.g. one graph, one definition set) | | `useInitEmptyRepoMutation` | Mutation | initEmptyRepo | | `useInsertNodeAtPathMutation` | Mutation | insertNodeAtPath | +| `useInsertNodesAtPathsMutation` | Mutation | insertNodesAtPaths | | `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, and lifecycle settings. | +| `useSetAndCommitMutation` | Mutation | setAndCommit | | `useSetDataAtPathMutation` | Mutation | setDataAtPath | +| `useSetManyAndCommitMutation` | Mutation | setManyAndCommit | ## Table Hooks @@ -187,6 +190,17 @@ insertNodeAtPath |----------|------| | `input` | InsertNodeAtPathInput (required) | +### `useInsertNodesAtPathsMutation` + +insertNodesAtPaths + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | InsertNodesAtPathsInput (required) | + ### `useProvisionBucketMutation` Provision an S3 bucket for a logical bucket in the database. @@ -201,6 +215,17 @@ and lifecycle settings. |----------|------| | `input` | ProvisionBucketInput (required) | +### `useSetAndCommitMutation` + +setAndCommit + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | SetAndCommitInput (required) | + ### `useSetDataAtPathMutation` setDataAtPath @@ -212,6 +237,17 @@ setDataAtPath |----------|------| | `input` | SetDataAtPathInput (required) | +### `useSetManyAndCommitMutation` + +setManyAndCommit + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | SetManyAndCommitInput (required) | + --- Built by the [Constructive](https://constructive.io) team. diff --git a/sdk/constructive-react/src/objects/hooks/mutation-keys.ts b/sdk/constructive-react/src/objects/hooks/mutation-keys.ts index 5d6f35ef0d..5842fc3219 100644 --- a/sdk/constructive-react/src/objects/hooks/mutation-keys.ts +++ b/sdk/constructive-react/src/objects/hooks/mutation-keys.ts @@ -76,14 +76,26 @@ export const customMutationKeys = { identifier ? (['mutation', 'insertNodeAtPath', identifier] as const) : (['mutation', 'insertNodeAtPath'] as const), + /** Mutation key for insertNodesAtPaths */ insertNodesAtPaths: (identifier?: string) => + identifier + ? (['mutation', 'insertNodesAtPaths', identifier] as const) + : (['mutation', 'insertNodesAtPaths'] as const), /** Mutation key for provisionBucket */ provisionBucket: (identifier?: string) => identifier ? (['mutation', 'provisionBucket', identifier] as const) : (['mutation', 'provisionBucket'] as const), + /** Mutation key for setAndCommit */ setAndCommit: (identifier?: string) => + identifier + ? (['mutation', 'setAndCommit', identifier] as const) + : (['mutation', 'setAndCommit'] as const), /** Mutation key for setDataAtPath */ setDataAtPath: (identifier?: string) => identifier ? (['mutation', 'setDataAtPath', identifier] as const) : (['mutation', 'setDataAtPath'] as const), + /** Mutation key for setManyAndCommit */ setManyAndCommit: (identifier?: string) => + identifier + ? (['mutation', 'setManyAndCommit', identifier] as const) + : (['mutation', 'setManyAndCommit'] as const), } as const; /** diff --git a/sdk/constructive-react/src/objects/hooks/mutations/index.ts b/sdk/constructive-react/src/objects/hooks/mutations/index.ts index b1f8e735fc..6f5d50802d 100644 --- a/sdk/constructive-react/src/objects/hooks/mutations/index.ts +++ b/sdk/constructive-react/src/objects/hooks/mutations/index.ts @@ -18,5 +18,8 @@ export * from './useUpdateStoreMutation'; export * from './useDeleteStoreMutation'; export * from './useInitEmptyRepoMutation'; export * from './useInsertNodeAtPathMutation'; +export * from './useInsertNodesAtPathsMutation'; export * from './useProvisionBucketMutation'; +export * from './useSetAndCommitMutation'; export * from './useSetDataAtPathMutation'; +export * from './useSetManyAndCommitMutation'; diff --git a/sdk/constructive-react/src/objects/hooks/mutations/useInsertNodesAtPathsMutation.ts b/sdk/constructive-react/src/objects/hooks/mutations/useInsertNodesAtPathsMutation.ts new file mode 100644 index 0000000000..70612f27eb --- /dev/null +++ b/sdk/constructive-react/src/objects/hooks/mutations/useInsertNodesAtPathsMutation.ts @@ -0,0 +1,58 @@ +/** + * Custom mutation hook for insertNodesAtPaths + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ + +import { useMutation } from '@tanstack/react-query'; +import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; +import { getClient } from '../client'; +import { buildSelectionArgs } from '../selection'; +import type { SelectionConfig } from '../selection'; +import { customMutationKeys } from '../mutation-keys'; +import type { InsertNodesAtPathsVariables } from '../../orm/mutation'; +import type { + InsertNodesAtPathsPayloadSelect, + InsertNodesAtPathsPayload, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect, StrictSelect } from '../../orm/select-types'; +export type { InsertNodesAtPathsVariables } from '../../orm/mutation'; +export type { InsertNodesAtPathsPayloadSelect } from '../../orm/input-types'; +export function useInsertNodesAtPathsMutation( + params: { + selection: { + fields: S & InsertNodesAtPathsPayloadSelect; + } & HookStrictSelect, InsertNodesAtPathsPayloadSelect>; + } & Omit< + UseMutationOptions< + { + insertNodesAtPaths: InferSelectResult | null; + }, + Error, + InsertNodesAtPathsVariables + >, + 'mutationFn' + > +): UseMutationResult< + { + insertNodesAtPaths: InferSelectResult | null; + }, + Error, + InsertNodesAtPathsVariables +> { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + return useMutation({ + mutationKey: customMutationKeys.insertNodesAtPaths(), + mutationFn: (variables: InsertNodesAtPathsVariables) => + getClient() + .mutation.insertNodesAtPaths(variables, { + select: args.select, + } as { + select: S; + } & StrictSelect) + .unwrap(), + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/modules/hooks/mutations/useProvisionTableMutation.ts b/sdk/constructive-react/src/objects/hooks/mutations/useSetAndCommitMutation.ts similarity index 51% rename from sdk/constructive-react/src/modules/hooks/mutations/useProvisionTableMutation.ts rename to sdk/constructive-react/src/objects/hooks/mutations/useSetAndCommitMutation.ts index 91f39cd892..efbed76921 100644 --- a/sdk/constructive-react/src/modules/hooks/mutations/useProvisionTableMutation.ts +++ b/sdk/constructive-react/src/objects/hooks/mutations/useSetAndCommitMutation.ts @@ -1,5 +1,5 @@ /** - * Custom mutation hook for provisionTable + * Custom mutation hook for setAndCommit * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -10,45 +10,45 @@ import { getClient } from '../client'; import { buildSelectionArgs } from '../selection'; import type { SelectionConfig } from '../selection'; import { customMutationKeys } from '../mutation-keys'; -import type { ProvisionTableVariables } from '../../orm/mutation'; -import type { ProvisionTablePayloadSelect, ProvisionTablePayload } from '../../orm/input-types'; +import type { SetAndCommitVariables } from '../../orm/mutation'; +import type { SetAndCommitPayloadSelect, SetAndCommitPayload } from '../../orm/input-types'; import type { InferSelectResult, HookStrictSelect, StrictSelect } from '../../orm/select-types'; -export type { ProvisionTableVariables } from '../../orm/mutation'; -export type { ProvisionTablePayloadSelect } from '../../orm/input-types'; -export function useProvisionTableMutation( +export type { SetAndCommitVariables } from '../../orm/mutation'; +export type { SetAndCommitPayloadSelect } from '../../orm/input-types'; +export function useSetAndCommitMutation( params: { selection: { - fields: S & ProvisionTablePayloadSelect; - } & HookStrictSelect, ProvisionTablePayloadSelect>; + fields: S & SetAndCommitPayloadSelect; + } & HookStrictSelect, SetAndCommitPayloadSelect>; } & Omit< UseMutationOptions< { - provisionTable: InferSelectResult | null; + setAndCommit: InferSelectResult | null; }, Error, - ProvisionTableVariables + SetAndCommitVariables >, 'mutationFn' > ): UseMutationResult< { - provisionTable: InferSelectResult | null; + setAndCommit: InferSelectResult | null; }, Error, - ProvisionTableVariables + SetAndCommitVariables > { const args = buildSelectionArgs(params.selection); const { selection: _selection, ...mutationOptions } = params ?? {}; void _selection; return useMutation({ - mutationKey: customMutationKeys.provisionTable(), - mutationFn: (variables: ProvisionTableVariables) => + mutationKey: customMutationKeys.setAndCommit(), + mutationFn: (variables: SetAndCommitVariables) => getClient() - .mutation.provisionTable(variables, { + .mutation.setAndCommit(variables, { select: args.select, } as { select: S; - } & StrictSelect) + } & StrictSelect) .unwrap(), ...mutationOptions, }); diff --git a/sdk/constructive-react/src/objects/hooks/mutations/useSetManyAndCommitMutation.ts b/sdk/constructive-react/src/objects/hooks/mutations/useSetManyAndCommitMutation.ts new file mode 100644 index 0000000000..91ead94fd0 --- /dev/null +++ b/sdk/constructive-react/src/objects/hooks/mutations/useSetManyAndCommitMutation.ts @@ -0,0 +1,55 @@ +/** + * Custom mutation hook for setManyAndCommit + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ + +import { useMutation } from '@tanstack/react-query'; +import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; +import { getClient } from '../client'; +import { buildSelectionArgs } from '../selection'; +import type { SelectionConfig } from '../selection'; +import { customMutationKeys } from '../mutation-keys'; +import type { SetManyAndCommitVariables } from '../../orm/mutation'; +import type { SetManyAndCommitPayloadSelect, SetManyAndCommitPayload } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect, StrictSelect } from '../../orm/select-types'; +export type { SetManyAndCommitVariables } from '../../orm/mutation'; +export type { SetManyAndCommitPayloadSelect } from '../../orm/input-types'; +export function useSetManyAndCommitMutation( + params: { + selection: { + fields: S & SetManyAndCommitPayloadSelect; + } & HookStrictSelect, SetManyAndCommitPayloadSelect>; + } & Omit< + UseMutationOptions< + { + setManyAndCommit: InferSelectResult | null; + }, + Error, + SetManyAndCommitVariables + >, + 'mutationFn' + > +): UseMutationResult< + { + setManyAndCommit: InferSelectResult | null; + }, + Error, + SetManyAndCommitVariables +> { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + return useMutation({ + mutationKey: customMutationKeys.setManyAndCommit(), + mutationFn: (variables: SetManyAndCommitVariables) => + getClient() + .mutation.setManyAndCommit(variables, { + select: args.select, + } as { + select: S; + } & StrictSelect) + .unwrap(), + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/objects/orm/README.md b/sdk/constructive-react/src/objects/orm/README.md index 2a09348ad0..e112c19ae0 100644 --- a/sdk/constructive-react/src/objects/orm/README.md +++ b/sdk/constructive-react/src/objects/orm/README.md @@ -228,6 +228,21 @@ insertNodeAtPath const result = await db.mutation.insertNodeAtPath({ input: '' }).execute(); ``` +### `db.mutation.insertNodesAtPaths` + +insertNodesAtPaths + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | InsertNodesAtPathsInput (required) | + +```typescript +const result = await db.mutation.insertNodesAtPaths({ input: '' }).execute(); +``` + ### `db.mutation.provisionBucket` Provision an S3 bucket for a logical bucket in the database. @@ -246,6 +261,21 @@ and lifecycle settings. const result = await db.mutation.provisionBucket({ input: { bucketKey: '', ownerId: '' } }).execute(); ``` +### `db.mutation.setAndCommit` + +setAndCommit + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | SetAndCommitInput (required) | + +```typescript +const result = await db.mutation.setAndCommit({ input: '' }).execute(); +``` + ### `db.mutation.setDataAtPath` setDataAtPath @@ -261,6 +291,21 @@ setDataAtPath const result = await db.mutation.setDataAtPath({ input: { data: '', path: '', root: '', sId: '' } }).execute(); ``` +### `db.mutation.setManyAndCommit` + +setManyAndCommit + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | SetManyAndCommitInput (required) | + +```typescript +const result = await db.mutation.setManyAndCommit({ input: { entries: '', message: '', refname: '', sId: '', storeId: '' } }).execute(); +``` + --- Built by the [Constructive](https://constructive.io) team. diff --git a/sdk/constructive-react/src/objects/orm/input-types.ts b/sdk/constructive-react/src/objects/orm/input-types.ts index bab07456e0..1ca44bc9d7 100644 --- a/sdk/constructive-react/src/objects/orm/input-types.ts +++ b/sdk/constructive-react/src/objects/orm/input-types.ts @@ -665,6 +665,15 @@ export interface InsertNodeAtPathInput { root?: string; sId?: string; } +export interface InsertNodesAtPathsInput { + clientMutationId?: string; + datas?: Record[]; + kidsList?: Record; + ktreeList?: Record; + paths?: Record; + root?: string; + sId?: string; +} export interface ProvisionBucketInput { /** The logical bucket key (e.g., "public", "private") */ bucketKey: string; @@ -674,6 +683,17 @@ export interface ProvisionBucketInput { */ ownerId?: string; } +export interface SetAndCommitInput { + clientMutationId?: string; + data?: Record; + kids?: string[]; + ktree?: string[]; + message?: string; + path?: string[]; + refname?: string; + sId?: string; + storeId?: string; +} export interface SetDataAtPathInput { clientMutationId?: string; data?: Record; @@ -681,6 +701,14 @@ export interface SetDataAtPathInput { root?: string; sId?: string; } +export interface SetManyAndCommitInput { + clientMutationId?: string; + entries?: Record; + message?: string; + refname?: string; + sId?: string; + storeId?: string; +} /** An input for mutations affecting `Commit` */ export interface CommitInput { /** User who authored the changes */ @@ -758,6 +786,14 @@ export type InsertNodeAtPathPayloadSelect = { clientMutationId?: boolean; result?: boolean; }; +export interface InsertNodesAtPathsPayload { + clientMutationId?: string | null; + result?: string | null; +} +export type InsertNodesAtPathsPayloadSelect = { + clientMutationId?: boolean; + result?: boolean; +}; export interface ProvisionBucketPayload { /** The access type applied */ accessType: string; @@ -780,6 +816,20 @@ export type ProvisionBucketPayloadSelect = { provider?: boolean; success?: boolean; }; +export interface SetAndCommitPayload { + clientMutationId?: string | null; + commitEdge?: CommitEdge | null; + result?: Commit | null; +} +export type SetAndCommitPayloadSelect = { + clientMutationId?: boolean; + commitEdge?: { + select: CommitEdgeSelect; + }; + result?: { + select: CommitSelect; + }; +}; export interface SetDataAtPathPayload { clientMutationId?: string | null; result?: string | null; @@ -788,6 +838,20 @@ export type SetDataAtPathPayloadSelect = { clientMutationId?: boolean; result?: boolean; }; +export interface SetManyAndCommitPayload { + clientMutationId?: string | null; + commitEdge?: CommitEdge | null; + result?: Commit | null; +} +export type SetManyAndCommitPayloadSelect = { + clientMutationId?: boolean; + commitEdge?: { + select: CommitEdgeSelect; + }; + result?: { + select: CommitSelect; + }; +}; export interface CreateCommitPayload { clientMutationId?: string | null; /** The `Commit` that was created by this mutation. */ diff --git a/sdk/constructive-react/src/objects/orm/mutation/index.ts b/sdk/constructive-react/src/objects/orm/mutation/index.ts index a0c21cb2bd..7d08bdc42e 100644 --- a/sdk/constructive-react/src/objects/orm/mutation/index.ts +++ b/sdk/constructive-react/src/objects/orm/mutation/index.ts @@ -9,16 +9,25 @@ import type { InferSelectResult, StrictSelect } from '../select-types'; import type { InitEmptyRepoInput, InsertNodeAtPathInput, + InsertNodesAtPathsInput, ProvisionBucketInput, + SetAndCommitInput, SetDataAtPathInput, + SetManyAndCommitInput, InitEmptyRepoPayload, InsertNodeAtPathPayload, + InsertNodesAtPathsPayload, ProvisionBucketPayload, + SetAndCommitPayload, SetDataAtPathPayload, + SetManyAndCommitPayload, InitEmptyRepoPayloadSelect, InsertNodeAtPathPayloadSelect, + InsertNodesAtPathsPayloadSelect, ProvisionBucketPayloadSelect, + SetAndCommitPayloadSelect, SetDataAtPathPayloadSelect, + SetManyAndCommitPayloadSelect, } from '../input-types'; import { connectionFieldsMap } from '../input-types'; export interface InitEmptyRepoVariables { @@ -27,6 +36,9 @@ export interface InitEmptyRepoVariables { export interface InsertNodeAtPathVariables { input: InsertNodeAtPathInput; } +export interface InsertNodesAtPathsVariables { + input: InsertNodesAtPathsInput; +} /** * Variables for provisionBucket * Provision an S3 bucket for a logical bucket in the database. @@ -37,9 +49,15 @@ and lifecycle settings. export interface ProvisionBucketVariables { input: ProvisionBucketInput; } +export interface SetAndCommitVariables { + input: SetAndCommitInput; +} export interface SetDataAtPathVariables { input: SetDataAtPathInput; } +export interface SetManyAndCommitVariables { + input: SetManyAndCommitInput; +} export function createMutationOperations(client: OrmClient) { return { initEmptyRepo: ( @@ -100,6 +118,35 @@ export function createMutationOperations(client: OrmClient) { 'InsertNodeAtPathPayload' ), }), + insertNodesAtPaths: ( + args: InsertNodesAtPathsVariables, + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + insertNodesAtPaths: InferSelectResult | null; + }>({ + client, + operation: 'mutation', + operationName: 'InsertNodesAtPaths', + fieldName: 'insertNodesAtPaths', + ...buildCustomDocument( + 'mutation', + 'InsertNodesAtPaths', + 'insertNodesAtPaths', + options.select, + args, + [ + { + name: 'input', + type: 'InsertNodesAtPathsInput!', + }, + ], + connectionFieldsMap, + 'InsertNodesAtPathsPayload' + ), + }), provisionBucket: ( args: ProvisionBucketVariables, options: { @@ -129,6 +176,35 @@ export function createMutationOperations(client: OrmClient) { 'ProvisionBucketPayload' ), }), + setAndCommit: ( + args: SetAndCommitVariables, + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + setAndCommit: InferSelectResult | null; + }>({ + client, + operation: 'mutation', + operationName: 'SetAndCommit', + fieldName: 'setAndCommit', + ...buildCustomDocument( + 'mutation', + 'SetAndCommit', + 'setAndCommit', + options.select, + args, + [ + { + name: 'input', + type: 'SetAndCommitInput!', + }, + ], + connectionFieldsMap, + 'SetAndCommitPayload' + ), + }), setDataAtPath: ( args: SetDataAtPathVariables, options: { @@ -158,5 +234,34 @@ export function createMutationOperations(client: OrmClient) { 'SetDataAtPathPayload' ), }), + setManyAndCommit: ( + args: SetManyAndCommitVariables, + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + setManyAndCommit: InferSelectResult | null; + }>({ + client, + operation: 'mutation', + operationName: 'SetManyAndCommit', + fieldName: 'setManyAndCommit', + ...buildCustomDocument( + 'mutation', + 'SetManyAndCommit', + 'setManyAndCommit', + options.select, + args, + [ + { + name: 'input', + type: 'SetManyAndCommitInput!', + }, + ], + connectionFieldsMap, + 'SetManyAndCommitPayload' + ), + }), }; } diff --git a/sdk/constructive-react/src/objects/schema-types.ts b/sdk/constructive-react/src/objects/schema-types.ts index 09a500c22e..6da9e09bff 100644 --- a/sdk/constructive-react/src/objects/schema-types.ts +++ b/sdk/constructive-react/src/objects/schema-types.ts @@ -227,6 +227,15 @@ export interface InsertNodeAtPathInput { root?: string; sId?: string; } +export interface InsertNodesAtPathsInput { + clientMutationId?: string; + datas?: unknown[]; + kidsList?: unknown; + ktreeList?: unknown; + paths?: unknown; + root?: string; + sId?: string; +} /** A filter to be used against `Object` object types. All fields are combined with a logical ‘and.’ */ export interface ObjectFilter { /** Checks for all expressions in this list. */ @@ -332,6 +341,17 @@ export interface RefPatch { /** Store this ref belongs to */ storeId?: string; } +export interface SetAndCommitInput { + clientMutationId?: string; + data?: unknown; + kids?: string[]; + ktree?: string[]; + message?: string; + path?: string[]; + refname?: string; + sId?: string; + storeId?: string; +} export interface SetDataAtPathInput { clientMutationId?: string; data?: unknown; @@ -339,6 +359,14 @@ export interface SetDataAtPathInput { root?: string; sId?: string; } +export interface SetManyAndCommitInput { + clientMutationId?: string; + entries?: unknown; + message?: string; + refname?: string; + sId?: string; + storeId?: string; +} /** A filter to be used against `Store` object types. All fields are combined with a logical ‘and.’ */ export interface StoreFilter { /** Checks for all expressions in this list. */ @@ -512,6 +540,10 @@ export interface InsertNodeAtPathPayload { clientMutationId?: string | null; result?: string | null; } +export interface InsertNodesAtPathsPayload { + clientMutationId?: string | null; + result?: string | null; +} export interface ProvisionBucketPayload { /** The access type applied */ accessType: string; @@ -526,10 +558,20 @@ export interface ProvisionBucketPayload { /** Whether provisioning succeeded */ success: boolean; } +export interface SetAndCommitPayload { + clientMutationId?: string | null; + commitEdge?: CommitEdge | null; + result?: Commit | null; +} export interface SetDataAtPathPayload { clientMutationId?: string | null; result?: string | null; } +export interface SetManyAndCommitPayload { + clientMutationId?: string | null; + commitEdge?: CommitEdge | null; + result?: Commit | null; +} export interface UpdateCommitPayload { clientMutationId?: string | null; /** The `Commit` that was updated by this mutation. */ diff --git a/sdk/constructive-react/src/usage/README.md b/sdk/constructive-react/src/usage/README.md index e3bdc45b68..dded952f05 100644 --- a/sdk/constructive-react/src/usage/README.md +++ b/sdk/constructive-react/src/usage/README.md @@ -9,7 +9,7 @@ ## Overview - **Tables:** 18 -- **Custom queries:** 0 +- **Custom queries:** 2 - **Custom mutations:** 5 **Generators:** ORM, React Query diff --git a/sdk/constructive-react/src/usage/hooks/README.md b/sdk/constructive-react/src/usage/hooks/README.md index dd100f4c54..297e07aeb1 100644 --- a/sdk/constructive-react/src/usage/hooks/README.md +++ b/sdk/constructive-react/src/usage/hooks/README.md @@ -47,11 +47,11 @@ function App() { | `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 | -| `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 | +| `useAppLimitCreditCodesQuery` | Query | Redeemable credit codes managed by admins with the add_credits capability | +| `useAppLimitCreditCodeQuery` | Query | Redeemable credit codes managed by admins with the add_credits capability | +| `useCreateAppLimitCreditCodeMutation` | Mutation | Redeemable credit codes managed by admins with the add_credits capability | +| `useUpdateAppLimitCreditCodeMutation` | Mutation | Redeemable credit codes managed by admins with the add_credits capability | +| `useDeleteAppLimitCreditCodeMutation` | Mutation | Redeemable credit codes managed by admins with the add_credits capability | | `useAppLimitCreditCodeItemsQuery` | Query | Items within a credit code — each row grants credits for a specific limit definition | | `useAppLimitCreditCodeItemQuery` | Query | Items within a credit code — each row grants credits for a specific limit definition | | `useCreateAppLimitCreditCodeItemMutation` | Mutation | Items within a credit code — each row grants credits for a specific limit definition | @@ -122,6 +122,8 @@ function App() { | `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. | +| `useCaptureAppLimitDefaultsQuery` | Query | captureAppLimitDefaults | +| `useCaptureOrgLimitDefaultsQuery` | Query | captureOrgLimitDefaults | | `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, @@ -513,6 +515,20 @@ create({ entityId: '', name: '', taskIdentifier: '', thres ## Custom Operation Hooks +### `useCaptureAppLimitDefaultsQuery` + +captureAppLimitDefaults + +- **Type:** query +- **Arguments:** none + +### `useCaptureOrgLimitDefaultsQuery` + +captureOrgLimitDefaults + +- **Type:** query +- **Arguments:** none + ### `useProvisionBucketMutation` Provision an S3 bucket for a logical bucket in the database. diff --git a/sdk/constructive-react/src/usage/hooks/mutations/useCreateAppLimitCreditCodeMutation.ts b/sdk/constructive-react/src/usage/hooks/mutations/useCreateAppLimitCreditCodeMutation.ts index 0fd950f9a0..2c79c0840c 100644 --- a/sdk/constructive-react/src/usage/hooks/mutations/useCreateAppLimitCreditCodeMutation.ts +++ b/sdk/constructive-react/src/usage/hooks/mutations/useCreateAppLimitCreditCodeMutation.ts @@ -1,5 +1,5 @@ /** - * Redeemable credit codes managed by admins with the add_credits permission + * Redeemable credit codes managed by admins with the add_credits capability * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -23,7 +23,7 @@ export type { CreateAppLimitCreditCodeInput, } from '../../orm/input-types'; /** - * Redeemable credit codes managed by admins with the add_credits permission + * Redeemable credit codes managed by admins with the add_credits capability * * @example * ```tsx diff --git a/sdk/constructive-react/src/usage/hooks/mutations/useDeleteAppLimitCreditCodeMutation.ts b/sdk/constructive-react/src/usage/hooks/mutations/useDeleteAppLimitCreditCodeMutation.ts index 0d9e7d8351..5fe810e9e8 100644 --- a/sdk/constructive-react/src/usage/hooks/mutations/useDeleteAppLimitCreditCodeMutation.ts +++ b/sdk/constructive-react/src/usage/hooks/mutations/useDeleteAppLimitCreditCodeMutation.ts @@ -1,5 +1,5 @@ /** - * Redeemable credit codes managed by admins with the add_credits permission + * Redeemable credit codes managed by admins with the add_credits capability * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -21,7 +21,7 @@ export type { AppLimitCreditCodeWithRelations, } from '../../orm/input-types'; /** - * Redeemable credit codes managed by admins with the add_credits permission + * Redeemable credit codes managed by admins with the add_credits capability * * @example * ```tsx diff --git a/sdk/constructive-react/src/usage/hooks/mutations/useUpdateAppLimitCreditCodeMutation.ts b/sdk/constructive-react/src/usage/hooks/mutations/useUpdateAppLimitCreditCodeMutation.ts index 2fcf15adf6..5ebe580f69 100644 --- a/sdk/constructive-react/src/usage/hooks/mutations/useUpdateAppLimitCreditCodeMutation.ts +++ b/sdk/constructive-react/src/usage/hooks/mutations/useUpdateAppLimitCreditCodeMutation.ts @@ -1,5 +1,5 @@ /** - * Redeemable credit codes managed by admins with the add_credits permission + * Redeemable credit codes managed by admins with the add_credits capability * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -23,7 +23,7 @@ export type { AppLimitCreditCodePatch, } from '../../orm/input-types'; /** - * Redeemable credit codes managed by admins with the add_credits permission + * Redeemable credit codes managed by admins with the add_credits capability * * @example * ```tsx diff --git a/sdk/constructive-react/src/usage/hooks/queries/index.ts b/sdk/constructive-react/src/usage/hooks/queries/index.ts index a5a28bcfc0..c4ee27d455 100644 --- a/sdk/constructive-react/src/usage/hooks/queries/index.ts +++ b/sdk/constructive-react/src/usage/hooks/queries/index.ts @@ -39,3 +39,5 @@ export * from './useOrgLimitEventsQuery'; export * from './useOrgLimitEventQuery'; export * from './useOrgLimitWarningsQuery'; export * from './useOrgLimitWarningQuery'; +export * from './useCaptureAppLimitDefaultsQuery'; +export * from './useCaptureOrgLimitDefaultsQuery'; diff --git a/sdk/constructive-react/src/usage/hooks/queries/useAppLimitCreditCodeQuery.ts b/sdk/constructive-react/src/usage/hooks/queries/useAppLimitCreditCodeQuery.ts index dcf2a2b52b..c0510bf49c 100644 --- a/sdk/constructive-react/src/usage/hooks/queries/useAppLimitCreditCodeQuery.ts +++ b/sdk/constructive-react/src/usage/hooks/queries/useAppLimitCreditCodeQuery.ts @@ -1,5 +1,5 @@ /** - * Redeemable credit codes managed by admins with the add_credits permission + * Redeemable credit codes managed by admins with the add_credits capability * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -22,7 +22,7 @@ export type { /** Query key factory - re-exported from query-keys.ts */ export const appLimitCreditCodeQueryKey = appLimitCreditCodeKeys.detail; /** - * Redeemable credit codes managed by admins with the add_credits permission + * Redeemable credit codes managed by admins with the add_credits capability * * @example * ```tsx @@ -76,7 +76,7 @@ export function useAppLimitCreditCodeQuery( }); } /** - * Redeemable credit codes managed by admins with the add_credits permission + * Redeemable credit codes managed by admins with the add_credits capability * * @example * ```ts @@ -107,7 +107,7 @@ export async function fetchAppLimitCreditCodeQuery(params: { .unwrap(); } /** - * Redeemable credit codes managed by admins with the add_credits permission + * Redeemable credit codes managed by admins with the add_credits capability * * @example * ```ts diff --git a/sdk/constructive-react/src/usage/hooks/queries/useAppLimitCreditCodesQuery.ts b/sdk/constructive-react/src/usage/hooks/queries/useAppLimitCreditCodesQuery.ts index c69d74cd1a..34c59b6b28 100644 --- a/sdk/constructive-react/src/usage/hooks/queries/useAppLimitCreditCodesQuery.ts +++ b/sdk/constructive-react/src/usage/hooks/queries/useAppLimitCreditCodesQuery.ts @@ -1,5 +1,5 @@ /** - * Redeemable credit codes managed by admins with the add_credits permission + * Redeemable credit codes managed by admins with the add_credits capability * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -31,7 +31,7 @@ export type { /** Query key factory - re-exported from query-keys.ts */ export const appLimitCreditCodesQueryKey = appLimitCreditCodeKeys.list; /** - * Redeemable credit codes managed by admins with the add_credits permission + * Redeemable credit codes managed by admins with the add_credits capability * * @example * ```tsx @@ -95,7 +95,7 @@ export function useAppLimitCreditCodesQuery( }); } /** - * Redeemable credit codes managed by admins with the add_credits permission + * Redeemable credit codes managed by admins with the add_credits capability * * @example * ```ts @@ -130,7 +130,7 @@ export async function fetchAppLimitCreditCodesQuery(params: { return getClient().appLimitCreditCode.findMany(args).unwrap(); } /** - * Redeemable credit codes managed by admins with the add_credits permission + * Redeemable credit codes managed by admins with the add_credits capability * * @example * ```ts diff --git a/sdk/constructive-react/src/usage/hooks/queries/useCaptureAppLimitDefaultsQuery.ts b/sdk/constructive-react/src/usage/hooks/queries/useCaptureAppLimitDefaultsQuery.ts new file mode 100644 index 0000000000..091975a505 --- /dev/null +++ b/sdk/constructive-react/src/usage/hooks/queries/useCaptureAppLimitDefaultsQuery.ts @@ -0,0 +1,92 @@ +/** + * Custom query hook for captureAppLimitDefaults + * @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 { customQueryKeys } from '../query-keys'; +/** Query key factory - re-exported from query-keys.ts */ +export const captureAppLimitDefaultsQueryKey = customQueryKeys.captureAppLimitDefaults; +/** + * Query hook for captureAppLimitDefaults + * + * @example + * ```tsx + * const { data, isLoading } = useCaptureAppLimitDefaultsQuery(); + * + * if (data?.captureAppLimitDefaults) { + * console.log(data.captureAppLimitDefaults); + * } + * ``` + */ +export function useCaptureAppLimitDefaultsQuery< + TData = { + captureAppLimitDefaults: unknown | null; + }, +>( + params?: Omit< + UseQueryOptions< + { + captureAppLimitDefaults: unknown | null; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useCaptureAppLimitDefaultsQuery< + TData = { + captureAppLimitDefaults: unknown | null; + }, +>( + params?: Omit< + UseQueryOptions< + { + captureAppLimitDefaults: unknown | null; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult { + const queryOptions = params ?? {}; + return useQuery({ + queryKey: captureAppLimitDefaultsQueryKey(), + queryFn: () => getClient().query.captureAppLimitDefaults().unwrap(), + ...queryOptions, + }); +} +/** + * Fetch captureAppLimitDefaults without React hooks + * + * @example + * ```ts + * const data = await fetchCaptureAppLimitDefaultsQuery(); + * ``` + */ +export async function fetchCaptureAppLimitDefaultsQuery() { + return getClient().query.captureAppLimitDefaults().unwrap(); +} +/** + * Prefetch captureAppLimitDefaults for SSR or cache warming + * + * @example + * ```ts + * await prefetchCaptureAppLimitDefaultsQuery(queryClient); + * ``` + */ +export async function prefetchCaptureAppLimitDefaultsQuery( + queryClient: QueryClient +): Promise { + await queryClient.prefetchQuery({ + queryKey: captureAppLimitDefaultsQueryKey(), + queryFn: () => getClient().query.captureAppLimitDefaults().unwrap(), + }); +} diff --git a/sdk/constructive-react/src/usage/hooks/queries/useCaptureOrgLimitDefaultsQuery.ts b/sdk/constructive-react/src/usage/hooks/queries/useCaptureOrgLimitDefaultsQuery.ts new file mode 100644 index 0000000000..fac59994a7 --- /dev/null +++ b/sdk/constructive-react/src/usage/hooks/queries/useCaptureOrgLimitDefaultsQuery.ts @@ -0,0 +1,92 @@ +/** + * Custom query hook for captureOrgLimitDefaults + * @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 { customQueryKeys } from '../query-keys'; +/** Query key factory - re-exported from query-keys.ts */ +export const captureOrgLimitDefaultsQueryKey = customQueryKeys.captureOrgLimitDefaults; +/** + * Query hook for captureOrgLimitDefaults + * + * @example + * ```tsx + * const { data, isLoading } = useCaptureOrgLimitDefaultsQuery(); + * + * if (data?.captureOrgLimitDefaults) { + * console.log(data.captureOrgLimitDefaults); + * } + * ``` + */ +export function useCaptureOrgLimitDefaultsQuery< + TData = { + captureOrgLimitDefaults: unknown | null; + }, +>( + params?: Omit< + UseQueryOptions< + { + captureOrgLimitDefaults: unknown | null; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useCaptureOrgLimitDefaultsQuery< + TData = { + captureOrgLimitDefaults: unknown | null; + }, +>( + params?: Omit< + UseQueryOptions< + { + captureOrgLimitDefaults: unknown | null; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult { + const queryOptions = params ?? {}; + return useQuery({ + queryKey: captureOrgLimitDefaultsQueryKey(), + queryFn: () => getClient().query.captureOrgLimitDefaults().unwrap(), + ...queryOptions, + }); +} +/** + * Fetch captureOrgLimitDefaults without React hooks + * + * @example + * ```ts + * const data = await fetchCaptureOrgLimitDefaultsQuery(); + * ``` + */ +export async function fetchCaptureOrgLimitDefaultsQuery() { + return getClient().query.captureOrgLimitDefaults().unwrap(); +} +/** + * Prefetch captureOrgLimitDefaults for SSR or cache warming + * + * @example + * ```ts + * await prefetchCaptureOrgLimitDefaultsQuery(queryClient); + * ``` + */ +export async function prefetchCaptureOrgLimitDefaultsQuery( + queryClient: QueryClient +): Promise { + await queryClient.prefetchQuery({ + queryKey: captureOrgLimitDefaultsQueryKey(), + queryFn: () => getClient().query.captureOrgLimitDefaults().unwrap(), + }); +} diff --git a/sdk/constructive-react/src/usage/hooks/query-keys.ts b/sdk/constructive-react/src/usage/hooks/query-keys.ts index 3f330e7f19..3502e16371 100644 --- a/sdk/constructive-react/src/usage/hooks/query-keys.ts +++ b/sdk/constructive-react/src/usage/hooks/query-keys.ts @@ -181,6 +181,17 @@ export const orgLimitWarningKeys = { /** Detail query key for specific item */ detail: (id: string | number) => [...orgLimitWarningKeys.details(), id] as const, } as const; + +// ============================================================================ +// Custom Query Keys +// ============================================================================ + +export const customQueryKeys = { + /** Query key for captureAppLimitDefaults */ captureAppLimitDefaults: () => + ['captureAppLimitDefaults'] as const, + /** Query key for captureOrgLimitDefaults */ captureOrgLimitDefaults: () => + ['captureOrgLimitDefaults'] as const, +} as const; /** // ============================================================================ @@ -222,6 +233,7 @@ export const queryKeys = { orgLimitDefault: orgLimitDefaultKeys, orgLimitEvent: orgLimitEventKeys, orgLimitWarning: orgLimitWarningKeys, + custom: customQueryKeys, } as const; /** Type representing all available query key scopes */ export type QueryKeyScope = keyof typeof queryKeys; diff --git a/sdk/constructive-react/src/usage/orm/README.md b/sdk/constructive-react/src/usage/orm/README.md index dfcec601ac..99c23e9f50 100644 --- a/sdk/constructive-react/src/usage/orm/README.md +++ b/sdk/constructive-react/src/usage/orm/README.md @@ -678,6 +678,28 @@ const deleted = await db.orgLimitWarning.delete({ where: { id: '' } }).exe ## Custom Operations +### `db.query.captureAppLimitDefaults` + +captureAppLimitDefaults + +- **Type:** query +- **Arguments:** none + +```typescript +const result = await db.query.captureAppLimitDefaults().execute(); +``` + +### `db.query.captureOrgLimitDefaults` + +captureOrgLimitDefaults + +- **Type:** query +- **Arguments:** none + +```typescript +const result = await db.query.captureOrgLimitDefaults().execute(); +``` + ### `db.mutation.provisionBucket` Provision an S3 bucket for a logical bucket in the database. diff --git a/sdk/constructive-react/src/usage/orm/index.ts b/sdk/constructive-react/src/usage/orm/index.ts index 7d48027d3b..04e02a468b 100644 --- a/sdk/constructive-react/src/usage/orm/index.ts +++ b/sdk/constructive-react/src/usage/orm/index.ts @@ -23,12 +23,14 @@ import { OrgLimitCreditModel } from './models/orgLimitCredit'; import { OrgLimitDefaultModel } from './models/orgLimitDefault'; import { OrgLimitEventModel } from './models/orgLimitEvent'; import { OrgLimitWarningModel } from './models/orgLimitWarning'; +import { createQueryOperations } from './query'; import { createMutationOperations } from './mutation'; export type { OrmClientConfig, QueryResult, GraphQLError, GraphQLAdapter } from './client'; export { GraphQLRequestError, FetchAdapter } from './client'; export { QueryBuilder } from './query-builder'; export * from './select-types'; export * from './models'; +export { createQueryOperations } from './query'; export { createMutationOperations } from './mutation'; /** * Create an ORM client instance @@ -74,6 +76,7 @@ export function createClient(config: OrmClientConfig) { orgLimitDefault: new OrgLimitDefaultModel(client), orgLimitEvent: new OrgLimitEventModel(client), orgLimitWarning: new OrgLimitWarningModel(client), + query: createQueryOperations(client), mutation: createMutationOperations(client), }; } diff --git a/sdk/constructive-react/src/usage/orm/input-types.ts b/sdk/constructive-react/src/usage/orm/input-types.ts index f8df1c43d8..330559a4a4 100644 --- a/sdk/constructive-react/src/usage/orm/input-types.ts +++ b/sdk/constructive-react/src/usage/orm/input-types.ts @@ -266,7 +266,7 @@ export interface AppLimit { organizationId?: string | null; /** Temporary credits for the current billing window. Resets to 0 on window expiry. */ periodCredits?: string | null; - /** Ceiling set by the active plan via apply_plan(). Window reset does not change this value. */ + /** Ceiling pinned for this actor by the active plan via apply_plan(). NULL means the ceiling follows the tenant default in the default-limits table, so raising a default reaches rows that already exist. Window reset does not change this value. */ planMax?: string | null; /** Permanent credits from purchases, admin grants, or lifetime rewards. Survives window reset. */ purchasedCredits?: string | null; @@ -277,7 +277,7 @@ export interface AppLimit { /** Start of the current metering window; NULL means no time window */ windowStart?: string | null; } -/** Redeemable credit codes managed by admins with the add_credits permission */ +/** Redeemable credit codes managed by admins with the add_credits capability */ export interface AppLimitCreditCode { /** Human-readable credit code (case-insensitive, unique) */ code?: string | null; @@ -394,7 +394,7 @@ export interface OrgLimitAggregate { organizationId?: string | null; /** Temporary credits for the current billing window. Resets to 0 on window expiry. */ periodCredits?: string | null; - /** Ceiling set by the active plan via apply_plan(). Window reset does not change this value. */ + /** Ceiling pinned for this entity by the active plan via apply_plan(). NULL means the ceiling follows the tenant default in the default-limits table, so raising a default reaches rows that already exist. Window reset does not change this value. */ planMax?: string | null; /** Permanent credits from purchases, admin grants, or lifetime rewards. Survives window reset. */ purchasedCredits?: string | null; @@ -443,7 +443,7 @@ export interface OrgLimit { organizationId?: string | null; /** Temporary credits for the current billing window. Resets to 0 on window expiry. */ periodCredits?: string | null; - /** Ceiling set by the active plan via apply_plan(). Window reset does not change this value. */ + /** Ceiling pinned for this actor by the active plan via apply_plan(). NULL means the ceiling follows the tenant default in the default-limits table, so raising a default reaches rows that already exist. Window reset does not change this value. */ planMax?: string | null; /** Permanent credits from purchases, admin grants, or lifetime rewards. Survives window reset. */ purchasedCredits?: string | null; @@ -2229,7 +2229,7 @@ export interface AppLimitInput { organizationId?: string; /** Temporary credits for the current billing window. Resets to 0 on window expiry. */ periodCredits?: string; - /** Ceiling set by the active plan via apply_plan(). Window reset does not change this value. */ + /** Ceiling pinned for this actor by the active plan via apply_plan(). NULL means the ceiling follows the tenant default in the default-limits table, so raising a default reaches rows that already exist. Window reset does not change this value. */ planMax?: string; /** Permanent credits from purchases, admin grants, or lifetime rewards. Survives window reset. */ purchasedCredits?: string; @@ -2376,7 +2376,7 @@ export interface OrgLimitAggregateInput { organizationId?: string; /** Temporary credits for the current billing window. Resets to 0 on window expiry. */ periodCredits?: string; - /** Ceiling set by the active plan via apply_plan(). Window reset does not change this value. */ + /** Ceiling pinned for this entity by the active plan via apply_plan(). NULL means the ceiling follows the tenant default in the default-limits table, so raising a default reaches rows that already exist. Window reset does not change this value. */ planMax?: string; /** Permanent credits from purchases, admin grants, or lifetime rewards. Survives window reset. */ purchasedCredits?: string; @@ -2425,7 +2425,7 @@ export interface OrgLimitInput { organizationId?: string; /** Temporary credits for the current billing window. Resets to 0 on window expiry. */ periodCredits?: string; - /** Ceiling set by the active plan via apply_plan(). Window reset does not change this value. */ + /** Ceiling pinned for this actor by the active plan via apply_plan(). NULL means the ceiling follows the tenant default in the default-limits table, so raising a default reaches rows that already exist. Window reset does not change this value. */ planMax?: string; /** Permanent credits from purchases, admin grants, or lifetime rewards. Survives window reset. */ purchasedCredits?: string; diff --git a/sdk/constructive-react/src/usage/orm/query/index.ts b/sdk/constructive-react/src/usage/orm/query/index.ts new file mode 100644 index 0000000000..4972b387c7 --- /dev/null +++ b/sdk/constructive-react/src/usage/orm/query/index.ts @@ -0,0 +1,51 @@ +/** + * Custom query operations + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ +import { OrmClient } from '../client'; +import { QueryBuilder, buildCustomDocument } from '../query-builder'; +import type { InferSelectResult, StrictSelect } from '../select-types'; +import { connectionFieldsMap } from '../input-types'; +export function createQueryOperations(client: OrmClient) { + return { + captureAppLimitDefaults: (options?: { select?: Record }) => + new QueryBuilder<{ + captureAppLimitDefaults: unknown | null; + }>({ + client, + operation: 'query', + operationName: 'CaptureAppLimitDefaults', + fieldName: 'captureAppLimitDefaults', + ...buildCustomDocument( + 'query', + 'CaptureAppLimitDefaults', + 'captureAppLimitDefaults', + options?.select, + undefined, + [], + connectionFieldsMap, + undefined + ), + }), + captureOrgLimitDefaults: (options?: { select?: Record }) => + new QueryBuilder<{ + captureOrgLimitDefaults: unknown | null; + }>({ + client, + operation: 'query', + operationName: 'CaptureOrgLimitDefaults', + fieldName: 'captureOrgLimitDefaults', + ...buildCustomDocument( + 'query', + 'CaptureOrgLimitDefaults', + 'captureOrgLimitDefaults', + options?.select, + undefined, + [], + connectionFieldsMap, + undefined + ), + }), + }; +} diff --git a/sdk/constructive-react/src/usage/schema-types.ts b/sdk/constructive-react/src/usage/schema-types.ts index 4bb53eb436..51a517fc23 100644 --- a/sdk/constructive-react/src/usage/schema-types.ts +++ b/sdk/constructive-react/src/usage/schema-types.ts @@ -877,7 +877,7 @@ export interface AppLimitInput { organizationId?: string; /** Temporary credits for the current billing window. Resets to 0 on window expiry. */ periodCredits?: string; - /** Ceiling set by the active plan via apply_plan(). Window reset does not change this value. */ + /** Ceiling pinned for this actor by the active plan via apply_plan(). NULL means the ceiling follows the tenant default in the default-limits table, so raising a default reaches rows that already exist. Window reset does not change this value. */ planMax?: string; /** Permanent credits from purchases, admin grants, or lifetime rewards. Survives window reset. */ purchasedCredits?: string; @@ -905,7 +905,7 @@ export interface AppLimitPatch { organizationId?: string; /** Temporary credits for the current billing window. Resets to 0 on window expiry. */ periodCredits?: string; - /** Ceiling set by the active plan via apply_plan(). Window reset does not change this value. */ + /** Ceiling pinned for this actor by the active plan via apply_plan(). NULL means the ceiling follows the tenant default in the default-limits table, so raising a default reaches rows that already exist. Window reset does not change this value. */ planMax?: string; /** Permanent credits from purchases, admin grants, or lifetime rewards. Survives window reset. */ purchasedCredits?: string; @@ -1223,7 +1223,7 @@ export interface OrgLimitAggregateInput { organizationId?: string; /** Temporary credits for the current billing window. Resets to 0 on window expiry. */ periodCredits?: string; - /** Ceiling set by the active plan via apply_plan(). Window reset does not change this value. */ + /** Ceiling pinned for this entity by the active plan via apply_plan(). NULL means the ceiling follows the tenant default in the default-limits table, so raising a default reaches rows that already exist. Window reset does not change this value. */ planMax?: string; /** Permanent credits from purchases, admin grants, or lifetime rewards. Survives window reset. */ purchasedCredits?: string; @@ -1253,7 +1253,7 @@ export interface OrgLimitAggregatePatch { organizationId?: string; /** Temporary credits for the current billing window. Resets to 0 on window expiry. */ periodCredits?: string; - /** Ceiling set by the active plan via apply_plan(). Window reset does not change this value. */ + /** Ceiling pinned for this entity by the active plan via apply_plan(). NULL means the ceiling follows the tenant default in the default-limits table, so raising a default reaches rows that already exist. Window reset does not change this value. */ planMax?: string; /** Permanent credits from purchases, admin grants, or lifetime rewards. Survives window reset. */ purchasedCredits?: string; @@ -1599,7 +1599,7 @@ export interface OrgLimitInput { organizationId?: string; /** Temporary credits for the current billing window. Resets to 0 on window expiry. */ periodCredits?: string; - /** Ceiling set by the active plan via apply_plan(). Window reset does not change this value. */ + /** Ceiling pinned for this actor by the active plan via apply_plan(). NULL means the ceiling follows the tenant default in the default-limits table, so raising a default reaches rows that already exist. Window reset does not change this value. */ planMax?: string; /** Permanent credits from purchases, admin grants, or lifetime rewards. Survives window reset. */ purchasedCredits?: string; @@ -1628,7 +1628,7 @@ export interface OrgLimitPatch { organizationId?: string; /** Temporary credits for the current billing window. Resets to 0 on window expiry. */ periodCredits?: string; - /** Ceiling set by the active plan via apply_plan(). Window reset does not change this value. */ + /** Ceiling pinned for this actor by the active plan via apply_plan(). NULL means the ceiling follows the tenant default in the default-limits table, so raising a default reaches rows that already exist. Window reset does not change this value. */ planMax?: string; /** Permanent credits from purchases, admin grants, or lifetime rewards. Survives window reset. */ purchasedCredits?: string; diff --git a/sdk/constructive-sdk/schemas/admin.graphql b/sdk/constructive-sdk/schemas/admin.graphql index fab97e7ab3..330e389221 100644 --- a/sdk/constructive-sdk/schemas/admin.graphql +++ b/sdk/constructive-sdk/schemas/admin.graphql @@ -122,6 +122,228 @@ input AppAdminGrantPatch { updatedAt: Datetime } +""" +Join table linking capability defaults to individual capabilities; recompute trigger rebuilds the defaults bitmask +""" +type AppCapabilityDefaultCapability { + """References the capability included in the defaults bundle""" + capabilityId: UUID! + createdAt: Datetime + id: UUID! + updatedAt: Datetime +} + +"""A connection to a list of `AppCapabilityDefaultCapability` values.""" +type AppCapabilityDefaultCapabilityConnection { + """ + A list of edges which contains the `AppCapabilityDefaultCapability` and cursor to aid in pagination. + """ + edges: [AppCapabilityDefaultCapabilityEdge]! + + """A list of `AppCapabilityDefaultCapability` objects.""" + nodes: [AppCapabilityDefaultCapability]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! + + """ + The count of *all* `AppCapabilityDefaultCapability` you could get from the connection. + """ + totalCount: Int! +} + +"""A `AppCapabilityDefaultCapability` edge in the connection.""" +type AppCapabilityDefaultCapabilityEdge { + """A cursor for use in pagination.""" + cursor: Cursor + + """The `AppCapabilityDefaultCapability` at the end of the edge.""" + node: AppCapabilityDefaultCapability +} + +""" +A filter to be used against `AppCapabilityDefaultCapability` object types. All fields are combined with a logical ‘and.’ +""" +input AppCapabilityDefaultCapabilityFilter { + """Checks for all expressions in this list.""" + and: [AppCapabilityDefaultCapabilityFilter!] + + """Filter by the object’s `capabilityId` field.""" + capabilityId: UUIDFilter + + """Filter by the object’s `createdAt` field.""" + createdAt: DatetimeFilter + + """Filter by the object’s `id` field.""" + id: UUIDFilter + + """Negates the expression.""" + not: AppCapabilityDefaultCapabilityFilter + + """Checks for any expressions in this list.""" + or: [AppCapabilityDefaultCapabilityFilter!] + + """Filter by the object’s `updatedAt` field.""" + updatedAt: DatetimeFilter +} + +"""An input for mutations affecting `AppCapabilityDefaultCapability`""" +input AppCapabilityDefaultCapabilityInput { + """References the capability included in the defaults bundle""" + capabilityId: UUID! + createdAt: Datetime + id: UUID + updatedAt: Datetime +} + +"""Methods to use when ordering `AppCapabilityDefaultCapability`.""" +enum AppCapabilityDefaultCapabilityOrderBy { + CAPABILITY_ID_ASC + CAPABILITY_ID_DESC + CREATED_AT_ASC + CREATED_AT_DESC + ID_ASC + ID_DESC + NATURAL + PRIMARY_KEY_ASC + PRIMARY_KEY_DESC + UPDATED_AT_ASC + UPDATED_AT_DESC +} + +""" +Represents an update to a `AppCapabilityDefaultCapability`. Fields that are set will be updated. +""" +input AppCapabilityDefaultCapabilityPatch { + """References the capability included in the defaults bundle""" + capabilityId: UUID + createdAt: Datetime + id: UUID + updatedAt: Datetime +} + +""" +Audit log of capability additions and removals from the defaults bitmask +""" +type AppCapabilityDefaultGrant { + """References the capability being added to or removed from defaults""" + capabilityId: UUID! + createdAt: Datetime + grantorId: UUID + id: UUID! + + """True to add the capability to defaults, false to remove it""" + isGrant: Boolean! + updatedAt: Datetime +} + +"""A connection to a list of `AppCapabilityDefaultGrant` values.""" +type AppCapabilityDefaultGrantConnection { + """ + A list of edges which contains the `AppCapabilityDefaultGrant` and cursor to aid in pagination. + """ + edges: [AppCapabilityDefaultGrantEdge]! + + """A list of `AppCapabilityDefaultGrant` objects.""" + nodes: [AppCapabilityDefaultGrant]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! + + """ + The count of *all* `AppCapabilityDefaultGrant` you could get from the connection. + """ + totalCount: Int! +} + +"""A `AppCapabilityDefaultGrant` edge in the connection.""" +type AppCapabilityDefaultGrantEdge { + """A cursor for use in pagination.""" + cursor: Cursor + + """The `AppCapabilityDefaultGrant` at the end of the edge.""" + node: AppCapabilityDefaultGrant +} + +""" +A filter to be used against `AppCapabilityDefaultGrant` object types. All fields are combined with a logical ‘and.’ +""" +input AppCapabilityDefaultGrantFilter { + """Checks for all expressions in this list.""" + and: [AppCapabilityDefaultGrantFilter!] + + """Filter by the object’s `capabilityId` field.""" + capabilityId: UUIDFilter + + """Filter by the object’s `createdAt` field.""" + createdAt: DatetimeFilter + + """Filter by the object’s `grantorId` field.""" + grantorId: UUIDFilter + + """Filter by the object’s `id` field.""" + id: UUIDFilter + + """Filter by the object’s `isGrant` field.""" + isGrant: BooleanFilter + + """Negates the expression.""" + not: AppCapabilityDefaultGrantFilter + + """Checks for any expressions in this list.""" + or: [AppCapabilityDefaultGrantFilter!] + + """Filter by the object’s `updatedAt` field.""" + updatedAt: DatetimeFilter +} + +"""An input for mutations affecting `AppCapabilityDefaultGrant`""" +input AppCapabilityDefaultGrantInput { + """References the capability being added to or removed from defaults""" + capabilityId: UUID! + createdAt: Datetime + grantorId: UUID + id: UUID + + """True to add the capability to defaults, false to remove it""" + isGrant: Boolean + updatedAt: Datetime +} + +"""Methods to use when ordering `AppCapabilityDefaultGrant`.""" +enum AppCapabilityDefaultGrantOrderBy { + CAPABILITY_ID_ASC + CAPABILITY_ID_DESC + CREATED_AT_ASC + CREATED_AT_DESC + GRANTOR_ID_ASC + GRANTOR_ID_DESC + ID_ASC + ID_DESC + IS_GRANT_ASC + IS_GRANT_DESC + NATURAL + PRIMARY_KEY_ASC + PRIMARY_KEY_DESC + UPDATED_AT_ASC + UPDATED_AT_DESC +} + +""" +Represents an update to a `AppCapabilityDefaultGrant`. Fields that are set will be updated. +""" +input AppCapabilityDefaultGrantPatch { + """References the capability being added to or removed from defaults""" + capabilityId: UUID + createdAt: Datetime + grantorId: UUID + id: UUID + + """True to add the capability to defaults, false to remove it""" + isGrant: Boolean + updatedAt: Datetime +} + """ Records of successfully claimed invitations, linking senders to receivers """ @@ -251,22 +473,22 @@ input AppClaimedInvitePatch { } """ -Records of individual permission grants and revocations for members via bitmask +Records of individual capability grants and revocations for members via bitmask """ type AppGrant { """ - The member receiving or losing the permission grant; NULL if user was deleted + The member receiving or losing the capability grant; NULL if user was deleted """ actorId: UUID + + """Bitmask of capabilities being granted or revoked""" + capabilities: BitString! createdAt: Datetime grantorId: UUID id: UUID! - """True to grant the permissions, false to revoke them""" + """True to grant the capabilities, false to revoke them""" isGrant: Boolean! - - """Bitmask of permissions being granted or revoked""" - permissions: BitString! updatedAt: Datetime } @@ -306,6 +528,9 @@ input AppGrantFilter { """Checks for all expressions in this list.""" and: [AppGrantFilter!] + """Filter by the object’s `capabilities` field.""" + capabilities: BitStringFilter + """Filter by the object’s `createdAt` field.""" createdAt: DatetimeFilter @@ -324,9 +549,6 @@ input AppGrantFilter { """Checks for any expressions in this list.""" or: [AppGrantFilter!] - """Filter by the object’s `permissions` field.""" - permissions: BitStringFilter - """Filter by the object’s `updatedAt` field.""" updatedAt: DatetimeFilter } @@ -334,18 +556,18 @@ input AppGrantFilter { """An input for mutations affecting `AppGrant`""" input AppGrantInput { """ - The member receiving or losing the permission grant; NULL if user was deleted + The member receiving or losing the capability grant; NULL if user was deleted """ actorId: UUID + + """Bitmask of capabilities being granted or revoked""" + capabilities: BitString createdAt: Datetime grantorId: UUID id: UUID - """True to grant the permissions, false to revoke them""" + """True to grant the capabilities, false to revoke them""" isGrant: Boolean - - """Bitmask of permissions being granted or revoked""" - permissions: BitString updatedAt: Datetime } @@ -353,6 +575,8 @@ input AppGrantInput { enum AppGrantOrderBy { ACTOR_ID_ASC ACTOR_ID_DESC + CAPABILITIES_ASC + CAPABILITIES_DESC CREATED_AT_ASC CREATED_AT_DESC GRANTOR_ID_ASC @@ -362,8 +586,6 @@ enum AppGrantOrderBy { IS_GRANT_ASC IS_GRANT_DESC NATURAL - PERMISSIONS_ASC - PERMISSIONS_DESC PRIMARY_KEY_ASC PRIMARY_KEY_DESC UPDATED_AT_ASC @@ -375,18 +597,18 @@ Represents an update to a `AppGrant`. Fields that are set will be updated. """ input AppGrantPatch { """ - The member receiving or losing the permission grant; NULL if user was deleted + The member receiving or losing the capability grant; NULL if user was deleted """ actorId: UUID + + """Bitmask of capabilities being granted or revoked""" + capabilities: BitString createdAt: Datetime grantorId: UUID id: UUID - """True to grant the permissions, false to revoke them""" + """True to grant the capabilities, false to revoke them""" isGrant: Boolean - - """Bitmask of permissions being granted or revoked""" - permissions: BitString updatedAt: Datetime } @@ -652,16 +874,21 @@ input AppInvitePatch { } """ -Tracks membership records linking actors to entities with permission bitmasks, ownership, and admin status +Tracks membership records linking actors to entities with capability bitmasks, ownership, and admin status """ type AppMembership { """References the user who holds this membership""" actorId: UUID! + + """ + Aggregated capability bitmask combining profile-based and directly granted capabilities + """ + capabilities: BitString! createdAt: Datetime createdBy: UUID """ - Bitmask of permissions directly granted to this member (not from profiles) + Bitmask of capabilities directly granted to this member (not from profiles) """ granted: BitString! id: UUID! @@ -688,11 +915,6 @@ type AppMembership { """Whether this member has been verified (e.g. email confirmation)""" isVerified: Boolean! - - """ - Aggregated permission bitmask combining profile-based and directly granted permissions - """ - permissions: BitString! profileId: UUID updatedAt: Datetime updatedBy: UUID @@ -867,6 +1089,9 @@ input AppMembershipFilter { """Checks for all expressions in this list.""" and: [AppMembershipFilter!] + """Filter by the object’s `capabilities` field.""" + capabilities: BitStringFilter + """Filter by the object’s `createdAt` field.""" createdAt: DatetimeFilter @@ -906,9 +1131,6 @@ input AppMembershipFilter { """Checks for any expressions in this list.""" or: [AppMembershipFilter!] - """Filter by the object’s `permissions` field.""" - permissions: BitStringFilter - """Filter by the object’s `profileId` field.""" profileId: UUIDFilter @@ -923,11 +1145,16 @@ input AppMembershipFilter { input AppMembershipInput { """References the user who holds this membership""" actorId: UUID! + + """ + Aggregated capability bitmask combining profile-based and directly granted capabilities + """ + capabilities: BitString createdAt: Datetime createdBy: UUID """ - Bitmask of permissions directly granted to this member (not from profiles) + Bitmask of capabilities directly granted to this member (not from profiles) """ granted: BitString id: UUID @@ -954,11 +1181,6 @@ input AppMembershipInput { """Whether this member has been verified (e.g. email confirmation)""" isVerified: Boolean - - """ - Aggregated permission bitmask combining profile-based and directly granted permissions - """ - permissions: BitString profileId: UUID updatedAt: Datetime updatedBy: UUID @@ -968,6 +1190,8 @@ input AppMembershipInput { enum AppMembershipOrderBy { ACTOR_ID_ASC ACTOR_ID_DESC + CAPABILITIES_ASC + CAPABILITIES_DESC CREATED_AT_ASC CREATED_AT_DESC CREATED_BY_ASC @@ -991,8 +1215,6 @@ enum AppMembershipOrderBy { IS_VERIFIED_ASC IS_VERIFIED_DESC NATURAL - PERMISSIONS_ASC - PERMISSIONS_DESC PRIMARY_KEY_ASC PRIMARY_KEY_DESC PROFILE_ID_ASC @@ -1009,11 +1231,16 @@ Represents an update to a `AppMembership`. Fields that are set will be updated. input AppMembershipPatch { """References the user who holds this membership""" actorId: UUID + + """ + Aggregated capability bitmask combining profile-based and directly granted capabilities + """ + capabilities: BitString createdAt: Datetime createdBy: UUID """ - Bitmask of permissions directly granted to this member (not from profiles) + Bitmask of capabilities directly granted to this member (not from profiles) """ granted: BitString id: UUID @@ -1040,11 +1267,6 @@ input AppMembershipPatch { """Whether this member has been verified (e.g. email confirmation)""" isVerified: Boolean - - """ - Aggregated permission bitmask combining profile-based and directly granted permissions - """ - permissions: BitString profileId: UUID updatedAt: Datetime updatedBy: UUID @@ -1174,607 +1396,74 @@ input AppOwnerGrantPatch { updatedAt: Datetime } +"""A string representing a series of binary bits""" +scalar BitString + """ -Defines available permissions as named bits within a bitmask, used by the RBAC system for access control +A filter to be used against BitString fields. All fields are combined with a logical ‘and.’ """ -type AppPermission { +input BitStringFilter { """ - Reads and enables pagination through a set of `AppPermissionDefaultGrant`. + Not equal to the specified value, treating null like an ordinary value. """ - appPermissionDefaultGrantsByPermissionId( - """Read all values in the set after (below) this cursor.""" - after: Cursor - - """Read all values in the set before (above) this cursor.""" - before: Cursor - - """Only read the first `n` values of the set.""" - first: Int + distinctFrom: BitString - """Only read the last `n` values of the set.""" - last: Int + """Equal to the specified value.""" + equalTo: BitString - """ - Skip the first `n` values from our `after` cursor, an alternative to cursor - based pagination. May not be used with `last`. - """ - offset: Int + """Greater than the specified value.""" + greaterThan: BitString - """The method to use when ordering `AppPermissionDefaultGrant`.""" - orderBy: [AppPermissionDefaultGrantOrderBy!] = [PRIMARY_KEY_ASC] + """Greater than or equal to the specified value.""" + greaterThanOrEqualTo: BitString - """ - A filter to be used in determining which values should be returned by the collection. - """ - where: AppPermissionDefaultGrantFilter - ): AppPermissionDefaultGrantConnection! + """Included in the specified list.""" + in: [BitString!] """ - Reads a single `AppPermissionDefaultPermission` that is related to this `AppPermission`. + Is null (if `true` is specified) or is not null (if `false` is specified). """ - appPermissionDefaultPermissionByPermissionId: AppPermissionDefaultPermission + isNull: Boolean - """ - Position of this permission in the bitmask (1-indexed), must be unique per permission set - """ - bitnum: Int + """Less than the specified value.""" + lessThan: BitString - """ - Pre-computed bitmask with only this permission bit set, used for bitwise OR/AND operations - """ - bitstr: BitString! + """Less than or equal to the specified value.""" + lessThanOrEqualTo: BitString - """Human-readable description of what this permission allows""" - description: String - id: UUID! + """Equal to the specified value, treating null like an ordinary value.""" + notDistinctFrom: BitString - """Human-readable permission name (e.g. read, write, manage)""" - name: String + """Not equal to the specified value.""" + notEqualTo: BitString + + """Not included in the specified list.""" + notIn: [BitString!] } -"""A connection to a list of `AppPermission` values.""" -type AppPermissionConnection { +""" +A filter to be used against Boolean fields. All fields are combined with a logical ‘and.’ +""" +input BooleanFilter { """ - A list of edges which contains the `AppPermission` and cursor to aid in pagination. + Not equal to the specified value, treating null like an ordinary value. """ - edges: [AppPermissionEdge]! - - """A list of `AppPermission` objects.""" - nodes: [AppPermission]! + distinctFrom: Boolean - """Information to aid in pagination.""" - pageInfo: PageInfo! + """Equal to the specified value.""" + equalTo: Boolean - """The count of *all* `AppPermission` you could get from the connection.""" - totalCount: Int! -} + """Greater than the specified value.""" + greaterThan: Boolean -""" -Stores the default permission bitmask assigned to new members upon joining -""" -type AppPermissionDefault { - id: UUID! + """Greater than or equal to the specified value.""" + greaterThanOrEqualTo: Boolean - """Default permission bitmask applied to new members""" - permissions: BitString! -} + """Included in the specified list.""" + in: [Boolean!] -"""A connection to a list of `AppPermissionDefault` values.""" -type AppPermissionDefaultConnection { """ - A list of edges which contains the `AppPermissionDefault` and cursor to aid in pagination. - """ - edges: [AppPermissionDefaultEdge]! - - """A list of `AppPermissionDefault` objects.""" - nodes: [AppPermissionDefault]! - - """Information to aid in pagination.""" - pageInfo: PageInfo! - - """ - The count of *all* `AppPermissionDefault` you could get from the connection. - """ - totalCount: Int! -} - -"""A `AppPermissionDefault` edge in the connection.""" -type AppPermissionDefaultEdge { - """A cursor for use in pagination.""" - cursor: Cursor - - """The `AppPermissionDefault` at the end of the edge.""" - node: AppPermissionDefault -} - -""" -A filter to be used against `AppPermissionDefault` object types. All fields are combined with a logical ‘and.’ -""" -input AppPermissionDefaultFilter { - """Checks for all expressions in this list.""" - and: [AppPermissionDefaultFilter!] - - """Filter by the object’s `id` field.""" - id: UUIDFilter - - """Negates the expression.""" - not: AppPermissionDefaultFilter - - """Checks for any expressions in this list.""" - or: [AppPermissionDefaultFilter!] - - """Filter by the object’s `permissions` field.""" - permissions: BitStringFilter -} - -""" -Audit log of permission additions and removals from the defaults bitmask -""" -type AppPermissionDefaultGrant { - createdAt: Datetime - grantorId: UUID - id: UUID! - - """True to add the permission to defaults, false to remove it""" - isGrant: Boolean! - - """ - Reads a single `AppPermission` that is related to this `AppPermissionDefaultGrant`. - """ - permission: AppPermission - - """References the permission being added to or removed from defaults""" - permissionId: UUID! - updatedAt: Datetime -} - -"""A connection to a list of `AppPermissionDefaultGrant` values.""" -type AppPermissionDefaultGrantConnection { - """ - A list of edges which contains the `AppPermissionDefaultGrant` and cursor to aid in pagination. - """ - edges: [AppPermissionDefaultGrantEdge]! - - """A list of `AppPermissionDefaultGrant` objects.""" - nodes: [AppPermissionDefaultGrant]! - - """Information to aid in pagination.""" - pageInfo: PageInfo! - - """ - The count of *all* `AppPermissionDefaultGrant` you could get from the connection. - """ - totalCount: Int! -} - -"""A `AppPermissionDefaultGrant` edge in the connection.""" -type AppPermissionDefaultGrantEdge { - """A cursor for use in pagination.""" - cursor: Cursor - - """The `AppPermissionDefaultGrant` at the end of the edge.""" - node: AppPermissionDefaultGrant -} - -""" -A filter to be used against `AppPermissionDefaultGrant` object types. All fields are combined with a logical ‘and.’ -""" -input AppPermissionDefaultGrantFilter { - """Checks for all expressions in this list.""" - and: [AppPermissionDefaultGrantFilter!] - - """Filter by the object’s `createdAt` field.""" - createdAt: DatetimeFilter - - """Filter by the object’s `grantorId` field.""" - grantorId: UUIDFilter - - """Filter by the object’s `id` field.""" - id: UUIDFilter - - """Filter by the object’s `isGrant` field.""" - isGrant: BooleanFilter - - """Negates the expression.""" - not: AppPermissionDefaultGrantFilter - - """Checks for any expressions in this list.""" - or: [AppPermissionDefaultGrantFilter!] - - """Filter by the object’s `permission` relation.""" - permission: AppPermissionFilter - - """Filter by the object’s `permissionId` field.""" - permissionId: UUIDFilter - - """Filter by the object’s `updatedAt` field.""" - updatedAt: DatetimeFilter -} - -"""An input for mutations affecting `AppPermissionDefaultGrant`""" -input AppPermissionDefaultGrantInput { - createdAt: Datetime - grantorId: UUID - id: UUID - - """True to add the permission to defaults, false to remove it""" - isGrant: Boolean - - """References the permission being added to or removed from defaults""" - permissionId: UUID! - updatedAt: Datetime -} - -"""Methods to use when ordering `AppPermissionDefaultGrant`.""" -enum AppPermissionDefaultGrantOrderBy { - CREATED_AT_ASC - CREATED_AT_DESC - GRANTOR_ID_ASC - GRANTOR_ID_DESC - ID_ASC - ID_DESC - IS_GRANT_ASC - IS_GRANT_DESC - NATURAL - PERMISSION_ID_ASC - PERMISSION_ID_DESC - PRIMARY_KEY_ASC - PRIMARY_KEY_DESC - UPDATED_AT_ASC - UPDATED_AT_DESC -} - -""" -Represents an update to a `AppPermissionDefaultGrant`. Fields that are set will be updated. -""" -input AppPermissionDefaultGrantPatch { - createdAt: Datetime - grantorId: UUID - id: UUID - - """True to add the permission to defaults, false to remove it""" - isGrant: Boolean - - """References the permission being added to or removed from defaults""" - permissionId: UUID - updatedAt: Datetime -} - -"""An input for mutations affecting `AppPermissionDefault`""" -input AppPermissionDefaultInput { - id: UUID - - """Default permission bitmask applied to new members""" - permissions: BitString -} - -"""Methods to use when ordering `AppPermissionDefault`.""" -enum AppPermissionDefaultOrderBy { - ID_ASC - ID_DESC - NATURAL - PERMISSIONS_ASC - PERMISSIONS_DESC - PRIMARY_KEY_ASC - PRIMARY_KEY_DESC -} - -""" -Represents an update to a `AppPermissionDefault`. Fields that are set will be updated. -""" -input AppPermissionDefaultPatch { - id: UUID - - """Default permission bitmask applied to new members""" - permissions: BitString -} - -""" -Join table linking permission defaults to individual permissions; recompute trigger rebuilds the defaults bitmask -""" -type AppPermissionDefaultPermission { - createdAt: Datetime - id: UUID! - - """ - Reads a single `AppPermission` that is related to this `AppPermissionDefaultPermission`. - """ - permission: AppPermission - - """References the permission included in the defaults bundle""" - permissionId: UUID! - updatedAt: Datetime -} - -"""A connection to a list of `AppPermissionDefaultPermission` values.""" -type AppPermissionDefaultPermissionConnection { - """ - A list of edges which contains the `AppPermissionDefaultPermission` and cursor to aid in pagination. - """ - edges: [AppPermissionDefaultPermissionEdge]! - - """A list of `AppPermissionDefaultPermission` objects.""" - nodes: [AppPermissionDefaultPermission]! - - """Information to aid in pagination.""" - pageInfo: PageInfo! - - """ - The count of *all* `AppPermissionDefaultPermission` you could get from the connection. - """ - totalCount: Int! -} - -"""A `AppPermissionDefaultPermission` edge in the connection.""" -type AppPermissionDefaultPermissionEdge { - """A cursor for use in pagination.""" - cursor: Cursor - - """The `AppPermissionDefaultPermission` at the end of the edge.""" - node: AppPermissionDefaultPermission -} - -""" -A filter to be used against `AppPermissionDefaultPermission` object types. All fields are combined with a logical ‘and.’ -""" -input AppPermissionDefaultPermissionFilter { - """Checks for all expressions in this list.""" - and: [AppPermissionDefaultPermissionFilter!] - - """Filter by the object’s `createdAt` field.""" - createdAt: DatetimeFilter - - """Filter by the object’s `id` field.""" - id: UUIDFilter - - """Negates the expression.""" - not: AppPermissionDefaultPermissionFilter - - """Checks for any expressions in this list.""" - or: [AppPermissionDefaultPermissionFilter!] - - """Filter by the object’s `permission` relation.""" - permission: AppPermissionFilter - - """Filter by the object’s `permissionId` field.""" - permissionId: UUIDFilter - - """Filter by the object’s `updatedAt` field.""" - updatedAt: DatetimeFilter -} - -"""An input for mutations affecting `AppPermissionDefaultPermission`""" -input AppPermissionDefaultPermissionInput { - createdAt: Datetime - id: UUID - - """References the permission included in the defaults bundle""" - permissionId: UUID! - updatedAt: Datetime -} - -"""Methods to use when ordering `AppPermissionDefaultPermission`.""" -enum AppPermissionDefaultPermissionOrderBy { - CREATED_AT_ASC - CREATED_AT_DESC - ID_ASC - ID_DESC - NATURAL - PERMISSION_ID_ASC - PERMISSION_ID_DESC - PRIMARY_KEY_ASC - PRIMARY_KEY_DESC - UPDATED_AT_ASC - UPDATED_AT_DESC -} - -""" -Represents an update to a `AppPermissionDefaultPermission`. Fields that are set will be updated. -""" -input AppPermissionDefaultPermissionPatch { - createdAt: Datetime - id: UUID - - """References the permission included in the defaults bundle""" - permissionId: UUID - updatedAt: Datetime -} - -"""A `AppPermission` edge in the connection.""" -type AppPermissionEdge { - """A cursor for use in pagination.""" - cursor: Cursor - - """The `AppPermission` at the end of the edge.""" - node: AppPermission -} - -""" -A filter to be used against `AppPermission` object types. All fields are combined with a logical ‘and.’ -""" -input AppPermissionFilter { - """Checks for all expressions in this list.""" - and: [AppPermissionFilter!] - - """ - Filter by the object’s `appPermissionDefaultGrantsByPermissionId` relation. - """ - appPermissionDefaultGrantsByPermissionId: AppPermissionToManyAppPermissionDefaultGrantFilter - - """`appPermissionDefaultGrantsByPermissionId` exist.""" - appPermissionDefaultGrantsByPermissionIdExist: Boolean - - """ - Filter by the object’s `appPermissionDefaultPermissionByPermissionId` relation. - """ - appPermissionDefaultPermissionByPermissionId: AppPermissionDefaultPermissionFilter - - """A related `appPermissionDefaultPermissionByPermissionId` exists.""" - appPermissionDefaultPermissionByPermissionIdExists: Boolean - - """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 `id` field.""" - id: UUIDFilter - - """Filter by the object’s `name` field.""" - name: StringFilter - - """Negates the expression.""" - not: AppPermissionFilter - - """Checks for any expressions in this list.""" - or: [AppPermissionFilter!] -} - -"""An input for mutations affecting `AppPermission`""" -input AppPermissionInput { - """ - 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 - id: UUID - - """Human-readable permission name (e.g. read, write, manage)""" - name: String -} - -"""Methods to use when ordering `AppPermission`.""" -enum AppPermissionOrderBy { - BITNUM_ASC - BITNUM_DESC - BITSTR_ASC - BITSTR_DESC - DESCRIPTION_ASC - DESCRIPTION_DESC - ID_ASC - ID_DESC - NAME_ASC - NAME_DESC - NATURAL - PRIMARY_KEY_ASC - PRIMARY_KEY_DESC -} - -""" -Represents an update to a `AppPermission`. Fields that are set will be updated. -""" -input AppPermissionPatch { - """ - 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 - id: UUID - - """Human-readable permission name (e.g. read, write, manage)""" - name: String -} - -""" -A filter to be used against many `AppPermissionDefaultGrant` object types. All fields are combined with a logical ‘and.’ -""" -input AppPermissionToManyAppPermissionDefaultGrantFilter { - """Filters to entities where every related entity matches.""" - every: AppPermissionDefaultGrantFilter - - """Filters to entities where no related entity matches.""" - none: AppPermissionDefaultGrantFilter - - """Filters to entities where at least one related entity matches.""" - some: AppPermissionDefaultGrantFilter -} - -"""A string representing a series of binary bits""" -scalar BitString - -""" -A filter to be used against BitString fields. All fields are combined with a logical ‘and.’ -""" -input BitStringFilter { - """ - Not equal to the specified value, treating null like an ordinary value. - """ - distinctFrom: BitString - - """Equal to the specified value.""" - equalTo: BitString - - """Greater than the specified value.""" - greaterThan: BitString - - """Greater than or equal to the specified value.""" - greaterThanOrEqualTo: BitString - - """Included in the specified list.""" - in: [BitString!] - - """ - Is null (if `true` is specified) or is not null (if `false` is specified). - """ - isNull: Boolean - - """Less than the specified value.""" - lessThan: BitString - - """Less than or equal to the specified value.""" - lessThanOrEqualTo: BitString - - """Equal to the specified value, treating null like an ordinary value.""" - notDistinctFrom: BitString - - """Not equal to the specified value.""" - notEqualTo: BitString - - """Not included in the specified list.""" - notIn: [BitString!] -} - -""" -A filter to be used against Boolean fields. All fields are combined with a logical ‘and.’ -""" -input BooleanFilter { - """ - Not equal to the specified value, treating null like an ordinary value. - """ - distinctFrom: Boolean - - """Equal to the specified value.""" - equalTo: Boolean - - """Greater than the specified value.""" - greaterThan: Boolean - - """Greater than or equal to the specified value.""" - greaterThanOrEqualTo: Boolean - - """Included in the specified list.""" - in: [Boolean!] - - """ - Is null (if `true` is specified) or is not null (if `false` is specified). + Is null (if `true` is specified) or is not null (if `false` is specified). """ isNull: Boolean @@ -2022,6 +1711,80 @@ type CreateAppAdminGrantPayload { query: Query } +"""All input for the create `AppCapabilityDefaultCapability` mutation.""" +input CreateAppCapabilityDefaultCapabilityInput { + """The `AppCapabilityDefaultCapability` to be created by this mutation.""" + appCapabilityDefaultCapability: AppCapabilityDefaultCapabilityInput! + + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String +} + +"""The output of our create `AppCapabilityDefaultCapability` mutation.""" +type CreateAppCapabilityDefaultCapabilityPayload { + """ + The `AppCapabilityDefaultCapability` that was created by this mutation. + """ + appCapabilityDefaultCapability: AppCapabilityDefaultCapability + + """ + An edge for our `AppCapabilityDefaultCapability`. May be used by Relay 1. + """ + appCapabilityDefaultCapabilityEdge( + """The method to use when ordering `AppCapabilityDefaultCapability`.""" + orderBy: [AppCapabilityDefaultCapabilityOrderBy!]! = [PRIMARY_KEY_ASC] + ): AppCapabilityDefaultCapabilityEdge + + """ + The 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 create `AppCapabilityDefaultGrant` mutation.""" +input CreateAppCapabilityDefaultGrantInput { + """The `AppCapabilityDefaultGrant` to be created by this mutation.""" + appCapabilityDefaultGrant: AppCapabilityDefaultGrantInput! + + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String +} + +"""The output of our create `AppCapabilityDefaultGrant` mutation.""" +type CreateAppCapabilityDefaultGrantPayload { + """The `AppCapabilityDefaultGrant` that was created by this mutation.""" + appCapabilityDefaultGrant: AppCapabilityDefaultGrant + + """An edge for our `AppCapabilityDefaultGrant`. May be used by Relay 1.""" + appCapabilityDefaultGrantEdge( + """The method to use when ordering `AppCapabilityDefaultGrant`.""" + orderBy: [AppCapabilityDefaultGrantOrderBy!]! = [PRIMARY_KEY_ASC] + ): AppCapabilityDefaultGrantEdge + + """ + The 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 create `AppClaimedInvite` mutation.""" input CreateAppClaimedInviteInput { """The `AppClaimedInvite` to be created by this mutation.""" @@ -2218,151 +1981,7 @@ type CreateAppOwnerGrantPayload { appOwnerGrantEdge( """The method to use when ordering `AppOwnerGrant`.""" orderBy: [AppOwnerGrantOrderBy!]! = [PRIMARY_KEY_ASC] - ): AppOwnerGrantEdge - - """ - The 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 create `AppPermissionDefaultGrant` mutation.""" -input CreateAppPermissionDefaultGrantInput { - """The `AppPermissionDefaultGrant` to be created by this mutation.""" - appPermissionDefaultGrant: AppPermissionDefaultGrantInput! - - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String -} - -"""The output of our create `AppPermissionDefaultGrant` mutation.""" -type CreateAppPermissionDefaultGrantPayload { - """The `AppPermissionDefaultGrant` that was created by this mutation.""" - appPermissionDefaultGrant: AppPermissionDefaultGrant - - """An edge for our `AppPermissionDefaultGrant`. May be used by Relay 1.""" - appPermissionDefaultGrantEdge( - """The method to use when ordering `AppPermissionDefaultGrant`.""" - orderBy: [AppPermissionDefaultGrantOrderBy!]! = [PRIMARY_KEY_ASC] - ): AppPermissionDefaultGrantEdge - - """ - The 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 create `AppPermissionDefault` mutation.""" -input CreateAppPermissionDefaultInput { - """The `AppPermissionDefault` to be created by this mutation.""" - appPermissionDefault: AppPermissionDefaultInput! - - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String -} - -"""The output of our create `AppPermissionDefault` mutation.""" -type CreateAppPermissionDefaultPayload { - """The `AppPermissionDefault` that was created by this mutation.""" - appPermissionDefault: AppPermissionDefault - - """An edge for our `AppPermissionDefault`. May be used by Relay 1.""" - appPermissionDefaultEdge( - """The method to use when ordering `AppPermissionDefault`.""" - orderBy: [AppPermissionDefaultOrderBy!]! = [PRIMARY_KEY_ASC] - ): AppPermissionDefaultEdge - - """ - The 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 create `AppPermissionDefaultPermission` mutation.""" -input CreateAppPermissionDefaultPermissionInput { - """The `AppPermissionDefaultPermission` to be created by this mutation.""" - appPermissionDefaultPermission: AppPermissionDefaultPermissionInput! - - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String -} - -"""The output of our create `AppPermissionDefaultPermission` mutation.""" -type CreateAppPermissionDefaultPermissionPayload { - """ - The `AppPermissionDefaultPermission` that was created by this mutation. - """ - appPermissionDefaultPermission: AppPermissionDefaultPermission - - """ - An edge for our `AppPermissionDefaultPermission`. May be used by Relay 1. - """ - appPermissionDefaultPermissionEdge( - """The method to use when ordering `AppPermissionDefaultPermission`.""" - orderBy: [AppPermissionDefaultPermissionOrderBy!]! = [PRIMARY_KEY_ASC] - ): AppPermissionDefaultPermissionEdge - - """ - The 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 create `AppPermission` mutation.""" -input CreateAppPermissionInput { - """The `AppPermission` to be created by this mutation.""" - appPermission: AppPermissionInput! - - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String -} - -"""The output of our create `AppPermission` mutation.""" -type CreateAppPermissionPayload { - """The `AppPermission` that was created by this mutation.""" - appPermission: AppPermission - - """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 + ): AppOwnerGrantEdge """ The exact same `clientMutationId` that was provided in the mutation input, @@ -2446,6 +2065,80 @@ type CreateOrgAdminGrantPayload { query: Query } +"""All input for the create `OrgCapabilityDefaultCapability` mutation.""" +input CreateOrgCapabilityDefaultCapabilityInput { + """ + An arbitrary 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 `OrgCapabilityDefaultCapability` to be created by this mutation.""" + orgCapabilityDefaultCapability: OrgCapabilityDefaultCapabilityInput! +} + +"""The output of our create `OrgCapabilityDefaultCapability` mutation.""" +type CreateOrgCapabilityDefaultCapabilityPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """ + The `OrgCapabilityDefaultCapability` that was created by this mutation. + """ + orgCapabilityDefaultCapability: OrgCapabilityDefaultCapability + + """ + An edge for our `OrgCapabilityDefaultCapability`. May be used by Relay 1. + """ + orgCapabilityDefaultCapabilityEdge( + """The method to use when ordering `OrgCapabilityDefaultCapability`.""" + orderBy: [OrgCapabilityDefaultCapabilityOrderBy!]! = [PRIMARY_KEY_ASC] + ): OrgCapabilityDefaultCapabilityEdge + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query +} + +"""All input for the create `OrgCapabilityDefaultGrant` mutation.""" +input CreateOrgCapabilityDefaultGrantInput { + """ + An arbitrary 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 `OrgCapabilityDefaultGrant` to be created by this mutation.""" + orgCapabilityDefaultGrant: OrgCapabilityDefaultGrantInput! +} + +"""The output of our create `OrgCapabilityDefaultGrant` mutation.""" +type CreateOrgCapabilityDefaultGrantPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `OrgCapabilityDefaultGrant` that was created by this mutation.""" + orgCapabilityDefaultGrant: OrgCapabilityDefaultGrant + + """An edge for our `OrgCapabilityDefaultGrant`. May be used by Relay 1.""" + orgCapabilityDefaultGrantEdge( + """The method to use when ordering `OrgCapabilityDefaultGrant`.""" + orderBy: [OrgCapabilityDefaultGrantOrderBy!]! = [PRIMARY_KEY_ASC] + ): OrgCapabilityDefaultGrantEdge + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query +} + """All input for the create `OrgChartEdgeGrant` mutation.""" input CreateOrgChartEdgeGrantInput { """ @@ -2831,150 +2524,6 @@ type CreateOrgOwnerGrantPayload { query: Query } -"""All input for the create `OrgPermissionDefaultGrant` mutation.""" -input CreateOrgPermissionDefaultGrantInput { - """ - An arbitrary 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 `OrgPermissionDefaultGrant` to be created by this mutation.""" - orgPermissionDefaultGrant: OrgPermissionDefaultGrantInput! -} - -"""The output of our create `OrgPermissionDefaultGrant` mutation.""" -type CreateOrgPermissionDefaultGrantPayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `OrgPermissionDefaultGrant` that was created by this mutation.""" - orgPermissionDefaultGrant: OrgPermissionDefaultGrant - - """An edge for our `OrgPermissionDefaultGrant`. May be used by Relay 1.""" - orgPermissionDefaultGrantEdge( - """The method to use when ordering `OrgPermissionDefaultGrant`.""" - orderBy: [OrgPermissionDefaultGrantOrderBy!]! = [PRIMARY_KEY_ASC] - ): OrgPermissionDefaultGrantEdge - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query -} - -"""All input for the create `OrgPermissionDefault` mutation.""" -input CreateOrgPermissionDefaultInput { - """ - An arbitrary 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 `OrgPermissionDefault` to be created by this mutation.""" - orgPermissionDefault: OrgPermissionDefaultInput! -} - -"""The output of our create `OrgPermissionDefault` mutation.""" -type CreateOrgPermissionDefaultPayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `OrgPermissionDefault` that was created by this mutation.""" - orgPermissionDefault: OrgPermissionDefault - - """An edge for our `OrgPermissionDefault`. May be used by Relay 1.""" - orgPermissionDefaultEdge( - """The method to use when ordering `OrgPermissionDefault`.""" - orderBy: [OrgPermissionDefaultOrderBy!]! = [PRIMARY_KEY_ASC] - ): OrgPermissionDefaultEdge - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query -} - -"""All input for the create `OrgPermissionDefaultPermission` mutation.""" -input CreateOrgPermissionDefaultPermissionInput { - """ - An arbitrary 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 `OrgPermissionDefaultPermission` to be created by this mutation.""" - orgPermissionDefaultPermission: OrgPermissionDefaultPermissionInput! -} - -"""The output of our create `OrgPermissionDefaultPermission` mutation.""" -type CreateOrgPermissionDefaultPermissionPayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """ - The `OrgPermissionDefaultPermission` that was created by this mutation. - """ - orgPermissionDefaultPermission: OrgPermissionDefaultPermission - - """ - An edge for our `OrgPermissionDefaultPermission`. May be used by Relay 1. - """ - orgPermissionDefaultPermissionEdge( - """The method to use when ordering `OrgPermissionDefaultPermission`.""" - orderBy: [OrgPermissionDefaultPermissionOrderBy!]! = [PRIMARY_KEY_ASC] - ): OrgPermissionDefaultPermissionEdge - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query -} - -"""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! -} - -"""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 - - """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 - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query -} - """A location in a connection that can be used for resuming pagination.""" scalar Cursor @@ -3062,6 +2611,76 @@ type DeleteAppAdminGrantPayload { query: Query } +"""All input for the `deleteAppCapabilityDefaultCapability` mutation.""" +input DeleteAppCapabilityDefaultCapabilityInput { + """ + An arbitrary 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 `AppCapabilityDefaultCapability` mutation.""" +type DeleteAppCapabilityDefaultCapabilityPayload { + """ + The `AppCapabilityDefaultCapability` that was deleted by this mutation. + """ + appCapabilityDefaultCapability: AppCapabilityDefaultCapability + + """ + An edge for our `AppCapabilityDefaultCapability`. May be used by Relay 1. + """ + appCapabilityDefaultCapabilityEdge( + """The method to use when ordering `AppCapabilityDefaultCapability`.""" + orderBy: [AppCapabilityDefaultCapabilityOrderBy!]! = [PRIMARY_KEY_ASC] + ): AppCapabilityDefaultCapabilityEdge + + """ + The 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 `deleteAppCapabilityDefaultGrant` mutation.""" +input DeleteAppCapabilityDefaultGrantInput { + """ + An arbitrary 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 `AppCapabilityDefaultGrant` mutation.""" +type DeleteAppCapabilityDefaultGrantPayload { + """The `AppCapabilityDefaultGrant` that was deleted by this mutation.""" + appCapabilityDefaultGrant: AppCapabilityDefaultGrant + + """An edge for our `AppCapabilityDefaultGrant`. May be used by Relay 1.""" + appCapabilityDefaultGrantEdge( + """The method to use when ordering `AppCapabilityDefaultGrant`.""" + orderBy: [AppCapabilityDefaultGrantOrderBy!]! = [PRIMARY_KEY_ASC] + ): AppCapabilityDefaultGrantEdge + + """ + The 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 `deleteAppClaimedInvite` mutation.""" input DeleteAppClaimedInviteInput { """ @@ -3260,102 +2879,36 @@ type DeleteAppOwnerGrantPayload { query: Query } -"""All input for the `deleteAppPermissionDefaultGrant` mutation.""" -input DeleteAppPermissionDefaultGrantInput { +"""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! -} - -"""The output of our delete `AppPermissionDefaultGrant` mutation.""" -type DeleteAppPermissionDefaultGrantPayload { - """The `AppPermissionDefaultGrant` that was deleted by this mutation.""" - appPermissionDefaultGrant: AppPermissionDefaultGrant - - """An edge for our `AppPermissionDefaultGrant`. May be used by Relay 1.""" - appPermissionDefaultGrantEdge( - """The method to use when ordering `AppPermissionDefaultGrant`.""" - orderBy: [AppPermissionDefaultGrantOrderBy!]! = [PRIMARY_KEY_ASC] - ): AppPermissionDefaultGrantEdge - - """ - The 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 `deleteAppPermissionDefault` mutation.""" -input DeleteAppPermissionDefaultInput { """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. + Integer identifier for the membership type (1=App, 2=Organization, 3=Group) """ - clientMutationId: String - id: UUID! + id: Int! } -"""The output of our delete `AppPermissionDefault` mutation.""" -type DeleteAppPermissionDefaultPayload { - """The `AppPermissionDefault` that was deleted by this mutation.""" - appPermissionDefault: AppPermissionDefault - - """An edge for our `AppPermissionDefault`. May be used by Relay 1.""" - appPermissionDefaultEdge( - """The method to use when ordering `AppPermissionDefault`.""" - orderBy: [AppPermissionDefaultOrderBy!]! = [PRIMARY_KEY_ASC] - ): AppPermissionDefaultEdge - +"""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 - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query -} - -"""All input for the `deleteAppPermissionDefaultPermission` mutation.""" -input DeleteAppPermissionDefaultPermissionInput { - """ - An arbitrary 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 `AppPermissionDefaultPermission` mutation.""" -type DeleteAppPermissionDefaultPermissionPayload { - """ - The `AppPermissionDefaultPermission` that was deleted by this mutation. - """ - appPermissionDefaultPermission: AppPermissionDefaultPermission - - """ - An edge for our `AppPermissionDefaultPermission`. May be used by Relay 1. - """ - appPermissionDefaultPermissionEdge( - """The method to use when ordering `AppPermissionDefaultPermission`.""" - orderBy: [AppPermissionDefaultPermissionOrderBy!]! = [PRIMARY_KEY_ASC] - ): AppPermissionDefaultPermissionEdge + """The `MembershipType` that was deleted by this mutation.""" + membershipType: MembershipType - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String + """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 """ Our root query field type. Allows us to run any query from our mutation payload. @@ -3363,8 +2916,8 @@ type DeleteAppPermissionDefaultPermissionPayload { query: Query } -"""All input for the `deleteAppPermission` mutation.""" -input DeleteAppPermissionInput { +"""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. @@ -3373,59 +2926,59 @@ input DeleteAppPermissionInput { id: UUID! } -"""The output of our delete `AppPermission` mutation.""" -type DeleteAppPermissionPayload { - """The `AppPermission` that was deleted by this mutation.""" - appPermission: AppPermission - - """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 - +"""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 + + """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 + """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query } -"""All input for the `deleteMembershipType` mutation.""" -input DeleteMembershipTypeInput { +"""All input for the `deleteOrgCapabilityDefaultCapability` mutation.""" +input DeleteOrgCapabilityDefaultCapabilityInput { """ An arbitrary 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 `MembershipType` mutation.""" -type DeleteMembershipTypePayload { +"""The output of our delete `OrgCapabilityDefaultCapability` mutation.""" +type DeleteOrgCapabilityDefaultCapabilityPayload { """ The exact 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 `OrgCapabilityDefaultCapability` that was deleted by this mutation. + """ + orgCapabilityDefaultCapability: OrgCapabilityDefaultCapability - """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 `OrgCapabilityDefaultCapability`. May be used by Relay 1. + """ + orgCapabilityDefaultCapabilityEdge( + """The method to use when ordering `OrgCapabilityDefaultCapability`.""" + orderBy: [OrgCapabilityDefaultCapabilityOrderBy!]! = [PRIMARY_KEY_ASC] + ): OrgCapabilityDefaultCapabilityEdge """ Our root query field type. Allows us to run any query from our mutation payload. @@ -3433,8 +2986,8 @@ type DeleteMembershipTypePayload { query: Query } -"""All input for the `deleteOrgAdminGrant` mutation.""" -input DeleteOrgAdminGrantInput { +"""All input for the `deleteOrgCapabilityDefaultGrant` mutation.""" +input DeleteOrgCapabilityDefaultGrantInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. @@ -3443,22 +2996,22 @@ input DeleteOrgAdminGrantInput { id: UUID! } -"""The output of our delete `OrgAdminGrant` mutation.""" -type DeleteOrgAdminGrantPayload { +"""The output of our delete `OrgCapabilityDefaultGrant` mutation.""" +type DeleteOrgCapabilityDefaultGrantPayload { """ The exact 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 + """The `OrgCapabilityDefaultGrant` that was deleted by this mutation.""" + orgCapabilityDefaultGrant: OrgCapabilityDefaultGrant - """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 `OrgCapabilityDefaultGrant`. May be used by Relay 1.""" + orgCapabilityDefaultGrantEdge( + """The method to use when ordering `OrgCapabilityDefaultGrant`.""" + orderBy: [OrgCapabilityDefaultGrantOrderBy!]! = [PRIMARY_KEY_ASC] + ): OrgCapabilityDefaultGrantEdge """ Our root query field type. Allows us to run any query from our mutation payload. @@ -3829,142 +3382,6 @@ type DeleteOrgOwnerGrantPayload { query: Query } -"""All input for the `deleteOrgPermissionDefaultGrant` mutation.""" -input DeleteOrgPermissionDefaultGrantInput { - """ - An arbitrary 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 `OrgPermissionDefaultGrant` mutation.""" -type DeleteOrgPermissionDefaultGrantPayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `OrgPermissionDefaultGrant` that was deleted by this mutation.""" - orgPermissionDefaultGrant: OrgPermissionDefaultGrant - - """An edge for our `OrgPermissionDefaultGrant`. May be used by Relay 1.""" - orgPermissionDefaultGrantEdge( - """The method to use when ordering `OrgPermissionDefaultGrant`.""" - orderBy: [OrgPermissionDefaultGrantOrderBy!]! = [PRIMARY_KEY_ASC] - ): OrgPermissionDefaultGrantEdge - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query -} - -"""All input for the `deleteOrgPermissionDefault` mutation.""" -input DeleteOrgPermissionDefaultInput { - """ - An arbitrary 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 `OrgPermissionDefault` mutation.""" -type DeleteOrgPermissionDefaultPayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `OrgPermissionDefault` that was deleted by this mutation.""" - orgPermissionDefault: OrgPermissionDefault - - """An edge for our `OrgPermissionDefault`. May be used by Relay 1.""" - orgPermissionDefaultEdge( - """The method to use when ordering `OrgPermissionDefault`.""" - orderBy: [OrgPermissionDefaultOrderBy!]! = [PRIMARY_KEY_ASC] - ): OrgPermissionDefaultEdge - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query -} - -"""All input for the `deleteOrgPermissionDefaultPermission` mutation.""" -input DeleteOrgPermissionDefaultPermissionInput { - """ - An arbitrary 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 `OrgPermissionDefaultPermission` mutation.""" -type DeleteOrgPermissionDefaultPermissionPayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """ - The `OrgPermissionDefaultPermission` that was deleted by this mutation. - """ - orgPermissionDefaultPermission: OrgPermissionDefaultPermission - - """ - An edge for our `OrgPermissionDefaultPermission`. May be used by Relay 1. - """ - orgPermissionDefaultPermissionEdge( - """The method to use when ordering `OrgPermissionDefaultPermission`.""" - orderBy: [OrgPermissionDefaultPermissionOrderBy!]! = [PRIMARY_KEY_ASC] - ): OrgPermissionDefaultPermissionEdge - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query -} - -"""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 `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 - - """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 - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query -} - """ A filter to be used against Int fields. All fields are combined with a logical ‘and.’ """ @@ -4499,6 +3916,22 @@ type Mutation { input: CreateAppAdminGrantInput! ): CreateAppAdminGrantPayload + """Creates a single `AppCapabilityDefaultCapability`.""" + createAppCapabilityDefaultCapability( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateAppCapabilityDefaultCapabilityInput! + ): CreateAppCapabilityDefaultCapabilityPayload + + """Creates a single `AppCapabilityDefaultGrant`.""" + createAppCapabilityDefaultGrant( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateAppCapabilityDefaultGrantInput! + ): CreateAppCapabilityDefaultGrantPayload + """Creates a single `AppClaimedInvite`.""" createAppClaimedInvite( """ @@ -4547,38 +3980,6 @@ type Mutation { input: CreateAppOwnerGrantInput! ): CreateAppOwnerGrantPayload - """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 `AppPermissionDefault`.""" - createAppPermissionDefault( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: CreateAppPermissionDefaultInput! - ): CreateAppPermissionDefaultPayload - - """Creates a single `AppPermissionDefaultGrant`.""" - createAppPermissionDefaultGrant( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: CreateAppPermissionDefaultGrantInput! - ): CreateAppPermissionDefaultGrantPayload - - """Creates a single `AppPermissionDefaultPermission`.""" - createAppPermissionDefaultPermission( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: CreateAppPermissionDefaultPermissionInput! - ): CreateAppPermissionDefaultPermissionPayload - """Creates a single `MembershipType`.""" createMembershipType( """ @@ -4595,6 +3996,22 @@ type Mutation { input: CreateOrgAdminGrantInput! ): CreateOrgAdminGrantPayload + """Creates a single `OrgCapabilityDefaultCapability`.""" + createOrgCapabilityDefaultCapability( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateOrgCapabilityDefaultCapabilityInput! + ): CreateOrgCapabilityDefaultCapabilityPayload + + """Creates a single `OrgCapabilityDefaultGrant`.""" + createOrgCapabilityDefaultGrant( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateOrgCapabilityDefaultGrantInput! + ): CreateOrgCapabilityDefaultGrantPayload + """Creates a single `OrgChartEdge`.""" createOrgChartEdge( """ @@ -4683,45 +4100,29 @@ type Mutation { input: CreateOrgOwnerGrantInput! ): CreateOrgOwnerGrantPayload - """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 `OrgPermissionDefault`.""" - createOrgPermissionDefault( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: CreateOrgPermissionDefaultInput! - ): CreateOrgPermissionDefaultPayload - - """Creates a single `OrgPermissionDefaultGrant`.""" - createOrgPermissionDefaultGrant( + """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: CreateOrgPermissionDefaultGrantInput! - ): CreateOrgPermissionDefaultGrantPayload + input: DeleteAppAdminGrantInput! + ): DeleteAppAdminGrantPayload - """Creates a single `OrgPermissionDefaultPermission`.""" - createOrgPermissionDefaultPermission( + """Deletes a single `AppCapabilityDefaultCapability` using a unique key.""" + deleteAppCapabilityDefaultCapability( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: CreateOrgPermissionDefaultPermissionInput! - ): CreateOrgPermissionDefaultPermissionPayload + input: DeleteAppCapabilityDefaultCapabilityInput! + ): DeleteAppCapabilityDefaultCapabilityPayload - """Deletes a single `AppAdminGrant` using a unique key.""" - deleteAppAdminGrant( + """Deletes a single `AppCapabilityDefaultGrant` using a unique key.""" + deleteAppCapabilityDefaultGrant( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: DeleteAppAdminGrantInput! - ): DeleteAppAdminGrantPayload + input: DeleteAppCapabilityDefaultGrantInput! + ): DeleteAppCapabilityDefaultGrantPayload """Deletes a single `AppClaimedInvite` using a unique key.""" deleteAppClaimedInvite( @@ -4771,38 +4172,6 @@ type Mutation { input: DeleteAppOwnerGrantInput! ): DeleteAppOwnerGrantPayload - """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 `AppPermissionDefault` using a unique key.""" - deleteAppPermissionDefault( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: DeleteAppPermissionDefaultInput! - ): DeleteAppPermissionDefaultPayload - - """Deletes a single `AppPermissionDefaultGrant` using a unique key.""" - deleteAppPermissionDefaultGrant( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: DeleteAppPermissionDefaultGrantInput! - ): DeleteAppPermissionDefaultGrantPayload - - """Deletes a single `AppPermissionDefaultPermission` using a unique key.""" - deleteAppPermissionDefaultPermission( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: DeleteAppPermissionDefaultPermissionInput! - ): DeleteAppPermissionDefaultPermissionPayload - """Deletes a single `MembershipType` using a unique key.""" deleteMembershipType( """ @@ -4819,6 +4188,22 @@ type Mutation { input: DeleteOrgAdminGrantInput! ): DeleteOrgAdminGrantPayload + """Deletes a single `OrgCapabilityDefaultCapability` using a unique key.""" + deleteOrgCapabilityDefaultCapability( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteOrgCapabilityDefaultCapabilityInput! + ): DeleteOrgCapabilityDefaultCapabilityPayload + + """Deletes a single `OrgCapabilityDefaultGrant` using a unique key.""" + deleteOrgCapabilityDefaultGrant( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteOrgCapabilityDefaultGrantInput! + ): DeleteOrgCapabilityDefaultGrantPayload + """Deletes a single `OrgChartEdge` using a unique key.""" deleteOrgChartEdge( """ @@ -4907,38 +4292,6 @@ type Mutation { input: DeleteOrgOwnerGrantInput! ): DeleteOrgOwnerGrantPayload - """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 `OrgPermissionDefault` using a unique key.""" - deleteOrgPermissionDefault( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: DeleteOrgPermissionDefaultInput! - ): DeleteOrgPermissionDefaultPayload - - """Deletes a single `OrgPermissionDefaultGrant` using a unique key.""" - deleteOrgPermissionDefaultGrant( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: DeleteOrgPermissionDefaultGrantInput! - ): DeleteOrgPermissionDefaultGrantPayload - - """Deletes a single `OrgPermissionDefaultPermission` using a unique key.""" - deleteOrgPermissionDefaultPermission( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: DeleteOrgPermissionDefaultPermissionInput! - ): DeleteOrgPermissionDefaultPermissionPayload - """ Provision an S3 bucket for a logical bucket in the database. Reads the bucket config via RLS, then creates and configures @@ -4972,6 +4325,26 @@ type Mutation { input: UpdateAppAdminGrantInput! ): UpdateAppAdminGrantPayload + """ + Updates a single `AppCapabilityDefaultCapability` using a unique key and a patch. + """ + updateAppCapabilityDefaultCapability( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateAppCapabilityDefaultCapabilityInput! + ): UpdateAppCapabilityDefaultCapabilityPayload + + """ + Updates a single `AppCapabilityDefaultGrant` using a unique key and a patch. + """ + updateAppCapabilityDefaultGrant( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateAppCapabilityDefaultGrantInput! + ): UpdateAppCapabilityDefaultGrantPayload + """Updates a single `AppClaimedInvite` using a unique key and a patch.""" updateAppClaimedInvite( """ @@ -5022,59 +4395,41 @@ type Mutation { input: UpdateAppOwnerGrantInput! ): UpdateAppOwnerGrantPayload - """Updates a single `AppPermission` using a unique key and a patch.""" - updateAppPermission( + """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: UpdateAppPermissionInput! - ): UpdateAppPermissionPayload + input: UpdateMembershipTypeInput! + ): UpdateMembershipTypePayload - """ - Updates a single `AppPermissionDefault` using a unique key and a patch. - """ - updateAppPermissionDefault( + """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: UpdateAppPermissionDefaultInput! - ): UpdateAppPermissionDefaultPayload + input: UpdateOrgAdminGrantInput! + ): UpdateOrgAdminGrantPayload """ - Updates a single `AppPermissionDefaultGrant` using a unique key and a patch. + Updates a single `OrgCapabilityDefaultCapability` using a unique key and a patch. """ - updateAppPermissionDefaultGrant( + updateOrgCapabilityDefaultCapability( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: UpdateAppPermissionDefaultGrantInput! - ): UpdateAppPermissionDefaultGrantPayload + input: UpdateOrgCapabilityDefaultCapabilityInput! + ): UpdateOrgCapabilityDefaultCapabilityPayload """ - Updates a single `AppPermissionDefaultPermission` using a unique key and a patch. - """ - updateAppPermissionDefaultPermission( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: UpdateAppPermissionDefaultPermissionInput! - ): UpdateAppPermissionDefaultPermissionPayload - - """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 `OrgAdminGrant` using a unique key and a patch.""" - updateOrgAdminGrant( + Updates a single `OrgCapabilityDefaultGrant` using a unique key and a patch. + """ + updateOrgCapabilityDefaultGrant( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: UpdateOrgAdminGrantInput! - ): UpdateOrgAdminGrantPayload + input: UpdateOrgCapabilityDefaultGrantInput! + ): UpdateOrgCapabilityDefaultGrantPayload """Updates a single `OrgChartEdge` using a unique key and a patch.""" updateOrgChartEdge( @@ -5167,44 +4522,6 @@ type Mutation { """ input: UpdateOrgOwnerGrantInput! ): UpdateOrgOwnerGrantPayload - - """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 `OrgPermissionDefault` using a unique key and a patch. - """ - updateOrgPermissionDefault( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: UpdateOrgPermissionDefaultInput! - ): UpdateOrgPermissionDefaultPayload - - """ - Updates a single `OrgPermissionDefaultGrant` using a unique key and a patch. - """ - updateOrgPermissionDefaultGrant( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: UpdateOrgPermissionDefaultGrantInput! - ): UpdateOrgPermissionDefaultGrantPayload - - """ - Updates a single `OrgPermissionDefaultPermission` using a unique key and a patch. - """ - updateOrgPermissionDefaultPermission( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: UpdateOrgPermissionDefaultPermissionInput! - ): UpdateOrgPermissionDefaultPermissionPayload } """Records of admin role grants and revocations between members""" @@ -5346,309 +4663,92 @@ input OrgAdminGrantPatch { } """ -Organizational chart edges defining parent-child reporting relationships between members within an entity +Join table linking capability defaults to individual capabilities; recompute trigger rebuilds the defaults bitmask """ -type OrgChartEdge { - """User ID of the subordinate (employee) in this reporting relationship""" - childId: UUID! +type OrgCapabilityDefaultCapability { + """References the capability included in the defaults bundle""" + capabilityId: UUID! createdAt: Datetime - """Organization this hierarchy edge belongs to""" + """Scopes this default capability to a specific entity""" entityId: UUID! id: UUID! - - """ - User ID of the manager; NULL indicates a top-level position with no direct report - """ - parentId: UUID - - """Numeric seniority level for this position (higher = more senior)""" - positionLevel: Int - - """Job title or role name for this position in the org chart""" - positionTitle: String updatedAt: Datetime } -"""A connection to a list of `OrgChartEdge` values.""" -type OrgChartEdgeConnection { - """ - A list of edges which contains the `OrgChartEdge` and cursor to aid in pagination. - """ - edges: [OrgChartEdgeEdge]! - - """A list of `OrgChartEdge` objects.""" - nodes: [OrgChartEdge]! - - """Information to aid in pagination.""" - pageInfo: PageInfo! - - """The count of *all* `OrgChartEdge` you could get from the connection.""" - totalCount: Int! -} - -"""A `OrgChartEdge` edge in the connection.""" -type OrgChartEdgeEdge { - """A cursor for use in pagination.""" - cursor: Cursor - - """The `OrgChartEdge` at the end of the edge.""" - node: OrgChartEdge -} - -""" -A filter to be used against `OrgChartEdge` object types. All fields are combined with a logical ‘and.’ -""" -input OrgChartEdgeFilter { - """Checks for all expressions in this list.""" - and: [OrgChartEdgeFilter!] - - """Filter by the object’s `childId` field.""" - childId: UUIDFilter - - """Filter by the object’s `createdAt` field.""" - createdAt: DatetimeFilter - - """Filter by the object’s `entityId` field.""" - entityId: UUIDFilter - - """Filter by the object’s `id` field.""" - id: UUIDFilter - - """Negates the expression.""" - not: OrgChartEdgeFilter - - """Checks for any expressions in this list.""" - or: [OrgChartEdgeFilter!] - - """Filter by the object’s `parentId` field.""" - parentId: UUIDFilter - - """Filter by the object’s `positionLevel` field.""" - positionLevel: IntFilter - - """Filter by the object’s `positionTitle` field.""" - positionTitle: StringFilter - - """Filter by the object’s `updatedAt` field.""" - updatedAt: DatetimeFilter -} - -""" -Append-only log of hierarchy edge grants and revocations; triggers apply changes to the edges table -""" -type OrgChartEdgeGrant { - """User ID of the subordinate being placed in the hierarchy""" - childId: UUID! - - """Timestamp when this grant or revocation was recorded""" - createdAt: Datetime! - - """Organization this grant applies to""" - entityId: UUID! - - """ - User ID of the admin who performed this grant or revocation; NULL if grantor was deleted - """ - grantorId: UUID - id: UUID! - - """TRUE to add/update the edge, FALSE to remove it""" - isGrant: Boolean! - - """User ID of the manager being assigned; NULL for top-level positions""" - parentId: UUID - - """Numeric seniority level being assigned in this grant""" - positionLevel: Int - - """Job title or role name being assigned in this grant""" - positionTitle: String -} - -"""A connection to a list of `OrgChartEdgeGrant` values.""" -type OrgChartEdgeGrantConnection { +"""A connection to a list of `OrgCapabilityDefaultCapability` values.""" +type OrgCapabilityDefaultCapabilityConnection { """ - A list of edges which contains the `OrgChartEdgeGrant` and cursor to aid in pagination. + A list of edges which contains the `OrgCapabilityDefaultCapability` and cursor to aid in pagination. """ - edges: [OrgChartEdgeGrantEdge]! + edges: [OrgCapabilityDefaultCapabilityEdge]! - """A list of `OrgChartEdgeGrant` objects.""" - nodes: [OrgChartEdgeGrant]! + """A list of `OrgCapabilityDefaultCapability` objects.""" + nodes: [OrgCapabilityDefaultCapability]! """Information to aid in pagination.""" pageInfo: PageInfo! """ - The count of *all* `OrgChartEdgeGrant` you could get from the connection. + The count of *all* `OrgCapabilityDefaultCapability` you could get from the connection. """ totalCount: Int! } -"""A `OrgChartEdgeGrant` edge in the connection.""" -type OrgChartEdgeGrantEdge { +"""A `OrgCapabilityDefaultCapability` edge in the connection.""" +type OrgCapabilityDefaultCapabilityEdge { """A cursor for use in pagination.""" cursor: Cursor - """The `OrgChartEdgeGrant` at the end of the edge.""" - node: OrgChartEdgeGrant + """The `OrgCapabilityDefaultCapability` at the end of the edge.""" + node: OrgCapabilityDefaultCapability } """ -A filter to be used against `OrgChartEdgeGrant` object types. All fields are combined with a logical ‘and.’ +A filter to be used against `OrgCapabilityDefaultCapability` object types. All fields are combined with a logical ‘and.’ """ -input OrgChartEdgeGrantFilter { +input OrgCapabilityDefaultCapabilityFilter { """Checks for all expressions in this list.""" - and: [OrgChartEdgeGrantFilter!] + and: [OrgCapabilityDefaultCapabilityFilter!] - """Filter by the object’s `childId` field.""" - childId: UUIDFilter + """Filter by the object’s `capabilityId` field.""" + capabilityId: UUIDFilter """Filter by the object’s `createdAt` field.""" - createdAt: DatetimeFilter - - """Filter by the object’s `entityId` field.""" - entityId: UUIDFilter - - """Filter by the object’s `grantorId` field.""" - grantorId: UUIDFilter - - """Filter by the object’s `id` field.""" - id: UUIDFilter - - """Filter by the object’s `isGrant` field.""" - isGrant: BooleanFilter - - """Negates the expression.""" - not: OrgChartEdgeGrantFilter - - """Checks for any expressions in this list.""" - or: [OrgChartEdgeGrantFilter!] - - """Filter by the object’s `parentId` field.""" - parentId: UUIDFilter - - """Filter by the object’s `positionLevel` field.""" - positionLevel: IntFilter - - """Filter by the object’s `positionTitle` field.""" - positionTitle: StringFilter -} - -"""An input for mutations affecting `OrgChartEdgeGrant`""" -input OrgChartEdgeGrantInput { - """User ID of the subordinate being placed in the hierarchy""" - childId: UUID! - - """Timestamp when this grant or revocation was recorded""" - createdAt: Datetime - - """Organization this grant applies to""" - entityId: UUID! - - """ - User ID of the admin who performed this grant or revocation; NULL if grantor was deleted - """ - grantorId: UUID - id: UUID - - """TRUE to add/update the edge, FALSE to remove it""" - isGrant: Boolean - - """User ID of the manager being assigned; NULL for top-level positions""" - parentId: UUID - - """Numeric seniority level being assigned in this grant""" - positionLevel: Int - - """Job title or role name being assigned in this grant""" - positionTitle: String -} - -"""Methods to use when ordering `OrgChartEdgeGrant`.""" -enum OrgChartEdgeGrantOrderBy { - CHILD_ID_ASC - CHILD_ID_DESC - CREATED_AT_ASC - CREATED_AT_DESC - ENTITY_ID_ASC - ENTITY_ID_DESC - GRANTOR_ID_ASC - GRANTOR_ID_DESC - ID_ASC - ID_DESC - IS_GRANT_ASC - IS_GRANT_DESC - NATURAL - PARENT_ID_ASC - PARENT_ID_DESC - POSITION_LEVEL_ASC - POSITION_LEVEL_DESC - POSITION_TITLE_ASC - POSITION_TITLE_DESC - PRIMARY_KEY_ASC - PRIMARY_KEY_DESC -} - -""" -Represents an update to a `OrgChartEdgeGrant`. Fields that are set will be updated. -""" -input OrgChartEdgeGrantPatch { - """User ID of the subordinate being placed in the hierarchy""" - childId: UUID - - """Timestamp when this grant or revocation was recorded""" - createdAt: Datetime - - """Organization this grant applies to""" - entityId: UUID - - """ - User ID of the admin who performed this grant or revocation; NULL if grantor was deleted - """ - grantorId: UUID - id: UUID + createdAt: DatetimeFilter - """TRUE to add/update the edge, FALSE to remove it""" - isGrant: Boolean + """Filter by the object’s `entityId` field.""" + entityId: UUIDFilter - """User ID of the manager being assigned; NULL for top-level positions""" - parentId: UUID + """Filter by the object’s `id` field.""" + id: UUIDFilter - """Numeric seniority level being assigned in this grant""" - positionLevel: Int + """Negates the expression.""" + not: OrgCapabilityDefaultCapabilityFilter - """Job title or role name being assigned in this grant""" - positionTitle: String + """Checks for any expressions in this list.""" + or: [OrgCapabilityDefaultCapabilityFilter!] + + """Filter by the object’s `updatedAt` field.""" + updatedAt: DatetimeFilter } -"""An input for mutations affecting `OrgChartEdge`""" -input OrgChartEdgeInput { - """User ID of the subordinate (employee) in this reporting relationship""" - childId: UUID! +"""An input for mutations affecting `OrgCapabilityDefaultCapability`""" +input OrgCapabilityDefaultCapabilityInput { + """References the capability included in the defaults bundle""" + capabilityId: UUID! createdAt: Datetime - """Organization this hierarchy edge belongs to""" + """Scopes this default capability to a specific entity""" entityId: UUID! id: UUID - - """ - User ID of the manager; NULL indicates a top-level position with no direct report - """ - parentId: UUID - - """Numeric seniority level for this position (higher = more senior)""" - positionLevel: Int - - """Job title or role name for this position in the org chart""" - positionTitle: String updatedAt: Datetime } -"""Methods to use when ordering `OrgChartEdge`.""" -enum OrgChartEdgeOrderBy { - CHILD_ID_ASC - CHILD_ID_DESC +"""Methods to use when ordering `OrgCapabilityDefaultCapability`.""" +enum OrgCapabilityDefaultCapabilityOrderBy { + CAPABILITY_ID_ASC + CAPABILITY_ID_DESC CREATED_AT_ASC CREATED_AT_DESC ENTITY_ID_ASC @@ -5656,12 +4756,6 @@ enum OrgChartEdgeOrderBy { ID_ASC ID_DESC NATURAL - PARENT_ID_ASC - PARENT_ID_DESC - POSITION_LEVEL_ASC - POSITION_LEVEL_DESC - POSITION_TITLE_ASC - POSITION_TITLE_DESC PRIMARY_KEY_ASC PRIMARY_KEY_DESC UPDATED_AT_ASC @@ -5669,83 +4763,74 @@ enum OrgChartEdgeOrderBy { } """ -Represents an update to a `OrgChartEdge`. Fields that are set will be updated. +Represents an update to a `OrgCapabilityDefaultCapability`. Fields that are set will be updated. """ -input OrgChartEdgePatch { - """User ID of the subordinate (employee) in this reporting relationship""" - childId: UUID +input OrgCapabilityDefaultCapabilityPatch { + """References the capability included in the defaults bundle""" + capabilityId: UUID createdAt: Datetime - """Organization this hierarchy edge belongs to""" + """Scopes this default capability to a specific entity""" entityId: UUID id: UUID - - """ - User ID of the manager; NULL indicates a top-level position with no direct report - """ - parentId: UUID - - """Numeric seniority level for this position (higher = more senior)""" - positionLevel: Int - - """Job title or role name for this position in the org chart""" - positionTitle: String updatedAt: Datetime } """ -Records of successfully claimed invitations, linking senders to receivers +Audit log of capability additions and removals from the defaults bitmask """ -type OrgClaimedInvite { +type OrgCapabilityDefaultGrant { + """References the capability being added to or removed from defaults""" + capabilityId: UUID! createdAt: Datetime - """Optional JSON payload captured at the time the invite was claimed""" - data: JSON + """Scopes this audit entry to a specific entity""" entityId: UUID! + grantorId: UUID id: UUID! - """User ID of the person who claimed and redeemed the invitation""" - receiverId: UUID - - """User ID of the original invitation sender""" - senderId: UUID + """True to add the capability to defaults, false to remove it""" + isGrant: Boolean! updatedAt: Datetime } -"""A connection to a list of `OrgClaimedInvite` values.""" -type OrgClaimedInviteConnection { +"""A connection to a list of `OrgCapabilityDefaultGrant` values.""" +type OrgCapabilityDefaultGrantConnection { """ - A list of edges which contains the `OrgClaimedInvite` and cursor to aid in pagination. + A list of edges which contains the `OrgCapabilityDefaultGrant` and cursor to aid in pagination. """ - edges: [OrgClaimedInviteEdge]! + edges: [OrgCapabilityDefaultGrantEdge]! - """A list of `OrgClaimedInvite` objects.""" - nodes: [OrgClaimedInvite]! + """A list of `OrgCapabilityDefaultGrant` objects.""" + nodes: [OrgCapabilityDefaultGrant]! """Information to aid in pagination.""" pageInfo: PageInfo! """ - The count of *all* `OrgClaimedInvite` you could get from the connection. + The count of *all* `OrgCapabilityDefaultGrant` you could get from the connection. """ totalCount: Int! } -"""A `OrgClaimedInvite` edge in the connection.""" -type OrgClaimedInviteEdge { +"""A `OrgCapabilityDefaultGrant` edge in the connection.""" +type OrgCapabilityDefaultGrantEdge { """A cursor for use in pagination.""" cursor: Cursor - """The `OrgClaimedInvite` at the end of the edge.""" - node: OrgClaimedInvite + """The `OrgCapabilityDefaultGrant` at the end of the edge.""" + node: OrgCapabilityDefaultGrant } """ -A filter to be used against `OrgClaimedInvite` object types. All fields are combined with a logical ‘and.’ +A filter to be used against `OrgCapabilityDefaultGrant` object types. All fields are combined with a logical ‘and.’ """ -input OrgClaimedInviteFilter { +input OrgCapabilityDefaultGrantFilter { """Checks for all expressions in this list.""" - and: [OrgClaimedInviteFilter!] + and: [OrgCapabilityDefaultGrantFilter!] + + """Filter by the object’s `capabilityId` field.""" + capabilityId: UUIDFilter """Filter by the object’s `createdAt` field.""" createdAt: DatetimeFilter @@ -5753,206 +4838,238 @@ input OrgClaimedInviteFilter { """Filter by the object’s `entityId` field.""" entityId: UUIDFilter + """Filter by the object’s `grantorId` field.""" + grantorId: UUIDFilter + """Filter by the object’s `id` field.""" id: UUIDFilter + """Filter by the object’s `isGrant` field.""" + isGrant: BooleanFilter + """Negates the expression.""" - not: OrgClaimedInviteFilter + not: OrgCapabilityDefaultGrantFilter """Checks for any expressions in this list.""" - or: [OrgClaimedInviteFilter!] - - """Filter by the object’s `receiverId` field.""" - receiverId: UUIDFilter - - """Filter by the object’s `senderId` field.""" - senderId: UUIDFilter + or: [OrgCapabilityDefaultGrantFilter!] """Filter by the object’s `updatedAt` field.""" updatedAt: DatetimeFilter } -"""An input for mutations affecting `OrgClaimedInvite`""" -input OrgClaimedInviteInput { +"""An input for mutations affecting `OrgCapabilityDefaultGrant`""" +input OrgCapabilityDefaultGrantInput { + """References the capability being added to or removed from defaults""" + capabilityId: UUID! createdAt: Datetime - """Optional JSON payload captured at the time the invite was claimed""" - data: JSON + """Scopes this audit entry to a specific entity""" entityId: UUID! + grantorId: UUID id: UUID - """User ID of the person who claimed and redeemed the invitation""" - receiverId: UUID - - """User ID of the original invitation sender""" - senderId: UUID + """True to add the capability to defaults, false to remove it""" + isGrant: Boolean updatedAt: Datetime } -"""Methods to use when ordering `OrgClaimedInvite`.""" -enum OrgClaimedInviteOrderBy { +"""Methods to use when ordering `OrgCapabilityDefaultGrant`.""" +enum OrgCapabilityDefaultGrantOrderBy { + CAPABILITY_ID_ASC + CAPABILITY_ID_DESC CREATED_AT_ASC CREATED_AT_DESC - DATA_ASC - DATA_DESC ENTITY_ID_ASC ENTITY_ID_DESC + GRANTOR_ID_ASC + GRANTOR_ID_DESC ID_ASC ID_DESC + IS_GRANT_ASC + IS_GRANT_DESC NATURAL PRIMARY_KEY_ASC PRIMARY_KEY_DESC - RECEIVER_ID_ASC - RECEIVER_ID_DESC - SENDER_ID_ASC - SENDER_ID_DESC UPDATED_AT_ASC UPDATED_AT_DESC } """ -Represents an update to a `OrgClaimedInvite`. Fields that are set will be updated. +Represents an update to a `OrgCapabilityDefaultGrant`. Fields that are set will be updated. """ -input OrgClaimedInvitePatch { +input OrgCapabilityDefaultGrantPatch { + """References the capability being added to or removed from defaults""" + capabilityId: UUID createdAt: Datetime - """Optional JSON payload captured at the time the invite was claimed""" - data: JSON + """Scopes this audit entry to a specific entity""" entityId: UUID + grantorId: UUID id: UUID - """User ID of the person who claimed and redeemed the invitation""" - receiverId: UUID - - """User ID of the original invitation sender""" - senderId: UUID + """True to add the capability to defaults, false to remove it""" + isGrant: Boolean updatedAt: Datetime } -"""A connection to a list of `OrgGetManagersRecord` values.""" -type OrgGetManagersConnection { - """ - A list of edges which contains the `OrgGetManagersRecord` and cursor to aid in pagination. - """ - edges: [OrgGetManagersEdge]! - - """A list of `OrgGetManagersRecord` objects.""" - nodes: [OrgGetManagersRecord]! +""" +Organizational chart edges defining parent-child reporting relationships between members within an entity +""" +type OrgChartEdge { + """User ID of the subordinate (employee) in this reporting relationship""" + childId: UUID! + createdAt: Datetime - """Information to aid in pagination.""" - pageInfo: PageInfo! + """Organization this hierarchy edge belongs to""" + entityId: UUID! + id: UUID! """ - The count of *all* `OrgGetManagersRecord` you could get from the connection. + User ID of the manager; NULL indicates a top-level position with no direct report """ - totalCount: Int! -} - -"""A `OrgGetManagersRecord` edge in the connection.""" -type OrgGetManagersEdge { - """A cursor for use in pagination.""" - cursor: Cursor + parentId: UUID - """The `OrgGetManagersRecord` at the end of the edge.""" - node: OrgGetManagersRecord -} + """Numeric seniority level for this position (higher = more senior)""" + positionLevel: Int -type OrgGetManagersRecord { - depth: Int - userId: UUID + """Job title or role name for this position in the org chart""" + positionTitle: String + updatedAt: Datetime } -"""A connection to a list of `OrgGetSubordinatesRecord` values.""" -type OrgGetSubordinatesConnection { +"""A connection to a list of `OrgChartEdge` values.""" +type OrgChartEdgeConnection { """ - A list of edges which contains the `OrgGetSubordinatesRecord` and cursor to aid in pagination. + A list of edges which contains the `OrgChartEdge` and cursor to aid in pagination. """ - edges: [OrgGetSubordinatesEdge]! + edges: [OrgChartEdgeEdge]! - """A list of `OrgGetSubordinatesRecord` objects.""" - nodes: [OrgGetSubordinatesRecord]! + """A list of `OrgChartEdge` objects.""" + nodes: [OrgChartEdge]! """Information to aid in pagination.""" pageInfo: PageInfo! - """ - The count of *all* `OrgGetSubordinatesRecord` you could get from the connection. - """ + """The count of *all* `OrgChartEdge` you could get from the connection.""" totalCount: Int! } -"""A `OrgGetSubordinatesRecord` edge in the connection.""" -type OrgGetSubordinatesEdge { +"""A `OrgChartEdge` edge in the connection.""" +type OrgChartEdgeEdge { """A cursor for use in pagination.""" cursor: Cursor - """The `OrgGetSubordinatesRecord` at the end of the edge.""" - node: OrgGetSubordinatesRecord + """The `OrgChartEdge` at the end of the edge.""" + node: OrgChartEdge } -type OrgGetSubordinatesRecord { - depth: Int - userId: UUID +""" +A filter to be used against `OrgChartEdge` object types. All fields are combined with a logical ‘and.’ +""" +input OrgChartEdgeFilter { + """Checks for all expressions in this list.""" + and: [OrgChartEdgeFilter!] + + """Filter by the object’s `childId` field.""" + childId: UUIDFilter + + """Filter by the object’s `createdAt` field.""" + createdAt: DatetimeFilter + + """Filter by the object’s `entityId` field.""" + entityId: UUIDFilter + + """Filter by the object’s `id` field.""" + id: UUIDFilter + + """Negates the expression.""" + not: OrgChartEdgeFilter + + """Checks for any expressions in this list.""" + or: [OrgChartEdgeFilter!] + + """Filter by the object’s `parentId` field.""" + parentId: UUIDFilter + + """Filter by the object’s `positionLevel` field.""" + positionLevel: IntFilter + + """Filter by the object’s `positionTitle` field.""" + positionTitle: StringFilter + + """Filter by the object’s `updatedAt` field.""" + updatedAt: DatetimeFilter } """ -Records of individual permission grants and revocations for members via bitmask +Append-only log of hierarchy edge grants and revocations; triggers apply changes to the edges table """ -type OrgGrant { - """ - The member receiving or losing the permission grant; NULL if user was deleted - """ - actorId: UUID - createdAt: Datetime +type OrgChartEdgeGrant { + """User ID of the subordinate being placed in the hierarchy""" + childId: UUID! + + """Timestamp when this grant or revocation was recorded""" + createdAt: Datetime! - """The entity (org or group) this permission grant applies to""" + """Organization this grant applies to""" entityId: UUID! + + """ + User ID of the admin who performed this grant or revocation; NULL if grantor was deleted + """ grantorId: UUID id: UUID! - """True to grant the permissions, false to revoke them""" + """TRUE to add/update the edge, FALSE to remove it""" isGrant: Boolean! - """Bitmask of permissions being granted or revoked""" - permissions: BitString! - updatedAt: Datetime + """User ID of the manager being assigned; NULL for top-level positions""" + parentId: UUID + + """Numeric seniority level being assigned in this grant""" + positionLevel: Int + + """Job title or role name being assigned in this grant""" + positionTitle: String } -"""A connection to a list of `OrgGrant` values.""" -type OrgGrantConnection { +"""A connection to a list of `OrgChartEdgeGrant` values.""" +type OrgChartEdgeGrantConnection { """ - A list of edges which contains the `OrgGrant` and cursor to aid in pagination. + A list of edges which contains the `OrgChartEdgeGrant` and cursor to aid in pagination. """ - edges: [OrgGrantEdge]! + edges: [OrgChartEdgeGrantEdge]! - """A list of `OrgGrant` objects.""" - nodes: [OrgGrant]! + """A list of `OrgChartEdgeGrant` objects.""" + nodes: [OrgChartEdgeGrant]! """Information to aid in pagination.""" pageInfo: PageInfo! - """The count of *all* `OrgGrant` you could get from the connection.""" + """ + The count of *all* `OrgChartEdgeGrant` you could get from the connection. + """ totalCount: Int! } -"""A `OrgGrant` edge in the connection.""" -type OrgGrantEdge { +"""A `OrgChartEdgeGrant` edge in the connection.""" +type OrgChartEdgeGrantEdge { """A cursor for use in pagination.""" cursor: Cursor - """The `OrgGrant` at the end of the edge.""" - node: OrgGrant + """The `OrgChartEdgeGrant` at the end of the edge.""" + node: OrgChartEdgeGrant } """ -A filter to be used against `OrgGrant` 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 OrgGrantFilter { - """Filter by the object’s `actorId` field.""" - actorId: UUIDFilter - +input OrgChartEdgeGrantFilter { """Checks for all expressions in this list.""" - and: [OrgGrantFilter!] + and: [OrgChartEdgeGrantFilter!] + + """Filter by the object’s `childId` field.""" + childId: UUIDFilter """Filter by the object’s `createdAt` field.""" createdAt: DatetimeFilter @@ -5970,43 +5087,55 @@ input OrgGrantFilter { isGrant: BooleanFilter """Negates the expression.""" - not: OrgGrantFilter + not: OrgChartEdgeGrantFilter """Checks for any expressions in this list.""" - or: [OrgGrantFilter!] + or: [OrgChartEdgeGrantFilter!] - """Filter by the object’s `permissions` field.""" - permissions: BitStringFilter + """Filter by the object’s `parentId` field.""" + parentId: UUIDFilter - """Filter by the object’s `updatedAt` field.""" - updatedAt: DatetimeFilter + """Filter by the object’s `positionLevel` field.""" + positionLevel: IntFilter + + """Filter by the object’s `positionTitle` field.""" + positionTitle: StringFilter } -"""An input for mutations affecting `OrgGrant`""" -input OrgGrantInput { - """ - The member receiving or losing the permission grant; NULL if user was deleted - """ - actorId: UUID +"""An input for mutations affecting `OrgChartEdgeGrant`""" +input OrgChartEdgeGrantInput { + """User ID of the subordinate being placed in the hierarchy""" + childId: UUID! + + """Timestamp when this grant or revocation was recorded""" createdAt: Datetime - """The entity (org or group) this permission grant applies to""" + """Organization this grant applies to""" entityId: UUID! + + """ + User ID of the admin who performed this grant or revocation; NULL if grantor was deleted + """ grantorId: UUID id: UUID - """True to grant the permissions, false to revoke them""" + """TRUE to add/update the edge, FALSE to remove it""" isGrant: Boolean - """Bitmask of permissions being granted or revoked""" - permissions: BitString - updatedAt: Datetime + """User ID of the manager being assigned; NULL for top-level positions""" + parentId: UUID + + """Numeric seniority level being assigned in this grant""" + positionLevel: Int + + """Job title or role name being assigned in this grant""" + positionTitle: String } -"""Methods to use when ordering `OrgGrant`.""" -enum OrgGrantOrderBy { - ACTOR_ID_ASC - ACTOR_ID_DESC +"""Methods to use when ordering `OrgChartEdgeGrant`.""" +enum OrgChartEdgeGrantOrderBy { + CHILD_ID_ASC + CHILD_ID_DESC CREATED_AT_ASC CREATED_AT_DESC ENTITY_ID_ASC @@ -6018,174 +5147,187 @@ enum OrgGrantOrderBy { IS_GRANT_ASC IS_GRANT_DESC NATURAL - PERMISSIONS_ASC - PERMISSIONS_DESC + PARENT_ID_ASC + PARENT_ID_DESC + POSITION_LEVEL_ASC + POSITION_LEVEL_DESC + POSITION_TITLE_ASC + POSITION_TITLE_DESC PRIMARY_KEY_ASC PRIMARY_KEY_DESC - UPDATED_AT_ASC - UPDATED_AT_DESC } """ -Represents an update to a `OrgGrant`. Fields that are set will be updated. +Represents an update to a `OrgChartEdgeGrant`. Fields that are set will be updated. """ -input OrgGrantPatch { - """ - The member receiving or losing the permission grant; NULL if user was deleted - """ - actorId: UUID +input OrgChartEdgeGrantPatch { + """User ID of the subordinate being placed in the hierarchy""" + childId: UUID + + """Timestamp when this grant or revocation was recorded""" createdAt: Datetime - """The entity (org or group) this permission grant applies to""" + """Organization this grant applies to""" entityId: UUID + + """ + User ID of the admin who performed this grant or revocation; NULL if grantor was deleted + """ grantorId: UUID id: UUID - """True to grant the permissions, false to revoke them""" + """TRUE to add/update the edge, FALSE to remove it""" isGrant: Boolean - """Bitmask of permissions being granted or revoked""" - permissions: BitString - updatedAt: Datetime + """User ID of the manager being assigned; NULL for top-level positions""" + parentId: UUID + + """Numeric seniority level being assigned in this grant""" + positionLevel: Int + + """Job title or role name being assigned in this grant""" + positionTitle: String } -""" -Invitation records sent to prospective members via email, with token-based redemption and expiration -""" -type OrgInvite { - """Delivery channel for this invitation: email, sms, or link""" - channel: String! +"""An input for mutations affecting `OrgChartEdge`""" +input OrgChartEdgeInput { + """User ID of the subordinate (employee) in this reporting relationship""" + childId: UUID! createdAt: Datetime - """Optional JSON payload of additional invite metadata""" - data: JSON - - """Email address of the invited recipient (required when channel=email)""" - email: ConstructiveInternalTypeEmail + """Organization this hierarchy edge belongs to""" entityId: UUID! + id: UUID - """Timestamp after which this invitation can no longer be redeemed""" - expiresAt: Datetime! - id: UUID! + """ + User ID of the manager; NULL indicates a top-level position with no direct report + """ + parentId: UUID - """Running count of how many times this invite has been claimed""" - inviteCount: Int! + """Numeric seniority level for this position (higher = more senior)""" + positionLevel: Int - """Maximum number of times this invite can be claimed; -1 means unlimited""" - inviteLimit: Int! + """Job title or role name for this position in the org chart""" + positionTitle: String + updatedAt: Datetime +} - """Unique random hex token used to redeem this invitation""" - inviteToken: String! +"""Methods to use when ordering `OrgChartEdge`.""" +enum OrgChartEdgeOrderBy { + CHILD_ID_ASC + CHILD_ID_DESC + CREATED_AT_ASC + CREATED_AT_DESC + ENTITY_ID_ASC + ENTITY_ID_DESC + ID_ASC + ID_DESC + NATURAL + PARENT_ID_ASC + PARENT_ID_DESC + POSITION_LEVEL_ASC + POSITION_LEVEL_DESC + POSITION_TITLE_ASC + POSITION_TITLE_DESC + PRIMARY_KEY_ASC + PRIMARY_KEY_DESC + UPDATED_AT_ASC + UPDATED_AT_DESC +} - """Whether this invitation is still valid and can be redeemed""" - inviteValid: Boolean! +""" +Represents an update to a `OrgChartEdge`. Fields that are set will be updated. +""" +input OrgChartEdgePatch { + """User ID of the subordinate (employee) in this reporting relationship""" + childId: UUID + createdAt: Datetime + + """Organization this hierarchy edge belongs to""" + entityId: UUID + id: UUID """ - Whether the resulting membership should be read-only when this invite is claimed + User ID of the manager; NULL indicates a top-level position with no direct report """ - isReadOnly: Boolean! + parentId: UUID - """Whether this invite can be claimed by multiple recipients""" - multiple: Boolean! + """Numeric seniority level for this position (higher = more senior)""" + positionLevel: Int - """ - Phone number of the invited recipient in E.164 format (required when channel=sms) - """ - phone: String + """Job title or role name for this position in the org chart""" + positionTitle: String + updatedAt: Datetime +} - """ - Optional profile (role) to assign to the member when they claim this invite. Only allowed on email invites. - """ - profileId: UUID +""" +Records of successfully claimed invitations, linking senders to receivers +""" +type OrgClaimedInvite { + createdAt: Datetime - """User ID of the intended recipient, if targeting a specific user""" + """Optional JSON payload captured at the time the invite was claimed""" + data: JSON + entityId: UUID! + id: UUID! + + """User ID of the person who claimed and redeemed the invitation""" receiverId: UUID - """User ID of the member who sent this invitation""" - senderId: UUID! + """User ID of the original invitation sender""" + senderId: UUID updatedAt: Datetime } -"""A connection to a list of `OrgInvite` values.""" -type OrgInviteConnection { +"""A connection to a list of `OrgClaimedInvite` values.""" +type OrgClaimedInviteConnection { """ - A list of edges which contains the `OrgInvite` and cursor to aid in pagination. + A list of edges which contains the `OrgClaimedInvite` and cursor to aid in pagination. """ - edges: [OrgInviteEdge]! + edges: [OrgClaimedInviteEdge]! - """A list of `OrgInvite` objects.""" - nodes: [OrgInvite]! + """A list of `OrgClaimedInvite` objects.""" + nodes: [OrgClaimedInvite]! """Information to aid in pagination.""" pageInfo: PageInfo! - """The count of *all* `OrgInvite` you could get from the connection.""" + """ + The count of *all* `OrgClaimedInvite` you could get from the connection. + """ totalCount: Int! } - -"""A `OrgInvite` edge in the connection.""" -type OrgInviteEdge { + +"""A `OrgClaimedInvite` edge in the connection.""" +type OrgClaimedInviteEdge { """A cursor for use in pagination.""" cursor: Cursor - """The `OrgInvite` at the end of the edge.""" - node: OrgInvite + """The `OrgClaimedInvite` at the end of the edge.""" + node: OrgClaimedInvite } """ -A filter to be used against `OrgInvite` object types. All fields are combined with a logical ‘and.’ +A filter to be used against `OrgClaimedInvite` object types. All fields are combined with a logical ‘and.’ """ -input OrgInviteFilter { +input OrgClaimedInviteFilter { """Checks for all expressions in this list.""" - and: [OrgInviteFilter!] - - """Filter by the object’s `channel` field.""" - channel: StringFilter + and: [OrgClaimedInviteFilter!] """Filter by the object’s `createdAt` field.""" createdAt: DatetimeFilter - """Filter by the object’s `email` field.""" - email: ConstructiveInternalTypeEmailFilter - """Filter by the object’s `entityId` field.""" entityId: UUIDFilter - """Filter by the object’s `expiresAt` field.""" - expiresAt: DatetimeFilter - """Filter by the object’s `id` field.""" id: UUIDFilter - """Filter by the object’s `inviteCount` field.""" - inviteCount: IntFilter - - """Filter by the object’s `inviteLimit` field.""" - inviteLimit: IntFilter - - """Filter by the object’s `inviteToken` field.""" - inviteToken: StringFilter - - """Filter by the object’s `inviteValid` field.""" - inviteValid: BooleanFilter - - """Filter by the object’s `isReadOnly` field.""" - isReadOnly: BooleanFilter - - """Filter by the object’s `multiple` field.""" - multiple: BooleanFilter - """Negates the expression.""" - not: OrgInviteFilter + not: OrgClaimedInviteFilter """Checks for any expressions in this list.""" - or: [OrgInviteFilter!] - - """Filter by the object’s `phone` field.""" - phone: StringFilter - - """Filter by the object’s `profileId` field.""" - profileId: UUIDFilter + or: [OrgClaimedInviteFilter!] """Filter by the object’s `receiverId` field.""" receiverId: UUIDFilter @@ -6197,96 +5339,36 @@ input OrgInviteFilter { updatedAt: DatetimeFilter } -"""An input for mutations affecting `OrgInvite`""" -input OrgInviteInput { - """Delivery channel for this invitation: email, sms, or link""" - channel: String +"""An input for mutations affecting `OrgClaimedInvite`""" +input OrgClaimedInviteInput { createdAt: Datetime - """Optional JSON payload of additional invite metadata""" + """Optional JSON payload captured at the time the invite was claimed""" data: JSON - - """Email address of the invited recipient (required when channel=email)""" - email: ConstructiveInternalTypeEmail entityId: UUID! - - """Timestamp after which this invitation can no longer be redeemed""" - expiresAt: Datetime id: UUID - """Running count of how many times this invite has been claimed""" - inviteCount: Int - - """Maximum number of times this invite can be claimed; -1 means unlimited""" - inviteLimit: Int - - """Unique random hex token used to redeem this invitation""" - inviteToken: String - - """Whether this invitation is still valid and can be redeemed""" - inviteValid: Boolean - - """ - Whether the resulting membership should be read-only when this invite is claimed - """ - isReadOnly: Boolean - - """Whether this invite can be claimed by multiple recipients""" - multiple: Boolean - - """ - Phone number of the invited recipient in E.164 format (required when channel=sms) - """ - phone: String - - """ - Optional profile (role) to assign to the member when they claim this invite. Only allowed on email invites. - """ - profileId: UUID - - """User ID of the intended recipient, if targeting a specific user""" + """User ID of the person who claimed and redeemed the invitation""" receiverId: UUID - """User ID of the member who sent this invitation""" + """User ID of the original invitation sender""" senderId: UUID updatedAt: Datetime } -"""Methods to use when ordering `OrgInvite`.""" -enum OrgInviteOrderBy { - CHANNEL_ASC - CHANNEL_DESC +"""Methods to use when ordering `OrgClaimedInvite`.""" +enum OrgClaimedInviteOrderBy { CREATED_AT_ASC CREATED_AT_DESC DATA_ASC DATA_DESC - EMAIL_ASC - EMAIL_DESC ENTITY_ID_ASC ENTITY_ID_DESC - EXPIRES_AT_ASC - EXPIRES_AT_DESC ID_ASC ID_DESC - INVITE_COUNT_ASC - INVITE_COUNT_DESC - INVITE_LIMIT_ASC - INVITE_LIMIT_DESC - INVITE_TOKEN_ASC - INVITE_TOKEN_DESC - INVITE_VALID_ASC - INVITE_VALID_DESC - IS_READ_ONLY_ASC - IS_READ_ONLY_DESC - MULTIPLE_ASC - MULTIPLE_DESC NATURAL - PHONE_ASC - PHONE_DESC PRIMARY_KEY_ASC PRIMARY_KEY_DESC - PROFILE_ID_ASC - PROFILE_ID_DESC RECEIVER_ID_ASC RECEIVER_ID_DESC SENDER_ID_ASC @@ -6296,521 +5378,597 @@ enum OrgInviteOrderBy { } """ -Represents an update to a `OrgInvite`. Fields that are set will be updated. +Represents an update to a `OrgClaimedInvite`. Fields that are set will be updated. """ -input OrgInvitePatch { - """Delivery channel for this invitation: email, sms, or link""" - channel: String +input OrgClaimedInvitePatch { createdAt: Datetime - """Optional JSON payload of additional invite metadata""" + """Optional JSON payload captured at the time the invite was claimed""" data: JSON - - """Email address of the invited recipient (required when channel=email)""" - email: ConstructiveInternalTypeEmail entityId: UUID - - """Timestamp after which this invitation can no longer be redeemed""" - expiresAt: Datetime id: UUID - """Running count of how many times this invite has been claimed""" - inviteCount: Int + """User ID of the person who claimed and redeemed the invitation""" + receiverId: UUID - """Maximum number of times this invite can be claimed; -1 means unlimited""" - inviteLimit: Int + """User ID of the original invitation sender""" + senderId: UUID + updatedAt: Datetime +} - """Unique random hex token used to redeem this invitation""" - inviteToken: String +"""A connection to a list of `OrgGetManagersRecord` values.""" +type OrgGetManagersConnection { + """ + A list of edges which contains the `OrgGetManagersRecord` and cursor to aid in pagination. + """ + edges: [OrgGetManagersEdge]! - """Whether this invitation is still valid and can be redeemed""" - inviteValid: Boolean + """A list of `OrgGetManagersRecord` objects.""" + nodes: [OrgGetManagersRecord]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! """ - Whether the resulting membership should be read-only when this invite is claimed + The count of *all* `OrgGetManagersRecord` you could get from the connection. """ - isReadOnly: Boolean + totalCount: Int! +} - """Whether this invite can be claimed by multiple recipients""" - multiple: Boolean +"""A `OrgGetManagersRecord` edge in the connection.""" +type OrgGetManagersEdge { + """A cursor for use in pagination.""" + cursor: Cursor + + """The `OrgGetManagersRecord` at the end of the edge.""" + node: OrgGetManagersRecord +} + +type OrgGetManagersRecord { + depth: Int + userId: UUID +} +"""A connection to a list of `OrgGetSubordinatesRecord` values.""" +type OrgGetSubordinatesConnection { """ - Phone number of the invited recipient in E.164 format (required when channel=sms) + A list of edges which contains the `OrgGetSubordinatesRecord` and cursor to aid in pagination. """ - phone: String + edges: [OrgGetSubordinatesEdge]! + + """A list of `OrgGetSubordinatesRecord` objects.""" + nodes: [OrgGetSubordinatesRecord]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! """ - Optional profile (role) to assign to the member when they claim this invite. Only allowed on email invites. + The count of *all* `OrgGetSubordinatesRecord` you could get from the connection. """ - profileId: UUID + totalCount: Int! +} - """User ID of the intended recipient, if targeting a specific user""" - receiverId: UUID +"""A `OrgGetSubordinatesRecord` edge in the connection.""" +type OrgGetSubordinatesEdge { + """A cursor for use in pagination.""" + cursor: Cursor - """User ID of the member who sent this invitation""" - senderId: UUID - updatedAt: Datetime + """The `OrgGetSubordinatesRecord` at the end of the edge.""" + node: OrgGetSubordinatesRecord +} + +type OrgGetSubordinatesRecord { + depth: Int + userId: UUID } """ -Simplified view of active members in an entity, used for listing who belongs to an org or group +Records of individual capability grants and revocations for members via bitmask """ -type OrgMember { - """References the user who is a member""" - actorId: UUID! +type OrgGrant { + """ + The member receiving or losing the capability grant; NULL if user was deleted + """ + actorId: UUID - """References the entity (org or group) this member belongs to""" + """Bitmask of capabilities being granted or revoked""" + capabilities: BitString! + createdAt: Datetime + + """The entity (org or group) this capability grant applies to""" entityId: UUID! + grantorId: UUID id: UUID! - """Whether this member has admin privileges""" - isAdmin: Boolean! + """True to grant the capabilities, false to revoke them""" + isGrant: Boolean! + updatedAt: Datetime } -"""A connection to a list of `OrgMember` values.""" -type OrgMemberConnection { +"""A connection to a list of `OrgGrant` values.""" +type OrgGrantConnection { """ - A list of edges which contains the `OrgMember` and cursor to aid in pagination. + A list of edges which contains the `OrgGrant` and cursor to aid in pagination. """ - edges: [OrgMemberEdge]! + edges: [OrgGrantEdge]! - """A list of `OrgMember` objects.""" - nodes: [OrgMember]! + """A list of `OrgGrant` objects.""" + nodes: [OrgGrant]! """Information to aid in pagination.""" pageInfo: PageInfo! - """The count of *all* `OrgMember` you could get from the connection.""" + """The count of *all* `OrgGrant` you could get from the connection.""" totalCount: Int! } -"""A `OrgMember` edge in the connection.""" -type OrgMemberEdge { +"""A `OrgGrant` edge in the connection.""" +type OrgGrantEdge { """A cursor for use in pagination.""" cursor: Cursor - """The `OrgMember` at the end of the edge.""" - node: OrgMember + """The `OrgGrant` at the end of the edge.""" + node: OrgGrant } """ -A filter to be used against `OrgMember` 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 OrgMemberFilter { +input OrgGrantFilter { """Filter by the object’s `actorId` field.""" actorId: UUIDFilter """Checks for all expressions in this list.""" - and: [OrgMemberFilter!] + and: [OrgGrantFilter!] + + """Filter by the object’s `capabilities` field.""" + capabilities: BitStringFilter + + """Filter by the object’s `createdAt` field.""" + createdAt: DatetimeFilter """Filter by the object’s `entityId` field.""" entityId: UUIDFilter + """Filter by the object’s `grantorId` field.""" + grantorId: UUIDFilter + """Filter by the object’s `id` field.""" id: UUIDFilter - """Filter by the object’s `isAdmin` field.""" - isAdmin: BooleanFilter + """Filter by the object’s `isGrant` field.""" + isGrant: BooleanFilter """Negates the expression.""" - not: OrgMemberFilter + not: OrgGrantFilter """Checks for any expressions in this list.""" - or: [OrgMemberFilter!] + or: [OrgGrantFilter!] + + """Filter by the object’s `updatedAt` field.""" + updatedAt: DatetimeFilter } -"""An input for mutations affecting `OrgMember`""" -input OrgMemberInput { - """References the user who is a member""" - actorId: UUID! +"""An input for mutations affecting `OrgGrant`""" +input OrgGrantInput { + """ + The member receiving or losing the capability grant; NULL if user was deleted + """ + actorId: UUID - """References the entity (org or group) this member belongs to""" + """Bitmask of capabilities being granted or revoked""" + capabilities: BitString + createdAt: Datetime + + """The entity (org or group) this capability grant applies to""" entityId: UUID! + grantorId: UUID id: UUID - """Whether this member has admin privileges""" - isAdmin: Boolean + """True to grant the capabilities, false to revoke them""" + isGrant: Boolean + updatedAt: Datetime } -"""Methods to use when ordering `OrgMember`.""" -enum OrgMemberOrderBy { +"""Methods to use when ordering `OrgGrant`.""" +enum OrgGrantOrderBy { ACTOR_ID_ASC ACTOR_ID_DESC + CAPABILITIES_ASC + CAPABILITIES_DESC + CREATED_AT_ASC + CREATED_AT_DESC ENTITY_ID_ASC ENTITY_ID_DESC + GRANTOR_ID_ASC + GRANTOR_ID_DESC ID_ASC ID_DESC - IS_ADMIN_ASC - IS_ADMIN_DESC + IS_GRANT_ASC + IS_GRANT_DESC NATURAL PRIMARY_KEY_ASC PRIMARY_KEY_DESC + UPDATED_AT_ASC + UPDATED_AT_DESC } """ -Represents an update to a `OrgMember`. Fields that are set will be updated. +Represents an update to a `OrgGrant`. Fields that are set will be updated. """ -input OrgMemberPatch { - """References the user who is a member""" +input OrgGrantPatch { + """ + The member receiving or losing the capability grant; NULL if user was deleted + """ actorId: UUID - """References the entity (org or group) this member belongs to""" + """Bitmask of capabilities being granted or revoked""" + capabilities: BitString + createdAt: Datetime + + """The entity (org or group) this capability grant applies to""" entityId: UUID + grantorId: UUID id: UUID - """Whether this member has admin privileges""" - isAdmin: Boolean + """True to grant the capabilities, false to revoke them""" + isGrant: Boolean + updatedAt: Datetime } """ -Per-membership profile information visible to other entity members (display name, email, title, bio, avatar) +Invitation records sent to prospective members via email, with token-based redemption and expiration """ -type OrgMemberProfile { - """References the user who owns this profile (for self-edit RLS)""" - actorId: UUID! - - """Short biography visible to other entity members""" - bio: String +type OrgInvite { + """Delivery channel for this invitation: email, sms, or link""" + channel: String! createdAt: Datetime - """Display name shown to other entity members""" - displayName: String + """Optional JSON payload of additional invite metadata""" + data: JSON + + """Email address of the invited recipient (required when channel=email)""" + email: ConstructiveInternalTypeEmail + entityId: UUID! + + """Timestamp after which this invitation can no longer be redeemed""" + expiresAt: Datetime! + id: UUID! + + """Running count of how many times this invite has been claimed""" + inviteCount: Int! + + """Maximum number of times this invite can be claimed; -1 means unlimited""" + inviteLimit: Int! + + """Unique random hex token used to redeem this invitation""" + inviteToken: String! + + """Whether this invitation is still valid and can be redeemed""" + inviteValid: Boolean! """ - Email address visible to other entity members (auto-populated from verified primary email) + Whether the resulting membership should be read-only when this invite is claimed """ - email: String + isReadOnly: Boolean! - """References the entity this profile belongs to (used for RLS lookups)""" - entityId: UUID! - id: UUID! + """Whether this invite can be claimed by multiple recipients""" + multiple: Boolean! """ - Reads a single `OrgMembership` that is related to this `OrgMemberProfile`. + Phone number of the invited recipient in E.164 format (required when channel=sms) """ - membership: OrgMembership + phone: String - """References the membership this profile belongs to (1:1)""" - membershipId: UUID! + """ + Optional profile (role) to assign to the member when they claim this invite. Only allowed on email invites. + """ + profileId: UUID - """Profile picture visible to other entity members""" - profilePicture: ConstructiveInternalTypeImage + """User ID of the intended recipient, if targeting a specific user""" + receiverId: UUID - """Job title or role description visible to other entity members""" - title: String + """User ID of the member who sent this invitation""" + senderId: UUID! updatedAt: Datetime } -"""A connection to a list of `OrgMemberProfile` values.""" -type OrgMemberProfileConnection { +"""A connection to a list of `OrgInvite` values.""" +type OrgInviteConnection { """ - A list of edges which contains the `OrgMemberProfile` and cursor to aid in pagination. + A list of edges which contains the `OrgInvite` and cursor to aid in pagination. """ - edges: [OrgMemberProfileEdge]! + edges: [OrgInviteEdge]! - """A list of `OrgMemberProfile` objects.""" - nodes: [OrgMemberProfile]! + """A list of `OrgInvite` objects.""" + nodes: [OrgInvite]! """Information to aid in pagination.""" pageInfo: PageInfo! - """ - The count of *all* `OrgMemberProfile` you could get from the connection. - """ + """The count of *all* `OrgInvite` you could get from the connection.""" totalCount: Int! } -"""A `OrgMemberProfile` edge in the connection.""" -type OrgMemberProfileEdge { +"""A `OrgInvite` edge in the connection.""" +type OrgInviteEdge { """A cursor for use in pagination.""" cursor: Cursor - """The `OrgMemberProfile` at the end of the edge.""" - node: OrgMemberProfile + """The `OrgInvite` at the end of the edge.""" + node: OrgInvite } """ -A filter to be used against `OrgMemberProfile` object types. All fields are combined with a logical ‘and.’ +A filter to be used against `OrgInvite` object types. All fields are combined with a logical ‘and.’ """ -input OrgMemberProfileFilter { - """Filter by the object’s `actorId` field.""" - actorId: UUIDFilter - +input OrgInviteFilter { """Checks for all expressions in this list.""" - and: [OrgMemberProfileFilter!] + and: [OrgInviteFilter!] - """Filter by the object’s `bio` field.""" - bio: StringFilter + """Filter by the object’s `channel` field.""" + channel: StringFilter """Filter by the object’s `createdAt` field.""" createdAt: DatetimeFilter - """Filter by the object’s `displayName` field.""" - displayName: StringFilter - """Filter by the object’s `email` field.""" - email: StringFilter + email: ConstructiveInternalTypeEmailFilter """Filter by the object’s `entityId` field.""" entityId: UUIDFilter + """Filter by the object’s `expiresAt` field.""" + expiresAt: DatetimeFilter + """Filter by the object’s `id` field.""" id: UUIDFilter - """Filter by the object’s `membership` relation.""" - membership: OrgMembershipFilter + """Filter by the object’s `inviteCount` field.""" + inviteCount: IntFilter - """Filter by the object’s `membershipId` field.""" - membershipId: UUIDFilter + """Filter by the object’s `inviteLimit` field.""" + inviteLimit: IntFilter + + """Filter by the object’s `inviteToken` field.""" + inviteToken: StringFilter + + """Filter by the object’s `inviteValid` field.""" + inviteValid: BooleanFilter + + """Filter by the object’s `isReadOnly` field.""" + isReadOnly: BooleanFilter + + """Filter by the object’s `multiple` field.""" + multiple: BooleanFilter """Negates the expression.""" - not: OrgMemberProfileFilter + not: OrgInviteFilter """Checks for any expressions in this list.""" - or: [OrgMemberProfileFilter!] + or: [OrgInviteFilter!] - """Filter by the object’s `profilePicture` field.""" - profilePicture: ConstructiveInternalTypeImageFilter + """Filter by the object’s `phone` field.""" + phone: StringFilter - """Filter by the object’s `title` field.""" - title: StringFilter + """Filter by the object’s `profileId` field.""" + profileId: UUIDFilter + + """Filter by the object’s `receiverId` field.""" + receiverId: UUIDFilter + + """Filter by the object’s `senderId` field.""" + senderId: UUIDFilter """Filter by the object’s `updatedAt` field.""" updatedAt: DatetimeFilter } -"""An input for mutations affecting `OrgMemberProfile`""" -input OrgMemberProfileInput { - """References the user who owns this profile (for self-edit RLS)""" - actorId: UUID! - - """Short biography visible to other entity members""" - bio: String +"""An input for mutations affecting `OrgInvite`""" +input OrgInviteInput { + """Delivery channel for this invitation: email, sms, or link""" + channel: String createdAt: Datetime - """Display name shown to other entity members""" - displayName: String + """Optional JSON payload of additional invite metadata""" + data: JSON + + """Email address of the invited recipient (required when channel=email)""" + email: ConstructiveInternalTypeEmail + entityId: UUID! + + """Timestamp after which this invitation can no longer be redeemed""" + expiresAt: Datetime + id: UUID + + """Running count of how many times this invite has been claimed""" + inviteCount: Int + + """Maximum number of times this invite can be claimed; -1 means unlimited""" + inviteLimit: Int + + """Unique random hex token used to redeem this invitation""" + inviteToken: String + + """Whether this invitation is still valid and can be redeemed""" + inviteValid: Boolean + + """ + Whether the resulting membership should be read-only when this invite is claimed + """ + isReadOnly: Boolean + + """Whether this invite can be claimed by multiple recipients""" + multiple: Boolean """ - Email address visible to other entity members (auto-populated from verified primary email) + Phone number of the invited recipient in E.164 format (required when channel=sms) """ - email: String - - """References the entity this profile belongs to (used for RLS lookups)""" - entityId: UUID! - id: UUID + phone: String - """References the membership this profile belongs to (1:1)""" - membershipId: UUID! + """ + Optional profile (role) to assign to the member when they claim this invite. Only allowed on email invites. + """ + profileId: UUID - """Profile picture visible to other entity members""" - profilePicture: ConstructiveInternalTypeImage + """User ID of the intended recipient, if targeting a specific user""" + receiverId: UUID - """Job title or role description visible to other entity members""" - title: String + """User ID of the member who sent this invitation""" + senderId: UUID updatedAt: Datetime } -"""Methods to use when ordering `OrgMemberProfile`.""" -enum OrgMemberProfileOrderBy { - ACTOR_ID_ASC - ACTOR_ID_DESC - BIO_ASC - BIO_DESC +"""Methods to use when ordering `OrgInvite`.""" +enum OrgInviteOrderBy { + CHANNEL_ASC + CHANNEL_DESC CREATED_AT_ASC CREATED_AT_DESC - DISPLAY_NAME_ASC - DISPLAY_NAME_DESC + DATA_ASC + DATA_DESC EMAIL_ASC EMAIL_DESC ENTITY_ID_ASC ENTITY_ID_DESC + EXPIRES_AT_ASC + EXPIRES_AT_DESC ID_ASC ID_DESC - MEMBERSHIP_ID_ASC - MEMBERSHIP_ID_DESC + INVITE_COUNT_ASC + INVITE_COUNT_DESC + INVITE_LIMIT_ASC + INVITE_LIMIT_DESC + INVITE_TOKEN_ASC + INVITE_TOKEN_DESC + INVITE_VALID_ASC + INVITE_VALID_DESC + IS_READ_ONLY_ASC + IS_READ_ONLY_DESC + MULTIPLE_ASC + MULTIPLE_DESC NATURAL + PHONE_ASC + PHONE_DESC PRIMARY_KEY_ASC PRIMARY_KEY_DESC - PROFILE_PICTURE_ASC - PROFILE_PICTURE_DESC - TITLE_ASC - TITLE_DESC + PROFILE_ID_ASC + PROFILE_ID_DESC + RECEIVER_ID_ASC + RECEIVER_ID_DESC + SENDER_ID_ASC + SENDER_ID_DESC UPDATED_AT_ASC UPDATED_AT_DESC } """ -Represents an update to a `OrgMemberProfile`. Fields that are set will be updated. +Represents an update to a `OrgInvite`. Fields that are set will be updated. """ -input OrgMemberProfilePatch { - """References the user who owns this profile (for self-edit RLS)""" - actorId: UUID - - """Short biography visible to other entity members""" - bio: String +input OrgInvitePatch { + """Delivery channel for this invitation: email, sms, or link""" + channel: String createdAt: Datetime - """Display name shown to other entity members""" - displayName: String - - """ - Email address visible to other entity members (auto-populated from verified primary email) - """ - email: String + """Optional JSON payload of additional invite metadata""" + data: JSON - """References the entity this profile belongs to (used for RLS lookups)""" + """Email address of the invited recipient (required when channel=email)""" + email: ConstructiveInternalTypeEmail entityId: UUID - id: UUID - - """References the membership this profile belongs to (1:1)""" - membershipId: UUID - - """Profile picture visible to other entity members""" - profilePicture: ConstructiveInternalTypeImage - - """Upload for Profile picture visible to other entity members""" - profilePictureUpload: Upload - - """Job title or role description visible to other entity members""" - title: String - updatedAt: Datetime -} - -""" -Tracks membership records linking actors to entities with permission bitmasks, ownership, and admin status -""" -type OrgMembership { - """References the user who holds this membership""" - actorId: UUID! - createdAt: Datetime - createdBy: UUID - - """References the entity (org or group) this membership belongs to""" - entityId: UUID! - - """ - Bitmask of permissions directly granted to this member (not from profiles) - """ - granted: BitString! - id: UUID! - """ - Computed field indicating the membership is approved, verified, not banned, and not disabled - """ - isActive: Boolean! + """Timestamp after which this invitation can no longer be redeemed""" + expiresAt: Datetime + id: UUID - """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 membership has been approved by an admin""" - isApproved: Boolean! + """Maximum number of times this invite can be claimed; -1 means unlimited""" + inviteLimit: Int - """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 is external (not a member of the parent scope). External members may have restricted permissions. + Whether the resulting membership should be read-only when this invite is claimed """ - isExternal: Boolean! - - """Whether the actor is the owner of this entity""" - isOwner: Boolean! + isReadOnly: Boolean - """Whether this member has read-only access (blocks mutations when true)""" - isReadOnly: Boolean! + """Whether this invite can be claimed by multiple recipients""" + multiple: Boolean """ - Reads a single `OrgMemberProfile` that is related to this `OrgMembership`. + Phone number of the invited recipient in E.164 format (required when channel=sms) """ - orgMemberProfileByMembershipId: OrgMemberProfile + phone: String """ - 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 - updatedAt: Datetime - updatedBy: UUID -} - -"""A connection to a list of `OrgMembership` values.""" -type OrgMembershipConnection { - """ - A list of edges which contains the `OrgMembership` and cursor to aid in pagination. - """ - edges: [OrgMembershipEdge]! - - """A list of `OrgMembership` objects.""" - nodes: [OrgMembership]! - """Information to aid in pagination.""" - pageInfo: PageInfo! + """User ID of the intended recipient, if targeting a specific user""" + receiverId: UUID - """The count of *all* `OrgMembership` you could get from the connection.""" - totalCount: Int! + """User ID of the member who sent this invitation""" + senderId: UUID + updatedAt: Datetime } """ -Default membership settings per entity, controlling initial approval and verification state for new members +Simplified view of active members in an entity, used for listing who belongs to an org or group """ -type OrgMembershipDefault { - createdAt: Datetime - createdBy: UUID +type OrgMember { + """References the user who is a member""" + actorId: UUID! - """References the entity these membership defaults apply to""" + """References the entity (org or group) this member belongs to""" entityId: UUID! id: UUID! - """Whether new members are automatically approved upon joining""" - isApproved: Boolean! - updatedAt: Datetime - updatedBy: UUID + """Whether this member has admin privileges""" + isAdmin: Boolean! } -"""A connection to a list of `OrgMembershipDefault` values.""" -type OrgMembershipDefaultConnection { +"""A connection to a list of `OrgMember` values.""" +type OrgMemberConnection { """ - A list of edges which contains the `OrgMembershipDefault` and cursor to aid in pagination. + A list of edges which contains the `OrgMember` and cursor to aid in pagination. """ - edges: [OrgMembershipDefaultEdge]! + edges: [OrgMemberEdge]! - """A list of `OrgMembershipDefault` objects.""" - nodes: [OrgMembershipDefault]! + """A list of `OrgMember` objects.""" + nodes: [OrgMember]! """Information to aid in pagination.""" pageInfo: PageInfo! - """ - The count of *all* `OrgMembershipDefault` you could get from the connection. - """ + """The count of *all* `OrgMember` you could get from the connection.""" totalCount: Int! } -"""A `OrgMembershipDefault` edge in the connection.""" -type OrgMembershipDefaultEdge { +"""A `OrgMember` edge in the connection.""" +type OrgMemberEdge { """A cursor for use in pagination.""" cursor: Cursor - """The `OrgMembershipDefault` at the end of the edge.""" - node: OrgMembershipDefault + """The `OrgMember` at the end of the edge.""" + node: OrgMember } """ -A filter to be used against `OrgMembershipDefault` object types. All fields are combined with a logical ‘and.’ +A filter to be used against `OrgMember` object types. All fields are combined with a logical ‘and.’ """ -input OrgMembershipDefaultFilter { - """Checks for all expressions in this list.""" - and: [OrgMembershipDefaultFilter!] - - """Filter by the object’s `createdAt` field.""" - createdAt: DatetimeFilter +input OrgMemberFilter { + """Filter by the object’s `actorId` field.""" + actorId: UUIDFilter - """Filter by the object’s `createdBy` field.""" - createdBy: UUIDFilter + """Checks for all expressions in this list.""" + and: [OrgMemberFilter!] """Filter by the object’s `entityId` field.""" entityId: UUIDFilter @@ -6818,406 +5976,402 @@ input OrgMembershipDefaultFilter { """Filter by the object’s `id` field.""" id: UUIDFilter - """Filter by the object’s `isApproved` field.""" - isApproved: BooleanFilter + """Filter by the object’s `isAdmin` field.""" + isAdmin: BooleanFilter """Negates the expression.""" - not: OrgMembershipDefaultFilter + not: OrgMemberFilter """Checks for any expressions in this list.""" - or: [OrgMembershipDefaultFilter!] - - """Filter by the object’s `updatedAt` field.""" - updatedAt: DatetimeFilter - - """Filter by the object’s `updatedBy` field.""" - updatedBy: UUIDFilter + or: [OrgMemberFilter!] } -"""An input for mutations affecting `OrgMembershipDefault`""" -input OrgMembershipDefaultInput { - createdAt: Datetime - createdBy: UUID +"""An input for mutations affecting `OrgMember`""" +input OrgMemberInput { + """References the user who is a member""" + actorId: UUID! - """References the entity these membership defaults apply to""" + """References the entity (org or group) this member belongs to""" entityId: UUID! id: UUID - """Whether new members are automatically approved upon joining""" - isApproved: Boolean - updatedAt: Datetime - updatedBy: UUID + """Whether this member has admin privileges""" + isAdmin: Boolean } -"""Methods to use when ordering `OrgMembershipDefault`.""" -enum OrgMembershipDefaultOrderBy { - CREATED_AT_ASC - CREATED_AT_DESC - CREATED_BY_ASC - CREATED_BY_DESC +"""Methods to use when ordering `OrgMember`.""" +enum OrgMemberOrderBy { + ACTOR_ID_ASC + ACTOR_ID_DESC ENTITY_ID_ASC ENTITY_ID_DESC ID_ASC ID_DESC - IS_APPROVED_ASC - IS_APPROVED_DESC + IS_ADMIN_ASC + IS_ADMIN_DESC NATURAL PRIMARY_KEY_ASC PRIMARY_KEY_DESC - UPDATED_AT_ASC - UPDATED_AT_DESC - UPDATED_BY_ASC - UPDATED_BY_DESC } """ -Represents an update to a `OrgMembershipDefault`. Fields that are set will be updated. +Represents an update to a `OrgMember`. Fields that are set will be updated. """ -input OrgMembershipDefaultPatch { - createdAt: Datetime - createdBy: UUID +input OrgMemberPatch { + """References the user who is a member""" + actorId: UUID - """References the entity these membership defaults apply to""" + """References the entity (org or group) this member belongs to""" entityId: UUID id: UUID - """Whether new members are automatically approved upon joining""" - isApproved: Boolean + """Whether this member has admin privileges""" + isAdmin: Boolean +} + +""" +Per-membership profile information visible to other entity members (display name, email, title, bio, avatar) +""" +type OrgMemberProfile { + """References the user who owns this profile (for self-edit RLS)""" + actorId: UUID! + + """Short biography visible to other entity members""" + bio: String + createdAt: Datetime + + """Display name shown to other entity members""" + displayName: String + + """ + Email address visible to other entity members (auto-populated from verified primary email) + """ + email: String + + """References the entity this profile belongs to (used for RLS lookups)""" + entityId: UUID! + id: UUID! + + """ + Reads a single `OrgMembership` that is related to this `OrgMemberProfile`. + """ + membership: OrgMembership + + """References the membership this profile belongs to (1:1)""" + membershipId: UUID! + + """Profile picture visible to other entity members""" + profilePicture: ConstructiveInternalTypeImage + + """Job title or role description visible to other entity members""" + title: String updatedAt: Datetime - updatedBy: UUID } -"""A `OrgMembership` edge in the connection.""" -type OrgMembershipEdge { +"""A connection to a list of `OrgMemberProfile` values.""" +type OrgMemberProfileConnection { + """ + A list of edges which contains the `OrgMemberProfile` and cursor to aid in pagination. + """ + edges: [OrgMemberProfileEdge]! + + """A list of `OrgMemberProfile` objects.""" + nodes: [OrgMemberProfile]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! + + """ + The count of *all* `OrgMemberProfile` you could get from the connection. + """ + totalCount: Int! +} + +"""A `OrgMemberProfile` edge in the connection.""" +type OrgMemberProfileEdge { """A cursor for use in pagination.""" cursor: Cursor - """The `OrgMembership` at the end of the edge.""" - node: OrgMembership + """The `OrgMemberProfile` at the end of the edge.""" + node: OrgMemberProfile } """ -A filter to be used against `OrgMembership` object types. 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 OrgMembershipFilter { +input OrgMemberProfileFilter { """Filter by the object’s `actorId` field.""" actorId: UUIDFilter """Checks for all expressions in this list.""" - and: [OrgMembershipFilter!] + and: [OrgMemberProfileFilter!] + + """Filter by the object’s `bio` field.""" + bio: StringFilter """Filter by the object’s `createdAt` field.""" createdAt: DatetimeFilter - """Filter by the object’s `createdBy` field.""" - createdBy: UUIDFilter + """Filter by the object’s `displayName` field.""" + displayName: StringFilter + + """Filter by the object’s `email` field.""" + email: StringFilter """Filter by the object’s `entityId` field.""" entityId: UUIDFilter - """Filter by the object’s `granted` field.""" - granted: BitStringFilter - """Filter by the object’s `id` field.""" id: UUIDFilter - """Filter by the object’s `isActive` field.""" - isActive: BooleanFilter - - """Filter by the object’s `isAdmin` field.""" - isAdmin: BooleanFilter - - """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 `isExternal` field.""" - isExternal: BooleanFilter - - """Filter by the object’s `isOwner` field.""" - isOwner: BooleanFilter + """Filter by the object’s `membership` relation.""" + membership: OrgMembershipFilter - """Filter by the object’s `isReadOnly` field.""" - isReadOnly: BooleanFilter + """Filter by the object’s `membershipId` field.""" + membershipId: UUIDFilter """Negates the expression.""" - not: OrgMembershipFilter + not: OrgMemberProfileFilter """Checks for any expressions in this list.""" - or: [OrgMembershipFilter!] - - """Filter by the object’s `orgMemberProfileByMembershipId` relation.""" - orgMemberProfileByMembershipId: OrgMemberProfileFilter - - """A related `orgMemberProfileByMembershipId` exists.""" - orgMemberProfileByMembershipIdExists: Boolean + or: [OrgMemberProfileFilter!] - """Filter by the object’s `permissions` field.""" - permissions: BitStringFilter + """Filter by the object’s `profilePicture` field.""" + profilePicture: ConstructiveInternalTypeImageFilter - """Filter by the object’s `profileId` field.""" - profileId: UUIDFilter + """Filter by the object’s `title` field.""" + title: StringFilter """Filter by the object’s `updatedAt` field.""" updatedAt: DatetimeFilter - - """Filter by the object’s `updatedBy` field.""" - updatedBy: UUIDFilter } -"""An input for mutations affecting `OrgMembership`""" -input OrgMembershipInput { - """References the user who holds this membership""" +"""An input for mutations affecting `OrgMemberProfile`""" +input OrgMemberProfileInput { + """References the user who owns this profile (for self-edit RLS)""" actorId: UUID! - createdAt: Datetime - createdBy: UUID - """References the entity (org or group) this membership belongs to""" - entityId: UUID! + """Short biography visible to other entity members""" + bio: String + createdAt: Datetime - """ - Bitmask of permissions directly granted to this member (not from profiles) - """ - granted: BitString - id: UUID + """Display name shown to other entity members""" + displayName: String """ - Computed field indicating the membership is approved, verified, not banned, and not disabled + Email address visible to other entity members (auto-populated from verified primary email) """ - isActive: Boolean - - """Whether the actor has admin privileges on this entity""" - isAdmin: Boolean - - """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 + email: String - """ - Whether this member is external (not a member of the parent scope). External members may have restricted permissions. - """ - isExternal: Boolean + """References the entity this profile belongs to (used for RLS lookups)""" + entityId: UUID! + id: UUID - """Whether the actor is the owner of this entity""" - isOwner: Boolean + """References the membership this profile belongs to (1:1)""" + membershipId: UUID! - """Whether this member has read-only access (blocks mutations when true)""" - isReadOnly: Boolean + """Profile picture visible to other entity members""" + profilePicture: ConstructiveInternalTypeImage - """ - Aggregated permission bitmask combining profile-based and directly granted permissions - """ - permissions: BitString - profileId: UUID + """Job title or role description visible to other entity members""" + title: String updatedAt: Datetime - updatedBy: UUID } -"""Methods to use when ordering `OrgMembership`.""" -enum OrgMembershipOrderBy { +"""Methods to use when ordering `OrgMemberProfile`.""" +enum OrgMemberProfileOrderBy { ACTOR_ID_ASC ACTOR_ID_DESC + BIO_ASC + BIO_DESC CREATED_AT_ASC CREATED_AT_DESC - CREATED_BY_ASC - CREATED_BY_DESC - ENTITY_ID_ASC - ENTITY_ID_DESC - GRANTED_ASC - GRANTED_DESC - ID_ASC - ID_DESC - IS_ACTIVE_ASC - IS_ACTIVE_DESC - IS_ADMIN_ASC - IS_ADMIN_DESC - IS_APPROVED_ASC - IS_APPROVED_DESC - IS_BANNED_ASC - IS_BANNED_DESC - IS_DISABLED_ASC - IS_DISABLED_DESC - IS_EXTERNAL_ASC - IS_EXTERNAL_DESC - IS_OWNER_ASC - IS_OWNER_DESC - IS_READ_ONLY_ASC - IS_READ_ONLY_DESC + DISPLAY_NAME_ASC + DISPLAY_NAME_DESC + EMAIL_ASC + EMAIL_DESC + ENTITY_ID_ASC + ENTITY_ID_DESC + ID_ASC + ID_DESC + MEMBERSHIP_ID_ASC + MEMBERSHIP_ID_DESC NATURAL - PERMISSIONS_ASC - PERMISSIONS_DESC PRIMARY_KEY_ASC PRIMARY_KEY_DESC - PROFILE_ID_ASC - PROFILE_ID_DESC + PROFILE_PICTURE_ASC + PROFILE_PICTURE_DESC + TITLE_ASC + TITLE_DESC UPDATED_AT_ASC UPDATED_AT_DESC - UPDATED_BY_ASC - UPDATED_BY_DESC } """ -Represents an update to a `OrgMembership`. Fields that are set will be updated. +Represents an update to a `OrgMemberProfile`. Fields that are set will be updated. """ -input OrgMembershipPatch { - """References the user who holds this membership""" +input OrgMemberProfilePatch { + """References the user who owns this profile (for self-edit RLS)""" actorId: UUID + + """Short biography visible to other entity members""" + bio: String + createdAt: Datetime + + """Display name shown to other entity members""" + displayName: String + + """ + Email address visible to other entity members (auto-populated from verified primary email) + """ + email: String + + """References the entity this profile belongs to (used for RLS lookups)""" + entityId: UUID + id: UUID + + """References the membership this profile belongs to (1:1)""" + membershipId: UUID + + """Profile picture visible to other entity members""" + profilePicture: ConstructiveInternalTypeImage + + """Upload for Profile picture visible to other entity members""" + profilePictureUpload: Upload + + """Job title or role description visible to other entity members""" + title: String + updatedAt: Datetime +} + +""" +Tracks membership records linking actors to entities with capability bitmasks, ownership, and admin status +""" +type OrgMembership { + """References the user who holds this membership""" + actorId: UUID! + + """ + Aggregated capability bitmask combining profile-based and directly granted capabilities + """ + capabilities: BitString! createdAt: Datetime createdBy: UUID """References the entity (org or group) this membership belongs to""" - entityId: UUID + entityId: UUID! """ - Bitmask of permissions directly granted to this member (not from profiles) + Bitmask of capabilities directly granted to this member (not from profiles) """ - granted: BitString - id: UUID + granted: BitString! + id: UUID! """ Computed field indicating the membership is approved, verified, not banned, and not disabled """ - isActive: Boolean + isActive: Boolean! """Whether the actor has admin privileges on this entity""" - isAdmin: Boolean + isAdmin: Boolean! """Whether this membership has been approved by an admin""" - isApproved: Boolean + isApproved: Boolean! """Whether this member has been banned from the entity""" - isBanned: Boolean + isBanned: Boolean! """Whether this membership is temporarily disabled""" - isDisabled: Boolean + isDisabled: Boolean! """ - Whether this member is external (not a member of the parent scope). External members may have restricted permissions. + Whether this member is external (not a member of the parent scope). External members may have restricted capabilities. """ - isExternal: Boolean + isExternal: Boolean! """Whether the actor is the owner of this entity""" - isOwner: Boolean + isOwner: Boolean! """Whether this member has read-only access (blocks mutations when true)""" - isReadOnly: Boolean + isReadOnly: Boolean! """ - Aggregated permission bitmask combining profile-based and directly granted permissions + Reads a single `OrgMemberProfile` that is related to this `OrgMembership`. """ - permissions: BitString + orgMemberProfileByMembershipId: OrgMemberProfile profileId: UUID updatedAt: Datetime updatedBy: UUID } -"""Per-entity settings for the memberships module""" -type OrgMembershipSetting { +"""A connection to a list of `OrgMembership` values.""" +type OrgMembershipConnection { """ - Whether descendants of this org may admit members who are not already org members (outside-collaborators toggle) + A list of edges which contains the `OrgMembership` and cursor to aid in pagination. """ - allowExternalMembers: Boolean! + edges: [OrgMembershipEdge]! - """ - When a child entity is created, whether to auto-add existing org-level admins as child-entity admins - """ - createChildCascadeAdmins: Boolean! + """A list of `OrgMembership` objects.""" + nodes: [OrgMembership]! - """ - When a child entity is created, whether to auto-add existing org-level members (non-admin, non-owner) as child-entity members - """ - createChildCascadeMembers: Boolean! + """Information to aid in pagination.""" + pageInfo: PageInfo! - """ - When a child entity is created, whether to auto-add existing org-level owners as child-entity owners - """ - createChildCascadeOwners: Boolean! + """The count of *all* `OrgMembership` you could get from the connection.""" + totalCount: Int! +} + +""" +Default membership settings per entity, controlling initial approval and verification state for new members +""" +type OrgMembershipDefault { createdAt: Datetime createdBy: UUID - """ - When a member is deleted, whether to cascade-remove their descendant-entity memberships - """ - deleteMemberCascadeChildren: Boolean! - - """References the entity these settings apply to""" + """References the entity these membership defaults apply to""" entityId: UUID! id: UUID! - """ - Controls how profile assignment on invites is validated: strict (permission + subset check), permission_only (permission only), or subset_only (subset check only) - """ - inviteProfileAssignmentMode: 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! - - """ - 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! + """Whether new members are automatically approved upon joining""" + isApproved: Boolean! updatedAt: Datetime updatedBy: UUID } -"""A connection to a list of `OrgMembershipSetting` values.""" -type OrgMembershipSettingConnection { +"""A connection to a list of `OrgMembershipDefault` values.""" +type OrgMembershipDefaultConnection { """ - A list of edges which contains the `OrgMembershipSetting` and cursor to aid in pagination. + A list of edges which contains the `OrgMembershipDefault` and cursor to aid in pagination. """ - edges: [OrgMembershipSettingEdge]! + edges: [OrgMembershipDefaultEdge]! - """A list of `OrgMembershipSetting` objects.""" - nodes: [OrgMembershipSetting]! + """A list of `OrgMembershipDefault` objects.""" + nodes: [OrgMembershipDefault]! """Information to aid in pagination.""" pageInfo: PageInfo! """ - The count of *all* `OrgMembershipSetting` you could get from the connection. + The count of *all* `OrgMembershipDefault` you could get from the connection. """ totalCount: Int! } -"""A `OrgMembershipSetting` edge in the connection.""" -type OrgMembershipSettingEdge { +"""A `OrgMembershipDefault` edge in the connection.""" +type OrgMembershipDefaultEdge { """A cursor for use in pagination.""" cursor: Cursor - """The `OrgMembershipSetting` at the end of the edge.""" - node: OrgMembershipSetting + """The `OrgMembershipDefault` at the end of the edge.""" + node: OrgMembershipDefault } """ -A filter to be used against `OrgMembershipSetting` object types. All fields are combined with a logical ‘and.’ +A filter to be used against `OrgMembershipDefault` object types. All fields are combined with a logical ‘and.’ """ -input OrgMembershipSettingFilter { - """Filter by the object’s `allowExternalMembers` field.""" - allowExternalMembers: BooleanFilter - +input OrgMembershipDefaultFilter { """Checks for all expressions in this list.""" - and: [OrgMembershipSettingFilter!] - - """Filter by the object’s `createChildCascadeAdmins` field.""" - createChildCascadeAdmins: BooleanFilter - - """Filter by the object’s `createChildCascadeMembers` field.""" - createChildCascadeMembers: BooleanFilter - - """Filter by the object’s `createChildCascadeOwners` field.""" - createChildCascadeOwners: BooleanFilter + and: [OrgMembershipDefaultFilter!] """Filter by the object’s `createdAt` field.""" createdAt: DatetimeFilter @@ -7225,29 +6379,20 @@ input OrgMembershipSettingFilter { """Filter by the object’s `createdBy` field.""" createdBy: UUIDFilter - """Filter by the object’s `deleteMemberCascadeChildren` field.""" - deleteMemberCascadeChildren: BooleanFilter - """Filter by the object’s `entityId` field.""" entityId: UUIDFilter """Filter by the object’s `id` field.""" id: UUIDFilter - """Filter by the object’s `inviteProfileAssignmentMode` field.""" - inviteProfileAssignmentMode: StringFilter - - """Filter by the object’s `limitAllocationMode` field.""" - limitAllocationMode: StringFilter + """Filter by the object’s `isApproved` field.""" + isApproved: BooleanFilter """Negates the expression.""" - not: OrgMembershipSettingFilter + not: OrgMembershipDefaultFilter """Checks for any expressions in this list.""" - or: [OrgMembershipSettingFilter!] - - """Filter by the object’s `populateMemberEmail` field.""" - populateMemberEmail: BooleanFilter + or: [OrgMembershipDefaultFilter!] """Filter by the object’s `updatedAt` field.""" updatedAt: DatetimeFilter @@ -7256,84 +6401,34 @@ input OrgMembershipSettingFilter { updatedBy: UUIDFilter } -"""An input for mutations affecting `OrgMembershipSetting`""" -input OrgMembershipSettingInput { - """ - Whether descendants of this org may admit members who are not already org members (outside-collaborators toggle) - """ - allowExternalMembers: 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 - - """ - When a child entity is created, whether to auto-add existing org-level owners as child-entity owners - """ - createChildCascadeOwners: Boolean +"""An input for mutations affecting `OrgMembershipDefault`""" +input OrgMembershipDefaultInput { createdAt: Datetime createdBy: UUID - """ - When a member is deleted, whether to cascade-remove their descendant-entity memberships - """ - deleteMemberCascadeChildren: Boolean - - """References the entity these settings apply to""" + """References the entity these membership defaults apply to""" entityId: UUID! id: UUID - """ - Controls how profile assignment on invites is validated: strict (permission + subset check), permission_only (permission only), or subset_only (subset check only) - """ - inviteProfileAssignmentMode: 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 - - """ - 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 + """Whether new members are automatically approved upon joining""" + isApproved: Boolean updatedAt: Datetime updatedBy: UUID } -"""Methods to use when ordering `OrgMembershipSetting`.""" -enum OrgMembershipSettingOrderBy { - ALLOW_EXTERNAL_MEMBERS_ASC - ALLOW_EXTERNAL_MEMBERS_DESC +"""Methods to use when ordering `OrgMembershipDefault`.""" +enum OrgMembershipDefaultOrderBy { CREATED_AT_ASC CREATED_AT_DESC CREATED_BY_ASC - CREATED_BY_DESC - CREATE_CHILD_CASCADE_ADMINS_ASC - CREATE_CHILD_CASCADE_ADMINS_DESC - CREATE_CHILD_CASCADE_MEMBERS_ASC - CREATE_CHILD_CASCADE_MEMBERS_DESC - CREATE_CHILD_CASCADE_OWNERS_ASC - CREATE_CHILD_CASCADE_OWNERS_DESC - DELETE_MEMBER_CASCADE_CHILDREN_ASC - DELETE_MEMBER_CASCADE_CHILDREN_DESC + CREATED_BY_DESC ENTITY_ID_ASC ENTITY_ID_DESC ID_ASC ID_DESC - INVITE_PROFILE_ASSIGNMENT_MODE_ASC - INVITE_PROFILE_ASSIGNMENT_MODE_DESC - LIMIT_ALLOCATION_MODE_ASC - LIMIT_ALLOCATION_MODE_DESC + IS_APPROVED_ASC + IS_APPROVED_DESC NATURAL - POPULATE_MEMBER_EMAIL_ASC - POPULATE_MEMBER_EMAIL_DESC PRIMARY_KEY_ASC PRIMARY_KEY_DESC UPDATED_AT_ASC @@ -7343,596 +6438,583 @@ enum OrgMembershipSettingOrderBy { } """ -Represents an update to a `OrgMembershipSetting`. Fields that are set will be updated. +Represents an update to a `OrgMembershipDefault`. Fields that are set will be updated. """ -input OrgMembershipSettingPatch { - """ - Whether descendants of this org may admit members who are not already org members (outside-collaborators toggle) - """ - allowExternalMembers: 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 - - """ - When a child entity is created, whether to auto-add existing org-level owners as child-entity owners - """ - createChildCascadeOwners: Boolean +input OrgMembershipDefaultPatch { createdAt: Datetime createdBy: UUID - """ - When a member is deleted, whether to cascade-remove their descendant-entity memberships - """ - deleteMemberCascadeChildren: Boolean - - """References the entity these settings apply to""" + """References the entity these membership defaults apply to""" entityId: UUID id: UUID - """ - Controls how profile assignment on invites is validated: strict (permission + subset check), permission_only (permission only), or subset_only (subset check only) - """ - inviteProfileAssignmentMode: 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 - - """ - 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 + """Whether new members are automatically approved upon joining""" + isApproved: Boolean updatedAt: Datetime updatedBy: UUID } -"""Records of ownership transfers and grants between members""" -type OrgOwnerGrant { - """ - The member receiving or losing the ownership grant; NULL if user was deleted - """ - actorId: UUID - createdAt: Datetime - - """The entity (org or group) this ownership grant applies to""" - entityId: UUID! - grantorId: UUID - id: UUID! - - """True to grant ownership, false to revoke ownership""" - isGrant: Boolean! - updatedAt: Datetime -} - -"""A connection to a list of `OrgOwnerGrant` values.""" -type OrgOwnerGrantConnection { - """ - A list of edges which contains the `OrgOwnerGrant` and cursor to aid in pagination. - """ - edges: [OrgOwnerGrantEdge]! - - """A list of `OrgOwnerGrant` objects.""" - nodes: [OrgOwnerGrant]! - - """Information to aid in pagination.""" - pageInfo: PageInfo! - - """The count of *all* `OrgOwnerGrant` you could get from the connection.""" - totalCount: Int! -} - -"""A `OrgOwnerGrant` edge in the connection.""" -type OrgOwnerGrantEdge { +"""A `OrgMembership` edge in the connection.""" +type OrgMembershipEdge { """A cursor for use in pagination.""" cursor: Cursor - """The `OrgOwnerGrant` at the end of the edge.""" - node: OrgOwnerGrant + """The `OrgMembership` at the end of the edge.""" + node: OrgMembership } """ -A filter to be used against `OrgOwnerGrant` 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 OrgOwnerGrantFilter { +input OrgMembershipFilter { """Filter by the object’s `actorId` field.""" actorId: UUIDFilter """Checks for all expressions in this list.""" - and: [OrgOwnerGrantFilter!] + and: [OrgMembershipFilter!] + + """Filter by the object’s `capabilities` field.""" + capabilities: BitStringFilter """Filter by the object’s `createdAt` field.""" createdAt: DatetimeFilter + """Filter by the object’s `createdBy` field.""" + createdBy: UUIDFilter + """Filter by the object’s `entityId` field.""" entityId: UUIDFilter - """Filter by the object’s `grantorId` field.""" - grantorId: UUIDFilter + """Filter by the object’s `granted` field.""" + granted: BitStringFilter """Filter by the object’s `id` field.""" id: UUIDFilter - """Filter by the object’s `isGrant` field.""" - isGrant: BooleanFilter + """Filter by the object’s `isActive` field.""" + isActive: BooleanFilter + + """Filter by the object’s `isAdmin` field.""" + isAdmin: BooleanFilter + + """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 `isExternal` field.""" + isExternal: BooleanFilter + + """Filter by the object’s `isOwner` field.""" + isOwner: BooleanFilter + + """Filter by the object’s `isReadOnly` field.""" + isReadOnly: BooleanFilter """Negates the expression.""" - not: OrgOwnerGrantFilter + not: OrgMembershipFilter """Checks for any expressions in this list.""" - or: [OrgOwnerGrantFilter!] + or: [OrgMembershipFilter!] + + """Filter by the object’s `orgMemberProfileByMembershipId` relation.""" + orgMemberProfileByMembershipId: OrgMemberProfileFilter + + """A related `orgMemberProfileByMembershipId` exists.""" + orgMemberProfileByMembershipIdExists: Boolean + + """Filter by the object’s `profileId` field.""" + profileId: UUIDFilter """Filter by the object’s `updatedAt` field.""" updatedAt: DatetimeFilter + + """Filter by the object’s `updatedBy` field.""" + updatedBy: UUIDFilter } -"""An input for mutations affecting `OrgOwnerGrant`""" -input OrgOwnerGrantInput { +"""An input for mutations affecting `OrgMembership`""" +input OrgMembershipInput { + """References the user who holds this membership""" + actorId: UUID! + """ - The member receiving or losing the ownership grant; NULL if user was deleted + Aggregated capability bitmask combining profile-based and directly granted capabilities """ - actorId: UUID + capabilities: BitString createdAt: Datetime + createdBy: UUID - """The entity (org or group) this ownership grant applies to""" + """References the entity (org or group) this membership belongs to""" entityId: UUID! - grantorId: UUID + + """ + Bitmask of capabilities directly granted to this member (not from profiles) + """ + granted: BitString id: UUID - """True to grant ownership, false to revoke ownership""" - isGrant: Boolean + """ + Computed field indicating the membership is approved, verified, not banned, and not disabled + """ + isActive: Boolean + + """Whether the actor has admin privileges on this entity""" + isAdmin: Boolean + + """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 is external (not a member of the parent scope). External members may have restricted capabilities. + """ + isExternal: Boolean + + """Whether the actor is the owner of this entity""" + isOwner: Boolean + + """Whether this member has read-only access (blocks mutations when true)""" + isReadOnly: Boolean + profileId: UUID updatedAt: Datetime + updatedBy: UUID } -"""Methods to use when ordering `OrgOwnerGrant`.""" -enum OrgOwnerGrantOrderBy { +"""Methods to use when ordering `OrgMembership`.""" +enum OrgMembershipOrderBy { ACTOR_ID_ASC ACTOR_ID_DESC + CAPABILITIES_ASC + CAPABILITIES_DESC CREATED_AT_ASC CREATED_AT_DESC + CREATED_BY_ASC + CREATED_BY_DESC ENTITY_ID_ASC ENTITY_ID_DESC - GRANTOR_ID_ASC - GRANTOR_ID_DESC + GRANTED_ASC + GRANTED_DESC ID_ASC ID_DESC - IS_GRANT_ASC - IS_GRANT_DESC + IS_ACTIVE_ASC + IS_ACTIVE_DESC + IS_ADMIN_ASC + IS_ADMIN_DESC + IS_APPROVED_ASC + IS_APPROVED_DESC + IS_BANNED_ASC + IS_BANNED_DESC + IS_DISABLED_ASC + IS_DISABLED_DESC + IS_EXTERNAL_ASC + IS_EXTERNAL_DESC + IS_OWNER_ASC + IS_OWNER_DESC + IS_READ_ONLY_ASC + IS_READ_ONLY_DESC NATURAL PRIMARY_KEY_ASC PRIMARY_KEY_DESC + PROFILE_ID_ASC + PROFILE_ID_DESC UPDATED_AT_ASC UPDATED_AT_DESC + UPDATED_BY_ASC + UPDATED_BY_DESC } """ -Represents an update to a `OrgOwnerGrant`. Fields that are set will be updated. -""" -input OrgOwnerGrantPatch { - """ - The member receiving or losing the ownership grant; NULL if user was deleted - """ - actorId: UUID - createdAt: Datetime - - """The entity (org or group) this ownership grant applies to""" - entityId: UUID - grantorId: UUID - id: UUID - - """True to grant ownership, false to revoke ownership""" - isGrant: Boolean - updatedAt: Datetime -} - -""" -Defines available permissions as named bits within a bitmask, used by the RBAC system for access control +Represents an update to a `OrgMembership`. Fields that are set will be updated. """ -type OrgPermission { - """ - Position of this permission in the bitmask (1-indexed), must be unique per permission set - """ - bitnum: Int +input OrgMembershipPatch { + """References the user who holds this membership""" + actorId: UUID """ - Pre-computed bitmask with only this permission bit set, used for bitwise OR/AND operations + Aggregated capability bitmask combining profile-based and directly granted capabilities """ - bitstr: BitString! - - """Human-readable description of what this permission allows""" - description: String - id: UUID! + capabilities: BitString + createdAt: Datetime + createdBy: UUID - """Human-readable permission name (e.g. read, write, manage)""" - name: String + """References the entity (org or group) this membership belongs to""" + entityId: UUID """ - Reads and enables pagination through a set of `OrgPermissionDefaultGrant`. + Bitmask of capabilities directly granted to this member (not from profiles) """ - orgPermissionDefaultGrantsByPermissionId( - """Read all values in the set after (below) this cursor.""" - after: Cursor - - """Read all values in the set before (above) this cursor.""" - before: Cursor - - """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 - - """The method to use when ordering `OrgPermissionDefaultGrant`.""" - orderBy: [OrgPermissionDefaultGrantOrderBy!] = [PRIMARY_KEY_ASC] - - """ - A filter to be used in determining which values should be returned by the collection. - """ - where: OrgPermissionDefaultGrantFilter - ): OrgPermissionDefaultGrantConnection! + granted: BitString + id: UUID """ - Reads and enables pagination through a set of `OrgPermissionDefaultPermission`. + Computed field indicating the membership is approved, verified, not banned, and not disabled """ - orgPermissionDefaultPermissionsByPermissionId( - """Read all values in the set after (below) this cursor.""" - after: Cursor - - """Read all values in the set before (above) this cursor.""" - before: Cursor - - """Only read the first `n` values of the set.""" - first: Int + isActive: Boolean - """Only read the last `n` values of the set.""" - last: Int + """Whether the actor has admin privileges on this entity""" + isAdmin: Boolean - """ - Skip the first `n` values from our `after` cursor, an alternative to cursor - based pagination. May not be used with `last`. - """ - offset: Int + """Whether this membership has been approved by an admin""" + isApproved: Boolean - """The method to use when ordering `OrgPermissionDefaultPermission`.""" - orderBy: [OrgPermissionDefaultPermissionOrderBy!] = [PRIMARY_KEY_ASC] + """Whether this member has been banned from the entity""" + isBanned: Boolean - """ - A filter to be used in determining which values should be returned by the collection. - """ - where: OrgPermissionDefaultPermissionFilter - ): OrgPermissionDefaultPermissionConnection! -} + """Whether this membership is temporarily disabled""" + isDisabled: Boolean -"""A connection to a list of `OrgPermission` values.""" -type OrgPermissionConnection { """ - A list of edges which contains the `OrgPermission` and cursor to aid in pagination. + Whether this member is external (not a member of the parent scope). External members may have restricted capabilities. """ - edges: [OrgPermissionEdge]! - - """A list of `OrgPermission` objects.""" - nodes: [OrgPermission]! - - """Information to aid in pagination.""" - pageInfo: PageInfo! - - """The count of *all* `OrgPermission` you could get from the connection.""" - totalCount: Int! -} + isExternal: Boolean -""" -Stores the default permission bitmask assigned to new members upon joining -""" -type OrgPermissionDefault { - """References the entity these default permissions apply to""" - entityId: UUID! - id: UUID! + """Whether the actor is the owner of this entity""" + isOwner: Boolean - """Default permission bitmask applied to new members""" - permissions: BitString! + """Whether this member has read-only access (blocks mutations when true)""" + isReadOnly: Boolean + profileId: UUID + updatedAt: Datetime + updatedBy: UUID } -"""A connection to a list of `OrgPermissionDefault` values.""" -type OrgPermissionDefaultConnection { +"""Per-entity settings for the memberships module""" +type OrgMembershipSetting { """ - A list of edges which contains the `OrgPermissionDefault` and cursor to aid in pagination. + Whether descendants of this org may admit members who are not already org members (outside-collaborators toggle) """ - edges: [OrgPermissionDefaultEdge]! - - """A list of `OrgPermissionDefault` objects.""" - nodes: [OrgPermissionDefault]! - - """Information to aid in pagination.""" - pageInfo: PageInfo! + allowExternalMembers: Boolean! """ - The count of *all* `OrgPermissionDefault` you could get from the connection. + When a child entity is created, whether to auto-add existing org-level admins as child-entity admins """ - totalCount: Int! -} - -"""A `OrgPermissionDefault` edge in the connection.""" -type OrgPermissionDefaultEdge { - """A cursor for use in pagination.""" - cursor: Cursor - - """The `OrgPermissionDefault` at the end of the edge.""" - node: OrgPermissionDefault -} - -""" -A filter to be used against `OrgPermissionDefault` object types. All fields are combined with a logical ‘and.’ -""" -input OrgPermissionDefaultFilter { - """Checks for all expressions in this list.""" - and: [OrgPermissionDefaultFilter!] - - """Filter by the object’s `entityId` field.""" - entityId: UUIDFilter - - """Filter by the object’s `id` field.""" - id: UUIDFilter - - """Negates the expression.""" - not: OrgPermissionDefaultFilter - - """Checks for any expressions in this list.""" - or: [OrgPermissionDefaultFilter!] + createChildCascadeAdmins: Boolean! - """Filter by the object’s `permissions` field.""" - permissions: BitStringFilter -} + """ + When a child entity is created, whether to auto-add existing org-level members (non-admin, non-owner) as child-entity members + """ + createChildCascadeMembers: Boolean! -""" -Audit log of permission additions and removals from the defaults bitmask -""" -type OrgPermissionDefaultGrant { + """ + When a child entity is created, whether to auto-add existing org-level owners as child-entity owners + """ + createChildCascadeOwners: Boolean! createdAt: Datetime + createdBy: UUID - """Scopes this audit entry to a specific entity""" + """ + When a member is deleted, whether to cascade-remove their descendant-entity memberships + """ + deleteMemberCascadeChildren: Boolean! + + """References the entity these settings apply to""" entityId: UUID! - grantorId: UUID id: UUID! - """True to add the permission to defaults, false to remove it""" - isGrant: Boolean! + """ + Controls how profile assignment on invites is validated: strict (capability + subset check), capability_only (capability only), or subset_only (subset check only) + """ + inviteProfileAssignmentMode: String! """ - Reads a single `OrgPermission` that is related to this `OrgPermissionDefaultGrant`. + Allocation mode for sub-entity limits: pooled (shared parent cap, no per-entity budgets) or budgeted (explicit per-entity allocations, transfer enabled) """ - permission: OrgPermission + limitAllocationMode: String! - """References the permission being added to or removed from defaults""" - permissionId: UUID! + """ + 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! updatedAt: Datetime + updatedBy: UUID } -"""A connection to a list of `OrgPermissionDefaultGrant` values.""" -type OrgPermissionDefaultGrantConnection { +"""A connection to a list of `OrgMembershipSetting` values.""" +type OrgMembershipSettingConnection { """ - A list of edges which contains the `OrgPermissionDefaultGrant` and cursor to aid in pagination. + A list of edges which contains the `OrgMembershipSetting` and cursor to aid in pagination. """ - edges: [OrgPermissionDefaultGrantEdge]! + edges: [OrgMembershipSettingEdge]! - """A list of `OrgPermissionDefaultGrant` objects.""" - nodes: [OrgPermissionDefaultGrant]! + """A list of `OrgMembershipSetting` objects.""" + nodes: [OrgMembershipSetting]! """Information to aid in pagination.""" pageInfo: PageInfo! """ - The count of *all* `OrgPermissionDefaultGrant` you could get from the connection. + The count of *all* `OrgMembershipSetting` you could get from the connection. """ totalCount: Int! } -"""A `OrgPermissionDefaultGrant` edge in the connection.""" -type OrgPermissionDefaultGrantEdge { +"""A `OrgMembershipSetting` edge in the connection.""" +type OrgMembershipSettingEdge { """A cursor for use in pagination.""" cursor: Cursor - """The `OrgPermissionDefaultGrant` at the end of the edge.""" - node: OrgPermissionDefaultGrant + """The `OrgMembershipSetting` at the end of the edge.""" + node: OrgMembershipSetting } """ -A filter to be used against `OrgPermissionDefaultGrant` object types. All fields are combined with a logical ‘and.’ +A filter to be used against `OrgMembershipSetting` object types. All fields are combined with a logical ‘and.’ """ -input OrgPermissionDefaultGrantFilter { +input OrgMembershipSettingFilter { + """Filter by the object’s `allowExternalMembers` field.""" + allowExternalMembers: BooleanFilter + """Checks for all expressions in this list.""" - and: [OrgPermissionDefaultGrantFilter!] + and: [OrgMembershipSettingFilter!] + + """Filter by the object’s `createChildCascadeAdmins` field.""" + createChildCascadeAdmins: BooleanFilter + + """Filter by the object’s `createChildCascadeMembers` field.""" + createChildCascadeMembers: BooleanFilter + + """Filter by the object’s `createChildCascadeOwners` field.""" + createChildCascadeOwners: BooleanFilter """Filter by the object’s `createdAt` field.""" createdAt: DatetimeFilter + """Filter by the object’s `createdBy` field.""" + createdBy: UUIDFilter + + """Filter by the object’s `deleteMemberCascadeChildren` field.""" + deleteMemberCascadeChildren: BooleanFilter + """Filter by the object’s `entityId` field.""" entityId: UUIDFilter - """Filter by the object’s `grantorId` field.""" - grantorId: UUIDFilter - """Filter by the object’s `id` field.""" id: UUIDFilter - """Filter by the object’s `isGrant` field.""" - isGrant: BooleanFilter + """Filter by the object’s `inviteProfileAssignmentMode` field.""" + inviteProfileAssignmentMode: StringFilter + + """Filter by the object’s `limitAllocationMode` field.""" + limitAllocationMode: StringFilter """Negates the expression.""" - not: OrgPermissionDefaultGrantFilter + not: OrgMembershipSettingFilter """Checks for any expressions in this list.""" - or: [OrgPermissionDefaultGrantFilter!] - - """Filter by the object’s `permission` relation.""" - permission: OrgPermissionFilter + or: [OrgMembershipSettingFilter!] - """Filter by the object’s `permissionId` field.""" - permissionId: UUIDFilter + """Filter by the object’s `populateMemberEmail` field.""" + populateMemberEmail: BooleanFilter """Filter by the object’s `updatedAt` field.""" updatedAt: DatetimeFilter + + """Filter by the object’s `updatedBy` field.""" + updatedBy: UUIDFilter } -"""An input for mutations affecting `OrgPermissionDefaultGrant`""" -input OrgPermissionDefaultGrantInput { +"""An input for mutations affecting `OrgMembershipSetting`""" +input OrgMembershipSettingInput { + """ + Whether descendants of this org may admit members who are not already org members (outside-collaborators toggle) + """ + allowExternalMembers: 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 + + """ + When a child entity is created, whether to auto-add existing org-level owners as child-entity owners + """ + createChildCascadeOwners: Boolean createdAt: Datetime + createdBy: UUID - """Scopes this audit entry to a specific entity""" + """ + When a member is deleted, whether to cascade-remove their descendant-entity memberships + """ + deleteMemberCascadeChildren: Boolean + + """References the entity these settings apply to""" entityId: UUID! - grantorId: UUID id: UUID - """True to add the permission to defaults, false to remove it""" - isGrant: Boolean + """ + Controls how profile assignment on invites is validated: strict (capability + subset check), capability_only (capability only), or subset_only (subset check only) + """ + inviteProfileAssignmentMode: 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 - """References the permission being added to or removed from defaults""" - permissionId: UUID! + """ + 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 updatedAt: Datetime + updatedBy: UUID } -"""Methods to use when ordering `OrgPermissionDefaultGrant`.""" -enum OrgPermissionDefaultGrantOrderBy { +"""Methods to use when ordering `OrgMembershipSetting`.""" +enum OrgMembershipSettingOrderBy { + ALLOW_EXTERNAL_MEMBERS_ASC + ALLOW_EXTERNAL_MEMBERS_DESC CREATED_AT_ASC CREATED_AT_DESC + CREATED_BY_ASC + CREATED_BY_DESC + CREATE_CHILD_CASCADE_ADMINS_ASC + CREATE_CHILD_CASCADE_ADMINS_DESC + CREATE_CHILD_CASCADE_MEMBERS_ASC + CREATE_CHILD_CASCADE_MEMBERS_DESC + CREATE_CHILD_CASCADE_OWNERS_ASC + CREATE_CHILD_CASCADE_OWNERS_DESC + DELETE_MEMBER_CASCADE_CHILDREN_ASC + DELETE_MEMBER_CASCADE_CHILDREN_DESC ENTITY_ID_ASC ENTITY_ID_DESC - GRANTOR_ID_ASC - GRANTOR_ID_DESC ID_ASC ID_DESC - IS_GRANT_ASC - IS_GRANT_DESC + INVITE_PROFILE_ASSIGNMENT_MODE_ASC + INVITE_PROFILE_ASSIGNMENT_MODE_DESC + LIMIT_ALLOCATION_MODE_ASC + LIMIT_ALLOCATION_MODE_DESC NATURAL - PERMISSION_ID_ASC - PERMISSION_ID_DESC + POPULATE_MEMBER_EMAIL_ASC + POPULATE_MEMBER_EMAIL_DESC PRIMARY_KEY_ASC PRIMARY_KEY_DESC UPDATED_AT_ASC UPDATED_AT_DESC + UPDATED_BY_ASC + UPDATED_BY_DESC } """ -Represents an update to a `OrgPermissionDefaultGrant`. Fields that are set will be updated. +Represents an update to a `OrgMembershipSetting`. Fields that are set will be updated. """ -input OrgPermissionDefaultGrantPatch { - createdAt: Datetime - - """Scopes this audit entry to a specific entity""" - entityId: UUID - grantorId: UUID - id: UUID - - """True to add the permission to defaults, false to remove it""" - isGrant: Boolean +input OrgMembershipSettingPatch { + """ + Whether descendants of this org may admit members who are not already org members (outside-collaborators toggle) + """ + allowExternalMembers: Boolean - """References the permission being added to or removed from defaults""" - permissionId: UUID - updatedAt: Datetime -} + """ + When a child entity is created, whether to auto-add existing org-level admins as child-entity admins + """ + createChildCascadeAdmins: Boolean -"""An input for mutations affecting `OrgPermissionDefault`""" -input OrgPermissionDefaultInput { - """References the entity these default permissions apply to""" - entityId: UUID! - id: 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 - """Default permission bitmask applied to new members""" - permissions: BitString -} + """ + When a child entity is created, whether to auto-add existing org-level owners as child-entity owners + """ + createChildCascadeOwners: Boolean + createdAt: Datetime + createdBy: UUID -"""Methods to use when ordering `OrgPermissionDefault`.""" -enum OrgPermissionDefaultOrderBy { - ENTITY_ID_ASC - ENTITY_ID_DESC - ID_ASC - ID_DESC - NATURAL - PERMISSIONS_ASC - PERMISSIONS_DESC - PRIMARY_KEY_ASC - PRIMARY_KEY_DESC -} + """ + When a member is deleted, whether to cascade-remove their descendant-entity memberships + """ + deleteMemberCascadeChildren: Boolean -""" -Represents an update to a `OrgPermissionDefault`. Fields that are set will be updated. -""" -input OrgPermissionDefaultPatch { - """References the entity these default permissions apply to""" + """References the entity these settings apply to""" entityId: UUID id: UUID - """Default permission bitmask applied to new members""" - permissions: BitString + """ + Controls how profile assignment on invites is validated: strict (capability + subset check), capability_only (capability only), or subset_only (subset check only) + """ + inviteProfileAssignmentMode: 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 + + """ + 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 + updatedAt: Datetime + updatedBy: UUID } -""" -Join table linking permission defaults to individual permissions; recompute trigger rebuilds the defaults bitmask -""" -type OrgPermissionDefaultPermission { +"""Records of ownership transfers and grants between members""" +type OrgOwnerGrant { + """ + The member receiving or losing the ownership grant; NULL if user was deleted + """ + actorId: UUID createdAt: Datetime - """Scopes this default permission to a specific entity""" + """The entity (org or group) this ownership grant applies to""" entityId: UUID! + grantorId: UUID id: UUID! - """ - Reads a single `OrgPermission` that is related to this `OrgPermissionDefaultPermission`. - """ - permission: OrgPermission - - """References the permission included in the defaults bundle""" - permissionId: UUID! + """True to grant ownership, false to revoke ownership""" + isGrant: Boolean! updatedAt: Datetime } -"""A connection to a list of `OrgPermissionDefaultPermission` values.""" -type OrgPermissionDefaultPermissionConnection { +"""A connection to a list of `OrgOwnerGrant` values.""" +type OrgOwnerGrantConnection { """ - A list of edges which contains the `OrgPermissionDefaultPermission` and cursor to aid in pagination. + A list of edges which contains the `OrgOwnerGrant` and cursor to aid in pagination. """ - edges: [OrgPermissionDefaultPermissionEdge]! + edges: [OrgOwnerGrantEdge]! - """A list of `OrgPermissionDefaultPermission` objects.""" - nodes: [OrgPermissionDefaultPermission]! + """A list of `OrgOwnerGrant` objects.""" + nodes: [OrgOwnerGrant]! """Information to aid in pagination.""" pageInfo: PageInfo! - """ - The count of *all* `OrgPermissionDefaultPermission` you could get from the connection. - """ + """The count of *all* `OrgOwnerGrant` you could get from the connection.""" totalCount: Int! } -"""A `OrgPermissionDefaultPermission` edge in the connection.""" -type OrgPermissionDefaultPermissionEdge { +"""A `OrgOwnerGrant` edge in the connection.""" +type OrgOwnerGrantEdge { """A cursor for use in pagination.""" cursor: Cursor - """The `OrgPermissionDefaultPermission` at the end of the edge.""" - node: OrgPermissionDefaultPermission + """The `OrgOwnerGrant` at the end of the edge.""" + node: OrgOwnerGrant } """ -A filter to be used against `OrgPermissionDefaultPermission` object types. All fields are combined with a logical ‘and.’ +A filter to be used against `OrgOwnerGrant` object types. All fields are combined with a logical ‘and.’ """ -input OrgPermissionDefaultPermissionFilter { +input OrgOwnerGrantFilter { + """Filter by the object’s `actorId` field.""" + actorId: UUIDFilter + """Checks for all expressions in this list.""" - and: [OrgPermissionDefaultPermissionFilter!] + and: [OrgOwnerGrantFilter!] """Filter by the object’s `createdAt` field.""" createdAt: DatetimeFilter @@ -7940,49 +7022,58 @@ input OrgPermissionDefaultPermissionFilter { """Filter by the object’s `entityId` field.""" entityId: UUIDFilter + """Filter by the object’s `grantorId` field.""" + grantorId: UUIDFilter + """Filter by the object’s `id` field.""" id: UUIDFilter + """Filter by the object’s `isGrant` field.""" + isGrant: BooleanFilter + """Negates the expression.""" - not: OrgPermissionDefaultPermissionFilter + not: OrgOwnerGrantFilter """Checks for any expressions in this list.""" - or: [OrgPermissionDefaultPermissionFilter!] - - """Filter by the object’s `permission` relation.""" - permission: OrgPermissionFilter - - """Filter by the object’s `permissionId` field.""" - permissionId: UUIDFilter + or: [OrgOwnerGrantFilter!] """Filter by the object’s `updatedAt` field.""" updatedAt: DatetimeFilter } -"""An input for mutations affecting `OrgPermissionDefaultPermission`""" -input OrgPermissionDefaultPermissionInput { +"""An input for mutations affecting `OrgOwnerGrant`""" +input OrgOwnerGrantInput { + """ + The member receiving or losing the ownership grant; NULL if user was deleted + """ + actorId: UUID createdAt: Datetime - """Scopes this default permission to a specific entity""" + """The entity (org or group) this ownership grant applies to""" entityId: UUID! + grantorId: UUID id: UUID - """References the permission included in the defaults bundle""" - permissionId: UUID! + """True to grant ownership, false to revoke ownership""" + isGrant: Boolean updatedAt: Datetime } -"""Methods to use when ordering `OrgPermissionDefaultPermission`.""" -enum OrgPermissionDefaultPermissionOrderBy { +"""Methods to use when ordering `OrgOwnerGrant`.""" +enum OrgOwnerGrantOrderBy { + ACTOR_ID_ASC + ACTOR_ID_DESC CREATED_AT_ASC CREATED_AT_DESC ENTITY_ID_ASC ENTITY_ID_DESC + GRANTOR_ID_ASC + GRANTOR_ID_DESC ID_ASC ID_DESC + IS_GRANT_ASC + IS_GRANT_DESC NATURAL - PERMISSION_ID_ASC - PERMISSION_ID_DESC PRIMARY_KEY_ASC PRIMARY_KEY_DESC UPDATED_AT_ASC @@ -7990,161 +7081,25 @@ enum OrgPermissionDefaultPermissionOrderBy { } """ -Represents an update to a `OrgPermissionDefaultPermission`. Fields that are set will be updated. +Represents an update to a `OrgOwnerGrant`. Fields that are set will be updated. """ -input OrgPermissionDefaultPermissionPatch { +input OrgOwnerGrantPatch { + """ + The member receiving or losing the ownership grant; NULL if user was deleted + """ + actorId: UUID createdAt: Datetime - """Scopes this default permission to a specific entity""" + """The entity (org or group) this ownership grant applies to""" entityId: UUID + grantorId: UUID id: UUID - """References the permission included in the defaults bundle""" - permissionId: UUID + """True to grant ownership, false to revoke ownership""" + isGrant: Boolean updatedAt: Datetime } -"""A `OrgPermission` edge in the connection.""" -type OrgPermissionEdge { - """A cursor for use in pagination.""" - cursor: Cursor - - """The `OrgPermission` at the end of the edge.""" - node: OrgPermission -} - -""" -A filter to be used against `OrgPermission` object types. All fields are combined with a logical ‘and.’ -""" -input OrgPermissionFilter { - """Checks for all expressions in this list.""" - and: [OrgPermissionFilter!] - - """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 `id` field.""" - id: UUIDFilter - - """Filter by the object’s `name` field.""" - name: StringFilter - - """Negates the expression.""" - not: OrgPermissionFilter - - """Checks for any expressions in this list.""" - or: [OrgPermissionFilter!] - - """ - Filter by the object’s `orgPermissionDefaultGrantsByPermissionId` relation. - """ - orgPermissionDefaultGrantsByPermissionId: OrgPermissionToManyOrgPermissionDefaultGrantFilter - - """`orgPermissionDefaultGrantsByPermissionId` exist.""" - orgPermissionDefaultGrantsByPermissionIdExist: Boolean - - """ - Filter by the object’s `orgPermissionDefaultPermissionsByPermissionId` relation. - """ - orgPermissionDefaultPermissionsByPermissionId: OrgPermissionToManyOrgPermissionDefaultPermissionFilter - - """`orgPermissionDefaultPermissionsByPermissionId` exist.""" - orgPermissionDefaultPermissionsByPermissionIdExist: Boolean -} - -"""An input for mutations affecting `OrgPermission`""" -input OrgPermissionInput { - """ - 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 - id: UUID - - """Human-readable permission name (e.g. read, write, manage)""" - name: String -} - -"""Methods to use when ordering `OrgPermission`.""" -enum OrgPermissionOrderBy { - BITNUM_ASC - BITNUM_DESC - BITSTR_ASC - BITSTR_DESC - DESCRIPTION_ASC - DESCRIPTION_DESC - ID_ASC - ID_DESC - NAME_ASC - NAME_DESC - NATURAL - PRIMARY_KEY_ASC - PRIMARY_KEY_DESC -} - -""" -Represents an update to a `OrgPermission`. Fields that are set will be updated. -""" -input OrgPermissionPatch { - """ - 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 - id: UUID - - """Human-readable permission name (e.g. read, write, manage)""" - name: String -} - -""" -A filter to be used against many `OrgPermissionDefaultGrant` object types. All fields are combined with a logical ‘and.’ -""" -input OrgPermissionToManyOrgPermissionDefaultGrantFilter { - """Filters to entities where every related entity matches.""" - every: OrgPermissionDefaultGrantFilter - - """Filters to entities where no related entity matches.""" - none: OrgPermissionDefaultGrantFilter - - """Filters to entities where at least one related entity matches.""" - some: OrgPermissionDefaultGrantFilter -} - -""" -A filter to be used against many `OrgPermissionDefaultPermission` object types. All fields are combined with a logical ‘and.’ -""" -input OrgPermissionToManyOrgPermissionDefaultPermissionFilter { - """Filters to entities where every related entity matches.""" - every: OrgPermissionDefaultPermissionFilter - - """Filters to entities where no related entity matches.""" - none: OrgPermissionDefaultPermissionFilter - - """Filters to entities where at least one related entity matches.""" - some: OrgPermissionDefaultPermissionFilter -} - """Information about pagination in a connection.""" type PageInfo { """When paginating forwards, the cursor to continue.""" @@ -8227,8 +7182,10 @@ type Query { where: AppAdminGrantFilter ): AppAdminGrantConnection - """Reads and enables pagination through a set of `AppClaimedInvite`.""" - appClaimedInvites( + """ + Reads and enables pagination through a set of `AppCapabilityDefaultCapability`. + """ + appCapabilityDefaultCapabilities( """Read all values in the set after (below) this cursor.""" after: Cursor @@ -8247,17 +7204,19 @@ type Query { """ offset: Int - """The method to use when ordering `AppClaimedInvite`.""" - orderBy: [AppClaimedInviteOrderBy!] = [PRIMARY_KEY_ASC] + """The method to use when ordering `AppCapabilityDefaultCapability`.""" + orderBy: [AppCapabilityDefaultCapabilityOrderBy!] = [PRIMARY_KEY_ASC] """ A filter to be used in determining which values should be returned by the collection. """ - where: AppClaimedInviteFilter - ): AppClaimedInviteConnection + where: AppCapabilityDefaultCapabilityFilter + ): AppCapabilityDefaultCapabilityConnection - """Reads and enables pagination through a set of `AppGrant`.""" - appGrants( + """ + Reads and enables pagination through a set of `AppCapabilityDefaultGrant`. + """ + appCapabilityDefaultGrants( """Read all values in the set after (below) this cursor.""" after: Cursor @@ -8276,17 +7235,17 @@ type Query { """ offset: Int - """The method to use when ordering `AppGrant`.""" - orderBy: [AppGrantOrderBy!] = [PRIMARY_KEY_ASC] + """The method to use when ordering `AppCapabilityDefaultGrant`.""" + orderBy: [AppCapabilityDefaultGrantOrderBy!] = [PRIMARY_KEY_ASC] """ A filter to be used in determining which values should be returned by the collection. """ - where: AppGrantFilter - ): AppGrantConnection + where: AppCapabilityDefaultGrantFilter + ): AppCapabilityDefaultGrantConnection - """Reads and enables pagination through a set of `AppInvite`.""" - appInvites( + """Reads and enables pagination through a set of `AppClaimedInvite`.""" + appClaimedInvites( """Read all values in the set after (below) this cursor.""" after: Cursor @@ -8305,17 +7264,17 @@ type Query { """ offset: Int - """The method to use when ordering `AppInvite`.""" - orderBy: [AppInviteOrderBy!] = [PRIMARY_KEY_ASC] + """The method to use when ordering `AppClaimedInvite`.""" + orderBy: [AppClaimedInviteOrderBy!] = [PRIMARY_KEY_ASC] """ A filter to be used in determining which values should be returned by the collection. """ - where: AppInviteFilter - ): AppInviteConnection + where: AppClaimedInviteFilter + ): AppClaimedInviteConnection - """Reads and enables pagination through a set of `AppMembershipDefault`.""" - appMembershipDefaults( + """Reads and enables pagination through a set of `AppGrant`.""" + appGrants( """Read all values in the set after (below) this cursor.""" after: Cursor @@ -8334,17 +7293,17 @@ type Query { """ offset: Int - """The method to use when ordering `AppMembershipDefault`.""" - orderBy: [AppMembershipDefaultOrderBy!] = [PRIMARY_KEY_ASC] + """The method to use when ordering `AppGrant`.""" + orderBy: [AppGrantOrderBy!] = [PRIMARY_KEY_ASC] """ A filter to be used in determining which values should be returned by the collection. """ - where: AppMembershipDefaultFilter - ): AppMembershipDefaultConnection + where: AppGrantFilter + ): AppGrantConnection - """Reads and enables pagination through a set of `AppMembership`.""" - appMemberships( + """Reads and enables pagination through a set of `AppInvite`.""" + appInvites( """Read all values in the set after (below) this cursor.""" after: Cursor @@ -8363,17 +7322,17 @@ type Query { """ offset: Int - """The method to use when ordering `AppMembership`.""" - orderBy: [AppMembershipOrderBy!] = [PRIMARY_KEY_ASC] + """The method to use when ordering `AppInvite`.""" + orderBy: [AppInviteOrderBy!] = [PRIMARY_KEY_ASC] """ A filter to be used in determining which values should be returned by the collection. """ - where: AppMembershipFilter - ): AppMembershipConnection + where: AppInviteFilter + ): AppInviteConnection - """Reads and enables pagination through a set of `AppOwnerGrant`.""" - appOwnerGrants( + """Reads and enables pagination through a set of `AppMembershipDefault`.""" + appMembershipDefaults( """Read all values in the set after (below) this cursor.""" after: Cursor @@ -8392,19 +7351,17 @@ type Query { """ offset: Int - """The method to use when ordering `AppOwnerGrant`.""" - orderBy: [AppOwnerGrantOrderBy!] = [PRIMARY_KEY_ASC] + """The method to use when ordering `AppMembershipDefault`.""" + orderBy: [AppMembershipDefaultOrderBy!] = [PRIMARY_KEY_ASC] """ A filter to be used in determining which values should be returned by the collection. """ - where: AppOwnerGrantFilter - ): AppOwnerGrantConnection + where: AppMembershipDefaultFilter + ): AppMembershipDefaultConnection - """ - Reads and enables pagination through a set of `AppPermissionDefaultGrant`. - """ - appPermissionDefaultGrants( + """Reads and enables pagination through a set of `AppMembership`.""" + appMemberships( """Read all values in the set after (below) this cursor.""" after: Cursor @@ -8423,19 +7380,17 @@ type Query { """ offset: Int - """The method to use when ordering `AppPermissionDefaultGrant`.""" - orderBy: [AppPermissionDefaultGrantOrderBy!] = [PRIMARY_KEY_ASC] + """The method to use when ordering `AppMembership`.""" + orderBy: [AppMembershipOrderBy!] = [PRIMARY_KEY_ASC] """ A filter to be used in determining which values should be returned by the collection. """ - where: AppPermissionDefaultGrantFilter - ): AppPermissionDefaultGrantConnection + where: AppMembershipFilter + ): AppMembershipConnection - """ - Reads and enables pagination through a set of `AppPermissionDefaultPermission`. - """ - appPermissionDefaultPermissions( + """Reads and enables pagination through a set of `AppOwnerGrant`.""" + appOwnerGrants( """Read all values in the set after (below) this cursor.""" after: Cursor @@ -8454,17 +7409,17 @@ type Query { """ offset: Int - """The method to use when ordering `AppPermissionDefaultPermission`.""" - orderBy: [AppPermissionDefaultPermissionOrderBy!] = [PRIMARY_KEY_ASC] + """The method to use when ordering `AppOwnerGrant`.""" + orderBy: [AppOwnerGrantOrderBy!] = [PRIMARY_KEY_ASC] """ A filter to be used in determining which values should be returned by the collection. """ - where: AppPermissionDefaultPermissionFilter - ): AppPermissionDefaultPermissionConnection + where: AppOwnerGrantFilter + ): AppOwnerGrantConnection - """Reads and enables pagination through a set of `AppPermissionDefault`.""" - appPermissionDefaults( + """Reads and enables pagination through a set of `MembershipType`.""" + membershipTypes( """Read all values in the set after (below) this cursor.""" after: Cursor @@ -8483,17 +7438,17 @@ type Query { """ offset: Int - """The method to use when ordering `AppPermissionDefault`.""" - orderBy: [AppPermissionDefaultOrderBy!] = [PRIMARY_KEY_ASC] + """The method to use when ordering `MembershipType`.""" + orderBy: [MembershipTypeOrderBy!] = [PRIMARY_KEY_ASC] """ A filter to be used in determining which values should be returned by the collection. """ - where: AppPermissionDefaultFilter - ): AppPermissionDefaultConnection + where: MembershipTypeFilter + ): MembershipTypeConnection - """Reads and enables pagination through a set of `AppPermission`.""" - appPermissions( + """Reads and enables pagination through a set of `OrgAdminGrant`.""" + orgAdminGrants( """Read all values in the set after (below) this cursor.""" after: Cursor @@ -8512,36 +7467,19 @@ type Query { """ offset: Int - """The method to use when ordering `AppPermission`.""" - orderBy: [AppPermissionOrderBy!] = [PRIMARY_KEY_ASC] + """The method to use when ordering `OrgAdminGrant`.""" + orderBy: [OrgAdminGrantOrderBy!] = [PRIMARY_KEY_ASC] """ A filter to be used in determining which values should be returned by the collection. """ - where: AppPermissionFilter - ): AppPermissionConnection - - """Reads and enables pagination through a set of `AppPermission`.""" - appPermissionsGetByMask( - """Read all values in the set after (below) this cursor.""" - after: Cursor - - """Only read the first `n` values of the set.""" - first: Int - mask: BitString - - """ - Skip the first `n` values from our `after` cursor, an alternative to cursor - based pagination. May not be used with `last`. - """ - offset: Int - ): AppPermissionConnection - appPermissionsGetMask(ids: [UUID]): BitString - appPermissionsGetMaskByNames(names: [String]): BitString - appPermissionsGetPaddedMask(mask: BitString): BitString + where: OrgAdminGrantFilter + ): OrgAdminGrantConnection - """Reads and enables pagination through a set of `MembershipType`.""" - membershipTypes( + """ + Reads and enables pagination through a set of `OrgCapabilityDefaultCapability`. + """ + orgCapabilityDefaultCapabilities( """Read all values in the set after (below) this cursor.""" after: Cursor @@ -8560,17 +7498,19 @@ type Query { """ offset: Int - """The method to use when ordering `MembershipType`.""" - orderBy: [MembershipTypeOrderBy!] = [PRIMARY_KEY_ASC] + """The method to use when ordering `OrgCapabilityDefaultCapability`.""" + orderBy: [OrgCapabilityDefaultCapabilityOrderBy!] = [PRIMARY_KEY_ASC] """ A filter to be used in determining which values should be returned by the collection. """ - where: MembershipTypeFilter - ): MembershipTypeConnection + where: OrgCapabilityDefaultCapabilityFilter + ): OrgCapabilityDefaultCapabilityConnection - """Reads and enables pagination through a set of `OrgAdminGrant`.""" - orgAdminGrants( + """ + Reads and enables pagination through a set of `OrgCapabilityDefaultGrant`. + """ + orgCapabilityDefaultGrants( """Read all values in the set after (below) this cursor.""" after: Cursor @@ -8589,14 +7529,14 @@ type Query { """ offset: Int - """The method to use when ordering `OrgAdminGrant`.""" - orderBy: [OrgAdminGrantOrderBy!] = [PRIMARY_KEY_ASC] + """The method to use when ordering `OrgCapabilityDefaultGrant`.""" + orderBy: [OrgCapabilityDefaultGrantOrderBy!] = [PRIMARY_KEY_ASC] """ A filter to be used in determining which values should be returned by the collection. """ - where: OrgAdminGrantFilter - ): OrgAdminGrantConnection + where: OrgCapabilityDefaultGrantFilter + ): OrgCapabilityDefaultGrantConnection """Reads and enables pagination through a set of `OrgChartEdgeGrant`.""" orgChartEdgeGrants( @@ -8955,145 +7895,6 @@ type Query { """ where: OrgOwnerGrantFilter ): OrgOwnerGrantConnection - - """ - Reads and enables pagination through a set of `OrgPermissionDefaultGrant`. - """ - orgPermissionDefaultGrants( - """Read all values in the set after (below) this cursor.""" - after: Cursor - - """Read all values in the set before (above) this cursor.""" - before: Cursor - - """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 - - """The method to use when ordering `OrgPermissionDefaultGrant`.""" - orderBy: [OrgPermissionDefaultGrantOrderBy!] = [PRIMARY_KEY_ASC] - - """ - A filter to be used in determining which values should be returned by the collection. - """ - where: OrgPermissionDefaultGrantFilter - ): OrgPermissionDefaultGrantConnection - - """ - Reads and enables pagination through a set of `OrgPermissionDefaultPermission`. - """ - orgPermissionDefaultPermissions( - """Read all values in the set after (below) this cursor.""" - after: Cursor - - """Read all values in the set before (above) this cursor.""" - before: Cursor - - """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 - - """The method to use when ordering `OrgPermissionDefaultPermission`.""" - orderBy: [OrgPermissionDefaultPermissionOrderBy!] = [PRIMARY_KEY_ASC] - - """ - A filter to be used in determining which values should be returned by the collection. - """ - where: OrgPermissionDefaultPermissionFilter - ): OrgPermissionDefaultPermissionConnection - - """Reads and enables pagination through a set of `OrgPermissionDefault`.""" - orgPermissionDefaults( - """Read all values in the set after (below) this cursor.""" - after: Cursor - - """Read all values in the set before (above) this cursor.""" - before: Cursor - - """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 - - """The method to use when ordering `OrgPermissionDefault`.""" - orderBy: [OrgPermissionDefaultOrderBy!] = [PRIMARY_KEY_ASC] - - """ - A filter to be used in determining which values should be returned by the collection. - """ - where: OrgPermissionDefaultFilter - ): OrgPermissionDefaultConnection - - """Reads and enables pagination through a set of `OrgPermission`.""" - orgPermissions( - """Read all values in the set after (below) this cursor.""" - after: Cursor - - """Read all values in the set before (above) this cursor.""" - before: Cursor - - """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 - - """The method to use when ordering `OrgPermission`.""" - orderBy: [OrgPermissionOrderBy!] = [PRIMARY_KEY_ASC] - - """ - A filter to be used in determining which values should be returned by the collection. - """ - where: OrgPermissionFilter - ): OrgPermissionConnection - - """Reads and enables pagination through a set of `OrgPermission`.""" - orgPermissionsGetByMask( - """Read all values in the set after (below) this cursor.""" - after: Cursor - - """Only read the first `n` values of the set.""" - first: Int - mask: BitString - - """ - Skip the first `n` values from our `after` cursor, an alternative to cursor - based pagination. May not be used with `last`. - """ - offset: Int - ): OrgPermissionConnection - orgPermissionsGetMask(ids: [UUID]): BitString - orgPermissionsGetMaskByNames(names: [String]): BitString - orgPermissionsGetPaddedMask(mask: BitString): BitString } """ @@ -9315,22 +8116,102 @@ input UUIDFilter { """Less than or equal to the specified value.""" lessThanOrEqualTo: UUID - """Equal to the specified value, treating null like an ordinary value.""" - notDistinctFrom: UUID + """Equal to the specified value, treating null like an ordinary value.""" + notDistinctFrom: UUID + + """Not equal to the specified value.""" + notEqualTo: UUID + + """Not included in the specified list.""" + notIn: [UUID!] +} + +"""All input for the `updateAppAdminGrant` mutation.""" +input UpdateAppAdminGrantInput { + """ + An object where the defined keys will be set on the `AppAdminGrant` being updated. + """ + appAdminGrantPatch: AppAdminGrantPatch! + + """ + An arbitrary 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 update `AppAdminGrant` mutation.""" +type UpdateAppAdminGrantPayload { + """The `AppAdminGrant` that was updated by this mutation.""" + appAdminGrant: AppAdminGrant + + """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 + + """ + The 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 `updateAppCapabilityDefaultCapability` mutation.""" +input UpdateAppCapabilityDefaultCapabilityInput { + """ + An object where the defined keys will be set on the `AppCapabilityDefaultCapability` being updated. + """ + appCapabilityDefaultCapabilityPatch: AppCapabilityDefaultCapabilityPatch! + + """ + An arbitrary 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 update `AppCapabilityDefaultCapability` mutation.""" +type UpdateAppCapabilityDefaultCapabilityPayload { + """ + The `AppCapabilityDefaultCapability` that was updated by this mutation. + """ + appCapabilityDefaultCapability: AppCapabilityDefaultCapability + + """ + An edge for our `AppCapabilityDefaultCapability`. May be used by Relay 1. + """ + appCapabilityDefaultCapabilityEdge( + """The method to use when ordering `AppCapabilityDefaultCapability`.""" + orderBy: [AppCapabilityDefaultCapabilityOrderBy!]! = [PRIMARY_KEY_ASC] + ): AppCapabilityDefaultCapabilityEdge - """Not equal to the specified value.""" - notEqualTo: UUID + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String - """Not included in the specified list.""" - notIn: [UUID!] + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query } -"""All input for the `updateAppAdminGrant` mutation.""" -input UpdateAppAdminGrantInput { +"""All input for the `updateAppCapabilityDefaultGrant` mutation.""" +input UpdateAppCapabilityDefaultGrantInput { """ - 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 `AppCapabilityDefaultGrant` being updated. """ - appAdminGrantPatch: AppAdminGrantPatch! + appCapabilityDefaultGrantPatch: AppCapabilityDefaultGrantPatch! """ An arbitrary string value with no semantic meaning. Will be included in the @@ -9340,16 +8221,16 @@ input UpdateAppAdminGrantInput { id: UUID! } -"""The output of our update `AppAdminGrant` mutation.""" -type UpdateAppAdminGrantPayload { - """The `AppAdminGrant` that was updated by this mutation.""" - appAdminGrant: AppAdminGrant +"""The output of our update `AppCapabilityDefaultGrant` mutation.""" +type UpdateAppCapabilityDefaultGrantPayload { + """The `AppCapabilityDefaultGrant` that was updated by this mutation.""" + appCapabilityDefaultGrant: AppCapabilityDefaultGrant - """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 `AppCapabilityDefaultGrant`. May be used by Relay 1.""" + appCapabilityDefaultGrantEdge( + """The method to use when ordering `AppCapabilityDefaultGrant`.""" + orderBy: [AppCapabilityDefaultGrantOrderBy!]! = [PRIMARY_KEY_ASC] + ): AppCapabilityDefaultGrantEdge """ The exact same `clientMutationId` that was provided in the mutation input, @@ -9591,197 +8472,121 @@ type UpdateAppOwnerGrantPayload { query: Query } -"""All input for the `updateAppPermissionDefaultGrant` mutation.""" -input UpdateAppPermissionDefaultGrantInput { - """ - An object where the defined keys will be set on the `AppPermissionDefaultGrant` being updated. - """ - appPermissionDefaultGrantPatch: AppPermissionDefaultGrantPatch! - +"""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! -} - -"""The output of our update `AppPermissionDefaultGrant` mutation.""" -type UpdateAppPermissionDefaultGrantPayload { - """The `AppPermissionDefaultGrant` that was updated by this mutation.""" - appPermissionDefaultGrant: AppPermissionDefaultGrant - - """An edge for our `AppPermissionDefaultGrant`. May be used by Relay 1.""" - appPermissionDefaultGrantEdge( - """The method to use when ordering `AppPermissionDefaultGrant`.""" - orderBy: [AppPermissionDefaultGrantOrderBy!]! = [PRIMARY_KEY_ASC] - ): AppPermissionDefaultGrantEdge - - """ - The 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 `updateAppPermissionDefault` mutation.""" -input UpdateAppPermissionDefaultInput { """ - An object where the defined keys will be set on the `AppPermissionDefault` being updated. + Integer identifier for the membership type (1=App, 2=Organization, 3=Group) """ - appPermissionDefaultPatch: AppPermissionDefaultPatch! + id: Int! """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. + An object where the defined keys will be set on the `MembershipType` being updated. """ - clientMutationId: String - id: UUID! + membershipTypePatch: MembershipTypePatch! } -"""The output of our update `AppPermissionDefault` mutation.""" -type UpdateAppPermissionDefaultPayload { - """The `AppPermissionDefault` that was updated by this mutation.""" - appPermissionDefault: AppPermissionDefault - - """An edge for our `AppPermissionDefault`. May be used by Relay 1.""" - appPermissionDefaultEdge( - """The method to use when ordering `AppPermissionDefault`.""" - orderBy: [AppPermissionDefaultOrderBy!]! = [PRIMARY_KEY_ASC] - ): AppPermissionDefaultEdge - +"""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 + + """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 + """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query } -"""All input for the `updateAppPermissionDefaultPermission` mutation.""" -input UpdateAppPermissionDefaultPermissionInput { - """ - An object where the defined keys will be set on the `AppPermissionDefaultPermission` being updated. - """ - appPermissionDefaultPermissionPatch: AppPermissionDefaultPermissionPatch! - +"""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! -} -"""The output of our update `AppPermissionDefaultPermission` mutation.""" -type UpdateAppPermissionDefaultPermissionPayload { """ - The `AppPermissionDefaultPermission` that was updated by this mutation. - """ - appPermissionDefaultPermission: AppPermissionDefaultPermission - - """ - An edge for our `AppPermissionDefaultPermission`. May be used by Relay 1. + An object where the defined keys will be set on the `OrgAdminGrant` being updated. """ - appPermissionDefaultPermissionEdge( - """The method to use when ordering `AppPermissionDefaultPermission`.""" - orderBy: [AppPermissionDefaultPermissionOrderBy!]! = [PRIMARY_KEY_ASC] - ): AppPermissionDefaultPermissionEdge + orgAdminGrantPatch: OrgAdminGrantPatch! +} +"""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 + + """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 + """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query } -"""All input for the `updateAppPermission` mutation.""" -input UpdateAppPermissionInput { - """ - An object where the defined keys will be set on the `AppPermission` being updated. - """ - appPermissionPatch: AppPermissionPatch! - +"""All input for the `updateOrgCapabilityDefaultCapability` mutation.""" +input UpdateOrgCapabilityDefaultCapabilityInput { """ An arbitrary 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 update `AppPermission` mutation.""" -type UpdateAppPermissionPayload { - """The `AppPermission` that was updated by this mutation.""" - appPermission: AppPermission - - """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 - - """ - The 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. + An object where the defined keys will be set on the `OrgCapabilityDefaultCapability` being updated. """ - query: Query + orgCapabilityDefaultCapabilityPatch: OrgCapabilityDefaultCapabilityPatch! } -"""All input for the `updateMembershipType` mutation.""" -input UpdateMembershipTypeInput { +"""The output of our update `OrgCapabilityDefaultCapability` mutation.""" +type UpdateOrgCapabilityDefaultCapabilityPayload { """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. """ 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. + The `OrgCapabilityDefaultCapability` that was updated by this mutation. """ - membershipTypePatch: MembershipTypePatch! -} + orgCapabilityDefaultCapability: OrgCapabilityDefaultCapability -"""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. + An edge for our `OrgCapabilityDefaultCapability`. May be used by Relay 1. """ - clientMutationId: String - - """The `MembershipType` that was updated by this mutation.""" - membershipType: MembershipType - - """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 + orgCapabilityDefaultCapabilityEdge( + """The method to use when ordering `OrgCapabilityDefaultCapability`.""" + orderBy: [OrgCapabilityDefaultCapabilityOrderBy!]! = [PRIMARY_KEY_ASC] + ): OrgCapabilityDefaultCapabilityEdge """ Our root query field type. Allows us to run any query from our mutation payload. @@ -9789,8 +8594,8 @@ type UpdateMembershipTypePayload { query: Query } -"""All input for the `updateOrgAdminGrant` mutation.""" -input UpdateOrgAdminGrantInput { +"""All input for the `updateOrgCapabilityDefaultGrant` mutation.""" +input UpdateOrgCapabilityDefaultGrantInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. @@ -9799,27 +8604,27 @@ input UpdateOrgAdminGrantInput { id: UUID! """ - An object where the defined keys will be set on the `OrgAdminGrant` being updated. + An object where the defined keys will be set on the `OrgCapabilityDefaultGrant` being updated. """ - orgAdminGrantPatch: OrgAdminGrantPatch! + orgCapabilityDefaultGrantPatch: OrgCapabilityDefaultGrantPatch! } -"""The output of our update `OrgAdminGrant` mutation.""" -type UpdateOrgAdminGrantPayload { +"""The output of our update `OrgCapabilityDefaultGrant` mutation.""" +type UpdateOrgCapabilityDefaultGrantPayload { """ The exact 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 + """The `OrgCapabilityDefaultGrant` that was updated by this mutation.""" + orgCapabilityDefaultGrant: OrgCapabilityDefaultGrant - """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 `OrgCapabilityDefaultGrant`. May be used by Relay 1.""" + orgCapabilityDefaultGrantEdge( + """The method to use when ordering `OrgCapabilityDefaultGrant`.""" + orderBy: [OrgCapabilityDefaultGrantOrderBy!]! = [PRIMARY_KEY_ASC] + ): OrgCapabilityDefaultGrantEdge """ Our root query field type. Allows us to run any query from our mutation payload. @@ -10245,161 +9050,5 @@ type UpdateOrgOwnerGrantPayload { query: Query } -"""All input for the `updateOrgPermissionDefaultGrant` mutation.""" -input UpdateOrgPermissionDefaultGrantInput { - """ - An arbitrary 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 `OrgPermissionDefaultGrant` being updated. - """ - orgPermissionDefaultGrantPatch: OrgPermissionDefaultGrantPatch! -} - -"""The output of our update `OrgPermissionDefaultGrant` mutation.""" -type UpdateOrgPermissionDefaultGrantPayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `OrgPermissionDefaultGrant` that was updated by this mutation.""" - orgPermissionDefaultGrant: OrgPermissionDefaultGrant - - """An edge for our `OrgPermissionDefaultGrant`. May be used by Relay 1.""" - orgPermissionDefaultGrantEdge( - """The method to use when ordering `OrgPermissionDefaultGrant`.""" - orderBy: [OrgPermissionDefaultGrantOrderBy!]! = [PRIMARY_KEY_ASC] - ): OrgPermissionDefaultGrantEdge - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query -} - -"""All input for the `updateOrgPermissionDefault` mutation.""" -input UpdateOrgPermissionDefaultInput { - """ - An arbitrary 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 `OrgPermissionDefault` being updated. - """ - orgPermissionDefaultPatch: OrgPermissionDefaultPatch! -} - -"""The output of our update `OrgPermissionDefault` mutation.""" -type UpdateOrgPermissionDefaultPayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `OrgPermissionDefault` that was updated by this mutation.""" - orgPermissionDefault: OrgPermissionDefault - - """An edge for our `OrgPermissionDefault`. May be used by Relay 1.""" - orgPermissionDefaultEdge( - """The method to use when ordering `OrgPermissionDefault`.""" - orderBy: [OrgPermissionDefaultOrderBy!]! = [PRIMARY_KEY_ASC] - ): OrgPermissionDefaultEdge - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query -} - -"""All input for the `updateOrgPermissionDefaultPermission` mutation.""" -input UpdateOrgPermissionDefaultPermissionInput { - """ - An arbitrary 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 `OrgPermissionDefaultPermission` being updated. - """ - orgPermissionDefaultPermissionPatch: OrgPermissionDefaultPermissionPatch! -} - -"""The output of our update `OrgPermissionDefaultPermission` mutation.""" -type UpdateOrgPermissionDefaultPermissionPayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """ - The `OrgPermissionDefaultPermission` that was updated by this mutation. - """ - orgPermissionDefaultPermission: OrgPermissionDefaultPermission - - """ - An edge for our `OrgPermissionDefaultPermission`. May be used by Relay 1. - """ - orgPermissionDefaultPermissionEdge( - """The method to use when ordering `OrgPermissionDefaultPermission`.""" - orderBy: [OrgPermissionDefaultPermissionOrderBy!]! = [PRIMARY_KEY_ASC] - ): OrgPermissionDefaultPermissionEdge - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query -} - -"""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! -} - -"""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 - - """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 - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query -} - """The `Upload` scalar type represents a file upload.""" scalar Upload \ No newline at end of file diff --git a/sdk/constructive-sdk/schemas/api.graphql b/sdk/constructive-sdk/schemas/api.graphql index 1b2693f715..a42171ad97 100644 --- a/sdk/constructive-sdk/schemas/api.graphql +++ b/sdk/constructive-sdk/schemas/api.graphql @@ -23,6 +23,122 @@ type AcceptDatabaseTransferPayload { result: Boolean } +""" +API surfaces exposed by this scope; publication makes a surface bindable from other scopes +""" +type Api { + """Anonymous role the API executes as""" + anonRole: String + + """Reads and enables pagination through a set of `ApiSchema`.""" + apiSchemas( + """Read all values in the set after (below) this cursor.""" + after: Cursor + + """Read all values in the set before (above) this cursor.""" + before: Cursor + + """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 + + """The method to use when ordering `ApiSchema`.""" + orderBy: [ApiSchemaOrderBy!] = [PRIMARY_KEY_ASC] + + """ + A filter to be used in determining which values should be returned by the collection. + """ + where: ApiSchemaFilter + ): ApiSchemaConnection! + + """Reads a single `ApiSetting` that is related to this `Api`.""" + apiSetting: ApiSetting + + """Module-specific configuration for this API surface""" + config: JSON + + """Reads and enables pagination through a set of `CorsSetting`.""" + corsSettings( + """Read all values in the set after (below) this cursor.""" + after: Cursor + + """Read all values in the set before (above) this cursor.""" + before: Cursor + + """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 + + """The method to use when ordering `CorsSetting`.""" + orderBy: [CorsSettingOrderBy!] = [PRIMARY_KEY_ASC] + + """ + A filter to be used in determining which values should be returned by the collection. + """ + where: CorsSettingFilter + ): CorsSettingConnection! + createdAt: Datetime + + """Database that owns this resource (database-scoped isolation)""" + databaseId: UUID! + + """Database this API surface serves""" + dbname: String + id: UUID! + + """Whether other scopes may see and route to this API surface""" + isPublished: Boolean! + + """Owner-local API surface name""" + name: String! + + """Authenticated role the API executes as""" + roleName: String + updatedAt: Datetime +} + +"""A connection to a list of `Api` values.""" +type ApiConnection { + """ + A list of edges which contains the `Api` and cursor to aid in pagination. + """ + edges: [ApiEdge]! + + """A list of `Api` objects.""" + nodes: [Api]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! + + """The count of *all* `Api` you could get from the connection.""" + totalCount: Int! +} + +"""A `Api` edge in the connection.""" +type ApiEdge { + """A cursor for use in pagination.""" + cursor: Cursor + + """The `Api` at the end of the edge.""" + node: Api +} + enum ApiExposureLevel { EXPOSABLE INTERNAL_ONLY @@ -71,10 +187,153 @@ input ApiExposureLevelFilter { notIn: [ApiExposureLevel!] } +""" +A filter to be used against `Api` object types. All fields are combined with a logical ‘and.’ +""" +input ApiFilter { + """Checks for all expressions in this list.""" + and: [ApiFilter!] + + """Filter by the object’s `anonRole` field.""" + anonRole: StringFilter + + """Filter by the object’s `apiSchemas` relation.""" + apiSchemas: ApiToManyApiSchemaFilter + + """`apiSchemas` exist.""" + apiSchemasExist: Boolean + + """Filter by the object’s `apiSetting` relation.""" + apiSetting: ApiSettingFilter + + """A related `apiSetting` exists.""" + apiSettingExists: Boolean + + """Filter by the object’s `config` field.""" + config: JSONFilter + + """Filter by the object’s `corsSettings` relation.""" + corsSettings: ApiToManyCorsSettingFilter + + """`corsSettings` exist.""" + corsSettingsExist: Boolean + + """Filter by the object’s `createdAt` field.""" + createdAt: DatetimeFilter + + """Filter by the object’s `databaseId` field.""" + databaseId: UUIDFilter + + """Filter by the object’s `dbname` field.""" + dbname: StringFilter + + """Filter by the object’s `id` field.""" + id: UUIDFilter + + """Filter by the object’s `isPublished` field.""" + isPublished: BooleanFilter + + """Filter by the object’s `name` field.""" + name: StringFilter + + """Negates the expression.""" + not: ApiFilter + + """Checks for any expressions in this list.""" + or: [ApiFilter!] + + """Filter by the object’s `roleName` field.""" + roleName: StringFilter + + """Filter by the object’s `updatedAt` field.""" + updatedAt: DatetimeFilter +} + +"""An input for mutations affecting `Api`""" +input ApiInput { + """Anonymous role the API executes as""" + anonRole: String + + """Module-specific configuration for this API surface""" + config: JSON + createdAt: Datetime + + """Database that owns this resource (database-scoped isolation)""" + databaseId: UUID! + + """Database this API surface serves""" + dbname: String + id: UUID + + """Whether other scopes may see and route to this API surface""" + isPublished: Boolean + + """Owner-local API surface name""" + name: String! + + """Authenticated role the API executes as""" + roleName: String + updatedAt: Datetime +} + +"""Methods to use when ordering `Api`.""" +enum ApiOrderBy { + ANON_ROLE_ASC + ANON_ROLE_DESC + CONFIG_ASC + CONFIG_DESC + CREATED_AT_ASC + CREATED_AT_DESC + DATABASE_ID_ASC + DATABASE_ID_DESC + DBNAME_ASC + DBNAME_DESC + ID_ASC + ID_DESC + IS_PUBLISHED_ASC + IS_PUBLISHED_DESC + NAME_ASC + NAME_DESC + NATURAL + PRIMARY_KEY_ASC + PRIMARY_KEY_DESC + ROLE_NAME_ASC + ROLE_NAME_DESC + UPDATED_AT_ASC + UPDATED_AT_DESC +} + +"""Represents an update to a `Api`. Fields that are set will be updated.""" +input ApiPatch { + """Anonymous role the API executes as""" + anonRole: String + + """Module-specific configuration for this API surface""" + config: JSON + createdAt: Datetime + + """Database that owns this resource (database-scoped isolation)""" + databaseId: UUID + + """Database this API surface serves""" + dbname: String + id: UUID + + """Whether other scopes may see and route to this API surface""" + isPublished: Boolean + + """Owner-local API surface name""" + name: String + + """Authenticated role the API executes as""" + roleName: String + updatedAt: Datetime +} + """Join table linking API surfaces to the metaschema schemas they expose""" type ApiSchema { - """Reads a single `Apis` that is related to this `ApiSchema`.""" - api: Apis + """Reads a single `Api` that is related to this `ApiSchema`.""" + api: Api """API surface that exposes this schema""" apiId: UUID! @@ -126,7 +385,7 @@ input ApiSchemaFilter { and: [ApiSchemaFilter!] """Filter by the object’s `api` relation.""" - api: ApisFilter + api: ApiFilter """Filter by the object’s `apiId` field.""" apiId: UUIDFilter @@ -211,8 +470,8 @@ input ApiSchemaPatch { Per-API feature flag overrides; NULL columns inherit from database_settings """ type ApiSetting { - """Reads a single `Apis` that is related to this `ApiSetting`.""" - api: Apis + """Reads a single `Api` that is related to this `ApiSetting`.""" + api: Api """API surface these settings override for""" apiId: UUID! @@ -328,7 +587,7 @@ input ApiSettingFilter { and: [ApiSettingFilter!] """Filter by the object’s `api` relation.""" - api: ApisFilter + api: ApiFilter """Filter by the object’s `apiId` field.""" apiId: UUIDFilter @@ -605,269 +864,10 @@ input ApiSettingPatch { updatedAt: Datetime } -""" -API surfaces exposed by this scope; publication makes a surface bindable from other scopes -""" -type Apis { - """Anonymous role the API executes as""" - anonRole: String - - """Reads and enables pagination through a set of `ApiSchema`.""" - apiSchemasByApiId( - """Read all values in the set after (below) this cursor.""" - after: Cursor - - """Read all values in the set before (above) this cursor.""" - before: Cursor - - """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 - - """The method to use when ordering `ApiSchema`.""" - orderBy: [ApiSchemaOrderBy!] = [PRIMARY_KEY_ASC] - - """ - A filter to be used in determining which values should be returned by the collection. - """ - where: ApiSchemaFilter - ): ApiSchemaConnection! - - """Reads a single `ApiSetting` that is related to this `Apis`.""" - apiSettingByApiId: ApiSetting - - """Module-specific configuration for this API surface""" - config: JSON - - """Reads and enables pagination through a set of `CorsSetting`.""" - corsSettingsByApiId( - """Read all values in the set after (below) this cursor.""" - after: Cursor - - """Read all values in the set before (above) this cursor.""" - before: Cursor - - """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 - - """The method to use when ordering `CorsSetting`.""" - orderBy: [CorsSettingOrderBy!] = [PRIMARY_KEY_ASC] - - """ - A filter to be used in determining which values should be returned by the collection. - """ - where: CorsSettingFilter - ): CorsSettingConnection! - createdAt: Datetime - - """Database that owns this resource (database-scoped isolation)""" - databaseId: UUID! - - """Database this API surface serves""" - dbname: String - id: UUID! - - """Whether other scopes may see and route to this API surface""" - isPublished: Boolean! - - """Owner-local API surface name""" - name: String! - - """Authenticated role the API executes as""" - roleName: String - updatedAt: Datetime -} - -"""A connection to a list of `Apis` values.""" -type ApisConnection { - """ - A list of edges which contains the `Apis` and cursor to aid in pagination. - """ - edges: [ApisEdge]! - - """A list of `Apis` objects.""" - nodes: [Apis]! - - """Information to aid in pagination.""" - pageInfo: PageInfo! - - """The count of *all* `Apis` you could get from the connection.""" - totalCount: Int! -} - -"""A `Apis` edge in the connection.""" -type ApisEdge { - """A cursor for use in pagination.""" - cursor: Cursor - - """The `Apis` at the end of the edge.""" - node: Apis -} - -""" -A filter to be used against `Apis` object types. All fields are combined with a logical ‘and.’ -""" -input ApisFilter { - """Checks for all expressions in this list.""" - and: [ApisFilter!] - - """Filter by the object’s `anonRole` field.""" - anonRole: StringFilter - - """Filter by the object’s `apiSchemasByApiId` relation.""" - apiSchemasByApiId: ApisToManyApiSchemaFilter - - """`apiSchemasByApiId` exist.""" - apiSchemasByApiIdExist: Boolean - - """Filter by the object’s `apiSettingByApiId` relation.""" - apiSettingByApiId: ApiSettingFilter - - """A related `apiSettingByApiId` exists.""" - apiSettingByApiIdExists: Boolean - - """Filter by the object’s `config` field.""" - config: JSONFilter - - """Filter by the object’s `corsSettingsByApiId` relation.""" - corsSettingsByApiId: ApisToManyCorsSettingFilter - - """`corsSettingsByApiId` exist.""" - corsSettingsByApiIdExist: Boolean - - """Filter by the object’s `createdAt` field.""" - createdAt: DatetimeFilter - - """Filter by the object’s `databaseId` field.""" - databaseId: UUIDFilter - - """Filter by the object’s `dbname` field.""" - dbname: StringFilter - - """Filter by the object’s `id` field.""" - id: UUIDFilter - - """Filter by the object’s `isPublished` field.""" - isPublished: BooleanFilter - - """Filter by the object’s `name` field.""" - name: StringFilter - - """Negates the expression.""" - not: ApisFilter - - """Checks for any expressions in this list.""" - or: [ApisFilter!] - - """Filter by the object’s `roleName` field.""" - roleName: StringFilter - - """Filter by the object’s `updatedAt` field.""" - updatedAt: DatetimeFilter -} - -"""An input for mutations affecting `Apis`""" -input ApisInput { - """Anonymous role the API executes as""" - anonRole: String - - """Module-specific configuration for this API surface""" - config: JSON - createdAt: Datetime - - """Database that owns this resource (database-scoped isolation)""" - databaseId: UUID! - - """Database this API surface serves""" - dbname: String - id: UUID - - """Whether other scopes may see and route to this API surface""" - isPublished: Boolean - - """Owner-local API surface name""" - name: String! - - """Authenticated role the API executes as""" - roleName: String - updatedAt: Datetime -} - -"""Methods to use when ordering `Apis`.""" -enum ApisOrderBy { - ANON_ROLE_ASC - ANON_ROLE_DESC - CONFIG_ASC - CONFIG_DESC - CREATED_AT_ASC - CREATED_AT_DESC - DATABASE_ID_ASC - DATABASE_ID_DESC - DBNAME_ASC - DBNAME_DESC - ID_ASC - ID_DESC - IS_PUBLISHED_ASC - IS_PUBLISHED_DESC - NAME_ASC - NAME_DESC - NATURAL - PRIMARY_KEY_ASC - PRIMARY_KEY_DESC - ROLE_NAME_ASC - ROLE_NAME_DESC - UPDATED_AT_ASC - UPDATED_AT_DESC -} - -"""Represents an update to a `Apis`. Fields that are set will be updated.""" -input ApisPatch { - """Anonymous role the API executes as""" - anonRole: String - - """Module-specific configuration for this API surface""" - config: JSON - createdAt: Datetime - - """Database that owns this resource (database-scoped isolation)""" - databaseId: UUID - - """Database this API surface serves""" - dbname: String - id: UUID - - """Whether other scopes may see and route to this API surface""" - isPublished: Boolean - - """Owner-local API surface name""" - name: String - - """Authenticated role the API executes as""" - roleName: String - updatedAt: Datetime -} - """ A filter to be used against many `ApiSchema` object types. All fields are combined with a logical ‘and.’ """ -input ApisToManyApiSchemaFilter { +input ApiToManyApiSchemaFilter { """Filters to entities where every related entity matches.""" every: ApiSchemaFilter @@ -881,7 +881,7 @@ input ApisToManyApiSchemaFilter { """ A filter to be used against many `CorsSetting` object types. All fields are combined with a logical ‘and.’ """ -input ApisToManyCorsSettingFilter { +input ApiToManyCorsSettingFilter { """Filters to entities where every related entity matches.""" every: CorsSettingFilter @@ -1568,8 +1568,8 @@ type CorsSetting { """Array of allowed CORS origins (e.g. https://example.com)""" allowedOrigins: [String]! - """Reads a single `Apis` that is related to this `CorsSetting`.""" - api: Apis + """Reads a single `Api` that is related to this `CorsSetting`.""" + api: Api """ Optional API surface for per-API override; NULL means scope-wide default @@ -1620,7 +1620,7 @@ input CorsSettingFilter { and: [CorsSettingFilter!] """Filter by the object’s `api` relation.""" - api: ApisFilter + api: ApiFilter """A related `api` exists.""" apiExists: Boolean @@ -1702,6 +1702,41 @@ input CorsSettingPatch { updatedAt: Datetime } +"""All input for the create `Api` mutation.""" +input CreateApiInput { + """The `Api` to be created by this mutation.""" + api: ApiInput! + + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String +} + +"""The output of our create `Api` mutation.""" +type CreateApiPayload { + """The `Api` that was created by this mutation.""" + api: Api + + """An edge for our `Api`. May be used by Relay 1.""" + apiEdge( + """The method to use when ordering `Api`.""" + orderBy: [ApiOrderBy!]! = [PRIMARY_KEY_ASC] + ): ApiEdge + + """ + The 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 create `ApiSchema` mutation.""" input CreateApiSchemaInput { """The `ApiSchema` to be created by this mutation.""" @@ -1772,41 +1807,6 @@ type CreateApiSettingPayload { query: Query } -"""All input for the create `Apis` mutation.""" -input CreateApisInput { - """The `Apis` to be created by this mutation.""" - apis: ApisInput! - - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String -} - -"""The output of our create `Apis` mutation.""" -type CreateApisPayload { - """The `Apis` that was created by this mutation.""" - apis: Apis - - """An edge for our `Apis`. May be used by Relay 1.""" - apisEdge( - """The method to use when ordering `Apis`.""" - orderBy: [ApisOrderBy!]! = [PRIMARY_KEY_ASC] - ): ApisEdge - - """ - The 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 create `CheckConstraint` mutation.""" input CreateCheckConstraintInput { """The `CheckConstraint` to be created by this mutation.""" @@ -2227,6 +2227,111 @@ type CreateDomainVerificationPayload { query: Query } +"""All input for the create `EmailIdentity` mutation.""" +input CreateEmailIdentityInput { + """ + An arbitrary 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 `EmailIdentity` to be created by this mutation.""" + emailIdentity: EmailIdentityInput! +} + +"""The output of our create `EmailIdentity` mutation.""" +type CreateEmailIdentityPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `EmailIdentity` that was created by this mutation.""" + emailIdentity: EmailIdentity + + """An edge for our `EmailIdentity`. May be used by Relay 1.""" + emailIdentityEdge( + """The method to use when ordering `EmailIdentity`.""" + orderBy: [EmailIdentityOrderBy!]! = [PRIMARY_KEY_ASC] + ): EmailIdentityEdge + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query +} + +"""All input for the create `EmailProviderAccount` mutation.""" +input CreateEmailProviderAccountInput { + """ + An arbitrary 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 `EmailProviderAccount` to be created by this mutation.""" + emailProviderAccount: EmailProviderAccountInput! +} + +"""The output of our create `EmailProviderAccount` mutation.""" +type CreateEmailProviderAccountPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `EmailProviderAccount` that was created by this mutation.""" + emailProviderAccount: EmailProviderAccount + + """An edge for our `EmailProviderAccount`. May be used by Relay 1.""" + emailProviderAccountEdge( + """The method to use when ordering `EmailProviderAccount`.""" + orderBy: [EmailProviderAccountOrderBy!]! = [PRIMARY_KEY_ASC] + ): EmailProviderAccountEdge + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query +} + +"""All input for the create `EmailSiteIdentity` mutation.""" +input CreateEmailSiteIdentityInput { + """ + An arbitrary 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 `EmailSiteIdentity` to be created by this mutation.""" + emailSiteIdentity: EmailSiteIdentityInput! +} + +"""The output of our create `EmailSiteIdentity` mutation.""" +type CreateEmailSiteIdentityPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `EmailSiteIdentity` that was created by this mutation.""" + emailSiteIdentity: EmailSiteIdentity + + """An edge for our `EmailSiteIdentity`. May be used by Relay 1.""" + emailSiteIdentityEdge( + """The method to use when ordering `EmailSiteIdentity`.""" + orderBy: [EmailSiteIdentityOrderBy!]! = [PRIMARY_KEY_ASC] + ): EmailSiteIdentityEdge + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query +} + """All input for the create `EmbeddingChunk` mutation.""" input CreateEmbeddingChunkInput { """ @@ -2789,6 +2894,41 @@ type CreatePartitionPayload { query: Query } +"""All input for the create `PlatformApi` mutation.""" +input CreatePlatformApiInput { + """ + An arbitrary 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 `PlatformApi` to be created by this mutation.""" + platformApi: PlatformApiInput! +} + +"""The output of our create `PlatformApi` mutation.""" +type CreatePlatformApiPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `PlatformApi` that was created by this mutation.""" + platformApi: PlatformApi + + """An edge for our `PlatformApi`. May be used by Relay 1.""" + platformApiEdge( + """The method to use when ordering `PlatformApi`.""" + orderBy: [PlatformApiOrderBy!]! = [PRIMARY_KEY_ASC] + ): PlatformApiEdge + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query +} + """All input for the create `PlatformApiSchema` mutation.""" input CreatePlatformApiSchemaInput { """ @@ -2859,41 +2999,6 @@ type CreatePlatformApiSettingPayload { query: Query } -"""All input for the create `PlatformApis` mutation.""" -input CreatePlatformApisInput { - """ - An arbitrary 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 `PlatformApis` to be created by this mutation.""" - platformApis: PlatformApisInput! -} - -"""The output of our create `PlatformApis` mutation.""" -type CreatePlatformApisPayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `PlatformApis` that was created by this mutation.""" - platformApis: PlatformApis - - """An edge for our `PlatformApis`. May be used by Relay 1.""" - platformApisEdge( - """The method to use when ordering `PlatformApis`.""" - orderBy: [PlatformApisOrderBy!]! = [PRIMARY_KEY_ASC] - ): PlatformApisEdge - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query -} - """All input for the create `PlatformCorsSetting` mutation.""" input CreatePlatformCorsSettingInput { """ @@ -3034,6 +3139,113 @@ type CreatePlatformDomainVerificationPayload { query: Query } +"""All input for the create `PlatformEmailIdentity` mutation.""" +input CreatePlatformEmailIdentityInput { + """ + An arbitrary 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 `PlatformEmailIdentity` to be created by this mutation.""" + platformEmailIdentity: PlatformEmailIdentityInput! +} + +"""The output of our create `PlatformEmailIdentity` mutation.""" +type CreatePlatformEmailIdentityPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `PlatformEmailIdentity` that was created by this mutation.""" + platformEmailIdentity: PlatformEmailIdentity + + """An edge for our `PlatformEmailIdentity`. May be used by Relay 1.""" + platformEmailIdentityEdge( + """The method to use when ordering `PlatformEmailIdentity`.""" + orderBy: [PlatformEmailIdentityOrderBy!]! = [PRIMARY_KEY_ASC] + ): PlatformEmailIdentityEdge + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query +} + +"""All input for the create `PlatformEmailProviderAccount` mutation.""" +input CreatePlatformEmailProviderAccountInput { + """ + An arbitrary 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 `PlatformEmailProviderAccount` to be created by this mutation.""" + platformEmailProviderAccount: PlatformEmailProviderAccountInput! +} + +"""The output of our create `PlatformEmailProviderAccount` mutation.""" +type CreatePlatformEmailProviderAccountPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `PlatformEmailProviderAccount` that was created by this mutation.""" + platformEmailProviderAccount: PlatformEmailProviderAccount + + """ + An edge for our `PlatformEmailProviderAccount`. May be used by Relay 1. + """ + platformEmailProviderAccountEdge( + """The method to use when ordering `PlatformEmailProviderAccount`.""" + orderBy: [PlatformEmailProviderAccountOrderBy!]! = [PRIMARY_KEY_ASC] + ): PlatformEmailProviderAccountEdge + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query +} + +"""All input for the create `PlatformEmailSiteIdentity` mutation.""" +input CreatePlatformEmailSiteIdentityInput { + """ + An arbitrary 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 `PlatformEmailSiteIdentity` to be created by this mutation.""" + platformEmailSiteIdentity: PlatformEmailSiteIdentityInput! +} + +"""The output of our create `PlatformEmailSiteIdentity` mutation.""" +type CreatePlatformEmailSiteIdentityPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `PlatformEmailSiteIdentity` that was created by this mutation.""" + platformEmailSiteIdentity: PlatformEmailSiteIdentity + + """An edge for our `PlatformEmailSiteIdentity`. May be used by Relay 1.""" + platformEmailSiteIdentityEdge( + """The method to use when ordering `PlatformEmailSiteIdentity`.""" + orderBy: [PlatformEmailSiteIdentityOrderBy!]! = [PRIMARY_KEY_ASC] + ): PlatformEmailSiteIdentityEdge + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query +} + """All input for the create `PlatformManagedDomain` mutation.""" input CreatePlatformManagedDomainInput { """ @@ -5795,7 +6007,7 @@ type DatabaseProvisionModule { id: UUID! """ - JSONB array of modules to install. Each element is either a string ("users_module") or a [name, options] tuple (["permissions_module", {"scope": "app"}]) + JSONB array of modules to install. Each element is either a string ("users_module") or a [name, options] tuple (["capabilities_module", {"scope": "app"}]) """ modules: JSON! @@ -7016,8 +7228,8 @@ input DefaultPrivilegePatch { schemaId: UUID } -"""All input for the `deleteApiSchema` mutation.""" -input DeleteApiSchemaInput { +"""All input for the `deleteApi` mutation.""" +input DeleteApiInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. @@ -7026,16 +7238,16 @@ input DeleteApiSchemaInput { id: UUID! } -"""The output of our delete `ApiSchema` mutation.""" -type DeleteApiSchemaPayload { - """The `ApiSchema` that was deleted by this mutation.""" - apiSchema: ApiSchema +"""The output of our delete `Api` mutation.""" +type DeleteApiPayload { + """The `Api` that was deleted by this mutation.""" + api: Api - """An edge for our `ApiSchema`. May be used by Relay 1.""" - apiSchemaEdge( - """The method to use when ordering `ApiSchema`.""" - orderBy: [ApiSchemaOrderBy!]! = [PRIMARY_KEY_ASC] - ): ApiSchemaEdge + """An edge for our `Api`. May be used by Relay 1.""" + apiEdge( + """The method to use when ordering `Api`.""" + orderBy: [ApiOrderBy!]! = [PRIMARY_KEY_ASC] + ): ApiEdge """ The exact same `clientMutationId` that was provided in the mutation input, @@ -7049,8 +7261,8 @@ type DeleteApiSchemaPayload { query: Query } -"""All input for the `deleteApiSetting` mutation.""" -input DeleteApiSettingInput { +"""All input for the `deleteApiSchema` mutation.""" +input DeleteApiSchemaInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. @@ -7059,16 +7271,16 @@ input DeleteApiSettingInput { id: UUID! } -"""The output of our delete `ApiSetting` mutation.""" -type DeleteApiSettingPayload { - """The `ApiSetting` that was deleted by this mutation.""" - apiSetting: ApiSetting +"""The output of our delete `ApiSchema` mutation.""" +type DeleteApiSchemaPayload { + """The `ApiSchema` that was deleted by this mutation.""" + apiSchema: ApiSchema - """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 `ApiSchema`. May be used by Relay 1.""" + apiSchemaEdge( + """The method to use when ordering `ApiSchema`.""" + orderBy: [ApiSchemaOrderBy!]! = [PRIMARY_KEY_ASC] + ): ApiSchemaEdge """ The exact same `clientMutationId` that was provided in the mutation input, @@ -7082,8 +7294,8 @@ type DeleteApiSettingPayload { query: Query } -"""All input for the `deleteApis` mutation.""" -input DeleteApisInput { +"""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. @@ -7092,16 +7304,16 @@ input DeleteApisInput { id: UUID! } -"""The output of our delete `Apis` mutation.""" -type DeleteApisPayload { - """The `Apis` that was deleted by this mutation.""" - apis: Apis +"""The output of our delete `ApiSetting` mutation.""" +type DeleteApiSettingPayload { + """The `ApiSetting` that was deleted by this mutation.""" + apiSetting: ApiSetting - """An edge for our `Apis`. May be used by Relay 1.""" - apisEdge( - """The method to use when ordering `Apis`.""" - orderBy: [ApisOrderBy!]! = [PRIMARY_KEY_ASC] - ): ApisEdge + """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 """ The exact same `clientMutationId` that was provided in the mutation input, @@ -7511,6 +7723,105 @@ type DeleteDomainVerificationPayload { query: Query } +"""All input for the `deleteEmailIdentity` mutation.""" +input DeleteEmailIdentityInput { + """ + An arbitrary 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 `EmailIdentity` mutation.""" +type DeleteEmailIdentityPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `EmailIdentity` that was deleted by this mutation.""" + emailIdentity: EmailIdentity + + """An edge for our `EmailIdentity`. May be used by Relay 1.""" + emailIdentityEdge( + """The method to use when ordering `EmailIdentity`.""" + orderBy: [EmailIdentityOrderBy!]! = [PRIMARY_KEY_ASC] + ): EmailIdentityEdge + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query +} + +"""All input for the `deleteEmailProviderAccount` mutation.""" +input DeleteEmailProviderAccountInput { + """ + An arbitrary 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 `EmailProviderAccount` mutation.""" +type DeleteEmailProviderAccountPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `EmailProviderAccount` that was deleted by this mutation.""" + emailProviderAccount: EmailProviderAccount + + """An edge for our `EmailProviderAccount`. May be used by Relay 1.""" + emailProviderAccountEdge( + """The method to use when ordering `EmailProviderAccount`.""" + orderBy: [EmailProviderAccountOrderBy!]! = [PRIMARY_KEY_ASC] + ): EmailProviderAccountEdge + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query +} + +"""All input for the `deleteEmailSiteIdentity` mutation.""" +input DeleteEmailSiteIdentityInput { + """ + An arbitrary 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 `EmailSiteIdentity` mutation.""" +type DeleteEmailSiteIdentityPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `EmailSiteIdentity` that was deleted by this mutation.""" + emailSiteIdentity: EmailSiteIdentity + + """An edge for our `EmailSiteIdentity`. May be used by Relay 1.""" + emailSiteIdentityEdge( + """The method to use when ordering `EmailSiteIdentity`.""" + orderBy: [EmailSiteIdentityOrderBy!]! = [PRIMARY_KEY_ASC] + ): EmailSiteIdentityEdge + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query +} + """All input for the `deleteEmbeddingChunk` mutation.""" input DeleteEmbeddingChunkInput { """ @@ -8043,8 +8354,8 @@ type DeletePartitionPayload { query: Query } -"""All input for the `deletePlatformApiSchema` mutation.""" -input DeletePlatformApiSchemaInput { +"""All input for the `deletePlatformApi` mutation.""" +input DeletePlatformApiInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. @@ -8053,22 +8364,22 @@ input DeletePlatformApiSchemaInput { id: UUID! } -"""The output of our delete `PlatformApiSchema` mutation.""" -type DeletePlatformApiSchemaPayload { +"""The output of our delete `PlatformApi` mutation.""" +type DeletePlatformApiPayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `PlatformApiSchema` that was deleted by this mutation.""" - platformApiSchema: PlatformApiSchema + """The `PlatformApi` that was deleted by this mutation.""" + platformApi: PlatformApi - """An edge for our `PlatformApiSchema`. May be used by Relay 1.""" - platformApiSchemaEdge( - """The method to use when ordering `PlatformApiSchema`.""" - orderBy: [PlatformApiSchemaOrderBy!]! = [PRIMARY_KEY_ASC] - ): PlatformApiSchemaEdge + """An edge for our `PlatformApi`. May be used by Relay 1.""" + platformApiEdge( + """The method to use when ordering `PlatformApi`.""" + orderBy: [PlatformApiOrderBy!]! = [PRIMARY_KEY_ASC] + ): PlatformApiEdge """ Our root query field type. Allows us to run any query from our mutation payload. @@ -8076,8 +8387,8 @@ type DeletePlatformApiSchemaPayload { query: Query } -"""All input for the `deletePlatformApiSetting` mutation.""" -input DeletePlatformApiSettingInput { +"""All input for the `deletePlatformApiSchema` mutation.""" +input DeletePlatformApiSchemaInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. @@ -8086,22 +8397,22 @@ input DeletePlatformApiSettingInput { id: UUID! } -"""The output of our delete `PlatformApiSetting` mutation.""" -type DeletePlatformApiSettingPayload { +"""The output of our delete `PlatformApiSchema` mutation.""" +type DeletePlatformApiSchemaPayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `PlatformApiSetting` that was deleted by this mutation.""" - platformApiSetting: PlatformApiSetting + """The `PlatformApiSchema` that was deleted by this mutation.""" + platformApiSchema: PlatformApiSchema - """An edge for our `PlatformApiSetting`. May be used by Relay 1.""" - platformApiSettingEdge( - """The method to use when ordering `PlatformApiSetting`.""" - orderBy: [PlatformApiSettingOrderBy!]! = [PRIMARY_KEY_ASC] - ): PlatformApiSettingEdge + """An edge for our `PlatformApiSchema`. May be used by Relay 1.""" + platformApiSchemaEdge( + """The method to use when ordering `PlatformApiSchema`.""" + orderBy: [PlatformApiSchemaOrderBy!]! = [PRIMARY_KEY_ASC] + ): PlatformApiSchemaEdge """ Our root query field type. Allows us to run any query from our mutation payload. @@ -8109,8 +8420,8 @@ type DeletePlatformApiSettingPayload { query: Query } -"""All input for the `deletePlatformApis` mutation.""" -input DeletePlatformApisInput { +"""All input for the `deletePlatformApiSetting` mutation.""" +input DeletePlatformApiSettingInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. @@ -8119,22 +8430,22 @@ input DeletePlatformApisInput { id: UUID! } -"""The output of our delete `PlatformApis` mutation.""" -type DeletePlatformApisPayload { +"""The output of our delete `PlatformApiSetting` mutation.""" +type DeletePlatformApiSettingPayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `PlatformApis` that was deleted by this mutation.""" - platformApis: PlatformApis + """The `PlatformApiSetting` that was deleted by this mutation.""" + platformApiSetting: PlatformApiSetting - """An edge for our `PlatformApis`. May be used by Relay 1.""" - platformApisEdge( - """The method to use when ordering `PlatformApis`.""" - orderBy: [PlatformApisOrderBy!]! = [PRIMARY_KEY_ASC] - ): PlatformApisEdge + """An edge for our `PlatformApiSetting`. May be used by Relay 1.""" + platformApiSettingEdge( + """The method to use when ordering `PlatformApiSetting`.""" + orderBy: [PlatformApiSettingOrderBy!]! = [PRIMARY_KEY_ASC] + ): PlatformApiSettingEdge """ Our root query field type. Allows us to run any query from our mutation payload. @@ -8274,6 +8585,107 @@ type DeletePlatformDomainVerificationPayload { query: Query } +"""All input for the `deletePlatformEmailIdentity` mutation.""" +input DeletePlatformEmailIdentityInput { + """ + An arbitrary 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 `PlatformEmailIdentity` mutation.""" +type DeletePlatformEmailIdentityPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `PlatformEmailIdentity` that was deleted by this mutation.""" + platformEmailIdentity: PlatformEmailIdentity + + """An edge for our `PlatformEmailIdentity`. May be used by Relay 1.""" + platformEmailIdentityEdge( + """The method to use when ordering `PlatformEmailIdentity`.""" + orderBy: [PlatformEmailIdentityOrderBy!]! = [PRIMARY_KEY_ASC] + ): PlatformEmailIdentityEdge + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query +} + +"""All input for the `deletePlatformEmailProviderAccount` mutation.""" +input DeletePlatformEmailProviderAccountInput { + """ + An arbitrary 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 `PlatformEmailProviderAccount` mutation.""" +type DeletePlatformEmailProviderAccountPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `PlatformEmailProviderAccount` that was deleted by this mutation.""" + platformEmailProviderAccount: PlatformEmailProviderAccount + + """ + An edge for our `PlatformEmailProviderAccount`. May be used by Relay 1. + """ + platformEmailProviderAccountEdge( + """The method to use when ordering `PlatformEmailProviderAccount`.""" + orderBy: [PlatformEmailProviderAccountOrderBy!]! = [PRIMARY_KEY_ASC] + ): PlatformEmailProviderAccountEdge + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query +} + +"""All input for the `deletePlatformEmailSiteIdentity` mutation.""" +input DeletePlatformEmailSiteIdentityInput { + """ + An arbitrary 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 `PlatformEmailSiteIdentity` mutation.""" +type DeletePlatformEmailSiteIdentityPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `PlatformEmailSiteIdentity` that was deleted by this mutation.""" + platformEmailSiteIdentity: PlatformEmailSiteIdentity + + """An edge for our `PlatformEmailSiteIdentity`. May be used by Relay 1.""" + platformEmailSiteIdentityEdge( + """The method to use when ordering `PlatformEmailSiteIdentity`.""" + orderBy: [PlatformEmailSiteIdentityOrderBy!]! = [PRIMARY_KEY_ASC] + ): PlatformEmailSiteIdentityEdge + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query +} + """All input for the `deletePlatformManagedDomain` mutation.""" input DeletePlatformManagedDomainInput { """ @@ -10925,1007 +11337,919 @@ type DomainsAssignSubdomainPayload { result: Domain } -type EmbeddingChunk { - chunkOverlap: Int! - chunkSize: Int! - chunkStrategy: String! - chunkingTaskName: String! - - """Reads a single `Table` that is related to this `EmbeddingChunk`.""" - chunksTable: Table - chunksTableId: UUID - chunksTableName: String - contentFieldName: String! +""" +Outbound sender identity: the from/reply-to/support addresses a tenant sends as, and the provider account the mail leaves through +""" +type EmailIdentity { createdAt: Datetime - """Reads a single `Database` that is related to this `EmbeddingChunk`.""" - database: Database + """Database that owns this resource (database-scoped isolation)""" databaseId: UUID! - dimensions: Int! - """Reads a single `Field` that is related to this `EmbeddingChunk`.""" - embeddingField: Field - embeddingFieldId: UUID - embeddingModel: String - embeddingProvider: String - enqueueChunkingJob: Boolean! + """Reads and enables pagination through a set of `EmailSiteIdentity`.""" + emailSiteIdentities( + """Read all values in the set after (below) this cursor.""" + after: Cursor + + """Read all values in the set before (above) this cursor.""" + before: Cursor + + """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 + + """The method to use when ordering `EmailSiteIdentity`.""" + orderBy: [EmailSiteIdentityOrderBy!] = [PRIMARY_KEY_ASC] + + """ + A filter to be used in determining which values should be returned by the collection. + """ + where: EmailSiteIdentityFilter + ): EmailSiteIdentityConnection! + + """ + Envelope/header From address, lower-case. Must be accepted by the sending account at the provider. + """ + fromAddress: String! + + """Display name shown beside the from address""" + fromName: String id: UUID! - metadataFields: JSON - metric: String! - """Reads a single `Field` that is related to this `EmbeddingChunk`.""" - parentFkField: Field - parentFkFieldId: UUID - searchIndexes: JSON + """Whether this identity may be resolved for a send""" + isActive: Boolean! - """Reads a single `Table` that is related to this `EmbeddingChunk`.""" - table: Table - tableId: UUID! + """ + The scope default identity, used when no site binding resolves. At most one per scope key. + """ + isDefault: Boolean! + + """Operator-facing name for this identity (e.g. transactional, support)""" + name: String! + + """ + Reads a single `EmailProviderAccount` that is related to this `EmailIdentity`. + """ + providerAccount: EmailProviderAccount + + """ + Same-scope provider account this identity sends through. Required for transport_mode = own, NULL for platform_shared. + """ + providerAccountId: UUID + + """Reply-To address when replies should not go to the from address""" + replyToAddress: String + + """Support address rendered in message bodies and footers""" + supportAddress: String + + """ + own = send through provider_account_id in this scope; platform_shared = send through the platform installation's shared account, an explicit recorded choice and never an implicit fallback + """ + transportMode: String! updatedAt: Datetime } -"""A connection to a list of `EmbeddingChunk` values.""" -type EmbeddingChunkConnection { +"""A connection to a list of `EmailIdentity` values.""" +type EmailIdentityConnection { """ - A list of edges which contains the `EmbeddingChunk` and cursor to aid in pagination. + A list of edges which contains the `EmailIdentity` and cursor to aid in pagination. """ - edges: [EmbeddingChunkEdge]! + edges: [EmailIdentityEdge]! - """A list of `EmbeddingChunk` objects.""" - nodes: [EmbeddingChunk]! + """A list of `EmailIdentity` objects.""" + nodes: [EmailIdentity]! """Information to aid in pagination.""" pageInfo: PageInfo! - """The count of *all* `EmbeddingChunk` you could get from the connection.""" + """The count of *all* `EmailIdentity` you could get from the connection.""" totalCount: Int! } -"""A `EmbeddingChunk` edge in the connection.""" -type EmbeddingChunkEdge { +"""A `EmailIdentity` edge in the connection.""" +type EmailIdentityEdge { """A cursor for use in pagination.""" cursor: Cursor - """The `EmbeddingChunk` at the end of the edge.""" - node: EmbeddingChunk + """The `EmailIdentity` at the end of the edge.""" + node: EmailIdentity } """ -A filter to be used against `EmbeddingChunk` object types. All fields are combined with a logical ‘and.’ +A filter to be used against `EmailIdentity` object types. All fields are combined with a logical ‘and.’ """ -input EmbeddingChunkFilter { +input EmailIdentityFilter { """Checks for all expressions in this list.""" - and: [EmbeddingChunkFilter!] - - """Filter by the object’s `chunkOverlap` field.""" - chunkOverlap: IntFilter - - """Filter by the object’s `chunkSize` field.""" - chunkSize: IntFilter - - """Filter by the object’s `chunkStrategy` field.""" - chunkStrategy: StringFilter - - """Filter by the object’s `chunkingTaskName` field.""" - chunkingTaskName: StringFilter - - """Filter by the object’s `chunksTable` relation.""" - chunksTable: TableFilter - - """A related `chunksTable` exists.""" - chunksTableExists: Boolean - - """Filter by the object’s `chunksTableId` field.""" - chunksTableId: UUIDFilter - - """Filter by the object’s `chunksTableName` field.""" - chunksTableName: StringFilter - - """Filter by the object’s `contentFieldName` field.""" - contentFieldName: StringFilter + and: [EmailIdentityFilter!] """Filter by the object’s `createdAt` field.""" createdAt: DatetimeFilter - """Filter by the object’s `database` relation.""" - database: DatabaseFilter - """Filter by the object’s `databaseId` field.""" databaseId: UUIDFilter - """Filter by the object’s `dimensions` field.""" - dimensions: IntFilter - - """Filter by the object’s `embeddingField` relation.""" - embeddingField: FieldFilter - - """A related `embeddingField` exists.""" - embeddingFieldExists: Boolean - - """Filter by the object’s `embeddingFieldId` field.""" - embeddingFieldId: UUIDFilter + """Filter by the object’s `emailSiteIdentities` relation.""" + emailSiteIdentities: EmailIdentityToManyEmailSiteIdentityFilter - """Filter by the object’s `embeddingModel` field.""" - embeddingModel: StringFilter + """`emailSiteIdentities` exist.""" + emailSiteIdentitiesExist: Boolean - """Filter by the object’s `embeddingProvider` field.""" - embeddingProvider: StringFilter + """Filter by the object’s `fromAddress` field.""" + fromAddress: StringFilter - """Filter by the object’s `enqueueChunkingJob` field.""" - enqueueChunkingJob: BooleanFilter + """Filter by the object’s `fromName` field.""" + fromName: StringFilter """Filter by the object’s `id` field.""" id: UUIDFilter - """Filter by the object’s `metadataFields` field.""" - metadataFields: JSONFilter + """Filter by the object’s `isActive` field.""" + isActive: BooleanFilter - """Filter by the object’s `metric` field.""" - metric: StringFilter + """Filter by the object’s `isDefault` field.""" + isDefault: BooleanFilter + + """Filter by the object’s `name` field.""" + name: StringFilter """Negates the expression.""" - not: EmbeddingChunkFilter + not: EmailIdentityFilter """Checks for any expressions in this list.""" - or: [EmbeddingChunkFilter!] + or: [EmailIdentityFilter!] - """Filter by the object’s `parentFkField` relation.""" - parentFkField: FieldFilter + """Filter by the object’s `providerAccount` relation.""" + providerAccount: EmailProviderAccountFilter - """A related `parentFkField` exists.""" - parentFkFieldExists: Boolean + """A related `providerAccount` exists.""" + providerAccountExists: Boolean - """Filter by the object’s `parentFkFieldId` field.""" - parentFkFieldId: UUIDFilter + """Filter by the object’s `providerAccountId` field.""" + providerAccountId: UUIDFilter - """Filter by the object’s `searchIndexes` field.""" - searchIndexes: JSONFilter + """Filter by the object’s `replyToAddress` field.""" + replyToAddress: StringFilter - """Filter by the object’s `table` relation.""" - table: TableFilter + """Filter by the object’s `supportAddress` field.""" + supportAddress: StringFilter - """Filter by the object’s `tableId` field.""" - tableId: UUIDFilter + """Filter by the object’s `transportMode` field.""" + transportMode: StringFilter """Filter by the object’s `updatedAt` field.""" updatedAt: DatetimeFilter } -"""An input for mutations affecting `EmbeddingChunk`""" -input EmbeddingChunkInput { - chunkOverlap: Int - chunkSize: Int - chunkStrategy: String - chunkingTaskName: String - chunksTableId: UUID - chunksTableName: String - contentFieldName: String +"""An input for mutations affecting `EmailIdentity`""" +input EmailIdentityInput { createdAt: Datetime - databaseId: UUID - dimensions: Int - embeddingFieldId: UUID - embeddingModel: String - embeddingProvider: String - enqueueChunkingJob: Boolean + + """Database that owns this resource (database-scoped isolation)""" + databaseId: UUID! + + """ + Envelope/header From address, lower-case. Must be accepted by the sending account at the provider. + """ + fromAddress: String! + + """Display name shown beside the from address""" + fromName: String id: UUID - metadataFields: JSON - metric: String - parentFkFieldId: UUID - searchIndexes: JSON - tableId: UUID! + + """Whether this identity may be resolved for a send""" + isActive: Boolean + + """ + The scope default identity, used when no site binding resolves. At most one per scope key. + """ + isDefault: Boolean + + """Operator-facing name for this identity (e.g. transactional, support)""" + name: String! + + """ + Same-scope provider account this identity sends through. Required for transport_mode = own, NULL for platform_shared. + """ + providerAccountId: UUID + + """Reply-To address when replies should not go to the from address""" + replyToAddress: String + + """Support address rendered in message bodies and footers""" + supportAddress: String + + """ + own = send through provider_account_id in this scope; platform_shared = send through the platform installation's shared account, an explicit recorded choice and never an implicit fallback + """ + transportMode: String updatedAt: Datetime } -"""Methods to use when ordering `EmbeddingChunk`.""" -enum EmbeddingChunkOrderBy { - CHUNKING_TASK_NAME_ASC - CHUNKING_TASK_NAME_DESC - CHUNKS_TABLE_ID_ASC - CHUNKS_TABLE_ID_DESC - CHUNKS_TABLE_NAME_ASC - CHUNKS_TABLE_NAME_DESC - CHUNK_OVERLAP_ASC - CHUNK_OVERLAP_DESC - CHUNK_SIZE_ASC - CHUNK_SIZE_DESC - CHUNK_STRATEGY_ASC - CHUNK_STRATEGY_DESC - CONTENT_FIELD_NAME_ASC - CONTENT_FIELD_NAME_DESC +"""Methods to use when ordering `EmailIdentity`.""" +enum EmailIdentityOrderBy { CREATED_AT_ASC CREATED_AT_DESC DATABASE_ID_ASC DATABASE_ID_DESC - DIMENSIONS_ASC - DIMENSIONS_DESC - EMBEDDING_FIELD_ID_ASC - EMBEDDING_FIELD_ID_DESC - EMBEDDING_MODEL_ASC - EMBEDDING_MODEL_DESC - EMBEDDING_PROVIDER_ASC - EMBEDDING_PROVIDER_DESC - ENQUEUE_CHUNKING_JOB_ASC - ENQUEUE_CHUNKING_JOB_DESC + FROM_ADDRESS_ASC + FROM_ADDRESS_DESC + FROM_NAME_ASC + FROM_NAME_DESC ID_ASC ID_DESC - METADATA_FIELDS_ASC - METADATA_FIELDS_DESC - METRIC_ASC - METRIC_DESC + IS_ACTIVE_ASC + IS_ACTIVE_DESC + IS_DEFAULT_ASC + IS_DEFAULT_DESC + NAME_ASC + NAME_DESC NATURAL - PARENT_FK_FIELD_ID_ASC - PARENT_FK_FIELD_ID_DESC PRIMARY_KEY_ASC PRIMARY_KEY_DESC - SEARCH_INDEXES_ASC - SEARCH_INDEXES_DESC - TABLE_ID_ASC - TABLE_ID_DESC + PROVIDER_ACCOUNT_ID_ASC + PROVIDER_ACCOUNT_ID_DESC + REPLY_TO_ADDRESS_ASC + REPLY_TO_ADDRESS_DESC + SUPPORT_ADDRESS_ASC + SUPPORT_ADDRESS_DESC + TRANSPORT_MODE_ASC + TRANSPORT_MODE_DESC UPDATED_AT_ASC UPDATED_AT_DESC } """ -Represents an update to a `EmbeddingChunk`. Fields that are set will be updated. +Represents an update to a `EmailIdentity`. Fields that are set will be updated. """ -input EmbeddingChunkPatch { - chunkOverlap: Int - chunkSize: Int - chunkStrategy: String - chunkingTaskName: String - chunksTableId: UUID - chunksTableName: String - contentFieldName: String +input EmailIdentityPatch { createdAt: Datetime + + """Database that owns this resource (database-scoped isolation)""" databaseId: UUID - dimensions: Int - embeddingFieldId: UUID - embeddingModel: String - embeddingProvider: String - enqueueChunkingJob: Boolean - id: UUID - metadataFields: JSON - metric: String - parentFkFieldId: UUID - searchIndexes: JSON - tableId: UUID - updatedAt: Datetime -} -type Enum { - category: ObjectCategory! + """ + Envelope/header From address, lower-case. Must be accepted by the sending account at the provider. + """ + fromAddress: String - """Reads a single `Database` that is related to this `Enum`.""" - database: Database - databaseId: UUID! - description: String - id: UUID! - label: String - name: String! + """Display name shown beside the from address""" + fromName: String + id: UUID - """Reads a single `Schema` that is related to this `Enum`.""" - schema: Schema - schemaId: UUID! - smartTags: JSON - tags: [String]! - values: [String]! -} + """Whether this identity may be resolved for a send""" + isActive: Boolean -"""A connection to a list of `Enum` values.""" -type EnumConnection { """ - A list of edges which contains the `Enum` and cursor to aid in pagination. + The scope default identity, used when no site binding resolves. At most one per scope key. """ - edges: [EnumEdge]! + isDefault: Boolean - """A list of `Enum` objects.""" - nodes: [Enum]! + """Operator-facing name for this identity (e.g. transactional, support)""" + name: String - """Information to aid in pagination.""" - pageInfo: PageInfo! + """ + Same-scope provider account this identity sends through. Required for transport_mode = own, NULL for platform_shared. + """ + providerAccountId: UUID - """The count of *all* `Enum` you could get from the connection.""" - totalCount: Int! -} + """Reply-To address when replies should not go to the from address""" + replyToAddress: String -"""A `Enum` edge in the connection.""" -type EnumEdge { - """A cursor for use in pagination.""" - cursor: Cursor + """Support address rendered in message bodies and footers""" + supportAddress: String - """The `Enum` at the end of the edge.""" - node: Enum + """ + own = send through provider_account_id in this scope; platform_shared = send through the platform installation's shared account, an explicit recorded choice and never an implicit fallback + """ + transportMode: String + updatedAt: Datetime } """ -A filter to be used against `Enum` object types. All fields are combined with a logical ‘and.’ +A filter to be used against many `EmailSiteIdentity` object types. All fields are combined with a logical ‘and.’ """ -input EnumFilter { - """Checks for all expressions in this list.""" - and: [EnumFilter!] +input EmailIdentityToManyEmailSiteIdentityFilter { + """Filters to entities where every related entity matches.""" + every: EmailSiteIdentityFilter - """Filter by the object’s `category` field.""" - category: ObjectCategoryFilter + """Filters to entities where no related entity matches.""" + none: EmailSiteIdentityFilter - """Filter by the object’s `database` relation.""" - database: DatabaseFilter + """Filters to entities where at least one related entity matches.""" + some: EmailSiteIdentityFilter +} - """Filter by the object’s `databaseId` field.""" - databaseId: UUIDFilter +""" +A tenant's configured account at an email provider: provider slug, endpoint coordinates, and the NAME of the secret holding its credentials (never the credential itself) +""" +type EmailProviderAccount { + """ + Provider API base URL when it is not the provider default (e.g. Mailgun EU) + """ + apiBaseUrl: String + createdAt: Datetime - """Filter by the object’s `description` field.""" - description: StringFilter + """ + Name of the secret holding this account's API key or SMTP password. The value is resolved from the secret store at send time (realm = this row's id) and is never stored here. + """ + credentialsSecretName: String! - """Filter by the object’s `id` field.""" - id: UUIDFilter + """Database that owns this resource (database-scoped isolation)""" + databaseId: UUID! - """Filter by the object’s `label` field.""" - label: StringFilter - - """Filter by the object’s `name` field.""" - name: StringFilter + """Reads and enables pagination through a set of `EmailIdentity`.""" + emailIdentitiesByProviderAccountId( + """Read all values in the set after (below) this cursor.""" + after: Cursor - """Negates the expression.""" - not: EnumFilter + """Read all values in the set before (above) this cursor.""" + before: Cursor - """Checks for any expressions in this list.""" - or: [EnumFilter!] + """Only read the first `n` values of the set.""" + first: Int - """Filter by the object’s `schema` relation.""" - schema: SchemaFilter + """Only read the last `n` values of the set.""" + last: Int - """Filter by the object’s `schemaId` field.""" - schemaId: UUIDFilter + """ + Skip the first `n` values from our `after` cursor, an alternative to cursor + based pagination. May not be used with `last`. + """ + offset: Int - """Filter by the object’s `smartTags` field.""" - smartTags: JSONFilter + """The method to use when ordering `EmailIdentity`.""" + orderBy: [EmailIdentityOrderBy!] = [PRIMARY_KEY_ASC] - """Filter by the object’s `tags` field.""" - tags: StringListFilter + """ + A filter to be used in determining which values should be returned by the collection. + """ + where: EmailIdentityFilter + ): EmailIdentityConnection! + id: UUID! - """Filter by the object’s `values` field.""" - values: StringListFilter -} + """ + Whether identities may send through this account. Disabling one row stops every identity that references it. + """ + isActive: Boolean! -"""An input for mutations affecting `Enum`""" -input EnumInput { - category: ObjectCategory - databaseId: UUID! - description: String - id: UUID - label: String + """Operator-facing name for this account (e.g. transactional, marketing)""" name: String! - schemaId: UUID! - smartTags: JSON - tags: [String] - values: [String] -} -"""Methods to use when ordering `Enum`.""" -enum EnumOrderBy { - CATEGORY_ASC - CATEGORY_DESC - DATABASE_ID_ASC - DATABASE_ID_DESC - DESCRIPTION_ASC - DESCRIPTION_DESC - ID_ASC - ID_DESC - LABEL_ASC - LABEL_DESC - NAME_ASC - NAME_DESC - NATURAL - PRIMARY_KEY_ASC - PRIMARY_KEY_DESC - SCHEMA_ID_ASC - SCHEMA_ID_DESC - SMART_TAGS_ASC - SMART_TAGS_DESC - TAGS_ASC - TAGS_DESC - VALUES_ASC - VALUES_DESC -} + """ + integration_providers.slug of the provider this account is at (mailgun, ses, postmark, smtp), matched by string not by FK + """ + provider: String! -"""Represents an update to a `Enum`. Fields that are set will be updated.""" -input EnumPatch { - category: ObjectCategory - databaseId: UUID - description: String - id: UUID - label: String - name: String - schemaId: UUID - smartTags: JSON - tags: [String] - values: [String] -} + """ + Account identifier at the provider — the Mailgun sending domain, the SES verified identity, the Postmark server name + """ + providerAccountName: String -type ExclusionConstraint { - accessMethod: String! - category: ObjectCategory! - createdAt: Datetime + """Provider region for region-addressed providers (e.g. SES us-east-1)""" + region: String + + """SMTP host (provider = smtp, or a provider addressed over SMTP)""" + smtpHost: String + + """SMTP port""" + smtpPort: Int + + """Whether the SMTP connection uses implicit TLS""" + smtpSecure: Boolean """ - Reads a single `Database` that is related to this `ExclusionConstraint`. + SMTP username; the password is a secret, addressed by credentials_secret_name """ - database: Database - databaseId: UUID! - elementExpr: JSON - fieldIds: [UUID]! - id: UUID! - name: String - operators: [String]! - smartTags: JSON - - """Reads a single `Table` that is related to this `ExclusionConstraint`.""" - table: Table - tableId: UUID! - tags: [String]! - type: String + smtpUser: String updatedAt: Datetime - whereClause: JSON + + """ + Name of the secret used to verify this provider's delivery/bounce webhooks. Name only; the value stays in the secret store. + """ + webhookSigningSecretName: String } -"""A connection to a list of `ExclusionConstraint` values.""" -type ExclusionConstraintConnection { +"""A connection to a list of `EmailProviderAccount` values.""" +type EmailProviderAccountConnection { """ - A list of edges which contains the `ExclusionConstraint` and cursor to aid in pagination. + A list of edges which contains the `EmailProviderAccount` and cursor to aid in pagination. """ - edges: [ExclusionConstraintEdge]! + edges: [EmailProviderAccountEdge]! - """A list of `ExclusionConstraint` objects.""" - nodes: [ExclusionConstraint]! + """A list of `EmailProviderAccount` objects.""" + nodes: [EmailProviderAccount]! """Information to aid in pagination.""" pageInfo: PageInfo! """ - The count of *all* `ExclusionConstraint` you could get from the connection. + The count of *all* `EmailProviderAccount` you could get from the connection. """ totalCount: Int! } -"""A `ExclusionConstraint` edge in the connection.""" -type ExclusionConstraintEdge { +"""A `EmailProviderAccount` edge in the connection.""" +type EmailProviderAccountEdge { """A cursor for use in pagination.""" cursor: Cursor - """The `ExclusionConstraint` at the end of the edge.""" - node: ExclusionConstraint + """The `EmailProviderAccount` at the end of the edge.""" + node: EmailProviderAccount } """ -A filter to be used against `ExclusionConstraint` object types. All fields are combined with a logical ‘and.’ +A filter to be used against `EmailProviderAccount` object types. All fields are combined with a logical ‘and.’ """ -input ExclusionConstraintFilter { - """Filter by the object’s `accessMethod` field.""" - accessMethod: StringFilter - +input EmailProviderAccountFilter { """Checks for all expressions in this list.""" - and: [ExclusionConstraintFilter!] + and: [EmailProviderAccountFilter!] - """Filter by the object’s `category` field.""" - category: ObjectCategoryFilter + """Filter by the object’s `apiBaseUrl` field.""" + apiBaseUrl: StringFilter """Filter by the object’s `createdAt` field.""" createdAt: DatetimeFilter - """Filter by the object’s `database` relation.""" - database: DatabaseFilter + """Filter by the object’s `credentialsSecretName` field.""" + credentialsSecretName: StringFilter """Filter by the object’s `databaseId` field.""" databaseId: UUIDFilter - """Filter by the object’s `elementExpr` field.""" - elementExpr: JSONFilter + """Filter by the object’s `emailIdentitiesByProviderAccountId` relation.""" + emailIdentitiesByProviderAccountId: EmailProviderAccountToManyEmailIdentityFilter - """Filter by the object’s `fieldIds` field.""" - fieldIds: UUIDListFilter + """`emailIdentitiesByProviderAccountId` exist.""" + emailIdentitiesByProviderAccountIdExist: Boolean """Filter by the object’s `id` field.""" id: UUIDFilter + """Filter by the object’s `isActive` field.""" + isActive: BooleanFilter + """Filter by the object’s `name` field.""" name: StringFilter """Negates the expression.""" - not: ExclusionConstraintFilter - - """Filter by the object’s `operators` field.""" - operators: StringListFilter + not: EmailProviderAccountFilter """Checks for any expressions in this list.""" - or: [ExclusionConstraintFilter!] + or: [EmailProviderAccountFilter!] - """Filter by the object’s `smartTags` field.""" - smartTags: JSONFilter + """Filter by the object’s `provider` field.""" + provider: StringFilter - """Filter by the object’s `table` relation.""" - table: TableFilter + """Filter by the object’s `providerAccountName` field.""" + providerAccountName: StringFilter - """Filter by the object’s `tableId` field.""" - tableId: UUIDFilter + """Filter by the object’s `region` field.""" + region: StringFilter - """Filter by the object’s `tags` field.""" - tags: StringListFilter + """Filter by the object’s `smtpHost` field.""" + smtpHost: StringFilter - """Filter by the object’s `type` field.""" - type: StringFilter + """Filter by the object’s `smtpPort` field.""" + smtpPort: IntFilter + + """Filter by the object’s `smtpSecure` field.""" + smtpSecure: BooleanFilter + + """Filter by the object’s `smtpUser` field.""" + smtpUser: StringFilter """Filter by the object’s `updatedAt` field.""" updatedAt: DatetimeFilter - """Filter by the object’s `whereClause` field.""" - whereClause: JSONFilter + """Filter by the object’s `webhookSigningSecretName` field.""" + webhookSigningSecretName: StringFilter } -"""An input for mutations affecting `ExclusionConstraint`""" -input ExclusionConstraintInput { - accessMethod: String - category: ObjectCategory +"""An input for mutations affecting `EmailProviderAccount`""" +input EmailProviderAccountInput { + """ + Provider API base URL when it is not the provider default (e.g. Mailgun EU) + """ + apiBaseUrl: String createdAt: Datetime - databaseId: UUID - elementExpr: JSON - fieldIds: [UUID] + + """ + Name of the secret holding this account's API key or SMTP password. The value is resolved from the secret store at send time (realm = this row's id) and is never stored here. + """ + credentialsSecretName: String! + + """Database that owns this resource (database-scoped isolation)""" + databaseId: UUID! id: UUID - name: String - operators: [String] - smartTags: JSON - tableId: UUID! - tags: [String] - type: String + + """ + Whether identities may send through this account. Disabling one row stops every identity that references it. + """ + isActive: Boolean + + """Operator-facing name for this account (e.g. transactional, marketing)""" + name: String! + + """ + integration_providers.slug of the provider this account is at (mailgun, ses, postmark, smtp), matched by string not by FK + """ + provider: String! + + """ + Account identifier at the provider — the Mailgun sending domain, the SES verified identity, the Postmark server name + """ + providerAccountName: String + + """Provider region for region-addressed providers (e.g. SES us-east-1)""" + region: String + + """SMTP host (provider = smtp, or a provider addressed over SMTP)""" + smtpHost: String + + """SMTP port""" + smtpPort: Int + + """Whether the SMTP connection uses implicit TLS""" + smtpSecure: Boolean + + """ + SMTP username; the password is a secret, addressed by credentials_secret_name + """ + smtpUser: String updatedAt: Datetime - whereClause: JSON + + """ + Name of the secret used to verify this provider's delivery/bounce webhooks. Name only; the value stays in the secret store. + """ + webhookSigningSecretName: String } -"""Methods to use when ordering `ExclusionConstraint`.""" -enum ExclusionConstraintOrderBy { - ACCESS_METHOD_ASC - ACCESS_METHOD_DESC - CATEGORY_ASC - CATEGORY_DESC +"""Methods to use when ordering `EmailProviderAccount`.""" +enum EmailProviderAccountOrderBy { + API_BASE_URL_ASC + API_BASE_URL_DESC CREATED_AT_ASC CREATED_AT_DESC + CREDENTIALS_SECRET_NAME_ASC + CREDENTIALS_SECRET_NAME_DESC DATABASE_ID_ASC DATABASE_ID_DESC - ELEMENT_EXPR_ASC - ELEMENT_EXPR_DESC - FIELD_IDS_ASC - FIELD_IDS_DESC ID_ASC ID_DESC + IS_ACTIVE_ASC + IS_ACTIVE_DESC NAME_ASC NAME_DESC NATURAL - OPERATORS_ASC - OPERATORS_DESC PRIMARY_KEY_ASC PRIMARY_KEY_DESC - SMART_TAGS_ASC - SMART_TAGS_DESC - TABLE_ID_ASC - TABLE_ID_DESC - TAGS_ASC - TAGS_DESC - TYPE_ASC - TYPE_DESC + PROVIDER_ACCOUNT_NAME_ASC + PROVIDER_ACCOUNT_NAME_DESC + PROVIDER_ASC + PROVIDER_DESC + REGION_ASC + REGION_DESC + SMTP_HOST_ASC + SMTP_HOST_DESC + SMTP_PORT_ASC + SMTP_PORT_DESC + SMTP_SECURE_ASC + SMTP_SECURE_DESC + SMTP_USER_ASC + SMTP_USER_DESC UPDATED_AT_ASC UPDATED_AT_DESC - WHERE_CLAUSE_ASC - WHERE_CLAUSE_DESC + WEBHOOK_SIGNING_SECRET_NAME_ASC + WEBHOOK_SIGNING_SECRET_NAME_DESC } """ -Represents an update to a `ExclusionConstraint`. Fields that are set will be updated. +Represents an update to a `EmailProviderAccount`. Fields that are set will be updated. """ -input ExclusionConstraintPatch { - accessMethod: String - category: ObjectCategory - createdAt: Datetime - databaseId: UUID - elementExpr: JSON - fieldIds: [UUID] - id: UUID - name: String - operators: [String] - smartTags: JSON - tableId: UUID - tags: [String] - type: String - updatedAt: Datetime - whereClause: JSON -} - -type Field { - apiRequired: Boolean! - category: ObjectCategory! - chk: JSON - chkExpr: JSON +input EmailProviderAccountPatch { + """ + Provider API base URL when it is not the provider default (e.g. Mailgun EU) + """ + apiBaseUrl: String createdAt: Datetime - """Reads a single `Database` that is related to this `Field`.""" - database: Database - databaseId: UUID! - defaultValue: JSON - description: String - - """Reads and enables pagination through a set of `EmbeddingChunk`.""" - embeddingChunksByEmbeddingFieldId( - """Read all values in the set after (below) this cursor.""" - after: Cursor - - """Read all values in the set before (above) this cursor.""" - before: Cursor - - """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 - - """The method to use when ordering `EmbeddingChunk`.""" - orderBy: [EmbeddingChunkOrderBy!] = [PRIMARY_KEY_ASC] - - """ - A filter to be used in determining which values should be returned by the collection. - """ - where: EmbeddingChunkFilter - ): EmbeddingChunkConnection! - - """Reads and enables pagination through a set of `EmbeddingChunk`.""" - embeddingChunksByParentFkFieldId( - """Read all values in the set after (below) this cursor.""" - after: Cursor - - """Read all values in the set before (above) this cursor.""" - before: Cursor - - """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 - - """The method to use when ordering `EmbeddingChunk`.""" - orderBy: [EmbeddingChunkOrderBy!] = [PRIMARY_KEY_ASC] - - """ - A filter to be used in determining which values should be returned by the collection. - """ - where: EmbeddingChunkFilter - ): EmbeddingChunkConnection! - - """Reads and enables pagination through a set of `FieldBehavior`.""" - fieldBehaviors( - """Read all values in the set after (below) this cursor.""" - after: Cursor - - """Read all values in the set before (above) this cursor.""" - before: Cursor - - """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 - - """The method to use when ordering `FieldBehavior`.""" - orderBy: [FieldBehaviorOrderBy!] = [PRIMARY_KEY_ASC] - - """ - A filter to be used in determining which values should be returned by the collection. - """ - where: FieldBehaviorFilter - ): FieldBehaviorConnection! - fieldOrder: Int! - generationExpression: JSON - generationType: String - id: UUID! - identityGeneration: String - identityOptions: JSON - isRequired: Boolean! - label: String - max: Float - min: Float - name: String! - - """Reads and enables pagination through a set of `Partition`.""" - partitionsByPartitionKeyId( - """Read all values in the set after (below) this cursor.""" - after: Cursor - - """Read all values in the set before (above) this cursor.""" - before: Cursor - - """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 - - """The method to use when ordering `Partition`.""" - orderBy: [PartitionOrderBy!] = [PRIMARY_KEY_ASC] - - """ - A filter to be used in determining which values should be returned by the collection. - """ - where: PartitionFilter - ): PartitionConnection! - regexp: String - smartTags: JSON - - """Reads and enables pagination through a set of `SpatialRelation`.""" - spatialRelations( - """Read all values in the set after (below) this cursor.""" - after: Cursor + """ + Name of the secret holding this account's API key or SMTP password. The value is resolved from the secret store at send time (realm = this row's id) and is never stored here. + """ + credentialsSecretName: String - """Read all values in the set before (above) this cursor.""" - before: Cursor + """Database that owns this resource (database-scoped isolation)""" + databaseId: UUID + id: UUID - """Only read the first `n` values of the set.""" - first: Int + """ + Whether identities may send through this account. Disabling one row stops every identity that references it. + """ + isActive: Boolean - """Only read the last `n` values of the set.""" - last: Int + """Operator-facing name for this account (e.g. transactional, marketing)""" + name: String - """ - Skip the first `n` values from our `after` cursor, an alternative to cursor - based pagination. May not be used with `last`. - """ - offset: Int + """ + integration_providers.slug of the provider this account is at (mailgun, ses, postmark, smtp), matched by string not by FK + """ + provider: String - """The method to use when ordering `SpatialRelation`.""" - orderBy: [SpatialRelationOrderBy!] = [PRIMARY_KEY_ASC] + """ + Account identifier at the provider — the Mailgun sending domain, the SES verified identity, the Postmark server name + """ + providerAccountName: String - """ - A filter to be used in determining which values should be returned by the collection. - """ - where: SpatialRelationFilter - ): SpatialRelationConnection! + """Provider region for region-addressed providers (e.g. SES us-east-1)""" + region: String - """Reads and enables pagination through a set of `SpatialRelation`.""" - spatialRelationsByRefFieldId( - """Read all values in the set after (below) this cursor.""" - after: Cursor + """SMTP host (provider = smtp, or a provider addressed over SMTP)""" + smtpHost: String - """Read all values in the set before (above) this cursor.""" - before: Cursor + """SMTP port""" + smtpPort: Int - """Only read the first `n` values of the set.""" - first: Int + """Whether the SMTP connection uses implicit TLS""" + smtpSecure: Boolean - """Only read the last `n` values of the set.""" - last: Int + """ + SMTP username; the password is a secret, addressed by credentials_secret_name + """ + smtpUser: String + updatedAt: Datetime - """ - Skip the first `n` values from our `after` cursor, an alternative to cursor - based pagination. May not be used with `last`. - """ - offset: Int + """ + Name of the secret used to verify this provider's delivery/bounce webhooks. Name only; the value stays in the secret store. + """ + webhookSigningSecretName: String +} - """The method to use when ordering `SpatialRelation`.""" - orderBy: [SpatialRelationOrderBy!] = [PRIMARY_KEY_ASC] +""" +A filter to be used against many `EmailIdentity` object types. All fields are combined with a logical ‘and.’ +""" +input EmailProviderAccountToManyEmailIdentityFilter { + """Filters to entities where every related entity matches.""" + every: EmailIdentityFilter - """ - A filter to be used in determining which values should be returned by the collection. - """ - where: SpatialRelationFilter - ): SpatialRelationConnection! + """Filters to entities where no related entity matches.""" + none: EmailIdentityFilter - """Reads a single `Table` that is related to this `Field`.""" - table: Table - tableId: UUID! - tags: [String]! - type: JSON! - updatedAt: Datetime + """Filters to entities where at least one related entity matches.""" + some: EmailIdentityFilter } -type FieldBehavior { +""" +Binds a site to the identity it sends as. Unique on site_id: one identity per site, but many sites may share an identity. +""" +type EmailSiteIdentity { createdAt: Datetime - """Reads a single `Database` that is related to this `FieldBehavior`.""" - database: Database + """Database that owns this resource (database-scoped isolation)""" databaseId: UUID! - """Reads a single `Field` that is related to this `FieldBehavior`.""" - field: Field - fieldId: UUID! + """ + Reads a single `EmailIdentity` that is related to this `EmailSiteIdentity`. + """ + emailIdentity: EmailIdentity + + """Identity this site sends as""" + emailIdentityId: UUID! id: UUID! - modifier: String! - scope: String! - sortOrder: Int! + + """Reads a single `Site` that is related to this `EmailSiteIdentity`.""" + site: Site + + """Site whose mail is sent as the bound identity""" + siteId: UUID! updatedAt: Datetime } -"""A connection to a list of `FieldBehavior` values.""" -type FieldBehaviorConnection { +"""A connection to a list of `EmailSiteIdentity` values.""" +type EmailSiteIdentityConnection { """ - A list of edges which contains the `FieldBehavior` and cursor to aid in pagination. + A list of edges which contains the `EmailSiteIdentity` and cursor to aid in pagination. """ - edges: [FieldBehaviorEdge]! + edges: [EmailSiteIdentityEdge]! - """A list of `FieldBehavior` objects.""" - nodes: [FieldBehavior]! + """A list of `EmailSiteIdentity` objects.""" + nodes: [EmailSiteIdentity]! """Information to aid in pagination.""" pageInfo: PageInfo! - """The count of *all* `FieldBehavior` you could get from the connection.""" + """ + The count of *all* `EmailSiteIdentity` you could get from the connection. + """ totalCount: Int! } -"""A `FieldBehavior` edge in the connection.""" -type FieldBehaviorEdge { +"""A `EmailSiteIdentity` edge in the connection.""" +type EmailSiteIdentityEdge { """A cursor for use in pagination.""" cursor: Cursor - """The `FieldBehavior` at the end of the edge.""" - node: FieldBehavior + """The `EmailSiteIdentity` at the end of the edge.""" + node: EmailSiteIdentity } """ -A filter to be used against `FieldBehavior` object types. All fields are combined with a logical ‘and.’ +A filter to be used against `EmailSiteIdentity` object types. All fields are combined with a logical ‘and.’ """ -input FieldBehaviorFilter { +input EmailSiteIdentityFilter { """Checks for all expressions in this list.""" - and: [FieldBehaviorFilter!] + and: [EmailSiteIdentityFilter!] """Filter by the object’s `createdAt` field.""" createdAt: DatetimeFilter - """Filter by the object’s `database` relation.""" - database: DatabaseFilter - """Filter by the object’s `databaseId` field.""" databaseId: UUIDFilter - """Filter by the object’s `field` relation.""" - field: FieldFilter + """Filter by the object’s `emailIdentity` relation.""" + emailIdentity: EmailIdentityFilter - """Filter by the object’s `fieldId` field.""" - fieldId: UUIDFilter + """Filter by the object’s `emailIdentityId` field.""" + emailIdentityId: UUIDFilter """Filter by the object’s `id` field.""" id: UUIDFilter - """Filter by the object’s `modifier` field.""" - modifier: StringFilter - """Negates the expression.""" - not: FieldBehaviorFilter + not: EmailSiteIdentityFilter """Checks for any expressions in this list.""" - or: [FieldBehaviorFilter!] + or: [EmailSiteIdentityFilter!] - """Filter by the object’s `scope` field.""" - scope: StringFilter + """Filter by the object’s `site` relation.""" + site: SiteFilter - """Filter by the object’s `sortOrder` field.""" - sortOrder: IntFilter + """Filter by the object’s `siteId` field.""" + siteId: UUIDFilter """Filter by the object’s `updatedAt` field.""" updatedAt: DatetimeFilter } -"""An input for mutations affecting `FieldBehavior`""" -input FieldBehaviorInput { +"""An input for mutations affecting `EmailSiteIdentity`""" +input EmailSiteIdentityInput { createdAt: Datetime - databaseId: UUID - fieldId: UUID! + + """Database that owns this resource (database-scoped isolation)""" + databaseId: UUID! + + """Identity this site sends as""" + emailIdentityId: UUID! id: UUID - modifier: String - scope: String! - sortOrder: Int + + """Site whose mail is sent as the bound identity""" + siteId: UUID! updatedAt: Datetime } -"""Methods to use when ordering `FieldBehavior`.""" -enum FieldBehaviorOrderBy { +"""Methods to use when ordering `EmailSiteIdentity`.""" +enum EmailSiteIdentityOrderBy { CREATED_AT_ASC CREATED_AT_DESC DATABASE_ID_ASC DATABASE_ID_DESC - FIELD_ID_ASC - FIELD_ID_DESC + EMAIL_IDENTITY_ID_ASC + EMAIL_IDENTITY_ID_DESC ID_ASC ID_DESC - MODIFIER_ASC - MODIFIER_DESC NATURAL PRIMARY_KEY_ASC PRIMARY_KEY_DESC - SCOPE_ASC - SCOPE_DESC - SORT_ORDER_ASC - SORT_ORDER_DESC + SITE_ID_ASC + SITE_ID_DESC UPDATED_AT_ASC UPDATED_AT_DESC } """ -Represents an update to a `FieldBehavior`. Fields that are set will be updated. +Represents an update to a `EmailSiteIdentity`. Fields that are set will be updated. """ -input FieldBehaviorPatch { +input EmailSiteIdentityPatch { createdAt: Datetime + + """Database that owns this resource (database-scoped isolation)""" databaseId: UUID - fieldId: UUID + + """Identity this site sends as""" + emailIdentityId: UUID id: UUID - modifier: String - scope: String - sortOrder: Int + + """Site whose mail is sent as the bound identity""" + siteId: UUID updatedAt: Datetime } -"""A connection to a list of `Field` values.""" -type FieldConnection { +type EmbeddingChunk { + chunkOverlap: Int! + chunkSize: Int! + chunkStrategy: String! + chunkingTaskName: String! + + """Reads a single `Table` that is related to this `EmbeddingChunk`.""" + chunksTable: Table + chunksTableId: UUID + chunksTableName: String + contentFieldName: String! + createdAt: Datetime + + """Reads a single `Database` that is related to this `EmbeddingChunk`.""" + database: Database + databaseId: UUID! + dimensions: Int! + + """Reads a single `Field` that is related to this `EmbeddingChunk`.""" + embeddingField: Field + embeddingFieldId: UUID + embeddingModel: String + embeddingProvider: String + enqueueChunkingJob: Boolean! + id: UUID! + metadataFields: JSON + metric: String! + + """Reads a single `Field` that is related to this `EmbeddingChunk`.""" + parentFkField: Field + parentFkFieldId: UUID + searchIndexes: JSON + + """Reads a single `Table` that is related to this `EmbeddingChunk`.""" + table: Table + tableId: UUID! + updatedAt: Datetime +} + +"""A connection to a list of `EmbeddingChunk` values.""" +type EmbeddingChunkConnection { """ - A list of edges which contains the `Field` and cursor to aid in pagination. + A list of edges which contains the `EmbeddingChunk` and cursor to aid in pagination. """ - edges: [FieldEdge]! + edges: [EmbeddingChunkEdge]! - """A list of `Field` objects.""" - nodes: [Field]! + """A list of `EmbeddingChunk` objects.""" + nodes: [EmbeddingChunk]! """Information to aid in pagination.""" pageInfo: PageInfo! - """The count of *all* `Field` you could get from the connection.""" + """The count of *all* `EmbeddingChunk` you could get from the connection.""" totalCount: Int! } -"""A `Field` edge in the connection.""" -type FieldEdge { +"""A `EmbeddingChunk` edge in the connection.""" +type EmbeddingChunkEdge { """A cursor for use in pagination.""" cursor: Cursor - """The `Field` at the end of the edge.""" - node: Field + """The `EmbeddingChunk` at the end of the edge.""" + node: EmbeddingChunk } """ -A filter to be used against `Field` object types. All fields are combined with a logical ‘and.’ +A filter to be used against `EmbeddingChunk` object types. All fields are combined with a logical ‘and.’ """ -input FieldFilter { +input EmbeddingChunkFilter { """Checks for all expressions in this list.""" - and: [FieldFilter!] + and: [EmbeddingChunkFilter!] - """Filter by the object’s `apiRequired` field.""" - apiRequired: BooleanFilter + """Filter by the object’s `chunkOverlap` field.""" + chunkOverlap: IntFilter - """Filter by the object’s `category` field.""" - category: ObjectCategoryFilter + """Filter by the object’s `chunkSize` field.""" + chunkSize: IntFilter - """Filter by the object’s `chk` field.""" - chk: JSONFilter + """Filter by the object’s `chunkStrategy` field.""" + chunkStrategy: StringFilter - """Filter by the object’s `chkExpr` field.""" - chkExpr: JSONFilter + """Filter by the object’s `chunkingTaskName` field.""" + chunkingTaskName: StringFilter + + """Filter by the object’s `chunksTable` relation.""" + chunksTable: TableFilter + + """A related `chunksTable` exists.""" + chunksTableExists: Boolean + + """Filter by the object’s `chunksTableId` field.""" + chunksTableId: UUIDFilter + + """Filter by the object’s `chunksTableName` field.""" + chunksTableName: StringFilter + + """Filter by the object’s `contentFieldName` field.""" + contentFieldName: StringFilter """Filter by the object’s `createdAt` field.""" createdAt: DatetimeFilter @@ -11936,92 +12260,53 @@ input FieldFilter { """Filter by the object’s `databaseId` field.""" databaseId: UUIDFilter - """Filter by the object’s `defaultValue` field.""" - defaultValue: JSONFilter - - """Filter by the object’s `description` field.""" - description: StringFilter - - """Filter by the object’s `embeddingChunksByEmbeddingFieldId` relation.""" - embeddingChunksByEmbeddingFieldId: FieldToManyEmbeddingChunkFilter - - """`embeddingChunksByEmbeddingFieldId` exist.""" - embeddingChunksByEmbeddingFieldIdExist: Boolean - - """Filter by the object’s `embeddingChunksByParentFkFieldId` relation.""" - embeddingChunksByParentFkFieldId: FieldToManyEmbeddingChunkFilter + """Filter by the object’s `dimensions` field.""" + dimensions: IntFilter - """`embeddingChunksByParentFkFieldId` exist.""" - embeddingChunksByParentFkFieldIdExist: Boolean + """Filter by the object’s `embeddingField` relation.""" + embeddingField: FieldFilter - """Filter by the object’s `fieldBehaviors` relation.""" - fieldBehaviors: FieldToManyFieldBehaviorFilter + """A related `embeddingField` exists.""" + embeddingFieldExists: Boolean - """`fieldBehaviors` exist.""" - fieldBehaviorsExist: Boolean + """Filter by the object’s `embeddingFieldId` field.""" + embeddingFieldId: UUIDFilter - """Filter by the object’s `fieldOrder` field.""" - fieldOrder: IntFilter + """Filter by the object’s `embeddingModel` field.""" + embeddingModel: StringFilter - """Filter by the object’s `generationExpression` field.""" - generationExpression: JSONFilter + """Filter by the object’s `embeddingProvider` field.""" + embeddingProvider: StringFilter - """Filter by the object’s `generationType` field.""" - generationType: StringFilter + """Filter by the object’s `enqueueChunkingJob` field.""" + enqueueChunkingJob: BooleanFilter """Filter by the object’s `id` field.""" id: UUIDFilter - """Filter by the object’s `identityGeneration` field.""" - identityGeneration: StringFilter - - """Filter by the object’s `identityOptions` field.""" - identityOptions: JSONFilter - - """Filter by the object’s `isRequired` field.""" - isRequired: BooleanFilter - - """Filter by the object’s `label` field.""" - label: StringFilter - - """Filter by the object’s `max` field.""" - max: FloatFilter - - """Filter by the object’s `min` field.""" - min: FloatFilter + """Filter by the object’s `metadataFields` field.""" + metadataFields: JSONFilter - """Filter by the object’s `name` field.""" - name: StringFilter + """Filter by the object’s `metric` field.""" + metric: StringFilter """Negates the expression.""" - not: FieldFilter + not: EmbeddingChunkFilter """Checks for any expressions in this list.""" - or: [FieldFilter!] - - """Filter by the object’s `partitionsByPartitionKeyId` relation.""" - partitionsByPartitionKeyId: FieldToManyPartitionFilter - - """`partitionsByPartitionKeyId` exist.""" - partitionsByPartitionKeyIdExist: Boolean - - """Filter by the object’s `regexp` field.""" - regexp: StringFilter - - """Filter by the object’s `smartTags` field.""" - smartTags: JSONFilter + or: [EmbeddingChunkFilter!] - """Filter by the object’s `spatialRelations` relation.""" - spatialRelations: FieldToManySpatialRelationFilter + """Filter by the object’s `parentFkField` relation.""" + parentFkField: FieldFilter - """Filter by the object’s `spatialRelationsByRefFieldId` relation.""" - spatialRelationsByRefFieldId: FieldToManySpatialRelationFilter + """A related `parentFkField` exists.""" + parentFkFieldExists: Boolean - """`spatialRelationsByRefFieldId` exist.""" - spatialRelationsByRefFieldIdExist: Boolean + """Filter by the object’s `parentFkFieldId` field.""" + parentFkFieldId: UUIDFilter - """`spatialRelations` exist.""" - spatialRelationsExist: Boolean + """Filter by the object’s `searchIndexes` field.""" + searchIndexes: JSONFilter """Filter by the object’s `table` relation.""" table: TableFilter @@ -12029,472 +12314,324 @@ input FieldFilter { """Filter by the object’s `tableId` field.""" tableId: UUIDFilter - """Filter by the object’s `tags` field.""" - tags: StringListFilter - - """Filter by the object’s `type` field.""" - type: JSONFilter - """Filter by the object’s `updatedAt` field.""" updatedAt: DatetimeFilter } -"""An input for mutations affecting `Field`""" -input FieldInput { - apiRequired: Boolean - category: ObjectCategory - chk: JSON - chkExpr: JSON +"""An input for mutations affecting `EmbeddingChunk`""" +input EmbeddingChunkInput { + chunkOverlap: Int + chunkSize: Int + chunkStrategy: String + chunkingTaskName: String + chunksTableId: UUID + chunksTableName: String + contentFieldName: String createdAt: Datetime databaseId: UUID - defaultValue: JSON - description: String - fieldOrder: Int - generationExpression: JSON - generationType: String + dimensions: Int + embeddingFieldId: UUID + embeddingModel: String + embeddingProvider: String + enqueueChunkingJob: Boolean id: UUID - identityGeneration: String - identityOptions: JSON - isRequired: Boolean - label: String - max: Float - min: Float - name: String! - regexp: String - smartTags: JSON + metadataFields: JSON + metric: String + parentFkFieldId: UUID + searchIndexes: JSON tableId: UUID! - tags: [String] - type: JSON! updatedAt: Datetime } -"""Methods to use when ordering `Field`.""" -enum FieldOrderBy { - API_REQUIRED_ASC - API_REQUIRED_DESC - CATEGORY_ASC - CATEGORY_DESC - CHK_ASC - CHK_DESC - CHK_EXPR_ASC - CHK_EXPR_DESC +"""Methods to use when ordering `EmbeddingChunk`.""" +enum EmbeddingChunkOrderBy { + CHUNKING_TASK_NAME_ASC + CHUNKING_TASK_NAME_DESC + CHUNKS_TABLE_ID_ASC + CHUNKS_TABLE_ID_DESC + CHUNKS_TABLE_NAME_ASC + CHUNKS_TABLE_NAME_DESC + CHUNK_OVERLAP_ASC + CHUNK_OVERLAP_DESC + CHUNK_SIZE_ASC + CHUNK_SIZE_DESC + CHUNK_STRATEGY_ASC + CHUNK_STRATEGY_DESC + CONTENT_FIELD_NAME_ASC + CONTENT_FIELD_NAME_DESC CREATED_AT_ASC CREATED_AT_DESC DATABASE_ID_ASC DATABASE_ID_DESC - DEFAULT_VALUE_ASC - DEFAULT_VALUE_DESC - DESCRIPTION_ASC - DESCRIPTION_DESC - FIELD_ORDER_ASC - FIELD_ORDER_DESC - GENERATION_EXPRESSION_ASC - GENERATION_EXPRESSION_DESC - GENERATION_TYPE_ASC - GENERATION_TYPE_DESC - IDENTITY_GENERATION_ASC - IDENTITY_GENERATION_DESC - IDENTITY_OPTIONS_ASC - IDENTITY_OPTIONS_DESC + DIMENSIONS_ASC + DIMENSIONS_DESC + EMBEDDING_FIELD_ID_ASC + EMBEDDING_FIELD_ID_DESC + EMBEDDING_MODEL_ASC + EMBEDDING_MODEL_DESC + EMBEDDING_PROVIDER_ASC + EMBEDDING_PROVIDER_DESC + ENQUEUE_CHUNKING_JOB_ASC + ENQUEUE_CHUNKING_JOB_DESC ID_ASC ID_DESC - IS_REQUIRED_ASC - IS_REQUIRED_DESC - LABEL_ASC - LABEL_DESC - MAX_ASC - MAX_DESC - MIN_ASC - MIN_DESC - NAME_ASC - NAME_DESC + METADATA_FIELDS_ASC + METADATA_FIELDS_DESC + METRIC_ASC + METRIC_DESC NATURAL + PARENT_FK_FIELD_ID_ASC + PARENT_FK_FIELD_ID_DESC PRIMARY_KEY_ASC PRIMARY_KEY_DESC - REGEXP_ASC - REGEXP_DESC - SMART_TAGS_ASC - SMART_TAGS_DESC + SEARCH_INDEXES_ASC + SEARCH_INDEXES_DESC TABLE_ID_ASC TABLE_ID_DESC - TAGS_ASC - TAGS_DESC - TYPE_ASC - TYPE_DESC UPDATED_AT_ASC UPDATED_AT_DESC } """ -Represents an update to a `Field`. Fields that are set will be updated. +Represents an update to a `EmbeddingChunk`. Fields that are set will be updated. """ -input FieldPatch { - apiRequired: Boolean - category: ObjectCategory - chk: JSON - chkExpr: JSON +input EmbeddingChunkPatch { + chunkOverlap: Int + chunkSize: Int + chunkStrategy: String + chunkingTaskName: String + chunksTableId: UUID + chunksTableName: String + contentFieldName: String createdAt: Datetime databaseId: UUID - defaultValue: JSON - description: String - fieldOrder: Int - generationExpression: JSON - generationType: String + dimensions: Int + embeddingFieldId: UUID + embeddingModel: String + embeddingProvider: String + enqueueChunkingJob: Boolean id: UUID - identityGeneration: String - identityOptions: JSON - isRequired: Boolean - label: String - max: Float - min: Float - name: String - regexp: String - smartTags: JSON + metadataFields: JSON + metric: String + parentFkFieldId: UUID + searchIndexes: JSON tableId: UUID - tags: [String] - type: JSON updatedAt: Datetime } -""" -A filter to be used against many `EmbeddingChunk` object types. All fields are combined with a logical ‘and.’ -""" -input FieldToManyEmbeddingChunkFilter { - """Filters to entities where every related entity matches.""" - every: EmbeddingChunkFilter +type Enum { + category: ObjectCategory! - """Filters to entities where no related entity matches.""" - none: EmbeddingChunkFilter + """Reads a single `Database` that is related to this `Enum`.""" + database: Database + databaseId: UUID! + description: String + id: UUID! + label: String + name: String! - """Filters to entities where at least one related entity matches.""" - some: EmbeddingChunkFilter + """Reads a single `Schema` that is related to this `Enum`.""" + schema: Schema + schemaId: UUID! + smartTags: JSON + tags: [String]! + values: [String]! } -""" -A filter to be used against many `FieldBehavior` object types. All fields are combined with a logical ‘and.’ -""" -input FieldToManyFieldBehaviorFilter { - """Filters to entities where every related entity matches.""" - every: FieldBehaviorFilter +"""A connection to a list of `Enum` values.""" +type EnumConnection { + """ + A list of edges which contains the `Enum` and cursor to aid in pagination. + """ + edges: [EnumEdge]! - """Filters to entities where no related entity matches.""" - none: FieldBehaviorFilter + """A list of `Enum` objects.""" + nodes: [Enum]! - """Filters to entities where at least one related entity matches.""" - some: FieldBehaviorFilter -} + """Information to aid in pagination.""" + pageInfo: PageInfo! -""" -A filter to be used against many `Partition` object types. All fields are combined with a logical ‘and.’ -""" -input FieldToManyPartitionFilter { - """Filters to entities where every related entity matches.""" - every: PartitionFilter + """The count of *all* `Enum` you could get from the connection.""" + totalCount: Int! +} - """Filters to entities where no related entity matches.""" - none: PartitionFilter +"""A `Enum` edge in the connection.""" +type EnumEdge { + """A cursor for use in pagination.""" + cursor: Cursor - """Filters to entities where at least one related entity matches.""" - some: PartitionFilter + """The `Enum` at the end of the edge.""" + node: Enum } """ -A filter to be used against many `SpatialRelation` object types. All fields are combined with a logical ‘and.’ +A filter to be used against `Enum` object types. All fields are combined with a logical ‘and.’ """ -input FieldToManySpatialRelationFilter { - """Filters to entities where every related entity matches.""" - every: SpatialRelationFilter +input EnumFilter { + """Checks for all expressions in this list.""" + and: [EnumFilter!] - """Filters to entities where no related entity matches.""" - none: SpatialRelationFilter + """Filter by the object’s `category` field.""" + category: ObjectCategoryFilter - """Filters to entities where at least one related entity matches.""" - some: SpatialRelationFilter -} + """Filter by the object’s `database` relation.""" + database: DatabaseFilter -""" -A filter to be used against Float fields. All fields are combined with a logical ‘and.’ -""" -input FloatFilter { - """ - Not equal to the specified value, treating null like an ordinary value. - """ - distinctFrom: Float + """Filter by the object’s `databaseId` field.""" + databaseId: UUIDFilter - """Equal to the specified value.""" - equalTo: Float + """Filter by the object’s `description` field.""" + description: StringFilter - """Greater than the specified value.""" - greaterThan: Float + """Filter by the object’s `id` field.""" + id: UUIDFilter - """Greater than or equal to the specified value.""" - greaterThanOrEqualTo: Float + """Filter by the object’s `label` field.""" + label: StringFilter - """Included in the specified list.""" - in: [Float!] + """Filter by the object’s `name` field.""" + name: StringFilter - """ - Is null (if `true` is specified) or is not null (if `false` is specified). - """ - isNull: Boolean + """Negates the expression.""" + not: EnumFilter - """Less than the specified value.""" - lessThan: Float + """Checks for any expressions in this list.""" + or: [EnumFilter!] - """Less than or equal to the specified value.""" - lessThanOrEqualTo: Float + """Filter by the object’s `schema` relation.""" + schema: SchemaFilter - """Equal to the specified value, treating null like an ordinary value.""" - notDistinctFrom: Float + """Filter by the object’s `schemaId` field.""" + schemaId: UUIDFilter - """Not equal to the specified value.""" - notEqualTo: Float + """Filter by the object’s `smartTags` field.""" + smartTags: JSONFilter - """Not included in the specified list.""" - notIn: [Float!] + """Filter by the object’s `tags` field.""" + tags: StringListFilter + + """Filter by the object’s `values` field.""" + values: StringListFilter } -type ForeignKeyConstraint { +"""An input for mutations affecting `Enum`""" +input EnumInput { + category: ObjectCategory + databaseId: UUID! + description: String + id: UUID + label: String + name: String! + schemaId: UUID! + smartTags: JSON + tags: [String] + values: [String] +} + +"""Methods to use when ordering `Enum`.""" +enum EnumOrderBy { + CATEGORY_ASC + CATEGORY_DESC + DATABASE_ID_ASC + DATABASE_ID_DESC + DESCRIPTION_ASC + DESCRIPTION_DESC + ID_ASC + ID_DESC + LABEL_ASC + LABEL_DESC + NAME_ASC + NAME_DESC + NATURAL + PRIMARY_KEY_ASC + PRIMARY_KEY_DESC + SCHEMA_ID_ASC + SCHEMA_ID_DESC + SMART_TAGS_ASC + SMART_TAGS_DESC + TAGS_ASC + TAGS_DESC + VALUES_ASC + VALUES_DESC +} + +"""Represents an update to a `Enum`. Fields that are set will be updated.""" +input EnumPatch { + category: ObjectCategory + databaseId: UUID + description: String + id: UUID + label: String + name: String + schemaId: UUID + smartTags: JSON + tags: [String] + values: [String] +} + +type ExclusionConstraint { + accessMethod: String! category: ObjectCategory! createdAt: Datetime """ - Reads a single `Database` that is related to this `ForeignKeyConstraint`. + Reads a single `Database` that is related to this `ExclusionConstraint`. """ database: Database databaseId: UUID! - deleteAction: String - deleteSetFieldIds: [UUID] - description: String + elementExpr: JSON fieldIds: [UUID]! - - """ - Reads and enables pagination through a set of `ForeignKeyConstraintBehavior`. - """ - foreignKeyConstraintBehaviors( - """Read all values in the set after (below) this cursor.""" - after: Cursor - - """Read all values in the set before (above) this cursor.""" - before: Cursor - - """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 - - """The method to use when ordering `ForeignKeyConstraintBehavior`.""" - orderBy: [ForeignKeyConstraintBehaviorOrderBy!] = [PRIMARY_KEY_ASC] - - """ - A filter to be used in determining which values should be returned by the collection. - """ - where: ForeignKeyConstraintBehaviorFilter - ): ForeignKeyConstraintBehaviorConnection! id: UUID! - initiallyDeferred: Boolean! - isDeferrable: Boolean! name: String - refFieldIds: [UUID]! - - """Reads a single `Table` that is related to this `ForeignKeyConstraint`.""" - refTable: Table - refTableId: UUID! + operators: [String]! smartTags: JSON - """Reads a single `Table` that is related to this `ForeignKeyConstraint`.""" + """Reads a single `Table` that is related to this `ExclusionConstraint`.""" table: Table tableId: UUID! tags: [String]! type: String - updateAction: String - updatedAt: Datetime - withPeriod: Boolean! -} - -type ForeignKeyConstraintBehavior { - createdAt: Datetime - - """ - Reads a single `Database` that is related to this `ForeignKeyConstraintBehavior`. - """ - database: Database - databaseId: UUID! - - """ - Reads a single `ForeignKeyConstraint` that is related to this `ForeignKeyConstraintBehavior`. - """ - foreignKeyConstraint: ForeignKeyConstraint - foreignKeyConstraintId: UUID! - id: UUID! - modifier: String! - scope: String! - sortOrder: Int! updatedAt: Datetime + whereClause: JSON } -"""A connection to a list of `ForeignKeyConstraintBehavior` values.""" -type ForeignKeyConstraintBehaviorConnection { +"""A connection to a list of `ExclusionConstraint` values.""" +type ExclusionConstraintConnection { """ - A list of edges which contains the `ForeignKeyConstraintBehavior` and cursor to aid in pagination. + A list of edges which contains the `ExclusionConstraint` and cursor to aid in pagination. """ - edges: [ForeignKeyConstraintBehaviorEdge]! + edges: [ExclusionConstraintEdge]! - """A list of `ForeignKeyConstraintBehavior` objects.""" - nodes: [ForeignKeyConstraintBehavior]! + """A list of `ExclusionConstraint` objects.""" + nodes: [ExclusionConstraint]! """Information to aid in pagination.""" pageInfo: PageInfo! """ - The count of *all* `ForeignKeyConstraintBehavior` you could get from the connection. + The count of *all* `ExclusionConstraint` you could get from the connection. """ totalCount: Int! } -"""A `ForeignKeyConstraintBehavior` edge in the connection.""" -type ForeignKeyConstraintBehaviorEdge { +"""A `ExclusionConstraint` edge in the connection.""" +type ExclusionConstraintEdge { """A cursor for use in pagination.""" cursor: Cursor - """The `ForeignKeyConstraintBehavior` at the end of the edge.""" - node: ForeignKeyConstraintBehavior -} - -""" -A filter to be used against `ForeignKeyConstraintBehavior` object types. All fields are combined with a logical ‘and.’ -""" -input ForeignKeyConstraintBehaviorFilter { - """Checks for all expressions in this list.""" - and: [ForeignKeyConstraintBehaviorFilter!] - - """Filter by the object’s `createdAt` field.""" - createdAt: DatetimeFilter - - """Filter by the object’s `database` relation.""" - database: DatabaseFilter - - """Filter by the object’s `databaseId` field.""" - databaseId: UUIDFilter - - """Filter by the object’s `foreignKeyConstraint` relation.""" - foreignKeyConstraint: ForeignKeyConstraintFilter - - """Filter by the object’s `foreignKeyConstraintId` field.""" - foreignKeyConstraintId: UUIDFilter - - """Filter by the object’s `id` field.""" - id: UUIDFilter - - """Filter by the object’s `modifier` field.""" - modifier: StringFilter - - """Negates the expression.""" - not: ForeignKeyConstraintBehaviorFilter - - """Checks for any expressions in this list.""" - or: [ForeignKeyConstraintBehaviorFilter!] - - """Filter by the object’s `scope` field.""" - scope: StringFilter - - """Filter by the object’s `sortOrder` field.""" - sortOrder: IntFilter - - """Filter by the object’s `updatedAt` field.""" - updatedAt: DatetimeFilter -} - -"""An input for mutations affecting `ForeignKeyConstraintBehavior`""" -input ForeignKeyConstraintBehaviorInput { - createdAt: Datetime - databaseId: UUID - foreignKeyConstraintId: UUID! - id: UUID - modifier: String - scope: String! - sortOrder: Int - updatedAt: Datetime -} - -"""Methods to use when ordering `ForeignKeyConstraintBehavior`.""" -enum ForeignKeyConstraintBehaviorOrderBy { - CREATED_AT_ASC - CREATED_AT_DESC - DATABASE_ID_ASC - DATABASE_ID_DESC - FOREIGN_KEY_CONSTRAINT_ID_ASC - FOREIGN_KEY_CONSTRAINT_ID_DESC - ID_ASC - ID_DESC - MODIFIER_ASC - MODIFIER_DESC - NATURAL - PRIMARY_KEY_ASC - PRIMARY_KEY_DESC - SCOPE_ASC - SCOPE_DESC - SORT_ORDER_ASC - SORT_ORDER_DESC - UPDATED_AT_ASC - UPDATED_AT_DESC + """The `ExclusionConstraint` at the end of the edge.""" + node: ExclusionConstraint } """ -Represents an update to a `ForeignKeyConstraintBehavior`. Fields that are set will be updated. +A filter to be used against `ExclusionConstraint` object types. All fields are combined with a logical ‘and.’ """ -input ForeignKeyConstraintBehaviorPatch { - createdAt: Datetime - databaseId: UUID - foreignKeyConstraintId: UUID - id: UUID - modifier: String - scope: String - sortOrder: Int - updatedAt: Datetime -} - -"""A connection to a list of `ForeignKeyConstraint` values.""" -type ForeignKeyConstraintConnection { - """ - A list of edges which contains the `ForeignKeyConstraint` and cursor to aid in pagination. - """ - edges: [ForeignKeyConstraintEdge]! - - """A list of `ForeignKeyConstraint` objects.""" - nodes: [ForeignKeyConstraint]! - - """Information to aid in pagination.""" - pageInfo: PageInfo! - - """ - The count of *all* `ForeignKeyConstraint` you could get from the connection. - """ - totalCount: Int! -} - -"""A `ForeignKeyConstraint` edge in the connection.""" -type ForeignKeyConstraintEdge { - """A cursor for use in pagination.""" - cursor: Cursor - - """The `ForeignKeyConstraint` at the end of the edge.""" - node: ForeignKeyConstraint -} +input ExclusionConstraintFilter { + """Filter by the object’s `accessMethod` field.""" + accessMethod: StringFilter -""" -A filter to be used against `ForeignKeyConstraint` object types. All fields are combined with a logical ‘and.’ -""" -input ForeignKeyConstraintFilter { """Checks for all expressions in this list.""" - and: [ForeignKeyConstraintFilter!] + and: [ExclusionConstraintFilter!] """Filter by the object’s `category` field.""" category: ObjectCategoryFilter @@ -12508,50 +12645,26 @@ input ForeignKeyConstraintFilter { """Filter by the object’s `databaseId` field.""" databaseId: UUIDFilter - """Filter by the object’s `deleteAction` field.""" - deleteAction: StringFilter - - """Filter by the object’s `deleteSetFieldIds` field.""" - deleteSetFieldIds: UUIDListFilter - - """Filter by the object’s `description` field.""" - description: StringFilter + """Filter by the object’s `elementExpr` field.""" + elementExpr: JSONFilter """Filter by the object’s `fieldIds` field.""" fieldIds: UUIDListFilter - """Filter by the object’s `foreignKeyConstraintBehaviors` relation.""" - foreignKeyConstraintBehaviors: ForeignKeyConstraintToManyForeignKeyConstraintBehaviorFilter - - """`foreignKeyConstraintBehaviors` exist.""" - foreignKeyConstraintBehaviorsExist: Boolean - """Filter by the object’s `id` field.""" id: UUIDFilter - """Filter by the object’s `initiallyDeferred` field.""" - initiallyDeferred: BooleanFilter - - """Filter by the object’s `isDeferrable` field.""" - isDeferrable: BooleanFilter - """Filter by the object’s `name` field.""" name: StringFilter """Negates the expression.""" - not: ForeignKeyConstraintFilter - - """Checks for any expressions in this list.""" - or: [ForeignKeyConstraintFilter!] - - """Filter by the object’s `refFieldIds` field.""" - refFieldIds: UUIDListFilter + not: ExclusionConstraintFilter - """Filter by the object’s `refTable` relation.""" - refTable: TableFilter + """Filter by the object’s `operators` field.""" + operators: StringListFilter - """Filter by the object’s `refTableId` field.""" - refTableId: UUIDFilter + """Checks for any expressions in this list.""" + or: [ExclusionConstraintFilter!] """Filter by the object’s `smartTags` field.""" smartTags: JSONFilter @@ -12568,71 +12681,55 @@ input ForeignKeyConstraintFilter { """Filter by the object’s `type` field.""" type: StringFilter - """Filter by the object’s `updateAction` field.""" - updateAction: StringFilter - """Filter by the object’s `updatedAt` field.""" updatedAt: DatetimeFilter - """Filter by the object’s `withPeriod` field.""" - withPeriod: BooleanFilter + """Filter by the object’s `whereClause` field.""" + whereClause: JSONFilter } -"""An input for mutations affecting `ForeignKeyConstraint`""" -input ForeignKeyConstraintInput { +"""An input for mutations affecting `ExclusionConstraint`""" +input ExclusionConstraintInput { + accessMethod: String category: ObjectCategory createdAt: Datetime databaseId: UUID - deleteAction: String - deleteSetFieldIds: [UUID] - description: String - fieldIds: [UUID]! + elementExpr: JSON + fieldIds: [UUID] id: UUID - initiallyDeferred: Boolean - isDeferrable: Boolean name: String - refFieldIds: [UUID]! - refTableId: UUID! + operators: [String] smartTags: JSON tableId: UUID! tags: [String] type: String - updateAction: String updatedAt: Datetime - withPeriod: Boolean + whereClause: JSON } -"""Methods to use when ordering `ForeignKeyConstraint`.""" -enum ForeignKeyConstraintOrderBy { +"""Methods to use when ordering `ExclusionConstraint`.""" +enum ExclusionConstraintOrderBy { + ACCESS_METHOD_ASC + ACCESS_METHOD_DESC CATEGORY_ASC CATEGORY_DESC CREATED_AT_ASC CREATED_AT_DESC DATABASE_ID_ASC DATABASE_ID_DESC - DELETE_ACTION_ASC - DELETE_ACTION_DESC - DELETE_SET_FIELD_IDS_ASC - DELETE_SET_FIELD_IDS_DESC - DESCRIPTION_ASC - DESCRIPTION_DESC + ELEMENT_EXPR_ASC + ELEMENT_EXPR_DESC FIELD_IDS_ASC FIELD_IDS_DESC ID_ASC ID_DESC - INITIALLY_DEFERRED_ASC - INITIALLY_DEFERRED_DESC - IS_DEFERRABLE_ASC - IS_DEFERRABLE_DESC NAME_ASC NAME_DESC NATURAL + OPERATORS_ASC + OPERATORS_DESC PRIMARY_KEY_ASC PRIMARY_KEY_DESC - REF_FIELD_IDS_ASC - REF_FIELD_IDS_DESC - REF_TABLE_ID_ASC - REF_TABLE_ID_DESC SMART_TAGS_ASC SMART_TAGS_DESC TABLE_ID_ASC @@ -12643,248 +12740,291 @@ enum ForeignKeyConstraintOrderBy { TYPE_DESC UPDATED_AT_ASC UPDATED_AT_DESC - UPDATE_ACTION_ASC - UPDATE_ACTION_DESC - WITH_PERIOD_ASC - WITH_PERIOD_DESC + WHERE_CLAUSE_ASC + WHERE_CLAUSE_DESC } """ -Represents an update to a `ForeignKeyConstraint`. Fields that are set will be updated. +Represents an update to a `ExclusionConstraint`. Fields that are set will be updated. """ -input ForeignKeyConstraintPatch { +input ExclusionConstraintPatch { + accessMethod: String category: ObjectCategory createdAt: Datetime databaseId: UUID - deleteAction: String - deleteSetFieldIds: [UUID] - description: String + elementExpr: JSON fieldIds: [UUID] id: UUID - initiallyDeferred: Boolean - isDeferrable: Boolean name: String - refFieldIds: [UUID] - refTableId: UUID + operators: [String] smartTags: JSON tableId: UUID tags: [String] type: String - updateAction: String updatedAt: Datetime - withPeriod: Boolean -} - -""" -A filter to be used against many `ForeignKeyConstraintBehavior` object types. All fields are combined with a logical ‘and.’ -""" -input ForeignKeyConstraintToManyForeignKeyConstraintBehaviorFilter { - """Filters to entities where every related entity matches.""" - every: ForeignKeyConstraintBehaviorFilter - - """Filters to entities where no related entity matches.""" - none: ForeignKeyConstraintBehaviorFilter - - """Filters to entities where at least one related entity matches.""" - some: ForeignKeyConstraintBehaviorFilter + whereClause: JSON } -type FullTextSearch { +type Field { + apiRequired: Boolean! + category: ObjectCategory! + chk: JSON + chkExpr: JSON createdAt: Datetime - """Reads a single `Database` that is related to this `FullTextSearch`.""" + """Reads a single `Database` that is related to this `Field`.""" database: Database databaseId: UUID! - fieldId: UUID! - fieldIds: [UUID]! - id: UUID! - langColumn: String - langs: [String]! - - """Reads a single `Table` that is related to this `FullTextSearch`.""" - table: Table - tableId: UUID! - updatedAt: Datetime - weights: [String]! -} + defaultValue: JSON + description: String -"""A connection to a list of `FullTextSearch` values.""" -type FullTextSearchConnection { - """ - A list of edges which contains the `FullTextSearch` and cursor to aid in pagination. - """ - edges: [FullTextSearchEdge]! + """Reads and enables pagination through a set of `EmbeddingChunk`.""" + embeddingChunksByEmbeddingFieldId( + """Read all values in the set after (below) this cursor.""" + after: Cursor - """A list of `FullTextSearch` objects.""" - nodes: [FullTextSearch]! + """Read all values in the set before (above) this cursor.""" + before: Cursor - """Information to aid in pagination.""" - pageInfo: PageInfo! + """Only read the first `n` values of the set.""" + first: Int - """The count of *all* `FullTextSearch` you could get from the connection.""" - totalCount: Int! -} + """Only read the last `n` values of the set.""" + last: Int -"""A `FullTextSearch` edge in the connection.""" -type FullTextSearchEdge { - """A cursor for use in pagination.""" - cursor: Cursor + """ + Skip the first `n` values from our `after` cursor, an alternative to cursor + based pagination. May not be used with `last`. + """ + offset: Int - """The `FullTextSearch` at the end of the edge.""" - node: FullTextSearch -} + """The method to use when ordering `EmbeddingChunk`.""" + orderBy: [EmbeddingChunkOrderBy!] = [PRIMARY_KEY_ASC] -""" -A filter to be used against `FullTextSearch` object types. All fields are combined with a logical ‘and.’ -""" -input FullTextSearchFilter { - """Checks for all expressions in this list.""" - and: [FullTextSearchFilter!] + """ + A filter to be used in determining which values should be returned by the collection. + """ + where: EmbeddingChunkFilter + ): EmbeddingChunkConnection! - """Filter by the object’s `createdAt` field.""" - createdAt: DatetimeFilter + """Reads and enables pagination through a set of `EmbeddingChunk`.""" + embeddingChunksByParentFkFieldId( + """Read all values in the set after (below) this cursor.""" + after: Cursor - """Filter by the object’s `database` relation.""" - database: DatabaseFilter + """Read all values in the set before (above) this cursor.""" + before: Cursor - """Filter by the object’s `databaseId` field.""" - databaseId: UUIDFilter + """Only read the first `n` values of the set.""" + first: Int - """Filter by the object’s `fieldId` field.""" - fieldId: UUIDFilter + """Only read the last `n` values of the set.""" + last: Int - """Filter by the object’s `fieldIds` field.""" - fieldIds: UUIDListFilter + """ + Skip the first `n` values from our `after` cursor, an alternative to cursor + based pagination. May not be used with `last`. + """ + offset: Int - """Filter by the object’s `id` field.""" - id: UUIDFilter + """The method to use when ordering `EmbeddingChunk`.""" + orderBy: [EmbeddingChunkOrderBy!] = [PRIMARY_KEY_ASC] - """Filter by the object’s `langColumn` field.""" - langColumn: StringFilter + """ + A filter to be used in determining which values should be returned by the collection. + """ + where: EmbeddingChunkFilter + ): EmbeddingChunkConnection! - """Filter by the object’s `langs` field.""" - langs: StringListFilter + """Reads and enables pagination through a set of `FieldBehavior`.""" + fieldBehaviors( + """Read all values in the set after (below) this cursor.""" + after: Cursor - """Negates the expression.""" - not: FullTextSearchFilter + """Read all values in the set before (above) this cursor.""" + before: Cursor - """Checks for any expressions in this list.""" - or: [FullTextSearchFilter!] + """Only read the first `n` values of the set.""" + first: Int - """Filter by the object’s `table` relation.""" - table: TableFilter + """Only read the last `n` values of the set.""" + last: Int - """Filter by the object’s `tableId` field.""" - tableId: UUIDFilter + """ + Skip the first `n` values from our `after` cursor, an alternative to cursor + based pagination. May not be used with `last`. + """ + offset: Int - """Filter by the object’s `updatedAt` field.""" - updatedAt: DatetimeFilter + """The method to use when ordering `FieldBehavior`.""" + orderBy: [FieldBehaviorOrderBy!] = [PRIMARY_KEY_ASC] - """Filter by the object’s `weights` field.""" - weights: StringListFilter -} + """ + A filter to be used in determining which values should be returned by the collection. + """ + where: FieldBehaviorFilter + ): FieldBehaviorConnection! + fieldOrder: Int! + generationExpression: JSON + generationType: String + id: UUID! + identityGeneration: String + identityOptions: JSON + isRequired: Boolean! + label: String + max: Float + min: Float + name: String! -"""An input for mutations affecting `FullTextSearch`""" -input FullTextSearchInput { - createdAt: Datetime - databaseId: UUID - fieldId: UUID! - fieldIds: [UUID]! - id: UUID - langColumn: String - langs: [String]! + """Reads and enables pagination through a set of `Partition`.""" + partitionsByPartitionKeyId( + """Read all values in the set after (below) this cursor.""" + after: Cursor + + """Read all values in the set before (above) this cursor.""" + before: Cursor + + """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 + + """The method to use when ordering `Partition`.""" + orderBy: [PartitionOrderBy!] = [PRIMARY_KEY_ASC] + + """ + A filter to be used in determining which values should be returned by the collection. + """ + where: PartitionFilter + ): PartitionConnection! + regexp: String + smartTags: JSON + + """Reads and enables pagination through a set of `SpatialRelation`.""" + spatialRelations( + """Read all values in the set after (below) this cursor.""" + after: Cursor + + """Read all values in the set before (above) this cursor.""" + before: Cursor + + """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 + + """The method to use when ordering `SpatialRelation`.""" + orderBy: [SpatialRelationOrderBy!] = [PRIMARY_KEY_ASC] + + """ + A filter to be used in determining which values should be returned by the collection. + """ + where: SpatialRelationFilter + ): SpatialRelationConnection! + + """Reads and enables pagination through a set of `SpatialRelation`.""" + spatialRelationsByRefFieldId( + """Read all values in the set after (below) this cursor.""" + after: Cursor + + """Read all values in the set before (above) this cursor.""" + before: Cursor + + """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 + + """The method to use when ordering `SpatialRelation`.""" + orderBy: [SpatialRelationOrderBy!] = [PRIMARY_KEY_ASC] + + """ + A filter to be used in determining which values should be returned by the collection. + """ + where: SpatialRelationFilter + ): SpatialRelationConnection! + + """Reads a single `Table` that is related to this `Field`.""" + table: Table tableId: UUID! + tags: [String]! + type: JSON! updatedAt: Datetime - weights: [String]! -} - -"""Methods to use when ordering `FullTextSearch`.""" -enum FullTextSearchOrderBy { - CREATED_AT_ASC - CREATED_AT_DESC - DATABASE_ID_ASC - DATABASE_ID_DESC - FIELD_IDS_ASC - FIELD_IDS_DESC - FIELD_ID_ASC - FIELD_ID_DESC - ID_ASC - ID_DESC - LANGS_ASC - LANGS_DESC - LANG_COLUMN_ASC - LANG_COLUMN_DESC - NATURAL - PRIMARY_KEY_ASC - PRIMARY_KEY_DESC - TABLE_ID_ASC - TABLE_ID_DESC - UPDATED_AT_ASC - UPDATED_AT_DESC - WEIGHTS_ASC - WEIGHTS_DESC } -""" -Represents an update to a `FullTextSearch`. Fields that are set will be updated. -""" -input FullTextSearchPatch { +type FieldBehavior { createdAt: Datetime - databaseId: UUID - fieldId: UUID - fieldIds: [UUID] - id: UUID - langColumn: String - langs: [String] - tableId: UUID - updatedAt: Datetime - weights: [String] -} -type Function { - """Reads a single `Database` that is related to this `Function`.""" + """Reads a single `Database` that is related to this `FieldBehavior`.""" database: Database databaseId: UUID! - id: UUID! - name: String! - """Reads a single `Schema` that is related to this `Function`.""" - schema: Schema - schemaId: UUID! + """Reads a single `Field` that is related to this `FieldBehavior`.""" + field: Field + fieldId: UUID! + id: UUID! + modifier: String! + scope: String! + sortOrder: Int! + updatedAt: Datetime } -"""A connection to a list of `Function` values.""" -type FunctionConnection { +"""A connection to a list of `FieldBehavior` values.""" +type FieldBehaviorConnection { """ - A list of edges which contains the `Function` and cursor to aid in pagination. + A list of edges which contains the `FieldBehavior` and cursor to aid in pagination. """ - edges: [FunctionEdge]! + edges: [FieldBehaviorEdge]! - """A list of `Function` objects.""" - nodes: [Function]! + """A list of `FieldBehavior` objects.""" + nodes: [FieldBehavior]! """Information to aid in pagination.""" pageInfo: PageInfo! - """The count of *all* `Function` you could get from the connection.""" + """The count of *all* `FieldBehavior` you could get from the connection.""" totalCount: Int! } -"""A `Function` edge in the connection.""" -type FunctionEdge { +"""A `FieldBehavior` edge in the connection.""" +type FieldBehaviorEdge { """A cursor for use in pagination.""" cursor: Cursor - """The `Function` at the end of the edge.""" - node: Function + """The `FieldBehavior` at the end of the edge.""" + node: FieldBehavior } """ -A filter to be used against `Function` object types. All fields are combined with a logical ‘and.’ +A filter to be used against `FieldBehavior` object types. All fields are combined with a logical ‘and.’ """ -input FunctionFilter { +input FieldBehaviorFilter { """Checks for all expressions in this list.""" - and: [FunctionFilter!] + and: [FieldBehaviorFilter!] + + """Filter by the object’s `createdAt` field.""" + createdAt: DatetimeFilter """Filter by the object’s `database` relation.""" database: DatabaseFilter @@ -12892,542 +13032,696 @@ input FunctionFilter { """Filter by the object’s `databaseId` field.""" databaseId: UUIDFilter + """Filter by the object’s `field` relation.""" + field: FieldFilter + + """Filter by the object’s `fieldId` field.""" + fieldId: UUIDFilter + """Filter by the object’s `id` field.""" id: UUIDFilter - """Filter by the object’s `name` field.""" - name: StringFilter + """Filter by the object’s `modifier` field.""" + modifier: StringFilter """Negates the expression.""" - not: FunctionFilter + not: FieldBehaviorFilter """Checks for any expressions in this list.""" - or: [FunctionFilter!] + or: [FieldBehaviorFilter!] - """Filter by the object’s `schema` relation.""" - schema: SchemaFilter + """Filter by the object’s `scope` field.""" + scope: StringFilter - """Filter by the object’s `schemaId` field.""" - schemaId: UUIDFilter + """Filter by the object’s `sortOrder` field.""" + sortOrder: IntFilter + + """Filter by the object’s `updatedAt` field.""" + updatedAt: DatetimeFilter } -"""An input for mutations affecting `Function`""" -input FunctionInput { - databaseId: UUID! +"""An input for mutations affecting `FieldBehavior`""" +input FieldBehaviorInput { + createdAt: Datetime + databaseId: UUID + fieldId: UUID! id: UUID - name: String! - schemaId: UUID! + modifier: String + scope: String! + sortOrder: Int + updatedAt: Datetime } -"""Methods to use when ordering `Function`.""" -enum FunctionOrderBy { +"""Methods to use when ordering `FieldBehavior`.""" +enum FieldBehaviorOrderBy { + CREATED_AT_ASC + CREATED_AT_DESC DATABASE_ID_ASC DATABASE_ID_DESC + FIELD_ID_ASC + FIELD_ID_DESC ID_ASC ID_DESC - NAME_ASC - NAME_DESC + MODIFIER_ASC + MODIFIER_DESC NATURAL PRIMARY_KEY_ASC PRIMARY_KEY_DESC - SCHEMA_ID_ASC - SCHEMA_ID_DESC + SCOPE_ASC + SCOPE_DESC + SORT_ORDER_ASC + SORT_ORDER_DESC + UPDATED_AT_ASC + UPDATED_AT_DESC } """ -Represents an update to a `Function`. Fields that are set will be updated. +Represents an update to a `FieldBehavior`. Fields that are set will be updated. """ -input FunctionPatch { +input FieldBehaviorPatch { + createdAt: Datetime databaseId: UUID + fieldId: UUID id: UUID - name: String - schemaId: UUID -} - -""" -Compiled hostname index maintained by domain sync triggers; read only through the resolver -""" -type HostnameBinding { - """Domain row this binding was compiled from""" - domainId: UUID! - - """Lowercase hostname (exact or *.parent wildcard)""" - hostname: String! - id: UUID! - - """Whether this binding is a wildcard claim""" - isWildcard: Boolean! - - """Whether the platform drives this hostname's lifecycle""" - managed: Boolean! - - """Parent hostname a wildcard binding covers""" - parentHostname: String - - """TLS secret name compiled from the domain row""" - tlsSecretName: String - - """Certificate lifecycle state compiled from the domain row""" - tlsStatus: String - - """When this binding was last recompiled""" - updatedAt: Datetime! - - """Ownership verification state compiled from the domain row""" - verificationStatus: String + modifier: String + scope: String + sortOrder: Int + updatedAt: Datetime } -"""A connection to a list of `HostnameBinding` values.""" -type HostnameBindingConnection { +"""A connection to a list of `Field` values.""" +type FieldConnection { """ - A list of edges which contains the `HostnameBinding` and cursor to aid in pagination. + A list of edges which contains the `Field` and cursor to aid in pagination. """ - edges: [HostnameBindingEdge]! + edges: [FieldEdge]! - """A list of `HostnameBinding` objects.""" - nodes: [HostnameBinding]! + """A list of `Field` objects.""" + nodes: [Field]! """Information to aid in pagination.""" pageInfo: PageInfo! - """ - The count of *all* `HostnameBinding` you could get from the connection. - """ + """The count of *all* `Field` you could get from the connection.""" totalCount: Int! } -"""A `HostnameBinding` edge in the connection.""" -type HostnameBindingEdge { +"""A `Field` edge in the connection.""" +type FieldEdge { """A cursor for use in pagination.""" cursor: Cursor - """The `HostnameBinding` at the end of the edge.""" - node: HostnameBinding + """The `Field` at the end of the edge.""" + node: Field } """ -A filter to be used against `HostnameBinding` object types. All fields are combined with a logical ‘and.’ +A filter to be used against `Field` object types. All fields are combined with a logical ‘and.’ """ -input HostnameBindingFilter { +input FieldFilter { """Checks for all expressions in this list.""" - and: [HostnameBindingFilter!] + and: [FieldFilter!] - """Filter by the object’s `domainId` field.""" - domainId: UUIDFilter + """Filter by the object’s `apiRequired` field.""" + apiRequired: BooleanFilter - """Filter by the object’s `hostname` field.""" - hostname: StringFilter + """Filter by the object’s `category` field.""" + category: ObjectCategoryFilter - """Filter by the object’s `id` field.""" - id: UUIDFilter + """Filter by the object’s `chk` field.""" + chk: JSONFilter - """Filter by the object’s `isWildcard` field.""" - isWildcard: BooleanFilter + """Filter by the object’s `chkExpr` field.""" + chkExpr: JSONFilter - """Filter by the object’s `managed` field.""" - managed: BooleanFilter + """Filter by the object’s `createdAt` field.""" + createdAt: DatetimeFilter - """Negates the expression.""" - not: HostnameBindingFilter + """Filter by the object’s `database` relation.""" + database: DatabaseFilter - """Checks for any expressions in this list.""" - or: [HostnameBindingFilter!] + """Filter by the object’s `databaseId` field.""" + databaseId: UUIDFilter - """Filter by the object’s `parentHostname` field.""" - parentHostname: StringFilter + """Filter by the object’s `defaultValue` field.""" + defaultValue: JSONFilter - """Filter by the object’s `tlsSecretName` field.""" - tlsSecretName: StringFilter + """Filter by the object’s `description` field.""" + description: StringFilter - """Filter by the object’s `tlsStatus` field.""" - tlsStatus: StringFilter + """Filter by the object’s `embeddingChunksByEmbeddingFieldId` relation.""" + embeddingChunksByEmbeddingFieldId: FieldToManyEmbeddingChunkFilter - """Filter by the object’s `updatedAt` field.""" - updatedAt: DatetimeFilter + """`embeddingChunksByEmbeddingFieldId` exist.""" + embeddingChunksByEmbeddingFieldIdExist: Boolean - """Filter by the object’s `verificationStatus` field.""" - verificationStatus: StringFilter -} + """Filter by the object’s `embeddingChunksByParentFkFieldId` relation.""" + embeddingChunksByParentFkFieldId: FieldToManyEmbeddingChunkFilter -"""An input for mutations affecting `HostnameBinding`""" -input HostnameBindingInput { - """Domain row this binding was compiled from""" - domainId: UUID! + """`embeddingChunksByParentFkFieldId` exist.""" + embeddingChunksByParentFkFieldIdExist: Boolean - """Lowercase hostname (exact or *.parent wildcard)""" - hostname: String! - id: UUID + """Filter by the object’s `fieldBehaviors` relation.""" + fieldBehaviors: FieldToManyFieldBehaviorFilter - """Whether this binding is a wildcard claim""" - isWildcard: Boolean + """`fieldBehaviors` exist.""" + fieldBehaviorsExist: Boolean - """Whether the platform drives this hostname's lifecycle""" - managed: Boolean + """Filter by the object’s `fieldOrder` field.""" + fieldOrder: IntFilter - """Parent hostname a wildcard binding covers""" - parentHostname: String + """Filter by the object’s `generationExpression` field.""" + generationExpression: JSONFilter - """TLS secret name compiled from the domain row""" - tlsSecretName: String + """Filter by the object’s `generationType` field.""" + generationType: StringFilter - """Certificate lifecycle state compiled from the domain row""" - tlsStatus: String + """Filter by the object’s `id` field.""" + id: UUIDFilter - """When this binding was last recompiled""" - updatedAt: Datetime + """Filter by the object’s `identityGeneration` field.""" + identityGeneration: StringFilter - """Ownership verification state compiled from the domain row""" - verificationStatus: String -} + """Filter by the object’s `identityOptions` field.""" + identityOptions: JSONFilter -"""Methods to use when ordering `HostnameBinding`.""" -enum HostnameBindingOrderBy { - DOMAIN_ID_ASC - DOMAIN_ID_DESC - HOSTNAME_ASC - HOSTNAME_DESC - ID_ASC - ID_DESC - IS_WILDCARD_ASC - IS_WILDCARD_DESC - MANAGED_ASC - MANAGED_DESC - NATURAL - PARENT_HOSTNAME_ASC - PARENT_HOSTNAME_DESC - PRIMARY_KEY_ASC - PRIMARY_KEY_DESC - TLS_SECRET_NAME_ASC - TLS_SECRET_NAME_DESC - TLS_STATUS_ASC - TLS_STATUS_DESC + """Filter by the object’s `isRequired` field.""" + isRequired: BooleanFilter + + """Filter by the object’s `label` field.""" + label: StringFilter + + """Filter by the object’s `max` field.""" + max: FloatFilter + + """Filter by the object’s `min` field.""" + min: FloatFilter + + """Filter by the object’s `name` field.""" + name: StringFilter + + """Negates the expression.""" + not: FieldFilter + + """Checks for any expressions in this list.""" + or: [FieldFilter!] + + """Filter by the object’s `partitionsByPartitionKeyId` relation.""" + partitionsByPartitionKeyId: FieldToManyPartitionFilter + + """`partitionsByPartitionKeyId` exist.""" + partitionsByPartitionKeyIdExist: Boolean + + """Filter by the object’s `regexp` field.""" + regexp: StringFilter + + """Filter by the object’s `smartTags` field.""" + smartTags: JSONFilter + + """Filter by the object’s `spatialRelations` relation.""" + spatialRelations: FieldToManySpatialRelationFilter + + """Filter by the object’s `spatialRelationsByRefFieldId` relation.""" + spatialRelationsByRefFieldId: FieldToManySpatialRelationFilter + + """`spatialRelationsByRefFieldId` exist.""" + spatialRelationsByRefFieldIdExist: Boolean + + """`spatialRelations` exist.""" + spatialRelationsExist: Boolean + + """Filter by the object’s `table` relation.""" + table: TableFilter + + """Filter by the object’s `tableId` field.""" + tableId: UUIDFilter + + """Filter by the object’s `tags` field.""" + tags: StringListFilter + + """Filter by the object’s `type` field.""" + type: JSONFilter + + """Filter by the object’s `updatedAt` field.""" + updatedAt: DatetimeFilter +} + +"""An input for mutations affecting `Field`""" +input FieldInput { + apiRequired: Boolean + category: ObjectCategory + chk: JSON + chkExpr: JSON + createdAt: Datetime + databaseId: UUID + defaultValue: JSON + description: String + fieldOrder: Int + generationExpression: JSON + generationType: String + id: UUID + identityGeneration: String + identityOptions: JSON + isRequired: Boolean + label: String + max: Float + min: Float + name: String! + regexp: String + smartTags: JSON + tableId: UUID! + tags: [String] + type: JSON! + updatedAt: Datetime +} + +"""Methods to use when ordering `Field`.""" +enum FieldOrderBy { + API_REQUIRED_ASC + API_REQUIRED_DESC + CATEGORY_ASC + CATEGORY_DESC + CHK_ASC + CHK_DESC + CHK_EXPR_ASC + CHK_EXPR_DESC + CREATED_AT_ASC + CREATED_AT_DESC + DATABASE_ID_ASC + DATABASE_ID_DESC + DEFAULT_VALUE_ASC + DEFAULT_VALUE_DESC + DESCRIPTION_ASC + DESCRIPTION_DESC + FIELD_ORDER_ASC + FIELD_ORDER_DESC + GENERATION_EXPRESSION_ASC + GENERATION_EXPRESSION_DESC + GENERATION_TYPE_ASC + GENERATION_TYPE_DESC + IDENTITY_GENERATION_ASC + IDENTITY_GENERATION_DESC + IDENTITY_OPTIONS_ASC + IDENTITY_OPTIONS_DESC + ID_ASC + ID_DESC + IS_REQUIRED_ASC + IS_REQUIRED_DESC + LABEL_ASC + LABEL_DESC + MAX_ASC + MAX_DESC + MIN_ASC + MIN_DESC + NAME_ASC + NAME_DESC + NATURAL + PRIMARY_KEY_ASC + PRIMARY_KEY_DESC + REGEXP_ASC + REGEXP_DESC + SMART_TAGS_ASC + SMART_TAGS_DESC + TABLE_ID_ASC + TABLE_ID_DESC + TAGS_ASC + TAGS_DESC + TYPE_ASC + TYPE_DESC UPDATED_AT_ASC UPDATED_AT_DESC - VERIFICATION_STATUS_ASC - VERIFICATION_STATUS_DESC } """ -Represents an update to a `HostnameBinding`. Fields that are set will be updated. +Represents an update to a `Field`. Fields that are set will be updated. """ -input HostnameBindingPatch { - """Domain row this binding was compiled from""" - domainId: UUID - - """Lowercase hostname (exact or *.parent wildcard)""" - hostname: String +input FieldPatch { + apiRequired: Boolean + category: ObjectCategory + chk: JSON + chkExpr: JSON + createdAt: Datetime + databaseId: UUID + defaultValue: JSON + description: String + fieldOrder: Int + generationExpression: JSON + generationType: String id: UUID + identityGeneration: String + identityOptions: JSON + isRequired: Boolean + label: String + max: Float + min: Float + name: String + regexp: String + smartTags: JSON + tableId: UUID + tags: [String] + type: JSON + updatedAt: Datetime +} - """Whether this binding is a wildcard claim""" - isWildcard: Boolean +""" +A filter to be used against many `EmbeddingChunk` object types. All fields are combined with a logical ‘and.’ +""" +input FieldToManyEmbeddingChunkFilter { + """Filters to entities where every related entity matches.""" + every: EmbeddingChunkFilter - """Whether the platform drives this hostname's lifecycle""" - managed: Boolean + """Filters to entities where no related entity matches.""" + none: EmbeddingChunkFilter - """Parent hostname a wildcard binding covers""" - parentHostname: String + """Filters to entities where at least one related entity matches.""" + some: EmbeddingChunkFilter +} - """TLS secret name compiled from the domain row""" - tlsSecretName: String +""" +A filter to be used against many `FieldBehavior` object types. All fields are combined with a logical ‘and.’ +""" +input FieldToManyFieldBehaviorFilter { + """Filters to entities where every related entity matches.""" + every: FieldBehaviorFilter - """Certificate lifecycle state compiled from the domain row""" - tlsStatus: String + """Filters to entities where no related entity matches.""" + none: FieldBehaviorFilter - """When this binding was last recompiled""" - updatedAt: Datetime + """Filters to entities where at least one related entity matches.""" + some: FieldBehaviorFilter +} - """Ownership verification state compiled from the domain row""" - verificationStatus: String +""" +A filter to be used against many `Partition` object types. All fields are combined with a logical ‘and.’ +""" +input FieldToManyPartitionFilter { + """Filters to entities where every related entity matches.""" + every: PartitionFilter + + """Filters to entities where no related entity matches.""" + none: PartitionFilter + + """Filters to entities where at least one related entity matches.""" + some: PartitionFilter } """ -Request-time HTTP routing authority: registered domain plus path prefix and optional method to a typed target +A filter to be used against many `SpatialRelation` object types. All fields are combined with a logical ‘and.’ """ -type HttpRoute { +input FieldToManySpatialRelationFilter { + """Filters to entities where every related entity matches.""" + every: SpatialRelationFilter + + """Filters to entities where no related entity matches.""" + none: SpatialRelationFilter + + """Filters to entities where at least one related entity matches.""" + some: SpatialRelationFilter +} + +""" +A filter to be used against Float fields. All fields are combined with a logical ‘and.’ +""" +input FloatFilter { + """ + Not equal to the specified value, treating null like an ordinary value. + """ + distinctFrom: Float + + """Equal to the specified value.""" + equalTo: Float + + """Greater than the specified value.""" + greaterThan: Float + + """Greater than or equal to the specified value.""" + greaterThanOrEqualTo: Float + + """Included in the specified list.""" + in: [Float!] + + """ + Is null (if `true` is specified) or is not null (if `false` is specified). + """ + isNull: Boolean + + """Less than the specified value.""" + lessThan: Float + + """Less than or equal to the specified value.""" + lessThanOrEqualTo: Float + + """Equal to the specified value, treating null like an ordinary value.""" + notDistinctFrom: Float + + """Not equal to the specified value.""" + notEqualTo: Float + + """Not included in the specified list.""" + notIn: [Float!] +} + +type ForeignKeyConstraint { + category: ObjectCategory! createdAt: Datetime - createdBy: UUID - """Database that owns this resource (database-scoped isolation)""" + """ + Reads a single `Database` that is related to this `ForeignKeyConstraint`. + """ + database: Database databaseId: UUID! + deleteAction: String + deleteSetFieldIds: [UUID] + description: String + fieldIds: [UUID]! - """Reads a single `Domain` that is related to this `HttpRoute`.""" - domain: Domain + """ + Reads and enables pagination through a set of `ForeignKeyConstraintBehavior`. + """ + foreignKeyConstraintBehaviors( + """Read all values in the set after (below) this cursor.""" + after: Cursor - """Registered host in the scoped routing domains table""" - domainId: UUID! - id: UUID! + """Read all values in the set before (above) this cursor.""" + before: Cursor - """Whether the resolver may select this route""" - isActive: Boolean! + """Only read the first `n` values of the set.""" + first: Int - """Optional uppercase HTTP method; NULL matches every method""" - method: String + """Only read the last `n` values of the set.""" + last: Int - """Normalized request path prefix; longest matching prefix wins""" - path: String! + """ + Skip the first `n` values from our `after` cursor, an alternative to cursor + based pagination. May not be used with `last`. + """ + offset: Int - """Tie-break precedence after path length and method specificity""" - priority: Int! + """The method to use when ordering `ForeignKeyConstraintBehavior`.""" + orderBy: [ForeignKeyConstraintBehaviorOrderBy!] = [PRIMARY_KEY_ASC] + + """ + A filter to be used in determining which values should be returned by the collection. + """ + where: ForeignKeyConstraintBehaviorFilter + ): ForeignKeyConstraintBehaviorConnection! + id: UUID! + initiallyDeferred: Boolean! + isDeferrable: Boolean! + name: String + refFieldIds: [UUID]! + + """Reads a single `Table` that is related to this `ForeignKeyConstraint`.""" + refTable: Table + refTableId: UUID! + smartTags: JSON + + """Reads a single `Table` that is related to this `ForeignKeyConstraint`.""" + table: Table + tableId: UUID! + tags: [String]! + type: String + updateAction: String + updatedAt: Datetime + withPeriod: Boolean! +} + +type ForeignKeyConstraintBehavior { + createdAt: Datetime """ - Target row of the type named by target_kind; existence enforced by trigger + Reads a single `Database` that is related to this `ForeignKeyConstraintBehavior`. """ - targetId: UUID! + database: Database + databaseId: UUID! - """Discriminator selecting the type of target_id""" - targetKind: String! + """ + Reads a single `ForeignKeyConstraint` that is related to this `ForeignKeyConstraintBehavior`. + """ + foreignKeyConstraint: ForeignKeyConstraint + foreignKeyConstraintId: UUID! + id: UUID! + modifier: String! + scope: String! + sortOrder: Int! updatedAt: Datetime - updatedBy: UUID } -"""A connection to a list of `HttpRoute` values.""" -type HttpRouteConnection { +"""A connection to a list of `ForeignKeyConstraintBehavior` values.""" +type ForeignKeyConstraintBehaviorConnection { """ - A list of edges which contains the `HttpRoute` and cursor to aid in pagination. + A list of edges which contains the `ForeignKeyConstraintBehavior` and cursor to aid in pagination. """ - edges: [HttpRouteEdge]! + edges: [ForeignKeyConstraintBehaviorEdge]! - """A list of `HttpRoute` objects.""" - nodes: [HttpRoute]! + """A list of `ForeignKeyConstraintBehavior` objects.""" + nodes: [ForeignKeyConstraintBehavior]! """Information to aid in pagination.""" pageInfo: PageInfo! - """The count of *all* `HttpRoute` you could get from the connection.""" + """ + The count of *all* `ForeignKeyConstraintBehavior` you could get from the connection. + """ totalCount: Int! } -"""A `HttpRoute` edge in the connection.""" -type HttpRouteEdge { +"""A `ForeignKeyConstraintBehavior` edge in the connection.""" +type ForeignKeyConstraintBehaviorEdge { """A cursor for use in pagination.""" cursor: Cursor - """The `HttpRoute` at the end of the edge.""" - node: HttpRoute + """The `ForeignKeyConstraintBehavior` at the end of the edge.""" + node: ForeignKeyConstraintBehavior } """ -A filter to be used against `HttpRoute` object types. All fields are combined with a logical ‘and.’ +A filter to be used against `ForeignKeyConstraintBehavior` object types. All fields are combined with a logical ‘and.’ """ -input HttpRouteFilter { +input ForeignKeyConstraintBehaviorFilter { """Checks for all expressions in this list.""" - and: [HttpRouteFilter!] + and: [ForeignKeyConstraintBehaviorFilter!] """Filter by the object’s `createdAt` field.""" createdAt: DatetimeFilter - """Filter by the object’s `createdBy` field.""" - createdBy: UUIDFilter + """Filter by the object’s `database` relation.""" + database: DatabaseFilter """Filter by the object’s `databaseId` field.""" databaseId: UUIDFilter - """Filter by the object’s `domain` relation.""" - domain: DomainFilter + """Filter by the object’s `foreignKeyConstraint` relation.""" + foreignKeyConstraint: ForeignKeyConstraintFilter - """Filter by the object’s `domainId` field.""" - domainId: UUIDFilter + """Filter by the object’s `foreignKeyConstraintId` field.""" + foreignKeyConstraintId: UUIDFilter """Filter by the object’s `id` field.""" id: UUIDFilter - """Filter by the object’s `isActive` field.""" - isActive: BooleanFilter - - """Filter by the object’s `method` field.""" - method: StringFilter + """Filter by the object’s `modifier` field.""" + modifier: StringFilter """Negates the expression.""" - not: HttpRouteFilter + not: ForeignKeyConstraintBehaviorFilter """Checks for any expressions in this list.""" - or: [HttpRouteFilter!] - - """Filter by the object’s `path` field.""" - path: StringFilter - - """Filter by the object’s `priority` field.""" - priority: IntFilter + or: [ForeignKeyConstraintBehaviorFilter!] - """Filter by the object’s `targetId` field.""" - targetId: UUIDFilter + """Filter by the object’s `scope` field.""" + scope: StringFilter - """Filter by the object’s `targetKind` field.""" - targetKind: StringFilter + """Filter by the object’s `sortOrder` field.""" + sortOrder: IntFilter """Filter by the object’s `updatedAt` field.""" updatedAt: DatetimeFilter - - """Filter by the object’s `updatedBy` field.""" - updatedBy: UUIDFilter } -"""An input for mutations affecting `HttpRoute`""" -input HttpRouteInput { +"""An input for mutations affecting `ForeignKeyConstraintBehavior`""" +input ForeignKeyConstraintBehaviorInput { createdAt: Datetime - createdBy: UUID - - """Database that owns this resource (database-scoped isolation)""" - databaseId: UUID! - - """Registered host in the scoped routing domains table""" - domainId: UUID! + databaseId: UUID + foreignKeyConstraintId: UUID! id: UUID - - """Whether the resolver may select this route""" - isActive: Boolean - - """Optional uppercase HTTP method; NULL matches every method""" - method: String - - """Normalized request path prefix; longest matching prefix wins""" - path: String - - """Tie-break precedence after path length and method specificity""" - priority: Int - - """ - Target row of the type named by target_kind; existence enforced by trigger - """ - targetId: UUID! - - """Discriminator selecting the type of target_id""" - targetKind: String! + modifier: String + scope: String! + sortOrder: Int updatedAt: Datetime - updatedBy: UUID } -"""Methods to use when ordering `HttpRoute`.""" -enum HttpRouteOrderBy { +"""Methods to use when ordering `ForeignKeyConstraintBehavior`.""" +enum ForeignKeyConstraintBehaviorOrderBy { CREATED_AT_ASC CREATED_AT_DESC - CREATED_BY_ASC - CREATED_BY_DESC DATABASE_ID_ASC DATABASE_ID_DESC - DOMAIN_ID_ASC - DOMAIN_ID_DESC + FOREIGN_KEY_CONSTRAINT_ID_ASC + FOREIGN_KEY_CONSTRAINT_ID_DESC ID_ASC ID_DESC - IS_ACTIVE_ASC - IS_ACTIVE_DESC - METHOD_ASC - METHOD_DESC + MODIFIER_ASC + MODIFIER_DESC NATURAL - PATH_ASC - PATH_DESC PRIMARY_KEY_ASC PRIMARY_KEY_DESC - PRIORITY_ASC - PRIORITY_DESC - TARGET_ID_ASC - TARGET_ID_DESC - TARGET_KIND_ASC - TARGET_KIND_DESC + SCOPE_ASC + SCOPE_DESC + SORT_ORDER_ASC + SORT_ORDER_DESC UPDATED_AT_ASC UPDATED_AT_DESC - UPDATED_BY_ASC - UPDATED_BY_DESC } """ -Represents an update to a `HttpRoute`. Fields that are set will be updated. +Represents an update to a `ForeignKeyConstraintBehavior`. Fields that are set will be updated. """ -input HttpRoutePatch { +input ForeignKeyConstraintBehaviorPatch { createdAt: Datetime - createdBy: UUID - - """Database that owns this resource (database-scoped isolation)""" databaseId: UUID - - """Registered host in the scoped routing domains table""" - domainId: UUID + foreignKeyConstraintId: UUID id: UUID - - """Whether the resolver may select this route""" - isActive: Boolean - - """Optional uppercase HTTP method; NULL matches every method""" - method: String - - """Normalized request path prefix; longest matching prefix wins""" - path: String - - """Tie-break precedence after path length and method specificity""" - priority: Int - - """ - Target row of the type named by target_kind; existence enforced by trigger - """ - targetId: UUID - - """Discriminator selecting the type of target_id""" - targetKind: String - updatedAt: Datetime - updatedBy: UUID -} - -type Index { - accessMethod: String! - category: ObjectCategory! - createdAt: Datetime - - """Reads a single `Database` that is related to this `Index`.""" - database: Database - databaseId: UUID! - fieldIds: [UUID] - id: UUID! - includeFieldIds: [UUID] - indexParams: JSON - isUnique: Boolean! - name: String! - opClasses: [String] - options: JSON - smartTags: JSON - - """Reads a single `Table` that is related to this `Index`.""" - table: Table - tableId: UUID! - tags: [String]! + modifier: String + scope: String + sortOrder: Int updatedAt: Datetime - whereClause: JSON } -"""A connection to a list of `Index` values.""" -type IndexConnection { +"""A connection to a list of `ForeignKeyConstraint` values.""" +type ForeignKeyConstraintConnection { """ - A list of edges which contains the `Index` and cursor to aid in pagination. + A list of edges which contains the `ForeignKeyConstraint` and cursor to aid in pagination. """ - edges: [IndexEdge]! + edges: [ForeignKeyConstraintEdge]! - """A list of `Index` objects.""" - nodes: [Index]! + """A list of `ForeignKeyConstraint` objects.""" + nodes: [ForeignKeyConstraint]! """Information to aid in pagination.""" pageInfo: PageInfo! - """The count of *all* `Index` you could get from the connection.""" + """ + The count of *all* `ForeignKeyConstraint` you could get from the connection. + """ totalCount: Int! } -"""A `Index` edge in the connection.""" -type IndexEdge { +"""A `ForeignKeyConstraint` edge in the connection.""" +type ForeignKeyConstraintEdge { """A cursor for use in pagination.""" cursor: Cursor - """The `Index` at the end of the edge.""" - node: Index + """The `ForeignKeyConstraint` at the end of the edge.""" + node: ForeignKeyConstraint } """ -A filter to be used against `Index` object types. All fields are combined with a logical ‘and.’ +A filter to be used against `ForeignKeyConstraint` object types. All fields are combined with a logical ‘and.’ """ -input IndexFilter { - """Filter by the object’s `accessMethod` field.""" - accessMethod: StringFilter - +input ForeignKeyConstraintFilter { """Checks for all expressions in this list.""" - and: [IndexFilter!] + and: [ForeignKeyConstraintFilter!] """Filter by the object’s `category` field.""" category: ObjectCategoryFilter @@ -13441,35 +13735,50 @@ input IndexFilter { """Filter by the object’s `databaseId` field.""" databaseId: UUIDFilter + """Filter by the object’s `deleteAction` field.""" + deleteAction: StringFilter + + """Filter by the object’s `deleteSetFieldIds` field.""" + deleteSetFieldIds: UUIDListFilter + + """Filter by the object’s `description` field.""" + description: StringFilter + """Filter by the object’s `fieldIds` field.""" fieldIds: UUIDListFilter + """Filter by the object’s `foreignKeyConstraintBehaviors` relation.""" + foreignKeyConstraintBehaviors: ForeignKeyConstraintToManyForeignKeyConstraintBehaviorFilter + + """`foreignKeyConstraintBehaviors` exist.""" + foreignKeyConstraintBehaviorsExist: Boolean + """Filter by the object’s `id` field.""" id: UUIDFilter - """Filter by the object’s `includeFieldIds` field.""" - includeFieldIds: UUIDListFilter - - """Filter by the object’s `indexParams` field.""" - indexParams: JSONFilter + """Filter by the object’s `initiallyDeferred` field.""" + initiallyDeferred: BooleanFilter - """Filter by the object’s `isUnique` field.""" - isUnique: BooleanFilter + """Filter by the object’s `isDeferrable` field.""" + isDeferrable: BooleanFilter """Filter by the object’s `name` field.""" name: StringFilter """Negates the expression.""" - not: IndexFilter + not: ForeignKeyConstraintFilter - """Filter by the object’s `opClasses` field.""" - opClasses: StringListFilter + """Checks for any expressions in this list.""" + or: [ForeignKeyConstraintFilter!] - """Filter by the object’s `options` field.""" - options: JSONFilter + """Filter by the object’s `refFieldIds` field.""" + refFieldIds: UUIDListFilter - """Checks for any expressions in this list.""" - or: [IndexFilter!] + """Filter by the object’s `refTable` relation.""" + refTable: TableFilter + + """Filter by the object’s `refTableId` field.""" + refTableId: UUIDFilter """Filter by the object’s `smartTags` field.""" smartTags: JSONFilter @@ -13483,362 +13792,458 @@ input IndexFilter { """Filter by the object’s `tags` field.""" tags: StringListFilter + """Filter by the object’s `type` field.""" + type: StringFilter + + """Filter by the object’s `updateAction` field.""" + updateAction: StringFilter + """Filter by the object’s `updatedAt` field.""" updatedAt: DatetimeFilter - """Filter by the object’s `whereClause` field.""" - whereClause: JSONFilter + """Filter by the object’s `withPeriod` field.""" + withPeriod: BooleanFilter } -"""An input for mutations affecting `Index`""" -input IndexInput { - accessMethod: String +"""An input for mutations affecting `ForeignKeyConstraint`""" +input ForeignKeyConstraintInput { category: ObjectCategory createdAt: Datetime - databaseId: UUID! - fieldIds: [UUID] + databaseId: UUID + deleteAction: String + deleteSetFieldIds: [UUID] + description: String + fieldIds: [UUID]! id: UUID - includeFieldIds: [UUID] - indexParams: JSON - isUnique: Boolean + initiallyDeferred: Boolean + isDeferrable: Boolean name: String - opClasses: [String] - options: JSON + refFieldIds: [UUID]! + refTableId: UUID! smartTags: JSON tableId: UUID! tags: [String] + type: String + updateAction: String updatedAt: Datetime - whereClause: JSON + withPeriod: Boolean } -"""Methods to use when ordering `Index`.""" -enum IndexOrderBy { - ACCESS_METHOD_ASC - ACCESS_METHOD_DESC +"""Methods to use when ordering `ForeignKeyConstraint`.""" +enum ForeignKeyConstraintOrderBy { CATEGORY_ASC CATEGORY_DESC CREATED_AT_ASC CREATED_AT_DESC DATABASE_ID_ASC DATABASE_ID_DESC + DELETE_ACTION_ASC + DELETE_ACTION_DESC + DELETE_SET_FIELD_IDS_ASC + DELETE_SET_FIELD_IDS_DESC + DESCRIPTION_ASC + DESCRIPTION_DESC FIELD_IDS_ASC FIELD_IDS_DESC ID_ASC ID_DESC - INCLUDE_FIELD_IDS_ASC - INCLUDE_FIELD_IDS_DESC - INDEX_PARAMS_ASC - INDEX_PARAMS_DESC - IS_UNIQUE_ASC - IS_UNIQUE_DESC + INITIALLY_DEFERRED_ASC + INITIALLY_DEFERRED_DESC + IS_DEFERRABLE_ASC + IS_DEFERRABLE_DESC NAME_ASC NAME_DESC NATURAL - OPTIONS_ASC - OPTIONS_DESC - OP_CLASSES_ASC - OP_CLASSES_DESC PRIMARY_KEY_ASC PRIMARY_KEY_DESC + REF_FIELD_IDS_ASC + REF_FIELD_IDS_DESC + REF_TABLE_ID_ASC + REF_TABLE_ID_DESC SMART_TAGS_ASC SMART_TAGS_DESC TABLE_ID_ASC TABLE_ID_DESC TAGS_ASC TAGS_DESC + TYPE_ASC + TYPE_DESC UPDATED_AT_ASC UPDATED_AT_DESC - WHERE_CLAUSE_ASC - WHERE_CLAUSE_DESC + UPDATE_ACTION_ASC + UPDATE_ACTION_DESC + WITH_PERIOD_ASC + WITH_PERIOD_DESC } """ -Represents an update to a `Index`. Fields that are set will be updated. +Represents an update to a `ForeignKeyConstraint`. Fields that are set will be updated. """ -input IndexPatch { - accessMethod: String +input ForeignKeyConstraintPatch { category: ObjectCategory createdAt: Datetime databaseId: UUID + deleteAction: String + deleteSetFieldIds: [UUID] + description: String fieldIds: [UUID] id: UUID - includeFieldIds: [UUID] - indexParams: JSON - isUnique: Boolean + initiallyDeferred: Boolean + isDeferrable: Boolean name: String - opClasses: [String] - options: JSON + refFieldIds: [UUID] + refTableId: UUID smartTags: JSON tableId: UUID tags: [String] + type: String + updateAction: String updatedAt: Datetime - whereClause: JSON + withPeriod: Boolean } """ -A filter to be used against Int fields. All fields are combined with a logical ‘and.’ +A filter to be used against many `ForeignKeyConstraintBehavior` object types. All fields are combined with a logical ‘and.’ """ -input IntFilter { - """ - Not equal to the specified value, treating null like an ordinary value. - """ - distinctFrom: Int +input ForeignKeyConstraintToManyForeignKeyConstraintBehaviorFilter { + """Filters to entities where every related entity matches.""" + every: ForeignKeyConstraintBehaviorFilter - """Equal to the specified value.""" - equalTo: Int + """Filters to entities where no related entity matches.""" + none: ForeignKeyConstraintBehaviorFilter - """Greater than the specified value.""" - greaterThan: Int + """Filters to entities where at least one related entity matches.""" + some: ForeignKeyConstraintBehaviorFilter +} - """Greater than or equal to the specified value.""" - greaterThanOrEqualTo: Int +type FullTextSearch { + createdAt: Datetime - """Included in the specified list.""" - in: [Int!] + """Reads a single `Database` that is related to this `FullTextSearch`.""" + database: Database + databaseId: UUID! + fieldId: UUID! + fieldIds: [UUID]! + id: UUID! + langColumn: String + langs: [String]! + """Reads a single `Table` that is related to this `FullTextSearch`.""" + table: Table + tableId: UUID! + updatedAt: Datetime + weights: [String]! +} + +"""A connection to a list of `FullTextSearch` values.""" +type FullTextSearchConnection { """ - Is null (if `true` is specified) or is not null (if `false` is specified). + A list of edges which contains the `FullTextSearch` and cursor to aid in pagination. """ - isNull: Boolean + edges: [FullTextSearchEdge]! - """Less than the specified value.""" - lessThan: Int + """A list of `FullTextSearch` objects.""" + nodes: [FullTextSearch]! - """Less than or equal to the specified value.""" - lessThanOrEqualTo: Int + """Information to aid in pagination.""" + pageInfo: PageInfo! - """Equal to the specified value, treating null like an ordinary value.""" - notDistinctFrom: Int + """The count of *all* `FullTextSearch` you could get from the connection.""" + totalCount: Int! +} - """Not equal to the specified value.""" - notEqualTo: Int +"""A `FullTextSearch` edge in the connection.""" +type FullTextSearchEdge { + """A cursor for use in pagination.""" + cursor: Cursor - """Not included in the specified list.""" - notIn: [Int!] + """The `FullTextSearch` at the end of the edge.""" + node: FullTextSearch } """ -Represents JSON values as specified by [ECMA-404](http://www.ecma-international.org/publications/files/ECMA-ST/ECMA-404.pdf). +A filter to be used against `FullTextSearch` object types. All fields are combined with a logical ‘and.’ """ -scalar JSON +input FullTextSearchFilter { + """Checks for all expressions in this list.""" + and: [FullTextSearchFilter!] -""" -A filter to be used against JSON fields. All fields are combined with a logical ‘and.’ -""" -input JSONFilter { - """Contained by the specified JSON.""" - containedBy: JSON + """Filter by the object’s `createdAt` field.""" + createdAt: DatetimeFilter - """Contains the specified JSON.""" - contains: JSON + """Filter by the object’s `database` relation.""" + database: DatabaseFilter - """Contains all of the specified keys.""" - containsAllKeys: [String!] + """Filter by the object’s `databaseId` field.""" + databaseId: UUIDFilter - """Contains any of the specified keys.""" - containsAnyKeys: [String!] + """Filter by the object’s `fieldId` field.""" + fieldId: UUIDFilter - """Contains the specified key.""" - containsKey: String + """Filter by the object’s `fieldIds` field.""" + fieldIds: UUIDListFilter - """ - Not equal to the specified value, treating null like an ordinary value. - """ - distinctFrom: JSON + """Filter by the object’s `id` field.""" + id: UUIDFilter - """Equal to the specified value.""" - equalTo: JSON + """Filter by the object’s `langColumn` field.""" + langColumn: StringFilter - """Greater than the specified value.""" - greaterThan: JSON + """Filter by the object’s `langs` field.""" + langs: StringListFilter - """Greater than or equal to the specified value.""" - greaterThanOrEqualTo: JSON + """Negates the expression.""" + not: FullTextSearchFilter - """Included in the specified list.""" - in: [JSON!] + """Checks for any expressions in this list.""" + or: [FullTextSearchFilter!] - """ - Is null (if `true` is specified) or is not null (if `false` is specified). - """ - isNull: Boolean + """Filter by the object’s `table` relation.""" + table: TableFilter - """Less than the specified value.""" - lessThan: JSON + """Filter by the object’s `tableId` field.""" + tableId: UUIDFilter - """Less than or equal to the specified value.""" - lessThanOrEqualTo: JSON + """Filter by the object’s `updatedAt` field.""" + updatedAt: DatetimeFilter - """Equal to the specified value, treating null like an ordinary value.""" - notDistinctFrom: JSON + """Filter by the object’s `weights` field.""" + weights: StringListFilter +} - """Not equal to the specified value.""" - notEqualTo: JSON +"""An input for mutations affecting `FullTextSearch`""" +input FullTextSearchInput { + createdAt: Datetime + databaseId: UUID + fieldId: UUID! + fieldIds: [UUID]! + id: UUID + langColumn: String + langs: [String]! + tableId: UUID! + updatedAt: Datetime + weights: [String]! +} - """Not included in the specified list.""" - notIn: [JSON!] +"""Methods to use when ordering `FullTextSearch`.""" +enum FullTextSearchOrderBy { + CREATED_AT_ASC + CREATED_AT_DESC + DATABASE_ID_ASC + DATABASE_ID_DESC + FIELD_IDS_ASC + FIELD_IDS_DESC + FIELD_ID_ASC + FIELD_ID_DESC + ID_ASC + ID_DESC + LANGS_ASC + LANGS_DESC + LANG_COLUMN_ASC + LANG_COLUMN_DESC + NATURAL + PRIMARY_KEY_ASC + PRIMARY_KEY_DESC + TABLE_ID_ASC + TABLE_ID_DESC + UPDATED_AT_ASC + UPDATED_AT_DESC + WEIGHTS_ASC + WEIGHTS_DESC } """ -Platform-operated hostnames whose DNS and certificate lifecycle the platform drives +Represents an update to a `FullTextSearch`. Fields that are set will be updated. """ -type ManagedDomain { - """Whether tenants may claim subdomains under this managed hostname""" - allowPublicUsage: Boolean! - - """Free-form operator annotations for this managed hostname""" - annotations: JSON! - - """Certificate issuance state for this managed hostname""" - certStatus: String! +input FullTextSearchPatch { createdAt: Datetime + databaseId: UUID + fieldId: UUID + fieldIds: [UUID] + id: UUID + langColumn: String + langs: [String] + tableId: UUID + updatedAt: Datetime + weights: [String] +} - """Database that owns this resource (database-scoped isolation)""" +type Function { + """Reads a single `Database` that is related to this `Function`.""" + database: Database databaseId: UUID! + id: UUID! + name: String! + + """Reads a single `Schema` that is related to this `Function`.""" + schema: Schema + schemaId: UUID! +} +"""A connection to a list of `Function` values.""" +type FunctionConnection { """ - Lowercase fully-qualified managed hostname; wildcards use the *.parent form + A list of edges which contains the `Function` and cursor to aid in pagination. """ - domain: String! + edges: [FunctionEdge]! - """Reads and enables pagination through a set of `DomainEvent`.""" - domainEvents( - """Read all values in the set after (below) this cursor.""" - after: Cursor + """A list of `Function` objects.""" + nodes: [Function]! - """Read all values in the set before (above) this cursor.""" - before: Cursor + """Information to aid in pagination.""" + pageInfo: PageInfo! - """Only read the first `n` values of the set.""" - first: Int + """The count of *all* `Function` you could get from the connection.""" + totalCount: Int! +} - """Only read the last `n` values of the set.""" - last: Int +"""A `Function` edge in the connection.""" +type FunctionEdge { + """A cursor for use in pagination.""" + cursor: Cursor - """ - Skip the first `n` values from our `after` cursor, an alternative to cursor - based pagination. May not be used with `last`. - """ - offset: Int + """The `Function` at the end of the edge.""" + node: Function +} - """The method to use when ordering `DomainEvent`.""" - orderBy: [DomainEventOrderBy!] = [PRIMARY_KEY_ASC] +""" +A filter to be used against `Function` object types. All fields are combined with a logical ‘and.’ +""" +input FunctionFilter { + """Checks for all expressions in this list.""" + and: [FunctionFilter!] - """ - A filter to be used in determining which values should be returned by the collection. - """ - where: DomainEventFilter - ): DomainEventConnection! + """Filter by the object’s `database` relation.""" + database: DatabaseFilter - """Reads and enables pagination through a set of `DomainVerification`.""" - domainVerifications( - """Read all values in the set after (below) this cursor.""" - after: Cursor + """Filter by the object’s `databaseId` field.""" + databaseId: UUIDFilter - """Read all values in the set before (above) this cursor.""" - before: Cursor + """Filter by the object’s `id` field.""" + id: UUIDFilter - """Only read the first `n` values of the set.""" - first: Int + """Filter by the object’s `name` field.""" + name: StringFilter - """Only read the last `n` values of the set.""" - last: Int + """Negates the expression.""" + not: FunctionFilter - """ - Skip the first `n` values from our `after` cursor, an alternative to cursor - based pagination. May not be used with `last`. - """ - offset: Int + """Checks for any expressions in this list.""" + or: [FunctionFilter!] - """The method to use when ordering `DomainVerification`.""" - orderBy: [DomainVerificationOrderBy!] = [PRIMARY_KEY_ASC] + """Filter by the object’s `schema` relation.""" + schema: SchemaFilter - """ - A filter to be used in determining which values should be returned by the collection. - """ - where: DomainVerificationFilter - ): DomainVerificationConnection! + """Filter by the object’s `schemaId` field.""" + schemaId: UUIDFilter +} + +"""An input for mutations affecting `Function`""" +input FunctionInput { + databaseId: UUID! + id: UUID + name: String! + schemaId: UUID! +} + +"""Methods to use when ordering `Function`.""" +enum FunctionOrderBy { + DATABASE_ID_ASC + DATABASE_ID_DESC + ID_ASC + ID_DESC + NAME_ASC + NAME_DESC + NATURAL + PRIMARY_KEY_ASC + PRIMARY_KEY_DESC + SCHEMA_ID_ASC + SCHEMA_ID_DESC +} + +""" +Represents an update to a `Function`. Fields that are set will be updated. +""" +input FunctionPatch { + databaseId: UUID + id: UUID + name: String + schemaId: UUID +} + +""" +Compiled hostname index maintained by domain sync triggers; read only through the resolver +""" +type HostnameBinding { + """Domain row this binding was compiled from""" + domainId: UUID! + + """Lowercase hostname (exact or *.parent wildcard)""" + hostname: String! id: UUID! - """Whether this managed hostname is a *.parent wildcard""" + """Whether this binding is a wildcard claim""" isWildcard: Boolean! - """When TLS last became ready""" - tlsReadyAt: Datetime + """Whether the platform drives this hostname's lifecycle""" + managed: Boolean! - """TLS provisioning state for this managed hostname""" - tlsStatus: String! - updatedAt: Datetime + """Parent hostname a wildcard binding covers""" + parentHostname: String - """DNS ownership verification state of this managed hostname""" - verificationStatus: String! + """TLS secret name compiled from the domain row""" + tlsSecretName: String - """When ownership verification last succeeded""" - verifiedAt: Datetime + """Certificate lifecycle state compiled from the domain row""" + tlsStatus: String + + """When this binding was last recompiled""" + updatedAt: Datetime! + + """Ownership verification state compiled from the domain row""" + verificationStatus: String } -"""A connection to a list of `ManagedDomain` values.""" -type ManagedDomainConnection { +"""A connection to a list of `HostnameBinding` values.""" +type HostnameBindingConnection { """ - A list of edges which contains the `ManagedDomain` and cursor to aid in pagination. + A list of edges which contains the `HostnameBinding` and cursor to aid in pagination. """ - edges: [ManagedDomainEdge]! + edges: [HostnameBindingEdge]! - """A list of `ManagedDomain` objects.""" - nodes: [ManagedDomain]! + """A list of `HostnameBinding` objects.""" + nodes: [HostnameBinding]! """Information to aid in pagination.""" pageInfo: PageInfo! - """The count of *all* `ManagedDomain` you could get from the connection.""" + """ + The count of *all* `HostnameBinding` you could get from the connection. + """ totalCount: Int! } -"""A `ManagedDomain` edge in the connection.""" -type ManagedDomainEdge { +"""A `HostnameBinding` edge in the connection.""" +type HostnameBindingEdge { """A cursor for use in pagination.""" cursor: Cursor - """The `ManagedDomain` at the end of the edge.""" - node: ManagedDomain + """The `HostnameBinding` at the end of the edge.""" + node: HostnameBinding } """ -A filter to be used against `ManagedDomain` object types. All fields are combined with a logical ‘and.’ +A filter to be used against `HostnameBinding` object types. All fields are combined with a logical ‘and.’ """ -input ManagedDomainFilter { - """Filter by the object’s `allowPublicUsage` field.""" - allowPublicUsage: BooleanFilter - +input HostnameBindingFilter { """Checks for all expressions in this list.""" - and: [ManagedDomainFilter!] - - """Filter by the object’s `annotations` field.""" - annotations: JSONFilter - - """Filter by the object’s `certStatus` field.""" - certStatus: StringFilter - - """Filter by the object’s `createdAt` field.""" - createdAt: DatetimeFilter - - """Filter by the object’s `databaseId` field.""" - databaseId: UUIDFilter - - """Filter by the object’s `domain` field.""" - domain: StringFilter - - """Filter by the object’s `domainEvents` relation.""" - domainEvents: ManagedDomainToManyDomainEventFilter - - """`domainEvents` exist.""" - domainEventsExist: Boolean + and: [HostnameBindingFilter!] - """Filter by the object’s `domainVerifications` relation.""" - domainVerifications: ManagedDomainToManyDomainVerificationFilter + """Filter by the object’s `domainId` field.""" + domainId: UUIDFilter - """`domainVerifications` exist.""" - domainVerificationsExist: Boolean + """Filter by the object’s `hostname` field.""" + hostname: StringFilter """Filter by the object’s `id` field.""" id: UUIDFilter @@ -13846,14 +14251,20 @@ input ManagedDomainFilter { """Filter by the object’s `isWildcard` field.""" isWildcard: BooleanFilter + """Filter by the object’s `managed` field.""" + managed: BooleanFilter + """Negates the expression.""" - not: ManagedDomainFilter + not: HostnameBindingFilter """Checks for any expressions in this list.""" - or: [ManagedDomainFilter!] + or: [HostnameBindingFilter!] - """Filter by the object’s `tlsReadyAt` field.""" - tlsReadyAt: DatetimeFilter + """Filter by the object’s `parentHostname` field.""" + parentHostname: StringFilter + + """Filter by the object’s `tlsSecretName` field.""" + tlsSecretName: StringFilter """Filter by the object’s `tlsStatus` field.""" tlsStatus: StringFilter @@ -13863,3555 +14274,5775 @@ input ManagedDomainFilter { """Filter by the object’s `verificationStatus` field.""" verificationStatus: StringFilter - - """Filter by the object’s `verifiedAt` field.""" - verifiedAt: DatetimeFilter } -"""An input for mutations affecting `ManagedDomain`""" -input ManagedDomainInput { - """Whether tenants may claim subdomains under this managed hostname""" - allowPublicUsage: Boolean - - """Free-form operator annotations for this managed hostname""" - annotations: JSON - - """Certificate issuance state for this managed hostname""" - certStatus: String - createdAt: Datetime - - """Database that owns this resource (database-scoped isolation)""" - databaseId: UUID! +"""An input for mutations affecting `HostnameBinding`""" +input HostnameBindingInput { + """Domain row this binding was compiled from""" + domainId: UUID! - """ - Lowercase fully-qualified managed hostname; wildcards use the *.parent form - """ - domain: String! + """Lowercase hostname (exact or *.parent wildcard)""" + hostname: String! id: UUID - """Whether this managed hostname is a *.parent wildcard""" + """Whether this binding is a wildcard claim""" isWildcard: Boolean - """When TLS last became ready""" - tlsReadyAt: Datetime + """Whether the platform drives this hostname's lifecycle""" + managed: Boolean - """TLS provisioning state for this managed hostname""" + """Parent hostname a wildcard binding covers""" + parentHostname: String + + """TLS secret name compiled from the domain row""" + tlsSecretName: String + + """Certificate lifecycle state compiled from the domain row""" tlsStatus: String + + """When this binding was last recompiled""" updatedAt: Datetime - """DNS ownership verification state of this managed hostname""" + """Ownership verification state compiled from the domain row""" verificationStatus: String - - """When ownership verification last succeeded""" - verifiedAt: Datetime } -"""Methods to use when ordering `ManagedDomain`.""" -enum ManagedDomainOrderBy { - ALLOW_PUBLIC_USAGE_ASC - ALLOW_PUBLIC_USAGE_DESC - ANNOTATIONS_ASC - ANNOTATIONS_DESC - CERT_STATUS_ASC - CERT_STATUS_DESC - CREATED_AT_ASC - CREATED_AT_DESC - DATABASE_ID_ASC - DATABASE_ID_DESC - DOMAIN_ASC - DOMAIN_DESC +"""Methods to use when ordering `HostnameBinding`.""" +enum HostnameBindingOrderBy { + DOMAIN_ID_ASC + DOMAIN_ID_DESC + HOSTNAME_ASC + HOSTNAME_DESC ID_ASC ID_DESC IS_WILDCARD_ASC IS_WILDCARD_DESC + MANAGED_ASC + MANAGED_DESC NATURAL + PARENT_HOSTNAME_ASC + PARENT_HOSTNAME_DESC PRIMARY_KEY_ASC PRIMARY_KEY_DESC - TLS_READY_AT_ASC - TLS_READY_AT_DESC + TLS_SECRET_NAME_ASC + TLS_SECRET_NAME_DESC TLS_STATUS_ASC TLS_STATUS_DESC UPDATED_AT_ASC UPDATED_AT_DESC VERIFICATION_STATUS_ASC VERIFICATION_STATUS_DESC - VERIFIED_AT_ASC - VERIFIED_AT_DESC } """ -Represents an update to a `ManagedDomain`. Fields that are set will be updated. +Represents an update to a `HostnameBinding`. Fields that are set will be updated. """ -input ManagedDomainPatch { - """Whether tenants may claim subdomains under this managed hostname""" - allowPublicUsage: Boolean - - """Free-form operator annotations for this managed hostname""" - annotations: JSON - - """Certificate issuance state for this managed hostname""" - certStatus: String - createdAt: Datetime - - """Database that owns this resource (database-scoped isolation)""" - databaseId: UUID +input HostnameBindingPatch { + """Domain row this binding was compiled from""" + domainId: UUID - """ - Lowercase fully-qualified managed hostname; wildcards use the *.parent form - """ - domain: String + """Lowercase hostname (exact or *.parent wildcard)""" + hostname: String id: UUID - """Whether this managed hostname is a *.parent wildcard""" + """Whether this binding is a wildcard claim""" isWildcard: Boolean - """When TLS last became ready""" - tlsReadyAt: Datetime + """Whether the platform drives this hostname's lifecycle""" + managed: Boolean - """TLS provisioning state for this managed hostname""" + """Parent hostname a wildcard binding covers""" + parentHostname: String + + """TLS secret name compiled from the domain row""" + tlsSecretName: String + + """Certificate lifecycle state compiled from the domain row""" tlsStatus: String + + """When this binding was last recompiled""" updatedAt: Datetime - """DNS ownership verification state of this managed hostname""" + """Ownership verification state compiled from the domain row""" verificationStatus: String - - """When ownership verification last succeeded""" - verifiedAt: Datetime } """ -A filter to be used against many `DomainEvent` object types. All fields are combined with a logical ‘and.’ +Request-time HTTP routing authority: registered domain plus path prefix and optional method to a typed target """ -input ManagedDomainToManyDomainEventFilter { - """Filters to entities where every related entity matches.""" - every: DomainEventFilter +type HttpRoute { + createdAt: Datetime + createdBy: UUID - """Filters to entities where no related entity matches.""" - none: DomainEventFilter + """Database that owns this resource (database-scoped isolation)""" + databaseId: UUID! - """Filters to entities where at least one related entity matches.""" - some: DomainEventFilter -} + """Reads a single `Domain` that is related to this `HttpRoute`.""" + domain: Domain -""" -A filter to be used against many `DomainVerification` object types. All fields are combined with a logical ‘and.’ -""" -input ManagedDomainToManyDomainVerificationFilter { - """Filters to entities where every related entity matches.""" - every: DomainVerificationFilter + """Registered host in the scoped routing domains table""" + domainId: UUID! + id: UUID! - """Filters to entities where no related entity matches.""" - none: DomainVerificationFilter + """Whether the resolver may select this route""" + isActive: Boolean! - """Filters to entities where at least one related entity matches.""" - some: DomainVerificationFilter -} + """Optional uppercase HTTP method; NULL matches every method""" + method: String -"""A belongs-to (forward FK) relation""" -type MetaBelongsToRelation { - fieldName: String - isUnique: Boolean! - keys: [MetaField!]! - references: MetaRefTable! - type: String -} + """Normalized request path prefix; longest matching prefix wins""" + path: String! -"""Table constraints""" -type MetaConstraints { - foreignKey: [MetaForeignKeyConstraint!]! - primaryKey: MetaPrimaryKeyConstraint - unique: [MetaUniqueConstraint!]! -} + """Tie-break precedence after path length and method specificity""" + priority: Int! -"""Information about a PostgreSQL enum type""" -type MetaEnum { - """The PostgreSQL enum type name""" - name: String! + """ + Target row of the type named by target_kind; existence enforced by trigger + """ + targetId: UUID! - """Allowed values for this enum""" - values: [String!]! + """Discriminator selecting the type of target_id""" + targetKind: String! + updatedAt: Datetime + updatedBy: UUID } -"""Information about a table field/column""" -type MetaField { - """PostgreSQL column name""" - columnName: String! - description: String +"""A connection to a list of `HttpRoute` values.""" +type HttpRouteConnection { + """ + A list of edges which contains the `HttpRoute` and cursor to aid in pagination. + """ + edges: [HttpRouteEdge]! - """Enum metadata if this field has an enum type""" - enumValues: MetaEnum - hasDefault: Boolean! - isForeignKey: Boolean! - isNotNull: Boolean! - isPrimaryKey: Boolean! + """A list of `HttpRoute` objects.""" + nodes: [HttpRoute]! - """Final GraphQL field name""" - name: String! - type: MetaType! -} + """Information to aid in pagination.""" + pageInfo: PageInfo! -"""Information about a foreign key constraint""" -type MetaForeignKeyConstraint { - fields: [MetaField!]! - name: String! - refFields: [MetaField!] - refTable: MetaRefTable - referencedFields: [String!]! - referencedTable: String! + """The count of *all* `HttpRoute` you could get from the connection.""" + totalCount: Int! } -"""A has-one or has-many (reverse FK) relation""" -type MetaHasRelation { - fieldName: String - isUnique: Boolean! - keys: [MetaField!]! - referencedBy: MetaRefTable! - type: String +"""A `HttpRoute` edge in the connection.""" +type HttpRouteEdge { + """A cursor for use in pagination.""" + cursor: Cursor + + """The `HttpRoute` at the end of the edge.""" + node: HttpRoute } -"""i18n metadata for a table with @i18n tag""" -type MetaI18n { - """Fields that are translatable""" - translatableFields: [MetaI18nField!]! +""" +A filter to be used against `HttpRoute` object types. All fields are combined with a logical ‘and.’ +""" +input HttpRouteFilter { + """Checks for all expressions in this list.""" + and: [HttpRouteFilter!] - """Name of the translation table""" - translationTable: String! -} + """Filter by the object’s `createdAt` field.""" + createdAt: DatetimeFilter -"""A translatable field""" -type MetaI18nField { - """GraphQL field name""" - name: String! + """Filter by the object’s `createdBy` field.""" + createdBy: UUIDFilter - """PostgreSQL column type (text, citext)""" - type: String! -} + """Filter by the object’s `databaseId` field.""" + databaseId: UUIDFilter -"""Information about a database index""" -type MetaIndex { - columns: [String!]! - fields: [MetaField!] - isPrimary: Boolean! - isUnique: Boolean! - name: String! -} + """Filter by the object’s `domain` relation.""" + domain: DomainFilter -"""Table inflection names""" -type MetaInflection { - allRows: String! - conditionType: String! - connection: String! - createInputType: String! - createPayloadType: String! - deletePayloadType: String! - edge: String! - filterType: String - orderByType: String! - patchType: String - tableType: String! - updatePayloadType: String -} + """Filter by the object’s `domainId` field.""" + domainId: UUIDFilter -"""A many-to-many relation via junction table""" -type MetaManyToManyRelation { - fieldName: String - junctionLeftConstraint: MetaForeignKeyConstraint! - junctionLeftKeyAttributes: [MetaField!]! - junctionRightConstraint: MetaForeignKeyConstraint! - junctionRightKeyAttributes: [MetaField!]! - junctionTable: MetaRefTable! - leftKeyAttributes: [MetaField!]! - rightKeyAttributes: [MetaField!]! - rightTable: MetaRefTable! - type: String -} + """Filter by the object’s `id` field.""" + id: UUIDFilter -"""Information about a primary key constraint""" -type MetaPrimaryKeyConstraint { - fields: [MetaField!]! - name: String! -} + """Filter by the object’s `isActive` field.""" + isActive: BooleanFilter -"""Table query/mutation names""" -type MetaQuery { - all: String - create: String - delete: String - one: String - update: String -} + """Filter by the object’s `method` field.""" + method: StringFilter -"""Realtime metadata for a table with @realtime tag""" -type MetaRealtime { - """The generated subscription field name (e.g. onPostChanged)""" - subscriptionFieldName: String! -} + """Negates the expression.""" + not: HttpRouteFilter -"""Reference to a related table""" -type MetaRefTable { - name: String! -} + """Checks for any expressions in this list.""" + or: [HttpRouteFilter!] -"""Table relations""" -type MetaRelations { - belongsTo: [MetaBelongsToRelation!]! - has: [MetaHasRelation!]! - hasMany: [MetaHasRelation!]! - hasOne: [MetaHasRelation!]! - manyToMany: [MetaManyToManyRelation!]! -} + """Filter by the object’s `path` field.""" + path: StringFilter -""" -How a client must serialize/parse a scalar — the one field-type detail standard GraphQL introspection cannot describe. Null for plain scalars whose wire format is obvious from gqlType. -""" -type MetaScalarEncoding { - """For 'vector': declared length, else null.""" - dimensions: Int - - """For 'ltree': values are dot-separated path strings.""" - dotPath: Boolean + """Filter by the object’s `priority` field.""" + priority: IntFilter - """For 'vector': element scalar (e.g. 'float').""" - elementType: String + """Filter by the object’s `targetId` field.""" + targetId: UUIDFilter - """For 'geojson': Point/LineString/Polygon/…, else null.""" - geometrySubtype: String + """Filter by the object’s `targetKind` field.""" + targetKind: StringFilter - """ - Machine kind: bigint, datetime, date, time, interval, uuid, geojson, point, inet, ltree, vector, bytea, or composite. - """ - kind: String! + """Filter by the object’s `updatedAt` field.""" + updatedAt: DatetimeFilter - """For 'geojson': spatial reference id, else null.""" - srid: Int + """Filter by the object’s `updatedBy` field.""" + updatedBy: UUIDFilter } -"""Root meta schema type""" -type MetaSchema { - tables: [MetaTable!]! -} +"""An input for mutations affecting `HttpRoute`""" +input HttpRouteInput { + createdAt: Datetime + createdBy: UUID -"""Provisioning scope metadata for a table""" -type MetaScope { - """SQL name of the entity table for entity scopes, else null""" - entityTable: String + """Database that owns this resource (database-scoped isolation)""" + databaseId: UUID! - """ - Inflected scope key column (e.g. databaseId, orgId), null for global tiers - """ - keyColumn: String + """Registered host in the scoped routing domains table""" + domainId: UUID! + id: UUID - """ - Provisioning scope: 'platform', 'app', 'database', or an entity scope (e.g. 'org') - """ - scope: String! + """Whether the resolver may select this route""" + isActive: Boolean - """Provenance of the scope metadata (always 'smartTag')""" - source: String! + """Optional uppercase HTTP method; NULL matches every method""" + method: String - """Coarse bucket: 'global', 'database', or 'entity'""" - tier: String! -} + """Normalized request path prefix; longest matching prefix wins""" + path: String -"""Search metadata for a table""" -type MetaSearch { - """Active search algorithms on this table""" - algorithms: [String!]! + """Tie-break precedence after path length and method specificity""" + priority: Int - """Searchable columns with their algorithm""" - columns: [MetaSearchColumn!]! + """ + Target row of the type named by target_kind; existence enforced by trigger + """ + targetId: UUID! - """Per-table search configuration""" - config: MetaSearchConfig + """Discriminator selecting the type of target_id""" + targetKind: String! + updatedAt: Datetime + updatedBy: UUID +} - """Whether unifiedSearch composite filter is available""" - hasUnifiedSearch: Boolean! +"""Methods to use when ordering `HttpRoute`.""" +enum HttpRouteOrderBy { + CREATED_AT_ASC + CREATED_AT_DESC + CREATED_BY_ASC + CREATED_BY_DESC + DATABASE_ID_ASC + DATABASE_ID_DESC + DOMAIN_ID_ASC + DOMAIN_ID_DESC + ID_ASC + ID_DESC + IS_ACTIVE_ASC + IS_ACTIVE_DESC + METHOD_ASC + METHOD_DESC + NATURAL + PATH_ASC + PATH_DESC + PRIMARY_KEY_ASC + PRIMARY_KEY_DESC + PRIORITY_ASC + PRIORITY_DESC + TARGET_ID_ASC + TARGET_ID_DESC + TARGET_KIND_ASC + TARGET_KIND_DESC + UPDATED_AT_ASC + UPDATED_AT_DESC + UPDATED_BY_ASC + UPDATED_BY_DESC } -"""A searchable column with its algorithm""" -type MetaSearchColumn { - """Search algorithm: tsvector, bm25, trgm, or vector""" - algorithm: String! +""" +Represents an update to a `HttpRoute`. Fields that are set will be updated. +""" +input HttpRoutePatch { + createdAt: Datetime + createdBy: UUID - """Column name (camelCase)""" - name: String! -} + """Database that owns this resource (database-scoped isolation)""" + databaseId: UUID -"""Per-table search configuration from @searchConfig smart tag""" -type MetaSearchConfig { - """Exponential decay factor per day""" - boostRecencyDecay: Float + """Registered host in the scoped routing domains table""" + domainId: UUID + id: UUID - """Field used for recency decay""" - boostRecencyField: String + """Whether the resolver may select this route""" + isActive: Boolean - """Whether recency boosting is enabled""" - boostRecent: Boolean! + """Optional uppercase HTTP method; NULL matches every method""" + method: String - """JSON-encoded per-adapter score weights""" - weights: String -} + """Normalized request path prefix; longest matching prefix wins""" + path: String -"""Storage metadata for a table""" -type MetaStorage { - """Whether this table is a storage buckets table""" - isBucketsTable: Boolean! + """Tie-break precedence after path length and method specificity""" + priority: Int - """Whether this table is a storage files table""" - isFilesTable: Boolean! -} + """ + Target row of the type named by target_kind; existence enforced by trigger + """ + targetId: UUID -"""Information about a database table""" -type MetaTable { - constraints: MetaConstraints! - fields: [MetaField!]! - foreignKeyConstraints: [MetaForeignKeyConstraint!]! + """Discriminator selecting the type of target_id""" + targetKind: String + updatedAt: Datetime + updatedBy: UUID +} - """i18n metadata (null if no @i18n tag)""" - i18n: MetaI18n - indexes: [MetaIndex!]! - inflection: MetaInflection! +type Index { + accessMethod: String! + category: ObjectCategory! + createdAt: Datetime - """Final GraphQL output type name""" + """Reads a single `Database` that is related to this `Index`.""" + database: Database + databaseId: UUID! + fieldIds: [UUID] + id: UUID! + includeFieldIds: [UUID] + indexParams: JSON + isUnique: Boolean! name: String! - primaryKeyConstraints: [MetaPrimaryKeyConstraint!]! - query: MetaQuery! + opClasses: [String] + options: JSON + smartTags: JSON - """Realtime metadata (null if no @realtime tag)""" - realtime: MetaRealtime - relations: MetaRelations! - schemaName: String! + """Reads a single `Table` that is related to this `Index`.""" + table: Table + tableId: UUID! + tags: [String]! + updatedAt: Datetime + whereClause: JSON +} - """Provisioning scope metadata (null if no @scope tag)""" - scope: MetaScope +"""A connection to a list of `Index` values.""" +type IndexConnection { + """ + A list of edges which contains the `Index` and cursor to aid in pagination. + """ + edges: [IndexEdge]! - """Search metadata (null if no search configured)""" - search: MetaSearch + """A list of `Index` objects.""" + nodes: [Index]! - """Storage metadata (null if not a storage table)""" - storage: MetaStorage + """Information to aid in pagination.""" + pageInfo: PageInfo! - """PostgreSQL table name""" - tableName: String! - uniqueConstraints: [MetaUniqueConstraint!]! + """The count of *all* `Index` you could get from the connection.""" + totalCount: Int! } -"""Information about a PostgreSQL type""" -type MetaType { - """Scalar serialization contract (null for plain scalars)""" - encoding: MetaScalarEncoding - gqlType: String! - hasDefault: Boolean - isArray: Boolean! - isNotNull: Boolean - pgType: String! - subtype: String -} +"""A `Index` edge in the connection.""" +type IndexEdge { + """A cursor for use in pagination.""" + cursor: Cursor -"""Information about a unique constraint""" -type MetaUniqueConstraint { - fields: [MetaField!]! - name: String! + """The `Index` at the end of the edge.""" + node: Index } """ -The root mutation type which contains root level fields which mutate data. +A filter to be used against `Index` object types. All fields are combined with a logical ‘and.’ """ -type Mutation { - acceptDatabaseTransfer( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: AcceptDatabaseTransferInput! - ): AcceptDatabaseTransferPayload - applyRls( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: ApplyRlsInput! - ): ApplyRlsPayload - cancelDatabaseTransfer( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: CancelDatabaseTransferInput! - ): CancelDatabaseTransferPayload - - """Creates a single `ApiSchema`.""" - createApiSchema( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: CreateApiSchemaInput! - ): CreateApiSchemaPayload - - """Creates a single `ApiSetting`.""" - createApiSetting( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: CreateApiSettingInput! - ): CreateApiSettingPayload - - """Creates a single `Apis`.""" - createApis( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: CreateApisInput! - ): CreateApisPayload +input IndexFilter { + """Filter by the object’s `accessMethod` field.""" + accessMethod: StringFilter - """Creates a single `CheckConstraint`.""" - createCheckConstraint( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: CreateCheckConstraintInput! - ): CreateCheckConstraintPayload + """Checks for all expressions in this list.""" + and: [IndexFilter!] - """Creates a single `CompositeType`.""" - createCompositeType( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: CreateCompositeTypeInput! - ): CreateCompositeTypePayload + """Filter by the object’s `category` field.""" + category: ObjectCategoryFilter - """Creates a single `CorsSetting`.""" - createCorsSetting( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: CreateCorsSettingInput! - ): CreateCorsSettingPayload + """Filter by the object’s `createdAt` field.""" + createdAt: DatetimeFilter - """Creates a single `Database`.""" - createDatabase( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: CreateDatabaseInput! - ): CreateDatabasePayload + """Filter by the object’s `database` relation.""" + database: DatabaseFilter - """Creates a single `DatabaseSetting`.""" - createDatabaseSetting( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: CreateDatabaseSettingInput! - ): CreateDatabaseSettingPayload + """Filter by the object’s `databaseId` field.""" + databaseId: UUIDFilter - """Creates a single `DatabaseTransfer`.""" - createDatabaseTransfer( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: CreateDatabaseTransferInput! - ): CreateDatabaseTransferPayload + """Filter by the object’s `fieldIds` field.""" + fieldIds: UUIDListFilter - """Creates a single `DefaultPrivilege`.""" - createDefaultPrivilege( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: CreateDefaultPrivilegeInput! - ): CreateDefaultPrivilegePayload + """Filter by the object’s `id` field.""" + id: UUIDFilter - """Creates a single `Derive`.""" - createDerive( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: CreateDeriveInput! - ): CreateDerivePayload + """Filter by the object’s `includeFieldIds` field.""" + includeFieldIds: UUIDListFilter - """Creates a single `Domain`.""" - createDomain( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: CreateDomainInput! - ): CreateDomainPayload + """Filter by the object’s `indexParams` field.""" + indexParams: JSONFilter - """Creates a single `DomainEvent`.""" - createDomainEvent( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: CreateDomainEventInput! - ): CreateDomainEventPayload + """Filter by the object’s `isUnique` field.""" + isUnique: BooleanFilter - """Creates a single `DomainType`.""" - createDomainType( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: CreateDomainTypeInput! - ): CreateDomainTypePayload + """Filter by the object’s `name` field.""" + name: StringFilter - """Creates a single `DomainVerification`.""" - createDomainVerification( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: CreateDomainVerificationInput! - ): CreateDomainVerificationPayload + """Negates the expression.""" + not: IndexFilter - """Creates a single `EmbeddingChunk`.""" - createEmbeddingChunk( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: CreateEmbeddingChunkInput! - ): CreateEmbeddingChunkPayload + """Filter by the object’s `opClasses` field.""" + opClasses: StringListFilter - """Creates a single `Enum`.""" - createEnum( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: CreateEnumInput! - ): CreateEnumPayload + """Filter by the object’s `options` field.""" + options: JSONFilter - """Creates a single `ExclusionConstraint`.""" - createExclusionConstraint( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: CreateExclusionConstraintInput! - ): CreateExclusionConstraintPayload + """Checks for any expressions in this list.""" + or: [IndexFilter!] - """Creates a single `Field`.""" - createField( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: CreateFieldInput! - ): CreateFieldPayload + """Filter by the object’s `smartTags` field.""" + smartTags: JSONFilter - """Creates a single `FieldBehavior`.""" - createFieldBehavior( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: CreateFieldBehaviorInput! - ): CreateFieldBehaviorPayload + """Filter by the object’s `table` relation.""" + table: TableFilter - """Creates a single `ForeignKeyConstraint`.""" - createForeignKeyConstraint( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: CreateForeignKeyConstraintInput! - ): CreateForeignKeyConstraintPayload + """Filter by the object’s `tableId` field.""" + tableId: UUIDFilter - """Creates a single `ForeignKeyConstraintBehavior`.""" - createForeignKeyConstraintBehavior( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: CreateForeignKeyConstraintBehaviorInput! - ): CreateForeignKeyConstraintBehaviorPayload + """Filter by the object’s `tags` field.""" + tags: StringListFilter - """Creates a single `FullTextSearch`.""" - createFullTextSearch( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: CreateFullTextSearchInput! - ): CreateFullTextSearchPayload + """Filter by the object’s `updatedAt` field.""" + updatedAt: DatetimeFilter - """Creates a single `Function`.""" - createFunction( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: CreateFunctionInput! - ): CreateFunctionPayload + """Filter by the object’s `whereClause` field.""" + whereClause: JSONFilter +} - """Creates a single `HostnameBinding`.""" - createHostnameBinding( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: CreateHostnameBindingInput! - ): CreateHostnameBindingPayload +"""An input for mutations affecting `Index`""" +input IndexInput { + accessMethod: String + category: ObjectCategory + createdAt: Datetime + databaseId: UUID! + fieldIds: [UUID] + id: UUID + includeFieldIds: [UUID] + indexParams: JSON + isUnique: Boolean + name: String + opClasses: [String] + options: JSON + smartTags: JSON + tableId: UUID! + tags: [String] + updatedAt: Datetime + whereClause: JSON +} - """Creates a single `HttpRoute`.""" - createHttpRoute( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: CreateHttpRouteInput! - ): CreateHttpRoutePayload +"""Methods to use when ordering `Index`.""" +enum IndexOrderBy { + ACCESS_METHOD_ASC + ACCESS_METHOD_DESC + CATEGORY_ASC + CATEGORY_DESC + CREATED_AT_ASC + CREATED_AT_DESC + DATABASE_ID_ASC + DATABASE_ID_DESC + FIELD_IDS_ASC + FIELD_IDS_DESC + ID_ASC + ID_DESC + INCLUDE_FIELD_IDS_ASC + INCLUDE_FIELD_IDS_DESC + INDEX_PARAMS_ASC + INDEX_PARAMS_DESC + IS_UNIQUE_ASC + IS_UNIQUE_DESC + NAME_ASC + NAME_DESC + NATURAL + OPTIONS_ASC + OPTIONS_DESC + OP_CLASSES_ASC + OP_CLASSES_DESC + PRIMARY_KEY_ASC + PRIMARY_KEY_DESC + SMART_TAGS_ASC + SMART_TAGS_DESC + TABLE_ID_ASC + TABLE_ID_DESC + TAGS_ASC + TAGS_DESC + UPDATED_AT_ASC + UPDATED_AT_DESC + WHERE_CLAUSE_ASC + WHERE_CLAUSE_DESC +} - """Creates a single `Index`.""" - createIndex( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: CreateIndexInput! - ): CreateIndexPayload +""" +Represents an update to a `Index`. Fields that are set will be updated. +""" +input IndexPatch { + accessMethod: String + category: ObjectCategory + createdAt: Datetime + databaseId: UUID + fieldIds: [UUID] + id: UUID + includeFieldIds: [UUID] + indexParams: JSON + isUnique: Boolean + name: String + opClasses: [String] + options: JSON + smartTags: JSON + tableId: UUID + tags: [String] + updatedAt: Datetime + whereClause: JSON +} - """Creates a single `ManagedDomain`.""" - createManagedDomain( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: CreateManagedDomainInput! - ): CreateManagedDomainPayload +""" +A filter to be used against Int fields. All fields are combined with a logical ‘and.’ +""" +input IntFilter { + """ + Not equal to the specified value, treating null like an ordinary value. + """ + distinctFrom: Int - """Creates a single `NodeTypeRegistry`.""" - createNodeTypeRegistry( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: CreateNodeTypeRegistryInput! - ): CreateNodeTypeRegistryPayload + """Equal to the specified value.""" + equalTo: Int - """Creates a single `Page`.""" - createPage( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: CreatePageInput! - ): CreatePagePayload + """Greater than the specified value.""" + greaterThan: Int - """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 + """Greater than or equal to the specified value.""" + greaterThanOrEqualTo: Int - """Creates a single `PlatformApiSchema`.""" - createPlatformApiSchema( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: CreatePlatformApiSchemaInput! - ): CreatePlatformApiSchemaPayload + """Included in the specified list.""" + in: [Int!] - """Creates a single `PlatformApiSetting`.""" - createPlatformApiSetting( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: CreatePlatformApiSettingInput! - ): CreatePlatformApiSettingPayload + """ + Is null (if `true` is specified) or is not null (if `false` is specified). + """ + isNull: Boolean - """Creates a single `PlatformApis`.""" - createPlatformApis( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: CreatePlatformApisInput! - ): CreatePlatformApisPayload + """Less than the specified value.""" + lessThan: Int - """Creates a single `PlatformCorsSetting`.""" - createPlatformCorsSetting( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: CreatePlatformCorsSettingInput! - ): CreatePlatformCorsSettingPayload + """Less than or equal to the specified value.""" + lessThanOrEqualTo: Int - """Creates a single `PlatformDomain`.""" - createPlatformDomain( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: CreatePlatformDomainInput! - ): CreatePlatformDomainPayload + """Equal to the specified value, treating null like an ordinary value.""" + notDistinctFrom: Int - """Creates a single `PlatformDomainEvent`.""" - createPlatformDomainEvent( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: CreatePlatformDomainEventInput! - ): CreatePlatformDomainEventPayload + """Not equal to the specified value.""" + notEqualTo: Int - """Creates a single `PlatformDomainVerification`.""" - createPlatformDomainVerification( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: CreatePlatformDomainVerificationInput! - ): CreatePlatformDomainVerificationPayload + """Not included in the specified list.""" + notIn: [Int!] +} - """Creates a single `PlatformManagedDomain`.""" - createPlatformManagedDomain( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: CreatePlatformManagedDomainInput! - ): CreatePlatformManagedDomainPayload +""" +Represents JSON values as specified by [ECMA-404](http://www.ecma-international.org/publications/files/ECMA-ST/ECMA-404.pdf). +""" +scalar JSON - """Creates a single `PlatformPage`.""" - createPlatformPage( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: CreatePlatformPageInput! - ): CreatePlatformPagePayload +""" +A filter to be used against JSON fields. All fields are combined with a logical ‘and.’ +""" +input JSONFilter { + """Contained by the specified JSON.""" + containedBy: JSON - """Creates a single `PlatformSite`.""" - createPlatformSite( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: CreatePlatformSiteInput! - ): CreatePlatformSitePayload + """Contains the specified JSON.""" + contains: JSON - """Creates a single `PlatformSiteAppLink`.""" - createPlatformSiteAppLink( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: CreatePlatformSiteAppLinkInput! - ): CreatePlatformSiteAppLinkPayload + """Contains all of the specified keys.""" + containsAllKeys: [String!] - """Creates a single `PlatformSiteDeepLink`.""" - createPlatformSiteDeepLink( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: CreatePlatformSiteDeepLinkInput! - ): CreatePlatformSiteDeepLinkPayload + """Contains any of the specified keys.""" + containsAnyKeys: [String!] - """Creates a single `PlatformSiteErrorPage`.""" - createPlatformSiteErrorPage( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: CreatePlatformSiteErrorPageInput! - ): CreatePlatformSiteErrorPagePayload + """Contains the specified key.""" + containsKey: String - """Creates a single `PlatformSiteMetadatum`.""" - createPlatformSiteMetadatum( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: CreatePlatformSiteMetadatumInput! - ): CreatePlatformSiteMetadatumPayload + """ + Not equal to the specified value, treating null like an ordinary value. + """ + distinctFrom: JSON - """Creates a single `PlatformSiteModule`.""" - createPlatformSiteModule( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: CreatePlatformSiteModuleInput! - ): CreatePlatformSiteModulePayload + """Equal to the specified value.""" + equalTo: JSON - """Creates a single `PlatformSiteTheme`.""" - createPlatformSiteTheme( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: CreatePlatformSiteThemeInput! - ): CreatePlatformSiteThemePayload + """Greater than the specified value.""" + greaterThan: JSON - """Creates a single `PlatformSiteWebConfig`.""" - createPlatformSiteWebConfig( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: CreatePlatformSiteWebConfigInput! - ): CreatePlatformSiteWebConfigPayload + """Greater than or equal to the specified value.""" + greaterThanOrEqualTo: JSON - """Creates a single `Policy`.""" - createPolicy( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: CreatePolicyInput! - ): CreatePolicyPayload + """Included in the specified list.""" + in: [JSON!] - """Creates a single `PrimaryKeyConstraint`.""" - createPrimaryKeyConstraint( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: CreatePrimaryKeyConstraintInput! - ): CreatePrimaryKeyConstraintPayload + """ + Is null (if `true` is specified) or is not null (if `false` is specified). + """ + isNull: Boolean - """Creates a single `PubkeySetting`.""" - createPubkeySetting( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: CreatePubkeySettingInput! - ): CreatePubkeySettingPayload + """Less than the specified value.""" + lessThan: JSON - """Creates a single `RlsSetting`.""" - createRlsSetting( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: CreateRlsSettingInput! - ): CreateRlsSettingPayload + """Less than or equal to the specified value.""" + lessThanOrEqualTo: JSON - """Creates a single `Route`.""" - createRoute( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: CreateRouteInput! - ): CreateRoutePayload + """Equal to the specified value, treating null like an ordinary value.""" + notDistinctFrom: JSON - """Creates a single `RouteBinding`.""" - createRouteBinding( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: CreateRouteBindingInput! - ): CreateRouteBindingPayload + """Not equal to the specified value.""" + notEqualTo: JSON - """Creates a single `Schema`.""" - createSchema( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: CreateSchemaInput! - ): CreateSchemaPayload + """Not included in the specified list.""" + notIn: [JSON!] +} - """Creates a single `SchemaGrant`.""" - createSchemaGrant( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: CreateSchemaGrantInput! - ): CreateSchemaGrantPayload +""" +Platform-operated hostnames whose DNS and certificate lifecycle the platform drives +""" +type ManagedDomain { + """Whether tenants may claim subdomains under this managed hostname""" + allowPublicUsage: Boolean! - """Creates a single `Site`.""" - createSite( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: CreateSiteInput! - ): CreateSitePayload + """Free-form operator annotations for this managed hostname""" + annotations: JSON! - """Creates a single `SiteAppLink`.""" - createSiteAppLink( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: CreateSiteAppLinkInput! - ): CreateSiteAppLinkPayload + """Certificate issuance state for this managed hostname""" + certStatus: String! + createdAt: Datetime - """Creates a single `SiteDeepLink`.""" - createSiteDeepLink( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: CreateSiteDeepLinkInput! - ): CreateSiteDeepLinkPayload + """Database that owns this resource (database-scoped isolation)""" + databaseId: UUID! - """Creates a single `SiteErrorPage`.""" - createSiteErrorPage( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: CreateSiteErrorPageInput! - ): CreateSiteErrorPagePayload + """ + Lowercase fully-qualified managed hostname; wildcards use the *.parent form + """ + domain: String! - """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 + """Reads and enables pagination through a set of `DomainEvent`.""" + domainEvents( + """Read all values in the set after (below) this cursor.""" + after: Cursor - """Creates a single `SiteModule`.""" - createSiteModule( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: CreateSiteModuleInput! - ): CreateSiteModulePayload + """Read all values in the set before (above) this cursor.""" + before: Cursor - """Creates a single `SiteTheme`.""" - createSiteTheme( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: CreateSiteThemeInput! - ): CreateSiteThemePayload + """Only read the first `n` values of the set.""" + first: Int - """Creates a single `SiteWebConfig`.""" - createSiteWebConfig( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: CreateSiteWebConfigInput! - ): CreateSiteWebConfigPayload + """Only read the last `n` values of the set.""" + last: Int - """Creates a single `SpatialRelation`.""" - createSpatialRelation( """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + Skip the first `n` values from our `after` cursor, an alternative to cursor + based pagination. May not be used with `last`. """ - input: CreateSpatialRelationInput! - ): CreateSpatialRelationPayload + offset: Int - """Creates a single `Table`.""" - createTable( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: CreateTableInput! - ): CreateTablePayload + """The method to use when ordering `DomainEvent`.""" + orderBy: [DomainEventOrderBy!] = [PRIMARY_KEY_ASC] - """Creates a single `TableBehavior`.""" - createTableBehavior( """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + A filter to be used in determining which values should be returned by the collection. """ - input: CreateTableBehaviorInput! - ): CreateTableBehaviorPayload + where: DomainEventFilter + ): DomainEventConnection! - """Creates a single `TableGrant`.""" - createTableGrant( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: CreateTableGrantInput! - ): CreateTableGrantPayload + """Reads and enables pagination through a set of `DomainVerification`.""" + domainVerifications( + """Read all values in the set after (below) this cursor.""" + after: Cursor - """Creates a single `Trigger`.""" - createTrigger( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: CreateTriggerInput! - ): CreateTriggerPayload + """Read all values in the set before (above) this cursor.""" + before: Cursor - """Creates a single `TriggerFunction`.""" - createTriggerFunction( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: CreateTriggerFunctionInput! - ): CreateTriggerFunctionPayload + """Only read the first `n` values of the set.""" + first: Int - """Creates a single `UniqueConstraint`.""" - createUniqueConstraint( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: CreateUniqueConstraintInput! - ): CreateUniqueConstraintPayload + """Only read the last `n` values of the set.""" + last: Int - """Creates a single `UniqueConstraintBehavior`.""" - createUniqueConstraintBehavior( """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + Skip the first `n` values from our `after` cursor, an alternative to cursor + based pagination. May not be used with `last`. """ - input: CreateUniqueConstraintBehaviorInput! - ): CreateUniqueConstraintBehaviorPayload + offset: Int + + """The method to use when ordering `DomainVerification`.""" + orderBy: [DomainVerificationOrderBy!] = [PRIMARY_KEY_ASC] - """Creates a single `View`.""" - createView( """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + A filter to be used in determining which values should be returned by the collection. """ - input: CreateViewInput! - ): CreateViewPayload + where: DomainVerificationFilter + ): DomainVerificationConnection! + id: UUID! - """Creates a single `ViewBehavior`.""" - createViewBehavior( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: CreateViewBehaviorInput! - ): CreateViewBehaviorPayload + """Whether this managed hostname is a *.parent wildcard""" + isWildcard: Boolean! - """Creates a single `ViewGrant`.""" - createViewGrant( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: CreateViewGrantInput! - ): CreateViewGrantPayload + """When TLS last became ready""" + tlsReadyAt: Datetime - """Creates a single `ViewRule`.""" - createViewRule( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: CreateViewRuleInput! - ): CreateViewRulePayload + """TLS provisioning state for this managed hostname""" + tlsStatus: String! + updatedAt: Datetime - """Creates a single `ViewTable`.""" - createViewTable( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: CreateViewTableInput! - ): CreateViewTablePayload + """DNS ownership verification state of this managed hostname""" + verificationStatus: String! - """Creates a single `WebauthnSetting`.""" - createWebauthnSetting( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: CreateWebauthnSettingInput! - ): CreateWebauthnSettingPayload + """When ownership verification last succeeded""" + verifiedAt: Datetime +} - """Deletes a single `ApiSchema` using a unique key.""" - deleteApiSchema( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: DeleteApiSchemaInput! - ): DeleteApiSchemaPayload +"""A connection to a list of `ManagedDomain` values.""" +type ManagedDomainConnection { + """ + A list of edges which contains the `ManagedDomain` and cursor to aid in pagination. + """ + edges: [ManagedDomainEdge]! - """Deletes a single `ApiSetting` using a unique key.""" - deleteApiSetting( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: DeleteApiSettingInput! - ): DeleteApiSettingPayload + """A list of `ManagedDomain` objects.""" + nodes: [ManagedDomain]! - """Deletes a single `Apis` using a unique key.""" - deleteApis( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: DeleteApisInput! - ): DeleteApisPayload + """Information to aid in pagination.""" + pageInfo: PageInfo! - """Deletes a single `CheckConstraint` using a unique key.""" - deleteCheckConstraint( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: DeleteCheckConstraintInput! - ): DeleteCheckConstraintPayload + """The count of *all* `ManagedDomain` you could get from the connection.""" + totalCount: Int! +} - """Deletes a single `CompositeType` using a unique key.""" - deleteCompositeType( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: DeleteCompositeTypeInput! - ): DeleteCompositeTypePayload +"""A `ManagedDomain` edge in the connection.""" +type ManagedDomainEdge { + """A cursor for use in pagination.""" + cursor: Cursor - """Deletes a single `CorsSetting` using a unique key.""" - deleteCorsSetting( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: DeleteCorsSettingInput! - ): DeleteCorsSettingPayload + """The `ManagedDomain` at the end of the edge.""" + node: ManagedDomain +} - """Deletes a single `Database` using a unique key.""" - deleteDatabase( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: DeleteDatabaseInput! - ): DeleteDatabasePayload +""" +A filter to be used against `ManagedDomain` object types. All fields are combined with a logical ‘and.’ +""" +input ManagedDomainFilter { + """Filter by the object’s `allowPublicUsage` field.""" + allowPublicUsage: BooleanFilter - """Deletes a single `DatabaseSetting` using a unique key.""" - deleteDatabaseSetting( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: DeleteDatabaseSettingInput! - ): DeleteDatabaseSettingPayload + """Checks for all expressions in this list.""" + and: [ManagedDomainFilter!] - """Deletes a single `DatabaseTransfer` using a unique key.""" - deleteDatabaseTransfer( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: DeleteDatabaseTransferInput! - ): DeleteDatabaseTransferPayload + """Filter by the object’s `annotations` field.""" + annotations: JSONFilter - """Deletes a single `DefaultPrivilege` using a unique key.""" - deleteDefaultPrivilege( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: DeleteDefaultPrivilegeInput! - ): DeleteDefaultPrivilegePayload + """Filter by the object’s `certStatus` field.""" + certStatus: StringFilter - """Deletes a single `Derive` using a unique key.""" - deleteDerive( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: DeleteDeriveInput! - ): DeleteDerivePayload + """Filter by the object’s `createdAt` field.""" + createdAt: DatetimeFilter - """Deletes a single `Domain` using a unique key.""" - deleteDomain( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: DeleteDomainInput! - ): DeleteDomainPayload + """Filter by the object’s `databaseId` field.""" + databaseId: UUIDFilter - """Deletes a single `DomainEvent` using a unique key.""" - deleteDomainEvent( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: DeleteDomainEventInput! - ): DeleteDomainEventPayload + """Filter by the object’s `domain` field.""" + domain: StringFilter - """Deletes a single `DomainType` using a unique key.""" - deleteDomainType( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: DeleteDomainTypeInput! - ): DeleteDomainTypePayload + """Filter by the object’s `domainEvents` relation.""" + domainEvents: ManagedDomainToManyDomainEventFilter - """Deletes a single `DomainVerification` using a unique key.""" - deleteDomainVerification( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: DeleteDomainVerificationInput! - ): DeleteDomainVerificationPayload + """`domainEvents` exist.""" + domainEventsExist: Boolean - """Deletes a single `EmbeddingChunk` using a unique key.""" - deleteEmbeddingChunk( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: DeleteEmbeddingChunkInput! - ): DeleteEmbeddingChunkPayload + """Filter by the object’s `domainVerifications` relation.""" + domainVerifications: ManagedDomainToManyDomainVerificationFilter - """Deletes a single `Enum` using a unique key.""" - deleteEnum( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: DeleteEnumInput! - ): DeleteEnumPayload + """`domainVerifications` exist.""" + domainVerificationsExist: Boolean - """Deletes a single `ExclusionConstraint` using a unique key.""" - deleteExclusionConstraint( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: DeleteExclusionConstraintInput! - ): DeleteExclusionConstraintPayload + """Filter by the object’s `id` field.""" + id: UUIDFilter - """Deletes a single `Field` using a unique key.""" - deleteField( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: DeleteFieldInput! - ): DeleteFieldPayload + """Filter by the object’s `isWildcard` field.""" + isWildcard: BooleanFilter - """Deletes a single `FieldBehavior` using a unique key.""" - deleteFieldBehavior( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: DeleteFieldBehaviorInput! - ): DeleteFieldBehaviorPayload + """Negates the expression.""" + not: ManagedDomainFilter - """Deletes a single `ForeignKeyConstraint` using a unique key.""" - deleteForeignKeyConstraint( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: DeleteForeignKeyConstraintInput! - ): DeleteForeignKeyConstraintPayload + """Checks for any expressions in this list.""" + or: [ManagedDomainFilter!] - """Deletes a single `ForeignKeyConstraintBehavior` using a unique key.""" - deleteForeignKeyConstraintBehavior( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: DeleteForeignKeyConstraintBehaviorInput! - ): DeleteForeignKeyConstraintBehaviorPayload + """Filter by the object’s `tlsReadyAt` field.""" + tlsReadyAt: DatetimeFilter - """Deletes a single `FullTextSearch` using a unique key.""" - deleteFullTextSearch( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: DeleteFullTextSearchInput! - ): DeleteFullTextSearchPayload + """Filter by the object’s `tlsStatus` field.""" + tlsStatus: StringFilter - """Deletes a single `Function` using a unique key.""" - deleteFunction( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: DeleteFunctionInput! - ): DeleteFunctionPayload + """Filter by the object’s `updatedAt` field.""" + updatedAt: DatetimeFilter - """Deletes a single `HostnameBinding` using a unique key.""" - deleteHostnameBinding( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: DeleteHostnameBindingInput! - ): DeleteHostnameBindingPayload + """Filter by the object’s `verificationStatus` field.""" + verificationStatus: StringFilter - """Deletes a single `HttpRoute` using a unique key.""" - deleteHttpRoute( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: DeleteHttpRouteInput! - ): DeleteHttpRoutePayload + """Filter by the object’s `verifiedAt` field.""" + verifiedAt: DatetimeFilter +} - """Deletes a single `Index` using a unique key.""" - deleteIndex( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: DeleteIndexInput! - ): DeleteIndexPayload +"""An input for mutations affecting `ManagedDomain`""" +input ManagedDomainInput { + """Whether tenants may claim subdomains under this managed hostname""" + allowPublicUsage: Boolean - """Deletes a single `ManagedDomain` using a unique key.""" - deleteManagedDomain( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: DeleteManagedDomainInput! - ): DeleteManagedDomainPayload + """Free-form operator annotations for this managed hostname""" + annotations: JSON - """Deletes a single `NodeTypeRegistry` using a unique key.""" - deleteNodeTypeRegistry( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: DeleteNodeTypeRegistryInput! - ): DeleteNodeTypeRegistryPayload + """Certificate issuance state for this managed hostname""" + certStatus: String + createdAt: Datetime - """Deletes a single `Page` using a unique key.""" - deletePage( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: DeletePageInput! - ): DeletePagePayload + """Database that owns this resource (database-scoped isolation)""" + databaseId: UUID! - """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 + """ + Lowercase fully-qualified managed hostname; wildcards use the *.parent form + """ + domain: String! + id: UUID - """Deletes a single `PlatformApiSchema` using a unique key.""" - deletePlatformApiSchema( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: DeletePlatformApiSchemaInput! - ): DeletePlatformApiSchemaPayload + """Whether this managed hostname is a *.parent wildcard""" + isWildcard: Boolean - """Deletes a single `PlatformApiSetting` using a unique key.""" - deletePlatformApiSetting( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: DeletePlatformApiSettingInput! - ): DeletePlatformApiSettingPayload + """When TLS last became ready""" + tlsReadyAt: Datetime - """Deletes a single `PlatformApis` using a unique key.""" - deletePlatformApis( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: DeletePlatformApisInput! - ): DeletePlatformApisPayload + """TLS provisioning state for this managed hostname""" + tlsStatus: String + updatedAt: Datetime - """Deletes a single `PlatformCorsSetting` using a unique key.""" - deletePlatformCorsSetting( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: DeletePlatformCorsSettingInput! - ): DeletePlatformCorsSettingPayload + """DNS ownership verification state of this managed hostname""" + verificationStatus: String - """Deletes a single `PlatformDomain` using a unique key.""" - deletePlatformDomain( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: DeletePlatformDomainInput! - ): DeletePlatformDomainPayload + """When ownership verification last succeeded""" + verifiedAt: Datetime +} - """Deletes a single `PlatformDomainEvent` using a unique key.""" - deletePlatformDomainEvent( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: DeletePlatformDomainEventInput! - ): DeletePlatformDomainEventPayload +"""Methods to use when ordering `ManagedDomain`.""" +enum ManagedDomainOrderBy { + ALLOW_PUBLIC_USAGE_ASC + ALLOW_PUBLIC_USAGE_DESC + ANNOTATIONS_ASC + ANNOTATIONS_DESC + CERT_STATUS_ASC + CERT_STATUS_DESC + CREATED_AT_ASC + CREATED_AT_DESC + DATABASE_ID_ASC + DATABASE_ID_DESC + DOMAIN_ASC + DOMAIN_DESC + ID_ASC + ID_DESC + IS_WILDCARD_ASC + IS_WILDCARD_DESC + NATURAL + PRIMARY_KEY_ASC + PRIMARY_KEY_DESC + TLS_READY_AT_ASC + TLS_READY_AT_DESC + TLS_STATUS_ASC + TLS_STATUS_DESC + UPDATED_AT_ASC + UPDATED_AT_DESC + VERIFICATION_STATUS_ASC + VERIFICATION_STATUS_DESC + VERIFIED_AT_ASC + VERIFIED_AT_DESC +} - """Deletes a single `PlatformDomainVerification` using a unique key.""" - deletePlatformDomainVerification( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: DeletePlatformDomainVerificationInput! - ): DeletePlatformDomainVerificationPayload +""" +Represents an update to a `ManagedDomain`. Fields that are set will be updated. +""" +input ManagedDomainPatch { + """Whether tenants may claim subdomains under this managed hostname""" + allowPublicUsage: Boolean - """Deletes a single `PlatformManagedDomain` using a unique key.""" - deletePlatformManagedDomain( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: DeletePlatformManagedDomainInput! - ): DeletePlatformManagedDomainPayload + """Free-form operator annotations for this managed hostname""" + annotations: JSON - """Deletes a single `PlatformPage` using a unique key.""" - deletePlatformPage( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: DeletePlatformPageInput! - ): DeletePlatformPagePayload + """Certificate issuance state for this managed hostname""" + certStatus: String + createdAt: Datetime - """Deletes a single `PlatformSite` using a unique key.""" - deletePlatformSite( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: DeletePlatformSiteInput! - ): DeletePlatformSitePayload + """Database that owns this resource (database-scoped isolation)""" + databaseId: UUID - """Deletes a single `PlatformSiteAppLink` using a unique key.""" - deletePlatformSiteAppLink( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: DeletePlatformSiteAppLinkInput! - ): DeletePlatformSiteAppLinkPayload + """ + Lowercase fully-qualified managed hostname; wildcards use the *.parent form + """ + domain: String + id: UUID - """Deletes a single `PlatformSiteDeepLink` using a unique key.""" - deletePlatformSiteDeepLink( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: DeletePlatformSiteDeepLinkInput! - ): DeletePlatformSiteDeepLinkPayload + """Whether this managed hostname is a *.parent wildcard""" + isWildcard: Boolean - """Deletes a single `PlatformSiteErrorPage` using a unique key.""" - deletePlatformSiteErrorPage( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: DeletePlatformSiteErrorPageInput! - ): DeletePlatformSiteErrorPagePayload + """When TLS last became ready""" + tlsReadyAt: Datetime - """Deletes a single `PlatformSiteMetadatum` using a unique key.""" - deletePlatformSiteMetadatum( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: DeletePlatformSiteMetadatumInput! - ): DeletePlatformSiteMetadatumPayload + """TLS provisioning state for this managed hostname""" + tlsStatus: String + updatedAt: Datetime - """Deletes a single `PlatformSiteModule` using a unique key.""" - deletePlatformSiteModule( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: DeletePlatformSiteModuleInput! - ): DeletePlatformSiteModulePayload + """DNS ownership verification state of this managed hostname""" + verificationStatus: String - """Deletes a single `PlatformSiteTheme` using a unique key.""" - deletePlatformSiteTheme( + """When ownership verification last succeeded""" + verifiedAt: Datetime +} + +""" +A filter to be used against many `DomainEvent` object types. All fields are combined with a logical ‘and.’ +""" +input ManagedDomainToManyDomainEventFilter { + """Filters to entities where every related entity matches.""" + every: DomainEventFilter + + """Filters to entities where no related entity matches.""" + none: DomainEventFilter + + """Filters to entities where at least one related entity matches.""" + some: DomainEventFilter +} + +""" +A filter to be used against many `DomainVerification` object types. All fields are combined with a logical ‘and.’ +""" +input ManagedDomainToManyDomainVerificationFilter { + """Filters to entities where every related entity matches.""" + every: DomainVerificationFilter + + """Filters to entities where no related entity matches.""" + none: DomainVerificationFilter + + """Filters to entities where at least one related entity matches.""" + some: DomainVerificationFilter +} + +"""A belongs-to (forward FK) relation""" +type MetaBelongsToRelation { + fieldName: String + isUnique: Boolean! + keys: [MetaField!]! + references: MetaRefTable! + type: String +} + +"""Table constraints""" +type MetaConstraints { + foreignKey: [MetaForeignKeyConstraint!]! + primaryKey: MetaPrimaryKeyConstraint + unique: [MetaUniqueConstraint!]! +} + +"""Information about a PostgreSQL enum type""" +type MetaEnum { + """The PostgreSQL enum type name""" + name: String! + + """Allowed values for this enum""" + values: [String!]! +} + +"""Information about a table field/column""" +type MetaField { + """PostgreSQL column name""" + columnName: String! + description: String + + """Enum metadata if this field has an enum type""" + enumValues: MetaEnum + hasDefault: Boolean! + isForeignKey: Boolean! + isNotNull: Boolean! + isPrimaryKey: Boolean! + + """Final GraphQL field name""" + name: String! + type: MetaType! +} + +"""Information about a foreign key constraint""" +type MetaForeignKeyConstraint { + fields: [MetaField!]! + name: String! + refFields: [MetaField!] + refTable: MetaRefTable + referencedFields: [String!]! + referencedTable: String! +} + +"""A has-one or has-many (reverse FK) relation""" +type MetaHasRelation { + fieldName: String + isUnique: Boolean! + keys: [MetaField!]! + referencedBy: MetaRefTable! + type: String +} + +"""i18n metadata for a table with @i18n tag""" +type MetaI18n { + """Fields that are translatable""" + translatableFields: [MetaI18nField!]! + + """Name of the translation table""" + translationTable: String! +} + +"""A translatable field""" +type MetaI18nField { + """GraphQL field name""" + name: String! + + """PostgreSQL column type (text, citext)""" + type: String! +} + +"""Information about a database index""" +type MetaIndex { + columns: [String!]! + fields: [MetaField!] + isPrimary: Boolean! + isUnique: Boolean! + name: String! +} + +"""Table inflection names""" +type MetaInflection { + allRows: String! + conditionType: String! + connection: String! + createInputType: String! + createPayloadType: String! + deletePayloadType: String! + edge: String! + filterType: String + orderByType: String! + patchType: String + tableType: String! + updatePayloadType: String +} + +"""A many-to-many relation via junction table""" +type MetaManyToManyRelation { + fieldName: String + junctionLeftConstraint: MetaForeignKeyConstraint! + junctionLeftKeyAttributes: [MetaField!]! + junctionRightConstraint: MetaForeignKeyConstraint! + junctionRightKeyAttributes: [MetaField!]! + junctionTable: MetaRefTable! + leftKeyAttributes: [MetaField!]! + rightKeyAttributes: [MetaField!]! + rightTable: MetaRefTable! + type: String +} + +"""Information about a primary key constraint""" +type MetaPrimaryKeyConstraint { + fields: [MetaField!]! + name: String! +} + +"""Table query/mutation names""" +type MetaQuery { + all: String + create: String + delete: String + one: String + update: String +} + +"""Realtime metadata for a table with @realtime tag""" +type MetaRealtime { + """The generated subscription field name (e.g. onPostChanged)""" + subscriptionFieldName: String! +} + +"""Reference to a related table""" +type MetaRefTable { + name: String! +} + +"""Table relations""" +type MetaRelations { + belongsTo: [MetaBelongsToRelation!]! + has: [MetaHasRelation!]! + hasMany: [MetaHasRelation!]! + hasOne: [MetaHasRelation!]! + manyToMany: [MetaManyToManyRelation!]! +} + +""" +How a client must serialize/parse a scalar — the one field-type detail standard GraphQL introspection cannot describe. Null for plain scalars whose wire format is obvious from gqlType. +""" +type MetaScalarEncoding { + """For 'vector': declared length, else null.""" + dimensions: Int + + """For 'ltree': values are dot-separated path strings.""" + dotPath: Boolean + + """For 'vector': element scalar (e.g. 'float').""" + elementType: String + + """For 'geojson': Point/LineString/Polygon/…, else null.""" + geometrySubtype: String + + """ + Machine kind: bigint, datetime, date, time, interval, uuid, geojson, point, inet, ltree, vector, bytea, or composite. + """ + kind: String! + + """For 'geojson': spatial reference id, else null.""" + srid: Int +} + +"""Root meta schema type""" +type MetaSchema { + tables: [MetaTable!]! +} + +"""Provisioning scope metadata for a table""" +type MetaScope { + """SQL name of the entity table for entity scopes, else null""" + entityTable: String + + """ + Inflected scope key column (e.g. databaseId, orgId), null for global tiers + """ + keyColumn: String + + """ + Provisioning scope: 'platform', 'app', 'database', or an entity scope (e.g. 'org') + """ + scope: String! + + """Provenance of the scope metadata (always 'smartTag')""" + source: String! + + """Coarse bucket: 'global', 'database', or 'entity'""" + tier: String! +} + +"""Search metadata for a table""" +type MetaSearch { + """Active search algorithms on this table""" + algorithms: [String!]! + + """Searchable columns with their algorithm""" + columns: [MetaSearchColumn!]! + + """Per-table search configuration""" + config: MetaSearchConfig + + """Whether unifiedSearch composite filter is available""" + hasUnifiedSearch: Boolean! +} + +"""A searchable column with its algorithm""" +type MetaSearchColumn { + """Search algorithm: tsvector, bm25, trgm, or vector""" + algorithm: String! + + """Column name (camelCase)""" + name: String! +} + +"""Per-table search configuration from @searchConfig smart tag""" +type MetaSearchConfig { + """Exponential decay factor per day""" + boostRecencyDecay: Float + + """Field used for recency decay""" + boostRecencyField: String + + """Whether recency boosting is enabled""" + boostRecent: Boolean! + + """JSON-encoded per-adapter score weights""" + weights: String +} + +"""Storage metadata for a table""" +type MetaStorage { + """Whether this table is a storage buckets table""" + isBucketsTable: Boolean! + + """Whether this table is a storage files table""" + isFilesTable: Boolean! +} + +"""Information about a database table""" +type MetaTable { + constraints: MetaConstraints! + fields: [MetaField!]! + foreignKeyConstraints: [MetaForeignKeyConstraint!]! + + """i18n metadata (null if no @i18n tag)""" + i18n: MetaI18n + indexes: [MetaIndex!]! + inflection: MetaInflection! + + """Final GraphQL output type name""" + name: String! + primaryKeyConstraints: [MetaPrimaryKeyConstraint!]! + query: MetaQuery! + + """Realtime metadata (null if no @realtime tag)""" + realtime: MetaRealtime + relations: MetaRelations! + schemaName: String! + + """Provisioning scope metadata (null if no @scope tag)""" + scope: MetaScope + + """Search metadata (null if no search configured)""" + search: MetaSearch + + """Storage metadata (null if not a storage table)""" + storage: MetaStorage + + """PostgreSQL table name""" + tableName: String! + uniqueConstraints: [MetaUniqueConstraint!]! +} + +"""Information about a PostgreSQL type""" +type MetaType { + """Scalar serialization contract (null for plain scalars)""" + encoding: MetaScalarEncoding + gqlType: String! + hasDefault: Boolean + isArray: Boolean! + isNotNull: Boolean + pgType: String! + subtype: String +} + +"""Information about a unique constraint""" +type MetaUniqueConstraint { + fields: [MetaField!]! + name: String! +} + +""" +The root mutation type which contains root level fields which mutate data. +""" +type Mutation { + acceptDatabaseTransfer( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: DeletePlatformSiteThemeInput! - ): DeletePlatformSiteThemePayload - - """Deletes a single `PlatformSiteWebConfig` using a unique key.""" - deletePlatformSiteWebConfig( + input: AcceptDatabaseTransferInput! + ): AcceptDatabaseTransferPayload + applyRls( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: DeletePlatformSiteWebConfigInput! - ): DeletePlatformSiteWebConfigPayload - - """Deletes a single `Policy` using a unique key.""" - deletePolicy( + input: ApplyRlsInput! + ): ApplyRlsPayload + cancelDatabaseTransfer( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: DeletePolicyInput! - ): DeletePolicyPayload + input: CancelDatabaseTransferInput! + ): CancelDatabaseTransferPayload - """Deletes a single `PrimaryKeyConstraint` using a unique key.""" - deletePrimaryKeyConstraint( + """Creates a single `Api`.""" + createApi( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: DeletePrimaryKeyConstraintInput! - ): DeletePrimaryKeyConstraintPayload + input: CreateApiInput! + ): CreateApiPayload - """Deletes a single `PubkeySetting` using a unique key.""" - deletePubkeySetting( + """Creates a single `ApiSchema`.""" + createApiSchema( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: DeletePubkeySettingInput! - ): DeletePubkeySettingPayload + input: CreateApiSchemaInput! + ): CreateApiSchemaPayload - """Deletes a single `RlsSetting` using a unique key.""" - deleteRlsSetting( + """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: DeleteRlsSettingInput! - ): DeleteRlsSettingPayload + input: CreateApiSettingInput! + ): CreateApiSettingPayload - """Deletes a single `Route` using a unique key.""" - deleteRoute( + """Creates a single `CheckConstraint`.""" + createCheckConstraint( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: DeleteRouteInput! - ): DeleteRoutePayload + input: CreateCheckConstraintInput! + ): CreateCheckConstraintPayload - """Deletes a single `RouteBinding` using a unique key.""" - deleteRouteBinding( + """Creates a single `CompositeType`.""" + createCompositeType( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: DeleteRouteBindingInput! - ): DeleteRouteBindingPayload + input: CreateCompositeTypeInput! + ): CreateCompositeTypePayload - """Deletes a single `Schema` using a unique key.""" - deleteSchema( + """Creates a single `CorsSetting`.""" + createCorsSetting( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: DeleteSchemaInput! - ): DeleteSchemaPayload + input: CreateCorsSettingInput! + ): CreateCorsSettingPayload - """Deletes a single `SchemaGrant` using a unique key.""" - deleteSchemaGrant( + """Creates a single `Database`.""" + createDatabase( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: DeleteSchemaGrantInput! - ): DeleteSchemaGrantPayload + input: CreateDatabaseInput! + ): CreateDatabasePayload - """Deletes a single `Site` using a unique key.""" - deleteSite( + """Creates a single `DatabaseSetting`.""" + createDatabaseSetting( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: DeleteSiteInput! - ): DeleteSitePayload + input: CreateDatabaseSettingInput! + ): CreateDatabaseSettingPayload - """Deletes a single `SiteAppLink` using a unique key.""" - deleteSiteAppLink( + """Creates a single `DatabaseTransfer`.""" + createDatabaseTransfer( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: DeleteSiteAppLinkInput! - ): DeleteSiteAppLinkPayload + input: CreateDatabaseTransferInput! + ): CreateDatabaseTransferPayload - """Deletes a single `SiteDeepLink` using a unique key.""" - deleteSiteDeepLink( + """Creates a single `DefaultPrivilege`.""" + createDefaultPrivilege( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: DeleteSiteDeepLinkInput! - ): DeleteSiteDeepLinkPayload + input: CreateDefaultPrivilegeInput! + ): CreateDefaultPrivilegePayload - """Deletes a single `SiteErrorPage` using a unique key.""" - deleteSiteErrorPage( + """Creates a single `Derive`.""" + createDerive( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: DeleteSiteErrorPageInput! - ): DeleteSiteErrorPagePayload + input: CreateDeriveInput! + ): CreateDerivePayload - """Deletes a single `SiteMetadatum` using a unique key.""" - deleteSiteMetadatum( + """Creates a single `Domain`.""" + createDomain( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: DeleteSiteMetadatumInput! - ): DeleteSiteMetadatumPayload + input: CreateDomainInput! + ): CreateDomainPayload - """Deletes a single `SiteModule` using a unique key.""" - deleteSiteModule( + """Creates a single `DomainEvent`.""" + createDomainEvent( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: DeleteSiteModuleInput! - ): DeleteSiteModulePayload + input: CreateDomainEventInput! + ): CreateDomainEventPayload - """Deletes a single `SiteTheme` using a unique key.""" - deleteSiteTheme( + """Creates a single `DomainType`.""" + createDomainType( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: DeleteSiteThemeInput! - ): DeleteSiteThemePayload + input: CreateDomainTypeInput! + ): CreateDomainTypePayload - """Deletes a single `SiteWebConfig` using a unique key.""" - deleteSiteWebConfig( + """Creates a single `DomainVerification`.""" + createDomainVerification( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: DeleteSiteWebConfigInput! - ): DeleteSiteWebConfigPayload + input: CreateDomainVerificationInput! + ): CreateDomainVerificationPayload - """Deletes a single `SpatialRelation` using a unique key.""" - deleteSpatialRelation( + """Creates a single `EmailIdentity`.""" + createEmailIdentity( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: DeleteSpatialRelationInput! - ): DeleteSpatialRelationPayload + input: CreateEmailIdentityInput! + ): CreateEmailIdentityPayload - """Deletes a single `Table` using a unique key.""" - deleteTable( + """Creates a single `EmailProviderAccount`.""" + createEmailProviderAccount( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: DeleteTableInput! - ): DeleteTablePayload + input: CreateEmailProviderAccountInput! + ): CreateEmailProviderAccountPayload - """Deletes a single `TableBehavior` using a unique key.""" - deleteTableBehavior( + """Creates a single `EmailSiteIdentity`.""" + createEmailSiteIdentity( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: DeleteTableBehaviorInput! - ): DeleteTableBehaviorPayload + input: CreateEmailSiteIdentityInput! + ): CreateEmailSiteIdentityPayload - """Deletes a single `TableGrant` using a unique key.""" - deleteTableGrant( + """Creates a single `EmbeddingChunk`.""" + createEmbeddingChunk( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: DeleteTableGrantInput! - ): DeleteTableGrantPayload + input: CreateEmbeddingChunkInput! + ): CreateEmbeddingChunkPayload - """Deletes a single `Trigger` using a unique key.""" - deleteTrigger( + """Creates a single `Enum`.""" + createEnum( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: DeleteTriggerInput! - ): DeleteTriggerPayload + input: CreateEnumInput! + ): CreateEnumPayload - """Deletes a single `TriggerFunction` using a unique key.""" - deleteTriggerFunction( + """Creates a single `ExclusionConstraint`.""" + createExclusionConstraint( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: DeleteTriggerFunctionInput! - ): DeleteTriggerFunctionPayload + input: CreateExclusionConstraintInput! + ): CreateExclusionConstraintPayload - """Deletes a single `UniqueConstraint` using a unique key.""" - deleteUniqueConstraint( + """Creates a single `Field`.""" + createField( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: DeleteUniqueConstraintInput! - ): DeleteUniqueConstraintPayload + input: CreateFieldInput! + ): CreateFieldPayload - """Deletes a single `UniqueConstraintBehavior` using a unique key.""" - deleteUniqueConstraintBehavior( + """Creates a single `FieldBehavior`.""" + createFieldBehavior( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: DeleteUniqueConstraintBehaviorInput! - ): DeleteUniqueConstraintBehaviorPayload + input: CreateFieldBehaviorInput! + ): CreateFieldBehaviorPayload - """Deletes a single `View` using a unique key.""" - deleteView( + """Creates a single `ForeignKeyConstraint`.""" + createForeignKeyConstraint( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: DeleteViewInput! - ): DeleteViewPayload + input: CreateForeignKeyConstraintInput! + ): CreateForeignKeyConstraintPayload - """Deletes a single `ViewBehavior` using a unique key.""" - deleteViewBehavior( + """Creates a single `ForeignKeyConstraintBehavior`.""" + createForeignKeyConstraintBehavior( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: DeleteViewBehaviorInput! - ): DeleteViewBehaviorPayload + input: CreateForeignKeyConstraintBehaviorInput! + ): CreateForeignKeyConstraintBehaviorPayload - """Deletes a single `ViewGrant` using a unique key.""" - deleteViewGrant( + """Creates a single `FullTextSearch`.""" + createFullTextSearch( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: DeleteViewGrantInput! - ): DeleteViewGrantPayload + input: CreateFullTextSearchInput! + ): CreateFullTextSearchPayload - """Deletes a single `ViewRule` using a unique key.""" - deleteViewRule( + """Creates a single `Function`.""" + createFunction( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: DeleteViewRuleInput! - ): DeleteViewRulePayload + input: CreateFunctionInput! + ): CreateFunctionPayload - """Deletes a single `ViewTable` using a unique key.""" - deleteViewTable( + """Creates a single `HostnameBinding`.""" + createHostnameBinding( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: DeleteViewTableInput! - ): DeleteViewTablePayload + input: CreateHostnameBindingInput! + ): CreateHostnameBindingPayload - """Deletes a single `WebauthnSetting` using a unique key.""" - deleteWebauthnSetting( + """Creates a single `HttpRoute`.""" + createHttpRoute( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: DeleteWebauthnSettingInput! - ): DeleteWebauthnSettingPayload - domainsAssignSubdomain( + input: CreateHttpRouteInput! + ): CreateHttpRoutePayload + + """Creates a single `Index`.""" + createIndex( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: DomainsAssignSubdomainInput! - ): DomainsAssignSubdomainPayload - platformDomainsAssignSubdomain( + input: CreateIndexInput! + ): CreateIndexPayload + + """Creates a single `ManagedDomain`.""" + createManagedDomain( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: PlatformDomainsAssignSubdomainInput! - ): PlatformDomainsAssignSubdomainPayload - platformSitesProvisionStaticSite( + input: CreateManagedDomainInput! + ): CreateManagedDomainPayload + + """Creates a single `NodeTypeRegistry`.""" + createNodeTypeRegistry( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: PlatformSitesProvisionStaticSiteInput! - ): PlatformSitesProvisionStaticSitePayload + input: CreateNodeTypeRegistryInput! + ): CreateNodeTypeRegistryPayload - """ - 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, - and lifecycle settings. - """ - provisionBucket( + """Creates a single `Page`.""" + createPage( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: ProvisionBucketInput! - ): ProvisionBucketPayload - rejectDatabaseTransfer( + input: CreatePageInput! + ): CreatePagePayload + + """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: RejectDatabaseTransferInput! - ): RejectDatabaseTransferPayload + input: CreatePartitionInput! + ): CreatePartitionPayload - """ - Requests a database and returns a ticket (database_provision_module row) to poll. - - Pass exactly one of preset_slug or modules. The pool, presets, and owner bootstrap are private implementation details: a warm pool hit fulfills the ticket immediately (fulfilled_at set, deferred owner bootstrap), otherwise the database is cold-provisioned asynchronously with exactly the requested modules. Poll the ticket until status = 'completed'; it then carries database_id and fulfilled_at. - - Example usage: - SELECT * FROM metaschema_public.request_database('my_app', 'example.com', preset_slug := 'full'); - SELECT * FROM metaschema_public.request_database('my_app', 'example.com', modules := '["users_module", "emails_module"]'::jsonb); - """ - requestDatabase( + """Creates a single `PlatformApi`.""" + createPlatformApi( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: RequestDatabaseInput! - ): RequestDatabasePayload - setFieldOrder( + input: CreatePlatformApiInput! + ): CreatePlatformApiPayload + + """Creates a single `PlatformApiSchema`.""" + createPlatformApiSchema( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: SetFieldOrderInput! - ): SetFieldOrderPayload - sitesProvisionStaticSite( + input: CreatePlatformApiSchemaInput! + ): CreatePlatformApiSchemaPayload + + """Creates a single `PlatformApiSetting`.""" + createPlatformApiSetting( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: SitesProvisionStaticSiteInput! - ): SitesProvisionStaticSitePayload + input: CreatePlatformApiSettingInput! + ): CreatePlatformApiSettingPayload - """Updates a single `ApiSchema` using a unique key and a patch.""" - updateApiSchema( + """Creates a single `PlatformCorsSetting`.""" + createPlatformCorsSetting( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: UpdateApiSchemaInput! - ): UpdateApiSchemaPayload + input: CreatePlatformCorsSettingInput! + ): CreatePlatformCorsSettingPayload - """Updates a single `ApiSetting` using a unique key and a patch.""" - updateApiSetting( + """Creates a single `PlatformDomain`.""" + createPlatformDomain( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: UpdateApiSettingInput! - ): UpdateApiSettingPayload + input: CreatePlatformDomainInput! + ): CreatePlatformDomainPayload - """Updates a single `Apis` using a unique key and a patch.""" - updateApis( + """Creates a single `PlatformDomainEvent`.""" + createPlatformDomainEvent( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: UpdateApisInput! - ): UpdateApisPayload + input: CreatePlatformDomainEventInput! + ): CreatePlatformDomainEventPayload - """Updates a single `CheckConstraint` using a unique key and a patch.""" - updateCheckConstraint( + """Creates a single `PlatformDomainVerification`.""" + createPlatformDomainVerification( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: UpdateCheckConstraintInput! - ): UpdateCheckConstraintPayload + input: CreatePlatformDomainVerificationInput! + ): CreatePlatformDomainVerificationPayload - """Updates a single `CompositeType` using a unique key and a patch.""" - updateCompositeType( + """Creates a single `PlatformEmailIdentity`.""" + createPlatformEmailIdentity( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: UpdateCompositeTypeInput! - ): UpdateCompositeTypePayload + input: CreatePlatformEmailIdentityInput! + ): CreatePlatformEmailIdentityPayload - """Updates a single `CorsSetting` using a unique key and a patch.""" - updateCorsSetting( + """Creates a single `PlatformEmailProviderAccount`.""" + createPlatformEmailProviderAccount( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: UpdateCorsSettingInput! - ): UpdateCorsSettingPayload + input: CreatePlatformEmailProviderAccountInput! + ): CreatePlatformEmailProviderAccountPayload - """Updates a single `Database` using a unique key and a patch.""" - updateDatabase( + """Creates a single `PlatformEmailSiteIdentity`.""" + createPlatformEmailSiteIdentity( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: UpdateDatabaseInput! - ): UpdateDatabasePayload + input: CreatePlatformEmailSiteIdentityInput! + ): CreatePlatformEmailSiteIdentityPayload - """Updates a single `DatabaseSetting` using a unique key and a patch.""" - updateDatabaseSetting( + """Creates a single `PlatformManagedDomain`.""" + createPlatformManagedDomain( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: UpdateDatabaseSettingInput! - ): UpdateDatabaseSettingPayload + input: CreatePlatformManagedDomainInput! + ): CreatePlatformManagedDomainPayload - """Updates a single `DatabaseTransfer` using a unique key and a patch.""" - updateDatabaseTransfer( + """Creates a single `PlatformPage`.""" + createPlatformPage( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: UpdateDatabaseTransferInput! - ): UpdateDatabaseTransferPayload + input: CreatePlatformPageInput! + ): CreatePlatformPagePayload - """Updates a single `DefaultPrivilege` using a unique key and a patch.""" - updateDefaultPrivilege( + """Creates a single `PlatformSite`.""" + createPlatformSite( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: UpdateDefaultPrivilegeInput! - ): UpdateDefaultPrivilegePayload + input: CreatePlatformSiteInput! + ): CreatePlatformSitePayload - """Updates a single `Derive` using a unique key and a patch.""" - updateDerive( + """Creates a single `PlatformSiteAppLink`.""" + createPlatformSiteAppLink( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: UpdateDeriveInput! - ): UpdateDerivePayload + input: CreatePlatformSiteAppLinkInput! + ): CreatePlatformSiteAppLinkPayload - """Updates a single `Domain` using a unique key and a patch.""" - updateDomain( + """Creates a single `PlatformSiteDeepLink`.""" + createPlatformSiteDeepLink( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: UpdateDomainInput! - ): UpdateDomainPayload + input: CreatePlatformSiteDeepLinkInput! + ): CreatePlatformSiteDeepLinkPayload - """Updates a single `DomainEvent` using a unique key and a patch.""" - updateDomainEvent( + """Creates a single `PlatformSiteErrorPage`.""" + createPlatformSiteErrorPage( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: UpdateDomainEventInput! - ): UpdateDomainEventPayload + input: CreatePlatformSiteErrorPageInput! + ): CreatePlatformSiteErrorPagePayload - """Updates a single `DomainType` using a unique key and a patch.""" - updateDomainType( + """Creates a single `PlatformSiteMetadatum`.""" + createPlatformSiteMetadatum( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: UpdateDomainTypeInput! - ): UpdateDomainTypePayload + input: CreatePlatformSiteMetadatumInput! + ): CreatePlatformSiteMetadatumPayload - """Updates a single `DomainVerification` using a unique key and a patch.""" - updateDomainVerification( + """Creates a single `PlatformSiteModule`.""" + createPlatformSiteModule( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: UpdateDomainVerificationInput! - ): UpdateDomainVerificationPayload + input: CreatePlatformSiteModuleInput! + ): CreatePlatformSiteModulePayload - """Updates a single `EmbeddingChunk` using a unique key and a patch.""" - updateEmbeddingChunk( + """Creates a single `PlatformSiteTheme`.""" + createPlatformSiteTheme( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: UpdateEmbeddingChunkInput! - ): UpdateEmbeddingChunkPayload + input: CreatePlatformSiteThemeInput! + ): CreatePlatformSiteThemePayload - """Updates a single `Enum` using a unique key and a patch.""" - updateEnum( + """Creates a single `PlatformSiteWebConfig`.""" + createPlatformSiteWebConfig( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: UpdateEnumInput! - ): UpdateEnumPayload + input: CreatePlatformSiteWebConfigInput! + ): CreatePlatformSiteWebConfigPayload - """Updates a single `ExclusionConstraint` using a unique key and a patch.""" - updateExclusionConstraint( + """Creates a single `Policy`.""" + createPolicy( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: UpdateExclusionConstraintInput! - ): UpdateExclusionConstraintPayload + input: CreatePolicyInput! + ): CreatePolicyPayload - """Updates a single `Field` using a unique key and a patch.""" - updateField( + """Creates a single `PrimaryKeyConstraint`.""" + createPrimaryKeyConstraint( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: UpdateFieldInput! - ): UpdateFieldPayload + input: CreatePrimaryKeyConstraintInput! + ): CreatePrimaryKeyConstraintPayload - """Updates a single `FieldBehavior` using a unique key and a patch.""" - updateFieldBehavior( + """Creates a single `PubkeySetting`.""" + createPubkeySetting( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: UpdateFieldBehaviorInput! - ): UpdateFieldBehaviorPayload + input: CreatePubkeySettingInput! + ): CreatePubkeySettingPayload - """ - Updates a single `ForeignKeyConstraint` using a unique key and a patch. - """ - updateForeignKeyConstraint( + """Creates a single `RlsSetting`.""" + createRlsSetting( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: UpdateForeignKeyConstraintInput! - ): UpdateForeignKeyConstraintPayload + input: CreateRlsSettingInput! + ): CreateRlsSettingPayload - """ - Updates a single `ForeignKeyConstraintBehavior` using a unique key and a patch. - """ - updateForeignKeyConstraintBehavior( + """Creates a single `Route`.""" + createRoute( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: UpdateForeignKeyConstraintBehaviorInput! - ): UpdateForeignKeyConstraintBehaviorPayload + input: CreateRouteInput! + ): CreateRoutePayload - """Updates a single `FullTextSearch` using a unique key and a patch.""" - updateFullTextSearch( + """Creates a single `RouteBinding`.""" + createRouteBinding( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: UpdateFullTextSearchInput! - ): UpdateFullTextSearchPayload + input: CreateRouteBindingInput! + ): CreateRouteBindingPayload - """Updates a single `Function` using a unique key and a patch.""" - updateFunction( + """Creates a single `Schema`.""" + createSchema( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: UpdateFunctionInput! - ): UpdateFunctionPayload + input: CreateSchemaInput! + ): CreateSchemaPayload - """Updates a single `HostnameBinding` using a unique key and a patch.""" - updateHostnameBinding( + """Creates a single `SchemaGrant`.""" + createSchemaGrant( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: UpdateHostnameBindingInput! - ): UpdateHostnameBindingPayload + input: CreateSchemaGrantInput! + ): CreateSchemaGrantPayload - """Updates a single `HttpRoute` using a unique key and a patch.""" - updateHttpRoute( + """Creates a single `Site`.""" + createSite( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: UpdateHttpRouteInput! - ): UpdateHttpRoutePayload + input: CreateSiteInput! + ): CreateSitePayload - """Updates a single `Index` using a unique key and a patch.""" - updateIndex( + """Creates a single `SiteAppLink`.""" + createSiteAppLink( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: UpdateIndexInput! - ): UpdateIndexPayload + input: CreateSiteAppLinkInput! + ): CreateSiteAppLinkPayload - """Updates a single `ManagedDomain` using a unique key and a patch.""" - updateManagedDomain( + """Creates a single `SiteDeepLink`.""" + createSiteDeepLink( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: UpdateManagedDomainInput! - ): UpdateManagedDomainPayload + input: CreateSiteDeepLinkInput! + ): CreateSiteDeepLinkPayload - """Updates a single `NodeTypeRegistry` using a unique key and a patch.""" - updateNodeTypeRegistry( + """Creates a single `SiteErrorPage`.""" + createSiteErrorPage( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: UpdateNodeTypeRegistryInput! - ): UpdateNodeTypeRegistryPayload + input: CreateSiteErrorPageInput! + ): CreateSiteErrorPagePayload - """Updates a single `Page` using a unique key and a patch.""" - updatePage( + """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: UpdatePageInput! - ): UpdatePagePayload + input: CreateSiteMetadatumInput! + ): CreateSiteMetadatumPayload - """Updates a single `Partition` using a unique key and a patch.""" - updatePartition( + """Creates a single `SiteModule`.""" + createSiteModule( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: UpdatePartitionInput! - ): UpdatePartitionPayload + input: CreateSiteModuleInput! + ): CreateSiteModulePayload - """Updates a single `PlatformApiSchema` using a unique key and a patch.""" - updatePlatformApiSchema( + """Creates a single `SiteTheme`.""" + createSiteTheme( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: UpdatePlatformApiSchemaInput! - ): UpdatePlatformApiSchemaPayload + input: CreateSiteThemeInput! + ): CreateSiteThemePayload + + """Creates a single `SiteWebConfig`.""" + createSiteWebConfig( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateSiteWebConfigInput! + ): CreateSiteWebConfigPayload + + """Creates a single `SpatialRelation`.""" + createSpatialRelation( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateSpatialRelationInput! + ): CreateSpatialRelationPayload + + """Creates a single `Table`.""" + createTable( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateTableInput! + ): CreateTablePayload + + """Creates a single `TableBehavior`.""" + createTableBehavior( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateTableBehaviorInput! + ): CreateTableBehaviorPayload + + """Creates a single `TableGrant`.""" + createTableGrant( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateTableGrantInput! + ): CreateTableGrantPayload + + """Creates a single `Trigger`.""" + createTrigger( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateTriggerInput! + ): CreateTriggerPayload + + """Creates a single `TriggerFunction`.""" + createTriggerFunction( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateTriggerFunctionInput! + ): CreateTriggerFunctionPayload + + """Creates a single `UniqueConstraint`.""" + createUniqueConstraint( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateUniqueConstraintInput! + ): CreateUniqueConstraintPayload + + """Creates a single `UniqueConstraintBehavior`.""" + createUniqueConstraintBehavior( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateUniqueConstraintBehaviorInput! + ): CreateUniqueConstraintBehaviorPayload + + """Creates a single `View`.""" + createView( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateViewInput! + ): CreateViewPayload + + """Creates a single `ViewBehavior`.""" + createViewBehavior( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateViewBehaviorInput! + ): CreateViewBehaviorPayload + + """Creates a single `ViewGrant`.""" + createViewGrant( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateViewGrantInput! + ): CreateViewGrantPayload + + """Creates a single `ViewRule`.""" + createViewRule( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateViewRuleInput! + ): CreateViewRulePayload + + """Creates a single `ViewTable`.""" + createViewTable( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateViewTableInput! + ): CreateViewTablePayload + + """Creates a single `WebauthnSetting`.""" + createWebauthnSetting( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateWebauthnSettingInput! + ): CreateWebauthnSettingPayload + + """Deletes a single `Api` using a unique key.""" + deleteApi( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteApiInput! + ): DeleteApiPayload + + """Deletes a single `ApiSchema` using a unique key.""" + deleteApiSchema( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteApiSchemaInput! + ): DeleteApiSchemaPayload + + """Deletes a single `ApiSetting` using a unique key.""" + deleteApiSetting( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteApiSettingInput! + ): DeleteApiSettingPayload + + """Deletes a single `CheckConstraint` using a unique key.""" + deleteCheckConstraint( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteCheckConstraintInput! + ): DeleteCheckConstraintPayload + + """Deletes a single `CompositeType` using a unique key.""" + deleteCompositeType( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteCompositeTypeInput! + ): DeleteCompositeTypePayload + + """Deletes a single `CorsSetting` using a unique key.""" + deleteCorsSetting( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteCorsSettingInput! + ): DeleteCorsSettingPayload + + """Deletes a single `Database` using a unique key.""" + deleteDatabase( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteDatabaseInput! + ): DeleteDatabasePayload + + """Deletes a single `DatabaseSetting` using a unique key.""" + deleteDatabaseSetting( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteDatabaseSettingInput! + ): DeleteDatabaseSettingPayload + + """Deletes a single `DatabaseTransfer` using a unique key.""" + deleteDatabaseTransfer( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteDatabaseTransferInput! + ): DeleteDatabaseTransferPayload + + """Deletes a single `DefaultPrivilege` using a unique key.""" + deleteDefaultPrivilege( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteDefaultPrivilegeInput! + ): DeleteDefaultPrivilegePayload + + """Deletes a single `Derive` using a unique key.""" + deleteDerive( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteDeriveInput! + ): DeleteDerivePayload + + """Deletes a single `Domain` using a unique key.""" + deleteDomain( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteDomainInput! + ): DeleteDomainPayload + + """Deletes a single `DomainEvent` using a unique key.""" + deleteDomainEvent( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteDomainEventInput! + ): DeleteDomainEventPayload + + """Deletes a single `DomainType` using a unique key.""" + deleteDomainType( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteDomainTypeInput! + ): DeleteDomainTypePayload + + """Deletes a single `DomainVerification` using a unique key.""" + deleteDomainVerification( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteDomainVerificationInput! + ): DeleteDomainVerificationPayload + + """Deletes a single `EmailIdentity` using a unique key.""" + deleteEmailIdentity( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteEmailIdentityInput! + ): DeleteEmailIdentityPayload + + """Deletes a single `EmailProviderAccount` using a unique key.""" + deleteEmailProviderAccount( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteEmailProviderAccountInput! + ): DeleteEmailProviderAccountPayload + + """Deletes a single `EmailSiteIdentity` using a unique key.""" + deleteEmailSiteIdentity( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteEmailSiteIdentityInput! + ): DeleteEmailSiteIdentityPayload + + """Deletes a single `EmbeddingChunk` using a unique key.""" + deleteEmbeddingChunk( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteEmbeddingChunkInput! + ): DeleteEmbeddingChunkPayload + + """Deletes a single `Enum` using a unique key.""" + deleteEnum( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteEnumInput! + ): DeleteEnumPayload + + """Deletes a single `ExclusionConstraint` using a unique key.""" + deleteExclusionConstraint( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteExclusionConstraintInput! + ): DeleteExclusionConstraintPayload + + """Deletes a single `Field` using a unique key.""" + deleteField( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteFieldInput! + ): DeleteFieldPayload + + """Deletes a single `FieldBehavior` using a unique key.""" + deleteFieldBehavior( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteFieldBehaviorInput! + ): DeleteFieldBehaviorPayload + + """Deletes a single `ForeignKeyConstraint` using a unique key.""" + deleteForeignKeyConstraint( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteForeignKeyConstraintInput! + ): DeleteForeignKeyConstraintPayload + + """Deletes a single `ForeignKeyConstraintBehavior` using a unique key.""" + deleteForeignKeyConstraintBehavior( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteForeignKeyConstraintBehaviorInput! + ): DeleteForeignKeyConstraintBehaviorPayload + + """Deletes a single `FullTextSearch` using a unique key.""" + deleteFullTextSearch( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteFullTextSearchInput! + ): DeleteFullTextSearchPayload + + """Deletes a single `Function` using a unique key.""" + deleteFunction( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteFunctionInput! + ): DeleteFunctionPayload + + """Deletes a single `HostnameBinding` using a unique key.""" + deleteHostnameBinding( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteHostnameBindingInput! + ): DeleteHostnameBindingPayload + + """Deletes a single `HttpRoute` using a unique key.""" + deleteHttpRoute( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteHttpRouteInput! + ): DeleteHttpRoutePayload + + """Deletes a single `Index` using a unique key.""" + deleteIndex( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteIndexInput! + ): DeleteIndexPayload + + """Deletes a single `ManagedDomain` using a unique key.""" + deleteManagedDomain( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteManagedDomainInput! + ): DeleteManagedDomainPayload + + """Deletes a single `NodeTypeRegistry` using a unique key.""" + deleteNodeTypeRegistry( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteNodeTypeRegistryInput! + ): DeleteNodeTypeRegistryPayload + + """Deletes a single `Page` using a unique key.""" + deletePage( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeletePageInput! + ): DeletePagePayload + + """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 `PlatformApi` using a unique key.""" + deletePlatformApi( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeletePlatformApiInput! + ): DeletePlatformApiPayload + + """Deletes a single `PlatformApiSchema` using a unique key.""" + deletePlatformApiSchema( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeletePlatformApiSchemaInput! + ): DeletePlatformApiSchemaPayload + + """Deletes a single `PlatformApiSetting` using a unique key.""" + deletePlatformApiSetting( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeletePlatformApiSettingInput! + ): DeletePlatformApiSettingPayload + + """Deletes a single `PlatformCorsSetting` using a unique key.""" + deletePlatformCorsSetting( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeletePlatformCorsSettingInput! + ): DeletePlatformCorsSettingPayload + + """Deletes a single `PlatformDomain` using a unique key.""" + deletePlatformDomain( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeletePlatformDomainInput! + ): DeletePlatformDomainPayload + + """Deletes a single `PlatformDomainEvent` using a unique key.""" + deletePlatformDomainEvent( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeletePlatformDomainEventInput! + ): DeletePlatformDomainEventPayload + + """Deletes a single `PlatformDomainVerification` using a unique key.""" + deletePlatformDomainVerification( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeletePlatformDomainVerificationInput! + ): DeletePlatformDomainVerificationPayload + + """Deletes a single `PlatformEmailIdentity` using a unique key.""" + deletePlatformEmailIdentity( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeletePlatformEmailIdentityInput! + ): DeletePlatformEmailIdentityPayload + + """Deletes a single `PlatformEmailProviderAccount` using a unique key.""" + deletePlatformEmailProviderAccount( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeletePlatformEmailProviderAccountInput! + ): DeletePlatformEmailProviderAccountPayload + + """Deletes a single `PlatformEmailSiteIdentity` using a unique key.""" + deletePlatformEmailSiteIdentity( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeletePlatformEmailSiteIdentityInput! + ): DeletePlatformEmailSiteIdentityPayload + + """Deletes a single `PlatformManagedDomain` using a unique key.""" + deletePlatformManagedDomain( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeletePlatformManagedDomainInput! + ): DeletePlatformManagedDomainPayload + + """Deletes a single `PlatformPage` using a unique key.""" + deletePlatformPage( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeletePlatformPageInput! + ): DeletePlatformPagePayload + + """Deletes a single `PlatformSite` using a unique key.""" + deletePlatformSite( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeletePlatformSiteInput! + ): DeletePlatformSitePayload + + """Deletes a single `PlatformSiteAppLink` using a unique key.""" + deletePlatformSiteAppLink( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeletePlatformSiteAppLinkInput! + ): DeletePlatformSiteAppLinkPayload + + """Deletes a single `PlatformSiteDeepLink` using a unique key.""" + deletePlatformSiteDeepLink( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeletePlatformSiteDeepLinkInput! + ): DeletePlatformSiteDeepLinkPayload + + """Deletes a single `PlatformSiteErrorPage` using a unique key.""" + deletePlatformSiteErrorPage( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeletePlatformSiteErrorPageInput! + ): DeletePlatformSiteErrorPagePayload + + """Deletes a single `PlatformSiteMetadatum` using a unique key.""" + deletePlatformSiteMetadatum( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeletePlatformSiteMetadatumInput! + ): DeletePlatformSiteMetadatumPayload + + """Deletes a single `PlatformSiteModule` using a unique key.""" + deletePlatformSiteModule( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeletePlatformSiteModuleInput! + ): DeletePlatformSiteModulePayload + + """Deletes a single `PlatformSiteTheme` using a unique key.""" + deletePlatformSiteTheme( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeletePlatformSiteThemeInput! + ): DeletePlatformSiteThemePayload + + """Deletes a single `PlatformSiteWebConfig` using a unique key.""" + deletePlatformSiteWebConfig( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeletePlatformSiteWebConfigInput! + ): DeletePlatformSiteWebConfigPayload + + """Deletes a single `Policy` using a unique key.""" + deletePolicy( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeletePolicyInput! + ): DeletePolicyPayload + + """Deletes a single `PrimaryKeyConstraint` using a unique key.""" + deletePrimaryKeyConstraint( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeletePrimaryKeyConstraintInput! + ): DeletePrimaryKeyConstraintPayload + + """Deletes a single `PubkeySetting` using a unique key.""" + deletePubkeySetting( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeletePubkeySettingInput! + ): DeletePubkeySettingPayload + + """Deletes a single `RlsSetting` using a unique key.""" + deleteRlsSetting( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteRlsSettingInput! + ): DeleteRlsSettingPayload + + """Deletes a single `Route` using a unique key.""" + deleteRoute( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteRouteInput! + ): DeleteRoutePayload + + """Deletes a single `RouteBinding` using a unique key.""" + deleteRouteBinding( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteRouteBindingInput! + ): DeleteRouteBindingPayload + + """Deletes a single `Schema` using a unique key.""" + deleteSchema( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteSchemaInput! + ): DeleteSchemaPayload + + """Deletes a single `SchemaGrant` using a unique key.""" + deleteSchemaGrant( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteSchemaGrantInput! + ): DeleteSchemaGrantPayload + + """Deletes a single `Site` using a unique key.""" + deleteSite( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteSiteInput! + ): DeleteSitePayload + + """Deletes a single `SiteAppLink` using a unique key.""" + deleteSiteAppLink( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteSiteAppLinkInput! + ): DeleteSiteAppLinkPayload + + """Deletes a single `SiteDeepLink` using a unique key.""" + deleteSiteDeepLink( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteSiteDeepLinkInput! + ): DeleteSiteDeepLinkPayload + + """Deletes a single `SiteErrorPage` using a unique key.""" + deleteSiteErrorPage( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteSiteErrorPageInput! + ): DeleteSiteErrorPagePayload + + """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 `SiteModule` using a unique key.""" + deleteSiteModule( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteSiteModuleInput! + ): DeleteSiteModulePayload + + """Deletes a single `SiteTheme` using a unique key.""" + deleteSiteTheme( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteSiteThemeInput! + ): DeleteSiteThemePayload + + """Deletes a single `SiteWebConfig` using a unique key.""" + deleteSiteWebConfig( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteSiteWebConfigInput! + ): DeleteSiteWebConfigPayload + + """Deletes a single `SpatialRelation` using a unique key.""" + deleteSpatialRelation( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteSpatialRelationInput! + ): DeleteSpatialRelationPayload + + """Deletes a single `Table` using a unique key.""" + deleteTable( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteTableInput! + ): DeleteTablePayload + + """Deletes a single `TableBehavior` using a unique key.""" + deleteTableBehavior( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteTableBehaviorInput! + ): DeleteTableBehaviorPayload + + """Deletes a single `TableGrant` using a unique key.""" + deleteTableGrant( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteTableGrantInput! + ): DeleteTableGrantPayload + + """Deletes a single `Trigger` using a unique key.""" + deleteTrigger( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteTriggerInput! + ): DeleteTriggerPayload + + """Deletes a single `TriggerFunction` using a unique key.""" + deleteTriggerFunction( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteTriggerFunctionInput! + ): DeleteTriggerFunctionPayload + + """Deletes a single `UniqueConstraint` using a unique key.""" + deleteUniqueConstraint( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteUniqueConstraintInput! + ): DeleteUniqueConstraintPayload + + """Deletes a single `UniqueConstraintBehavior` using a unique key.""" + deleteUniqueConstraintBehavior( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteUniqueConstraintBehaviorInput! + ): DeleteUniqueConstraintBehaviorPayload + + """Deletes a single `View` using a unique key.""" + deleteView( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteViewInput! + ): DeleteViewPayload + + """Deletes a single `ViewBehavior` using a unique key.""" + deleteViewBehavior( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteViewBehaviorInput! + ): DeleteViewBehaviorPayload + + """Deletes a single `ViewGrant` using a unique key.""" + deleteViewGrant( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteViewGrantInput! + ): DeleteViewGrantPayload + + """Deletes a single `ViewRule` using a unique key.""" + deleteViewRule( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteViewRuleInput! + ): DeleteViewRulePayload + + """Deletes a single `ViewTable` using a unique key.""" + deleteViewTable( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteViewTableInput! + ): DeleteViewTablePayload + + """Deletes a single `WebauthnSetting` using a unique key.""" + deleteWebauthnSetting( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteWebauthnSettingInput! + ): DeleteWebauthnSettingPayload + domainsAssignSubdomain( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DomainsAssignSubdomainInput! + ): DomainsAssignSubdomainPayload + platformDomainsAssignSubdomain( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: PlatformDomainsAssignSubdomainInput! + ): PlatformDomainsAssignSubdomainPayload + platformSitesProvisionStaticSite( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: PlatformSitesProvisionStaticSiteInput! + ): PlatformSitesProvisionStaticSitePayload + + """ + 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, + and lifecycle settings. + """ + provisionBucket( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: ProvisionBucketInput! + ): ProvisionBucketPayload + rejectDatabaseTransfer( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: RejectDatabaseTransferInput! + ): RejectDatabaseTransferPayload + + """ + Requests a database and returns a ticket (database_provision_module row) to poll. + + Pass exactly one of preset_slug or modules. The pool, presets, and owner bootstrap are private implementation details: a warm pool hit fulfills the ticket immediately (fulfilled_at set, deferred owner bootstrap), otherwise the database is cold-provisioned asynchronously with exactly the requested modules. Poll the ticket until status = 'completed'; it then carries database_id and fulfilled_at. + + Example usage: + SELECT * FROM metaschema_public.request_database('my_app', 'example.com', preset_slug := 'full'); + SELECT * FROM metaschema_public.request_database('my_app', 'example.com', modules := '["users_module", "emails_module"]'::jsonb); + """ + requestDatabase( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: RequestDatabaseInput! + ): RequestDatabasePayload + setFieldOrder( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: SetFieldOrderInput! + ): SetFieldOrderPayload + sitesProvisionStaticSite( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: SitesProvisionStaticSiteInput! + ): SitesProvisionStaticSitePayload + + """Updates a single `Api` using a unique key and a patch.""" + updateApi( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateApiInput! + ): UpdateApiPayload + + """Updates a single `ApiSchema` using a unique key and a patch.""" + updateApiSchema( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateApiSchemaInput! + ): UpdateApiSchemaPayload + + """Updates a single `ApiSetting` using a unique key and a patch.""" + updateApiSetting( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateApiSettingInput! + ): UpdateApiSettingPayload + + """Updates a single `CheckConstraint` using a unique key and a patch.""" + updateCheckConstraint( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateCheckConstraintInput! + ): UpdateCheckConstraintPayload + + """Updates a single `CompositeType` using a unique key and a patch.""" + updateCompositeType( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateCompositeTypeInput! + ): UpdateCompositeTypePayload + + """Updates a single `CorsSetting` using a unique key and a patch.""" + updateCorsSetting( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateCorsSettingInput! + ): UpdateCorsSettingPayload + + """Updates a single `Database` using a unique key and a patch.""" + updateDatabase( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateDatabaseInput! + ): UpdateDatabasePayload + + """Updates a single `DatabaseSetting` using a unique key and a patch.""" + updateDatabaseSetting( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateDatabaseSettingInput! + ): UpdateDatabaseSettingPayload + + """Updates a single `DatabaseTransfer` using a unique key and a patch.""" + updateDatabaseTransfer( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateDatabaseTransferInput! + ): UpdateDatabaseTransferPayload + + """Updates a single `DefaultPrivilege` using a unique key and a patch.""" + updateDefaultPrivilege( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateDefaultPrivilegeInput! + ): UpdateDefaultPrivilegePayload + + """Updates a single `Derive` using a unique key and a patch.""" + updateDerive( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateDeriveInput! + ): UpdateDerivePayload + + """Updates a single `Domain` using a unique key and a patch.""" + updateDomain( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateDomainInput! + ): UpdateDomainPayload + + """Updates a single `DomainEvent` using a unique key and a patch.""" + updateDomainEvent( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateDomainEventInput! + ): UpdateDomainEventPayload + + """Updates a single `DomainType` using a unique key and a patch.""" + updateDomainType( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateDomainTypeInput! + ): UpdateDomainTypePayload + + """Updates a single `DomainVerification` using a unique key and a patch.""" + updateDomainVerification( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateDomainVerificationInput! + ): UpdateDomainVerificationPayload + + """Updates a single `EmailIdentity` using a unique key and a patch.""" + updateEmailIdentity( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateEmailIdentityInput! + ): UpdateEmailIdentityPayload + + """ + Updates a single `EmailProviderAccount` using a unique key and a patch. + """ + updateEmailProviderAccount( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateEmailProviderAccountInput! + ): UpdateEmailProviderAccountPayload + + """Updates a single `EmailSiteIdentity` using a unique key and a patch.""" + updateEmailSiteIdentity( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateEmailSiteIdentityInput! + ): UpdateEmailSiteIdentityPayload + + """Updates a single `EmbeddingChunk` using a unique key and a patch.""" + updateEmbeddingChunk( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateEmbeddingChunkInput! + ): UpdateEmbeddingChunkPayload + + """Updates a single `Enum` using a unique key and a patch.""" + updateEnum( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateEnumInput! + ): UpdateEnumPayload + + """Updates a single `ExclusionConstraint` using a unique key and a patch.""" + updateExclusionConstraint( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateExclusionConstraintInput! + ): UpdateExclusionConstraintPayload + + """Updates a single `Field` using a unique key and a patch.""" + updateField( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateFieldInput! + ): UpdateFieldPayload + + """Updates a single `FieldBehavior` using a unique key and a patch.""" + updateFieldBehavior( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateFieldBehaviorInput! + ): UpdateFieldBehaviorPayload + + """ + Updates a single `ForeignKeyConstraint` using a unique key and a patch. + """ + updateForeignKeyConstraint( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateForeignKeyConstraintInput! + ): UpdateForeignKeyConstraintPayload + + """ + Updates a single `ForeignKeyConstraintBehavior` using a unique key and a patch. + """ + updateForeignKeyConstraintBehavior( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateForeignKeyConstraintBehaviorInput! + ): UpdateForeignKeyConstraintBehaviorPayload + + """Updates a single `FullTextSearch` using a unique key and a patch.""" + updateFullTextSearch( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateFullTextSearchInput! + ): UpdateFullTextSearchPayload + + """Updates a single `Function` using a unique key and a patch.""" + updateFunction( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateFunctionInput! + ): UpdateFunctionPayload + + """Updates a single `HostnameBinding` using a unique key and a patch.""" + updateHostnameBinding( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateHostnameBindingInput! + ): UpdateHostnameBindingPayload + + """Updates a single `HttpRoute` using a unique key and a patch.""" + updateHttpRoute( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateHttpRouteInput! + ): UpdateHttpRoutePayload + + """Updates a single `Index` using a unique key and a patch.""" + updateIndex( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateIndexInput! + ): UpdateIndexPayload + + """Updates a single `ManagedDomain` using a unique key and a patch.""" + updateManagedDomain( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateManagedDomainInput! + ): UpdateManagedDomainPayload + + """Updates a single `NodeTypeRegistry` using a unique key and a patch.""" + updateNodeTypeRegistry( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateNodeTypeRegistryInput! + ): UpdateNodeTypeRegistryPayload + + """Updates a single `Page` using a unique key and a patch.""" + updatePage( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdatePageInput! + ): UpdatePagePayload + + """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 `PlatformApi` using a unique key and a patch.""" + updatePlatformApi( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdatePlatformApiInput! + ): UpdatePlatformApiPayload + + """Updates a single `PlatformApiSchema` using a unique key and a patch.""" + updatePlatformApiSchema( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdatePlatformApiSchemaInput! + ): UpdatePlatformApiSchemaPayload + + """Updates a single `PlatformApiSetting` using a unique key and a patch.""" + updatePlatformApiSetting( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdatePlatformApiSettingInput! + ): UpdatePlatformApiSettingPayload + + """Updates a single `PlatformCorsSetting` using a unique key and a patch.""" + updatePlatformCorsSetting( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdatePlatformCorsSettingInput! + ): UpdatePlatformCorsSettingPayload + + """Updates a single `PlatformDomain` using a unique key and a patch.""" + updatePlatformDomain( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdatePlatformDomainInput! + ): UpdatePlatformDomainPayload + + """Updates a single `PlatformDomainEvent` using a unique key and a patch.""" + updatePlatformDomainEvent( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdatePlatformDomainEventInput! + ): UpdatePlatformDomainEventPayload + + """ + Updates a single `PlatformDomainVerification` using a unique key and a patch. + """ + updatePlatformDomainVerification( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdatePlatformDomainVerificationInput! + ): UpdatePlatformDomainVerificationPayload + + """ + Updates a single `PlatformEmailIdentity` using a unique key and a patch. + """ + updatePlatformEmailIdentity( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdatePlatformEmailIdentityInput! + ): UpdatePlatformEmailIdentityPayload + + """ + Updates a single `PlatformEmailProviderAccount` using a unique key and a patch. + """ + updatePlatformEmailProviderAccount( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdatePlatformEmailProviderAccountInput! + ): UpdatePlatformEmailProviderAccountPayload + + """ + Updates a single `PlatformEmailSiteIdentity` using a unique key and a patch. + """ + updatePlatformEmailSiteIdentity( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdatePlatformEmailSiteIdentityInput! + ): UpdatePlatformEmailSiteIdentityPayload + + """ + Updates a single `PlatformManagedDomain` using a unique key and a patch. + """ + updatePlatformManagedDomain( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdatePlatformManagedDomainInput! + ): UpdatePlatformManagedDomainPayload + + """Updates a single `PlatformPage` using a unique key and a patch.""" + updatePlatformPage( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdatePlatformPageInput! + ): UpdatePlatformPagePayload + + """Updates a single `PlatformSite` using a unique key and a patch.""" + updatePlatformSite( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdatePlatformSiteInput! + ): UpdatePlatformSitePayload + + """Updates a single `PlatformSiteAppLink` using a unique key and a patch.""" + updatePlatformSiteAppLink( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdatePlatformSiteAppLinkInput! + ): UpdatePlatformSiteAppLinkPayload + + """ + Updates a single `PlatformSiteDeepLink` using a unique key and a patch. + """ + updatePlatformSiteDeepLink( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdatePlatformSiteDeepLinkInput! + ): UpdatePlatformSiteDeepLinkPayload + + """ + Updates a single `PlatformSiteErrorPage` using a unique key and a patch. + """ + updatePlatformSiteErrorPage( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdatePlatformSiteErrorPageInput! + ): UpdatePlatformSiteErrorPagePayload + + """ + Updates a single `PlatformSiteMetadatum` using a unique key and a patch. + """ + updatePlatformSiteMetadatum( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdatePlatformSiteMetadatumInput! + ): UpdatePlatformSiteMetadatumPayload + + """Updates a single `PlatformSiteModule` using a unique key and a patch.""" + updatePlatformSiteModule( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdatePlatformSiteModuleInput! + ): UpdatePlatformSiteModulePayload + + """Updates a single `PlatformSiteTheme` using a unique key and a patch.""" + updatePlatformSiteTheme( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdatePlatformSiteThemeInput! + ): UpdatePlatformSiteThemePayload + + """ + Updates a single `PlatformSiteWebConfig` using a unique key and a patch. + """ + updatePlatformSiteWebConfig( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdatePlatformSiteWebConfigInput! + ): UpdatePlatformSiteWebConfigPayload + + """Updates a single `Policy` using a unique key and a patch.""" + updatePolicy( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdatePolicyInput! + ): UpdatePolicyPayload + + """ + Updates a single `PrimaryKeyConstraint` using a unique key and a patch. + """ + updatePrimaryKeyConstraint( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdatePrimaryKeyConstraintInput! + ): UpdatePrimaryKeyConstraintPayload + + """Updates a single `PubkeySetting` using a unique key and a patch.""" + updatePubkeySetting( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdatePubkeySettingInput! + ): UpdatePubkeySettingPayload + + """Updates a single `RlsSetting` using a unique key and a patch.""" + updateRlsSetting( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateRlsSettingInput! + ): UpdateRlsSettingPayload + + """Updates a single `Route` using a unique key and a patch.""" + updateRoute( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateRouteInput! + ): UpdateRoutePayload + + """Updates a single `RouteBinding` using a unique key and a patch.""" + updateRouteBinding( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateRouteBindingInput! + ): UpdateRouteBindingPayload + + """Updates a single `Schema` using a unique key and a patch.""" + updateSchema( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateSchemaInput! + ): UpdateSchemaPayload + + """Updates a single `SchemaGrant` using a unique key and a patch.""" + updateSchemaGrant( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateSchemaGrantInput! + ): UpdateSchemaGrantPayload + + """Updates a single `Site` using a unique key and a patch.""" + updateSite( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateSiteInput! + ): UpdateSitePayload + + """Updates a single `SiteAppLink` using a unique key and a patch.""" + updateSiteAppLink( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateSiteAppLinkInput! + ): UpdateSiteAppLinkPayload + + """Updates a single `SiteDeepLink` using a unique key and a patch.""" + updateSiteDeepLink( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateSiteDeepLinkInput! + ): UpdateSiteDeepLinkPayload + + """Updates a single `SiteErrorPage` using a unique key and a patch.""" + updateSiteErrorPage( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateSiteErrorPageInput! + ): UpdateSiteErrorPagePayload + + """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 `SiteModule` using a unique key and a patch.""" + updateSiteModule( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateSiteModuleInput! + ): UpdateSiteModulePayload + + """Updates a single `SiteTheme` using a unique key and a patch.""" + updateSiteTheme( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateSiteThemeInput! + ): UpdateSiteThemePayload + + """Updates a single `SiteWebConfig` using a unique key and a patch.""" + updateSiteWebConfig( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateSiteWebConfigInput! + ): UpdateSiteWebConfigPayload + + """Updates a single `SpatialRelation` using a unique key and a patch.""" + updateSpatialRelation( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateSpatialRelationInput! + ): UpdateSpatialRelationPayload + + """Updates a single `Table` using a unique key and a patch.""" + updateTable( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateTableInput! + ): UpdateTablePayload + + """Updates a single `TableBehavior` using a unique key and a patch.""" + updateTableBehavior( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateTableBehaviorInput! + ): UpdateTableBehaviorPayload + + """Updates a single `TableGrant` using a unique key and a patch.""" + updateTableGrant( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateTableGrantInput! + ): UpdateTableGrantPayload + + """Updates a single `Trigger` using a unique key and a patch.""" + updateTrigger( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateTriggerInput! + ): UpdateTriggerPayload + + """Updates a single `TriggerFunction` using a unique key and a patch.""" + updateTriggerFunction( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateTriggerFunctionInput! + ): UpdateTriggerFunctionPayload + + """Updates a single `UniqueConstraint` using a unique key and a patch.""" + updateUniqueConstraint( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateUniqueConstraintInput! + ): UpdateUniqueConstraintPayload + + """ + Updates a single `UniqueConstraintBehavior` using a unique key and a patch. + """ + updateUniqueConstraintBehavior( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateUniqueConstraintBehaviorInput! + ): UpdateUniqueConstraintBehaviorPayload + + """Updates a single `View` using a unique key and a patch.""" + updateView( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateViewInput! + ): UpdateViewPayload + + """Updates a single `ViewBehavior` using a unique key and a patch.""" + updateViewBehavior( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateViewBehaviorInput! + ): UpdateViewBehaviorPayload + + """Updates a single `ViewGrant` using a unique key and a patch.""" + updateViewGrant( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateViewGrantInput! + ): UpdateViewGrantPayload + + """Updates a single `ViewRule` using a unique key and a patch.""" + updateViewRule( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateViewRuleInput! + ): UpdateViewRulePayload + + """Updates a single `ViewTable` using a unique key and a patch.""" + updateViewTable( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateViewTableInput! + ): UpdateViewTablePayload + + """Updates a single `WebauthnSetting` using a unique key and a patch.""" + updateWebauthnSetting( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateWebauthnSettingInput! + ): UpdateWebauthnSettingPayload +} + +type NodeTypeRegistry { + category: String! + description: String + displayName: String + name: String! + parameterSchema: JSON! + slug: String! + tags: [String]! +} + +"""A connection to a list of `NodeTypeRegistry` values.""" +type NodeTypeRegistryConnection { + """ + A list of edges which contains the `NodeTypeRegistry` and cursor to aid in pagination. + """ + edges: [NodeTypeRegistryEdge]! + + """A list of `NodeTypeRegistry` objects.""" + nodes: [NodeTypeRegistry]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! + + """ + The count of *all* `NodeTypeRegistry` you could get from the connection. + """ + totalCount: Int! +} + +"""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 `NodeTypeRegistry` object types. All fields are combined with a logical ‘and.’ +""" +input NodeTypeRegistryFilter { + """Checks for all expressions in this list.""" + and: [NodeTypeRegistryFilter!] + + """Filter by the object’s `category` field.""" + category: StringFilter + + """Filter by the object’s `description` field.""" + description: StringFilter + + """Filter by the object’s `displayName` field.""" + displayName: StringFilter + + """Filter by the object’s `name` field.""" + name: StringFilter + + """Negates the expression.""" + not: NodeTypeRegistryFilter + + """Checks for any expressions in this list.""" + or: [NodeTypeRegistryFilter!] + + """Filter by the object’s `parameterSchema` field.""" + parameterSchema: JSONFilter + + """Filter by the object’s `slug` field.""" + slug: StringFilter + + """Filter by the object’s `tags` field.""" + tags: StringListFilter +} + +"""An input for mutations affecting `NodeTypeRegistry`""" +input NodeTypeRegistryInput { + category: String! + description: String + displayName: String + name: String! + parameterSchema: JSON + slug: String! + tags: [String] +} + +"""Methods to use when ordering `NodeTypeRegistry`.""" +enum NodeTypeRegistryOrderBy { + CATEGORY_ASC + CATEGORY_DESC + DESCRIPTION_ASC + DESCRIPTION_DESC + DISPLAY_NAME_ASC + DISPLAY_NAME_DESC + NAME_ASC + NAME_DESC + NATURAL + PARAMETER_SCHEMA_ASC + PARAMETER_SCHEMA_DESC + PRIMARY_KEY_ASC + PRIMARY_KEY_DESC + SLUG_ASC + SLUG_DESC + TAGS_ASC + TAGS_DESC +} + +""" +Represents an update to a `NodeTypeRegistry`. Fields that are set will be updated. +""" +input NodeTypeRegistryPatch { + category: String + description: String + displayName: String + name: String + parameterSchema: JSON + slug: String + tags: [String] +} + +enum ObjectCategory { + APP + AUTH + CAPABILITIES + CORE + MEMBERSHIPS + MODULE +} + +""" +A filter to be used against ObjectCategory fields. All fields are combined with a logical ‘and.’ +""" +input ObjectCategoryFilter { + """ + Not equal to the specified value, treating null like an ordinary value. + """ + distinctFrom: ObjectCategory + + """Equal to the specified value.""" + equalTo: ObjectCategory + + """Greater than the specified value.""" + greaterThan: ObjectCategory + + """Greater than or equal to the specified value.""" + greaterThanOrEqualTo: ObjectCategory + + """Included in the specified list.""" + in: [ObjectCategory!] + + """ + Is null (if `true` is specified) or is not null (if `false` is specified). + """ + isNull: Boolean + + """Less than the specified value.""" + lessThan: ObjectCategory + + """Less than or equal to the specified value.""" + lessThanOrEqualTo: ObjectCategory + + """Equal to the specified value, treating null like an ordinary value.""" + notDistinctFrom: ObjectCategory + + """Not equal to the specified value.""" + notEqualTo: ObjectCategory + + """Not included in the specified list.""" + notIn: [ObjectCategory!] +} + +""" +Site-owned page content — merkle-versioned head over the infra store; never a routing surface +""" +type Page { + """ + Infra store commit for the current content (stamped by the versioned trigger on every write) + """ + commitId: UUID + + """ + Page content (blocks/markdown/whatever the build consumes) — the readily-cached head; history lives in the infra store + """ + content: JSON! + + """Timestamp of page creation""" + createdAt: Datetime! + + """Database that owns this resource (database-scoped isolation)""" + databaseId: UUID! + + """Unique page identifier""" + id: UUID! + + """Reads a single `Site` that is related to this `Page`.""" + site: Site + + """ + Site surface this page belongs to; each site owns its own infra store and pages live at path [page, slug] within it + """ + siteId: UUID! + + """Page slug (unique per site)""" + slug: String! + + """ + Infra Merkle store holding this row's history (stamped by the versioned trigger) + """ + storeId: UUID + + """Timestamp of last modification""" + updatedAt: Datetime! +} + +"""A connection to a list of `Page` values.""" +type PageConnection { + """ + A list of edges which contains the `Page` and cursor to aid in pagination. + """ + edges: [PageEdge]! + + """A list of `Page` objects.""" + nodes: [Page]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! + + """The count of *all* `Page` you could get from the connection.""" + totalCount: Int! +} + +"""A `Page` edge in the connection.""" +type PageEdge { + """A cursor for use in pagination.""" + cursor: Cursor + + """The `Page` at the end of the edge.""" + node: Page +} + +""" +A filter to be used against `Page` object types. All fields are combined with a logical ‘and.’ +""" +input PageFilter { + """Checks for all expressions in this list.""" + and: [PageFilter!] + + """Filter by the object’s `commitId` field.""" + commitId: UUIDFilter + + """Filter by the object’s `content` field.""" + content: JSONFilter + + """Filter by the object’s `createdAt` field.""" + createdAt: DatetimeFilter + + """Filter by the object’s `databaseId` field.""" + databaseId: UUIDFilter + + """Filter by the object’s `id` field.""" + id: UUIDFilter + + """Negates the expression.""" + not: PageFilter + + """Checks for any expressions in this list.""" + or: [PageFilter!] + + """Filter by the object’s `site` relation.""" + site: SiteFilter + + """Filter by the object’s `siteId` field.""" + siteId: UUIDFilter + + """Filter by the object’s `slug` field.""" + slug: StringFilter + + """Filter by the object’s `storeId` field.""" + storeId: UUIDFilter + + """Filter by the object’s `updatedAt` field.""" + updatedAt: DatetimeFilter +} + +"""Information about pagination in a connection.""" +type PageInfo { + """When paginating forwards, the cursor to continue.""" + endCursor: Cursor + + """When paginating forwards, are there more items?""" + hasNextPage: Boolean! + + """When paginating backwards, are there more items?""" + hasPreviousPage: Boolean! + + """When paginating backwards, the cursor to continue.""" + startCursor: Cursor +} + +"""An input for mutations affecting `Page`""" +input PageInput { + """ + Infra store commit for the current content (stamped by the versioned trigger on every write) + """ + commitId: UUID + + """ + Page content (blocks/markdown/whatever the build consumes) — the readily-cached head; history lives in the infra store + """ + content: JSON! + + """Timestamp of page creation""" + createdAt: Datetime + + """Database that owns this resource (database-scoped isolation)""" + databaseId: UUID! + + """Unique page identifier""" + id: UUID + + """ + Site surface this page belongs to; each site owns its own infra store and pages live at path [page, slug] within it + """ + siteId: UUID! + + """Page slug (unique per site)""" + slug: String! + + """ + Infra Merkle store holding this row's history (stamped by the versioned trigger) + """ + storeId: UUID + + """Timestamp of last modification""" + updatedAt: Datetime +} + +"""Methods to use when ordering `Page`.""" +enum PageOrderBy { + COMMIT_ID_ASC + COMMIT_ID_DESC + CONTENT_ASC + CONTENT_DESC + CREATED_AT_ASC + CREATED_AT_DESC + DATABASE_ID_ASC + DATABASE_ID_DESC + ID_ASC + ID_DESC + NATURAL + PRIMARY_KEY_ASC + PRIMARY_KEY_DESC + SITE_ID_ASC + SITE_ID_DESC + SLUG_ASC + SLUG_DESC + STORE_ID_ASC + STORE_ID_DESC + UPDATED_AT_ASC + UPDATED_AT_DESC +} + +"""Represents an update to a `Page`. Fields that are set will be updated.""" +input PagePatch { + """ + Infra store commit for the current content (stamped by the versioned trigger on every write) + """ + commitId: UUID + + """ + Page content (blocks/markdown/whatever the build consumes) — the readily-cached head; history lives in the infra store + """ + content: JSON + + """Timestamp of page creation""" + createdAt: Datetime + + """Database that owns this resource (database-scoped isolation)""" + databaseId: UUID + + """Unique page identifier""" + id: UUID + + """ + Site surface this page belongs to; each site owns its own infra store and pages live at path [page, slug] within it + """ + siteId: UUID + + """Page slug (unique per site)""" + slug: String + + """ + Infra Merkle store holding this row's history (stamped by the versioned trigger) + """ + storeId: UUID + + """Timestamp of last modification""" + updatedAt: Datetime +} + +type Partition { + createdAt: Datetime + + """Reads a single `Database` that is related to this `Partition`.""" + database: Database + databaseId: UUID! + id: UUID! + interval: String + isParented: Boolean! + namingPattern: String! + + """Reads a single `Field` that is related to this `Partition`.""" + partitionKey: Field + partitionKeyId: UUID! + premake: Int! + retention: String + retentionKeepTable: Boolean! + strategy: String! + + """Reads a single `Table` that is related to this `Partition`.""" + table: Table + tableId: UUID! + updatedAt: Datetime +} + +"""A connection to a list of `Partition` values.""" +type PartitionConnection { + """ + A list of edges which contains the `Partition` and cursor to aid in pagination. + """ + edges: [PartitionEdge]! + + """A list of `Partition` objects.""" + nodes: [Partition]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! + + """The count of *all* `Partition` you could get from the connection.""" + totalCount: Int! +} + +"""A `Partition` edge in the connection.""" +type PartitionEdge { + """A cursor for use in pagination.""" + cursor: Cursor + + """The `Partition` at the end of the edge.""" + node: Partition +} + +""" +A filter to be used against `Partition` object types. All fields are combined with a logical ‘and.’ +""" +input PartitionFilter { + """Checks for all expressions in this list.""" + and: [PartitionFilter!] + + """Filter by the object’s `createdAt` field.""" + createdAt: DatetimeFilter + + """Filter by the object’s `database` relation.""" + database: DatabaseFilter + + """Filter by the object’s `databaseId` field.""" + databaseId: UUIDFilter + + """Filter by the object’s `id` field.""" + id: UUIDFilter + + """Filter by the object’s `interval` field.""" + interval: StringFilter + + """Filter by the object’s `isParented` field.""" + isParented: BooleanFilter + + """Filter by the object’s `namingPattern` field.""" + namingPattern: StringFilter + + """Negates the expression.""" + not: PartitionFilter + + """Checks for any expressions in this list.""" + or: [PartitionFilter!] + + """Filter by the object’s `partitionKey` relation.""" + partitionKey: FieldFilter + + """Filter by the object’s `partitionKeyId` field.""" + partitionKeyId: UUIDFilter + + """Filter by the object’s `premake` field.""" + premake: IntFilter + + """Filter by the object’s `retention` field.""" + retention: StringFilter + + """Filter by the object’s `retentionKeepTable` field.""" + retentionKeepTable: BooleanFilter + + """Filter by the object’s `strategy` field.""" + strategy: StringFilter + + """Filter by the object’s `table` relation.""" + table: TableFilter + + """Filter by the object’s `tableId` field.""" + tableId: UUIDFilter + + """Filter by the object’s `updatedAt` field.""" + updatedAt: DatetimeFilter +} + +"""An input for mutations affecting `Partition`""" +input PartitionInput { + createdAt: Datetime + databaseId: UUID! + id: UUID + interval: String + isParented: Boolean + namingPattern: String + partitionKeyId: UUID! + premake: Int + retention: String + retentionKeepTable: Boolean + strategy: String! + tableId: UUID! + updatedAt: Datetime +} + +"""Methods to use when ordering `Partition`.""" +enum PartitionOrderBy { + CREATED_AT_ASC + CREATED_AT_DESC + DATABASE_ID_ASC + DATABASE_ID_DESC + ID_ASC + ID_DESC + INTERVAL_ASC + INTERVAL_DESC + IS_PARENTED_ASC + IS_PARENTED_DESC + NAMING_PATTERN_ASC + NAMING_PATTERN_DESC + NATURAL + PARTITION_KEY_ID_ASC + PARTITION_KEY_ID_DESC + PREMAKE_ASC + PREMAKE_DESC + PRIMARY_KEY_ASC + PRIMARY_KEY_DESC + RETENTION_ASC + RETENTION_DESC + RETENTION_KEEP_TABLE_ASC + RETENTION_KEEP_TABLE_DESC + STRATEGY_ASC + STRATEGY_DESC + TABLE_ID_ASC + TABLE_ID_DESC + UPDATED_AT_ASC + UPDATED_AT_DESC +} + +""" +Represents an update to a `Partition`. Fields that are set will be updated. +""" +input PartitionPatch { + createdAt: Datetime + databaseId: UUID + id: UUID + interval: String + isParented: Boolean + namingPattern: String + partitionKeyId: UUID + premake: Int + retention: String + retentionKeepTable: Boolean + strategy: String + tableId: UUID + updatedAt: Datetime +} + +""" +API surfaces exposed by this scope; publication makes a surface bindable from other scopes +""" +type PlatformApi { + """Anonymous role the API executes as""" + anonRole: String + + """Module-specific configuration for this API surface""" + config: JSON + createdAt: Datetime + + """Database this API surface serves""" + dbname: String + id: UUID! + + """Whether other scopes may see and route to this API surface""" + isPublished: Boolean! + + """Owner-local API surface name""" + name: String! + + """Reads and enables pagination through a set of `PlatformApiSchema`.""" + platformApiSchemasByApiId( + """Read all values in the set after (below) this cursor.""" + after: Cursor + + """Read all values in the set before (above) this cursor.""" + before: Cursor + + """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 + + """The method to use when ordering `PlatformApiSchema`.""" + orderBy: [PlatformApiSchemaOrderBy!] = [PRIMARY_KEY_ASC] + + """ + A filter to be used in determining which values should be returned by the collection. + """ + where: PlatformApiSchemaFilter + ): PlatformApiSchemaConnection! + + """ + Reads a single `PlatformApiSetting` that is related to this `PlatformApi`. + """ + platformApiSettingByApiId: PlatformApiSetting + + """ + Reads a single `PlatformCorsSetting` that is related to this `PlatformApi`. + """ + platformCorsSettingByApiId: PlatformCorsSetting + + """Authenticated role the API executes as""" + roleName: String + updatedAt: Datetime +} + +"""A connection to a list of `PlatformApi` values.""" +type PlatformApiConnection { + """ + A list of edges which contains the `PlatformApi` and cursor to aid in pagination. + """ + edges: [PlatformApiEdge]! + + """A list of `PlatformApi` objects.""" + nodes: [PlatformApi]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! + + """The count of *all* `PlatformApi` you could get from the connection.""" + totalCount: Int! +} + +"""A `PlatformApi` edge in the connection.""" +type PlatformApiEdge { + """A cursor for use in pagination.""" + cursor: Cursor + + """The `PlatformApi` at the end of the edge.""" + node: PlatformApi +} + +""" +A filter to be used against `PlatformApi` object types. All fields are combined with a logical ‘and.’ +""" +input PlatformApiFilter { + """Checks for all expressions in this list.""" + and: [PlatformApiFilter!] + + """Filter by the object’s `anonRole` field.""" + anonRole: StringFilter + + """Filter by the object’s `config` field.""" + config: JSONFilter + + """Filter by the object’s `createdAt` field.""" + createdAt: DatetimeFilter + + """Filter by the object’s `dbname` field.""" + dbname: StringFilter + + """Filter by the object’s `id` field.""" + id: UUIDFilter + + """Filter by the object’s `isPublished` field.""" + isPublished: BooleanFilter + + """Filter by the object’s `name` field.""" + name: StringFilter + + """Negates the expression.""" + not: PlatformApiFilter + + """Checks for any expressions in this list.""" + or: [PlatformApiFilter!] + + """Filter by the object’s `platformApiSchemasByApiId` relation.""" + platformApiSchemasByApiId: PlatformApiToManyPlatformApiSchemaFilter + + """`platformApiSchemasByApiId` exist.""" + platformApiSchemasByApiIdExist: Boolean + + """Filter by the object’s `platformApiSettingByApiId` relation.""" + platformApiSettingByApiId: PlatformApiSettingFilter + + """A related `platformApiSettingByApiId` exists.""" + platformApiSettingByApiIdExists: Boolean + + """Filter by the object’s `platformCorsSettingByApiId` relation.""" + platformCorsSettingByApiId: PlatformCorsSettingFilter + + """A related `platformCorsSettingByApiId` exists.""" + platformCorsSettingByApiIdExists: Boolean + + """Filter by the object’s `roleName` field.""" + roleName: StringFilter + + """Filter by the object’s `updatedAt` field.""" + updatedAt: DatetimeFilter +} + +"""An input for mutations affecting `PlatformApi`""" +input PlatformApiInput { + """Anonymous role the API executes as""" + anonRole: String + + """Module-specific configuration for this API surface""" + config: JSON + createdAt: Datetime + + """Database this API surface serves""" + dbname: String + id: UUID + + """Whether other scopes may see and route to this API surface""" + isPublished: Boolean + + """Owner-local API surface name""" + name: String! + + """Authenticated role the API executes as""" + roleName: String + updatedAt: Datetime +} + +"""Methods to use when ordering `PlatformApi`.""" +enum PlatformApiOrderBy { + ANON_ROLE_ASC + ANON_ROLE_DESC + CONFIG_ASC + CONFIG_DESC + CREATED_AT_ASC + CREATED_AT_DESC + DBNAME_ASC + DBNAME_DESC + ID_ASC + ID_DESC + IS_PUBLISHED_ASC + IS_PUBLISHED_DESC + NAME_ASC + NAME_DESC + NATURAL + PRIMARY_KEY_ASC + PRIMARY_KEY_DESC + ROLE_NAME_ASC + ROLE_NAME_DESC + UPDATED_AT_ASC + UPDATED_AT_DESC +} + +""" +Represents an update to a `PlatformApi`. Fields that are set will be updated. +""" +input PlatformApiPatch { + """Anonymous role the API executes as""" + anonRole: String + + """Module-specific configuration for this API surface""" + config: JSON + createdAt: Datetime + + """Database this API surface serves""" + dbname: String + id: UUID + + """Whether other scopes may see and route to this API surface""" + isPublished: Boolean + + """Owner-local API surface name""" + name: String + + """Authenticated role the API executes as""" + roleName: String + updatedAt: Datetime +} + +"""Join table linking API surfaces to the metaschema schemas they expose""" +type PlatformApiSchema { + """ + Reads a single `PlatformApi` that is related to this `PlatformApiSchema`. + """ + api: PlatformApi + + """API surface that exposes this schema""" + apiId: UUID! + createdAt: Datetime + id: UUID! + + """Reads a single `Schema` that is related to this `PlatformApiSchema`.""" + schema: Schema + + """Metaschema schema exposed through the API surface""" + schemaId: UUID! + updatedAt: Datetime +} + +"""A connection to a list of `PlatformApiSchema` values.""" +type PlatformApiSchemaConnection { + """ + A list of edges which contains the `PlatformApiSchema` and cursor to aid in pagination. + """ + edges: [PlatformApiSchemaEdge]! + + """A list of `PlatformApiSchema` objects.""" + nodes: [PlatformApiSchema]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! + + """ + The count of *all* `PlatformApiSchema` you could get from the connection. + """ + totalCount: Int! +} + +"""A `PlatformApiSchema` edge in the connection.""" +type PlatformApiSchemaEdge { + """A cursor for use in pagination.""" + cursor: Cursor + + """The `PlatformApiSchema` at the end of the edge.""" + node: PlatformApiSchema +} + +""" +A filter to be used against `PlatformApiSchema` object types. All fields are combined with a logical ‘and.’ +""" +input PlatformApiSchemaFilter { + """Checks for all expressions in this list.""" + and: [PlatformApiSchemaFilter!] + + """Filter by the object’s `api` relation.""" + api: PlatformApiFilter + + """Filter by the object’s `apiId` field.""" + apiId: UUIDFilter + + """Filter by the object’s `createdAt` field.""" + createdAt: DatetimeFilter + + """Filter by the object’s `id` field.""" + id: UUIDFilter + + """Negates the expression.""" + not: PlatformApiSchemaFilter + + """Checks for any expressions in this list.""" + or: [PlatformApiSchemaFilter!] + + """Filter by the object’s `schema` relation.""" + schema: SchemaFilter + + """Filter by the object’s `schemaId` field.""" + schemaId: UUIDFilter + + """Filter by the object’s `updatedAt` field.""" + updatedAt: DatetimeFilter +} + +"""An input for mutations affecting `PlatformApiSchema`""" +input PlatformApiSchemaInput { + """API surface that exposes this schema""" + apiId: UUID! + createdAt: Datetime + id: UUID + + """Metaschema schema exposed through the API surface""" + schemaId: UUID! + updatedAt: Datetime +} + +"""Methods to use when ordering `PlatformApiSchema`.""" +enum PlatformApiSchemaOrderBy { + API_ID_ASC + API_ID_DESC + CREATED_AT_ASC + CREATED_AT_DESC + ID_ASC + ID_DESC + NATURAL + PRIMARY_KEY_ASC + PRIMARY_KEY_DESC + SCHEMA_ID_ASC + SCHEMA_ID_DESC + UPDATED_AT_ASC + UPDATED_AT_DESC +} - """Updates a single `PlatformApiSetting` using a unique key and a patch.""" - updatePlatformApiSetting( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: UpdatePlatformApiSettingInput! - ): UpdatePlatformApiSettingPayload +""" +Represents an update to a `PlatformApiSchema`. Fields that are set will be updated. +""" +input PlatformApiSchemaPatch { + """API surface that exposes this schema""" + apiId: UUID + createdAt: Datetime + id: UUID - """Updates a single `PlatformApis` using a unique key and a patch.""" - updatePlatformApis( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: UpdatePlatformApisInput! - ): UpdatePlatformApisPayload + """Metaschema schema exposed through the API surface""" + schemaId: UUID + updatedAt: Datetime +} - """Updates a single `PlatformCorsSetting` using a unique key and a patch.""" - updatePlatformCorsSetting( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: UpdatePlatformCorsSettingInput! - ): UpdatePlatformCorsSettingPayload +""" +Per-API feature flag overrides; NULL columns inherit from database_settings +""" +type PlatformApiSetting { + """ + Reads a single `PlatformApi` that is related to this `PlatformApiSetting`. + """ + api: PlatformApi - """Updates a single `PlatformDomain` using a unique key and a patch.""" - updatePlatformDomain( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: UpdatePlatformDomainInput! - ): UpdatePlatformDomainPayload + """API surface these settings override for""" + apiId: UUID! + createdAt: Datetime - """Updates a single `PlatformDomainEvent` using a unique key and a patch.""" - updatePlatformDomainEvent( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: UpdatePlatformDomainEventInput! - ): UpdatePlatformDomainEventPayload + """ + Override: enable aggregate queries (NULL = inherit from database_settings) + """ + enableAggregates: Boolean """ - Updates a single `PlatformDomainVerification` using a unique key and a patch. + Override: enable bulk mutations (NULL = inherit from database_settings) """ - updatePlatformDomainVerification( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: UpdatePlatformDomainVerificationInput! - ): UpdatePlatformDomainVerificationPayload + enableBulk: Boolean """ - Updates a single `PlatformManagedDomain` using a unique key and a patch. + Override: enable connection filter (NULL = inherit from database_settings) """ - updatePlatformManagedDomain( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: UpdatePlatformManagedDomainInput! - ): UpdatePlatformManagedDomainPayload + enableConnectionFilter: Boolean - """Updates a single `PlatformPage` using a unique key and a patch.""" - updatePlatformPage( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: UpdatePlatformPageInput! - ): UpdatePlatformPagePayload + """ + Override: enable direct (multipart) file uploads (NULL = inherit from database_settings) + """ + enableDirectUploads: Boolean - """Updates a single `PlatformSite` using a unique key and a patch.""" - updatePlatformSite( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: UpdatePlatformSiteInput! - ): UpdatePlatformSitePayload + """ + Override: enable internationalization plugin (NULL = inherit from database_settings) + """ + enableI18N: Boolean - """Updates a single `PlatformSiteAppLink` using a unique key and a patch.""" - updatePlatformSiteAppLink( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: UpdatePlatformSiteAppLinkInput! - ): UpdatePlatformSiteAppLinkPayload + """ + Override: enable LLM/AI integration features (NULL = inherit from database_settings) + """ + enableLlm: Boolean """ - Updates a single `PlatformSiteDeepLink` using a unique key and a patch. + Override: enable ltree hierarchical data type (NULL = inherit from database_settings) """ - updatePlatformSiteDeepLink( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: UpdatePlatformSiteDeepLinkInput! - ): UpdatePlatformSiteDeepLinkPayload + enableLtree: Boolean """ - Updates a single `PlatformSiteErrorPage` using a unique key and a patch. + Override: enable many-to-many relationships (NULL = inherit from database_settings) """ - updatePlatformSiteErrorPage( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: UpdatePlatformSiteErrorPageInput! - ): UpdatePlatformSiteErrorPagePayload + enableManyToMany: Boolean """ - Updates a single `PlatformSiteMetadatum` using a unique key and a patch. + Override: enable PostGIS spatial types (NULL = inherit from database_settings) """ - updatePlatformSiteMetadatum( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: UpdatePlatformSiteMetadatumInput! - ): UpdatePlatformSiteMetadatumPayload + enablePostgis: Boolean - """Updates a single `PlatformSiteModule` using a unique key and a patch.""" - updatePlatformSiteModule( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: UpdatePlatformSiteModuleInput! - ): UpdatePlatformSiteModulePayload + """ + Override: enable presigned URL upload flow (NULL = inherit from database_settings) + """ + enablePresignedUploads: Boolean - """Updates a single `PlatformSiteTheme` using a unique key and a patch.""" - updatePlatformSiteTheme( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: UpdatePlatformSiteThemeInput! - ): UpdatePlatformSiteThemePayload + """ + Override: enable realtime subscriptions (NULL = inherit from database_settings) + """ + enableRealtime: Boolean """ - Updates a single `PlatformSiteWebConfig` using a unique key and a patch. + Override: enable unified search (NULL = inherit from database_settings) """ - updatePlatformSiteWebConfig( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: UpdatePlatformSiteWebConfigInput! - ): UpdatePlatformSiteWebConfigPayload + enableSearch: Boolean + id: UUID! - """Updates a single `Policy` using a unique key and a patch.""" - updatePolicy( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: UpdatePolicyInput! - ): UpdatePolicyPayload + """ + Extensible JSON for additional per-API settings that do not have dedicated columns + """ + options: JSON! """ - Updates a single `PrimaryKeyConstraint` using a unique key and a patch. + Override: GraphQL statement timeout in milliseconds (NULL = inherit from database_settings). Clamped by the plan cap at read time. """ - updatePrimaryKeyConstraint( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: UpdatePrimaryKeyConstraintInput! - ): UpdatePrimaryKeyConstraintPayload + statementTimeoutMs: BigInt + updatedAt: Datetime +} - """Updates a single `PubkeySetting` using a unique key and a patch.""" - updatePubkeySetting( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: UpdatePubkeySettingInput! - ): UpdatePubkeySettingPayload +"""A connection to a list of `PlatformApiSetting` values.""" +type PlatformApiSettingConnection { + """ + A list of edges which contains the `PlatformApiSetting` and cursor to aid in pagination. + """ + edges: [PlatformApiSettingEdge]! - """Updates a single `RlsSetting` using a unique key and a patch.""" - updateRlsSetting( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: UpdateRlsSettingInput! - ): UpdateRlsSettingPayload + """A list of `PlatformApiSetting` objects.""" + nodes: [PlatformApiSetting]! - """Updates a single `Route` using a unique key and a patch.""" - updateRoute( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: UpdateRouteInput! - ): UpdateRoutePayload + """Information to aid in pagination.""" + pageInfo: PageInfo! - """Updates a single `RouteBinding` using a unique key and a patch.""" - updateRouteBinding( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: UpdateRouteBindingInput! - ): UpdateRouteBindingPayload + """ + The count of *all* `PlatformApiSetting` you could get from the connection. + """ + totalCount: Int! +} - """Updates a single `Schema` using a unique key and a patch.""" - updateSchema( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: UpdateSchemaInput! - ): UpdateSchemaPayload +"""A `PlatformApiSetting` edge in the connection.""" +type PlatformApiSettingEdge { + """A cursor for use in pagination.""" + cursor: Cursor - """Updates a single `SchemaGrant` using a unique key and a patch.""" - updateSchemaGrant( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: UpdateSchemaGrantInput! - ): UpdateSchemaGrantPayload + """The `PlatformApiSetting` at the end of the edge.""" + node: PlatformApiSetting +} - """Updates a single `Site` using a unique key and a patch.""" - updateSite( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: UpdateSiteInput! - ): UpdateSitePayload +""" +A filter to be used against `PlatformApiSetting` object types. All fields are combined with a logical ‘and.’ +""" +input PlatformApiSettingFilter { + """Checks for all expressions in this list.""" + and: [PlatformApiSettingFilter!] - """Updates a single `SiteAppLink` using a unique key and a patch.""" - updateSiteAppLink( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: UpdateSiteAppLinkInput! - ): UpdateSiteAppLinkPayload + """Filter by the object’s `api` relation.""" + api: PlatformApiFilter - """Updates a single `SiteDeepLink` using a unique key and a patch.""" - updateSiteDeepLink( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: UpdateSiteDeepLinkInput! - ): UpdateSiteDeepLinkPayload + """Filter by the object’s `apiId` field.""" + apiId: UUIDFilter - """Updates a single `SiteErrorPage` using a unique key and a patch.""" - updateSiteErrorPage( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: UpdateSiteErrorPageInput! - ): UpdateSiteErrorPagePayload + """Filter by the object’s `createdAt` field.""" + createdAt: DatetimeFilter - """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 + """Filter by the object’s `enableAggregates` field.""" + enableAggregates: BooleanFilter - """Updates a single `SiteModule` using a unique key and a patch.""" - updateSiteModule( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: UpdateSiteModuleInput! - ): UpdateSiteModulePayload + """Filter by the object’s `enableBulk` field.""" + enableBulk: BooleanFilter - """Updates a single `SiteTheme` using a unique key and a patch.""" - updateSiteTheme( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: UpdateSiteThemeInput! - ): UpdateSiteThemePayload + """Filter by the object’s `enableConnectionFilter` field.""" + enableConnectionFilter: BooleanFilter - """Updates a single `SiteWebConfig` using a unique key and a patch.""" - updateSiteWebConfig( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: UpdateSiteWebConfigInput! - ): UpdateSiteWebConfigPayload + """Filter by the object’s `enableDirectUploads` field.""" + enableDirectUploads: BooleanFilter - """Updates a single `SpatialRelation` using a unique key and a patch.""" - updateSpatialRelation( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: UpdateSpatialRelationInput! - ): UpdateSpatialRelationPayload + """Filter by the object’s `enableI18N` field.""" + enableI18N: BooleanFilter - """Updates a single `Table` using a unique key and a patch.""" - updateTable( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: UpdateTableInput! - ): UpdateTablePayload + """Filter by the object’s `enableLlm` field.""" + enableLlm: BooleanFilter - """Updates a single `TableBehavior` using a unique key and a patch.""" - updateTableBehavior( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: UpdateTableBehaviorInput! - ): UpdateTableBehaviorPayload + """Filter by the object’s `enableLtree` field.""" + enableLtree: BooleanFilter - """Updates a single `TableGrant` using a unique key and a patch.""" - updateTableGrant( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: UpdateTableGrantInput! - ): UpdateTableGrantPayload + """Filter by the object’s `enableManyToMany` field.""" + enableManyToMany: BooleanFilter - """Updates a single `Trigger` using a unique key and a patch.""" - updateTrigger( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: UpdateTriggerInput! - ): UpdateTriggerPayload + """Filter by the object’s `enablePostgis` field.""" + enablePostgis: BooleanFilter - """Updates a single `TriggerFunction` using a unique key and a patch.""" - updateTriggerFunction( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: UpdateTriggerFunctionInput! - ): UpdateTriggerFunctionPayload + """Filter by the object’s `enablePresignedUploads` field.""" + enablePresignedUploads: BooleanFilter - """Updates a single `UniqueConstraint` using a unique key and a patch.""" - updateUniqueConstraint( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: UpdateUniqueConstraintInput! - ): UpdateUniqueConstraintPayload + """Filter by the object’s `enableRealtime` field.""" + enableRealtime: BooleanFilter - """ - Updates a single `UniqueConstraintBehavior` using a unique key and a patch. - """ - updateUniqueConstraintBehavior( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: UpdateUniqueConstraintBehaviorInput! - ): UpdateUniqueConstraintBehaviorPayload + """Filter by the object’s `enableSearch` field.""" + enableSearch: BooleanFilter - """Updates a single `View` using a unique key and a patch.""" - updateView( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: UpdateViewInput! - ): UpdateViewPayload + """Filter by the object’s `id` field.""" + id: UUIDFilter - """Updates a single `ViewBehavior` using a unique key and a patch.""" - updateViewBehavior( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: UpdateViewBehaviorInput! - ): UpdateViewBehaviorPayload + """Negates the expression.""" + not: PlatformApiSettingFilter - """Updates a single `ViewGrant` using a unique key and a patch.""" - updateViewGrant( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: UpdateViewGrantInput! - ): UpdateViewGrantPayload + """Filter by the object’s `options` field.""" + options: JSONFilter - """Updates a single `ViewRule` using a unique key and a patch.""" - updateViewRule( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: UpdateViewRuleInput! - ): UpdateViewRulePayload + """Checks for any expressions in this list.""" + or: [PlatformApiSettingFilter!] - """Updates a single `ViewTable` using a unique key and a patch.""" - updateViewTable( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: UpdateViewTableInput! - ): UpdateViewTablePayload + """Filter by the object’s `statementTimeoutMs` field.""" + statementTimeoutMs: BigIntFilter - """Updates a single `WebauthnSetting` using a unique key and a patch.""" - updateWebauthnSetting( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: UpdateWebauthnSettingInput! - ): UpdateWebauthnSettingPayload + """Filter by the object’s `updatedAt` field.""" + updatedAt: DatetimeFilter } -type NodeTypeRegistry { - category: String! - description: String - displayName: String - name: String! - parameterSchema: JSON! - slug: String! - tags: [String]! -} +"""An input for mutations affecting `PlatformApiSetting`""" +input PlatformApiSettingInput { + """API surface these settings override for""" + apiId: UUID! + createdAt: Datetime -"""A connection to a list of `NodeTypeRegistry` values.""" -type NodeTypeRegistryConnection { """ - A list of edges which contains the `NodeTypeRegistry` and cursor to aid in pagination. + Override: enable aggregate queries (NULL = inherit from database_settings) """ - edges: [NodeTypeRegistryEdge]! - - """A list of `NodeTypeRegistry` objects.""" - nodes: [NodeTypeRegistry]! - - """Information to aid in pagination.""" - pageInfo: PageInfo! + enableAggregates: Boolean """ - The count of *all* `NodeTypeRegistry` you could get from the connection. + Override: enable bulk mutations (NULL = inherit from database_settings) """ - totalCount: Int! -} - -"""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 -} + enableBulk: Boolean -""" -A filter to be used against `NodeTypeRegistry` object types. All fields are combined with a logical ‘and.’ -""" -input NodeTypeRegistryFilter { - """Checks for all expressions in this list.""" - and: [NodeTypeRegistryFilter!] + """ + Override: enable connection filter (NULL = inherit from database_settings) + """ + enableConnectionFilter: Boolean - """Filter by the object’s `category` field.""" - category: StringFilter + """ + Override: enable direct (multipart) file uploads (NULL = inherit from database_settings) + """ + enableDirectUploads: Boolean - """Filter by the object’s `description` field.""" - description: StringFilter + """ + Override: enable internationalization plugin (NULL = inherit from database_settings) + """ + enableI18N: Boolean - """Filter by the object’s `displayName` field.""" - displayName: StringFilter + """ + Override: enable LLM/AI integration features (NULL = inherit from database_settings) + """ + enableLlm: Boolean - """Filter by the object’s `name` field.""" - name: StringFilter + """ + Override: enable ltree hierarchical data type (NULL = inherit from database_settings) + """ + enableLtree: Boolean - """Negates the expression.""" - not: NodeTypeRegistryFilter + """ + Override: enable many-to-many relationships (NULL = inherit from database_settings) + """ + enableManyToMany: Boolean - """Checks for any expressions in this list.""" - or: [NodeTypeRegistryFilter!] + """ + Override: enable PostGIS spatial types (NULL = inherit from database_settings) + """ + enablePostgis: Boolean - """Filter by the object’s `parameterSchema` field.""" - parameterSchema: JSONFilter + """ + Override: enable presigned URL upload flow (NULL = inherit from database_settings) + """ + enablePresignedUploads: Boolean - """Filter by the object’s `slug` field.""" - slug: StringFilter + """ + Override: enable realtime subscriptions (NULL = inherit from database_settings) + """ + enableRealtime: Boolean - """Filter by the object’s `tags` field.""" - tags: StringListFilter -} + """ + Override: enable unified search (NULL = inherit from database_settings) + """ + enableSearch: Boolean + id: UUID -"""An input for mutations affecting `NodeTypeRegistry`""" -input NodeTypeRegistryInput { - category: String! - description: String - displayName: String - name: String! - parameterSchema: JSON - slug: String! - tags: [String] + """ + Extensible JSON for additional per-API settings that do not have dedicated columns + """ + options: JSON + + """ + Override: GraphQL statement timeout in milliseconds (NULL = inherit from database_settings). Clamped by the plan cap at read time. + """ + statementTimeoutMs: BigInt + updatedAt: Datetime } -"""Methods to use when ordering `NodeTypeRegistry`.""" -enum NodeTypeRegistryOrderBy { - CATEGORY_ASC - CATEGORY_DESC - DESCRIPTION_ASC - DESCRIPTION_DESC - DISPLAY_NAME_ASC - DISPLAY_NAME_DESC - NAME_ASC - NAME_DESC +"""Methods to use when ordering `PlatformApiSetting`.""" +enum PlatformApiSettingOrderBy { + API_ID_ASC + API_ID_DESC + CREATED_AT_ASC + CREATED_AT_DESC + ENABLE_AGGREGATES_ASC + ENABLE_AGGREGATES_DESC + ENABLE_BULK_ASC + ENABLE_BULK_DESC + ENABLE_CONNECTION_FILTER_ASC + ENABLE_CONNECTION_FILTER_DESC + ENABLE_DIRECT_UPLOADS_ASC + ENABLE_DIRECT_UPLOADS_DESC + ENABLE_I18N_ASC + ENABLE_I18N_DESC + ENABLE_LLM_ASC + ENABLE_LLM_DESC + ENABLE_LTREE_ASC + ENABLE_LTREE_DESC + ENABLE_MANY_TO_MANY_ASC + ENABLE_MANY_TO_MANY_DESC + ENABLE_POSTGIS_ASC + ENABLE_POSTGIS_DESC + ENABLE_PRESIGNED_UPLOADS_ASC + ENABLE_PRESIGNED_UPLOADS_DESC + ENABLE_REALTIME_ASC + ENABLE_REALTIME_DESC + ENABLE_SEARCH_ASC + ENABLE_SEARCH_DESC + ID_ASC + ID_DESC NATURAL - PARAMETER_SCHEMA_ASC - PARAMETER_SCHEMA_DESC + OPTIONS_ASC + OPTIONS_DESC PRIMARY_KEY_ASC PRIMARY_KEY_DESC - SLUG_ASC - SLUG_DESC - TAGS_ASC - TAGS_DESC + STATEMENT_TIMEOUT_MS_ASC + STATEMENT_TIMEOUT_MS_DESC + UPDATED_AT_ASC + UPDATED_AT_DESC } """ -Represents an update to a `NodeTypeRegistry`. Fields that are set will be updated. +Represents an update to a `PlatformApiSetting`. Fields that are set will be updated. """ -input NodeTypeRegistryPatch { - category: String - description: String - displayName: String - name: String - parameterSchema: JSON - slug: String - tags: [String] -} +input PlatformApiSettingPatch { + """API surface these settings override for""" + apiId: UUID + createdAt: Datetime -enum ObjectCategory { - APP - AUTH - CORE - MEMBERSHIPS - MODULE - PERMISSIONS -} + """ + Override: enable aggregate queries (NULL = inherit from database_settings) + """ + enableAggregates: Boolean -""" -A filter to be used against ObjectCategory fields. All fields are combined with a logical ‘and.’ -""" -input ObjectCategoryFilter { """ - Not equal to the specified value, treating null like an ordinary value. + Override: enable bulk mutations (NULL = inherit from database_settings) """ - distinctFrom: ObjectCategory + enableBulk: Boolean - """Equal to the specified value.""" - equalTo: ObjectCategory + """ + Override: enable connection filter (NULL = inherit from database_settings) + """ + enableConnectionFilter: Boolean - """Greater than the specified value.""" - greaterThan: ObjectCategory + """ + Override: enable direct (multipart) file uploads (NULL = inherit from database_settings) + """ + enableDirectUploads: Boolean - """Greater than or equal to the specified value.""" - greaterThanOrEqualTo: ObjectCategory + """ + Override: enable internationalization plugin (NULL = inherit from database_settings) + """ + enableI18N: Boolean - """Included in the specified list.""" - in: [ObjectCategory!] + """ + Override: enable LLM/AI integration features (NULL = inherit from database_settings) + """ + enableLlm: Boolean """ - Is null (if `true` is specified) or is not null (if `false` is specified). + Override: enable ltree hierarchical data type (NULL = inherit from database_settings) """ - isNull: Boolean + enableLtree: Boolean - """Less than the specified value.""" - lessThan: ObjectCategory + """ + Override: enable many-to-many relationships (NULL = inherit from database_settings) + """ + enableManyToMany: Boolean - """Less than or equal to the specified value.""" - lessThanOrEqualTo: ObjectCategory + """ + Override: enable PostGIS spatial types (NULL = inherit from database_settings) + """ + enablePostgis: Boolean - """Equal to the specified value, treating null like an ordinary value.""" - notDistinctFrom: ObjectCategory + """ + Override: enable presigned URL upload flow (NULL = inherit from database_settings) + """ + enablePresignedUploads: Boolean - """Not equal to the specified value.""" - notEqualTo: ObjectCategory + """ + Override: enable realtime subscriptions (NULL = inherit from database_settings) + """ + enableRealtime: Boolean - """Not included in the specified list.""" - notIn: [ObjectCategory!] -} + """ + Override: enable unified search (NULL = inherit from database_settings) + """ + enableSearch: Boolean + id: UUID -""" -Site-owned page content — merkle-versioned head over the infra store; never a routing surface -""" -type Page { """ - Infra store commit for the current content (stamped by the versioned trigger on every write) + Extensible JSON for additional per-API settings that do not have dedicated columns """ - commitId: UUID + options: JSON """ - Page content (blocks/markdown/whatever the build consumes) — the readily-cached head; history lives in the infra store + Override: GraphQL statement timeout in milliseconds (NULL = inherit from database_settings). Clamped by the plan cap at read time. """ - content: JSON! + statementTimeoutMs: BigInt + updatedAt: Datetime +} - """Timestamp of page creation""" - createdAt: Datetime! +""" +A filter to be used against many `PlatformApiSchema` object types. All fields are combined with a logical ‘and.’ +""" +input PlatformApiToManyPlatformApiSchemaFilter { + """Filters to entities where every related entity matches.""" + every: PlatformApiSchemaFilter - """Database that owns this resource (database-scoped isolation)""" - databaseId: UUID! + """Filters to entities where no related entity matches.""" + none: PlatformApiSchemaFilter - """Unique page identifier""" - id: UUID! + """Filters to entities where at least one related entity matches.""" + some: PlatformApiSchemaFilter +} - """Reads a single `Site` that is related to this `Page`.""" - site: Site +""" +Scope-wide and per-API CORS origin configuration; NULL api_id means scope-wide default +""" +type PlatformCorsSetting { + """Array of allowed CORS origins (e.g. https://example.com)""" + allowedOrigins: [String]! """ - Site surface this page belongs to; each site owns its own infra store and pages live at path [page, slug] within it + Reads a single `PlatformApi` that is related to this `PlatformCorsSetting`. """ - siteId: UUID! - - """Page slug (unique per site)""" - slug: String! + api: PlatformApi """ - Infra Merkle store holding this row's history (stamped by the versioned trigger) + Optional API surface for per-API override; NULL means scope-wide default """ - storeId: UUID - - """Timestamp of last modification""" - updatedAt: Datetime! + apiId: UUID + createdAt: Datetime + id: UUID! + updatedAt: Datetime } -"""A connection to a list of `Page` values.""" -type PageConnection { +"""A connection to a list of `PlatformCorsSetting` values.""" +type PlatformCorsSettingConnection { """ - A list of edges which contains the `Page` and cursor to aid in pagination. + A list of edges which contains the `PlatformCorsSetting` and cursor to aid in pagination. """ - edges: [PageEdge]! + edges: [PlatformCorsSettingEdge]! - """A list of `Page` objects.""" - nodes: [Page]! + """A list of `PlatformCorsSetting` objects.""" + nodes: [PlatformCorsSetting]! """Information to aid in pagination.""" pageInfo: PageInfo! - """The count of *all* `Page` you could get from the connection.""" + """ + The count of *all* `PlatformCorsSetting` you could get from the connection. + """ totalCount: Int! } -"""A `Page` edge in the connection.""" -type PageEdge { +"""A `PlatformCorsSetting` edge in the connection.""" +type PlatformCorsSettingEdge { """A cursor for use in pagination.""" cursor: Cursor - """The `Page` at the end of the edge.""" - node: Page + """The `PlatformCorsSetting` at the end of the edge.""" + node: PlatformCorsSetting } """ -A filter to be used against `Page` object types. All fields are combined with a logical ‘and.’ +A filter to be used against `PlatformCorsSetting` object types. All fields are combined with a logical ‘and.’ """ -input PageFilter { +input PlatformCorsSettingFilter { + """Filter by the object’s `allowedOrigins` field.""" + allowedOrigins: StringListFilter + """Checks for all expressions in this list.""" - and: [PageFilter!] + and: [PlatformCorsSettingFilter!] - """Filter by the object’s `commitId` field.""" - commitId: UUIDFilter + """Filter by the object’s `api` relation.""" + api: PlatformApiFilter - """Filter by the object’s `content` field.""" - content: JSONFilter + """A related `api` exists.""" + apiExists: Boolean + + """Filter by the object’s `apiId` field.""" + apiId: UUIDFilter """Filter by the object’s `createdAt` field.""" createdAt: DatetimeFilter - """Filter by the object’s `databaseId` field.""" - databaseId: UUIDFilter - """Filter by the object’s `id` field.""" id: UUIDFilter """Negates the expression.""" - not: PageFilter + not: PlatformCorsSettingFilter """Checks for any expressions in this list.""" - or: [PageFilter!] + or: [PlatformCorsSettingFilter!] - """Filter by the object’s `site` relation.""" - site: SiteFilter + """Filter by the object’s `updatedAt` field.""" + updatedAt: DatetimeFilter +} - """Filter by the object’s `siteId` field.""" - siteId: UUIDFilter +"""An input for mutations affecting `PlatformCorsSetting`""" +input PlatformCorsSettingInput { + """Array of allowed CORS origins (e.g. https://example.com)""" + allowedOrigins: [String] - """Filter by the object’s `slug` field.""" - slug: StringFilter + """ + Optional API surface for per-API override; NULL means scope-wide default + """ + apiId: UUID + createdAt: Datetime + id: UUID + updatedAt: Datetime +} - """Filter by the object’s `storeId` field.""" - storeId: UUIDFilter +"""Methods to use when ordering `PlatformCorsSetting`.""" +enum PlatformCorsSettingOrderBy { + ALLOWED_ORIGINS_ASC + ALLOWED_ORIGINS_DESC + API_ID_ASC + API_ID_DESC + CREATED_AT_ASC + CREATED_AT_DESC + ID_ASC + ID_DESC + NATURAL + PRIMARY_KEY_ASC + PRIMARY_KEY_DESC + UPDATED_AT_ASC + UPDATED_AT_DESC +} - """Filter by the object’s `updatedAt` field.""" - updatedAt: DatetimeFilter +""" +Represents an update to a `PlatformCorsSetting`. Fields that are set will be updated. +""" +input PlatformCorsSettingPatch { + """Array of allowed CORS origins (e.g. https://example.com)""" + allowedOrigins: [String] + + """ + Optional API surface for per-API override; NULL means scope-wide default + """ + apiId: UUID + createdAt: Datetime + id: UUID + updatedAt: Datetime } -"""Information about pagination in a connection.""" -type PageInfo { - """When paginating forwards, the cursor to continue.""" - endCursor: Cursor +""" +Fully-qualified hostnames owned by this scope; each row claims its hostname globally through the catalog +""" +type PlatformDomain { + """Module-specific configuration for this hostname""" + config: JSON + createdAt: Datetime - """When paginating forwards, are there more items?""" - hasNextPage: Boolean! + """Lowercase fully-qualified hostname; wildcards use the *.parent form""" + hostname: String! + id: UUID! - """When paginating backwards, are there more items?""" - hasPreviousPage: Boolean! + """Whether other scopes may see and bind under this hostname""" + isPublished: Boolean! - """When paginating backwards, the cursor to continue.""" - startCursor: Cursor -} + """Whether this hostname is a *.parent wildcard claim""" + isWildcard: Boolean! -"""An input for mutations affecting `Page`""" -input PageInput { """ - Infra store commit for the current content (stamped by the versioned trigger on every write) + Whether the platform drives this hostname's DNS verification and certificate lifecycle """ - commitId: UUID + managed: Boolean! """ - Page content (blocks/markdown/whatever the build consumes) — the readily-cached head; history lives in the infra store + Parent hostname a wildcard claim covers (example.com for *.example.com) """ - content: JSON! + parentHostname: String - """Timestamp of page creation""" - createdAt: Datetime + """Reads and enables pagination through a set of `PlatformDomainEvent`.""" + platformDomainEventsByDomainId( + """Read all values in the set after (below) this cursor.""" + after: Cursor - """Database that owns this resource (database-scoped isolation)""" - databaseId: UUID! + """Read all values in the set before (above) this cursor.""" + before: Cursor - """Unique page identifier""" - id: UUID + """Only read the first `n` values of the set.""" + first: Int - """ - Site surface this page belongs to; each site owns its own infra store and pages live at path [page, slug] within it - """ - siteId: UUID! + """Only read the last `n` values of the set.""" + last: Int - """Page slug (unique per site)""" - slug: String! + """ + Skip the first `n` values from our `after` cursor, an alternative to cursor + based pagination. May not be used with `last`. + """ + offset: Int + + """The method to use when ordering `PlatformDomainEvent`.""" + orderBy: [PlatformDomainEventOrderBy!] = [PRIMARY_KEY_ASC] + + """ + A filter to be used in determining which values should be returned by the collection. + """ + where: PlatformDomainEventFilter + ): PlatformDomainEventConnection! """ - Infra Merkle store holding this row's history (stamped by the versioned trigger) + Reads and enables pagination through a set of `PlatformDomainVerification`. """ - storeId: UUID + platformDomainVerificationsByDomainId( + """Read all values in the set after (below) this cursor.""" + after: Cursor - """Timestamp of last modification""" - updatedAt: Datetime -} + """Read all values in the set before (above) this cursor.""" + before: Cursor -"""Methods to use when ordering `Page`.""" -enum PageOrderBy { - COMMIT_ID_ASC - COMMIT_ID_DESC - CONTENT_ASC - CONTENT_DESC - CREATED_AT_ASC - CREATED_AT_DESC - DATABASE_ID_ASC - DATABASE_ID_DESC - ID_ASC - ID_DESC - NATURAL - PRIMARY_KEY_ASC - PRIMARY_KEY_DESC - SITE_ID_ASC - SITE_ID_DESC - SLUG_ASC - SLUG_DESC - STORE_ID_ASC - STORE_ID_DESC - UPDATED_AT_ASC - UPDATED_AT_DESC + """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 + + """The method to use when ordering `PlatformDomainVerification`.""" + orderBy: [PlatformDomainVerificationOrderBy!] = [PRIMARY_KEY_ASC] + + """ + A filter to be used in determining which values should be returned by the collection. + """ + where: PlatformDomainVerificationFilter + ): PlatformDomainVerificationConnection! + + """When the certificate last became ready""" + tlsReadyAt: Datetime + + """Name of the TLS secret serving this hostname""" + tlsSecretName: String + + """Certificate lifecycle state for this hostname""" + tlsStatus: String! + updatedAt: Datetime + + """Ownership verification state of this hostname""" + verificationStatus: String! + + """When ownership verification last succeeded""" + verifiedAt: Datetime } -"""Represents an update to a `Page`. Fields that are set will be updated.""" -input PagePatch { +"""A connection to a list of `PlatformDomain` values.""" +type PlatformDomainConnection { """ - Infra store commit for the current content (stamped by the versioned trigger on every write) + A list of edges which contains the `PlatformDomain` and cursor to aid in pagination. """ - commitId: UUID + edges: [PlatformDomainEdge]! - """ - Page content (blocks/markdown/whatever the build consumes) — the readily-cached head; history lives in the infra store - """ - content: JSON + """A list of `PlatformDomain` objects.""" + nodes: [PlatformDomain]! - """Timestamp of page creation""" - createdAt: Datetime + """Information to aid in pagination.""" + pageInfo: PageInfo! - """Database that owns this resource (database-scoped isolation)""" - databaseId: UUID + """The count of *all* `PlatformDomain` you could get from the connection.""" + totalCount: Int! +} - """Unique page identifier""" - id: UUID +"""A `PlatformDomain` edge in the connection.""" +type PlatformDomainEdge { + """A cursor for use in pagination.""" + cursor: Cursor + + """The `PlatformDomain` at the end of the edge.""" + node: PlatformDomain +} + +"""Audit trail of domain lifecycle events""" +type PlatformDomainEvent { + """User who triggered this event, if any""" + actorId: UUID + createdAt: Datetime """ - Site surface this page belongs to; each site owns its own infra store and pages live at path [page, slug] within it + Reads a single `PlatformDomain` that is related to this `PlatformDomainEvent`. """ - siteId: UUID + domain: PlatformDomain - """Page slug (unique per site)""" - slug: String + """Scoped domain this event belongs to""" + domainId: UUID """ - Infra Merkle store holding this row's history (stamped by the versioned trigger) + Reads a single `PlatformDomainVerification` that is related to this `PlatformDomainEvent`. """ - storeId: UUID - - """Timestamp of last modification""" - updatedAt: Datetime -} + domainVerification: PlatformDomainVerification -type Partition { - createdAt: Datetime + """Verification challenge this event relates to, if any""" + domainVerificationId: UUID - """Reads a single `Database` that is related to this `Partition`.""" - database: Database - databaseId: UUID! + """Lifecycle event discriminator""" + eventType: String! id: UUID! - interval: String - isParented: Boolean! - namingPattern: String! - """Reads a single `Field` that is related to this `Partition`.""" - partitionKey: Field - partitionKeyId: UUID! - premake: Int! - retention: String - retentionKeepTable: Boolean! - strategy: String! + """ + Reads a single `PlatformManagedDomain` that is related to this `PlatformDomainEvent`. + """ + managedDomain: PlatformManagedDomain - """Reads a single `Table` that is related to this `Partition`.""" - table: Table - tableId: UUID! + """Managed hostname this event belongs to""" + managedDomainId: UUID + + """Human-readable event message""" + message: String + + """Structured event metadata""" + metadata: JSON updatedAt: Datetime } -"""A connection to a list of `Partition` values.""" -type PartitionConnection { +"""A connection to a list of `PlatformDomainEvent` values.""" +type PlatformDomainEventConnection { """ - A list of edges which contains the `Partition` and cursor to aid in pagination. + A list of edges which contains the `PlatformDomainEvent` and cursor to aid in pagination. """ - edges: [PartitionEdge]! + edges: [PlatformDomainEventEdge]! - """A list of `Partition` objects.""" - nodes: [Partition]! + """A list of `PlatformDomainEvent` objects.""" + nodes: [PlatformDomainEvent]! """Information to aid in pagination.""" pageInfo: PageInfo! - """The count of *all* `Partition` you could get from the connection.""" + """ + The count of *all* `PlatformDomainEvent` you could get from the connection. + """ totalCount: Int! } -"""A `Partition` edge in the connection.""" -type PartitionEdge { +"""A `PlatformDomainEvent` edge in the connection.""" +type PlatformDomainEventEdge { """A cursor for use in pagination.""" cursor: Cursor - """The `Partition` at the end of the edge.""" - node: Partition + """The `PlatformDomainEvent` at the end of the edge.""" + node: PlatformDomainEvent } """ -A filter to be used against `Partition` object types. All fields are combined with a logical ‘and.’ +A filter to be used against `PlatformDomainEvent` object types. All fields are combined with a logical ‘and.’ """ -input PartitionFilter { +input PlatformDomainEventFilter { + """Filter by the object’s `actorId` field.""" + actorId: UUIDFilter + """Checks for all expressions in this list.""" - and: [PartitionFilter!] + and: [PlatformDomainEventFilter!] """Filter by the object’s `createdAt` field.""" createdAt: DatetimeFilter - """Filter by the object’s `database` relation.""" - database: DatabaseFilter - - """Filter by the object’s `databaseId` field.""" - databaseId: UUIDFilter + """Filter by the object’s `domain` relation.""" + domain: PlatformDomainFilter - """Filter by the object’s `id` field.""" - id: UUIDFilter + """A related `domain` exists.""" + domainExists: Boolean - """Filter by the object’s `interval` field.""" - interval: StringFilter + """Filter by the object’s `domainId` field.""" + domainId: UUIDFilter - """Filter by the object’s `isParented` field.""" - isParented: BooleanFilter + """Filter by the object’s `domainVerification` relation.""" + domainVerification: PlatformDomainVerificationFilter - """Filter by the object’s `namingPattern` field.""" - namingPattern: StringFilter + """A related `domainVerification` exists.""" + domainVerificationExists: Boolean - """Negates the expression.""" - not: PartitionFilter + """Filter by the object’s `domainVerificationId` field.""" + domainVerificationId: UUIDFilter - """Checks for any expressions in this list.""" - or: [PartitionFilter!] + """Filter by the object’s `eventType` field.""" + eventType: StringFilter - """Filter by the object’s `partitionKey` relation.""" - partitionKey: FieldFilter + """Filter by the object’s `id` field.""" + id: UUIDFilter - """Filter by the object’s `partitionKeyId` field.""" - partitionKeyId: UUIDFilter + """Filter by the object’s `managedDomain` relation.""" + managedDomain: PlatformManagedDomainFilter - """Filter by the object’s `premake` field.""" - premake: IntFilter + """A related `managedDomain` exists.""" + managedDomainExists: Boolean - """Filter by the object’s `retention` field.""" - retention: StringFilter + """Filter by the object’s `managedDomainId` field.""" + managedDomainId: UUIDFilter - """Filter by the object’s `retentionKeepTable` field.""" - retentionKeepTable: BooleanFilter + """Filter by the object’s `message` field.""" + message: StringFilter - """Filter by the object’s `strategy` field.""" - strategy: StringFilter + """Filter by the object’s `metadata` field.""" + metadata: JSONFilter - """Filter by the object’s `table` relation.""" - table: TableFilter + """Negates the expression.""" + not: PlatformDomainEventFilter - """Filter by the object’s `tableId` field.""" - tableId: UUIDFilter + """Checks for any expressions in this list.""" + or: [PlatformDomainEventFilter!] """Filter by the object’s `updatedAt` field.""" updatedAt: DatetimeFilter } -"""An input for mutations affecting `Partition`""" -input PartitionInput { +"""An input for mutations affecting `PlatformDomainEvent`""" +input PlatformDomainEventInput { + """User who triggered this event, if any""" + actorId: UUID createdAt: Datetime - databaseId: UUID! + + """Scoped domain this event belongs to""" + domainId: UUID + + """Verification challenge this event relates to, if any""" + domainVerificationId: UUID + + """Lifecycle event discriminator""" + eventType: String! id: UUID - interval: String - isParented: Boolean - namingPattern: String - partitionKeyId: UUID! - premake: Int - retention: String - retentionKeepTable: Boolean - strategy: String! - tableId: UUID! + + """Managed hostname this event belongs to""" + managedDomainId: UUID + + """Human-readable event message""" + message: String + + """Structured event metadata""" + metadata: JSON updatedAt: Datetime } -"""Methods to use when ordering `Partition`.""" -enum PartitionOrderBy { +"""Methods to use when ordering `PlatformDomainEvent`.""" +enum PlatformDomainEventOrderBy { + ACTOR_ID_ASC + ACTOR_ID_DESC CREATED_AT_ASC CREATED_AT_DESC - DATABASE_ID_ASC - DATABASE_ID_DESC + DOMAIN_ID_ASC + DOMAIN_ID_DESC + DOMAIN_VERIFICATION_ID_ASC + DOMAIN_VERIFICATION_ID_DESC + EVENT_TYPE_ASC + EVENT_TYPE_DESC ID_ASC ID_DESC - INTERVAL_ASC - INTERVAL_DESC - IS_PARENTED_ASC - IS_PARENTED_DESC - NAMING_PATTERN_ASC - NAMING_PATTERN_DESC + MANAGED_DOMAIN_ID_ASC + MANAGED_DOMAIN_ID_DESC + MESSAGE_ASC + MESSAGE_DESC + METADATA_ASC + METADATA_DESC NATURAL - PARTITION_KEY_ID_ASC - PARTITION_KEY_ID_DESC - PREMAKE_ASC - PREMAKE_DESC PRIMARY_KEY_ASC PRIMARY_KEY_DESC - RETENTION_ASC - RETENTION_DESC - RETENTION_KEEP_TABLE_ASC - RETENTION_KEEP_TABLE_DESC - STRATEGY_ASC - STRATEGY_DESC - TABLE_ID_ASC - TABLE_ID_DESC UPDATED_AT_ASC UPDATED_AT_DESC } """ -Represents an update to a `Partition`. Fields that are set will be updated. +Represents an update to a `PlatformDomainEvent`. Fields that are set will be updated. """ -input PartitionPatch { - createdAt: Datetime - databaseId: UUID - id: UUID - interval: String - isParented: Boolean - namingPattern: String - partitionKeyId: UUID - premake: Int - retention: String - retentionKeepTable: Boolean - strategy: String - tableId: UUID - updatedAt: Datetime -} - -"""Join table linking API surfaces to the metaschema schemas they expose""" -type PlatformApiSchema { - """ - Reads a single `PlatformApis` that is related to this `PlatformApiSchema`. - """ - api: PlatformApis - - """API surface that exposes this schema""" - apiId: UUID! +input PlatformDomainEventPatch { + """User who triggered this event, if any""" + actorId: UUID createdAt: Datetime - id: UUID! - - """Reads a single `Schema` that is related to this `PlatformApiSchema`.""" - schema: Schema - - """Metaschema schema exposed through the API surface""" - schemaId: UUID! - updatedAt: Datetime -} -"""A connection to a list of `PlatformApiSchema` values.""" -type PlatformApiSchemaConnection { - """ - A list of edges which contains the `PlatformApiSchema` and cursor to aid in pagination. - """ - edges: [PlatformApiSchemaEdge]! + """Scoped domain this event belongs to""" + domainId: UUID - """A list of `PlatformApiSchema` objects.""" - nodes: [PlatformApiSchema]! + """Verification challenge this event relates to, if any""" + domainVerificationId: UUID - """Information to aid in pagination.""" - pageInfo: PageInfo! + """Lifecycle event discriminator""" + eventType: String + id: UUID - """ - The count of *all* `PlatformApiSchema` you could get from the connection. - """ - totalCount: Int! -} + """Managed hostname this event belongs to""" + managedDomainId: UUID -"""A `PlatformApiSchema` edge in the connection.""" -type PlatformApiSchemaEdge { - """A cursor for use in pagination.""" - cursor: Cursor + """Human-readable event message""" + message: String - """The `PlatformApiSchema` at the end of the edge.""" - node: PlatformApiSchema + """Structured event metadata""" + metadata: JSON + updatedAt: Datetime } """ -A filter to be used against `PlatformApiSchema` object types. All fields are combined with a logical ‘and.’ +A filter to be used against `PlatformDomain` object types. All fields are combined with a logical ‘and.’ """ -input PlatformApiSchemaFilter { +input PlatformDomainFilter { """Checks for all expressions in this list.""" - and: [PlatformApiSchemaFilter!] - - """Filter by the object’s `api` relation.""" - api: PlatformApisFilter + and: [PlatformDomainFilter!] - """Filter by the object’s `apiId` field.""" - apiId: UUIDFilter + """Filter by the object’s `config` field.""" + config: JSONFilter """Filter by the object’s `createdAt` field.""" createdAt: DatetimeFilter + """Filter by the object’s `hostname` field.""" + hostname: StringFilter + """Filter by the object’s `id` field.""" id: UUIDFilter + """Filter by the object’s `isPublished` field.""" + isPublished: BooleanFilter + + """Filter by the object’s `isWildcard` field.""" + isWildcard: BooleanFilter + + """Filter by the object’s `managed` field.""" + managed: BooleanFilter + """Negates the expression.""" - not: PlatformApiSchemaFilter + not: PlatformDomainFilter """Checks for any expressions in this list.""" - or: [PlatformApiSchemaFilter!] + or: [PlatformDomainFilter!] - """Filter by the object’s `schema` relation.""" - schema: SchemaFilter + """Filter by the object’s `parentHostname` field.""" + parentHostname: StringFilter - """Filter by the object’s `schemaId` field.""" - schemaId: UUIDFilter + """Filter by the object’s `platformDomainEventsByDomainId` relation.""" + platformDomainEventsByDomainId: PlatformDomainToManyPlatformDomainEventFilter + + """`platformDomainEventsByDomainId` exist.""" + platformDomainEventsByDomainIdExist: Boolean + + """ + Filter by the object’s `platformDomainVerificationsByDomainId` relation. + """ + platformDomainVerificationsByDomainId: PlatformDomainToManyPlatformDomainVerificationFilter + + """`platformDomainVerificationsByDomainId` exist.""" + platformDomainVerificationsByDomainIdExist: Boolean + + """Filter by the object’s `tlsReadyAt` field.""" + tlsReadyAt: DatetimeFilter + + """Filter by the object’s `tlsSecretName` field.""" + tlsSecretName: StringFilter + + """Filter by the object’s `tlsStatus` field.""" + tlsStatus: StringFilter """Filter by the object’s `updatedAt` field.""" updatedAt: DatetimeFilter + + """Filter by the object’s `verificationStatus` field.""" + verificationStatus: StringFilter + + """Filter by the object’s `verifiedAt` field.""" + verifiedAt: DatetimeFilter } -"""An input for mutations affecting `PlatformApiSchema`""" -input PlatformApiSchemaInput { - """API surface that exposes this schema""" - apiId: UUID! +"""An input for mutations affecting `PlatformDomain`""" +input PlatformDomainInput { + """Module-specific configuration for this hostname""" + config: JSON createdAt: Datetime + + """Lowercase fully-qualified hostname; wildcards use the *.parent form""" + hostname: String! id: UUID - """Metaschema schema exposed through the API surface""" - schemaId: UUID! + """Whether other scopes may see and bind under this hostname""" + isPublished: Boolean + + """Whether this hostname is a *.parent wildcard claim""" + isWildcard: Boolean + + """ + Whether the platform drives this hostname's DNS verification and certificate lifecycle + """ + managed: Boolean + + """ + Parent hostname a wildcard claim covers (example.com for *.example.com) + """ + parentHostname: String + + """When the certificate last became ready""" + tlsReadyAt: Datetime + + """Name of the TLS secret serving this hostname""" + tlsSecretName: String + + """Certificate lifecycle state for this hostname""" + tlsStatus: String updatedAt: Datetime + + """Ownership verification state of this hostname""" + verificationStatus: String + + """When ownership verification last succeeded""" + verifiedAt: Datetime } -"""Methods to use when ordering `PlatformApiSchema`.""" -enum PlatformApiSchemaOrderBy { - API_ID_ASC - API_ID_DESC +"""Methods to use when ordering `PlatformDomain`.""" +enum PlatformDomainOrderBy { + CONFIG_ASC + CONFIG_DESC CREATED_AT_ASC CREATED_AT_DESC + HOSTNAME_ASC + HOSTNAME_DESC ID_ASC ID_DESC + IS_PUBLISHED_ASC + IS_PUBLISHED_DESC + IS_WILDCARD_ASC + IS_WILDCARD_DESC + MANAGED_ASC + MANAGED_DESC NATURAL + PARENT_HOSTNAME_ASC + PARENT_HOSTNAME_DESC PRIMARY_KEY_ASC PRIMARY_KEY_DESC - SCHEMA_ID_ASC - SCHEMA_ID_DESC + TLS_READY_AT_ASC + TLS_READY_AT_DESC + TLS_SECRET_NAME_ASC + TLS_SECRET_NAME_DESC + TLS_STATUS_ASC + TLS_STATUS_DESC UPDATED_AT_ASC UPDATED_AT_DESC + VERIFICATION_STATUS_ASC + VERIFICATION_STATUS_DESC + VERIFIED_AT_ASC + VERIFIED_AT_DESC +} + +""" +Represents an update to a `PlatformDomain`. Fields that are set will be updated. +""" +input PlatformDomainPatch { + """Module-specific configuration for this hostname""" + config: JSON + createdAt: Datetime + + """Lowercase fully-qualified hostname; wildcards use the *.parent form""" + hostname: String + id: UUID + + """Whether other scopes may see and bind under this hostname""" + isPublished: Boolean + + """Whether this hostname is a *.parent wildcard claim""" + isWildcard: Boolean + + """ + Whether the platform drives this hostname's DNS verification and certificate lifecycle + """ + managed: Boolean + + """ + Parent hostname a wildcard claim covers (example.com for *.example.com) + """ + parentHostname: String + + """When the certificate last became ready""" + tlsReadyAt: Datetime + + """Name of the TLS secret serving this hostname""" + tlsSecretName: String + + """Certificate lifecycle state for this hostname""" + tlsStatus: String + updatedAt: Datetime + + """Ownership verification state of this hostname""" + verificationStatus: String + + """When ownership verification last succeeded""" + verifiedAt: Datetime } """ -Represents an update to a `PlatformApiSchema`. Fields that are set will be updated. +A filter to be used against many `PlatformDomainEvent` object types. All fields are combined with a logical ‘and.’ """ -input PlatformApiSchemaPatch { - """API surface that exposes this schema""" - apiId: UUID - createdAt: Datetime - id: UUID +input PlatformDomainToManyPlatformDomainEventFilter { + """Filters to entities where every related entity matches.""" + every: PlatformDomainEventFilter - """Metaschema schema exposed through the API surface""" - schemaId: UUID - updatedAt: Datetime + """Filters to entities where no related entity matches.""" + none: PlatformDomainEventFilter + + """Filters to entities where at least one related entity matches.""" + some: PlatformDomainEventFilter } """ -Per-API feature flag overrides; NULL columns inherit from database_settings +A filter to be used against many `PlatformDomainVerification` object types. All fields are combined with a logical ‘and.’ """ -type PlatformApiSetting { - """ - Reads a single `PlatformApis` that is related to this `PlatformApiSetting`. - """ - api: PlatformApis +input PlatformDomainToManyPlatformDomainVerificationFilter { + """Filters to entities where every related entity matches.""" + every: PlatformDomainVerificationFilter - """API surface these settings override for""" - apiId: UUID! - createdAt: Datetime + """Filters to entities where no related entity matches.""" + none: PlatformDomainVerificationFilter - """ - Override: enable aggregate queries (NULL = inherit from database_settings) - """ - enableAggregates: Boolean + """Filters to entities where at least one related entity matches.""" + some: PlatformDomainVerificationFilter +} - """ - Override: enable bulk mutations (NULL = inherit from database_settings) - """ - enableBulk: Boolean +"""Ownership verification challenges issued for a domain""" +type PlatformDomainVerification { + """How many times this challenge has been probed""" + attempts: Int! + createdAt: Datetime """ - Override: enable connection filter (NULL = inherit from database_settings) + Reads a single `PlatformDomain` that is related to this `PlatformDomainVerification`. """ - enableConnectionFilter: Boolean + domain: PlatformDomain - """ - Override: enable direct (multipart) file uploads (NULL = inherit from database_settings) - """ - enableDirectUploads: Boolean + """Scoped domain this verification challenge belongs to""" + domainId: UUID - """ - Override: enable internationalization plugin (NULL = inherit from database_settings) - """ - enableI18N: Boolean + """Last verification error, if any""" + error: String - """ - Override: enable LLM/AI integration features (NULL = inherit from database_settings) - """ - enableLlm: Boolean + """When this challenge expires""" + expiresAt: Datetime + id: UUID! - """ - Override: enable ltree hierarchical data type (NULL = inherit from database_settings) - """ - enableLtree: Boolean + """When this challenge was last probed""" + lastCheckedAt: Datetime """ - Override: enable many-to-many relationships (NULL = inherit from database_settings) + Reads a single `PlatformManagedDomain` that is related to this `PlatformDomainVerification`. """ - enableManyToMany: Boolean + managedDomain: PlatformManagedDomain - """ - Override: enable PostGIS spatial types (NULL = inherit from database_settings) - """ - enablePostgis: Boolean + """Managed hostname this verification challenge belongs to""" + managedDomainId: UUID - """ - Override: enable presigned URL upload flow (NULL = inherit from database_settings) - """ - enablePresignedUploads: Boolean + """Verification method (dns-txt, http-token, …)""" + method: String! - """ - Override: enable realtime subscriptions (NULL = inherit from database_settings) - """ - enableRealtime: Boolean + """DNS record name the challenge expects""" + recordName: String - """ - Override: enable unified search (NULL = inherit from database_settings) - """ - enableSearch: Boolean - id: UUID! + """DNS record type the challenge expects""" + recordType: String - """ - Extensible JSON for additional per-API settings that do not have dedicated columns - """ - options: JSON! + """DNS record value the challenge expects""" + recordValue: String - """ - Override: GraphQL statement timeout in milliseconds (NULL = inherit from database_settings). Clamped by the plan cap at read time. - """ - statementTimeoutMs: BigInt + """Challenge state""" + status: String! updatedAt: Datetime + + """When this challenge succeeded""" + verifiedAt: Datetime } -"""A connection to a list of `PlatformApiSetting` values.""" -type PlatformApiSettingConnection { +"""A connection to a list of `PlatformDomainVerification` values.""" +type PlatformDomainVerificationConnection { """ - A list of edges which contains the `PlatformApiSetting` and cursor to aid in pagination. + A list of edges which contains the `PlatformDomainVerification` and cursor to aid in pagination. """ - edges: [PlatformApiSettingEdge]! + edges: [PlatformDomainVerificationEdge]! - """A list of `PlatformApiSetting` objects.""" - nodes: [PlatformApiSetting]! + """A list of `PlatformDomainVerification` objects.""" + nodes: [PlatformDomainVerification]! """Information to aid in pagination.""" pageInfo: PageInfo! """ - The count of *all* `PlatformApiSetting` you could get from the connection. + The count of *all* `PlatformDomainVerification` you could get from the connection. """ totalCount: Int! } -"""A `PlatformApiSetting` edge in the connection.""" -type PlatformApiSettingEdge { +"""A `PlatformDomainVerification` edge in the connection.""" +type PlatformDomainVerificationEdge { """A cursor for use in pagination.""" cursor: Cursor - """The `PlatformApiSetting` at the end of the edge.""" - node: PlatformApiSetting + """The `PlatformDomainVerification` at the end of the edge.""" + node: PlatformDomainVerification } """ -A filter to be used against `PlatformApiSetting` object types. All fields are combined with a logical ‘and.’ +A filter to be used against `PlatformDomainVerification` object types. All fields are combined with a logical ‘and.’ """ -input PlatformApiSettingFilter { +input PlatformDomainVerificationFilter { """Checks for all expressions in this list.""" - and: [PlatformApiSettingFilter!] - - """Filter by the object’s `api` relation.""" - api: PlatformApisFilter + and: [PlatformDomainVerificationFilter!] - """Filter by the object’s `apiId` field.""" - apiId: UUIDFilter + """Filter by the object’s `attempts` field.""" + attempts: IntFilter """Filter by the object’s `createdAt` field.""" createdAt: DatetimeFilter - """Filter by the object’s `enableAggregates` field.""" - enableAggregates: BooleanFilter + """Filter by the object’s `domain` relation.""" + domain: PlatformDomainFilter - """Filter by the object’s `enableBulk` field.""" - enableBulk: BooleanFilter + """A related `domain` exists.""" + domainExists: Boolean - """Filter by the object’s `enableConnectionFilter` field.""" - enableConnectionFilter: BooleanFilter + """Filter by the object’s `domainId` field.""" + domainId: UUIDFilter - """Filter by the object’s `enableDirectUploads` field.""" - enableDirectUploads: BooleanFilter + """Filter by the object’s `error` field.""" + error: StringFilter - """Filter by the object’s `enableI18N` field.""" - enableI18N: BooleanFilter + """Filter by the object’s `expiresAt` field.""" + expiresAt: DatetimeFilter - """Filter by the object’s `enableLlm` field.""" - enableLlm: BooleanFilter + """Filter by the object’s `id` field.""" + id: UUIDFilter - """Filter by the object’s `enableLtree` field.""" - enableLtree: BooleanFilter + """Filter by the object’s `lastCheckedAt` field.""" + lastCheckedAt: DatetimeFilter - """Filter by the object’s `enableManyToMany` field.""" - enableManyToMany: BooleanFilter + """Filter by the object’s `managedDomain` relation.""" + managedDomain: PlatformManagedDomainFilter - """Filter by the object’s `enablePostgis` field.""" - enablePostgis: BooleanFilter + """A related `managedDomain` exists.""" + managedDomainExists: Boolean - """Filter by the object’s `enablePresignedUploads` field.""" - enablePresignedUploads: BooleanFilter + """Filter by the object’s `managedDomainId` field.""" + managedDomainId: UUIDFilter - """Filter by the object’s `enableRealtime` field.""" - enableRealtime: BooleanFilter + """Filter by the object’s `method` field.""" + method: StringFilter - """Filter by the object’s `enableSearch` field.""" - enableSearch: BooleanFilter + """Negates the expression.""" + not: PlatformDomainVerificationFilter - """Filter by the object’s `id` field.""" - id: UUIDFilter + """Checks for any expressions in this list.""" + or: [PlatformDomainVerificationFilter!] - """Negates the expression.""" - not: PlatformApiSettingFilter + """Filter by the object’s `recordName` field.""" + recordName: StringFilter - """Filter by the object’s `options` field.""" - options: JSONFilter + """Filter by the object’s `recordType` field.""" + recordType: StringFilter - """Checks for any expressions in this list.""" - or: [PlatformApiSettingFilter!] + """Filter by the object’s `recordValue` field.""" + recordValue: StringFilter - """Filter by the object’s `statementTimeoutMs` field.""" - statementTimeoutMs: BigIntFilter + """Filter by the object’s `status` field.""" + status: StringFilter """Filter by the object’s `updatedAt` field.""" updatedAt: DatetimeFilter + + """Filter by the object’s `verifiedAt` field.""" + verifiedAt: DatetimeFilter } -"""An input for mutations affecting `PlatformApiSetting`""" -input PlatformApiSettingInput { - """API surface these settings override for""" - apiId: UUID! +"""An input for mutations affecting `PlatformDomainVerification`""" +input PlatformDomainVerificationInput { + """How many times this challenge has been probed""" + attempts: Int createdAt: Datetime - """ - Override: enable aggregate queries (NULL = inherit from database_settings) - """ - enableAggregates: Boolean - - """ - Override: enable bulk mutations (NULL = inherit from database_settings) - """ - enableBulk: Boolean - - """ - Override: enable connection filter (NULL = inherit from database_settings) - """ - enableConnectionFilter: Boolean - - """ - Override: enable direct (multipart) file uploads (NULL = inherit from database_settings) - """ - enableDirectUploads: Boolean - - """ - Override: enable internationalization plugin (NULL = inherit from database_settings) - """ - enableI18N: Boolean + """Scoped domain this verification challenge belongs to""" + domainId: UUID - """ - Override: enable LLM/AI integration features (NULL = inherit from database_settings) - """ - enableLlm: Boolean + """Last verification error, if any""" + error: String - """ - Override: enable ltree hierarchical data type (NULL = inherit from database_settings) - """ - enableLtree: Boolean + """When this challenge expires""" + expiresAt: Datetime + id: UUID - """ - Override: enable many-to-many relationships (NULL = inherit from database_settings) - """ - enableManyToMany: Boolean + """When this challenge was last probed""" + lastCheckedAt: Datetime - """ - Override: enable PostGIS spatial types (NULL = inherit from database_settings) - """ - enablePostgis: Boolean + """Managed hostname this verification challenge belongs to""" + managedDomainId: UUID - """ - Override: enable presigned URL upload flow (NULL = inherit from database_settings) - """ - enablePresignedUploads: Boolean + """Verification method (dns-txt, http-token, …)""" + method: String! - """ - Override: enable realtime subscriptions (NULL = inherit from database_settings) - """ - enableRealtime: Boolean + """DNS record name the challenge expects""" + recordName: String - """ - Override: enable unified search (NULL = inherit from database_settings) - """ - enableSearch: Boolean - id: UUID + """DNS record type the challenge expects""" + recordType: String - """ - Extensible JSON for additional per-API settings that do not have dedicated columns - """ - options: JSON + """DNS record value the challenge expects""" + recordValue: String - """ - Override: GraphQL statement timeout in milliseconds (NULL = inherit from database_settings). Clamped by the plan cap at read time. - """ - statementTimeoutMs: BigInt + """Challenge state""" + status: String updatedAt: Datetime + + """When this challenge succeeded""" + verifiedAt: Datetime } -"""Methods to use when ordering `PlatformApiSetting`.""" -enum PlatformApiSettingOrderBy { - API_ID_ASC - API_ID_DESC +"""Methods to use when ordering `PlatformDomainVerification`.""" +enum PlatformDomainVerificationOrderBy { + ATTEMPTS_ASC + ATTEMPTS_DESC CREATED_AT_ASC CREATED_AT_DESC - ENABLE_AGGREGATES_ASC - ENABLE_AGGREGATES_DESC - ENABLE_BULK_ASC - ENABLE_BULK_DESC - ENABLE_CONNECTION_FILTER_ASC - ENABLE_CONNECTION_FILTER_DESC - ENABLE_DIRECT_UPLOADS_ASC - ENABLE_DIRECT_UPLOADS_DESC - ENABLE_I18N_ASC - ENABLE_I18N_DESC - ENABLE_LLM_ASC - ENABLE_LLM_DESC - ENABLE_LTREE_ASC - ENABLE_LTREE_DESC - ENABLE_MANY_TO_MANY_ASC - ENABLE_MANY_TO_MANY_DESC - ENABLE_POSTGIS_ASC - ENABLE_POSTGIS_DESC - ENABLE_PRESIGNED_UPLOADS_ASC - ENABLE_PRESIGNED_UPLOADS_DESC - ENABLE_REALTIME_ASC - ENABLE_REALTIME_DESC - ENABLE_SEARCH_ASC - ENABLE_SEARCH_DESC + DOMAIN_ID_ASC + DOMAIN_ID_DESC + ERROR_ASC + ERROR_DESC + EXPIRES_AT_ASC + EXPIRES_AT_DESC ID_ASC ID_DESC + LAST_CHECKED_AT_ASC + LAST_CHECKED_AT_DESC + MANAGED_DOMAIN_ID_ASC + MANAGED_DOMAIN_ID_DESC + METHOD_ASC + METHOD_DESC NATURAL - OPTIONS_ASC - OPTIONS_DESC PRIMARY_KEY_ASC PRIMARY_KEY_DESC - STATEMENT_TIMEOUT_MS_ASC - STATEMENT_TIMEOUT_MS_DESC + RECORD_NAME_ASC + RECORD_NAME_DESC + RECORD_TYPE_ASC + RECORD_TYPE_DESC + RECORD_VALUE_ASC + RECORD_VALUE_DESC + STATUS_ASC + STATUS_DESC UPDATED_AT_ASC UPDATED_AT_DESC + VERIFIED_AT_ASC + VERIFIED_AT_DESC } """ -Represents an update to a `PlatformApiSetting`. Fields that are set will be updated. +Represents an update to a `PlatformDomainVerification`. Fields that are set will be updated. """ -input PlatformApiSettingPatch { - """API surface these settings override for""" - apiId: UUID +input PlatformDomainVerificationPatch { + """How many times this challenge has been probed""" + attempts: Int createdAt: Datetime - """ - Override: enable aggregate queries (NULL = inherit from database_settings) - """ - enableAggregates: Boolean + """Scoped domain this verification challenge belongs to""" + domainId: UUID - """ - Override: enable bulk mutations (NULL = inherit from database_settings) - """ - enableBulk: Boolean + """Last verification error, if any""" + error: String - """ - Override: enable connection filter (NULL = inherit from database_settings) - """ - enableConnectionFilter: Boolean + """When this challenge expires""" + expiresAt: Datetime + id: UUID - """ - Override: enable direct (multipart) file uploads (NULL = inherit from database_settings) - """ - enableDirectUploads: Boolean + """When this challenge was last probed""" + lastCheckedAt: Datetime - """ - Override: enable internationalization plugin (NULL = inherit from database_settings) - """ - enableI18N: Boolean + """Managed hostname this verification challenge belongs to""" + managedDomainId: UUID - """ - Override: enable LLM/AI integration features (NULL = inherit from database_settings) - """ - enableLlm: Boolean + """Verification method (dns-txt, http-token, …)""" + method: String - """ - Override: enable ltree hierarchical data type (NULL = inherit from database_settings) - """ - enableLtree: Boolean + """DNS record name the challenge expects""" + recordName: String - """ - Override: enable many-to-many relationships (NULL = inherit from database_settings) - """ - enableManyToMany: Boolean + """DNS record type the challenge expects""" + recordType: String - """ - Override: enable PostGIS spatial types (NULL = inherit from database_settings) - """ - enablePostgis: Boolean + """DNS record value the challenge expects""" + recordValue: String - """ - Override: enable presigned URL upload flow (NULL = inherit from database_settings) - """ - enablePresignedUploads: Boolean + """Challenge state""" + status: String + updatedAt: Datetime - """ - Override: enable realtime subscriptions (NULL = inherit from database_settings) - """ - enableRealtime: Boolean + """When this challenge succeeded""" + verifiedAt: Datetime +} + +"""All input for the `platformDomainsAssignSubdomain` mutation.""" +input PlatformDomainsAssignSubdomainInput { + apex: String """ - Override: enable unified search (NULL = inherit from database_settings) + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. """ - enableSearch: Boolean - id: UUID + clientMutationId: String + label: String + maxAttempts: Int +} +"""The output of our `platformDomainsAssignSubdomain` mutation.""" +type PlatformDomainsAssignSubdomainPayload { """ - Extensible JSON for additional per-API settings that do not have dedicated columns + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. """ - options: JSON + clientMutationId: String + + """An edge for our `PlatformDomain`. May be used by Relay 1.""" + platformDomainEdge( + """The method to use when ordering `PlatformDomain`.""" + orderBy: [PlatformDomainOrderBy!]! = [PRIMARY_KEY_ASC] + ): PlatformDomainEdge """ - Override: GraphQL statement timeout in milliseconds (NULL = inherit from database_settings). Clamped by the plan cap at read time. + Our root query field type. Allows us to run any query from our mutation payload. """ - statementTimeoutMs: BigInt - updatedAt: Datetime + query: Query + result: PlatformDomain } """ -API surfaces exposed by this scope; publication makes a surface bindable from other scopes +Outbound sender identity: the from/reply-to/support addresses a tenant sends as, and the provider account the mail leaves through """ -type PlatformApis { - """Anonymous role the API executes as""" - anonRole: String - - """Module-specific configuration for this API surface""" - config: JSON +type PlatformEmailIdentity { createdAt: Datetime - """Database this API surface serves""" - dbname: String + """ + Envelope/header From address, lower-case. Must be accepted by the sending account at the provider. + """ + fromAddress: String! + + """Display name shown beside the from address""" + fromName: String id: UUID! - """Whether other scopes may see and route to this API surface""" - isPublished: Boolean! + """Whether this identity may be resolved for a send""" + isActive: Boolean! - """Owner-local API surface name""" + """ + The scope default identity, used when no site binding resolves. At most one per scope key. + """ + isDefault: Boolean! + + """Operator-facing name for this identity (e.g. transactional, support)""" name: String! - """Reads and enables pagination through a set of `PlatformApiSchema`.""" - platformApiSchemasByApiId( + """ + Reads and enables pagination through a set of `PlatformEmailSiteIdentity`. + """ + platformEmailSiteIdentitiesByEmailIdentityId( """Read all values in the set after (below) this cursor.""" after: Cursor @@ -17430,396 +20061,287 @@ type PlatformApis { """ offset: Int - """The method to use when ordering `PlatformApiSchema`.""" - orderBy: [PlatformApiSchemaOrderBy!] = [PRIMARY_KEY_ASC] + """The method to use when ordering `PlatformEmailSiteIdentity`.""" + orderBy: [PlatformEmailSiteIdentityOrderBy!] = [PRIMARY_KEY_ASC] """ A filter to be used in determining which values should be returned by the collection. """ - where: PlatformApiSchemaFilter - ): PlatformApiSchemaConnection! + where: PlatformEmailSiteIdentityFilter + ): PlatformEmailSiteIdentityConnection! """ - Reads a single `PlatformApiSetting` that is related to this `PlatformApis`. + Reads a single `PlatformEmailProviderAccount` that is related to this `PlatformEmailIdentity`. """ - platformApiSettingByApiId: PlatformApiSetting + providerAccount: PlatformEmailProviderAccount """ - Reads a single `PlatformCorsSetting` that is related to this `PlatformApis`. + Same-scope provider account this identity sends through. Required for transport_mode = own, NULL for platform_shared. """ - platformCorsSettingByApiId: PlatformCorsSetting + providerAccountId: UUID - """Authenticated role the API executes as""" - roleName: String + """Reply-To address when replies should not go to the from address""" + replyToAddress: String + + """Support address rendered in message bodies and footers""" + supportAddress: String + + """ + own = send through provider_account_id in this scope; platform_shared = send through the platform installation's shared account, an explicit recorded choice and never an implicit fallback + """ + transportMode: String! updatedAt: Datetime } -"""A connection to a list of `PlatformApis` values.""" -type PlatformApisConnection { +"""A connection to a list of `PlatformEmailIdentity` values.""" +type PlatformEmailIdentityConnection { """ - A list of edges which contains the `PlatformApis` and cursor to aid in pagination. + A list of edges which contains the `PlatformEmailIdentity` and cursor to aid in pagination. """ - edges: [PlatformApisEdge]! + edges: [PlatformEmailIdentityEdge]! - """A list of `PlatformApis` objects.""" - nodes: [PlatformApis]! + """A list of `PlatformEmailIdentity` objects.""" + nodes: [PlatformEmailIdentity]! """Information to aid in pagination.""" pageInfo: PageInfo! - """The count of *all* `PlatformApis` you could get from the connection.""" + """ + The count of *all* `PlatformEmailIdentity` you could get from the connection. + """ totalCount: Int! } -"""A `PlatformApis` edge in the connection.""" -type PlatformApisEdge { +"""A `PlatformEmailIdentity` edge in the connection.""" +type PlatformEmailIdentityEdge { """A cursor for use in pagination.""" cursor: Cursor - """The `PlatformApis` at the end of the edge.""" - node: PlatformApis + """The `PlatformEmailIdentity` at the end of the edge.""" + node: PlatformEmailIdentity } """ -A filter to be used against `PlatformApis` object types. All fields are combined with a logical ‘and.’ +A filter to be used against `PlatformEmailIdentity` object types. All fields are combined with a logical ‘and.’ """ -input PlatformApisFilter { +input PlatformEmailIdentityFilter { """Checks for all expressions in this list.""" - and: [PlatformApisFilter!] - - """Filter by the object’s `anonRole` field.""" - anonRole: StringFilter - - """Filter by the object’s `config` field.""" - config: JSONFilter + and: [PlatformEmailIdentityFilter!] """Filter by the object’s `createdAt` field.""" createdAt: DatetimeFilter - """Filter by the object’s `dbname` field.""" - dbname: StringFilter + """Filter by the object’s `fromAddress` field.""" + fromAddress: StringFilter + + """Filter by the object’s `fromName` field.""" + fromName: StringFilter """Filter by the object’s `id` field.""" id: UUIDFilter - """Filter by the object’s `isPublished` field.""" - isPublished: BooleanFilter + """Filter by the object’s `isActive` field.""" + isActive: BooleanFilter + + """Filter by the object’s `isDefault` field.""" + isDefault: BooleanFilter """Filter by the object’s `name` field.""" name: StringFilter """Negates the expression.""" - not: PlatformApisFilter + not: PlatformEmailIdentityFilter """Checks for any expressions in this list.""" - or: [PlatformApisFilter!] + or: [PlatformEmailIdentityFilter!] - """Filter by the object’s `platformApiSchemasByApiId` relation.""" - platformApiSchemasByApiId: PlatformApisToManyPlatformApiSchemaFilter + """ + Filter by the object’s `platformEmailSiteIdentitiesByEmailIdentityId` relation. + """ + platformEmailSiteIdentitiesByEmailIdentityId: PlatformEmailIdentityToManyPlatformEmailSiteIdentityFilter - """`platformApiSchemasByApiId` exist.""" - platformApiSchemasByApiIdExist: Boolean + """`platformEmailSiteIdentitiesByEmailIdentityId` exist.""" + platformEmailSiteIdentitiesByEmailIdentityIdExist: Boolean - """Filter by the object’s `platformApiSettingByApiId` relation.""" - platformApiSettingByApiId: PlatformApiSettingFilter + """Filter by the object’s `providerAccount` relation.""" + providerAccount: PlatformEmailProviderAccountFilter - """A related `platformApiSettingByApiId` exists.""" - platformApiSettingByApiIdExists: Boolean + """A related `providerAccount` exists.""" + providerAccountExists: Boolean - """Filter by the object’s `platformCorsSettingByApiId` relation.""" - platformCorsSettingByApiId: PlatformCorsSettingFilter + """Filter by the object’s `providerAccountId` field.""" + providerAccountId: UUIDFilter - """A related `platformCorsSettingByApiId` exists.""" - platformCorsSettingByApiIdExists: Boolean + """Filter by the object’s `replyToAddress` field.""" + replyToAddress: StringFilter - """Filter by the object’s `roleName` field.""" - roleName: StringFilter + """Filter by the object’s `supportAddress` field.""" + supportAddress: StringFilter + + """Filter by the object’s `transportMode` field.""" + transportMode: StringFilter """Filter by the object’s `updatedAt` field.""" updatedAt: DatetimeFilter } -"""An input for mutations affecting `PlatformApis`""" -input PlatformApisInput { - """Anonymous role the API executes as""" - anonRole: String - - """Module-specific configuration for this API surface""" - config: JSON +"""An input for mutations affecting `PlatformEmailIdentity`""" +input PlatformEmailIdentityInput { createdAt: Datetime - """Database this API surface serves""" - dbname: String + """ + Envelope/header From address, lower-case. Must be accepted by the sending account at the provider. + """ + fromAddress: String! + + """Display name shown beside the from address""" + fromName: String id: UUID - """Whether other scopes may see and route to this API surface""" - isPublished: Boolean + """Whether this identity may be resolved for a send""" + isActive: Boolean - """Owner-local API surface name""" + """ + The scope default identity, used when no site binding resolves. At most one per scope key. + """ + isDefault: Boolean + + """Operator-facing name for this identity (e.g. transactional, support)""" name: String! - """Authenticated role the API executes as""" - roleName: String + """ + Same-scope provider account this identity sends through. Required for transport_mode = own, NULL for platform_shared. + """ + providerAccountId: UUID + + """Reply-To address when replies should not go to the from address""" + replyToAddress: String + + """Support address rendered in message bodies and footers""" + supportAddress: String + + """ + own = send through provider_account_id in this scope; platform_shared = send through the platform installation's shared account, an explicit recorded choice and never an implicit fallback + """ + transportMode: String updatedAt: Datetime } -"""Methods to use when ordering `PlatformApis`.""" -enum PlatformApisOrderBy { - ANON_ROLE_ASC - ANON_ROLE_DESC - CONFIG_ASC - CONFIG_DESC +"""Methods to use when ordering `PlatformEmailIdentity`.""" +enum PlatformEmailIdentityOrderBy { CREATED_AT_ASC CREATED_AT_DESC - DBNAME_ASC - DBNAME_DESC + FROM_ADDRESS_ASC + FROM_ADDRESS_DESC + FROM_NAME_ASC + FROM_NAME_DESC ID_ASC ID_DESC - IS_PUBLISHED_ASC - IS_PUBLISHED_DESC + IS_ACTIVE_ASC + IS_ACTIVE_DESC + IS_DEFAULT_ASC + IS_DEFAULT_DESC NAME_ASC NAME_DESC NATURAL PRIMARY_KEY_ASC PRIMARY_KEY_DESC - ROLE_NAME_ASC - ROLE_NAME_DESC + PROVIDER_ACCOUNT_ID_ASC + PROVIDER_ACCOUNT_ID_DESC + REPLY_TO_ADDRESS_ASC + REPLY_TO_ADDRESS_DESC + SUPPORT_ADDRESS_ASC + SUPPORT_ADDRESS_DESC + TRANSPORT_MODE_ASC + TRANSPORT_MODE_DESC UPDATED_AT_ASC UPDATED_AT_DESC } """ -Represents an update to a `PlatformApis`. Fields that are set will be updated. +Represents an update to a `PlatformEmailIdentity`. Fields that are set will be updated. """ -input PlatformApisPatch { - """Anonymous role the API executes as""" - anonRole: String - - """Module-specific configuration for this API surface""" - config: JSON +input PlatformEmailIdentityPatch { createdAt: Datetime - """Database this API surface serves""" - dbname: String - id: UUID - - """Whether other scopes may see and route to this API surface""" - isPublished: Boolean - - """Owner-local API surface name""" - name: String - - """Authenticated role the API executes as""" - roleName: String - updatedAt: Datetime -} - -""" -A filter to be used against many `PlatformApiSchema` object types. All fields are combined with a logical ‘and.’ -""" -input PlatformApisToManyPlatformApiSchemaFilter { - """Filters to entities where every related entity matches.""" - every: PlatformApiSchemaFilter - - """Filters to entities where no related entity matches.""" - none: PlatformApiSchemaFilter + """ + Envelope/header From address, lower-case. Must be accepted by the sending account at the provider. + """ + fromAddress: String - """Filters to entities where at least one related entity matches.""" - some: PlatformApiSchemaFilter -} + """Display name shown beside the from address""" + fromName: String + id: UUID -""" -Scope-wide and per-API CORS origin configuration; NULL api_id means scope-wide default -""" -type PlatformCorsSetting { - """Array of allowed CORS origins (e.g. https://example.com)""" - allowedOrigins: [String]! + """Whether this identity may be resolved for a send""" + isActive: Boolean """ - Reads a single `PlatformApis` that is related to this `PlatformCorsSetting`. + The scope default identity, used when no site binding resolves. At most one per scope key. """ - api: PlatformApis + isDefault: Boolean - """ - Optional API surface for per-API override; NULL means scope-wide default - """ - apiId: UUID - createdAt: Datetime - id: UUID! - updatedAt: Datetime -} + """Operator-facing name for this identity (e.g. transactional, support)""" + name: String -"""A connection to a list of `PlatformCorsSetting` values.""" -type PlatformCorsSettingConnection { """ - A list of edges which contains the `PlatformCorsSetting` and cursor to aid in pagination. + Same-scope provider account this identity sends through. Required for transport_mode = own, NULL for platform_shared. """ - edges: [PlatformCorsSettingEdge]! + providerAccountId: UUID - """A list of `PlatformCorsSetting` objects.""" - nodes: [PlatformCorsSetting]! + """Reply-To address when replies should not go to the from address""" + replyToAddress: String - """Information to aid in pagination.""" - pageInfo: PageInfo! + """Support address rendered in message bodies and footers""" + supportAddress: String """ - The count of *all* `PlatformCorsSetting` you could get from the connection. + own = send through provider_account_id in this scope; platform_shared = send through the platform installation's shared account, an explicit recorded choice and never an implicit fallback """ - totalCount: Int! -} - -"""A `PlatformCorsSetting` edge in the connection.""" -type PlatformCorsSettingEdge { - """A cursor for use in pagination.""" - cursor: Cursor - - """The `PlatformCorsSetting` at the end of the edge.""" - node: PlatformCorsSetting + transportMode: String + updatedAt: Datetime } """ -A filter to be used against `PlatformCorsSetting` object types. All fields are combined with a logical ‘and.’ +A filter to be used against many `PlatformEmailSiteIdentity` object types. All fields are combined with a logical ‘and.’ """ -input PlatformCorsSettingFilter { - """Filter by the object’s `allowedOrigins` field.""" - allowedOrigins: StringListFilter - - """Checks for all expressions in this list.""" - and: [PlatformCorsSettingFilter!] - - """Filter by the object’s `api` relation.""" - api: PlatformApisFilter - - """A related `api` exists.""" - apiExists: Boolean - - """Filter by the object’s `apiId` field.""" - apiId: UUIDFilter - - """Filter by the object’s `createdAt` field.""" - createdAt: DatetimeFilter - - """Filter by the object’s `id` field.""" - id: UUIDFilter - - """Negates the expression.""" - not: PlatformCorsSettingFilter - - """Checks for any expressions in this list.""" - or: [PlatformCorsSettingFilter!] - - """Filter by the object’s `updatedAt` field.""" - updatedAt: DatetimeFilter -} - -"""An input for mutations affecting `PlatformCorsSetting`""" -input PlatformCorsSettingInput { - """Array of allowed CORS origins (e.g. https://example.com)""" - allowedOrigins: [String] +input PlatformEmailIdentityToManyPlatformEmailSiteIdentityFilter { + """Filters to entities where every related entity matches.""" + every: PlatformEmailSiteIdentityFilter - """ - Optional API surface for per-API override; NULL means scope-wide default - """ - apiId: UUID - createdAt: Datetime - id: UUID - updatedAt: Datetime -} + """Filters to entities where no related entity matches.""" + none: PlatformEmailSiteIdentityFilter -"""Methods to use when ordering `PlatformCorsSetting`.""" -enum PlatformCorsSettingOrderBy { - ALLOWED_ORIGINS_ASC - ALLOWED_ORIGINS_DESC - API_ID_ASC - API_ID_DESC - CREATED_AT_ASC - CREATED_AT_DESC - ID_ASC - ID_DESC - NATURAL - PRIMARY_KEY_ASC - PRIMARY_KEY_DESC - UPDATED_AT_ASC - UPDATED_AT_DESC + """Filters to entities where at least one related entity matches.""" + some: PlatformEmailSiteIdentityFilter } """ -Represents an update to a `PlatformCorsSetting`. Fields that are set will be updated. +A tenant's configured account at an email provider: provider slug, endpoint coordinates, and the NAME of the secret holding its credentials (never the credential itself) """ -input PlatformCorsSettingPatch { - """Array of allowed CORS origins (e.g. https://example.com)""" - allowedOrigins: [String] - +type PlatformEmailProviderAccount { """ - Optional API surface for per-API override; NULL means scope-wide default + Provider API base URL when it is not the provider default (e.g. Mailgun EU) """ - apiId: UUID - createdAt: Datetime - id: UUID - updatedAt: Datetime -} - -""" -Fully-qualified hostnames owned by this scope; each row claims its hostname globally through the catalog -""" -type PlatformDomain { - """Module-specific configuration for this hostname""" - config: JSON + apiBaseUrl: String createdAt: Datetime - """Lowercase fully-qualified hostname; wildcards use the *.parent form""" - hostname: String! - id: UUID! - - """Whether other scopes may see and bind under this hostname""" - isPublished: Boolean! - - """Whether this hostname is a *.parent wildcard claim""" - isWildcard: Boolean! - """ - Whether the platform drives this hostname's DNS verification and certificate lifecycle + Name of the secret holding this account's API key or SMTP password. The value is resolved from the secret store at send time (realm = this row's id) and is never stored here. """ - managed: Boolean! + credentialsSecretName: String! + id: UUID! """ - Parent hostname a wildcard claim covers (example.com for *.example.com) + Whether identities may send through this account. Disabling one row stops every identity that references it. """ - parentHostname: String - - """Reads and enables pagination through a set of `PlatformDomainEvent`.""" - platformDomainEventsByDomainId( - """Read all values in the set after (below) this cursor.""" - after: Cursor - - """Read all values in the set before (above) this cursor.""" - before: Cursor - - """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 - - """The method to use when ordering `PlatformDomainEvent`.""" - orderBy: [PlatformDomainEventOrderBy!] = [PRIMARY_KEY_ASC] + isActive: Boolean! - """ - A filter to be used in determining which values should be returned by the collection. - """ - where: PlatformDomainEventFilter - ): PlatformDomainEventConnection! + """Operator-facing name for this account (e.g. transactional, marketing)""" + name: String! - """ - Reads and enables pagination through a set of `PlatformDomainVerification`. - """ - platformDomainVerificationsByDomainId( + """Reads and enables pagination through a set of `PlatformEmailIdentity`.""" + platformEmailIdentitiesByProviderAccountId( """Read all values in the set after (below) this cursor.""" after: Cursor @@ -17838,800 +20360,440 @@ type PlatformDomain { """ offset: Int - """The method to use when ordering `PlatformDomainVerification`.""" - orderBy: [PlatformDomainVerificationOrderBy!] = [PRIMARY_KEY_ASC] + """The method to use when ordering `PlatformEmailIdentity`.""" + orderBy: [PlatformEmailIdentityOrderBy!] = [PRIMARY_KEY_ASC] """ A filter to be used in determining which values should be returned by the collection. """ - where: PlatformDomainVerificationFilter - ): PlatformDomainVerificationConnection! - - """When the certificate last became ready""" - tlsReadyAt: Datetime - - """Name of the TLS secret serving this hostname""" - tlsSecretName: String - - """Certificate lifecycle state for this hostname""" - tlsStatus: String! - updatedAt: Datetime - - """Ownership verification state of this hostname""" - verificationStatus: String! - - """When ownership verification last succeeded""" - verifiedAt: Datetime -} - -"""A connection to a list of `PlatformDomain` values.""" -type PlatformDomainConnection { - """ - A list of edges which contains the `PlatformDomain` and cursor to aid in pagination. - """ - edges: [PlatformDomainEdge]! - - """A list of `PlatformDomain` objects.""" - nodes: [PlatformDomain]! - - """Information to aid in pagination.""" - pageInfo: PageInfo! - - """The count of *all* `PlatformDomain` you could get from the connection.""" - totalCount: Int! -} - -"""A `PlatformDomain` edge in the connection.""" -type PlatformDomainEdge { - """A cursor for use in pagination.""" - cursor: Cursor - - """The `PlatformDomain` at the end of the edge.""" - node: PlatformDomain -} - -"""Audit trail of domain lifecycle events""" -type PlatformDomainEvent { - """User who triggered this event, if any""" - actorId: UUID - createdAt: Datetime + where: PlatformEmailIdentityFilter + ): PlatformEmailIdentityConnection! """ - Reads a single `PlatformDomain` that is related to this `PlatformDomainEvent`. - """ - domain: PlatformDomain - - """Scoped domain this event belongs to""" - domainId: UUID - - """ - Reads a single `PlatformDomainVerification` that is related to this `PlatformDomainEvent`. + integration_providers.slug of the provider this account is at (mailgun, ses, postmark, smtp), matched by string not by FK """ - domainVerification: PlatformDomainVerification - - """Verification challenge this event relates to, if any""" - domainVerificationId: UUID - - """Lifecycle event discriminator""" - eventType: String! - id: UUID! + provider: String! """ - Reads a single `PlatformManagedDomain` that is related to this `PlatformDomainEvent`. + Account identifier at the provider — the Mailgun sending domain, the SES verified identity, the Postmark server name """ - managedDomain: PlatformManagedDomain - - """Managed hostname this event belongs to""" - managedDomainId: UUID - - """Human-readable event message""" - message: String + providerAccountName: String - """Structured event metadata""" - metadata: JSON - updatedAt: Datetime -} + """Provider region for region-addressed providers (e.g. SES us-east-1)""" + region: String -"""A connection to a list of `PlatformDomainEvent` values.""" -type PlatformDomainEventConnection { - """ - A list of edges which contains the `PlatformDomainEvent` and cursor to aid in pagination. - """ - edges: [PlatformDomainEventEdge]! + """SMTP host (provider = smtp, or a provider addressed over SMTP)""" + smtpHost: String - """A list of `PlatformDomainEvent` objects.""" - nodes: [PlatformDomainEvent]! + """SMTP port""" + smtpPort: Int - """Information to aid in pagination.""" - pageInfo: PageInfo! + """Whether the SMTP connection uses implicit TLS""" + smtpSecure: Boolean """ - The count of *all* `PlatformDomainEvent` you could get from the connection. + SMTP username; the password is a secret, addressed by credentials_secret_name """ - totalCount: Int! -} - -"""A `PlatformDomainEvent` edge in the connection.""" -type PlatformDomainEventEdge { - """A cursor for use in pagination.""" - cursor: Cursor - - """The `PlatformDomainEvent` at the end of the edge.""" - node: PlatformDomainEvent -} - -""" -A filter to be used against `PlatformDomainEvent` object types. All fields are combined with a logical ‘and.’ -""" -input PlatformDomainEventFilter { - """Filter by the object’s `actorId` field.""" - actorId: UUIDFilter - - """Checks for all expressions in this list.""" - and: [PlatformDomainEventFilter!] - - """Filter by the object’s `createdAt` field.""" - createdAt: DatetimeFilter - - """Filter by the object’s `domain` relation.""" - domain: PlatformDomainFilter - - """A related `domain` exists.""" - domainExists: Boolean - - """Filter by the object’s `domainId` field.""" - domainId: UUIDFilter - - """Filter by the object’s `domainVerification` relation.""" - domainVerification: PlatformDomainVerificationFilter - - """A related `domainVerification` exists.""" - domainVerificationExists: Boolean - - """Filter by the object’s `domainVerificationId` field.""" - domainVerificationId: UUIDFilter - - """Filter by the object’s `eventType` field.""" - eventType: StringFilter - - """Filter by the object’s `id` field.""" - id: UUIDFilter - - """Filter by the object’s `managedDomain` relation.""" - managedDomain: PlatformManagedDomainFilter - - """A related `managedDomain` exists.""" - managedDomainExists: Boolean - - """Filter by the object’s `managedDomainId` field.""" - managedDomainId: UUIDFilter - - """Filter by the object’s `message` field.""" - message: StringFilter - - """Filter by the object’s `metadata` field.""" - metadata: JSONFilter - - """Negates the expression.""" - not: PlatformDomainEventFilter - - """Checks for any expressions in this list.""" - or: [PlatformDomainEventFilter!] - - """Filter by the object’s `updatedAt` field.""" - updatedAt: DatetimeFilter -} - -"""An input for mutations affecting `PlatformDomainEvent`""" -input PlatformDomainEventInput { - """User who triggered this event, if any""" - actorId: UUID - createdAt: Datetime - - """Scoped domain this event belongs to""" - domainId: UUID - - """Verification challenge this event relates to, if any""" - domainVerificationId: UUID - - """Lifecycle event discriminator""" - eventType: String! - id: UUID - - """Managed hostname this event belongs to""" - managedDomainId: UUID - - """Human-readable event message""" - message: String - - """Structured event metadata""" - metadata: JSON - updatedAt: Datetime -} - -"""Methods to use when ordering `PlatformDomainEvent`.""" -enum PlatformDomainEventOrderBy { - ACTOR_ID_ASC - ACTOR_ID_DESC - CREATED_AT_ASC - CREATED_AT_DESC - DOMAIN_ID_ASC - DOMAIN_ID_DESC - DOMAIN_VERIFICATION_ID_ASC - DOMAIN_VERIFICATION_ID_DESC - EVENT_TYPE_ASC - EVENT_TYPE_DESC - ID_ASC - ID_DESC - MANAGED_DOMAIN_ID_ASC - MANAGED_DOMAIN_ID_DESC - MESSAGE_ASC - MESSAGE_DESC - METADATA_ASC - METADATA_DESC - NATURAL - PRIMARY_KEY_ASC - PRIMARY_KEY_DESC - UPDATED_AT_ASC - UPDATED_AT_DESC -} - -""" -Represents an update to a `PlatformDomainEvent`. Fields that are set will be updated. -""" -input PlatformDomainEventPatch { - """User who triggered this event, if any""" - actorId: UUID - createdAt: Datetime + smtpUser: String + updatedAt: Datetime - """Scoped domain this event belongs to""" - domainId: UUID + """ + Name of the secret used to verify this provider's delivery/bounce webhooks. Name only; the value stays in the secret store. + """ + webhookSigningSecretName: String +} - """Verification challenge this event relates to, if any""" - domainVerificationId: UUID +"""A connection to a list of `PlatformEmailProviderAccount` values.""" +type PlatformEmailProviderAccountConnection { + """ + A list of edges which contains the `PlatformEmailProviderAccount` and cursor to aid in pagination. + """ + edges: [PlatformEmailProviderAccountEdge]! - """Lifecycle event discriminator""" - eventType: String - id: UUID + """A list of `PlatformEmailProviderAccount` objects.""" + nodes: [PlatformEmailProviderAccount]! - """Managed hostname this event belongs to""" - managedDomainId: UUID + """Information to aid in pagination.""" + pageInfo: PageInfo! - """Human-readable event message""" - message: String + """ + The count of *all* `PlatformEmailProviderAccount` you could get from the connection. + """ + totalCount: Int! +} - """Structured event metadata""" - metadata: JSON - updatedAt: Datetime +"""A `PlatformEmailProviderAccount` edge in the connection.""" +type PlatformEmailProviderAccountEdge { + """A cursor for use in pagination.""" + cursor: Cursor + + """The `PlatformEmailProviderAccount` at the end of the edge.""" + node: PlatformEmailProviderAccount } """ -A filter to be used against `PlatformDomain` object types. All fields are combined with a logical ‘and.’ +A filter to be used against `PlatformEmailProviderAccount` object types. All fields are combined with a logical ‘and.’ """ -input PlatformDomainFilter { +input PlatformEmailProviderAccountFilter { """Checks for all expressions in this list.""" - and: [PlatformDomainFilter!] + and: [PlatformEmailProviderAccountFilter!] - """Filter by the object’s `config` field.""" - config: JSONFilter + """Filter by the object’s `apiBaseUrl` field.""" + apiBaseUrl: StringFilter """Filter by the object’s `createdAt` field.""" createdAt: DatetimeFilter - """Filter by the object’s `hostname` field.""" - hostname: StringFilter + """Filter by the object’s `credentialsSecretName` field.""" + credentialsSecretName: StringFilter """Filter by the object’s `id` field.""" id: UUIDFilter - """Filter by the object’s `isPublished` field.""" - isPublished: BooleanFilter - - """Filter by the object’s `isWildcard` field.""" - isWildcard: BooleanFilter + """Filter by the object’s `isActive` field.""" + isActive: BooleanFilter - """Filter by the object’s `managed` field.""" - managed: BooleanFilter + """Filter by the object’s `name` field.""" + name: StringFilter """Negates the expression.""" - not: PlatformDomainFilter + not: PlatformEmailProviderAccountFilter """Checks for any expressions in this list.""" - or: [PlatformDomainFilter!] + or: [PlatformEmailProviderAccountFilter!] - """Filter by the object’s `parentHostname` field.""" - parentHostname: StringFilter + """ + Filter by the object’s `platformEmailIdentitiesByProviderAccountId` relation. + """ + platformEmailIdentitiesByProviderAccountId: PlatformEmailProviderAccountToManyPlatformEmailIdentityFilter - """Filter by the object’s `platformDomainEventsByDomainId` relation.""" - platformDomainEventsByDomainId: PlatformDomainToManyPlatformDomainEventFilter + """`platformEmailIdentitiesByProviderAccountId` exist.""" + platformEmailIdentitiesByProviderAccountIdExist: Boolean - """`platformDomainEventsByDomainId` exist.""" - platformDomainEventsByDomainIdExist: Boolean + """Filter by the object’s `provider` field.""" + provider: StringFilter - """ - Filter by the object’s `platformDomainVerificationsByDomainId` relation. - """ - platformDomainVerificationsByDomainId: PlatformDomainToManyPlatformDomainVerificationFilter + """Filter by the object’s `providerAccountName` field.""" + providerAccountName: StringFilter - """`platformDomainVerificationsByDomainId` exist.""" - platformDomainVerificationsByDomainIdExist: Boolean + """Filter by the object’s `region` field.""" + region: StringFilter - """Filter by the object’s `tlsReadyAt` field.""" - tlsReadyAt: DatetimeFilter + """Filter by the object’s `smtpHost` field.""" + smtpHost: StringFilter - """Filter by the object’s `tlsSecretName` field.""" - tlsSecretName: StringFilter + """Filter by the object’s `smtpPort` field.""" + smtpPort: IntFilter - """Filter by the object’s `tlsStatus` field.""" - tlsStatus: StringFilter + """Filter by the object’s `smtpSecure` field.""" + smtpSecure: BooleanFilter + + """Filter by the object’s `smtpUser` field.""" + smtpUser: StringFilter """Filter by the object’s `updatedAt` field.""" updatedAt: DatetimeFilter - """Filter by the object’s `verificationStatus` field.""" - verificationStatus: StringFilter - - """Filter by the object’s `verifiedAt` field.""" - verifiedAt: DatetimeFilter + """Filter by the object’s `webhookSigningSecretName` field.""" + webhookSigningSecretName: StringFilter } -"""An input for mutations affecting `PlatformDomain`""" -input PlatformDomainInput { - """Module-specific configuration for this hostname""" - config: JSON +"""An input for mutations affecting `PlatformEmailProviderAccount`""" +input PlatformEmailProviderAccountInput { + """ + Provider API base URL when it is not the provider default (e.g. Mailgun EU) + """ + apiBaseUrl: String createdAt: Datetime - """Lowercase fully-qualified hostname; wildcards use the *.parent form""" - hostname: String! + """ + Name of the secret holding this account's API key or SMTP password. The value is resolved from the secret store at send time (realm = this row's id) and is never stored here. + """ + credentialsSecretName: String! id: UUID - """Whether other scopes may see and bind under this hostname""" - isPublished: Boolean + """ + Whether identities may send through this account. Disabling one row stops every identity that references it. + """ + isActive: Boolean - """Whether this hostname is a *.parent wildcard claim""" - isWildcard: Boolean + """Operator-facing name for this account (e.g. transactional, marketing)""" + name: String! """ - Whether the platform drives this hostname's DNS verification and certificate lifecycle + integration_providers.slug of the provider this account is at (mailgun, ses, postmark, smtp), matched by string not by FK """ - managed: Boolean + provider: String! """ - Parent hostname a wildcard claim covers (example.com for *.example.com) + Account identifier at the provider — the Mailgun sending domain, the SES verified identity, the Postmark server name """ - parentHostname: String + providerAccountName: String - """When the certificate last became ready""" - tlsReadyAt: Datetime + """Provider region for region-addressed providers (e.g. SES us-east-1)""" + region: String - """Name of the TLS secret serving this hostname""" - tlsSecretName: String + """SMTP host (provider = smtp, or a provider addressed over SMTP)""" + smtpHost: String - """Certificate lifecycle state for this hostname""" - tlsStatus: String - updatedAt: Datetime + """SMTP port""" + smtpPort: Int - """Ownership verification state of this hostname""" - verificationStatus: String + """Whether the SMTP connection uses implicit TLS""" + smtpSecure: Boolean - """When ownership verification last succeeded""" - verifiedAt: Datetime + """ + SMTP username; the password is a secret, addressed by credentials_secret_name + """ + smtpUser: String + updatedAt: Datetime + + """ + Name of the secret used to verify this provider's delivery/bounce webhooks. Name only; the value stays in the secret store. + """ + webhookSigningSecretName: String } -"""Methods to use when ordering `PlatformDomain`.""" -enum PlatformDomainOrderBy { - CONFIG_ASC - CONFIG_DESC +"""Methods to use when ordering `PlatformEmailProviderAccount`.""" +enum PlatformEmailProviderAccountOrderBy { + API_BASE_URL_ASC + API_BASE_URL_DESC CREATED_AT_ASC CREATED_AT_DESC - HOSTNAME_ASC - HOSTNAME_DESC + CREDENTIALS_SECRET_NAME_ASC + CREDENTIALS_SECRET_NAME_DESC ID_ASC ID_DESC - IS_PUBLISHED_ASC - IS_PUBLISHED_DESC - IS_WILDCARD_ASC - IS_WILDCARD_DESC - MANAGED_ASC - MANAGED_DESC + IS_ACTIVE_ASC + IS_ACTIVE_DESC + NAME_ASC + NAME_DESC NATURAL - PARENT_HOSTNAME_ASC - PARENT_HOSTNAME_DESC PRIMARY_KEY_ASC PRIMARY_KEY_DESC - TLS_READY_AT_ASC - TLS_READY_AT_DESC - TLS_SECRET_NAME_ASC - TLS_SECRET_NAME_DESC - TLS_STATUS_ASC - TLS_STATUS_DESC + PROVIDER_ACCOUNT_NAME_ASC + PROVIDER_ACCOUNT_NAME_DESC + PROVIDER_ASC + PROVIDER_DESC + REGION_ASC + REGION_DESC + SMTP_HOST_ASC + SMTP_HOST_DESC + SMTP_PORT_ASC + SMTP_PORT_DESC + SMTP_SECURE_ASC + SMTP_SECURE_DESC + SMTP_USER_ASC + SMTP_USER_DESC UPDATED_AT_ASC UPDATED_AT_DESC - VERIFICATION_STATUS_ASC - VERIFICATION_STATUS_DESC - VERIFIED_AT_ASC - VERIFIED_AT_DESC + WEBHOOK_SIGNING_SECRET_NAME_ASC + WEBHOOK_SIGNING_SECRET_NAME_DESC } """ -Represents an update to a `PlatformDomain`. Fields that are set will be updated. +Represents an update to a `PlatformEmailProviderAccount`. Fields that are set will be updated. """ -input PlatformDomainPatch { - """Module-specific configuration for this hostname""" - config: JSON +input PlatformEmailProviderAccountPatch { + """ + Provider API base URL when it is not the provider default (e.g. Mailgun EU) + """ + apiBaseUrl: String createdAt: Datetime - """Lowercase fully-qualified hostname; wildcards use the *.parent form""" - hostname: String + """ + Name of the secret holding this account's API key or SMTP password. The value is resolved from the secret store at send time (realm = this row's id) and is never stored here. + """ + credentialsSecretName: String id: UUID - """Whether other scopes may see and bind under this hostname""" - isPublished: Boolean + """ + Whether identities may send through this account. Disabling one row stops every identity that references it. + """ + isActive: Boolean - """Whether this hostname is a *.parent wildcard claim""" - isWildcard: Boolean + """Operator-facing name for this account (e.g. transactional, marketing)""" + name: String """ - Whether the platform drives this hostname's DNS verification and certificate lifecycle + integration_providers.slug of the provider this account is at (mailgun, ses, postmark, smtp), matched by string not by FK """ - managed: Boolean + provider: String """ - Parent hostname a wildcard claim covers (example.com for *.example.com) + Account identifier at the provider — the Mailgun sending domain, the SES verified identity, the Postmark server name """ - parentHostname: String + providerAccountName: String - """When the certificate last became ready""" - tlsReadyAt: Datetime + """Provider region for region-addressed providers (e.g. SES us-east-1)""" + region: String - """Name of the TLS secret serving this hostname""" - tlsSecretName: String + """SMTP host (provider = smtp, or a provider addressed over SMTP)""" + smtpHost: String - """Certificate lifecycle state for this hostname""" - tlsStatus: String - updatedAt: Datetime + """SMTP port""" + smtpPort: Int - """Ownership verification state of this hostname""" - verificationStatus: String + """Whether the SMTP connection uses implicit TLS""" + smtpSecure: Boolean - """When ownership verification last succeeded""" - verifiedAt: Datetime + """ + SMTP username; the password is a secret, addressed by credentials_secret_name + """ + smtpUser: String + updatedAt: Datetime + + """ + Name of the secret used to verify this provider's delivery/bounce webhooks. Name only; the value stays in the secret store. + """ + webhookSigningSecretName: String } """ -A filter to be used against many `PlatformDomainEvent` object types. All fields are combined with a logical ‘and.’ +A filter to be used against many `PlatformEmailIdentity` object types. All fields are combined with a logical ‘and.’ """ -input PlatformDomainToManyPlatformDomainEventFilter { +input PlatformEmailProviderAccountToManyPlatformEmailIdentityFilter { """Filters to entities where every related entity matches.""" - every: PlatformDomainEventFilter + every: PlatformEmailIdentityFilter """Filters to entities where no related entity matches.""" - none: PlatformDomainEventFilter + none: PlatformEmailIdentityFilter """Filters to entities where at least one related entity matches.""" - some: PlatformDomainEventFilter + some: PlatformEmailIdentityFilter } """ -A filter to be used against many `PlatformDomainVerification` object types. All fields are combined with a logical ‘and.’ +Binds a site to the identity it sends as. Unique on site_id: one identity per site, but many sites may share an identity. """ -input PlatformDomainToManyPlatformDomainVerificationFilter { - """Filters to entities where every related entity matches.""" - every: PlatformDomainVerificationFilter - - """Filters to entities where no related entity matches.""" - none: PlatformDomainVerificationFilter - - """Filters to entities where at least one related entity matches.""" - some: PlatformDomainVerificationFilter -} - -"""Ownership verification challenges issued for a domain""" -type PlatformDomainVerification { - """How many times this challenge has been probed""" - attempts: Int! +type PlatformEmailSiteIdentity { createdAt: Datetime """ - Reads a single `PlatformDomain` that is related to this `PlatformDomainVerification`. + Reads a single `PlatformEmailIdentity` that is related to this `PlatformEmailSiteIdentity`. """ - domain: PlatformDomain - - """Scoped domain this verification challenge belongs to""" - domainId: UUID + emailIdentity: PlatformEmailIdentity - """Last verification error, if any""" - error: String - - """When this challenge expires""" - expiresAt: Datetime + """Identity this site sends as""" + emailIdentityId: UUID! id: UUID! - """When this challenge was last probed""" - lastCheckedAt: Datetime - """ - Reads a single `PlatformManagedDomain` that is related to this `PlatformDomainVerification`. + Reads a single `PlatformSite` that is related to this `PlatformEmailSiteIdentity`. """ - managedDomain: PlatformManagedDomain - - """Managed hostname this verification challenge belongs to""" - managedDomainId: UUID - - """Verification method (dns-txt, http-token, …)""" - method: String! - - """DNS record name the challenge expects""" - recordName: String - - """DNS record type the challenge expects""" - recordType: String - - """DNS record value the challenge expects""" - recordValue: String + site: PlatformSite - """Challenge state""" - status: String! + """Site whose mail is sent as the bound identity""" + siteId: UUID! updatedAt: Datetime - - """When this challenge succeeded""" - verifiedAt: Datetime } -"""A connection to a list of `PlatformDomainVerification` values.""" -type PlatformDomainVerificationConnection { +"""A connection to a list of `PlatformEmailSiteIdentity` values.""" +type PlatformEmailSiteIdentityConnection { """ - A list of edges which contains the `PlatformDomainVerification` and cursor to aid in pagination. + A list of edges which contains the `PlatformEmailSiteIdentity` and cursor to aid in pagination. """ - edges: [PlatformDomainVerificationEdge]! + edges: [PlatformEmailSiteIdentityEdge]! - """A list of `PlatformDomainVerification` objects.""" - nodes: [PlatformDomainVerification]! + """A list of `PlatformEmailSiteIdentity` objects.""" + nodes: [PlatformEmailSiteIdentity]! """Information to aid in pagination.""" pageInfo: PageInfo! """ - The count of *all* `PlatformDomainVerification` you could get from the connection. + The count of *all* `PlatformEmailSiteIdentity` you could get from the connection. """ totalCount: Int! } -"""A `PlatformDomainVerification` edge in the connection.""" -type PlatformDomainVerificationEdge { +"""A `PlatformEmailSiteIdentity` edge in the connection.""" +type PlatformEmailSiteIdentityEdge { """A cursor for use in pagination.""" cursor: Cursor - """The `PlatformDomainVerification` at the end of the edge.""" - node: PlatformDomainVerification + """The `PlatformEmailSiteIdentity` at the end of the edge.""" + node: PlatformEmailSiteIdentity } """ -A filter to be used against `PlatformDomainVerification` object types. All fields are combined with a logical ‘and.’ +A filter to be used against `PlatformEmailSiteIdentity` object types. All fields are combined with a logical ‘and.’ """ -input PlatformDomainVerificationFilter { +input PlatformEmailSiteIdentityFilter { """Checks for all expressions in this list.""" - and: [PlatformDomainVerificationFilter!] - - """Filter by the object’s `attempts` field.""" - attempts: IntFilter + and: [PlatformEmailSiteIdentityFilter!] """Filter by the object’s `createdAt` field.""" createdAt: DatetimeFilter - """Filter by the object’s `domain` relation.""" - domain: PlatformDomainFilter - - """A related `domain` exists.""" - domainExists: Boolean - - """Filter by the object’s `domainId` field.""" - domainId: UUIDFilter - - """Filter by the object’s `error` field.""" - error: StringFilter + """Filter by the object’s `emailIdentity` relation.""" + emailIdentity: PlatformEmailIdentityFilter - """Filter by the object’s `expiresAt` field.""" - expiresAt: DatetimeFilter + """Filter by the object’s `emailIdentityId` field.""" + emailIdentityId: UUIDFilter """Filter by the object’s `id` field.""" id: UUIDFilter - """Filter by the object’s `lastCheckedAt` field.""" - lastCheckedAt: DatetimeFilter - - """Filter by the object’s `managedDomain` relation.""" - managedDomain: PlatformManagedDomainFilter - - """A related `managedDomain` exists.""" - managedDomainExists: Boolean - - """Filter by the object’s `managedDomainId` field.""" - managedDomainId: UUIDFilter - - """Filter by the object’s `method` field.""" - method: StringFilter - """Negates the expression.""" - not: PlatformDomainVerificationFilter + not: PlatformEmailSiteIdentityFilter """Checks for any expressions in this list.""" - or: [PlatformDomainVerificationFilter!] - - """Filter by the object’s `recordName` field.""" - recordName: StringFilter - - """Filter by the object’s `recordType` field.""" - recordType: StringFilter + or: [PlatformEmailSiteIdentityFilter!] - """Filter by the object’s `recordValue` field.""" - recordValue: StringFilter + """Filter by the object’s `site` relation.""" + site: PlatformSiteFilter - """Filter by the object’s `status` field.""" - status: StringFilter + """Filter by the object’s `siteId` field.""" + siteId: UUIDFilter """Filter by the object’s `updatedAt` field.""" updatedAt: DatetimeFilter - - """Filter by the object’s `verifiedAt` field.""" - verifiedAt: DatetimeFilter } -"""An input for mutations affecting `PlatformDomainVerification`""" -input PlatformDomainVerificationInput { - """How many times this challenge has been probed""" - attempts: Int +"""An input for mutations affecting `PlatformEmailSiteIdentity`""" +input PlatformEmailSiteIdentityInput { createdAt: Datetime - """Scoped domain this verification challenge belongs to""" - domainId: UUID - - """Last verification error, if any""" - error: String - - """When this challenge expires""" - expiresAt: Datetime + """Identity this site sends as""" + emailIdentityId: UUID! id: UUID - """When this challenge was last probed""" - lastCheckedAt: Datetime - - """Managed hostname this verification challenge belongs to""" - managedDomainId: UUID - - """Verification method (dns-txt, http-token, …)""" - method: String! - - """DNS record name the challenge expects""" - recordName: String - - """DNS record type the challenge expects""" - recordType: String - - """DNS record value the challenge expects""" - recordValue: String - - """Challenge state""" - status: String + """Site whose mail is sent as the bound identity""" + siteId: UUID! updatedAt: Datetime - - """When this challenge succeeded""" - verifiedAt: Datetime } -"""Methods to use when ordering `PlatformDomainVerification`.""" -enum PlatformDomainVerificationOrderBy { - ATTEMPTS_ASC - ATTEMPTS_DESC +"""Methods to use when ordering `PlatformEmailSiteIdentity`.""" +enum PlatformEmailSiteIdentityOrderBy { CREATED_AT_ASC CREATED_AT_DESC - DOMAIN_ID_ASC - DOMAIN_ID_DESC - ERROR_ASC - ERROR_DESC - EXPIRES_AT_ASC - EXPIRES_AT_DESC + EMAIL_IDENTITY_ID_ASC + EMAIL_IDENTITY_ID_DESC ID_ASC ID_DESC - LAST_CHECKED_AT_ASC - LAST_CHECKED_AT_DESC - MANAGED_DOMAIN_ID_ASC - MANAGED_DOMAIN_ID_DESC - METHOD_ASC - METHOD_DESC NATURAL PRIMARY_KEY_ASC PRIMARY_KEY_DESC - RECORD_NAME_ASC - RECORD_NAME_DESC - RECORD_TYPE_ASC - RECORD_TYPE_DESC - RECORD_VALUE_ASC - RECORD_VALUE_DESC - STATUS_ASC - STATUS_DESC + SITE_ID_ASC + SITE_ID_DESC UPDATED_AT_ASC UPDATED_AT_DESC - VERIFIED_AT_ASC - VERIFIED_AT_DESC } """ -Represents an update to a `PlatformDomainVerification`. Fields that are set will be updated. +Represents an update to a `PlatformEmailSiteIdentity`. Fields that are set will be updated. """ -input PlatformDomainVerificationPatch { - """How many times this challenge has been probed""" - attempts: Int +input PlatformEmailSiteIdentityPatch { createdAt: Datetime - """Scoped domain this verification challenge belongs to""" - domainId: UUID - - """Last verification error, if any""" - error: String - - """When this challenge expires""" - expiresAt: Datetime + """Identity this site sends as""" + emailIdentityId: UUID id: UUID - """When this challenge was last probed""" - lastCheckedAt: Datetime - - """Managed hostname this verification challenge belongs to""" - managedDomainId: UUID - - """Verification method (dns-txt, http-token, …)""" - method: String - - """DNS record name the challenge expects""" - recordName: String - - """DNS record type the challenge expects""" - recordType: String - - """DNS record value the challenge expects""" - recordValue: String - - """Challenge state""" - status: String + """Site whose mail is sent as the bound identity""" + siteId: UUID updatedAt: Datetime - - """When this challenge succeeded""" - verifiedAt: Datetime -} - -"""All input for the `platformDomainsAssignSubdomain` mutation.""" -input PlatformDomainsAssignSubdomainInput { - apex: String - - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - label: String - maxAttempts: Int -} - -"""The output of our `platformDomainsAssignSubdomain` mutation.""" -type PlatformDomainsAssignSubdomainPayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """An edge for our `PlatformDomain`. May be used by Relay 1.""" - platformDomainEdge( - """The method to use when ordering `PlatformDomain`.""" - orderBy: [PlatformDomainOrderBy!]! = [PRIMARY_KEY_ASC] - ): PlatformDomainEdge - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - result: PlatformDomain } """ @@ -19246,6 +21408,11 @@ type PlatformSite { """Owner-local site surface name""" name: String! + """ + Reads a single `PlatformEmailSiteIdentity` that is related to this `PlatformSite`. + """ + platformEmailSiteIdentityBySiteId: PlatformEmailSiteIdentity + """Reads and enables pagination through a set of `PlatformPage`.""" platformPagesBySiteId( """Read all values in the set after (below) this cursor.""" @@ -20075,6 +22242,12 @@ input PlatformSiteFilter { """Checks for any expressions in this list.""" or: [PlatformSiteFilter!] + """Filter by the object’s `platformEmailSiteIdentityBySiteId` relation.""" + platformEmailSiteIdentityBySiteId: PlatformEmailSiteIdentityFilter + + """A related `platformEmailSiteIdentityBySiteId` exists.""" + platformEmailSiteIdentityBySiteIdExists: Boolean + """Filter by the object’s `platformPagesBySiteId` relation.""" platformPagesBySiteId: PlatformSiteToManyPlatformPageFilter @@ -21976,8 +24149,8 @@ type Query { where: ApiSettingFilter ): ApiSettingConnection - """Reads and enables pagination through a set of `Apis`.""" - apises( + """Reads and enables pagination through a set of `Api`.""" + apis( """Read all values in the set after (below) this cursor.""" after: Cursor @@ -21996,14 +24169,14 @@ type Query { """ offset: Int - """The method to use when ordering `Apis`.""" - orderBy: [ApisOrderBy!] = [PRIMARY_KEY_ASC] + """The method to use when ordering `Api`.""" + orderBy: [ApiOrderBy!] = [PRIMARY_KEY_ASC] """ A filter to be used in determining which values should be returned by the collection. """ - where: ApisFilter - ): ApisConnection + where: ApiFilter + ): ApiConnection applyRegistryDefaults(data: JSON, nodeType: String): JSON """Reads and enables pagination through a set of `AstMigration`.""" @@ -22383,6 +24556,93 @@ type Query { where: DomainFilter ): DomainConnection + """Reads and enables pagination through a set of `EmailIdentity`.""" + emailIdentities( + """Read all values in the set after (below) this cursor.""" + after: Cursor + + """Read all values in the set before (above) this cursor.""" + before: Cursor + + """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 + + """The method to use when ordering `EmailIdentity`.""" + orderBy: [EmailIdentityOrderBy!] = [PRIMARY_KEY_ASC] + + """ + A filter to be used in determining which values should be returned by the collection. + """ + where: EmailIdentityFilter + ): EmailIdentityConnection + + """Reads and enables pagination through a set of `EmailProviderAccount`.""" + emailProviderAccounts( + """Read all values in the set after (below) this cursor.""" + after: Cursor + + """Read all values in the set before (above) this cursor.""" + before: Cursor + + """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 + + """The method to use when ordering `EmailProviderAccount`.""" + orderBy: [EmailProviderAccountOrderBy!] = [PRIMARY_KEY_ASC] + + """ + A filter to be used in determining which values should be returned by the collection. + """ + where: EmailProviderAccountFilter + ): EmailProviderAccountConnection + + """Reads and enables pagination through a set of `EmailSiteIdentity`.""" + emailSiteIdentities( + """Read all values in the set after (below) this cursor.""" + after: Cursor + + """Read all values in the set before (above) this cursor.""" + before: Cursor + + """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 + + """The method to use when ordering `EmailSiteIdentity`.""" + orderBy: [EmailSiteIdentityOrderBy!] = [PRIMARY_KEY_ASC] + + """ + A filter to be used in determining which values should be returned by the collection. + """ + where: EmailSiteIdentityFilter + ): EmailSiteIdentityConnection + """Reads and enables pagination through a set of `EmbeddingChunk`.""" embeddingChunks( """Read all values in the set after (below) this cursor.""" @@ -22907,8 +25167,8 @@ type Query { where: PlatformApiSettingFilter ): PlatformApiSettingConnection - """Reads and enables pagination through a set of `PlatformApis`.""" - platformApises( + """Reads and enables pagination through a set of `PlatformApi`.""" + platformApis( """Read all values in the set after (below) this cursor.""" after: Cursor @@ -22927,14 +25187,14 @@ type Query { """ offset: Int - """The method to use when ordering `PlatformApis`.""" - orderBy: [PlatformApisOrderBy!] = [PRIMARY_KEY_ASC] + """The method to use when ordering `PlatformApi`.""" + orderBy: [PlatformApiOrderBy!] = [PRIMARY_KEY_ASC] """ A filter to be used in determining which values should be returned by the collection. """ - where: PlatformApisFilter - ): PlatformApisConnection + where: PlatformApiFilter + ): PlatformApiConnection """Reads and enables pagination through a set of `PlatformCorsSetting`.""" platformCorsSettings( @@ -23054,6 +25314,97 @@ type Query { where: PlatformDomainFilter ): PlatformDomainConnection + """Reads and enables pagination through a set of `PlatformEmailIdentity`.""" + platformEmailIdentities( + """Read all values in the set after (below) this cursor.""" + after: Cursor + + """Read all values in the set before (above) this cursor.""" + before: Cursor + + """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 + + """The method to use when ordering `PlatformEmailIdentity`.""" + orderBy: [PlatformEmailIdentityOrderBy!] = [PRIMARY_KEY_ASC] + + """ + A filter to be used in determining which values should be returned by the collection. + """ + where: PlatformEmailIdentityFilter + ): PlatformEmailIdentityConnection + + """ + Reads and enables pagination through a set of `PlatformEmailProviderAccount`. + """ + platformEmailProviderAccounts( + """Read all values in the set after (below) this cursor.""" + after: Cursor + + """Read all values in the set before (above) this cursor.""" + before: Cursor + + """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 + + """The method to use when ordering `PlatformEmailProviderAccount`.""" + orderBy: [PlatformEmailProviderAccountOrderBy!] = [PRIMARY_KEY_ASC] + + """ + A filter to be used in determining which values should be returned by the collection. + """ + where: PlatformEmailProviderAccountFilter + ): PlatformEmailProviderAccountConnection + + """ + Reads and enables pagination through a set of `PlatformEmailSiteIdentity`. + """ + platformEmailSiteIdentities( + """Read all values in the set after (below) this cursor.""" + after: Cursor + + """Read all values in the set before (above) this cursor.""" + before: Cursor + + """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 + + """The method to use when ordering `PlatformEmailSiteIdentity`.""" + orderBy: [PlatformEmailSiteIdentityOrderBy!] = [PRIMARY_KEY_ASC] + + """ + A filter to be used in determining which values should be returned by the collection. + """ + where: PlatformEmailSiteIdentityFilter + ): PlatformEmailSiteIdentityConnection + """Reads and enables pagination through a set of `PlatformManagedDomain`.""" platformManagedDomains( """Read all values in the set after (below) this cursor.""" @@ -26009,6 +28360,9 @@ type Site { """Human-readable site description""" description: String + + """Reads a single `EmailSiteIdentity` that is related to this `Site`.""" + emailSiteIdentity: EmailSiteIdentity id: UUID! """ @@ -26864,6 +29218,12 @@ input SiteFilter { """Filter by the object’s `description` field.""" description: StringFilter + """Filter by the object’s `emailSiteIdentity` relation.""" + emailSiteIdentity: EmailSiteIdentityFilter + + """A related `emailSiteIdentity` exists.""" + emailSiteIdentityExists: Boolean + """Filter by the object’s `id` field.""" id: UUIDFilter @@ -30902,6 +33262,44 @@ input UniqueConstraintToManyUniqueConstraintBehaviorFilter { some: UniqueConstraintBehaviorFilter } +"""All input for the `updateApi` mutation.""" +input UpdateApiInput { + """ + An object where the defined keys will be set on the `Api` being updated. + """ + apiPatch: ApiPatch! + + """ + An arbitrary 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 update `Api` mutation.""" +type UpdateApiPayload { + """The `Api` that was updated by this mutation.""" + api: Api + + """An edge for our `Api`. May be used by Relay 1.""" + apiEdge( + """The method to use when ordering `Api`.""" + orderBy: [ApiOrderBy!]! = [PRIMARY_KEY_ASC] + ): ApiEdge + + """ + The 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 `updateApiSchema` mutation.""" input UpdateApiSchemaInput { """ @@ -30978,44 +33376,6 @@ type UpdateApiSettingPayload { query: Query } -"""All input for the `updateApis` mutation.""" -input UpdateApisInput { - """ - An object where the defined keys will be set on the `Apis` being updated. - """ - apisPatch: ApisPatch! - - """ - An arbitrary 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 update `Apis` mutation.""" -type UpdateApisPayload { - """The `Apis` that was updated by this mutation.""" - apis: Apis - - """An edge for our `Apis`. May be used by Relay 1.""" - apisEdge( - """The method to use when ordering `Apis`.""" - orderBy: [ApisOrderBy!]! = [PRIMARY_KEY_ASC] - ): ApisEdge - - """ - The 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 `updateCheckConstraint` mutation.""" input UpdateCheckConstraintInput { """ @@ -31472,6 +33832,120 @@ type UpdateDomainVerificationPayload { query: Query } +"""All input for the `updateEmailIdentity` mutation.""" +input UpdateEmailIdentityInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + + """ + An object where the defined keys will be set on the `EmailIdentity` being updated. + """ + emailIdentityPatch: EmailIdentityPatch! + id: UUID! +} + +"""The output of our update `EmailIdentity` mutation.""" +type UpdateEmailIdentityPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `EmailIdentity` that was updated by this mutation.""" + emailIdentity: EmailIdentity + + """An edge for our `EmailIdentity`. May be used by Relay 1.""" + emailIdentityEdge( + """The method to use when ordering `EmailIdentity`.""" + orderBy: [EmailIdentityOrderBy!]! = [PRIMARY_KEY_ASC] + ): EmailIdentityEdge + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query +} + +"""All input for the `updateEmailProviderAccount` mutation.""" +input UpdateEmailProviderAccountInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + + """ + An object where the defined keys will be set on the `EmailProviderAccount` being updated. + """ + emailProviderAccountPatch: EmailProviderAccountPatch! + id: UUID! +} + +"""The output of our update `EmailProviderAccount` mutation.""" +type UpdateEmailProviderAccountPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `EmailProviderAccount` that was updated by this mutation.""" + emailProviderAccount: EmailProviderAccount + + """An edge for our `EmailProviderAccount`. May be used by Relay 1.""" + emailProviderAccountEdge( + """The method to use when ordering `EmailProviderAccount`.""" + orderBy: [EmailProviderAccountOrderBy!]! = [PRIMARY_KEY_ASC] + ): EmailProviderAccountEdge + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query +} + +"""All input for the `updateEmailSiteIdentity` mutation.""" +input UpdateEmailSiteIdentityInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + + """ + An object where the defined keys will be set on the `EmailSiteIdentity` being updated. + """ + emailSiteIdentityPatch: EmailSiteIdentityPatch! + id: UUID! +} + +"""The output of our update `EmailSiteIdentity` mutation.""" +type UpdateEmailSiteIdentityPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `EmailSiteIdentity` that was updated by this mutation.""" + emailSiteIdentity: EmailSiteIdentity + + """An edge for our `EmailSiteIdentity`. May be used by Relay 1.""" + emailSiteIdentityEdge( + """The method to use when ordering `EmailSiteIdentity`.""" + orderBy: [EmailSiteIdentityOrderBy!]! = [PRIMARY_KEY_ASC] + ): EmailSiteIdentityEdge + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query +} + """All input for the `updateEmbeddingChunk` mutation.""" input UpdateEmbeddingChunkInput { """ @@ -32084,6 +34558,44 @@ type UpdatePartitionPayload { query: Query } +"""All input for the `updatePlatformApi` mutation.""" +input UpdatePlatformApiInput { + """ + An arbitrary 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 `PlatformApi` being updated. + """ + platformApiPatch: PlatformApiPatch! +} + +"""The output of our update `PlatformApi` mutation.""" +type UpdatePlatformApiPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `PlatformApi` that was updated by this mutation.""" + platformApi: PlatformApi + + """An edge for our `PlatformApi`. May be used by Relay 1.""" + platformApiEdge( + """The method to use when ordering `PlatformApi`.""" + orderBy: [PlatformApiOrderBy!]! = [PRIMARY_KEY_ASC] + ): PlatformApiEdge + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query +} + """All input for the `updatePlatformApiSchema` mutation.""" input UpdatePlatformApiSchemaInput { """ @@ -32160,44 +34672,6 @@ type UpdatePlatformApiSettingPayload { query: Query } -"""All input for the `updatePlatformApis` mutation.""" -input UpdatePlatformApisInput { - """ - An arbitrary 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 `PlatformApis` being updated. - """ - platformApisPatch: PlatformApisPatch! -} - -"""The output of our update `PlatformApis` mutation.""" -type UpdatePlatformApisPayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `PlatformApis` that was updated by this mutation.""" - platformApis: PlatformApis - - """An edge for our `PlatformApis`. May be used by Relay 1.""" - platformApisEdge( - """The method to use when ordering `PlatformApis`.""" - orderBy: [PlatformApisOrderBy!]! = [PRIMARY_KEY_ASC] - ): PlatformApisEdge - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query -} - """All input for the `updatePlatformCorsSetting` mutation.""" input UpdatePlatformCorsSettingInput { """ @@ -32350,6 +34824,122 @@ type UpdatePlatformDomainVerificationPayload { query: Query } +"""All input for the `updatePlatformEmailIdentity` mutation.""" +input UpdatePlatformEmailIdentityInput { + """ + An arbitrary 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 `PlatformEmailIdentity` being updated. + """ + platformEmailIdentityPatch: PlatformEmailIdentityPatch! +} + +"""The output of our update `PlatformEmailIdentity` mutation.""" +type UpdatePlatformEmailIdentityPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `PlatformEmailIdentity` that was updated by this mutation.""" + platformEmailIdentity: PlatformEmailIdentity + + """An edge for our `PlatformEmailIdentity`. May be used by Relay 1.""" + platformEmailIdentityEdge( + """The method to use when ordering `PlatformEmailIdentity`.""" + orderBy: [PlatformEmailIdentityOrderBy!]! = [PRIMARY_KEY_ASC] + ): PlatformEmailIdentityEdge + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query +} + +"""All input for the `updatePlatformEmailProviderAccount` mutation.""" +input UpdatePlatformEmailProviderAccountInput { + """ + An arbitrary 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 `PlatformEmailProviderAccount` being updated. + """ + platformEmailProviderAccountPatch: PlatformEmailProviderAccountPatch! +} + +"""The output of our update `PlatformEmailProviderAccount` mutation.""" +type UpdatePlatformEmailProviderAccountPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `PlatformEmailProviderAccount` that was updated by this mutation.""" + platformEmailProviderAccount: PlatformEmailProviderAccount + + """ + An edge for our `PlatformEmailProviderAccount`. May be used by Relay 1. + """ + platformEmailProviderAccountEdge( + """The method to use when ordering `PlatformEmailProviderAccount`.""" + orderBy: [PlatformEmailProviderAccountOrderBy!]! = [PRIMARY_KEY_ASC] + ): PlatformEmailProviderAccountEdge + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query +} + +"""All input for the `updatePlatformEmailSiteIdentity` mutation.""" +input UpdatePlatformEmailSiteIdentityInput { + """ + An arbitrary 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 `PlatformEmailSiteIdentity` being updated. + """ + platformEmailSiteIdentityPatch: PlatformEmailSiteIdentityPatch! +} + +"""The output of our update `PlatformEmailSiteIdentity` mutation.""" +type UpdatePlatformEmailSiteIdentityPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `PlatformEmailSiteIdentity` that was updated by this mutation.""" + platformEmailSiteIdentity: PlatformEmailSiteIdentity + + """An edge for our `PlatformEmailSiteIdentity`. May be used by Relay 1.""" + platformEmailSiteIdentityEdge( + """The method to use when ordering `PlatformEmailSiteIdentity`.""" + orderBy: [PlatformEmailSiteIdentityOrderBy!]! = [PRIMARY_KEY_ASC] + ): PlatformEmailSiteIdentityEdge + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query +} + """All input for the `updatePlatformManagedDomain` mutation.""" input UpdatePlatformManagedDomainInput { """ diff --git a/sdk/constructive-sdk/schemas/auth.graphql b/sdk/constructive-sdk/schemas/auth.graphql index a939ca8e28..5e5386d6eb 100644 --- a/sdk/constructive-sdk/schemas/auth.graphql +++ b/sdk/constructive-sdk/schemas/auth.graphql @@ -2838,6 +2838,12 @@ type Mutation { """ input: SignInCrossOriginInput! ): SignInCrossOriginPayload + signInMagicLink( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: SignInMagicLinkInput! + ): SignInMagicLinkPayload signInSmsOtp( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. @@ -2856,6 +2862,12 @@ type Mutation { """ input: SignUpInput! ): SignUpPayload + signUpMagicLink( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: SignUpMagicLinkInput! + ): SignUpMagicLinkPayload signUpSms( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. @@ -3085,7 +3097,9 @@ type PageInfo { User phone numbers with country code, verification, and primary-number management """ type PhoneNumber { - """Country calling code (e.g. +1, +44)""" + """ + Country calling code the number was entered under (e.g. +1, +44). Display only: `number` already carries it, and sign-in matches `number`. + """ cc: String! createdAt: Datetime id: UUID! @@ -3101,7 +3115,9 @@ type PhoneNumber { """ name: String - """The phone number without country code""" + """ + The full number in E.164 form, country calling code included (e.g. +15551234567). This is the value SMS sign-in and MFA match, so it is unique across the table and constrained to that shape. + """ number: String! """Reads a single `User` that is related to this `PhoneNumber`.""" @@ -3182,7 +3198,9 @@ input PhoneNumberFilter { """An input for mutations affecting `PhoneNumber`""" input PhoneNumberInput { - """Country calling code (e.g. +1, +44)""" + """ + Country calling code the number was entered under (e.g. +1, +44). Display only: `number` already carries it, and sign-in matches `number`. + """ cc: String! createdAt: Datetime id: UUID @@ -3198,7 +3216,9 @@ input PhoneNumberInput { """ name: String - """The phone number without country code""" + """ + The full number in E.164 form, country calling code included (e.g. +15551234567). This is the value SMS sign-in and MFA match, so it is unique across the table and constrained to that shape. + """ number: String! ownerId: UUID updatedAt: Datetime @@ -3233,7 +3253,9 @@ enum PhoneNumberOrderBy { Represents an update to a `PhoneNumber`. Fields that are set will be updated. """ input PhoneNumberPatch { - """Country calling code (e.g. +1, +44)""" + """ + Country calling code the number was entered under (e.g. +1, +44). Display only: `number` already carries it, and sign-in matches `number`. + """ cc: String createdAt: Datetime id: UUID @@ -3249,7 +3271,9 @@ input PhoneNumberPatch { """ name: String - """The phone number without country code""" + """ + The full number in E.164 form, country calling code included (e.g. +15551234567). This is the value SMS sign-in and MFA match, so it is unique across the table and constrained to that shape. + """ number: String ownerId: UUID updatedAt: Datetime @@ -3607,11 +3631,11 @@ enum PrincipalOrderBy { } """ -Per-scope permission overrides for principals. No row = full access; row exists = apply restrictions. +Per-scope capability overrides for principals. No row = full access; row exists = apply restrictions. """ type PrincipalScopeOverride { """ - Optional permission mask; AND-masked with parent permissions during cascade. NULL means no extra mask. + Optional capability mask; AND-masked with parent capabilities during cascade. NULL means no extra mask. """ allowedMask: BitString createdAt: Datetime @@ -4549,6 +4573,40 @@ input SignInInput { rememberMe: Boolean } +"""All input for the `signInMagicLink` mutation.""" +input SignInMagicLinkInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + credentialKind: String + deviceToken: String + rememberMe: Boolean + token: String +} + +"""The output of our `signInMagicLink` mutation.""" +type SignInMagicLinkPayload { + """ + The 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 + result: SignInMagicLinkRecord +} + +type SignInMagicLinkRecord { + accessToken: String + accessTokenExpiresAt: Datetime + userId: UUID +} + """The output of our `signIn` mutation.""" type SignInPayload { """ @@ -4648,6 +4706,40 @@ input SignUpInput { rememberMe: Boolean } +"""All input for the `signUpMagicLink` mutation.""" +input SignUpMagicLinkInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + credentialKind: String + deviceToken: String + rememberMe: Boolean + token: String +} + +"""The output of our `signUpMagicLink` mutation.""" +type SignUpMagicLinkPayload { + """ + The 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 + result: SignUpMagicLinkRecord +} + +type SignUpMagicLinkRecord { + accessToken: String + accessTokenExpiresAt: Datetime + userId: UUID +} + """The output of our `signUp` mutation.""" type SignUpPayload { """ diff --git a/sdk/constructive-sdk/schemas/compute.graphql b/sdk/constructive-sdk/schemas/compute.graphql index 9b31ae0f4f..fab3a1298c 100644 --- a/sdk/constructive-sdk/schemas/compute.graphql +++ b/sdk/constructive-sdk/schemas/compute.graphql @@ -352,6 +352,250 @@ input ConstructiveInternalTypeImageFilter { notIn: [ConstructiveInternalTypeImage!] } +""" +Seed-content preset catalog (limit defaults, trust ladders, ...) — merkle-versioned head over the infra store +""" +type ContentPreset { + """Whether this preset is selectable at provision time""" + active: Boolean! + + """ + Infra store commit for the current definition (stamped by the versioned trigger on every write) + """ + commitId: UUID + + """Timestamp of preset creation""" + createdAt: Datetime! + + """ + The seed document itself, in the shape the kind's seed function takes — the readily-cached head; history lives in the infra store + """ + definition: JSON! + + """Human-readable description of the preset""" + description: String + + """Unique preset identifier""" + id: UUID! + + """ + What the definition seeds — the module option that resolves it (limit_defaults, trust_ladder, ...) + """ + kind: String! + + """Human-readable preset name""" + label: String + + """ + Preset slug (unique per kind per scope); the preset's path in the infra tree is [content_preset, kind, slug] + """ + slug: String! + + """ + Infra Merkle store holding this preset's history (stamped by the versioned trigger) + """ + storeId: UUID + + """Timestamp of last modification""" + updatedAt: Datetime! +} + +"""A connection to a list of `ContentPreset` values.""" +type ContentPresetConnection { + """ + A list of edges which contains the `ContentPreset` and cursor to aid in pagination. + """ + edges: [ContentPresetEdge]! + + """A list of `ContentPreset` objects.""" + nodes: [ContentPreset]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! + + """The count of *all* `ContentPreset` you could get from the connection.""" + totalCount: Int! +} + +"""A `ContentPreset` edge in the connection.""" +type ContentPresetEdge { + """A cursor for use in pagination.""" + cursor: Cursor + + """The `ContentPreset` at the end of the edge.""" + node: ContentPreset +} + +""" +A filter to be used against `ContentPreset` object types. All fields are combined with a logical ‘and.’ +""" +input ContentPresetFilter { + """Filter by the object’s `active` field.""" + active: BooleanFilter + + """Checks for all expressions in this list.""" + and: [ContentPresetFilter!] + + """Filter by the object’s `commitId` field.""" + commitId: UUIDFilter + + """Filter by the object’s `createdAt` field.""" + createdAt: DatetimeFilter + + """Filter by the object’s `definition` field.""" + definition: JSONFilter + + """Filter by the object’s `description` field.""" + description: StringFilter + + """Filter by the object’s `id` field.""" + id: UUIDFilter + + """Filter by the object’s `kind` field.""" + kind: StringFilter + + """Filter by the object’s `label` field.""" + label: StringFilter + + """Negates the expression.""" + not: ContentPresetFilter + + """Checks for any expressions in this list.""" + or: [ContentPresetFilter!] + + """Filter by the object’s `slug` field.""" + slug: StringFilter + + """Filter by the object’s `storeId` field.""" + storeId: UUIDFilter + + """Filter by the object’s `updatedAt` field.""" + updatedAt: DatetimeFilter +} + +"""An input for mutations affecting `ContentPreset`""" +input ContentPresetInput { + """Whether this preset is selectable at provision time""" + active: Boolean + + """ + Infra store commit for the current definition (stamped by the versioned trigger on every write) + """ + commitId: UUID + + """Timestamp of preset creation""" + createdAt: Datetime + + """ + The seed document itself, in the shape the kind's seed function takes — the readily-cached head; history lives in the infra store + """ + definition: JSON! + + """Human-readable description of the preset""" + description: String + + """Unique preset identifier""" + id: UUID + + """ + What the definition seeds — the module option that resolves it (limit_defaults, trust_ladder, ...) + """ + kind: String! + + """Human-readable preset name""" + label: String + + """ + Preset slug (unique per kind per scope); the preset's path in the infra tree is [content_preset, kind, slug] + """ + slug: String! + + """ + Infra Merkle store holding this preset's history (stamped by the versioned trigger) + """ + storeId: UUID + + """Timestamp of last modification""" + updatedAt: Datetime +} + +"""Methods to use when ordering `ContentPreset`.""" +enum ContentPresetOrderBy { + ACTIVE_ASC + ACTIVE_DESC + COMMIT_ID_ASC + COMMIT_ID_DESC + CREATED_AT_ASC + CREATED_AT_DESC + DEFINITION_ASC + DEFINITION_DESC + DESCRIPTION_ASC + DESCRIPTION_DESC + ID_ASC + ID_DESC + KIND_ASC + KIND_DESC + LABEL_ASC + LABEL_DESC + NATURAL + PRIMARY_KEY_ASC + PRIMARY_KEY_DESC + SLUG_ASC + SLUG_DESC + STORE_ID_ASC + STORE_ID_DESC + UPDATED_AT_ASC + UPDATED_AT_DESC +} + +""" +Represents an update to a `ContentPreset`. Fields that are set will be updated. +""" +input ContentPresetPatch { + """Whether this preset is selectable at provision time""" + active: Boolean + + """ + Infra store commit for the current definition (stamped by the versioned trigger on every write) + """ + commitId: UUID + + """Timestamp of preset creation""" + createdAt: Datetime + + """ + The seed document itself, in the shape the kind's seed function takes — the readily-cached head; history lives in the infra store + """ + definition: JSON + + """Human-readable description of the preset""" + description: String + + """Unique preset identifier""" + id: UUID + + """ + What the definition seeds — the module option that resolves it (limit_defaults, trust_ladder, ...) + """ + kind: String + + """Human-readable preset name""" + label: String + + """ + Preset slug (unique per kind per scope); the preset's path in the infra tree is [content_preset, kind, slug] + """ + slug: String + + """ + Infra Merkle store holding this preset's history (stamped by the versioned trigger) + """ + storeId: UUID + + """Timestamp of last modification""" + updatedAt: Datetime +} + """All input for the `copyGraph` mutation.""" input CopyGraphInput { """ @@ -379,6 +623,41 @@ type CopyGraphPayload { result: UUID } +"""All input for the create `ContentPreset` mutation.""" +input CreateContentPresetInput { + """ + An arbitrary 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 `ContentPreset` to be created by this mutation.""" + contentPreset: ContentPresetInput! +} + +"""The output of our create `ContentPreset` mutation.""" +type CreateContentPresetPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `ContentPreset` that was created by this mutation.""" + contentPreset: ContentPreset + + """An edge for our `ContentPreset`. May be used by Relay 1.""" + contentPresetEdge( + """The method to use when ordering `ContentPreset`.""" + orderBy: [ContentPresetOrderBy!]! = [PRIMARY_KEY_ASC] + ): ContentPresetEdge + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query +} + """All input for the create `DbPreset` mutation.""" input CreateDbPresetInput { """ @@ -2705,6 +2984,41 @@ input DbPresetPatch { updatedAt: Datetime } +"""All input for the `deleteContentPreset` mutation.""" +input DeleteContentPresetInput { + """ + An arbitrary 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 preset identifier""" + id: UUID! +} + +"""The output of our delete `ContentPreset` mutation.""" +type DeleteContentPresetPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `ContentPreset` that was deleted by this mutation.""" + contentPreset: ContentPreset + + """An edge for our `ContentPreset`. May be used by Relay 1.""" + contentPresetEdge( + """The method to use when ordering `ContentPreset`.""" + orderBy: [ContentPresetOrderBy!]! = [PRIMARY_KEY_ASC] + ): ContentPresetEdge + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query +} + """All input for the `deleteDbPreset` mutation.""" input DeleteDbPresetInput { """ @@ -5154,7 +5468,7 @@ Function definitions — registered cloud functions with routing, queue, and ret """ type FunctionDefinition { """ - Invocation channels this function may be exposed through (api, graph, cron, sync, webhook). Internal worker dispatch is implicit and never listed. Default [] = worker only. + Invocation channels this function may be exposed through (api, graph, cron, sync, page, webhook). Internal worker dispatch is implicit and never listed. Default [] = worker only. """ accessChannels: [String]! @@ -5335,7 +5649,7 @@ type FunctionDefinition { queueName: String! """ - Bucket keys this function needs (e.g. uploads, exports). Empty = no bucket requirements. + Bucket keys this function needs (e.g. uploads, exports). Tenant-agnostic: each key is resolved per invocation against the tenant's buckets by {tags, type}, or by an explicit capability binding row. Empty = no bucket requirements. """ requiredBuckets: [String]! @@ -5349,6 +5663,11 @@ type FunctionDefinition { """ requiredModels: [String]! + """ + Modules whose api surfaces this function calls, e.g. notifications_module. Suffix . to name which surface when a module's schemas are attached to several (capabilities_module.admin), and @ to pin the registration when a module is registered at more than one scope (limits_module@org) — usually unnecessary, since resolution walks the execution's scope chain. A value that is not a module name is read as an api name. Resolved per invocation; empty = no api requirements. + """ + requiredModules: [String]! + """ Embedded secret requirements: array of (name, required, provider) tuples. provider is the integration slug this requirement belongs to, if any. """ @@ -5572,6 +5891,9 @@ input FunctionDefinitionFilter { """Filter by the object’s `requiredModels` field.""" requiredModels: StringListFilter + """Filter by the object’s `requiredModules` field.""" + requiredModules: StringListFilter + """Filter by the object’s `resources` field.""" resources: JSONFilter @@ -5612,7 +5934,7 @@ input FunctionDefinitionFilter { """An input for mutations affecting `FunctionDefinition`""" input FunctionDefinitionInput { """ - Invocation channels this function may be exposed through (api, graph, cron, sync, webhook). Internal worker dispatch is implicit and never listed. Default [] = worker only. + Invocation channels this function may be exposed through (api, graph, cron, sync, page, webhook). Internal worker dispatch is implicit and never listed. Default [] = worker only. """ accessChannels: [String] @@ -5713,7 +6035,7 @@ input FunctionDefinitionInput { queueName: String """ - Bucket keys this function needs (e.g. uploads, exports). Empty = no bucket requirements. + Bucket keys this function needs (e.g. uploads, exports). Tenant-agnostic: each key is resolved per invocation against the tenant's buckets by {tags, type}, or by an explicit capability binding row. Empty = no bucket requirements. """ requiredBuckets: [String] @@ -5727,6 +6049,11 @@ input FunctionDefinitionInput { """ requiredModels: [String] + """ + Modules whose api surfaces this function calls, e.g. notifications_module. Suffix . to name which surface when a module's schemas are attached to several (capabilities_module.admin), and @ to pin the registration when a module is registered at more than one scope (limits_module@org) — usually unnecessary, since resolution walks the execution's scope chain. A value that is not a module name is read as an api name. Resolved per invocation; empty = no api requirements. + """ + requiredModules: [String] + """ Embedded secret requirements: array of (name, required, provider) tuples. provider is the integration slug this requirement belongs to, if any. """ @@ -5837,6 +6164,8 @@ enum FunctionDefinitionOrderBy { REQUIRED_CONFIGS_DESC REQUIRED_MODELS_ASC REQUIRED_MODELS_DESC + REQUIRED_MODULES_ASC + REQUIRED_MODULES_DESC REQUIRED_SECRETS_ASC REQUIRED_SECRETS_DESC RESOURCES_ASC @@ -5866,7 +6195,7 @@ Represents an update to a `FunctionDefinition`. Fields that are set will be upda """ input FunctionDefinitionPatch { """ - Invocation channels this function may be exposed through (api, graph, cron, sync, webhook). Internal worker dispatch is implicit and never listed. Default [] = worker only. + Invocation channels this function may be exposed through (api, graph, cron, sync, page, webhook). Internal worker dispatch is implicit and never listed. Default [] = worker only. """ accessChannels: [String] @@ -5967,7 +6296,7 @@ input FunctionDefinitionPatch { queueName: String """ - Bucket keys this function needs (e.g. uploads, exports). Empty = no bucket requirements. + Bucket keys this function needs (e.g. uploads, exports). Tenant-agnostic: each key is resolved per invocation against the tenant's buckets by {tags, type}, or by an explicit capability binding row. Empty = no bucket requirements. """ requiredBuckets: [String] @@ -5981,6 +6310,11 @@ input FunctionDefinitionPatch { """ requiredModels: [String] + """ + Modules whose api surfaces this function calls, e.g. notifications_module. Suffix . to name which surface when a module's schemas are attached to several (capabilities_module.admin), and @ to pin the registration when a module is registered at more than one scope (limits_module@org) — usually unnecessary, since resolution walks the execution's scope chain. A value that is not a module name is read as an api name. Resolved per invocation; empty = no api requirements. + """ + requiredModules: [String] + """ Embedded secret requirements: array of (name, required, provider) tuples. provider is the integration slug this requirement belongs to, if any. """ @@ -6112,6 +6446,11 @@ type FunctionDeployment { """Target namespace for this deployment (maps to a K8s namespace)""" namespaceId: UUID! + """ + Config/secret realm this deployment resolves required keys against. Per key, the realm-specific atom wins over the NULL-realm default. NULL = the default lane (or a runtime-query worker that fetches per-item realms on demand). + """ + realm: String + """ K8s resource spec override: {"requests":{"cpu":"100m","memory":"128Mi"},"limits":{...}} """ @@ -6413,6 +6752,9 @@ input FunctionDeploymentFilter { """Checks for any expressions in this list.""" or: [FunctionDeploymentFilter!] + """Filter by the object’s `realm` field.""" + realm: StringFilter + """Filter by the object’s `resources` field.""" resources: JSONFilter @@ -6482,6 +6824,11 @@ input FunctionDeploymentInput { """Target namespace for this deployment (maps to a K8s namespace)""" namespaceId: UUID! + """ + Config/secret realm this deployment resolves required keys against. Per key, the realm-specific atom wins over the NULL-realm default. NULL = the default lane (or a runtime-query worker that fetches per-item realms on demand). + """ + realm: String + """ K8s resource spec override: {"requests":{"cpu":"100m","memory":"128Mi"},"limits":{...}} """ @@ -6551,6 +6898,8 @@ enum FunctionDeploymentOrderBy { NATURAL PRIMARY_KEY_ASC PRIMARY_KEY_DESC + REALM_ASC + REALM_DESC RESOURCES_ASC RESOURCES_DESC REVISION_ASC @@ -6614,6 +6963,11 @@ input FunctionDeploymentPatch { """Target namespace for this deployment (maps to a K8s namespace)""" namespaceId: UUID + """ + Config/secret realm this deployment resolves required keys against. Per key, the realm-specific atom wins over the NULL-realm default. NULL = the default lane (or a runtime-query worker that fetches per-item realms on demand). + """ + realm: String + """ K8s resource spec override: {"requests":{"cpu":"100m","memory":"128Mi"},"limits":{...}} """ @@ -9719,6 +10073,36 @@ type InfraInsertNodeAtPathPayload { result: UUID } +"""All input for the `infraInsertNodesAtPaths` mutation.""" +input InfraInsertNodesAtPathsInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + datas: [JSON] + kidsList: JSON + ktreeList: JSON + paths: JSON + root: UUID + sId: UUID +} + +"""The output of our `infraInsertNodesAtPaths` mutation.""" +type InfraInsertNodesAtPathsPayload { + """ + The 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 + result: UUID +} + """ Content-addressed Merkle tree objects keyed by UUID v5 hash of data + children """ @@ -9991,6 +10375,44 @@ input InfraRefPatch { storeId: UUID } +"""All input for the `infraSetAndCommit` mutation.""" +input InfraSetAndCommitInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + data: JSON + kids: [UUID] + ktree: [String] + message: String + path: [String] + refname: String + sId: UUID + storeId: UUID +} + +"""The output of our `infraSetAndCommit` mutation.""" +type InfraSetAndCommitPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """An edge for our `InfraCommit`. May be used by Relay 1.""" + infraCommitEdge( + """The method to use when ordering `InfraCommit`.""" + orderBy: [InfraCommitOrderBy!]! = [PRIMARY_KEY_ASC] + ): InfraCommitEdge + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + result: InfraCommit +} + """All input for the `infraSetDataAtPath` mutation.""" input InfraSetDataAtPathInput { """ @@ -10019,6 +10441,41 @@ type InfraSetDataAtPathPayload { result: UUID } +"""All input for the `infraSetManyAndCommit` mutation.""" +input InfraSetManyAndCommitInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + entries: JSON + message: String + refname: String + sId: UUID + storeId: UUID +} + +"""The output of our `infraSetManyAndCommit` mutation.""" +type InfraSetManyAndCommitPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """An edge for our `InfraCommit`. May be used by Relay 1.""" + infraCommitEdge( + """The method to use when ordering `InfraCommit`.""" + orderBy: [InfraCommitOrderBy!]! = [PRIMARY_KEY_ASC] + ): InfraCommitEdge + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + result: InfraCommit +} + """ Named stores — one per version-controlled tree (e.g. one graph, one definition set) """ @@ -10204,6 +10661,36 @@ type InsertNodeAtPathPayload { result: UUID } +"""All input for the `insertNodesAtPaths` mutation.""" +input InsertNodesAtPathsInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + datas: [JSON] + kidsList: JSON + ktreeList: JSON + paths: JSON + root: UUID + sId: UUID +} + +"""The output of our `insertNodesAtPaths` mutation.""" +type InsertNodesAtPathsPayload { + """ + The 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 + result: UUID +} + """ A filter to be used against Int fields. All fields are combined with a logical ‘and.’ """ @@ -10984,8 +11471,16 @@ type Mutation { """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: CopyGraphInput! - ): CopyGraphPayload + input: CopyGraphInput! + ): CopyGraphPayload + + """Creates a single `ContentPreset`.""" + createContentPreset( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateContentPresetInput! + ): CreateContentPresetPayload """Creates a single `DbPreset`.""" createDbPreset( @@ -11433,6 +11928,14 @@ type Mutation { input: CreateWebhookEventInput! ): CreateWebhookEventPayload + """Deletes a single `ContentPreset` using a unique key.""" + deleteContentPreset( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteContentPresetInput! + ): DeleteContentPresetPayload + """Deletes a single `DbPreset` using a unique key.""" deleteDbPreset( """ @@ -11908,12 +12411,30 @@ type Mutation { """ input: InfraInsertNodeAtPathInput! ): InfraInsertNodeAtPathPayload + infraInsertNodesAtPaths( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: InfraInsertNodesAtPathsInput! + ): InfraInsertNodesAtPathsPayload + infraSetAndCommit( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: InfraSetAndCommitInput! + ): InfraSetAndCommitPayload infraSetDataAtPath( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ input: InfraSetDataAtPathInput! ): InfraSetDataAtPathPayload + infraSetManyAndCommit( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: InfraSetManyAndCommitInput! + ): InfraSetManyAndCommitPayload initEmptyRepo( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. @@ -11926,6 +12447,12 @@ type Mutation { """ input: InsertNodeAtPathInput! ): InsertNodeAtPathPayload + insertNodesAtPaths( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: InsertNodesAtPathsInput! + ): InsertNodesAtPathsPayload platformInfraInitEmptyRepo( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. @@ -11938,12 +12465,30 @@ type Mutation { """ input: PlatformInfraInsertNodeAtPathInput! ): PlatformInfraInsertNodeAtPathPayload + platformInfraInsertNodesAtPaths( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: PlatformInfraInsertNodesAtPathsInput! + ): PlatformInfraInsertNodesAtPathsPayload + platformInfraSetAndCommit( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: PlatformInfraSetAndCommitInput! + ): PlatformInfraSetAndCommitPayload platformInfraSetDataAtPath( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ input: PlatformInfraSetDataAtPathInput! ): PlatformInfraSetDataAtPathPayload + platformInfraSetManyAndCommit( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: PlatformInfraSetManyAndCommitInput! + ): PlatformInfraSetManyAndCommitPayload platformResourceInstallationsInstall( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. @@ -12011,12 +12556,24 @@ type Mutation { """ input: SaveGraphInput! ): SaveGraphPayload + setAndCommit( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: SetAndCommitInput! + ): SetAndCommitPayload setDataAtPath( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ input: SetDataAtPathInput! ): SetDataAtPathPayload + setManyAndCommit( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: SetManyAndCommitInput! + ): SetManyAndCommitPayload startExecution( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. @@ -12024,6 +12581,14 @@ type Mutation { input: StartExecutionInput! ): StartExecutionPayload + """Updates a single `ContentPreset` using a unique key and a patch.""" + updateContentPreset( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateContentPresetInput! + ): UpdateContentPresetPayload + """Updates a single `DbPreset` using a unique key and a patch.""" updateDbPreset( """ @@ -13624,7 +14189,7 @@ Function definitions — registered cloud functions with routing, queue, and ret """ type PlatformFunctionDefinition { """ - Invocation channels this function may be exposed through (api, graph, cron, sync, webhook). Internal worker dispatch is implicit and never listed. Default [] = worker only. + Invocation channels this function may be exposed through (api, graph, cron, sync, page, webhook). Internal worker dispatch is implicit and never listed. Default [] = worker only. """ accessChannels: [String]! @@ -13845,7 +14410,7 @@ type PlatformFunctionDefinition { queueName: String! """ - Bucket keys this function needs (e.g. uploads, exports). Empty = no bucket requirements. + Bucket keys this function needs (e.g. uploads, exports). Tenant-agnostic: each key is resolved per invocation against the tenant's buckets by {tags, type}, or by an explicit capability binding row. Empty = no bucket requirements. """ requiredBuckets: [String]! @@ -13859,6 +14424,11 @@ type PlatformFunctionDefinition { """ requiredModels: [String]! + """ + Modules whose api surfaces this function calls, e.g. notifications_module. Suffix . to name which surface when a module's schemas are attached to several (capabilities_module.admin), and @ to pin the registration when a module is registered at more than one scope (limits_module@org) — usually unnecessary, since resolution walks the execution's scope chain. A value that is not a module name is read as an api name. Resolved per invocation; empty = no api requirements. + """ + requiredModules: [String]! + """ Embedded secret requirements: array of (name, required, provider) tuples. provider is the integration slug this requirement belongs to, if any. """ @@ -14074,6 +14644,9 @@ input PlatformFunctionDefinitionFilter { """Filter by the object’s `requiredModels` field.""" requiredModels: StringListFilter + """Filter by the object’s `requiredModules` field.""" + requiredModules: StringListFilter + """Filter by the object’s `resources` field.""" resources: JSONFilter @@ -14111,7 +14684,7 @@ input PlatformFunctionDefinitionFilter { """An input for mutations affecting `PlatformFunctionDefinition`""" input PlatformFunctionDefinitionInput { """ - Invocation channels this function may be exposed through (api, graph, cron, sync, webhook). Internal worker dispatch is implicit and never listed. Default [] = worker only. + Invocation channels this function may be exposed through (api, graph, cron, sync, page, webhook). Internal worker dispatch is implicit and never listed. Default [] = worker only. """ accessChannels: [String] @@ -14214,7 +14787,7 @@ input PlatformFunctionDefinitionInput { queueName: String """ - Bucket keys this function needs (e.g. uploads, exports). Empty = no bucket requirements. + Bucket keys this function needs (e.g. uploads, exports). Tenant-agnostic: each key is resolved per invocation against the tenant's buckets by {tags, type}, or by an explicit capability binding row. Empty = no bucket requirements. """ requiredBuckets: [String] @@ -14228,6 +14801,11 @@ input PlatformFunctionDefinitionInput { """ requiredModels: [String] + """ + Modules whose api surfaces this function calls, e.g. notifications_module. Suffix . to name which surface when a module's schemas are attached to several (capabilities_module.admin), and @ to pin the registration when a module is registered at more than one scope (limits_module@org) — usually unnecessary, since resolution walks the execution's scope chain. A value that is not a module name is read as an api name. Resolved per invocation; empty = no api requirements. + """ + requiredModules: [String] + """ Embedded secret requirements: array of (name, required, provider) tuples. provider is the integration slug this requirement belongs to, if any. """ @@ -14343,6 +14921,8 @@ enum PlatformFunctionDefinitionOrderBy { REQUIRED_CONFIGS_DESC REQUIRED_MODELS_ASC REQUIRED_MODELS_DESC + REQUIRED_MODULES_ASC + REQUIRED_MODULES_DESC REQUIRED_SECRETS_ASC REQUIRED_SECRETS_DESC RESOURCES_ASC @@ -14374,7 +14954,7 @@ Represents an update to a `PlatformFunctionDefinition`. Fields that are set will """ input PlatformFunctionDefinitionPatch { """ - Invocation channels this function may be exposed through (api, graph, cron, sync, webhook). Internal worker dispatch is implicit and never listed. Default [] = worker only. + Invocation channels this function may be exposed through (api, graph, cron, sync, page, webhook). Internal worker dispatch is implicit and never listed. Default [] = worker only. """ accessChannels: [String] @@ -14477,7 +15057,7 @@ input PlatformFunctionDefinitionPatch { queueName: String """ - Bucket keys this function needs (e.g. uploads, exports). Empty = no bucket requirements. + Bucket keys this function needs (e.g. uploads, exports). Tenant-agnostic: each key is resolved per invocation against the tenant's buckets by {tags, type}, or by an explicit capability binding row. Empty = no bucket requirements. """ requiredBuckets: [String] @@ -14491,6 +15071,11 @@ input PlatformFunctionDefinitionPatch { """ requiredModels: [String] + """ + Modules whose api surfaces this function calls, e.g. notifications_module. Suffix . to name which surface when a module's schemas are attached to several (capabilities_module.admin), and @ to pin the registration when a module is registered at more than one scope (limits_module@org) — usually unnecessary, since resolution walks the execution's scope chain. A value that is not a module name is read as an api name. Resolved per invocation; empty = no api requirements. + """ + requiredModules: [String] + """ Embedded secret requirements: array of (name, required, provider) tuples. provider is the integration slug this requirement belongs to, if any. """ @@ -14624,6 +15209,11 @@ type PlatformFunctionDeployment { """Target namespace for this deployment (maps to a K8s namespace)""" namespaceId: UUID! + """ + Config/secret realm this deployment resolves required keys against. Per key, the realm-specific atom wins over the NULL-realm default. NULL = the default lane (or a runtime-query worker that fetches per-item realms on demand). + """ + realm: String + """ K8s resource spec override: {"requests":{"cpu":"100m","memory":"128Mi"},"limits":{...}} """ @@ -14908,6 +15498,9 @@ input PlatformFunctionDeploymentFilter { """Checks for any expressions in this list.""" or: [PlatformFunctionDeploymentFilter!] + """Filter by the object’s `realm` field.""" + realm: StringFilter + """Filter by the object’s `resources` field.""" resources: JSONFilter @@ -14974,6 +15567,11 @@ input PlatformFunctionDeploymentInput { """Target namespace for this deployment (maps to a K8s namespace)""" namespaceId: UUID! + """ + Config/secret realm this deployment resolves required keys against. Per key, the realm-specific atom wins over the NULL-realm default. NULL = the default lane (or a runtime-query worker that fetches per-item realms on demand). + """ + realm: String + """ K8s resource spec override: {"requests":{"cpu":"100m","memory":"128Mi"},"limits":{...}} """ @@ -15041,6 +15639,8 @@ enum PlatformFunctionDeploymentOrderBy { NATURAL PRIMARY_KEY_ASC PRIMARY_KEY_DESC + REALM_ASC + REALM_DESC RESOURCES_ASC RESOURCES_DESC REVISION_ASC @@ -15101,6 +15701,11 @@ input PlatformFunctionDeploymentPatch { """Target namespace for this deployment (maps to a K8s namespace)""" namespaceId: UUID + """ + Config/secret realm this deployment resolves required keys against. Per key, the realm-specific atom wins over the NULL-realm default. NULL = the default lane (or a runtime-query worker that fetches per-item realms on demand). + """ + realm: String + """ K8s resource spec override: {"requests":{"cpu":"100m","memory":"128Mi"},"limits":{...}} """ @@ -16222,6 +16827,36 @@ type PlatformInfraInsertNodeAtPathPayload { result: UUID } +"""All input for the `platformInfraInsertNodesAtPaths` mutation.""" +input PlatformInfraInsertNodesAtPathsInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + datas: [JSON] + kidsList: JSON + ktreeList: JSON + paths: JSON + root: UUID + sId: UUID +} + +"""The output of our `platformInfraInsertNodesAtPaths` mutation.""" +type PlatformInfraInsertNodesAtPathsPayload { + """ + The 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 + result: UUID +} + """ Content-addressed Merkle tree objects keyed by UUID v5 hash of data + children """ @@ -16498,6 +17133,44 @@ input PlatformInfraRefPatch { storeId: UUID } +"""All input for the `platformInfraSetAndCommit` mutation.""" +input PlatformInfraSetAndCommitInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + data: JSON + kids: [UUID] + ktree: [String] + message: String + path: [String] + refname: String + sId: UUID + storeId: UUID +} + +"""The output of our `platformInfraSetAndCommit` mutation.""" +type PlatformInfraSetAndCommitPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """An edge for our `PlatformInfraCommit`. May be used by Relay 1.""" + platformInfraCommitEdge( + """The method to use when ordering `PlatformInfraCommit`.""" + orderBy: [PlatformInfraCommitOrderBy!]! = [PRIMARY_KEY_ASC] + ): PlatformInfraCommitEdge + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + result: PlatformInfraCommit +} + """All input for the `platformInfraSetDataAtPath` mutation.""" input PlatformInfraSetDataAtPathInput { """ @@ -16526,6 +17199,41 @@ type PlatformInfraSetDataAtPathPayload { result: UUID } +"""All input for the `platformInfraSetManyAndCommit` mutation.""" +input PlatformInfraSetManyAndCommitInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + entries: JSON + message: String + refname: String + sId: UUID + storeId: UUID +} + +"""The output of our `platformInfraSetManyAndCommit` mutation.""" +type PlatformInfraSetManyAndCommitPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """An edge for our `PlatformInfraCommit`. May be used by Relay 1.""" + platformInfraCommitEdge( + """The method to use when ordering `PlatformInfraCommit`.""" + orderBy: [PlatformInfraCommitOrderBy!]! = [PRIMARY_KEY_ASC] + ): PlatformInfraCommitEdge + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + result: PlatformInfraCommit +} + """ Named stores — one per version-controlled tree (e.g. one graph, one definition set) """ @@ -20743,6 +21451,35 @@ type Query { """ _meta: MetaSchema + """Reads and enables pagination through a set of `ContentPreset`.""" + contentPresets( + """Read all values in the set after (below) this cursor.""" + after: Cursor + + """Read all values in the set before (above) this cursor.""" + before: Cursor + + """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 + + """The method to use when ordering `ContentPreset`.""" + orderBy: [ContentPresetOrderBy!] = [PRIMARY_KEY_ASC] + + """ + A filter to be used in determining which values should be returned by the collection. + """ + where: ContentPresetFilter + ): ContentPresetConnection + """Reads and enables pagination through a set of `DbPreset`.""" dbPresets( """Read all values in the set after (below) this cursor.""" @@ -25741,6 +26478,44 @@ type SaveGraphPayload { result: UUID } +"""All input for the `setAndCommit` mutation.""" +input SetAndCommitInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + data: JSON + kids: [UUID] + ktree: [String] + message: String + path: [String] + refname: String + sId: UUID + storeId: UUID +} + +"""The output of our `setAndCommit` mutation.""" +type SetAndCommitPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """An edge for our `FunctionGraphCommit`. May be used by Relay 1.""" + functionGraphCommitEdge( + """The method to use when ordering `FunctionGraphCommit`.""" + orderBy: [FunctionGraphCommitOrderBy!]! = [PRIMARY_KEY_ASC] + ): FunctionGraphCommitEdge + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + result: FunctionGraphCommit +} + """All input for the `setDataAtPath` mutation.""" input SetDataAtPathInput { """ @@ -25769,6 +26544,41 @@ type SetDataAtPathPayload { result: UUID } +"""All input for the `setManyAndCommit` mutation.""" +input SetManyAndCommitInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + entries: JSON + message: String + refname: String + sId: UUID + storeId: UUID +} + +"""The output of our `setManyAndCommit` mutation.""" +type SetManyAndCommitPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """An edge for our `FunctionGraphCommit`. May be used by Relay 1.""" + functionGraphCommitEdge( + """The method to use when ordering `FunctionGraphCommit`.""" + orderBy: [FunctionGraphCommitOrderBy!]! = [PRIMARY_KEY_ASC] + ): FunctionGraphCommitEdge + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + result: FunctionGraphCommit +} + """All input for the `startExecution` mutation.""" input StartExecutionInput { """ @@ -26108,6 +26918,46 @@ input UUIDListFilter { overlaps: [UUID] } +"""All input for the `updateContentPreset` mutation.""" +input UpdateContentPresetInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + + """ + An object where the defined keys will be set on the `ContentPreset` being updated. + """ + contentPresetPatch: ContentPresetPatch! + + """Unique preset identifier""" + id: UUID! +} + +"""The output of our update `ContentPreset` mutation.""" +type UpdateContentPresetPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `ContentPreset` that was updated by this mutation.""" + contentPreset: ContentPreset + + """An edge for our `ContentPreset`. May be used by Relay 1.""" + contentPresetEdge( + """The method to use when ordering `ContentPreset`.""" + orderBy: [ContentPresetOrderBy!]! = [PRIMARY_KEY_ASC] + ): ContentPresetEdge + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query +} + """All input for the `updateDbPreset` mutation.""" input UpdateDbPresetInput { """ diff --git a/sdk/constructive-sdk/schemas/infra.graphql b/sdk/constructive-sdk/schemas/infra.graphql index eb908836ed..d18a705f1b 100644 --- a/sdk/constructive-sdk/schemas/infra.graphql +++ b/sdk/constructive-sdk/schemas/infra.graphql @@ -40,6 +40,285 @@ input BooleanFilter { notIn: [Boolean!] } +""" +Seed-content preset catalog (limit defaults, trust ladders, ...) — merkle-versioned head over the infra store +""" +type ContentPreset { + """Whether this preset is selectable at provision time""" + active: Boolean! + + """ + Infra store commit for the current definition (stamped by the versioned trigger on every write) + """ + commitId: UUID + + """Timestamp of preset creation""" + createdAt: Datetime! + + """ + The seed document itself, in the shape the kind's seed function takes — the readily-cached head; history lives in the infra store + """ + definition: JSON! + + """Human-readable description of the preset""" + description: String + + """Unique preset identifier""" + id: UUID! + + """ + What the definition seeds — the module option that resolves it (limit_defaults, trust_ladder, ...) + """ + kind: String! + + """Human-readable preset name""" + label: String + + """ + Preset slug (unique per kind per scope); the preset's path in the infra tree is [content_preset, kind, slug] + """ + slug: String! + + """ + Infra Merkle store holding this preset's history (stamped by the versioned trigger) + """ + storeId: UUID + + """Timestamp of last modification""" + updatedAt: Datetime! +} + +"""A connection to a list of `ContentPreset` values.""" +type ContentPresetConnection { + """ + A list of edges which contains the `ContentPreset` and cursor to aid in pagination. + """ + edges: [ContentPresetEdge]! + + """A list of `ContentPreset` objects.""" + nodes: [ContentPreset]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! + + """The count of *all* `ContentPreset` you could get from the connection.""" + totalCount: Int! +} + +"""A `ContentPreset` edge in the connection.""" +type ContentPresetEdge { + """A cursor for use in pagination.""" + cursor: Cursor + + """The `ContentPreset` at the end of the edge.""" + node: ContentPreset +} + +""" +A filter to be used against `ContentPreset` object types. All fields are combined with a logical ‘and.’ +""" +input ContentPresetFilter { + """Filter by the object’s `active` field.""" + active: BooleanFilter + + """Checks for all expressions in this list.""" + and: [ContentPresetFilter!] + + """Filter by the object’s `commitId` field.""" + commitId: UUIDFilter + + """Filter by the object’s `createdAt` field.""" + createdAt: DatetimeFilter + + """Filter by the object’s `definition` field.""" + definition: JSONFilter + + """Filter by the object’s `description` field.""" + description: StringFilter + + """Filter by the object’s `id` field.""" + id: UUIDFilter + + """Filter by the object’s `kind` field.""" + kind: StringFilter + + """Filter by the object’s `label` field.""" + label: StringFilter + + """Negates the expression.""" + not: ContentPresetFilter + + """Checks for any expressions in this list.""" + or: [ContentPresetFilter!] + + """Filter by the object’s `slug` field.""" + slug: StringFilter + + """Filter by the object’s `storeId` field.""" + storeId: UUIDFilter + + """Filter by the object’s `updatedAt` field.""" + updatedAt: DatetimeFilter +} + +"""An input for mutations affecting `ContentPreset`""" +input ContentPresetInput { + """Whether this preset is selectable at provision time""" + active: Boolean + + """ + Infra store commit for the current definition (stamped by the versioned trigger on every write) + """ + commitId: UUID + + """Timestamp of preset creation""" + createdAt: Datetime + + """ + The seed document itself, in the shape the kind's seed function takes — the readily-cached head; history lives in the infra store + """ + definition: JSON! + + """Human-readable description of the preset""" + description: String + + """Unique preset identifier""" + id: UUID + + """ + What the definition seeds — the module option that resolves it (limit_defaults, trust_ladder, ...) + """ + kind: String! + + """Human-readable preset name""" + label: String + + """ + Preset slug (unique per kind per scope); the preset's path in the infra tree is [content_preset, kind, slug] + """ + slug: String! + + """ + Infra Merkle store holding this preset's history (stamped by the versioned trigger) + """ + storeId: UUID + + """Timestamp of last modification""" + updatedAt: Datetime +} + +"""Methods to use when ordering `ContentPreset`.""" +enum ContentPresetOrderBy { + ACTIVE_ASC + ACTIVE_DESC + COMMIT_ID_ASC + COMMIT_ID_DESC + CREATED_AT_ASC + CREATED_AT_DESC + DEFINITION_ASC + DEFINITION_DESC + DESCRIPTION_ASC + DESCRIPTION_DESC + ID_ASC + ID_DESC + KIND_ASC + KIND_DESC + LABEL_ASC + LABEL_DESC + NATURAL + PRIMARY_KEY_ASC + PRIMARY_KEY_DESC + SLUG_ASC + SLUG_DESC + STORE_ID_ASC + STORE_ID_DESC + UPDATED_AT_ASC + UPDATED_AT_DESC +} + +""" +Represents an update to a `ContentPreset`. Fields that are set will be updated. +""" +input ContentPresetPatch { + """Whether this preset is selectable at provision time""" + active: Boolean + + """ + Infra store commit for the current definition (stamped by the versioned trigger on every write) + """ + commitId: UUID + + """Timestamp of preset creation""" + createdAt: Datetime + + """ + The seed document itself, in the shape the kind's seed function takes — the readily-cached head; history lives in the infra store + """ + definition: JSON + + """Human-readable description of the preset""" + description: String + + """Unique preset identifier""" + id: UUID + + """ + What the definition seeds — the module option that resolves it (limit_defaults, trust_ladder, ...) + """ + kind: String + + """Human-readable preset name""" + label: String + + """ + Preset slug (unique per kind per scope); the preset's path in the infra tree is [content_preset, kind, slug] + """ + slug: String + + """ + Infra Merkle store holding this preset's history (stamped by the versioned trigger) + """ + storeId: UUID + + """Timestamp of last modification""" + updatedAt: Datetime +} + +"""All input for the create `ContentPreset` mutation.""" +input CreateContentPresetInput { + """ + An arbitrary 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 `ContentPreset` to be created by this mutation.""" + contentPreset: ContentPresetInput! +} + +"""The output of our create `ContentPreset` mutation.""" +type CreateContentPresetPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `ContentPreset` that was created by this mutation.""" + contentPreset: ContentPreset + + """An edge for our `ContentPreset`. May be used by Relay 1.""" + contentPresetEdge( + """The method to use when ordering `ContentPreset`.""" + orderBy: [ContentPresetOrderBy!]! = [PRIMARY_KEY_ASC] + ): ContentPresetEdge + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query +} + """All input for the create `DbPreset` mutation.""" input CreateDbPresetInput { """ @@ -653,6 +932,41 @@ input DbPresetPatch { updatedAt: Datetime } +"""All input for the `deleteContentPreset` mutation.""" +input DeleteContentPresetInput { + """ + An arbitrary 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 preset identifier""" + id: UUID! +} + +"""The output of our delete `ContentPreset` mutation.""" +type DeleteContentPresetPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `ContentPreset` that was deleted by this mutation.""" + contentPreset: ContentPreset + + """An edge for our `ContentPreset`. May be used by Relay 1.""" + contentPresetEdge( + """The method to use when ordering `ContentPreset`.""" + orderBy: [ContentPresetOrderBy!]! = [PRIMARY_KEY_ASC] + ): ContentPresetEdge + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query +} + """All input for the `deleteDbPreset` mutation.""" input DeleteDbPresetInput { """ @@ -1352,6 +1666,14 @@ type MetaUniqueConstraint { The root mutation type which contains root level fields which mutate data. """ type Mutation { + """Creates a single `ContentPreset`.""" + createContentPreset( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateContentPresetInput! + ): CreateContentPresetPayload + """Creates a single `DbPreset`.""" createDbPreset( """ @@ -1424,6 +1746,14 @@ type Mutation { input: CreatePlatformNamespaceEventInput! ): CreatePlatformNamespaceEventPayload + """Deletes a single `ContentPreset` using a unique key.""" + deleteContentPreset( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteContentPresetInput! + ): DeleteContentPresetPayload + """Deletes a single `DbPreset` using a unique key.""" deleteDbPreset( """ @@ -1507,12 +1837,30 @@ type Mutation { """ input: PlatformInfraInsertNodeAtPathInput! ): PlatformInfraInsertNodeAtPathPayload + platformInfraInsertNodesAtPaths( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: PlatformInfraInsertNodesAtPathsInput! + ): PlatformInfraInsertNodesAtPathsPayload + platformInfraSetAndCommit( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: PlatformInfraSetAndCommitInput! + ): PlatformInfraSetAndCommitPayload platformInfraSetDataAtPath( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ input: PlatformInfraSetDataAtPathInput! ): PlatformInfraSetDataAtPathPayload + platformInfraSetManyAndCommit( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: PlatformInfraSetManyAndCommitInput! + ): PlatformInfraSetManyAndCommitPayload """ Provision an S3 bucket for a logical bucket in the database. @@ -1527,6 +1875,14 @@ type Mutation { input: ProvisionBucketInput! ): ProvisionBucketPayload + """Updates a single `ContentPreset` using a unique key and a patch.""" + updateContentPreset( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateContentPresetInput! + ): UpdateContentPresetPayload + """Updates a single `DbPreset` using a unique key and a patch.""" updateDbPreset( """ @@ -2311,6 +2667,36 @@ type PlatformInfraInsertNodeAtPathPayload { result: UUID } +"""All input for the `platformInfraInsertNodesAtPaths` mutation.""" +input PlatformInfraInsertNodesAtPathsInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + datas: [JSON] + kidsList: JSON + ktreeList: JSON + paths: JSON + root: UUID + sId: UUID +} + +"""The output of our `platformInfraInsertNodesAtPaths` mutation.""" +type PlatformInfraInsertNodesAtPathsPayload { + """ + The 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 + result: UUID +} + """ Content-addressed Merkle tree objects keyed by UUID v5 hash of data + children """ @@ -2587,6 +2973,44 @@ input PlatformInfraRefPatch { storeId: UUID } +"""All input for the `platformInfraSetAndCommit` mutation.""" +input PlatformInfraSetAndCommitInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + data: JSON + kids: [UUID] + ktree: [String] + message: String + path: [String] + refname: String + sId: UUID + storeId: UUID +} + +"""The output of our `platformInfraSetAndCommit` mutation.""" +type PlatformInfraSetAndCommitPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """An edge for our `PlatformInfraCommit`. May be used by Relay 1.""" + platformInfraCommitEdge( + """The method to use when ordering `PlatformInfraCommit`.""" + orderBy: [PlatformInfraCommitOrderBy!]! = [PRIMARY_KEY_ASC] + ): PlatformInfraCommitEdge + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + result: PlatformInfraCommit +} + """All input for the `platformInfraSetDataAtPath` mutation.""" input PlatformInfraSetDataAtPathInput { """ @@ -2615,6 +3039,41 @@ type PlatformInfraSetDataAtPathPayload { result: UUID } +"""All input for the `platformInfraSetManyAndCommit` mutation.""" +input PlatformInfraSetManyAndCommitInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + entries: JSON + message: String + refname: String + sId: UUID + storeId: UUID +} + +"""The output of our `platformInfraSetManyAndCommit` mutation.""" +type PlatformInfraSetManyAndCommitPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """An edge for our `PlatformInfraCommit`. May be used by Relay 1.""" + platformInfraCommitEdge( + """The method to use when ordering `PlatformInfraCommit`.""" + orderBy: [PlatformInfraCommitOrderBy!]! = [PRIMARY_KEY_ASC] + ): PlatformInfraCommitEdge + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + result: PlatformInfraCommit +} + """ Named stores — one per version-controlled tree (e.g. one graph, one definition set) """ @@ -3181,6 +3640,35 @@ type Query { """ _meta: MetaSchema + """Reads and enables pagination through a set of `ContentPreset`.""" + contentPresets( + """Read all values in the set after (below) this cursor.""" + after: Cursor + + """Read all values in the set before (above) this cursor.""" + before: Cursor + + """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 + + """The method to use when ordering `ContentPreset`.""" + orderBy: [ContentPresetOrderBy!] = [PRIMARY_KEY_ASC] + + """ + A filter to be used in determining which values should be returned by the collection. + """ + where: ContentPresetFilter + ): ContentPresetConnection + """Reads and enables pagination through a set of `DbPreset`.""" dbPresets( """Read all values in the set after (below) this cursor.""" @@ -3770,6 +4258,46 @@ input UUIDListFilter { overlaps: [UUID] } +"""All input for the `updateContentPreset` mutation.""" +input UpdateContentPresetInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + + """ + An object where the defined keys will be set on the `ContentPreset` being updated. + """ + contentPresetPatch: ContentPresetPatch! + + """Unique preset identifier""" + id: UUID! +} + +"""The output of our update `ContentPreset` mutation.""" +type UpdateContentPresetPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `ContentPreset` that was updated by this mutation.""" + contentPreset: ContentPreset + + """An edge for our `ContentPreset`. May be used by Relay 1.""" + contentPresetEdge( + """The method to use when ordering `ContentPreset`.""" + orderBy: [ContentPresetOrderBy!]! = [PRIMARY_KEY_ASC] + ): ContentPresetEdge + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query +} + """All input for the `updateDbPreset` mutation.""" input UpdateDbPresetInput { """ diff --git a/sdk/constructive-sdk/schemas/modules.graphql b/sdk/constructive-sdk/schemas/modules.graphql index f2eb2bbb56..ee97e6316d 100644 --- a/sdk/constructive-sdk/schemas/modules.graphql +++ b/sdk/constructive-sdk/schemas/modules.graphql @@ -3,7 +3,7 @@ type AgentModule { agentTableName: String! apiName: String databaseId: UUID! - defaultPermissions: [String] + defaultCapabilities: [String] entityField: String entityTableId: UUID hasAgents: Boolean! @@ -82,8 +82,8 @@ input AgentModuleFilter { """Filter by the object’s `databaseId` field.""" databaseId: UUIDFilter - """Filter by the object’s `defaultPermissions` field.""" - defaultPermissions: StringListFilter + """Filter by the object’s `defaultCapabilities` field.""" + defaultCapabilities: StringListFilter """Filter by the object’s `entityField` field.""" entityField: StringFilter @@ -191,7 +191,7 @@ input AgentModuleInput { agentTableName: String apiName: String databaseId: UUID! - defaultPermissions: [String] + defaultCapabilities: [String] entityField: String entityTableId: UUID hasAgents: Boolean @@ -235,8 +235,8 @@ enum AgentModuleOrderBy { API_NAME_DESC DATABASE_ID_ASC DATABASE_ID_DESC - DEFAULT_PERMISSIONS_ASC - DEFAULT_PERMISSIONS_DESC + DEFAULT_CAPABILITIES_ASC + DEFAULT_CAPABILITIES_DESC ENTITY_FIELD_ASC ENTITY_FIELD_DESC ENTITY_TABLE_ID_ASC @@ -312,7 +312,7 @@ input AgentModulePatch { agentTableName: String apiName: String databaseId: UUID - defaultPermissions: [String] + defaultCapabilities: [String] entityField: String entityTableId: UUID hasAgents: Boolean @@ -363,7 +363,7 @@ type ApiSurfaceModule { corsSettingsTableId: UUID! corsSettingsTableName: String! databaseId: UUID! - defaultPermissions: [String] + defaultCapabilities: [String] entityField: String entityTableId: UUID id: UUID! @@ -450,8 +450,8 @@ input ApiSurfaceModuleFilter { """Filter by the object’s `databaseId` field.""" databaseId: UUIDFilter - """Filter by the object’s `defaultPermissions` field.""" - defaultPermissions: StringListFilter + """Filter by the object’s `defaultCapabilities` field.""" + defaultCapabilities: StringListFilter """Filter by the object’s `entityField` field.""" entityField: StringFilter @@ -503,7 +503,7 @@ input ApiSurfaceModuleInput { corsSettingsTableId: UUID corsSettingsTableName: String databaseId: UUID! - defaultPermissions: [String] + defaultCapabilities: [String] entityField: String entityTableId: UUID id: UUID @@ -540,8 +540,8 @@ enum ApiSurfaceModuleOrderBy { CORS_SETTINGS_TABLE_NAME_DESC DATABASE_ID_ASC DATABASE_ID_DESC - DEFAULT_PERMISSIONS_ASC - DEFAULT_PERMISSIONS_DESC + DEFAULT_CAPABILITIES_ASC + DEFAULT_CAPABILITIES_DESC ENTITY_FIELD_ASC ENTITY_FIELD_DESC ENTITY_TABLE_ID_ASC @@ -582,7 +582,7 @@ input ApiSurfaceModulePatch { corsSettingsTableId: UUID corsSettingsTableName: String databaseId: UUID - defaultPermissions: [String] + defaultCapabilities: [String] entityField: String entityTableId: UUID id: UUID @@ -606,7 +606,7 @@ type AppModule { catalogModule: CatalogModule catalogModuleId: UUID databaseId: UUID! - defaultPermissions: [String] + defaultCapabilities: [String] entityField: String entityTableId: UUID id: UUID! @@ -681,8 +681,8 @@ input AppModuleFilter { """Filter by the object’s `databaseId` field.""" databaseId: UUIDFilter - """Filter by the object’s `defaultPermissions` field.""" - defaultPermissions: StringListFilter + """Filter by the object’s `defaultCapabilities` field.""" + defaultCapabilities: StringListFilter """Filter by the object’s `entityField` field.""" entityField: StringFilter @@ -736,7 +736,7 @@ input AppModuleInput { appsTableName: String catalogModuleId: UUID databaseId: UUID! - defaultPermissions: [String] + defaultCapabilities: [String] entityField: String entityTableId: UUID id: UUID @@ -767,8 +767,8 @@ enum AppModuleOrderBy { CATALOG_MODULE_ID_DESC DATABASE_ID_ASC DATABASE_ID_DESC - DEFAULT_PERMISSIONS_ASC - DEFAULT_PERMISSIONS_DESC + DEFAULT_CAPABILITIES_ASC + DEFAULT_CAPABILITIES_DESC ENTITY_FIELD_ASC ENTITY_FIELD_DESC ENTITY_TABLE_ID_ASC @@ -809,7 +809,7 @@ input AppModulePatch { appsTableName: String catalogModuleId: UUID databaseId: UUID - defaultPermissions: [String] + defaultCapabilities: [String] entityField: String entityTableId: UUID id: UUID @@ -878,8 +878,8 @@ type BillingModule { balancesTableId: UUID! balancesTableName: String! databaseId: UUID! + defaultCapabilities: [String] defaultMeterCatalog: JSON - defaultPermissions: [String] id: UUID! ledgerTableId: UUID! ledgerTableName: String! @@ -949,12 +949,12 @@ input BillingModuleFilter { """Filter by the object’s `databaseId` field.""" databaseId: UUIDFilter + """Filter by the object’s `defaultCapabilities` field.""" + defaultCapabilities: StringListFilter + """Filter by the object’s `defaultMeterCatalog` field.""" defaultMeterCatalog: JSONFilter - """Filter by the object’s `defaultPermissions` field.""" - defaultPermissions: StringListFilter - """Filter by the object’s `id` field.""" id: UUIDFilter @@ -1034,8 +1034,8 @@ input BillingModuleInput { balancesTableId: UUID balancesTableName: String databaseId: UUID! + defaultCapabilities: [String] defaultMeterCatalog: JSON - defaultPermissions: [String] id: UUID ledgerTableId: UUID ledgerTableName: String @@ -1070,10 +1070,10 @@ enum BillingModuleOrderBy { BALANCES_TABLE_NAME_DESC DATABASE_ID_ASC DATABASE_ID_DESC + DEFAULT_CAPABILITIES_ASC + DEFAULT_CAPABILITIES_DESC DEFAULT_METER_CATALOG_ASC DEFAULT_METER_CATALOG_DESC - DEFAULT_PERMISSIONS_ASC - DEFAULT_PERMISSIONS_DESC ID_ASC ID_DESC LEDGER_TABLE_ID_ASC @@ -1131,8 +1131,8 @@ input BillingModulePatch { balancesTableId: UUID balancesTableName: String databaseId: UUID + defaultCapabilities: [String] defaultMeterCatalog: JSON - defaultPermissions: [String] id: UUID ledgerTableId: UUID ledgerTableName: String @@ -1161,16 +1161,22 @@ type BillingProviderModule { apiName: String billingCustomersTableId: UUID! billingCustomersTableName: String! + billingInvoicesTableId: UUID! + billingInvoicesTableName: String! billingPricesTableId: UUID! billingPricesTableName: String! billingProductsTableId: UUID! billingProductsTableName: String! + billingRefundsTableId: UUID! + billingRefundsTableName: String! billingSubscriptionsTableId: UUID! billingSubscriptionsTableName: String! billingWebhookEventsTableId: UUID! billingWebhookEventsTableName: String! databaseId: UUID! id: UUID! + listPendingUsageSyncFunction: String! + markUsageSyncedFunction: String! prefix: String pricesTableId: UUID privateApiName: String @@ -1178,8 +1184,10 @@ type BillingProviderModule { processBillingEventFunction: String! productsTableId: UUID provider: String! + recordRefundFunction: String! schemaId: UUID! subscriptionsTableId: UUID + upsertInvoiceFunction: String! } """A connection to a list of `BillingProviderModule` values.""" @@ -1226,6 +1234,12 @@ input BillingProviderModuleFilter { """Filter by the object’s `billingCustomersTableName` field.""" billingCustomersTableName: StringFilter + """Filter by the object’s `billingInvoicesTableId` field.""" + billingInvoicesTableId: UUIDFilter + + """Filter by the object’s `billingInvoicesTableName` field.""" + billingInvoicesTableName: StringFilter + """Filter by the object’s `billingPricesTableId` field.""" billingPricesTableId: UUIDFilter @@ -1238,6 +1252,12 @@ input BillingProviderModuleFilter { """Filter by the object’s `billingProductsTableName` field.""" billingProductsTableName: StringFilter + """Filter by the object’s `billingRefundsTableId` field.""" + billingRefundsTableId: UUIDFilter + + """Filter by the object’s `billingRefundsTableName` field.""" + billingRefundsTableName: StringFilter + """Filter by the object’s `billingSubscriptionsTableId` field.""" billingSubscriptionsTableId: UUIDFilter @@ -1256,6 +1276,12 @@ input BillingProviderModuleFilter { """Filter by the object’s `id` field.""" id: UUIDFilter + """Filter by the object’s `listPendingUsageSyncFunction` field.""" + listPendingUsageSyncFunction: StringFilter + + """Filter by the object’s `markUsageSyncedFunction` field.""" + markUsageSyncedFunction: StringFilter + """Negates the expression.""" not: BillingProviderModuleFilter @@ -1283,11 +1309,17 @@ input BillingProviderModuleFilter { """Filter by the object’s `provider` field.""" provider: StringFilter + """Filter by the object’s `recordRefundFunction` field.""" + recordRefundFunction: StringFilter + """Filter by the object’s `schemaId` field.""" schemaId: UUIDFilter """Filter by the object’s `subscriptionsTableId` field.""" subscriptionsTableId: UUIDFilter + + """Filter by the object’s `upsertInvoiceFunction` field.""" + upsertInvoiceFunction: StringFilter } """An input for mutations affecting `BillingProviderModule`""" @@ -1295,16 +1327,22 @@ input BillingProviderModuleInput { apiName: String billingCustomersTableId: UUID billingCustomersTableName: String + billingInvoicesTableId: UUID + billingInvoicesTableName: String billingPricesTableId: UUID billingPricesTableName: String billingProductsTableId: UUID billingProductsTableName: String + billingRefundsTableId: UUID + billingRefundsTableName: String billingSubscriptionsTableId: UUID billingSubscriptionsTableName: String billingWebhookEventsTableId: UUID billingWebhookEventsTableName: String databaseId: UUID! id: UUID + listPendingUsageSyncFunction: String + markUsageSyncedFunction: String prefix: String pricesTableId: UUID privateApiName: String @@ -1312,8 +1350,10 @@ input BillingProviderModuleInput { processBillingEventFunction: String productsTableId: UUID provider: String + recordRefundFunction: String schemaId: UUID subscriptionsTableId: UUID + upsertInvoiceFunction: String } """Methods to use when ordering `BillingProviderModule`.""" @@ -1324,6 +1364,10 @@ enum BillingProviderModuleOrderBy { BILLING_CUSTOMERS_TABLE_ID_DESC BILLING_CUSTOMERS_TABLE_NAME_ASC BILLING_CUSTOMERS_TABLE_NAME_DESC + BILLING_INVOICES_TABLE_ID_ASC + BILLING_INVOICES_TABLE_ID_DESC + BILLING_INVOICES_TABLE_NAME_ASC + BILLING_INVOICES_TABLE_NAME_DESC BILLING_PRICES_TABLE_ID_ASC BILLING_PRICES_TABLE_ID_DESC BILLING_PRICES_TABLE_NAME_ASC @@ -1332,6 +1376,10 @@ enum BillingProviderModuleOrderBy { BILLING_PRODUCTS_TABLE_ID_DESC BILLING_PRODUCTS_TABLE_NAME_ASC BILLING_PRODUCTS_TABLE_NAME_DESC + BILLING_REFUNDS_TABLE_ID_ASC + BILLING_REFUNDS_TABLE_ID_DESC + BILLING_REFUNDS_TABLE_NAME_ASC + BILLING_REFUNDS_TABLE_NAME_DESC BILLING_SUBSCRIPTIONS_TABLE_ID_ASC BILLING_SUBSCRIPTIONS_TABLE_ID_DESC BILLING_SUBSCRIPTIONS_TABLE_NAME_ASC @@ -1344,6 +1392,10 @@ enum BillingProviderModuleOrderBy { DATABASE_ID_DESC ID_ASC ID_DESC + LIST_PENDING_USAGE_SYNC_FUNCTION_ASC + LIST_PENDING_USAGE_SYNC_FUNCTION_DESC + MARK_USAGE_SYNCED_FUNCTION_ASC + MARK_USAGE_SYNCED_FUNCTION_DESC NATURAL PREFIX_ASC PREFIX_DESC @@ -1361,10 +1413,14 @@ enum BillingProviderModuleOrderBy { PRODUCTS_TABLE_ID_DESC PROVIDER_ASC PROVIDER_DESC + RECORD_REFUND_FUNCTION_ASC + RECORD_REFUND_FUNCTION_DESC SCHEMA_ID_ASC SCHEMA_ID_DESC SUBSCRIPTIONS_TABLE_ID_ASC SUBSCRIPTIONS_TABLE_ID_DESC + UPSERT_INVOICE_FUNCTION_ASC + UPSERT_INVOICE_FUNCTION_DESC } """ @@ -1374,16 +1430,22 @@ input BillingProviderModulePatch { apiName: String billingCustomersTableId: UUID billingCustomersTableName: String + billingInvoicesTableId: UUID + billingInvoicesTableName: String billingPricesTableId: UUID billingPricesTableName: String billingProductsTableId: UUID billingProductsTableName: String + billingRefundsTableId: UUID + billingRefundsTableName: String billingSubscriptionsTableId: UUID billingSubscriptionsTableName: String billingWebhookEventsTableId: UUID billingWebhookEventsTableName: String databaseId: UUID id: UUID + listPendingUsageSyncFunction: String + markUsageSyncedFunction: String prefix: String pricesTableId: UUID privateApiName: String @@ -1391,8 +1453,10 @@ input BillingProviderModulePatch { processBillingEventFunction: String productsTableId: UUID provider: String + recordRefundFunction: String schemaId: UUID subscriptionsTableId: UUID + upsertInvoiceFunction: String } """ @@ -2544,6 +2608,293 @@ input BooleanFilter { notIn: [Boolean!] } +type CapabilitiesModule { + actorTableId: UUID! + apiName: String + bitlen: Int! + + """Reads and enables pagination through a set of `DataCapabilitiesField`.""" + dataCapabilitiesFields( + """Read all values in the set after (below) this cursor.""" + after: Cursor + + """Read all values in the set before (above) this cursor.""" + before: Cursor + + """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 + + """The method to use when ordering `DataCapabilitiesField`.""" + orderBy: [DataCapabilitiesFieldOrderBy!] = [PRIMARY_KEY_ASC] + + """ + A filter to be used in determining which values should be returned by the collection. + """ + where: DataCapabilitiesFieldFilter + ): DataCapabilitiesFieldConnection! + databaseId: UUID! + defaultTableId: UUID! + defaultTableName: String! + entityField: String + entityTableId: UUID + getByMask: String! + getMask: String! + getMaskByName: String! + getPaddedMask: String! + id: UUID! + prefix: String! + privateApiName: String + privateSchemaId: UUID! + privateSchemaName: String + publicSchemaName: String + schemaId: UUID! + scope: String! + tableId: UUID! + tableName: String! +} + +"""A connection to a list of `CapabilitiesModule` values.""" +type CapabilitiesModuleConnection { + """ + A list of edges which contains the `CapabilitiesModule` and cursor to aid in pagination. + """ + edges: [CapabilitiesModuleEdge]! + + """A list of `CapabilitiesModule` objects.""" + nodes: [CapabilitiesModule]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! + + """ + The count of *all* `CapabilitiesModule` you could get from the connection. + """ + totalCount: Int! +} + +"""A `CapabilitiesModule` edge in the connection.""" +type CapabilitiesModuleEdge { + """A cursor for use in pagination.""" + cursor: Cursor + + """The `CapabilitiesModule` at the end of the edge.""" + node: CapabilitiesModule +} + +""" +A filter to be used against `CapabilitiesModule` object types. All fields are combined with a logical ‘and.’ +""" +input CapabilitiesModuleFilter { + """Filter by the object’s `actorTableId` field.""" + actorTableId: UUIDFilter + + """Checks for all expressions in this list.""" + and: [CapabilitiesModuleFilter!] + + """Filter by the object’s `apiName` field.""" + apiName: StringFilter + + """Filter by the object’s `bitlen` field.""" + bitlen: IntFilter + + """Filter by the object’s `dataCapabilitiesFields` relation.""" + dataCapabilitiesFields: CapabilitiesModuleToManyDataCapabilitiesFieldFilter + + """`dataCapabilitiesFields` exist.""" + dataCapabilitiesFieldsExist: Boolean + + """Filter by the object’s `databaseId` field.""" + databaseId: UUIDFilter + + """Filter by the object’s `defaultTableId` field.""" + defaultTableId: UUIDFilter + + """Filter by the object’s `defaultTableName` field.""" + defaultTableName: StringFilter + + """Filter by the object’s `entityField` field.""" + entityField: StringFilter + + """Filter by the object’s `entityTableId` field.""" + entityTableId: UUIDFilter + + """Filter by the object’s `getByMask` field.""" + getByMask: StringFilter + + """Filter by the object’s `getMask` field.""" + getMask: StringFilter + + """Filter by the object’s `getMaskByName` field.""" + getMaskByName: StringFilter + + """Filter by the object’s `getPaddedMask` field.""" + getPaddedMask: StringFilter + + """Filter by the object’s `id` field.""" + id: UUIDFilter + + """Negates the expression.""" + not: CapabilitiesModuleFilter + + """Checks for any expressions in this list.""" + or: [CapabilitiesModuleFilter!] + + """Filter by the object’s `prefix` field.""" + prefix: StringFilter + + """Filter by the object’s `privateApiName` field.""" + privateApiName: StringFilter + + """Filter by the object’s `privateSchemaId` field.""" + privateSchemaId: UUIDFilter + + """Filter by the object’s `privateSchemaName` field.""" + privateSchemaName: StringFilter + + """Filter by the object’s `publicSchemaName` field.""" + publicSchemaName: StringFilter + + """Filter by the object’s `schemaId` field.""" + schemaId: UUIDFilter + + """Filter by the object’s `scope` field.""" + scope: StringFilter + + """Filter by the object’s `tableId` field.""" + tableId: UUIDFilter + + """Filter by the object’s `tableName` field.""" + tableName: StringFilter +} + +"""An input for mutations affecting `CapabilitiesModule`""" +input CapabilitiesModuleInput { + actorTableId: UUID + apiName: String + bitlen: Int + databaseId: UUID! + defaultTableId: UUID + defaultTableName: String + entityField: String + entityTableId: UUID + getByMask: String + getMask: String + getMaskByName: String + getPaddedMask: String + id: UUID + prefix: String + privateApiName: String + privateSchemaId: UUID + privateSchemaName: String + publicSchemaName: String + schemaId: UUID + scope: String! + tableId: UUID + tableName: String +} + +"""Methods to use when ordering `CapabilitiesModule`.""" +enum CapabilitiesModuleOrderBy { + ACTOR_TABLE_ID_ASC + ACTOR_TABLE_ID_DESC + API_NAME_ASC + API_NAME_DESC + BITLEN_ASC + BITLEN_DESC + DATABASE_ID_ASC + DATABASE_ID_DESC + DEFAULT_TABLE_ID_ASC + DEFAULT_TABLE_ID_DESC + DEFAULT_TABLE_NAME_ASC + DEFAULT_TABLE_NAME_DESC + ENTITY_FIELD_ASC + ENTITY_FIELD_DESC + ENTITY_TABLE_ID_ASC + ENTITY_TABLE_ID_DESC + GET_BY_MASK_ASC + GET_BY_MASK_DESC + GET_MASK_ASC + GET_MASK_BY_NAME_ASC + GET_MASK_BY_NAME_DESC + GET_MASK_DESC + GET_PADDED_MASK_ASC + GET_PADDED_MASK_DESC + ID_ASC + ID_DESC + NATURAL + PREFIX_ASC + PREFIX_DESC + PRIMARY_KEY_ASC + PRIMARY_KEY_DESC + PRIVATE_API_NAME_ASC + PRIVATE_API_NAME_DESC + PRIVATE_SCHEMA_ID_ASC + PRIVATE_SCHEMA_ID_DESC + PRIVATE_SCHEMA_NAME_ASC + PRIVATE_SCHEMA_NAME_DESC + PUBLIC_SCHEMA_NAME_ASC + PUBLIC_SCHEMA_NAME_DESC + SCHEMA_ID_ASC + SCHEMA_ID_DESC + SCOPE_ASC + SCOPE_DESC + TABLE_ID_ASC + TABLE_ID_DESC + TABLE_NAME_ASC + TABLE_NAME_DESC +} + +""" +Represents an update to a `CapabilitiesModule`. Fields that are set will be updated. +""" +input CapabilitiesModulePatch { + actorTableId: UUID + apiName: String + bitlen: Int + databaseId: UUID + defaultTableId: UUID + defaultTableName: String + entityField: String + entityTableId: UUID + getByMask: String + getMask: String + getMaskByName: String + getPaddedMask: String + id: UUID + prefix: String + privateApiName: String + privateSchemaId: UUID + privateSchemaName: String + publicSchemaName: String + schemaId: UUID + scope: String + tableId: UUID + tableName: String +} + +""" +A filter to be used against many `DataCapabilitiesField` object types. All fields are combined with a logical ‘and.’ +""" +input CapabilitiesModuleToManyDataCapabilitiesFieldFilter { + """Filters to entities where every related entity matches.""" + every: DataCapabilitiesFieldFilter + + """Filters to entities where no related entity matches.""" + none: DataCapabilitiesFieldFilter + + """Filters to entities where at least one related entity matches.""" + some: DataCapabilitiesFieldFilter +} + type CatalogModule { apiName: String @@ -2608,10 +2959,12 @@ type CatalogModule { ): AppModuleConnection! appsTableId: UUID! appsTableName: String! + bindingsTableId: UUID! + bindingsTableName: String! bucketsTableId: UUID! bucketsTableName: String! databaseId: UUID! - defaultPermissions: [String] + defaultCapabilities: [String] """Reads and enables pagination through a set of `DomainModule`.""" domainModules( @@ -2791,6 +3144,12 @@ input CatalogModuleFilter { """Filter by the object’s `appsTableName` field.""" appsTableName: StringFilter + """Filter by the object’s `bindingsTableId` field.""" + bindingsTableId: UUIDFilter + + """Filter by the object’s `bindingsTableName` field.""" + bindingsTableName: StringFilter + """Filter by the object’s `bucketsTableId` field.""" bucketsTableId: UUIDFilter @@ -2800,8 +3159,8 @@ input CatalogModuleFilter { """Filter by the object’s `databaseId` field.""" databaseId: UUIDFilter - """Filter by the object’s `defaultPermissions` field.""" - defaultPermissions: StringListFilter + """Filter by the object’s `defaultCapabilities` field.""" + defaultCapabilities: StringListFilter """Filter by the object’s `domainModules` relation.""" domainModules: CatalogModuleToManyDomainModuleFilter @@ -2925,10 +3284,12 @@ input CatalogModuleInput { apisTableName: String appsTableId: UUID appsTableName: String + bindingsTableId: UUID + bindingsTableName: String bucketsTableId: UUID bucketsTableName: String databaseId: UUID! - defaultPermissions: [String] + defaultCapabilities: [String] domainsTableId: UUID domainsTableName: String entityTableId: UUID @@ -2973,14 +3334,18 @@ enum CatalogModuleOrderBy { APPS_TABLE_ID_DESC APPS_TABLE_NAME_ASC APPS_TABLE_NAME_DESC + BINDINGS_TABLE_ID_ASC + BINDINGS_TABLE_ID_DESC + BINDINGS_TABLE_NAME_ASC + BINDINGS_TABLE_NAME_DESC BUCKETS_TABLE_ID_ASC BUCKETS_TABLE_ID_DESC BUCKETS_TABLE_NAME_ASC BUCKETS_TABLE_NAME_DESC DATABASE_ID_ASC DATABASE_ID_DESC - DEFAULT_PERMISSIONS_ASC - DEFAULT_PERMISSIONS_DESC + DEFAULT_CAPABILITIES_ASC + DEFAULT_CAPABILITIES_DESC DOMAINS_TABLE_ID_ASC DOMAINS_TABLE_ID_DESC DOMAINS_TABLE_NAME_ASC @@ -3055,10 +3420,12 @@ input CatalogModulePatch { apisTableName: String appsTableId: UUID appsTableName: String + bindingsTableId: UUID + bindingsTableName: String bucketsTableId: UUID bucketsTableName: String databaseId: UUID - defaultPermissions: [String] + defaultCapabilities: [String] domainsTableId: UUID domainsTableName: String entityTableId: UUID @@ -3670,6 +4037,212 @@ type ConstructBlueprintPayload { result: UUID } +type ContentPresetModule { + apiName: String + contentPresetsTableId: UUID! + createdAt: Datetime! + databaseId: UUID! + entityTableId: UUID + id: UUID! + + """ + Reads a single `MerkleStoreModule` that is related to this `ContentPresetModule`. + """ + merkleStoreModule: MerkleStoreModule + merkleStoreModuleId: UUID! + policies: JSON + prefix: String! + privateApiName: String + privateSchemaId: UUID! + privateSchemaName: String + provisions: JSON + publicSchemaId: UUID! + publicSchemaName: String + scope: String! + storeName: String! +} + +"""A connection to a list of `ContentPresetModule` values.""" +type ContentPresetModuleConnection { + """ + A list of edges which contains the `ContentPresetModule` and cursor to aid in pagination. + """ + edges: [ContentPresetModuleEdge]! + + """A list of `ContentPresetModule` objects.""" + nodes: [ContentPresetModule]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! + + """ + The count of *all* `ContentPresetModule` you could get from the connection. + """ + totalCount: Int! +} + +"""A `ContentPresetModule` edge in the connection.""" +type ContentPresetModuleEdge { + """A cursor for use in pagination.""" + cursor: Cursor + + """The `ContentPresetModule` at the end of the edge.""" + node: ContentPresetModule +} + +""" +A filter to be used against `ContentPresetModule` object types. All fields are combined with a logical ‘and.’ +""" +input ContentPresetModuleFilter { + """Checks for all expressions in this list.""" + and: [ContentPresetModuleFilter!] + + """Filter by the object’s `apiName` field.""" + apiName: StringFilter + + """Filter by the object’s `contentPresetsTableId` field.""" + contentPresetsTableId: UUIDFilter + + """Filter by the object’s `createdAt` field.""" + createdAt: DatetimeFilter + + """Filter by the object’s `databaseId` field.""" + databaseId: UUIDFilter + + """Filter by the object’s `entityTableId` field.""" + entityTableId: UUIDFilter + + """Filter by the object’s `id` field.""" + id: UUIDFilter + + """Filter by the object’s `merkleStoreModule` relation.""" + merkleStoreModule: MerkleStoreModuleFilter + + """Filter by the object’s `merkleStoreModuleId` field.""" + merkleStoreModuleId: UUIDFilter + + """Negates the expression.""" + not: ContentPresetModuleFilter + + """Checks for any expressions in this list.""" + or: [ContentPresetModuleFilter!] + + """Filter by the object’s `policies` field.""" + policies: JSONFilter + + """Filter by the object’s `prefix` field.""" + prefix: StringFilter + + """Filter by the object’s `privateApiName` field.""" + privateApiName: StringFilter + + """Filter by the object’s `privateSchemaId` field.""" + privateSchemaId: UUIDFilter + + """Filter by the object’s `privateSchemaName` field.""" + privateSchemaName: StringFilter + + """Filter by the object’s `provisions` field.""" + provisions: JSONFilter + + """Filter by the object’s `publicSchemaId` field.""" + publicSchemaId: UUIDFilter + + """Filter by the object’s `publicSchemaName` field.""" + publicSchemaName: StringFilter + + """Filter by the object’s `scope` field.""" + scope: StringFilter + + """Filter by the object’s `storeName` field.""" + storeName: StringFilter +} + +"""An input for mutations affecting `ContentPresetModule`""" +input ContentPresetModuleInput { + apiName: String + contentPresetsTableId: UUID + createdAt: Datetime + databaseId: UUID! + entityTableId: UUID + id: UUID + merkleStoreModuleId: UUID! + policies: JSON + prefix: String! + privateApiName: String + privateSchemaId: UUID + privateSchemaName: String + provisions: JSON + publicSchemaId: UUID + publicSchemaName: String + scope: String! + storeName: String! +} + +"""Methods to use when ordering `ContentPresetModule`.""" +enum ContentPresetModuleOrderBy { + API_NAME_ASC + API_NAME_DESC + CONTENT_PRESETS_TABLE_ID_ASC + CONTENT_PRESETS_TABLE_ID_DESC + CREATED_AT_ASC + CREATED_AT_DESC + DATABASE_ID_ASC + DATABASE_ID_DESC + ENTITY_TABLE_ID_ASC + ENTITY_TABLE_ID_DESC + ID_ASC + ID_DESC + MERKLE_STORE_MODULE_ID_ASC + MERKLE_STORE_MODULE_ID_DESC + NATURAL + POLICIES_ASC + POLICIES_DESC + PREFIX_ASC + PREFIX_DESC + PRIMARY_KEY_ASC + PRIMARY_KEY_DESC + PRIVATE_API_NAME_ASC + PRIVATE_API_NAME_DESC + PRIVATE_SCHEMA_ID_ASC + PRIVATE_SCHEMA_ID_DESC + PRIVATE_SCHEMA_NAME_ASC + PRIVATE_SCHEMA_NAME_DESC + PROVISIONS_ASC + PROVISIONS_DESC + PUBLIC_SCHEMA_ID_ASC + PUBLIC_SCHEMA_ID_DESC + PUBLIC_SCHEMA_NAME_ASC + PUBLIC_SCHEMA_NAME_DESC + SCOPE_ASC + SCOPE_DESC + STORE_NAME_ASC + STORE_NAME_DESC +} + +""" +Represents an update to a `ContentPresetModule`. Fields that are set will be updated. +""" +input ContentPresetModulePatch { + apiName: String + contentPresetsTableId: UUID + createdAt: Datetime + databaseId: UUID + entityTableId: UUID + id: UUID + merkleStoreModuleId: UUID + policies: JSON + prefix: String + privateApiName: String + privateSchemaId: UUID + privateSchemaName: String + provisions: JSON + publicSchemaId: UUID + publicSchemaName: String + scope: String + storeName: String +} + """All input for the `copyTemplateToBlueprint` mutation.""" input CopyTemplateToBlueprintInput { """ @@ -3979,6 +4552,41 @@ type CreateBlueprintTemplatePayload { query: Query } +"""All input for the create `CapabilitiesModule` mutation.""" +input CreateCapabilitiesModuleInput { + """The `CapabilitiesModule` to be created by this mutation.""" + capabilitiesModule: CapabilitiesModuleInput! + + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String +} + +"""The output of our create `CapabilitiesModule` mutation.""" +type CreateCapabilitiesModulePayload { + """The `CapabilitiesModule` that was created by this mutation.""" + capabilitiesModule: CapabilitiesModule + + """An edge for our `CapabilitiesModule`. May be used by Relay 1.""" + capabilitiesModuleEdge( + """The method to use when ordering `CapabilitiesModule`.""" + orderBy: [CapabilitiesModuleOrderBy!]! = [PRIMARY_KEY_ASC] + ): CapabilitiesModuleEdge + + """ + The 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 create `CatalogModule` mutation.""" input CreateCatalogModuleInput { """The `CatalogModule` to be created by this mutation.""" @@ -4119,6 +4727,41 @@ type CreateConnectedAccountsModulePayload { query: Query } +"""All input for the create `ContentPresetModule` mutation.""" +input CreateContentPresetModuleInput { + """ + An arbitrary 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 `ContentPresetModule` to be created by this mutation.""" + contentPresetModule: ContentPresetModuleInput! +} + +"""The output of our create `ContentPresetModule` mutation.""" +type CreateContentPresetModulePayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `ContentPresetModule` that was created by this mutation.""" + contentPresetModule: ContentPresetModule + + """An edge for our `ContentPresetModule`. May be used by Relay 1.""" + contentPresetModuleEdge( + """The method to use when ordering `ContentPresetModule`.""" + orderBy: [ContentPresetModuleOrderBy!]! = [PRIMARY_KEY_ASC] + ): ContentPresetModuleEdge + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query +} + """All input for the create `CryptoAddressesModule` mutation.""" input CreateCryptoAddressesModuleInput { """ @@ -4189,6 +4832,41 @@ type CreateCryptoAuthModulePayload { query: Query } +"""All input for the create `DataCapabilitiesField` mutation.""" +input CreateDataCapabilitiesFieldInput { + """ + An arbitrary 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 `DataCapabilitiesField` to be created by this mutation.""" + dataCapabilitiesField: DataCapabilitiesFieldInput! +} + +"""The output of our create `DataCapabilitiesField` mutation.""" +type CreateDataCapabilitiesFieldPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `DataCapabilitiesField` that was created by this mutation.""" + dataCapabilitiesField: DataCapabilitiesField + + """An edge for our `DataCapabilitiesField`. May be used by Relay 1.""" + dataCapabilitiesFieldEdge( + """The method to use when ordering `DataCapabilitiesField`.""" + orderBy: [DataCapabilitiesFieldOrderBy!]! = [PRIMARY_KEY_ASC] + ): DataCapabilitiesFieldEdge + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query +} + """All input for the create `DatabaseProvisionModule` mutation.""" input CreateDatabaseProvisionModuleInput { """ @@ -4539,6 +5217,41 @@ type CreateDomainModulePayload { query: Query } +"""All input for the create `EmailSenderModule` mutation.""" +input CreateEmailSenderModuleInput { + """ + An arbitrary 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 `EmailSenderModule` to be created by this mutation.""" + emailSenderModule: EmailSenderModuleInput! +} + +"""The output of our create `EmailSenderModule` mutation.""" +type CreateEmailSenderModulePayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `EmailSenderModule` that was created by this mutation.""" + emailSenderModule: EmailSenderModule + + """An edge for our `EmailSenderModule`. May be used by Relay 1.""" + emailSenderModuleEdge( + """The method to use when ordering `EmailSenderModule`.""" + orderBy: [EmailSenderModuleOrderBy!]! = [PRIMARY_KEY_ASC] + ): EmailSenderModuleEdge + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query +} + """All input for the create `EmailsModule` mutation.""" input CreateEmailsModuleInput { """ @@ -4644,6 +5357,41 @@ type CreateEventsModulePayload { query: Query } +"""All input for the create `FileRefField` mutation.""" +input CreateFileRefFieldInput { + """ + An arbitrary 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 `FileRefField` to be created by this mutation.""" + fileRefField: FileRefFieldInput! +} + +"""The output of our create `FileRefField` mutation.""" +type CreateFileRefFieldPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `FileRefField` that was created by this mutation.""" + fileRefField: FileRefField + + """An edge for our `FileRefField`. May be used by Relay 1.""" + fileRefFieldEdge( + """The method to use when ordering `FileRefField`.""" + orderBy: [FileRefFieldOrderBy!]! = [PRIMARY_KEY_ASC] + ): FileRefFieldEdge + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query +} + """All input for the create `FunctionDeploymentModule` mutation.""" input CreateFunctionDeploymentModuleInput { """ @@ -5379,34 +6127,34 @@ type CreateNotificationsModulePayload { query: Query } -"""All input for the create `PagesModule` mutation.""" -input CreatePagesModuleInput { +"""All input for the create `OauthRequestsModule` mutation.""" +input CreateOauthRequestsModuleInput { """ An arbitrary 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 `PagesModule` to be created by this mutation.""" - pagesModule: PagesModuleInput! + """The `OauthRequestsModule` to be created by this mutation.""" + oauthRequestsModule: OauthRequestsModuleInput! } -"""The output of our create `PagesModule` mutation.""" -type CreatePagesModulePayload { +"""The output of our create `OauthRequestsModule` mutation.""" +type CreateOauthRequestsModulePayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `PagesModule` that was created by this mutation.""" - pagesModule: PagesModule + """The `OauthRequestsModule` that was created by this mutation.""" + oauthRequestsModule: OauthRequestsModule - """An edge for our `PagesModule`. May be used by Relay 1.""" - pagesModuleEdge( - """The method to use when ordering `PagesModule`.""" - orderBy: [PagesModuleOrderBy!]! = [PRIMARY_KEY_ASC] - ): PagesModuleEdge + """An edge for our `OauthRequestsModule`. May be used by Relay 1.""" + oauthRequestsModuleEdge( + """The method to use when ordering `OauthRequestsModule`.""" + orderBy: [OauthRequestsModuleOrderBy!]! = [PRIMARY_KEY_ASC] + ): OauthRequestsModuleEdge """ Our root query field type. Allows us to run any query from our mutation payload. @@ -5414,34 +6162,34 @@ type CreatePagesModulePayload { query: Query } -"""All input for the create `PermissionsModule` mutation.""" -input CreatePermissionsModuleInput { +"""All input for the create `PagesModule` mutation.""" +input CreatePagesModuleInput { """ An arbitrary 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 `PermissionsModule` to be created by this mutation.""" - permissionsModule: PermissionsModuleInput! + """The `PagesModule` to be created by this mutation.""" + pagesModule: PagesModuleInput! } -"""The output of our create `PermissionsModule` mutation.""" -type CreatePermissionsModulePayload { +"""The output of our create `PagesModule` mutation.""" +type CreatePagesModulePayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `PermissionsModule` that was created by this mutation.""" - permissionsModule: PermissionsModule + """The `PagesModule` that was created by this mutation.""" + pagesModule: PagesModule - """An edge for our `PermissionsModule`. May be used by Relay 1.""" - permissionsModuleEdge( - """The method to use when ordering `PermissionsModule`.""" - orderBy: [PermissionsModuleOrderBy!]! = [PRIMARY_KEY_ASC] - ): PermissionsModuleEdge + """An edge for our `PagesModule`. May be used by Relay 1.""" + pagesModuleEdge( + """The method to use when ordering `PagesModule`.""" + orderBy: [PagesModuleOrderBy!]! = [PRIMARY_KEY_ASC] + ): PagesModuleEdge """ Our root query field type. Allows us to run any query from our mutation payload. @@ -5834,6 +6582,41 @@ type CreateRouteModulePayload { ): RouteModuleEdge } +"""All input for the create `ScopeTypesModule` mutation.""" +input CreateScopeTypesModuleInput { + """ + An arbitrary 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 `ScopeTypesModule` to be created by this mutation.""" + scopeTypesModule: ScopeTypesModuleInput! +} + +"""The output of our create `ScopeTypesModule` mutation.""" +type CreateScopeTypesModulePayload { + """ + The 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 + + """The `ScopeTypesModule` that was created by this mutation.""" + scopeTypesModule: ScopeTypesModule + + """An edge for our `ScopeTypesModule`. May be used by Relay 1.""" + scopeTypesModuleEdge( + """The method to use when ordering `ScopeTypesModule`.""" + orderBy: [ScopeTypesModuleOrderBy!]! = [PRIMARY_KEY_ASC] + ): ScopeTypesModuleEdge +} + """All input for the create `SecureTableProvision` mutation.""" input CreateSecureTableProvisionInput { """ @@ -6184,6 +6967,41 @@ type CreateUserSettingsModulePayload { ): UserSettingsModuleEdge } +"""All input for the create `UserSettingsSecurityModule` mutation.""" +input CreateUserSettingsSecurityModuleInput { + """ + An arbitrary 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 `UserSettingsSecurityModule` to be created by this mutation.""" + userSettingsSecurityModule: UserSettingsSecurityModuleInput! +} + +"""The output of our create `UserSettingsSecurityModule` mutation.""" +type CreateUserSettingsSecurityModulePayload { + """ + The 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 + + """The `UserSettingsSecurityModule` that was created by this mutation.""" + userSettingsSecurityModule: UserSettingsSecurityModule + + """An edge for our `UserSettingsSecurityModule`. May be used by Relay 1.""" + userSettingsSecurityModuleEdge( + """The method to use when ordering `UserSettingsSecurityModule`.""" + orderBy: [UserSettingsSecurityModuleOrderBy!]! = [PRIMARY_KEY_ASC] + ): UserSettingsSecurityModuleEdge +} + """All input for the create `UserStateModule` mutation.""" input CreateUserStateModuleInput { """ @@ -6678,6 +7496,163 @@ input CryptoAuthModulePatch { """A location in a connection that can be used for resuming pagination.""" scalar Cursor +type DataCapabilitiesField { + """ + Reads a single `CapabilitiesModule` that is related to this `DataCapabilitiesField`. + """ + capabilitiesModule: CapabilitiesModule + capabilitiesModuleId: UUID! + databaseId: UUID! + fieldId: UUID! + fromFieldId: UUID + id: UUID! + mappingFieldId: UUID + mappingKeyFieldId: UUID + mappingTableId: UUID + mode: String! + subsetGuard: Boolean! + tableId: UUID! +} + +"""A connection to a list of `DataCapabilitiesField` values.""" +type DataCapabilitiesFieldConnection { + """ + A list of edges which contains the `DataCapabilitiesField` and cursor to aid in pagination. + """ + edges: [DataCapabilitiesFieldEdge]! + + """A list of `DataCapabilitiesField` objects.""" + nodes: [DataCapabilitiesField]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! + + """ + The count of *all* `DataCapabilitiesField` you could get from the connection. + """ + totalCount: Int! +} + +"""A `DataCapabilitiesField` edge in the connection.""" +type DataCapabilitiesFieldEdge { + """A cursor for use in pagination.""" + cursor: Cursor + + """The `DataCapabilitiesField` at the end of the edge.""" + node: DataCapabilitiesField +} + +""" +A filter to be used against `DataCapabilitiesField` object types. All fields are combined with a logical ‘and.’ +""" +input DataCapabilitiesFieldFilter { + """Checks for all expressions in this list.""" + and: [DataCapabilitiesFieldFilter!] + + """Filter by the object’s `capabilitiesModule` relation.""" + capabilitiesModule: CapabilitiesModuleFilter + + """Filter by the object’s `capabilitiesModuleId` field.""" + capabilitiesModuleId: UUIDFilter + + """Filter by the object’s `databaseId` field.""" + databaseId: UUIDFilter + + """Filter by the object’s `fieldId` field.""" + fieldId: UUIDFilter + + """Filter by the object’s `fromFieldId` field.""" + fromFieldId: UUIDFilter + + """Filter by the object’s `id` field.""" + id: UUIDFilter + + """Filter by the object’s `mappingFieldId` field.""" + mappingFieldId: UUIDFilter + + """Filter by the object’s `mappingKeyFieldId` field.""" + mappingKeyFieldId: UUIDFilter + + """Filter by the object’s `mappingTableId` field.""" + mappingTableId: UUIDFilter + + """Filter by the object’s `mode` field.""" + mode: StringFilter + + """Negates the expression.""" + not: DataCapabilitiesFieldFilter + + """Checks for any expressions in this list.""" + or: [DataCapabilitiesFieldFilter!] + + """Filter by the object’s `subsetGuard` field.""" + subsetGuard: BooleanFilter + + """Filter by the object’s `tableId` field.""" + tableId: UUIDFilter +} + +"""An input for mutations affecting `DataCapabilitiesField`""" +input DataCapabilitiesFieldInput { + capabilitiesModuleId: UUID! + databaseId: UUID! + fieldId: UUID! + fromFieldId: UUID + id: UUID + mappingFieldId: UUID + mappingKeyFieldId: UUID + mappingTableId: UUID + mode: String + subsetGuard: Boolean + tableId: UUID! +} + +"""Methods to use when ordering `DataCapabilitiesField`.""" +enum DataCapabilitiesFieldOrderBy { + CAPABILITIES_MODULE_ID_ASC + CAPABILITIES_MODULE_ID_DESC + DATABASE_ID_ASC + DATABASE_ID_DESC + FIELD_ID_ASC + FIELD_ID_DESC + FROM_FIELD_ID_ASC + FROM_FIELD_ID_DESC + ID_ASC + ID_DESC + MAPPING_FIELD_ID_ASC + MAPPING_FIELD_ID_DESC + MAPPING_KEY_FIELD_ID_ASC + MAPPING_KEY_FIELD_ID_DESC + MAPPING_TABLE_ID_ASC + MAPPING_TABLE_ID_DESC + MODE_ASC + MODE_DESC + NATURAL + PRIMARY_KEY_ASC + PRIMARY_KEY_DESC + SUBSET_GUARD_ASC + SUBSET_GUARD_DESC + TABLE_ID_ASC + TABLE_ID_DESC +} + +""" +Represents an update to a `DataCapabilitiesField`. Fields that are set will be updated. +""" +input DataCapabilitiesFieldPatch { + capabilitiesModuleId: UUID + databaseId: UUID + fieldId: UUID + fromFieldId: UUID + id: UUID + mappingFieldId: UUID + mappingKeyFieldId: UUID + mappingTableId: UUID + mode: String + subsetGuard: Boolean + tableId: UUID +} + """ Tracks database provisioning requests and their status. The BEFORE INSERT trigger creates the database and sets database_id before RLS policies are evaluated. """ @@ -6719,7 +7694,7 @@ type DatabaseProvisionModule { id: UUID! """ - JSONB array of modules to install. Each element is either a string ("users_module") or a [name, options] tuple (["permissions_module", {"scope": "app"}]) + JSONB array of modules to install. Each element is either a string ("users_module") or a [name, options] tuple (["capabilities_module", {"scope": "app"}]) """ modules: JSON! @@ -6882,7 +7857,7 @@ input DatabaseProvisionModuleInput { id: UUID """ - JSONB array of modules to install. Each element is either a string ("users_module") or a [name, options] tuple (["permissions_module", {"scope": "app"}]) + JSONB array of modules to install. Each element is either a string ("users_module") or a [name, options] tuple (["capabilities_module", {"scope": "app"}]) """ modules: JSON @@ -6993,7 +7968,7 @@ input DatabaseProvisionModulePatch { id: UUID """ - JSONB array of modules to install. Each element is either a string ("users_module") or a [name, options] tuple (["permissions_module", {"scope": "app"}]) + JSONB array of modules to install. Each element is either a string ("users_module") or a [name, options] tuple (["capabilities_module", {"scope": "app"}]) """ modules: JSON @@ -7023,7 +7998,7 @@ type DatabaseSettingsModule { databaseId: UUID! databaseSettingsTableId: UUID! databaseSettingsTableName: String! - defaultPermissions: [String] + defaultCapabilities: [String] entityField: String entityTableId: UUID id: UUID! @@ -7089,8 +8064,8 @@ input DatabaseSettingsModuleFilter { """Filter by the object’s `databaseSettingsTableName` field.""" databaseSettingsTableName: StringFilter - """Filter by the object’s `defaultPermissions` field.""" - defaultPermissions: StringListFilter + """Filter by the object’s `defaultCapabilities` field.""" + defaultCapabilities: StringListFilter """Filter by the object’s `entityField` field.""" entityField: StringFilter @@ -7153,7 +8128,7 @@ input DatabaseSettingsModuleInput { databaseId: UUID! databaseSettingsTableId: UUID databaseSettingsTableName: String - defaultPermissions: [String] + defaultCapabilities: [String] entityField: String entityTableId: UUID id: UUID @@ -7182,8 +8157,8 @@ enum DatabaseSettingsModuleOrderBy { DATABASE_SETTINGS_TABLE_ID_DESC DATABASE_SETTINGS_TABLE_NAME_ASC DATABASE_SETTINGS_TABLE_NAME_DESC - DEFAULT_PERMISSIONS_ASC - DEFAULT_PERMISSIONS_DESC + DEFAULT_CAPABILITIES_ASC + DEFAULT_CAPABILITIES_DESC ENTITY_FIELD_ASC ENTITY_FIELD_DESC ENTITY_TABLE_ID_ASC @@ -7229,7 +8204,7 @@ input DatabaseSettingsModulePatch { databaseId: UUID databaseSettingsTableId: UUID databaseSettingsTableName: String - defaultPermissions: [String] + defaultCapabilities: [String] entityField: String entityTableId: UUID id: UUID @@ -7926,7 +8901,7 @@ type DbUsageModule { collectDbQueryStatsFunction: String! collectDbTableStatsFunction: String! databaseId: UUID! - defaultPermissions: [String] + defaultCapabilities: [String] entityField: String id: UUID! interval: String! @@ -7996,8 +8971,8 @@ input DbUsageModuleFilter { """Filter by the object’s `databaseId` field.""" databaseId: UUIDFilter - """Filter by the object’s `defaultPermissions` field.""" - defaultPermissions: StringListFilter + """Filter by the object’s `defaultCapabilities` field.""" + defaultCapabilities: StringListFilter """Filter by the object’s `entityField` field.""" entityField: StringFilter @@ -8078,7 +9053,7 @@ input DbUsageModuleInput { collectDbQueryStatsFunction: String collectDbTableStatsFunction: String databaseId: UUID! - defaultPermissions: [String] + defaultCapabilities: [String] entityField: String id: UUID interval: String @@ -8113,8 +9088,8 @@ enum DbUsageModuleOrderBy { COLLECT_DB_TABLE_STATS_FUNCTION_DESC DATABASE_ID_ASC DATABASE_ID_DESC - DEFAULT_PERMISSIONS_ASC - DEFAULT_PERMISSIONS_DESC + DEFAULT_CAPABILITIES_ASC + DEFAULT_CAPABILITIES_DESC ENTITY_FIELD_ASC ENTITY_FIELD_DESC ID_ASC @@ -8172,7 +9147,7 @@ input DbUsageModulePatch { collectDbQueryStatsFunction: String collectDbTableStatsFunction: String databaseId: UUID - defaultPermissions: [String] + defaultCapabilities: [String] entityField: String id: UUID interval: String @@ -8545,6 +9520,39 @@ type DeleteBlueprintTemplatePayload { query: Query } +"""All input for the `deleteCapabilitiesModule` mutation.""" +input DeleteCapabilitiesModuleInput { + """ + An arbitrary 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 `CapabilitiesModule` mutation.""" +type DeleteCapabilitiesModulePayload { + """The `CapabilitiesModule` that was deleted by this mutation.""" + capabilitiesModule: CapabilitiesModule + + """An edge for our `CapabilitiesModule`. May be used by Relay 1.""" + capabilitiesModuleEdge( + """The method to use when ordering `CapabilitiesModule`.""" + orderBy: [CapabilitiesModuleOrderBy!]! = [PRIMARY_KEY_ASC] + ): CapabilitiesModuleEdge + + """ + The 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 `deleteCatalogModule` mutation.""" input DeleteCatalogModuleInput { """ @@ -8677,6 +9685,39 @@ type DeleteConnectedAccountsModulePayload { query: Query } +"""All input for the `deleteContentPresetModule` mutation.""" +input DeleteContentPresetModuleInput { + """ + An arbitrary 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 `ContentPresetModule` mutation.""" +type DeleteContentPresetModulePayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `ContentPresetModule` that was deleted by this mutation.""" + contentPresetModule: ContentPresetModule + + """An edge for our `ContentPresetModule`. May be used by Relay 1.""" + contentPresetModuleEdge( + """The method to use when ordering `ContentPresetModule`.""" + orderBy: [ContentPresetModuleOrderBy!]! = [PRIMARY_KEY_ASC] + ): ContentPresetModuleEdge + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query +} + """All input for the `deleteCryptoAddressesModule` mutation.""" input DeleteCryptoAddressesModuleInput { """ @@ -8743,6 +9784,39 @@ type DeleteCryptoAuthModulePayload { query: Query } +"""All input for the `deleteDataCapabilitiesField` mutation.""" +input DeleteDataCapabilitiesFieldInput { + """ + An arbitrary 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 `DataCapabilitiesField` mutation.""" +type DeleteDataCapabilitiesFieldPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `DataCapabilitiesField` that was deleted by this mutation.""" + dataCapabilitiesField: DataCapabilitiesField + + """An edge for our `DataCapabilitiesField`. May be used by Relay 1.""" + dataCapabilitiesFieldEdge( + """The method to use when ordering `DataCapabilitiesField`.""" + orderBy: [DataCapabilitiesFieldOrderBy!]! = [PRIMARY_KEY_ASC] + ): DataCapabilitiesFieldEdge + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query +} + """All input for the `deleteDatabaseProvisionModule` mutation.""" input DeleteDatabaseProvisionModuleInput { """ @@ -9073,6 +10147,39 @@ type DeleteDomainModulePayload { query: Query } +"""All input for the `deleteEmailSenderModule` mutation.""" +input DeleteEmailSenderModuleInput { + """ + An arbitrary 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 `EmailSenderModule` mutation.""" +type DeleteEmailSenderModulePayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `EmailSenderModule` that was deleted by this mutation.""" + emailSenderModule: EmailSenderModule + + """An edge for our `EmailSenderModule`. May be used by Relay 1.""" + emailSenderModuleEdge( + """The method to use when ordering `EmailSenderModule`.""" + orderBy: [EmailSenderModuleOrderBy!]! = [PRIMARY_KEY_ASC] + ): EmailSenderModuleEdge + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query +} + """All input for the `deleteEmailsModule` mutation.""" input DeleteEmailsModuleInput { """ @@ -9174,6 +10281,39 @@ type DeleteEventsModulePayload { query: Query } +"""All input for the `deleteFileRefField` mutation.""" +input DeleteFileRefFieldInput { + """ + An arbitrary 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 `FileRefField` mutation.""" +type DeleteFileRefFieldPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `FileRefField` that was deleted by this mutation.""" + fileRefField: FileRefField + + """An edge for our `FileRefField`. May be used by Relay 1.""" + fileRefFieldEdge( + """The method to use when ordering `FileRefField`.""" + orderBy: [FileRefFieldOrderBy!]! = [PRIMARY_KEY_ASC] + ): FileRefFieldEdge + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query +} + """All input for the `deleteFunctionDeploymentModule` mutation.""" input DeleteFunctionDeploymentModuleInput { """ @@ -9867,8 +11007,8 @@ type DeleteNotificationsModulePayload { query: Query } -"""All input for the `deletePagesModule` mutation.""" -input DeletePagesModuleInput { +"""All input for the `deleteOauthRequestsModule` mutation.""" +input DeleteOauthRequestsModuleInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. @@ -9877,22 +11017,22 @@ input DeletePagesModuleInput { id: UUID! } -"""The output of our delete `PagesModule` mutation.""" -type DeletePagesModulePayload { +"""The output of our delete `OauthRequestsModule` mutation.""" +type DeleteOauthRequestsModulePayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `PagesModule` that was deleted by this mutation.""" - pagesModule: PagesModule + """The `OauthRequestsModule` that was deleted by this mutation.""" + oauthRequestsModule: OauthRequestsModule - """An edge for our `PagesModule`. May be used by Relay 1.""" - pagesModuleEdge( - """The method to use when ordering `PagesModule`.""" - orderBy: [PagesModuleOrderBy!]! = [PRIMARY_KEY_ASC] - ): PagesModuleEdge + """An edge for our `OauthRequestsModule`. May be used by Relay 1.""" + oauthRequestsModuleEdge( + """The method to use when ordering `OauthRequestsModule`.""" + orderBy: [OauthRequestsModuleOrderBy!]! = [PRIMARY_KEY_ASC] + ): OauthRequestsModuleEdge """ Our root query field type. Allows us to run any query from our mutation payload. @@ -9900,8 +11040,8 @@ type DeletePagesModulePayload { query: Query } -"""All input for the `deletePermissionsModule` mutation.""" -input DeletePermissionsModuleInput { +"""All input for the `deletePagesModule` mutation.""" +input DeletePagesModuleInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. @@ -9910,22 +11050,22 @@ input DeletePermissionsModuleInput { id: UUID! } -"""The output of our delete `PermissionsModule` mutation.""" -type DeletePermissionsModulePayload { +"""The output of our delete `PagesModule` mutation.""" +type DeletePagesModulePayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `PermissionsModule` that was deleted by this mutation.""" - permissionsModule: PermissionsModule + """The `PagesModule` that was deleted by this mutation.""" + pagesModule: PagesModule - """An edge for our `PermissionsModule`. May be used by Relay 1.""" - permissionsModuleEdge( - """The method to use when ordering `PermissionsModule`.""" - orderBy: [PermissionsModuleOrderBy!]! = [PRIMARY_KEY_ASC] - ): PermissionsModuleEdge + """An edge for our `PagesModule`. May be used by Relay 1.""" + pagesModuleEdge( + """The method to use when ordering `PagesModule`.""" + orderBy: [PagesModuleOrderBy!]! = [PRIMARY_KEY_ASC] + ): PagesModuleEdge """ Our root query field type. Allows us to run any query from our mutation payload. @@ -10298,6 +11438,39 @@ type DeleteRouteModulePayload { ): RouteModuleEdge } +"""All input for the `deleteScopeTypesModule` mutation.""" +input DeleteScopeTypesModuleInput { + """ + An arbitrary 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 `ScopeTypesModule` mutation.""" +type DeleteScopeTypesModulePayload { + """ + The 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 + + """The `ScopeTypesModule` that was deleted by this mutation.""" + scopeTypesModule: ScopeTypesModule + + """An edge for our `ScopeTypesModule`. May be used by Relay 1.""" + scopeTypesModuleEdge( + """The method to use when ordering `ScopeTypesModule`.""" + orderBy: [ScopeTypesModuleOrderBy!]! = [PRIMARY_KEY_ASC] + ): ScopeTypesModuleEdge +} + """All input for the `deleteSecureTableProvision` mutation.""" input DeleteSecureTableProvisionInput { """ @@ -10630,6 +11803,39 @@ type DeleteUserSettingsModulePayload { ): UserSettingsModuleEdge } +"""All input for the `deleteUserSettingsSecurityModule` mutation.""" +input DeleteUserSettingsSecurityModuleInput { + """ + An arbitrary 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 `UserSettingsSecurityModule` mutation.""" +type DeleteUserSettingsSecurityModulePayload { + """ + The 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 + + """The `UserSettingsSecurityModule` that was deleted by this mutation.""" + userSettingsSecurityModule: UserSettingsSecurityModule + + """An edge for our `UserSettingsSecurityModule`. May be used by Relay 1.""" + userSettingsSecurityModuleEdge( + """The method to use when ordering `UserSettingsSecurityModule`.""" + orderBy: [UserSettingsSecurityModuleOrderBy!]! = [PRIMARY_KEY_ASC] + ): UserSettingsSecurityModuleEdge +} + """All input for the `deleteUserStateModule` mutation.""" input DeleteUserStateModuleInput { """ @@ -11076,7 +12282,7 @@ type DomainModule { catalogModule: CatalogModule catalogModuleId: UUID databaseId: UUID! - defaultPermissions: [String] + defaultCapabilities: [String] domainEventsTableId: UUID! domainEventsTableName: String! domainVerificationsTableId: UUID! @@ -11176,8 +12382,8 @@ input DomainModuleFilter { """Filter by the object’s `databaseId` field.""" databaseId: UUIDFilter - """Filter by the object’s `defaultPermissions` field.""" - defaultPermissions: StringListFilter + """Filter by the object’s `defaultCapabilities` field.""" + defaultCapabilities: StringListFilter """Filter by the object’s `domainEventsTableId` field.""" domainEventsTableId: UUIDFilter @@ -11257,7 +12463,7 @@ input DomainModuleInput { apiName: String catalogModuleId: UUID databaseId: UUID! - defaultPermissions: [String] + defaultCapabilities: [String] domainEventsTableId: UUID domainEventsTableName: String domainVerificationsTableId: UUID @@ -11288,8 +12494,8 @@ enum DomainModuleOrderBy { CATALOG_MODULE_ID_DESC DATABASE_ID_ASC DATABASE_ID_DESC - DEFAULT_PERMISSIONS_ASC - DEFAULT_PERMISSIONS_DESC + DEFAULT_CAPABILITIES_ASC + DEFAULT_CAPABILITIES_DESC DOMAINS_TABLE_ID_ASC DOMAINS_TABLE_ID_DESC DOMAINS_TABLE_NAME_ASC @@ -11342,7 +12548,7 @@ input DomainModulePatch { apiName: String catalogModuleId: UUID databaseId: UUID - defaultPermissions: [String] + defaultCapabilities: [String] domainEventsTableId: UUID domainEventsTableName: String domainVerificationsTableId: UUID @@ -11379,6 +12585,239 @@ input DomainModuleToManyRouteModuleFilter { some: RouteModuleFilter } +type EmailSenderModule { + apiName: String + databaseId: UUID! + defaultCapabilities: [String] + emailIdentitiesTableId: UUID! + emailIdentitiesTableName: String! + emailProviderAccountsTableId: UUID! + emailProviderAccountsTableName: String! + emailSiteIdentitiesTableId: UUID + emailSiteIdentitiesTableName: String! + entityField: String + entityTableId: UUID + id: UUID! + policies: JSON + prefix: String! + privateApiName: String + provisions: JSON + publicSchemaName: String + schemaId: UUID! + scope: String! + + """ + Reads a single `SiteSurfaceModule` that is related to this `EmailSenderModule`. + """ + siteSurfaceModule: SiteSurfaceModule + siteSurfaceModuleId: UUID +} + +"""A connection to a list of `EmailSenderModule` values.""" +type EmailSenderModuleConnection { + """ + A list of edges which contains the `EmailSenderModule` and cursor to aid in pagination. + """ + edges: [EmailSenderModuleEdge]! + + """A list of `EmailSenderModule` objects.""" + nodes: [EmailSenderModule]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! + + """ + The count of *all* `EmailSenderModule` you could get from the connection. + """ + totalCount: Int! +} + +"""A `EmailSenderModule` edge in the connection.""" +type EmailSenderModuleEdge { + """A cursor for use in pagination.""" + cursor: Cursor + + """The `EmailSenderModule` at the end of the edge.""" + node: EmailSenderModule +} + +""" +A filter to be used against `EmailSenderModule` object types. All fields are combined with a logical ‘and.’ +""" +input EmailSenderModuleFilter { + """Checks for all expressions in this list.""" + and: [EmailSenderModuleFilter!] + + """Filter by the object’s `apiName` field.""" + apiName: StringFilter + + """Filter by the object’s `databaseId` field.""" + databaseId: UUIDFilter + + """Filter by the object’s `defaultCapabilities` field.""" + defaultCapabilities: StringListFilter + + """Filter by the object’s `emailIdentitiesTableId` field.""" + emailIdentitiesTableId: UUIDFilter + + """Filter by the object’s `emailIdentitiesTableName` field.""" + emailIdentitiesTableName: StringFilter + + """Filter by the object’s `emailProviderAccountsTableId` field.""" + emailProviderAccountsTableId: UUIDFilter + + """Filter by the object’s `emailProviderAccountsTableName` field.""" + emailProviderAccountsTableName: StringFilter + + """Filter by the object’s `emailSiteIdentitiesTableId` field.""" + emailSiteIdentitiesTableId: UUIDFilter + + """Filter by the object’s `emailSiteIdentitiesTableName` field.""" + emailSiteIdentitiesTableName: StringFilter + + """Filter by the object’s `entityField` field.""" + entityField: StringFilter + + """Filter by the object’s `entityTableId` field.""" + entityTableId: UUIDFilter + + """Filter by the object’s `id` field.""" + id: UUIDFilter + + """Negates the expression.""" + not: EmailSenderModuleFilter + + """Checks for any expressions in this list.""" + or: [EmailSenderModuleFilter!] + + """Filter by the object’s `policies` field.""" + policies: JSONFilter + + """Filter by the object’s `prefix` field.""" + prefix: StringFilter + + """Filter by the object’s `privateApiName` field.""" + privateApiName: StringFilter + + """Filter by the object’s `provisions` field.""" + provisions: JSONFilter + + """Filter by the object’s `publicSchemaName` field.""" + publicSchemaName: StringFilter + + """Filter by the object’s `schemaId` field.""" + schemaId: UUIDFilter + + """Filter by the object’s `scope` field.""" + scope: StringFilter + + """Filter by the object’s `siteSurfaceModule` relation.""" + siteSurfaceModule: SiteSurfaceModuleFilter + + """A related `siteSurfaceModule` exists.""" + siteSurfaceModuleExists: Boolean + + """Filter by the object’s `siteSurfaceModuleId` field.""" + siteSurfaceModuleId: UUIDFilter +} + +"""An input for mutations affecting `EmailSenderModule`""" +input EmailSenderModuleInput { + apiName: String + databaseId: UUID! + defaultCapabilities: [String] + emailIdentitiesTableId: UUID + emailIdentitiesTableName: String + emailProviderAccountsTableId: UUID + emailProviderAccountsTableName: String + emailSiteIdentitiesTableId: UUID + emailSiteIdentitiesTableName: String + entityField: String + entityTableId: UUID + id: UUID + policies: JSON + prefix: String + privateApiName: String + provisions: JSON + publicSchemaName: String + schemaId: UUID + scope: String! + siteSurfaceModuleId: UUID +} + +"""Methods to use when ordering `EmailSenderModule`.""" +enum EmailSenderModuleOrderBy { + API_NAME_ASC + API_NAME_DESC + DATABASE_ID_ASC + DATABASE_ID_DESC + DEFAULT_CAPABILITIES_ASC + DEFAULT_CAPABILITIES_DESC + EMAIL_IDENTITIES_TABLE_ID_ASC + EMAIL_IDENTITIES_TABLE_ID_DESC + EMAIL_IDENTITIES_TABLE_NAME_ASC + EMAIL_IDENTITIES_TABLE_NAME_DESC + EMAIL_PROVIDER_ACCOUNTS_TABLE_ID_ASC + EMAIL_PROVIDER_ACCOUNTS_TABLE_ID_DESC + EMAIL_PROVIDER_ACCOUNTS_TABLE_NAME_ASC + EMAIL_PROVIDER_ACCOUNTS_TABLE_NAME_DESC + EMAIL_SITE_IDENTITIES_TABLE_ID_ASC + EMAIL_SITE_IDENTITIES_TABLE_ID_DESC + EMAIL_SITE_IDENTITIES_TABLE_NAME_ASC + EMAIL_SITE_IDENTITIES_TABLE_NAME_DESC + ENTITY_FIELD_ASC + ENTITY_FIELD_DESC + ENTITY_TABLE_ID_ASC + ENTITY_TABLE_ID_DESC + ID_ASC + ID_DESC + NATURAL + POLICIES_ASC + POLICIES_DESC + PREFIX_ASC + PREFIX_DESC + PRIMARY_KEY_ASC + PRIMARY_KEY_DESC + PRIVATE_API_NAME_ASC + PRIVATE_API_NAME_DESC + PROVISIONS_ASC + PROVISIONS_DESC + PUBLIC_SCHEMA_NAME_ASC + PUBLIC_SCHEMA_NAME_DESC + SCHEMA_ID_ASC + SCHEMA_ID_DESC + SCOPE_ASC + SCOPE_DESC + SITE_SURFACE_MODULE_ID_ASC + SITE_SURFACE_MODULE_ID_DESC +} + +""" +Represents an update to a `EmailSenderModule`. Fields that are set will be updated. +""" +input EmailSenderModulePatch { + apiName: String + databaseId: UUID + defaultCapabilities: [String] + emailIdentitiesTableId: UUID + emailIdentitiesTableName: String + emailProviderAccountsTableId: UUID + emailProviderAccountsTableName: String + emailSiteIdentitiesTableId: UUID + emailSiteIdentitiesTableName: String + entityField: String + entityTableId: UUID + id: UUID + policies: JSON + prefix: String + privateApiName: String + provisions: JSON + publicSchemaName: String + schemaId: UUID + scope: String + siteSurfaceModuleId: UUID +} + type EmailsModule { apiName: String databaseId: UUID! @@ -11513,7 +12952,7 @@ input EmailsModulePatch { """ Provisions a new membership entity type. Each INSERT creates an entity table, registers a membership type, - and installs the required modules (permissions, memberships, limits) plus optional modules (profiles, levels, invites). + and installs the required modules (capabilities, memberships, limits) plus optional modules (profiles, levels, invites). Uses provision_membership_table() internally. Graceful: duplicate (database_id, prefix) pairs are silently skipped via the unique constraint (use INSERT ... ON CONFLICT DO NOTHING). Policy behavior: by default the five entity-table RLS policies are applied (gated by is_visible). @@ -11540,7 +12979,7 @@ type EntityTypeProvision { - policies (jsonb array) RLS policy overrides. NULL = apply defaults from apply_function_security(). Creates {prefix}_function_definitions (or {prefix}_{key}_function_definitions for non-default keys) with entity-scoped RLS and a job trigger dispatching function:provision tasks. - Registers manage_functions + invoke_functions permission bits on first provision. + Registers manage_functions + invoke_functions capability bits on first provision. Example: functions := '[{}]'::jsonb """ functions: JSON @@ -11551,9 +12990,9 @@ type EntityTypeProvision { Each element recognizes (all optional): - key (text) module discriminator. Defaults to 'default'. - policies (jsonb array) RLS policy overrides. NULL = apply defaults from apply_graph_security(). - Registers manage_graphs + execute_graphs permission bits on first provision. + Registers manage_graphs + execute_graphs capability bits on first provision. Graph module requires a merkle_store_module_id dependency, so entity_type_provision - only registers permissions here. The graph module itself must be provisioned + only registers capabilities here. The graph module itself must be provisioned separately with the merkle store dependency resolved. Example: graphs := '[{}]'::jsonb """ @@ -11598,8 +13037,11 @@ type EntityTypeProvision { """ Whether to provision profiles_module for this type. Defaults to false. - Profiles provide named permission roles (e.g. 'Editor', 'Viewer') with pre-configured permission bitmasks. - When true, creates profile tables and applies profiles security. + Profiles provide named capability roles (e.g. 'Editor', 'Viewer') with pre-configured capability bitmasks. + When true, creates profile tables and applies profiles security. A membership may hold + any number of profiles: the membership_profiles assignment table holds every profile a + membership holds and the membership mask is granted | bit_or(held profile masks), with + memberships.profile_id kept as a pointer at one held profile. """ hasProfiles: Boolean! @@ -11630,7 +13072,7 @@ type EntityTypeProvision { - policies (jsonb array) RLS policy overrides. NULL = apply defaults from apply_namespace_security(). Creates {prefix}_namespaces (or {prefix}_{key}_namespaces for non-default keys) with entity-scoped RLS (AuthzEntityMembership) and a rename proxy trigger. - Registers manage_namespaces permission bit on first provision. + Registers manage_namespaces capability bit on first provision. Example: namespaces := '[{}]'::jsonb """ namespaces: JSON @@ -11663,7 +13105,7 @@ type EntityTypeProvision { outGraphsTableId: UUID """ - Output: array of installed module labels (e.g. ARRAY['permissions_module:data_room', 'memberships_module:data_room', 'invites_module:data_room']). + Output: array of installed module labels (e.g. ARRAY['capabilities_module:data_room', 'memberships_module:data_room', 'invites_module:data_room']). Populated by the trigger. Useful for verifying which modules were provisioned. """ outInstalledModules: [String] @@ -11717,7 +13159,7 @@ type EntityTypeProvision { """ SQL prefix used for table and module naming, e.g. 'data_room', 'team_channel'. Required. - Drives entity table name (prefix || 's' by default), module labels (permissions_module:prefix), + Drives entity table name (prefix || 's' by default), module labels (capabilities_module:prefix), and membership table names (prefix_memberships, prefix_members, etc.). Must be unique per database — the (database_id, prefix) constraint ensures graceful ON CONFLICT DO NOTHING. """ @@ -11732,8 +13174,8 @@ type EntityTypeProvision { Defaults (applied when table_provision IS NULL and skip_entity_policies=false): - SELECT (parent_member): parent entity members can see child entities (only when is_visible=true) - SELECT (self_member): direct members of the entity can see it - - INSERT: create_entity permission on the parent entity - - UPDATE: admin_entity permission on the entity itself + - INSERT: create_entity capability on the parent entity + - UPDATE: admin_entity capability on the entity itself - DELETE: owner of the entity can delete it """ skipEntityPolicies: Boolean! @@ -11753,7 +13195,7 @@ type EntityTypeProvision { - 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 + - restrict_reads (boolean) require read_files capability 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 @@ -11781,7 +13223,7 @@ type EntityTypeProvision { """ Single jsonb object describing the full security setup to apply to the entity table. - Uses the same vocabulary as metaschema_modules_public.provision_table() and blueprint tables[] + Uses the same vocabulary as metaschema_modules_private.provision_table() and blueprint tables[] entries, so an entity table is configured the same way an ordinary blueprint table is. Defaults to NULL; when non-NULL, the five default policies are implicitly replaced by table_provision.policies[] (is_visible becomes a no-op on this path). @@ -11992,7 +13434,7 @@ input EntityTypeProvisionInput { - policies (jsonb array) RLS policy overrides. NULL = apply defaults from apply_function_security(). Creates {prefix}_function_definitions (or {prefix}_{key}_function_definitions for non-default keys) with entity-scoped RLS and a job trigger dispatching function:provision tasks. - Registers manage_functions + invoke_functions permission bits on first provision. + Registers manage_functions + invoke_functions capability bits on first provision. Example: functions := '[{}]'::jsonb """ functions: JSON @@ -12003,9 +13445,9 @@ input EntityTypeProvisionInput { Each element recognizes (all optional): - key (text) module discriminator. Defaults to 'default'. - policies (jsonb array) RLS policy overrides. NULL = apply defaults from apply_graph_security(). - Registers manage_graphs + execute_graphs permission bits on first provision. + Registers manage_graphs + execute_graphs capability bits on first provision. Graph module requires a merkle_store_module_id dependency, so entity_type_provision - only registers permissions here. The graph module itself must be provisioned + only registers capabilities here. The graph module itself must be provisioned separately with the merkle store dependency resolved. Example: graphs := '[{}]'::jsonb """ @@ -12050,8 +13492,11 @@ input EntityTypeProvisionInput { """ Whether to provision profiles_module for this type. Defaults to false. - Profiles provide named permission roles (e.g. 'Editor', 'Viewer') with pre-configured permission bitmasks. - When true, creates profile tables and applies profiles security. + Profiles provide named capability roles (e.g. 'Editor', 'Viewer') with pre-configured capability bitmasks. + When true, creates profile tables and applies profiles security. A membership may hold + any number of profiles: the membership_profiles assignment table holds every profile a + membership holds and the membership mask is granted | bit_or(held profile masks), with + memberships.profile_id kept as a pointer at one held profile. """ hasProfiles: Boolean @@ -12082,7 +13527,7 @@ input EntityTypeProvisionInput { - policies (jsonb array) RLS policy overrides. NULL = apply defaults from apply_namespace_security(). Creates {prefix}_namespaces (or {prefix}_{key}_namespaces for non-default keys) with entity-scoped RLS (AuthzEntityMembership) and a rename proxy trigger. - Registers manage_namespaces permission bit on first provision. + Registers manage_namespaces capability bit on first provision. Example: namespaces := '[{}]'::jsonb """ namespaces: JSON @@ -12115,7 +13560,7 @@ input EntityTypeProvisionInput { outGraphsTableId: UUID """ - Output: array of installed module labels (e.g. ARRAY['permissions_module:data_room', 'memberships_module:data_room', 'invites_module:data_room']). + Output: array of installed module labels (e.g. ARRAY['capabilities_module:data_room', 'memberships_module:data_room', 'invites_module:data_room']). Populated by the trigger. Useful for verifying which modules were provisioned. """ outInstalledModules: [String] @@ -12169,7 +13614,7 @@ input EntityTypeProvisionInput { """ SQL prefix used for table and module naming, e.g. 'data_room', 'team_channel'. Required. - Drives entity table name (prefix || 's' by default), module labels (permissions_module:prefix), + Drives entity table name (prefix || 's' by default), module labels (capabilities_module:prefix), and membership table names (prefix_memberships, prefix_members, etc.). Must be unique per database — the (database_id, prefix) constraint ensures graceful ON CONFLICT DO NOTHING. """ @@ -12184,8 +13629,8 @@ input EntityTypeProvisionInput { Defaults (applied when table_provision IS NULL and skip_entity_policies=false): - SELECT (parent_member): parent entity members can see child entities (only when is_visible=true) - SELECT (self_member): direct members of the entity can see it - - INSERT: create_entity permission on the parent entity - - UPDATE: admin_entity permission on the entity itself + - INSERT: create_entity capability on the parent entity + - UPDATE: admin_entity capability on the entity itself - DELETE: owner of the entity can delete it """ skipEntityPolicies: Boolean @@ -12205,7 +13650,7 @@ input EntityTypeProvisionInput { - 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 + - restrict_reads (boolean) require read_files capability 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 @@ -12233,7 +13678,7 @@ input EntityTypeProvisionInput { """ Single jsonb object describing the full security setup to apply to the entity table. - Uses the same vocabulary as metaschema_modules_public.provision_table() and blueprint tables[] + Uses the same vocabulary as metaschema_modules_private.provision_table() and blueprint tables[] entries, so an entity table is configured the same way an ordinary blueprint table is. Defaults to NULL; when non-NULL, the five default policies are implicitly replaced by table_provision.policies[] (is_visible becomes a no-op on this path). @@ -12372,7 +13817,7 @@ input EntityTypeProvisionPatch { - policies (jsonb array) RLS policy overrides. NULL = apply defaults from apply_function_security(). Creates {prefix}_function_definitions (or {prefix}_{key}_function_definitions for non-default keys) with entity-scoped RLS and a job trigger dispatching function:provision tasks. - Registers manage_functions + invoke_functions permission bits on first provision. + Registers manage_functions + invoke_functions capability bits on first provision. Example: functions := '[{}]'::jsonb """ functions: JSON @@ -12383,9 +13828,9 @@ input EntityTypeProvisionPatch { Each element recognizes (all optional): - key (text) module discriminator. Defaults to 'default'. - policies (jsonb array) RLS policy overrides. NULL = apply defaults from apply_graph_security(). - Registers manage_graphs + execute_graphs permission bits on first provision. + Registers manage_graphs + execute_graphs capability bits on first provision. Graph module requires a merkle_store_module_id dependency, so entity_type_provision - only registers permissions here. The graph module itself must be provisioned + only registers capabilities here. The graph module itself must be provisioned separately with the merkle store dependency resolved. Example: graphs := '[{}]'::jsonb """ @@ -12430,8 +13875,11 @@ input EntityTypeProvisionPatch { """ Whether to provision profiles_module for this type. Defaults to false. - Profiles provide named permission roles (e.g. 'Editor', 'Viewer') with pre-configured permission bitmasks. - When true, creates profile tables and applies profiles security. + Profiles provide named capability roles (e.g. 'Editor', 'Viewer') with pre-configured capability bitmasks. + When true, creates profile tables and applies profiles security. A membership may hold + any number of profiles: the membership_profiles assignment table holds every profile a + membership holds and the membership mask is granted | bit_or(held profile masks), with + memberships.profile_id kept as a pointer at one held profile. """ hasProfiles: Boolean @@ -12462,7 +13910,7 @@ input EntityTypeProvisionPatch { - policies (jsonb array) RLS policy overrides. NULL = apply defaults from apply_namespace_security(). Creates {prefix}_namespaces (or {prefix}_{key}_namespaces for non-default keys) with entity-scoped RLS (AuthzEntityMembership) and a rename proxy trigger. - Registers manage_namespaces permission bit on first provision. + Registers manage_namespaces capability bit on first provision. Example: namespaces := '[{}]'::jsonb """ namespaces: JSON @@ -12495,7 +13943,7 @@ input EntityTypeProvisionPatch { outGraphsTableId: UUID """ - Output: array of installed module labels (e.g. ARRAY['permissions_module:data_room', 'memberships_module:data_room', 'invites_module:data_room']). + Output: array of installed module labels (e.g. ARRAY['capabilities_module:data_room', 'memberships_module:data_room', 'invites_module:data_room']). Populated by the trigger. Useful for verifying which modules were provisioned. """ outInstalledModules: [String] @@ -12549,7 +13997,7 @@ input EntityTypeProvisionPatch { """ SQL prefix used for table and module naming, e.g. 'data_room', 'team_channel'. Required. - Drives entity table name (prefix || 's' by default), module labels (permissions_module:prefix), + Drives entity table name (prefix || 's' by default), module labels (capabilities_module:prefix), and membership table names (prefix_memberships, prefix_members, etc.). Must be unique per database — the (database_id, prefix) constraint ensures graceful ON CONFLICT DO NOTHING. """ @@ -12564,8 +14012,8 @@ input EntityTypeProvisionPatch { Defaults (applied when table_provision IS NULL and skip_entity_policies=false): - SELECT (parent_member): parent entity members can see child entities (only when is_visible=true) - SELECT (self_member): direct members of the entity can see it - - INSERT: create_entity permission on the parent entity - - UPDATE: admin_entity permission on the entity itself + - INSERT: create_entity capability on the parent entity + - UPDATE: admin_entity capability on the entity itself - DELETE: owner of the entity can delete it """ skipEntityPolicies: Boolean @@ -12585,7 +14033,7 @@ input EntityTypeProvisionPatch { - 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 + - restrict_reads (boolean) require read_files capability 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 @@ -12613,7 +14061,7 @@ input EntityTypeProvisionPatch { """ Single jsonb object describing the full security setup to apply to the entity table. - Uses the same vocabulary as metaschema_modules_public.provision_table() and blueprint tables[] + Uses the same vocabulary as metaschema_modules_private.provision_table() and blueprint tables[] entries, so an entity table is configured the same way an ordinary blueprint table is. Defaults to NULL; when non-NULL, the five default policies are implicitly replaced by table_provision.policies[] (is_visible becomes a no-op on this path). @@ -12651,7 +14099,7 @@ type EventsModule { actorTableId: UUID! apiName: String databaseId: UUID! - defaultPermissions: [String] + defaultCapabilities: [String] entityField: String entityTableId: UUID eventAggregatesTableId: UUID! @@ -12660,6 +14108,7 @@ type EventsModule { eventTypesTableName: String! eventsTableId: UUID! eventsTableName: String! + expireGrants: String! grantAchievement: String! id: UUID! interval: String! @@ -12676,9 +14125,11 @@ type EventsModule { privateSchemaId: UUID! privateSchemaName: String publicSchemaName: String + recomputeCapabilities: String! recordEvent: String! removeEvent: String! retention: String + revokeAchievement: String! schemaId: UUID! scope: String! stepsRequired: String! @@ -12688,7 +14139,9 @@ type EventsModule { tgEventBool: String! tgEventToggle: String! tgEventToggleBool: String! + tgLevelGrantSync: String! tgUpdateAggregates: String! + trustLadder: JSON upsertAggregate: String! } @@ -12740,8 +14193,8 @@ input EventsModuleFilter { """Filter by the object’s `databaseId` field.""" databaseId: UUIDFilter - """Filter by the object’s `defaultPermissions` field.""" - defaultPermissions: StringListFilter + """Filter by the object’s `defaultCapabilities` field.""" + defaultCapabilities: StringListFilter """Filter by the object’s `entityField` field.""" entityField: StringFilter @@ -12767,6 +14220,9 @@ input EventsModuleFilter { """Filter by the object’s `eventsTableName` field.""" eventsTableName: StringFilter + """Filter by the object’s `expireGrants` field.""" + expireGrants: StringFilter + """Filter by the object’s `grantAchievement` field.""" grantAchievement: StringFilter @@ -12821,6 +14277,9 @@ input EventsModuleFilter { """Filter by the object’s `publicSchemaName` field.""" publicSchemaName: StringFilter + """Filter by the object’s `recomputeCapabilities` field.""" + recomputeCapabilities: StringFilter + """Filter by the object’s `recordEvent` field.""" recordEvent: StringFilter @@ -12830,6 +14289,9 @@ input EventsModuleFilter { """Filter by the object’s `retention` field.""" retention: StringFilter + """Filter by the object’s `revokeAchievement` field.""" + revokeAchievement: StringFilter + """Filter by the object’s `schemaId` field.""" schemaId: UUIDFilter @@ -12857,9 +14319,15 @@ input EventsModuleFilter { """Filter by the object’s `tgEventToggleBool` field.""" tgEventToggleBool: StringFilter + """Filter by the object’s `tgLevelGrantSync` field.""" + tgLevelGrantSync: StringFilter + """Filter by the object’s `tgUpdateAggregates` field.""" tgUpdateAggregates: StringFilter + """Filter by the object’s `trustLadder` field.""" + trustLadder: JSONFilter + """Filter by the object’s `upsertAggregate` field.""" upsertAggregate: StringFilter } @@ -12871,7 +14339,7 @@ input EventsModuleInput { actorTableId: UUID apiName: String databaseId: UUID! - defaultPermissions: [String] + defaultCapabilities: [String] entityField: String entityTableId: UUID eventAggregatesTableId: UUID @@ -12880,6 +14348,7 @@ input EventsModuleInput { eventTypesTableName: String eventsTableId: UUID eventsTableName: String + expireGrants: String grantAchievement: String id: UUID interval: String @@ -12896,9 +14365,11 @@ input EventsModuleInput { privateSchemaId: UUID privateSchemaName: String publicSchemaName: String + recomputeCapabilities: String recordEvent: String removeEvent: String retention: String + revokeAchievement: String schemaId: UUID scope: String! stepsRequired: String @@ -12908,7 +14379,9 @@ input EventsModuleInput { tgEventBool: String tgEventToggle: String tgEventToggleBool: String + tgLevelGrantSync: String tgUpdateAggregates: String + trustLadder: JSON upsertAggregate: String } @@ -12924,8 +14397,8 @@ enum EventsModuleOrderBy { API_NAME_DESC DATABASE_ID_ASC DATABASE_ID_DESC - DEFAULT_PERMISSIONS_ASC - DEFAULT_PERMISSIONS_DESC + DEFAULT_CAPABILITIES_ASC + DEFAULT_CAPABILITIES_DESC ENTITY_FIELD_ASC ENTITY_FIELD_DESC ENTITY_TABLE_ID_ASC @@ -12942,6 +14415,8 @@ enum EventsModuleOrderBy { EVENT_TYPES_TABLE_ID_DESC EVENT_TYPES_TABLE_NAME_ASC EVENT_TYPES_TABLE_NAME_DESC + EXPIRE_GRANTS_ASC + EXPIRE_GRANTS_DESC GRANT_ACHIEVEMENT_ASC GRANT_ACHIEVEMENT_DESC ID_ASC @@ -12977,12 +14452,16 @@ enum EventsModuleOrderBy { PRIVATE_SCHEMA_NAME_DESC PUBLIC_SCHEMA_NAME_ASC PUBLIC_SCHEMA_NAME_DESC + RECOMPUTE_CAPABILITIES_ASC + RECOMPUTE_CAPABILITIES_DESC RECORD_EVENT_ASC RECORD_EVENT_DESC REMOVE_EVENT_ASC REMOVE_EVENT_DESC RETENTION_ASC RETENTION_DESC + REVOKE_ACHIEVEMENT_ASC + REVOKE_ACHIEVEMENT_DESC SCHEMA_ID_ASC SCHEMA_ID_DESC SCOPE_ASC @@ -13001,8 +14480,12 @@ enum EventsModuleOrderBy { TG_EVENT_TOGGLE_BOOL_ASC TG_EVENT_TOGGLE_BOOL_DESC TG_EVENT_TOGGLE_DESC + TG_LEVEL_GRANT_SYNC_ASC + TG_LEVEL_GRANT_SYNC_DESC TG_UPDATE_AGGREGATES_ASC TG_UPDATE_AGGREGATES_DESC + TRUST_LADDER_ASC + TRUST_LADDER_DESC UPSERT_AGGREGATE_ASC UPSERT_AGGREGATE_DESC } @@ -13016,7 +14499,7 @@ input EventsModulePatch { actorTableId: UUID apiName: String databaseId: UUID - defaultPermissions: [String] + defaultCapabilities: [String] entityField: String entityTableId: UUID eventAggregatesTableId: UUID @@ -13025,6 +14508,7 @@ input EventsModulePatch { eventTypesTableName: String eventsTableId: UUID eventsTableName: String + expireGrants: String grantAchievement: String id: UUID interval: String @@ -13041,9 +14525,11 @@ input EventsModulePatch { privateSchemaId: UUID privateSchemaName: String publicSchemaName: String + recomputeCapabilities: String recordEvent: String removeEvent: String retention: String + revokeAchievement: String schemaId: UUID scope: String stepsRequired: String @@ -13053,14 +14539,154 @@ input EventsModulePatch { tgEventBool: String tgEventToggle: String tgEventToggleBool: String + tgLevelGrantSync: String tgUpdateAggregates: String + trustLadder: JSON upsertAggregate: String } +type FileRefField { + bucketKey: String + bucketTags: [String] + databaseId: UUID! + enforceFk: Boolean! + fieldId: UUID! + id: UUID! + isPublic: Boolean + + """Reads a single `StorageModule` that is related to this `FileRefField`.""" + storageModule: StorageModule + storageModuleId: UUID! + tableId: UUID! +} + +"""A connection to a list of `FileRefField` values.""" +type FileRefFieldConnection { + """ + A list of edges which contains the `FileRefField` and cursor to aid in pagination. + """ + edges: [FileRefFieldEdge]! + + """A list of `FileRefField` objects.""" + nodes: [FileRefField]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! + + """The count of *all* `FileRefField` you could get from the connection.""" + totalCount: Int! +} + +"""A `FileRefField` edge in the connection.""" +type FileRefFieldEdge { + """A cursor for use in pagination.""" + cursor: Cursor + + """The `FileRefField` at the end of the edge.""" + node: FileRefField +} + +""" +A filter to be used against `FileRefField` object types. All fields are combined with a logical ‘and.’ +""" +input FileRefFieldFilter { + """Checks for all expressions in this list.""" + and: [FileRefFieldFilter!] + + """Filter by the object’s `bucketKey` field.""" + bucketKey: StringFilter + + """Filter by the object’s `bucketTags` field.""" + bucketTags: StringListFilter + + """Filter by the object’s `databaseId` field.""" + databaseId: UUIDFilter + + """Filter by the object’s `enforceFk` field.""" + enforceFk: BooleanFilter + + """Filter by the object’s `fieldId` field.""" + fieldId: UUIDFilter + + """Filter by the object’s `id` field.""" + id: UUIDFilter + + """Filter by the object’s `isPublic` field.""" + isPublic: BooleanFilter + + """Negates the expression.""" + not: FileRefFieldFilter + + """Checks for any expressions in this list.""" + or: [FileRefFieldFilter!] + + """Filter by the object’s `storageModule` relation.""" + storageModule: StorageModuleFilter + + """Filter by the object’s `storageModuleId` field.""" + storageModuleId: UUIDFilter + + """Filter by the object’s `tableId` field.""" + tableId: UUIDFilter +} + +"""An input for mutations affecting `FileRefField`""" +input FileRefFieldInput { + bucketKey: String + bucketTags: [String] + databaseId: UUID! + enforceFk: Boolean + fieldId: UUID! + id: UUID + isPublic: Boolean + storageModuleId: UUID! + tableId: UUID! +} + +"""Methods to use when ordering `FileRefField`.""" +enum FileRefFieldOrderBy { + BUCKET_KEY_ASC + BUCKET_KEY_DESC + BUCKET_TAGS_ASC + BUCKET_TAGS_DESC + DATABASE_ID_ASC + DATABASE_ID_DESC + ENFORCE_FK_ASC + ENFORCE_FK_DESC + FIELD_ID_ASC + FIELD_ID_DESC + ID_ASC + ID_DESC + IS_PUBLIC_ASC + IS_PUBLIC_DESC + NATURAL + PRIMARY_KEY_ASC + PRIMARY_KEY_DESC + STORAGE_MODULE_ID_ASC + STORAGE_MODULE_ID_DESC + TABLE_ID_ASC + TABLE_ID_DESC +} + +""" +Represents an update to a `FileRefField`. Fields that are set will be updated. +""" +input FileRefFieldPatch { + bucketKey: String + bucketTags: [String] + databaseId: UUID + enforceFk: Boolean + fieldId: UUID + id: UUID + isPublic: Boolean + storageModuleId: UUID + tableId: UUID +} + type FunctionDeploymentModule { apiName: String databaseId: UUID! - defaultPermissions: [String] + defaultCapabilities: [String] deploymentEventsTableId: UUID! deploymentEventsTableName: String! deploymentsTableId: UUID! @@ -13132,8 +14758,8 @@ input FunctionDeploymentModuleFilter { """Filter by the object’s `databaseId` field.""" databaseId: UUIDFilter - """Filter by the object’s `defaultPermissions` field.""" - defaultPermissions: StringListFilter + """Filter by the object’s `defaultCapabilities` field.""" + defaultCapabilities: StringListFilter """Filter by the object’s `deploymentEventsTableId` field.""" deploymentEventsTableId: UUIDFilter @@ -13212,7 +14838,7 @@ input FunctionDeploymentModuleFilter { input FunctionDeploymentModuleInput { apiName: String databaseId: UUID! - defaultPermissions: [String] + defaultCapabilities: [String] deploymentEventsTableId: UUID deploymentEventsTableName: String deploymentsTableId: UUID @@ -13239,8 +14865,8 @@ enum FunctionDeploymentModuleOrderBy { API_NAME_DESC DATABASE_ID_ASC DATABASE_ID_DESC - DEFAULT_PERMISSIONS_ASC - DEFAULT_PERMISSIONS_DESC + DEFAULT_CAPABILITIES_ASC + DEFAULT_CAPABILITIES_DESC DEPLOYMENTS_TABLE_ID_ASC DEPLOYMENTS_TABLE_ID_DESC DEPLOYMENTS_TABLE_NAME_ASC @@ -13288,7 +14914,7 @@ Represents an update to a `FunctionDeploymentModule`. Fields that are set will b input FunctionDeploymentModulePatch { apiName: String databaseId: UUID - defaultPermissions: [String] + defaultCapabilities: [String] deploymentEventsTableId: UUID deploymentEventsTableName: String deploymentsTableId: UUID @@ -13314,7 +14940,7 @@ type FunctionInvocationModule { attemptsTableId: UUID! attemptsTableName: String! databaseId: UUID! - defaultPermissions: [String] + defaultCapabilities: [String] entityField: String entityTableId: UUID executionLogsTableId: UUID! @@ -13409,8 +15035,8 @@ input FunctionInvocationModuleFilter { """Filter by the object’s `databaseId` field.""" databaseId: UUIDFilter - """Filter by the object’s `defaultPermissions` field.""" - defaultPermissions: StringListFilter + """Filter by the object’s `defaultCapabilities` field.""" + defaultCapabilities: StringListFilter """Filter by the object’s `entityField` field.""" entityField: StringFilter @@ -13479,7 +15105,7 @@ input FunctionInvocationModuleInput { attemptsTableId: UUID attemptsTableName: String databaseId: UUID! - defaultPermissions: [String] + defaultCapabilities: [String] entityField: String entityTableId: UUID executionLogsTableId: UUID @@ -13508,8 +15134,8 @@ enum FunctionInvocationModuleOrderBy { ATTEMPTS_TABLE_NAME_DESC DATABASE_ID_ASC DATABASE_ID_DESC - DEFAULT_PERMISSIONS_ASC - DEFAULT_PERMISSIONS_DESC + DEFAULT_CAPABILITIES_ASC + DEFAULT_CAPABILITIES_DESC ENTITY_FIELD_ASC ENTITY_FIELD_DESC ENTITY_TABLE_ID_ASC @@ -13555,7 +15181,7 @@ input FunctionInvocationModulePatch { attemptsTableId: UUID attemptsTableName: String databaseId: UUID - defaultPermissions: [String] + defaultCapabilities: [String] entityField: String entityTableId: UUID executionLogsTableId: UUID @@ -13594,7 +15220,7 @@ type FunctionModule { bindingsTableName: String capabilityBindingsTableId: UUID databaseId: UUID! - defaultPermissions: [String] + defaultCapabilities: [String] definitionsTableId: UUID! definitionsTableName: String! entityField: String @@ -13750,8 +15376,8 @@ input FunctionModuleFilter { """Filter by the object’s `databaseId` field.""" databaseId: UUIDFilter - """Filter by the object’s `defaultPermissions` field.""" - defaultPermissions: StringListFilter + """Filter by the object’s `defaultCapabilities` field.""" + defaultCapabilities: StringListFilter """Filter by the object’s `definitionsTableId` field.""" definitionsTableId: UUIDFilter @@ -13833,7 +15459,7 @@ input FunctionModuleInput { bindingsTableName: String capabilityBindingsTableId: UUID databaseId: UUID! - defaultPermissions: [String] + defaultCapabilities: [String] definitionsTableId: UUID definitionsTableName: String entityField: String @@ -13864,8 +15490,8 @@ enum FunctionModuleOrderBy { CAPABILITY_BINDINGS_TABLE_ID_DESC DATABASE_ID_ASC DATABASE_ID_DESC - DEFAULT_PERMISSIONS_ASC - DEFAULT_PERMISSIONS_DESC + DEFAULT_CAPABILITIES_ASC + DEFAULT_CAPABILITIES_DESC DEFINITIONS_TABLE_ID_ASC DEFINITIONS_TABLE_ID_DESC DEFINITIONS_TABLE_NAME_ASC @@ -13912,7 +15538,7 @@ input FunctionModulePatch { bindingsTableName: String capabilityBindingsTableId: UUID databaseId: UUID - defaultPermissions: [String] + defaultCapabilities: [String] definitionsTableId: UUID definitionsTableName: String entityField: String @@ -13977,7 +15603,7 @@ type GraphExecutionModule { apiName: String createdAt: Datetime! databaseId: UUID! - defaultPermissions: [String] + defaultCapabilities: [String] entityField: String entityTableId: UUID executionsTableId: UUID! @@ -14048,8 +15674,8 @@ input GraphExecutionModuleFilter { """Filter by the object’s `databaseId` field.""" databaseId: UUIDFilter - """Filter by the object’s `defaultPermissions` field.""" - defaultPermissions: StringListFilter + """Filter by the object’s `defaultCapabilities` field.""" + defaultCapabilities: StringListFilter """Filter by the object’s `entityField` field.""" entityField: StringFilter @@ -14123,7 +15749,7 @@ input GraphExecutionModuleInput { apiName: String createdAt: Datetime databaseId: UUID! - defaultPermissions: [String] + defaultCapabilities: [String] entityField: String entityTableId: UUID executionsTableId: UUID @@ -14153,8 +15779,8 @@ enum GraphExecutionModuleOrderBy { CREATED_AT_DESC DATABASE_ID_ASC DATABASE_ID_DESC - DEFAULT_PERMISSIONS_ASC - DEFAULT_PERMISSIONS_DESC + DEFAULT_CAPABILITIES_ASC + DEFAULT_CAPABILITIES_DESC ENTITY_FIELD_ASC ENTITY_FIELD_DESC ENTITY_TABLE_ID_ASC @@ -14205,7 +15831,7 @@ input GraphExecutionModulePatch { apiName: String createdAt: Datetime databaseId: UUID - defaultPermissions: [String] + defaultCapabilities: [String] entityField: String entityTableId: UUID executionsTableId: UUID @@ -14231,7 +15857,7 @@ type GraphModule { apiName: String createdAt: Datetime! databaseId: UUID! - defaultPermissions: [String] + defaultCapabilities: [String] entityField: String entityTableId: UUID @@ -14324,8 +15950,8 @@ input GraphModuleFilter { """Filter by the object’s `databaseId` field.""" databaseId: UUIDFilter - """Filter by the object’s `defaultPermissions` field.""" - defaultPermissions: StringListFilter + """Filter by the object’s `defaultCapabilities` field.""" + defaultCapabilities: StringListFilter """Filter by the object’s `entityField` field.""" entityField: StringFilter @@ -14390,7 +16016,7 @@ input GraphModuleInput { apiName: String createdAt: Datetime databaseId: UUID! - defaultPermissions: [String] + defaultCapabilities: [String] entityField: String entityTableId: UUID graphsTableId: UUID @@ -14415,8 +16041,8 @@ enum GraphModuleOrderBy { CREATED_AT_DESC DATABASE_ID_ASC DATABASE_ID_DESC - DEFAULT_PERMISSIONS_ASC - DEFAULT_PERMISSIONS_DESC + DEFAULT_CAPABILITIES_ASC + DEFAULT_CAPABILITIES_DESC ENTITY_FIELD_ASC ENTITY_FIELD_DESC ENTITY_TABLE_ID_ASC @@ -14457,7 +16083,7 @@ input GraphModulePatch { apiName: String createdAt: Datetime databaseId: UUID - defaultPermissions: [String] + defaultCapabilities: [String] entityField: String entityTableId: UUID graphsTableId: UUID @@ -14495,7 +16121,7 @@ type HierarchyModule { chartEdgesTableName: String! createdAt: Datetime! databaseId: UUID! - defaultPermissions: [String] + defaultCapabilities: [String] entityField: String entityTableId: UUID! getManagersFunction: String! @@ -14567,8 +16193,8 @@ input HierarchyModuleFilter { """Filter by the object’s `databaseId` field.""" databaseId: UUIDFilter - """Filter by the object’s `defaultPermissions` field.""" - defaultPermissions: StringListFilter + """Filter by the object’s `defaultCapabilities` field.""" + defaultCapabilities: StringListFilter """Filter by the object’s `entityField` field.""" entityField: StringFilter @@ -14633,7 +16259,7 @@ input HierarchyModuleInput { chartEdgesTableName: String createdAt: Datetime databaseId: UUID! - defaultPermissions: [String] + defaultCapabilities: [String] entityField: String entityTableId: UUID! getManagersFunction: String @@ -14666,8 +16292,8 @@ enum HierarchyModuleOrderBy { CREATED_AT_DESC DATABASE_ID_ASC DATABASE_ID_DESC - DEFAULT_PERMISSIONS_ASC - DEFAULT_PERMISSIONS_DESC + DEFAULT_CAPABILITIES_ASC + DEFAULT_CAPABILITIES_DESC ENTITY_FIELD_ASC ENTITY_FIELD_DESC ENTITY_TABLE_ID_ASC @@ -14715,7 +16341,7 @@ input HierarchyModulePatch { chartEdgesTableName: String createdAt: Datetime databaseId: UUID - defaultPermissions: [String] + defaultCapabilities: [String] entityField: String entityTableId: UUID getManagersFunction: String @@ -14737,7 +16363,7 @@ input HierarchyModulePatch { type HttpRouteModule { apiName: String databaseId: UUID! - defaultPermissions: [String] + defaultCapabilities: [String] entityField: String entityTableId: UUID @@ -14814,8 +16440,8 @@ input HttpRouteModuleFilter { """Filter by the object’s `databaseId` field.""" databaseId: UUIDFilter - """Filter by the object’s `defaultPermissions` field.""" - defaultPermissions: StringListFilter + """Filter by the object’s `defaultCapabilities` field.""" + defaultCapabilities: StringListFilter """Filter by the object’s `entityField` field.""" entityField: StringFilter @@ -14900,7 +16526,7 @@ input HttpRouteModuleFilter { input HttpRouteModuleInput { apiName: String databaseId: UUID! - defaultPermissions: [String] + defaultCapabilities: [String] entityField: String entityTableId: UUID functionModuleId: UUID @@ -14927,8 +16553,8 @@ enum HttpRouteModuleOrderBy { API_NAME_DESC DATABASE_ID_ASC DATABASE_ID_DESC - DEFAULT_PERMISSIONS_ASC - DEFAULT_PERMISSIONS_DESC + DEFAULT_CAPABILITIES_ASC + DEFAULT_CAPABILITIES_DESC ENTITY_FIELD_ASC ENTITY_FIELD_DESC ENTITY_TABLE_ID_ASC @@ -14976,7 +16602,7 @@ Represents an update to a `HttpRouteModule`. Fields that are set will be updated input HttpRouteModulePatch { apiName: String databaseId: UUID - defaultPermissions: [String] + defaultCapabilities: [String] entityField: String entityTableId: UUID functionModuleId: UUID @@ -16839,6 +18465,7 @@ type LimitsModule { limitCreditsTableId: UUID limitDecrementFunction: String! limitDecrementTrigger: String! + limitDefaults: JSON limitIncrementFunction: String! limitIncrementTrigger: String! limitUpdateTrigger: String! @@ -16955,6 +18582,9 @@ input LimitsModuleFilter { """Filter by the object’s `limitDecrementTrigger` field.""" limitDecrementTrigger: StringFilter + """Filter by the object’s `limitDefaults` field.""" + limitDefaults: JSONFilter + """Filter by the object’s `limitIncrementFunction` field.""" limitIncrementFunction: StringFilter @@ -17031,6 +18661,7 @@ input LimitsModuleInput { limitCreditsTableId: UUID limitDecrementFunction: String limitDecrementTrigger: String + limitDefaults: JSON limitIncrementFunction: String limitIncrementTrigger: String limitUpdateTrigger: String @@ -17094,6 +18725,8 @@ enum LimitsModuleOrderBy { LIMIT_DECREMENT_FUNCTION_DESC LIMIT_DECREMENT_TRIGGER_ASC LIMIT_DECREMENT_TRIGGER_DESC + LIMIT_DEFAULTS_ASC + LIMIT_DEFAULTS_DESC LIMIT_INCREMENT_FUNCTION_ASC LIMIT_INCREMENT_FUNCTION_DESC LIMIT_INCREMENT_TRIGGER_ASC @@ -17155,6 +18788,7 @@ input LimitsModulePatch { limitCreditsTableId: UUID limitDecrementFunction: String limitDecrementTrigger: String + limitDefaults: JSON limitIncrementFunction: String limitIncrementTrigger: String limitUpdateTrigger: String @@ -17281,9 +18915,12 @@ type MembershipsModule { adminGrantsTableId: UUID! adminGrantsTableName: String! apiName: String + capabilitiesTableId: UUID! + capabilityDefaultCapabilitiesTableId: UUID + capabilityDefaultGrantsTableId: UUID databaseId: UUID! + defaultCapabilitiesTableId: UUID! defaultLimitsTableId: UUID! - defaultPermissionsTableId: UUID! entityField: String entityIdsByMask: String entityIdsByPerm: String @@ -17306,9 +18943,6 @@ type MembershipsModule { membershipsTableName: String! ownerGrantsTableId: UUID! ownerGrantsTableName: String! - permissionDefaultGrantsTableId: UUID - permissionDefaultPermissionsTableId: UUID - permissionsTableId: UUID! prefix: String! privateApiName: String privateSchemaId: UUID! @@ -17372,15 +19006,24 @@ input MembershipsModuleFilter { """Filter by the object’s `apiName` field.""" apiName: StringFilter + """Filter by the object’s `capabilitiesTableId` field.""" + capabilitiesTableId: UUIDFilter + + """Filter by the object’s `capabilityDefaultCapabilitiesTableId` field.""" + capabilityDefaultCapabilitiesTableId: UUIDFilter + + """Filter by the object’s `capabilityDefaultGrantsTableId` field.""" + capabilityDefaultGrantsTableId: UUIDFilter + """Filter by the object’s `databaseId` field.""" databaseId: UUIDFilter + """Filter by the object’s `defaultCapabilitiesTableId` field.""" + defaultCapabilitiesTableId: UUIDFilter + """Filter by the object’s `defaultLimitsTableId` field.""" defaultLimitsTableId: UUIDFilter - """Filter by the object’s `defaultPermissionsTableId` field.""" - defaultPermissionsTableId: UUIDFilter - """Filter by the object’s `entityField` field.""" entityField: StringFilter @@ -17453,15 +19096,6 @@ input MembershipsModuleFilter { """Filter by the object’s `ownerGrantsTableName` field.""" ownerGrantsTableName: StringFilter - """Filter by the object’s `permissionDefaultGrantsTableId` field.""" - permissionDefaultGrantsTableId: UUIDFilter - - """Filter by the object’s `permissionDefaultPermissionsTableId` field.""" - permissionDefaultPermissionsTableId: UUIDFilter - - """Filter by the object’s `permissionsTableId` field.""" - permissionsTableId: UUIDFilter - """Filter by the object’s `prefix` field.""" prefix: StringFilter @@ -17495,9 +19129,12 @@ input MembershipsModuleInput { adminGrantsTableId: UUID adminGrantsTableName: String apiName: String + capabilitiesTableId: UUID + capabilityDefaultCapabilitiesTableId: UUID + capabilityDefaultGrantsTableId: UUID databaseId: UUID! + defaultCapabilitiesTableId: UUID defaultLimitsTableId: UUID - defaultPermissionsTableId: UUID entityField: String entityIdsByMask: String entityIdsByPerm: String @@ -17520,9 +19157,6 @@ input MembershipsModuleInput { membershipsTableName: String ownerGrantsTableId: UUID ownerGrantsTableName: String - permissionDefaultGrantsTableId: UUID - permissionDefaultPermissionsTableId: UUID - permissionsTableId: UUID prefix: String privateApiName: String privateSchemaId: UUID @@ -17547,12 +19181,18 @@ enum MembershipsModuleOrderBy { ADMIN_GRANTS_TABLE_NAME_DESC API_NAME_ASC API_NAME_DESC + CAPABILITIES_TABLE_ID_ASC + CAPABILITIES_TABLE_ID_DESC + CAPABILITY_DEFAULT_CAPABILITIES_TABLE_ID_ASC + CAPABILITY_DEFAULT_CAPABILITIES_TABLE_ID_DESC + CAPABILITY_DEFAULT_GRANTS_TABLE_ID_ASC + CAPABILITY_DEFAULT_GRANTS_TABLE_ID_DESC DATABASE_ID_ASC DATABASE_ID_DESC + DEFAULT_CAPABILITIES_TABLE_ID_ASC + DEFAULT_CAPABILITIES_TABLE_ID_DESC DEFAULT_LIMITS_TABLE_ID_ASC DEFAULT_LIMITS_TABLE_ID_DESC - DEFAULT_PERMISSIONS_TABLE_ID_ASC - DEFAULT_PERMISSIONS_TABLE_ID_DESC ENTITY_FIELD_ASC ENTITY_FIELD_DESC ENTITY_IDS_BY_MASK_ASC @@ -17598,12 +19238,6 @@ enum MembershipsModuleOrderBy { OWNER_GRANTS_TABLE_ID_DESC OWNER_GRANTS_TABLE_NAME_ASC OWNER_GRANTS_TABLE_NAME_DESC - PERMISSIONS_TABLE_ID_ASC - PERMISSIONS_TABLE_ID_DESC - PERMISSION_DEFAULT_GRANTS_TABLE_ID_ASC - PERMISSION_DEFAULT_GRANTS_TABLE_ID_DESC - PERMISSION_DEFAULT_PERMISSIONS_TABLE_ID_ASC - PERMISSION_DEFAULT_PERMISSIONS_TABLE_ID_DESC PREFIX_ASC PREFIX_DESC PRIMARY_KEY_ASC @@ -17634,9 +19268,12 @@ input MembershipsModulePatch { adminGrantsTableId: UUID adminGrantsTableName: String apiName: String + capabilitiesTableId: UUID + capabilityDefaultCapabilitiesTableId: UUID + capabilityDefaultGrantsTableId: UUID databaseId: UUID + defaultCapabilitiesTableId: UUID defaultLimitsTableId: UUID - defaultPermissionsTableId: UUID entityField: String entityIdsByMask: String entityIdsByPerm: String @@ -17659,9 +19296,6 @@ input MembershipsModulePatch { membershipsTableName: String ownerGrantsTableId: UUID ownerGrantsTableName: String - permissionDefaultGrantsTableId: UUID - permissionDefaultPermissionsTableId: UUID - permissionsTableId: UUID prefix: String privateApiName: String privateSchemaId: UUID @@ -17674,7 +19308,37 @@ input MembershipsModulePatch { type MerkleStoreModule { apiName: String + capabilityKey: String commitTableId: UUID! + + """Reads and enables pagination through a set of `ContentPresetModule`.""" + contentPresetModules( + """Read all values in the set after (below) this cursor.""" + after: Cursor + + """Read all values in the set before (above) this cursor.""" + before: Cursor + + """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 + + """The method to use when ordering `ContentPresetModule`.""" + orderBy: [ContentPresetModuleOrderBy!] = [PRIMARY_KEY_ASC] + + """ + A filter to be used in determining which values should be returned by the collection. + """ + where: ContentPresetModuleFilter + ): ContentPresetModuleConnection! createdAt: Datetime! databaseId: UUID! @@ -17768,7 +19432,6 @@ type MerkleStoreModule { """ where: PagesModuleFilter ): PagesModuleConnection! - permissionKey: String prefix: String! privateApiName: String privateSchemaId: UUID! @@ -17847,9 +19510,18 @@ input MerkleStoreModuleFilter { """Filter by the object’s `apiName` field.""" apiName: StringFilter + """Filter by the object’s `capabilityKey` field.""" + capabilityKey: StringFilter + """Filter by the object’s `commitTableId` field.""" commitTableId: UUIDFilter + """Filter by the object’s `contentPresetModules` relation.""" + contentPresetModules: MerkleStoreModuleToManyContentPresetModuleFilter + + """`contentPresetModules` exist.""" + contentPresetModulesExist: Boolean + """Filter by the object’s `createdAt` field.""" createdAt: DatetimeFilter @@ -17892,9 +19564,6 @@ input MerkleStoreModuleFilter { """`pagesModules` exist.""" pagesModulesExist: Boolean - """Filter by the object’s `permissionKey` field.""" - permissionKey: StringFilter - """Filter by the object’s `prefix` field.""" prefix: StringFilter @@ -17932,6 +19601,7 @@ input MerkleStoreModuleFilter { """An input for mutations affecting `MerkleStoreModule`""" input MerkleStoreModuleInput { apiName: String + capabilityKey: String commitTableId: UUID createdAt: Datetime databaseId: UUID! @@ -17939,7 +19609,6 @@ input MerkleStoreModuleInput { functionPrefix: String id: UUID objectTableId: UUID - permissionKey: String prefix: String privateApiName: String privateSchemaId: UUID @@ -17955,6 +19624,8 @@ input MerkleStoreModuleInput { enum MerkleStoreModuleOrderBy { API_NAME_ASC API_NAME_DESC + CAPABILITY_KEY_ASC + CAPABILITY_KEY_DESC COMMIT_TABLE_ID_ASC COMMIT_TABLE_ID_DESC CREATED_AT_ASC @@ -17970,8 +19641,6 @@ enum MerkleStoreModuleOrderBy { NATURAL OBJECT_TABLE_ID_ASC OBJECT_TABLE_ID_DESC - PERMISSION_KEY_ASC - PERMISSION_KEY_DESC PREFIX_ASC PREFIX_DESC PRIMARY_KEY_ASC @@ -17999,6 +19668,7 @@ Represents an update to a `MerkleStoreModule`. Fields that are set will be updat """ input MerkleStoreModulePatch { apiName: String + capabilityKey: String commitTableId: UUID createdAt: Datetime databaseId: UUID @@ -18006,7 +19676,6 @@ input MerkleStoreModulePatch { functionPrefix: String id: UUID objectTableId: UUID - permissionKey: String prefix: String privateApiName: String privateSchemaId: UUID @@ -18018,6 +19687,20 @@ input MerkleStoreModulePatch { storeTableId: UUID } +""" +A filter to be used against many `ContentPresetModule` object types. All fields are combined with a logical ‘and.’ +""" +input MerkleStoreModuleToManyContentPresetModuleFilter { + """Filters to entities where every related entity matches.""" + every: ContentPresetModuleFilter + + """Filters to entities where no related entity matches.""" + none: ContentPresetModuleFilter + + """Filters to entities where at least one related entity matches.""" + some: ContentPresetModuleFilter +} + """ A filter to be used against many `DbPresetModule` object types. All fields are combined with a logical ‘and.’ """ @@ -18469,6 +20152,14 @@ type Mutation { input: CreateBlueprintTemplateInput! ): CreateBlueprintTemplatePayload + """Creates a single `CapabilitiesModule`.""" + createCapabilitiesModule( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateCapabilitiesModuleInput! + ): CreateCapabilitiesModulePayload + """Creates a single `CatalogModule`.""" createCatalogModule( """ @@ -18501,6 +20192,14 @@ type Mutation { input: CreateConnectedAccountsModuleInput! ): CreateConnectedAccountsModulePayload + """Creates a single `ContentPresetModule`.""" + createContentPresetModule( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateContentPresetModuleInput! + ): CreateContentPresetModulePayload + """Creates a single `CryptoAddressesModule`.""" createCryptoAddressesModule( """ @@ -18517,6 +20216,14 @@ type Mutation { input: CreateCryptoAuthModuleInput! ): CreateCryptoAuthModulePayload + """Creates a single `DataCapabilitiesField`.""" + createDataCapabilitiesField( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateDataCapabilitiesFieldInput! + ): CreateDataCapabilitiesFieldPayload + """Creates a single `DatabaseProvisionModule`.""" createDatabaseProvisionModule( """ @@ -18597,6 +20304,14 @@ type Mutation { input: CreateDomainModuleInput! ): CreateDomainModulePayload + """Creates a single `EmailSenderModule`.""" + createEmailSenderModule( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateEmailSenderModuleInput! + ): CreateEmailSenderModulePayload + """Creates a single `EmailsModule`.""" createEmailsModule( """ @@ -18621,6 +20336,14 @@ type Mutation { input: CreateEventsModuleInput! ): CreateEventsModulePayload + """Creates a single `FileRefField`.""" + createFileRefField( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateFileRefFieldInput! + ): CreateFileRefFieldPayload + """Creates a single `FunctionDeploymentModule`.""" createFunctionDeploymentModule( """ @@ -18789,21 +20512,21 @@ type Mutation { input: CreateNotificationsModuleInput! ): CreateNotificationsModulePayload - """Creates a single `PagesModule`.""" - createPagesModule( + """Creates a single `OauthRequestsModule`.""" + createOauthRequestsModule( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: CreatePagesModuleInput! - ): CreatePagesModulePayload + input: CreateOauthRequestsModuleInput! + ): CreateOauthRequestsModulePayload - """Creates a single `PermissionsModule`.""" - createPermissionsModule( + """Creates a single `PagesModule`.""" + createPagesModule( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: CreatePermissionsModuleInput! - ): CreatePermissionsModulePayload + input: CreatePagesModuleInput! + ): CreatePagesModulePayload """Creates a single `PhoneNumbersModule`.""" createPhoneNumbersModule( @@ -18893,6 +20616,14 @@ type Mutation { input: CreateRouteModuleInput! ): CreateRouteModulePayload + """Creates a single `ScopeTypesModule`.""" + createScopeTypesModule( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateScopeTypesModuleInput! + ): CreateScopeTypesModulePayload + """Creates a single `SecureTableProvision`.""" createSecureTableProvision( """ @@ -18973,6 +20704,14 @@ type Mutation { input: CreateUserSettingsModuleInput! ): CreateUserSettingsModulePayload + """Creates a single `UserSettingsSecurityModule`.""" + createUserSettingsSecurityModule( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateUserSettingsSecurityModuleInput! + ): CreateUserSettingsSecurityModulePayload + """Creates a single `UserStateModule`.""" createUserStateModule( """ @@ -19077,6 +20816,14 @@ type Mutation { input: DeleteBlueprintTemplateInput! ): DeleteBlueprintTemplatePayload + """Deletes a single `CapabilitiesModule` using a unique key.""" + deleteCapabilitiesModule( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteCapabilitiesModuleInput! + ): DeleteCapabilitiesModulePayload + """Deletes a single `CatalogModule` using a unique key.""" deleteCatalogModule( """ @@ -19109,6 +20856,14 @@ type Mutation { input: DeleteConnectedAccountsModuleInput! ): DeleteConnectedAccountsModulePayload + """Deletes a single `ContentPresetModule` using a unique key.""" + deleteContentPresetModule( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteContentPresetModuleInput! + ): DeleteContentPresetModulePayload + """Deletes a single `CryptoAddressesModule` using a unique key.""" deleteCryptoAddressesModule( """ @@ -19125,6 +20880,14 @@ type Mutation { input: DeleteCryptoAuthModuleInput! ): DeleteCryptoAuthModulePayload + """Deletes a single `DataCapabilitiesField` using a unique key.""" + deleteDataCapabilitiesField( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteDataCapabilitiesFieldInput! + ): DeleteDataCapabilitiesFieldPayload + """Deletes a single `DatabaseProvisionModule` using a unique key.""" deleteDatabaseProvisionModule( """ @@ -19205,6 +20968,14 @@ type Mutation { input: DeleteDomainModuleInput! ): DeleteDomainModulePayload + """Deletes a single `EmailSenderModule` using a unique key.""" + deleteEmailSenderModule( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteEmailSenderModuleInput! + ): DeleteEmailSenderModulePayload + """Deletes a single `EmailsModule` using a unique key.""" deleteEmailsModule( """ @@ -19229,6 +21000,14 @@ type Mutation { input: DeleteEventsModuleInput! ): DeleteEventsModulePayload + """Deletes a single `FileRefField` using a unique key.""" + deleteFileRefField( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteFileRefFieldInput! + ): DeleteFileRefFieldPayload + """Deletes a single `FunctionDeploymentModule` using a unique key.""" deleteFunctionDeploymentModule( """ @@ -19397,21 +21176,21 @@ type Mutation { input: DeleteNotificationsModuleInput! ): DeleteNotificationsModulePayload - """Deletes a single `PagesModule` using a unique key.""" - deletePagesModule( + """Deletes a single `OauthRequestsModule` using a unique key.""" + deleteOauthRequestsModule( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: DeletePagesModuleInput! - ): DeletePagesModulePayload + input: DeleteOauthRequestsModuleInput! + ): DeleteOauthRequestsModulePayload - """Deletes a single `PermissionsModule` using a unique key.""" - deletePermissionsModule( + """Deletes a single `PagesModule` using a unique key.""" + deletePagesModule( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: DeletePermissionsModuleInput! - ): DeletePermissionsModulePayload + input: DeletePagesModuleInput! + ): DeletePagesModulePayload """Deletes a single `PhoneNumbersModule` using a unique key.""" deletePhoneNumbersModule( @@ -19501,6 +21280,14 @@ type Mutation { input: DeleteRouteModuleInput! ): DeleteRouteModulePayload + """Deletes a single `ScopeTypesModule` using a unique key.""" + deleteScopeTypesModule( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteScopeTypesModuleInput! + ): DeleteScopeTypesModulePayload + """Deletes a single `SecureTableProvision` using a unique key.""" deleteSecureTableProvision( """ @@ -19581,6 +21368,14 @@ type Mutation { input: DeleteUserSettingsModuleInput! ): DeleteUserSettingsModulePayload + """Deletes a single `UserSettingsSecurityModule` using a unique key.""" + deleteUserSettingsSecurityModule( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteUserSettingsSecurityModuleInput! + ): DeleteUserSettingsSecurityModulePayload + """Deletes a single `UserStateModule` using a unique key.""" deleteUserStateModule( """ @@ -19634,76 +21429,6 @@ type Mutation { input: ProvisionBucketInput! ): ProvisionBucketPayload - """ - 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. - """ - provisionCheckConstraint( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: ProvisionCheckConstraintInput! - ): ProvisionCheckConstraintPayload - - """ - 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. - """ - provisionFullTextSearch( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: ProvisionFullTextSearchInput! - ): ProvisionFullTextSearchPayload - - """ - 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. - """ - provisionIndex( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: ProvisionIndexInput! - ): ProvisionIndexPayload - - """ - 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). - """ - provisionRelation( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: ProvisionRelationInput! - ): ProvisionRelationPayload - - """ - 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. - """ - provisionSpatialRelation( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: ProvisionSpatialRelationInput! - ): ProvisionSpatialRelationPayload - - """ - 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). - """ - provisionTable( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: ProvisionTableInput! - ): ProvisionTablePayload - - """ - 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. - """ - provisionUniqueConstraint( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: ProvisionUniqueConstraintInput! - ): ProvisionUniqueConstraintPayload - """Updates a single `AgentModule` using a unique key and a patch.""" updateAgentModule( """ @@ -19772,6 +21497,14 @@ type Mutation { input: UpdateBlueprintTemplateInput! ): UpdateBlueprintTemplatePayload + """Updates a single `CapabilitiesModule` using a unique key and a patch.""" + updateCapabilitiesModule( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateCapabilitiesModuleInput! + ): UpdateCapabilitiesModulePayload + """Updates a single `CatalogModule` using a unique key and a patch.""" updateCatalogModule( """ @@ -19808,6 +21541,14 @@ type Mutation { input: UpdateConnectedAccountsModuleInput! ): UpdateConnectedAccountsModulePayload + """Updates a single `ContentPresetModule` using a unique key and a patch.""" + updateContentPresetModule( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateContentPresetModuleInput! + ): UpdateContentPresetModulePayload + """ Updates a single `CryptoAddressesModule` using a unique key and a patch. """ @@ -19826,6 +21567,16 @@ type Mutation { input: UpdateCryptoAuthModuleInput! ): UpdateCryptoAuthModulePayload + """ + Updates a single `DataCapabilitiesField` using a unique key and a patch. + """ + updateDataCapabilitiesField( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateDataCapabilitiesFieldInput! + ): UpdateDataCapabilitiesFieldPayload + """ Updates a single `DatabaseProvisionModule` using a unique key and a patch. """ @@ -19912,6 +21663,14 @@ type Mutation { input: UpdateDomainModuleInput! ): UpdateDomainModulePayload + """Updates a single `EmailSenderModule` using a unique key and a patch.""" + updateEmailSenderModule( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateEmailSenderModuleInput! + ): UpdateEmailSenderModulePayload + """Updates a single `EmailsModule` using a unique key and a patch.""" updateEmailsModule( """ @@ -19936,6 +21695,14 @@ type Mutation { input: UpdateEventsModuleInput! ): UpdateEventsModulePayload + """Updates a single `FileRefField` using a unique key and a patch.""" + updateFileRefField( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateFileRefFieldInput! + ): UpdateFileRefFieldPayload + """ Updates a single `FunctionDeploymentModule` using a unique key and a patch. """ @@ -20118,21 +21885,21 @@ type Mutation { input: UpdateNotificationsModuleInput! ): UpdateNotificationsModulePayload - """Updates a single `PagesModule` using a unique key and a patch.""" - updatePagesModule( + """Updates a single `OauthRequestsModule` using a unique key and a patch.""" + updateOauthRequestsModule( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: UpdatePagesModuleInput! - ): UpdatePagesModulePayload + input: UpdateOauthRequestsModuleInput! + ): UpdateOauthRequestsModulePayload - """Updates a single `PermissionsModule` using a unique key and a patch.""" - updatePermissionsModule( + """Updates a single `PagesModule` using a unique key and a patch.""" + updatePagesModule( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: UpdatePermissionsModuleInput! - ): UpdatePermissionsModulePayload + input: UpdatePagesModuleInput! + ): UpdatePagesModulePayload """Updates a single `PhoneNumbersModule` using a unique key and a patch.""" updatePhoneNumbersModule( @@ -20224,6 +21991,14 @@ type Mutation { input: UpdateRouteModuleInput! ): UpdateRouteModulePayload + """Updates a single `ScopeTypesModule` using a unique key and a patch.""" + updateScopeTypesModule( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateScopeTypesModuleInput! + ): UpdateScopeTypesModulePayload + """ Updates a single `SecureTableProvision` using a unique key and a patch. """ @@ -20310,6 +22085,16 @@ type Mutation { input: UpdateUserSettingsModuleInput! ): UpdateUserSettingsModulePayload + """ + Updates a single `UserSettingsSecurityModule` using a unique key and a patch. + """ + updateUserSettingsSecurityModule( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateUserSettingsSecurityModuleInput! + ): UpdateUserSettingsSecurityModulePayload + """Updates a single `UserStateModule` using a unique key and a patch.""" updateUserStateModule( """ @@ -20356,7 +22141,7 @@ type Mutation { type NamespaceModule { apiName: String databaseId: UUID! - defaultPermissions: [String] + defaultCapabilities: [String] entityField: String entityTableId: UUID @@ -20505,8 +22290,8 @@ input NamespaceModuleFilter { """Filter by the object’s `databaseId` field.""" databaseId: UUIDFilter - """Filter by the object’s `defaultPermissions` field.""" - defaultPermissions: StringListFilter + """Filter by the object’s `defaultCapabilities` field.""" + defaultCapabilities: StringListFilter """Filter by the object’s `entityField` field.""" entityField: StringFilter @@ -20585,7 +22370,7 @@ input NamespaceModuleFilter { input NamespaceModuleInput { apiName: String databaseId: UUID! - defaultPermissions: [String] + defaultCapabilities: [String] entityField: String entityTableId: UUID id: UUID @@ -20610,8 +22395,8 @@ enum NamespaceModuleOrderBy { API_NAME_DESC DATABASE_ID_ASC DATABASE_ID_DESC - DEFAULT_PERMISSIONS_ASC - DEFAULT_PERMISSIONS_DESC + DEFAULT_CAPABILITIES_ASC + DEFAULT_CAPABILITIES_DESC ENTITY_FIELD_ASC ENTITY_FIELD_DESC ENTITY_TABLE_ID_ASC @@ -20655,7 +22440,7 @@ Represents an update to a `NamespaceModule`. Fields that are set will be updated input NamespaceModulePatch { apiName: String databaseId: UUID - defaultPermissions: [String] + defaultCapabilities: [String] entityField: String entityTableId: UUID id: UUID @@ -20720,7 +22505,7 @@ type NotificationsModule { apiName: String channelsTableId: UUID databaseId: UUID! - defaultPermissions: [String] + defaultCapabilities: [String] deliveryLogTableId: UUID entityField: String hasChannels: Boolean! @@ -20787,8 +22572,8 @@ input NotificationsModuleFilter { """Filter by the object’s `databaseId` field.""" databaseId: UUIDFilter - """Filter by the object’s `defaultPermissions` field.""" - defaultPermissions: StringListFilter + """Filter by the object’s `defaultCapabilities` field.""" + defaultCapabilities: StringListFilter """Filter by the object’s `deliveryLogTableId` field.""" deliveryLogTableId: UUIDFilter @@ -20862,7 +22647,7 @@ input NotificationsModuleInput { apiName: String channelsTableId: UUID databaseId: UUID! - defaultPermissions: [String] + defaultCapabilities: [String] deliveryLogTableId: UUID entityField: String hasChannels: Boolean @@ -20893,8 +22678,8 @@ enum NotificationsModuleOrderBy { CHANNELS_TABLE_ID_DESC DATABASE_ID_ASC DATABASE_ID_DESC - DEFAULT_PERMISSIONS_ASC - DEFAULT_PERMISSIONS_DESC + DEFAULT_CAPABILITIES_ASC + DEFAULT_CAPABILITIES_DESC DELIVERY_LOG_TABLE_ID_ASC DELIVERY_LOG_TABLE_ID_DESC ENTITY_FIELD_ASC @@ -20947,7 +22732,7 @@ input NotificationsModulePatch { apiName: String channelsTableId: UUID databaseId: UUID - defaultPermissions: [String] + defaultCapabilities: [String] deliveryLogTableId: UUID entityField: String hasChannels: Boolean @@ -20970,356 +22755,284 @@ input NotificationsModulePatch { userSettingsTableId: UUID } -"""Information about pagination in a connection.""" -type PageInfo { - """When paginating forwards, the cursor to continue.""" - endCursor: Cursor - - """When paginating forwards, are there more items?""" - hasNextPage: Boolean! - - """When paginating backwards, are there more items?""" - hasPreviousPage: Boolean! - - """When paginating backwards, the cursor to continue.""" - startCursor: Cursor -} - -type PagesModule { - apiName: String - createdAt: Datetime! - databaseId: UUID! - entityTableId: UUID - id: UUID! - - """ - Reads a single `MerkleStoreModule` that is related to this `PagesModule`. - """ - merkleStoreModule: MerkleStoreModule - merkleStoreModuleId: UUID! - pagesTableId: UUID! - policies: JSON - prefix: String! - privateApiName: String - privateSchemaId: UUID! - privateSchemaName: String - provisions: JSON - publicSchemaId: UUID! - publicSchemaName: String - scope: String! - - """ - Reads a single `SiteSurfaceModule` that is related to this `PagesModule`. - """ - siteSurfaceModule: SiteSurfaceModule - siteSurfaceModuleId: UUID - sitesTableId: UUID! - storeNamePrefix: String! -} - -"""A connection to a list of `PagesModule` values.""" -type PagesModuleConnection { - """ - A list of edges which contains the `PagesModule` and cursor to aid in pagination. - """ - edges: [PagesModuleEdge]! - - """A list of `PagesModule` objects.""" - nodes: [PagesModule]! - - """Information to aid in pagination.""" - pageInfo: PageInfo! - - """The count of *all* `PagesModule` you could get from the connection.""" - totalCount: Int! -} - -"""A `PagesModule` edge in the connection.""" -type PagesModuleEdge { - """A cursor for use in pagination.""" - cursor: Cursor - - """The `PagesModule` at the end of the edge.""" - node: PagesModule -} - -""" -A filter to be used against `PagesModule` object types. All fields are combined with a logical ‘and.’ -""" -input PagesModuleFilter { - """Checks for all expressions in this list.""" - and: [PagesModuleFilter!] - - """Filter by the object’s `apiName` field.""" - apiName: StringFilter - - """Filter by the object’s `createdAt` field.""" - createdAt: DatetimeFilter - - """Filter by the object’s `databaseId` field.""" - databaseId: UUIDFilter - - """Filter by the object’s `entityTableId` field.""" - entityTableId: UUIDFilter - - """Filter by the object’s `id` field.""" - id: UUIDFilter - - """Filter by the object’s `merkleStoreModule` relation.""" - merkleStoreModule: MerkleStoreModuleFilter - - """Filter by the object’s `merkleStoreModuleId` field.""" - merkleStoreModuleId: UUIDFilter - - """Negates the expression.""" - not: PagesModuleFilter - - """Checks for any expressions in this list.""" - or: [PagesModuleFilter!] - - """Filter by the object’s `pagesTableId` field.""" - pagesTableId: UUIDFilter - - """Filter by the object’s `policies` field.""" - policies: JSONFilter - - """Filter by the object’s `prefix` field.""" - prefix: StringFilter - - """Filter by the object’s `privateApiName` field.""" - privateApiName: StringFilter - - """Filter by the object’s `privateSchemaId` field.""" - privateSchemaId: UUIDFilter - - """Filter by the object’s `privateSchemaName` field.""" - privateSchemaName: StringFilter - - """Filter by the object’s `provisions` field.""" - provisions: JSONFilter - - """Filter by the object’s `publicSchemaId` field.""" - publicSchemaId: UUIDFilter - - """Filter by the object’s `publicSchemaName` field.""" - publicSchemaName: StringFilter - - """Filter by the object’s `scope` field.""" - scope: StringFilter - - """Filter by the object’s `siteSurfaceModule` relation.""" - siteSurfaceModule: SiteSurfaceModuleFilter - - """A related `siteSurfaceModule` exists.""" - siteSurfaceModuleExists: Boolean - - """Filter by the object’s `siteSurfaceModuleId` field.""" - siteSurfaceModuleId: UUIDFilter - - """Filter by the object’s `sitesTableId` field.""" - sitesTableId: UUIDFilter - - """Filter by the object’s `storeNamePrefix` field.""" - storeNamePrefix: StringFilter -} - -"""An input for mutations affecting `PagesModule`""" -input PagesModuleInput { - apiName: String - createdAt: Datetime - databaseId: UUID! - entityTableId: UUID - id: UUID - merkleStoreModuleId: UUID! - pagesTableId: UUID - policies: JSON - prefix: String! - privateApiName: String - privateSchemaId: UUID - privateSchemaName: String - provisions: JSON - publicSchemaId: UUID - publicSchemaName: String - scope: String! - siteSurfaceModuleId: UUID - sitesTableId: UUID - storeNamePrefix: String -} - -"""Methods to use when ordering `PagesModule`.""" -enum PagesModuleOrderBy { - API_NAME_ASC - API_NAME_DESC - CREATED_AT_ASC - CREATED_AT_DESC - DATABASE_ID_ASC - DATABASE_ID_DESC - ENTITY_TABLE_ID_ASC - ENTITY_TABLE_ID_DESC - ID_ASC - ID_DESC - MERKLE_STORE_MODULE_ID_ASC - MERKLE_STORE_MODULE_ID_DESC - NATURAL - PAGES_TABLE_ID_ASC - PAGES_TABLE_ID_DESC - POLICIES_ASC - POLICIES_DESC - PREFIX_ASC - PREFIX_DESC - PRIMARY_KEY_ASC - PRIMARY_KEY_DESC - PRIVATE_API_NAME_ASC - PRIVATE_API_NAME_DESC - PRIVATE_SCHEMA_ID_ASC - PRIVATE_SCHEMA_ID_DESC - PRIVATE_SCHEMA_NAME_ASC - PRIVATE_SCHEMA_NAME_DESC - PROVISIONS_ASC - PROVISIONS_DESC - PUBLIC_SCHEMA_ID_ASC - PUBLIC_SCHEMA_ID_DESC - PUBLIC_SCHEMA_NAME_ASC - PUBLIC_SCHEMA_NAME_DESC - SCOPE_ASC - SCOPE_DESC - SITES_TABLE_ID_ASC - SITES_TABLE_ID_DESC - SITE_SURFACE_MODULE_ID_ASC - SITE_SURFACE_MODULE_ID_DESC - STORE_NAME_PREFIX_ASC - STORE_NAME_PREFIX_DESC -} - """ -Represents an update to a `PagesModule`. Fields that are set will be updated. +Config row for the oauth_requests_module, which provisions the in-flight half of an SSO + sign-in: the OAuth authorization requests table (state + PKCE code_verifier) and the + pending identity links table (a verified identity parked under a single-use ticket), + both private, plus the five SECURITY DEFINER procedures that are their only surface. + Sibling of identity_providers_module (durable provider configuration) rather than part + of it: this is ephemeral, purged flow state with its own retention. """ -input PagesModulePatch { - apiName: String - createdAt: Datetime - databaseId: UUID - entityTableId: UUID - id: UUID - merkleStoreModuleId: UUID - pagesTableId: UUID - policies: JSON - prefix: String - privateApiName: String - privateSchemaId: UUID - privateSchemaName: String - provisions: JSON - publicSchemaId: UUID - publicSchemaName: String - scope: String - siteSurfaceModuleId: UUID - sitesTableId: UUID - storeNamePrefix: String -} - -type PermissionsModule { - actorTableId: UUID! - apiName: String - bitlen: Int! +type OauthRequestsModule { databaseId: UUID! - defaultTableId: UUID! - defaultTableName: String! entityField: String entityTableId: UUID - getByMask: String! - getMask: String! - getMaskByName: String! - getPaddedMask: String! id: UUID! + oauthAuthorizationRequestsTableId: UUID! + oauthAuthorizationRequestsTableName: String! + pendingIdentityLinksTableId: UUID! + pendingIdentityLinksTableName: String! prefix: String! - privateApiName: String privateSchemaId: UUID! privateSchemaName: String - publicSchemaName: String - schemaId: UUID! scope: String! - tableId: UUID! - tableName: String! } -"""A connection to a list of `PermissionsModule` values.""" -type PermissionsModuleConnection { +"""A connection to a list of `OauthRequestsModule` values.""" +type OauthRequestsModuleConnection { """ - A list of edges which contains the `PermissionsModule` and cursor to aid in pagination. + A list of edges which contains the `OauthRequestsModule` and cursor to aid in pagination. """ - edges: [PermissionsModuleEdge]! + edges: [OauthRequestsModuleEdge]! - """A list of `PermissionsModule` objects.""" - nodes: [PermissionsModule]! + """A list of `OauthRequestsModule` objects.""" + nodes: [OauthRequestsModule]! """Information to aid in pagination.""" pageInfo: PageInfo! """ - The count of *all* `PermissionsModule` you could get from the connection. + The count of *all* `OauthRequestsModule` you could get from the connection. """ totalCount: Int! } -"""A `PermissionsModule` edge in the connection.""" -type PermissionsModuleEdge { +"""A `OauthRequestsModule` edge in the connection.""" +type OauthRequestsModuleEdge { """A cursor for use in pagination.""" cursor: Cursor - """The `PermissionsModule` at the end of the edge.""" - node: PermissionsModule + """The `OauthRequestsModule` at the end of the edge.""" + node: OauthRequestsModule } """ -A filter to be used against `PermissionsModule` object types. All fields are combined with a logical ‘and.’ +A filter to be used against `OauthRequestsModule` object types. All fields are combined with a logical ‘and.’ """ -input PermissionsModuleFilter { - """Filter by the object’s `actorTableId` field.""" - actorTableId: UUIDFilter - +input OauthRequestsModuleFilter { """Checks for all expressions in this list.""" - and: [PermissionsModuleFilter!] - - """Filter by the object’s `apiName` field.""" - apiName: StringFilter - - """Filter by the object’s `bitlen` field.""" - bitlen: IntFilter + and: [OauthRequestsModuleFilter!] """Filter by the object’s `databaseId` field.""" databaseId: UUIDFilter - """Filter by the object’s `defaultTableId` field.""" - defaultTableId: UUIDFilter - - """Filter by the object’s `defaultTableName` field.""" - defaultTableName: StringFilter - """Filter by the object’s `entityField` field.""" entityField: StringFilter """Filter by the object’s `entityTableId` field.""" entityTableId: UUIDFilter - """Filter by the object’s `getByMask` field.""" - getByMask: StringFilter + """Filter by the object’s `id` field.""" + id: UUIDFilter - """Filter by the object’s `getMask` field.""" - getMask: StringFilter + """Negates the expression.""" + not: OauthRequestsModuleFilter - """Filter by the object’s `getMaskByName` field.""" - getMaskByName: StringFilter + """Filter by the object’s `oauthAuthorizationRequestsTableId` field.""" + oauthAuthorizationRequestsTableId: UUIDFilter - """Filter by the object’s `getPaddedMask` field.""" - getPaddedMask: StringFilter + """Filter by the object’s `oauthAuthorizationRequestsTableName` field.""" + oauthAuthorizationRequestsTableName: StringFilter + + """Checks for any expressions in this list.""" + or: [OauthRequestsModuleFilter!] + + """Filter by the object’s `pendingIdentityLinksTableId` field.""" + pendingIdentityLinksTableId: UUIDFilter + + """Filter by the object’s `pendingIdentityLinksTableName` field.""" + pendingIdentityLinksTableName: StringFilter + + """Filter by the object’s `prefix` field.""" + prefix: StringFilter + + """Filter by the object’s `privateSchemaId` field.""" + privateSchemaId: UUIDFilter + + """Filter by the object’s `privateSchemaName` field.""" + privateSchemaName: StringFilter + + """Filter by the object’s `scope` field.""" + scope: StringFilter +} + +"""An input for mutations affecting `OauthRequestsModule`""" +input OauthRequestsModuleInput { + databaseId: UUID! + entityField: String + entityTableId: UUID + id: UUID + oauthAuthorizationRequestsTableId: UUID + oauthAuthorizationRequestsTableName: String + pendingIdentityLinksTableId: UUID + pendingIdentityLinksTableName: String + prefix: String + privateSchemaId: UUID + privateSchemaName: String + scope: String! +} + +"""Methods to use when ordering `OauthRequestsModule`.""" +enum OauthRequestsModuleOrderBy { + DATABASE_ID_ASC + DATABASE_ID_DESC + ENTITY_FIELD_ASC + ENTITY_FIELD_DESC + ENTITY_TABLE_ID_ASC + ENTITY_TABLE_ID_DESC + ID_ASC + ID_DESC + NATURAL + OAUTH_AUTHORIZATION_REQUESTS_TABLE_ID_ASC + OAUTH_AUTHORIZATION_REQUESTS_TABLE_ID_DESC + OAUTH_AUTHORIZATION_REQUESTS_TABLE_NAME_ASC + OAUTH_AUTHORIZATION_REQUESTS_TABLE_NAME_DESC + PENDING_IDENTITY_LINKS_TABLE_ID_ASC + PENDING_IDENTITY_LINKS_TABLE_ID_DESC + PENDING_IDENTITY_LINKS_TABLE_NAME_ASC + PENDING_IDENTITY_LINKS_TABLE_NAME_DESC + PREFIX_ASC + PREFIX_DESC + PRIMARY_KEY_ASC + PRIMARY_KEY_DESC + PRIVATE_SCHEMA_ID_ASC + PRIVATE_SCHEMA_ID_DESC + PRIVATE_SCHEMA_NAME_ASC + PRIVATE_SCHEMA_NAME_DESC + SCOPE_ASC + SCOPE_DESC +} + +""" +Represents an update to a `OauthRequestsModule`. Fields that are set will be updated. +""" +input OauthRequestsModulePatch { + databaseId: UUID + entityField: String + entityTableId: UUID + id: UUID + oauthAuthorizationRequestsTableId: UUID + oauthAuthorizationRequestsTableName: String + pendingIdentityLinksTableId: UUID + pendingIdentityLinksTableName: String + prefix: String + privateSchemaId: UUID + privateSchemaName: String + scope: String +} + +"""Information about pagination in a connection.""" +type PageInfo { + """When paginating forwards, the cursor to continue.""" + endCursor: Cursor + + """When paginating forwards, are there more items?""" + hasNextPage: Boolean! + + """When paginating backwards, are there more items?""" + hasPreviousPage: Boolean! + + """When paginating backwards, the cursor to continue.""" + startCursor: Cursor +} + +type PagesModule { + apiName: String + createdAt: Datetime! + databaseId: UUID! + entityTableId: UUID + id: UUID! + + """ + Reads a single `MerkleStoreModule` that is related to this `PagesModule`. + """ + merkleStoreModule: MerkleStoreModule + merkleStoreModuleId: UUID! + pagesTableId: UUID! + policies: JSON + prefix: String! + privateApiName: String + privateSchemaId: UUID! + privateSchemaName: String + provisions: JSON + publicSchemaId: UUID! + publicSchemaName: String + scope: String! + + """ + Reads a single `SiteSurfaceModule` that is related to this `PagesModule`. + """ + siteSurfaceModule: SiteSurfaceModule + siteSurfaceModuleId: UUID + sitesTableId: UUID! + storeNamePrefix: String! +} + +"""A connection to a list of `PagesModule` values.""" +type PagesModuleConnection { + """ + A list of edges which contains the `PagesModule` and cursor to aid in pagination. + """ + edges: [PagesModuleEdge]! + + """A list of `PagesModule` objects.""" + nodes: [PagesModule]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! + + """The count of *all* `PagesModule` you could get from the connection.""" + totalCount: Int! +} + +"""A `PagesModule` edge in the connection.""" +type PagesModuleEdge { + """A cursor for use in pagination.""" + cursor: Cursor + + """The `PagesModule` at the end of the edge.""" + node: PagesModule +} + +""" +A filter to be used against `PagesModule` object types. All fields are combined with a logical ‘and.’ +""" +input PagesModuleFilter { + """Checks for all expressions in this list.""" + and: [PagesModuleFilter!] + + """Filter by the object’s `apiName` field.""" + apiName: StringFilter + + """Filter by the object’s `createdAt` field.""" + createdAt: DatetimeFilter + + """Filter by the object’s `databaseId` field.""" + databaseId: UUIDFilter + + """Filter by the object’s `entityTableId` field.""" + entityTableId: UUIDFilter """Filter by the object’s `id` field.""" id: UUIDFilter + """Filter by the object’s `merkleStoreModule` relation.""" + merkleStoreModule: MerkleStoreModuleFilter + + """Filter by the object’s `merkleStoreModuleId` field.""" + merkleStoreModuleId: UUIDFilter + """Negates the expression.""" - not: PermissionsModuleFilter + not: PagesModuleFilter """Checks for any expressions in this list.""" - or: [PermissionsModuleFilter!] + or: [PagesModuleFilter!] + + """Filter by the object’s `pagesTableId` field.""" + pagesTableId: UUIDFilter + + """Filter by the object’s `policies` field.""" + policies: JSONFilter """Filter by the object’s `prefix` field.""" prefix: StringFilter @@ -21333,77 +23046,76 @@ input PermissionsModuleFilter { """Filter by the object’s `privateSchemaName` field.""" privateSchemaName: StringFilter + """Filter by the object’s `provisions` field.""" + provisions: JSONFilter + + """Filter by the object’s `publicSchemaId` field.""" + publicSchemaId: UUIDFilter + """Filter by the object’s `publicSchemaName` field.""" publicSchemaName: StringFilter - """Filter by the object’s `schemaId` field.""" - schemaId: UUIDFilter - """Filter by the object’s `scope` field.""" scope: StringFilter - """Filter by the object’s `tableId` field.""" - tableId: UUIDFilter + """Filter by the object’s `siteSurfaceModule` relation.""" + siteSurfaceModule: SiteSurfaceModuleFilter - """Filter by the object’s `tableName` field.""" - tableName: StringFilter + """A related `siteSurfaceModule` exists.""" + siteSurfaceModuleExists: Boolean + + """Filter by the object’s `siteSurfaceModuleId` field.""" + siteSurfaceModuleId: UUIDFilter + + """Filter by the object’s `sitesTableId` field.""" + sitesTableId: UUIDFilter + + """Filter by the object’s `storeNamePrefix` field.""" + storeNamePrefix: StringFilter } -"""An input for mutations affecting `PermissionsModule`""" -input PermissionsModuleInput { - actorTableId: UUID +"""An input for mutations affecting `PagesModule`""" +input PagesModuleInput { apiName: String - bitlen: Int + createdAt: Datetime databaseId: UUID! - defaultTableId: UUID - defaultTableName: String - entityField: String entityTableId: UUID - getByMask: String - getMask: String - getMaskByName: String - getPaddedMask: String id: UUID - prefix: String + merkleStoreModuleId: UUID! + pagesTableId: UUID + policies: JSON + prefix: String! privateApiName: String privateSchemaId: UUID privateSchemaName: String + provisions: JSON + publicSchemaId: UUID publicSchemaName: String - schemaId: UUID scope: String! - tableId: UUID - tableName: String + siteSurfaceModuleId: UUID + sitesTableId: UUID + storeNamePrefix: String } -"""Methods to use when ordering `PermissionsModule`.""" -enum PermissionsModuleOrderBy { - ACTOR_TABLE_ID_ASC - ACTOR_TABLE_ID_DESC +"""Methods to use when ordering `PagesModule`.""" +enum PagesModuleOrderBy { API_NAME_ASC API_NAME_DESC - BITLEN_ASC - BITLEN_DESC + CREATED_AT_ASC + CREATED_AT_DESC DATABASE_ID_ASC DATABASE_ID_DESC - DEFAULT_TABLE_ID_ASC - DEFAULT_TABLE_ID_DESC - DEFAULT_TABLE_NAME_ASC - DEFAULT_TABLE_NAME_DESC - ENTITY_FIELD_ASC - ENTITY_FIELD_DESC ENTITY_TABLE_ID_ASC ENTITY_TABLE_ID_DESC - GET_BY_MASK_ASC - GET_BY_MASK_DESC - GET_MASK_ASC - GET_MASK_BY_NAME_ASC - GET_MASK_BY_NAME_DESC - GET_MASK_DESC - GET_PADDED_MASK_ASC - GET_PADDED_MASK_DESC ID_ASC ID_DESC + MERKLE_STORE_MODULE_ID_ASC + MERKLE_STORE_MODULE_ID_DESC NATURAL + PAGES_TABLE_ID_ASC + PAGES_TABLE_ID_DESC + POLICIES_ASC + POLICIES_DESC PREFIX_ASC PREFIX_DESC PRIMARY_KEY_ASC @@ -21414,44 +23126,45 @@ enum PermissionsModuleOrderBy { PRIVATE_SCHEMA_ID_DESC PRIVATE_SCHEMA_NAME_ASC PRIVATE_SCHEMA_NAME_DESC + PROVISIONS_ASC + PROVISIONS_DESC + PUBLIC_SCHEMA_ID_ASC + PUBLIC_SCHEMA_ID_DESC PUBLIC_SCHEMA_NAME_ASC PUBLIC_SCHEMA_NAME_DESC - SCHEMA_ID_ASC - SCHEMA_ID_DESC SCOPE_ASC SCOPE_DESC - TABLE_ID_ASC - TABLE_ID_DESC - TABLE_NAME_ASC - TABLE_NAME_DESC + SITES_TABLE_ID_ASC + SITES_TABLE_ID_DESC + SITE_SURFACE_MODULE_ID_ASC + SITE_SURFACE_MODULE_ID_DESC + STORE_NAME_PREFIX_ASC + STORE_NAME_PREFIX_DESC } """ -Represents an update to a `PermissionsModule`. Fields that are set will be updated. +Represents an update to a `PagesModule`. Fields that are set will be updated. """ -input PermissionsModulePatch { - actorTableId: UUID +input PagesModulePatch { apiName: String - bitlen: Int + createdAt: Datetime databaseId: UUID - defaultTableId: UUID - defaultTableName: String - entityField: String entityTableId: UUID - getByMask: String - getMask: String - getMaskByName: String - getPaddedMask: String id: UUID + merkleStoreModuleId: UUID + pagesTableId: UUID + policies: JSON prefix: String privateApiName: String privateSchemaId: UUID privateSchemaName: String + provisions: JSON + publicSchemaId: UUID publicSchemaName: String - schemaId: UUID scope: String - tableId: UUID - tableName: String + siteSurfaceModuleId: UUID + sitesTableId: UUID + storeNamePrefix: String } type PhoneNumbersModule { @@ -22028,22 +23741,24 @@ input PrincipalAuthModulePatch { type ProfilesModule { actorTableId: UUID! apiName: String + capabilitiesTableId: UUID! databaseId: UUID! entityField: String entityTableId: UUID id: UUID! + membershipProfilesTableId: UUID! + membershipProfilesTableName: String! membershipsTableId: UUID! - permissionsTableId: UUID! prefix: String! privateApiName: String privateSchemaId: UUID! privateSchemaName: String + profileCapabilitiesTableId: UUID! + profileCapabilitiesTableName: String! profileDefinitionGrantsTableId: UUID! profileDefinitionGrantsTableName: String! profileGrantsTableId: UUID! profileGrantsTableName: String! - profilePermissionsTableId: UUID! - profilePermissionsTableName: String! profileTemplatesTableId: UUID! profileTemplatesTableName: String! publicSchemaName: String @@ -22092,6 +23807,9 @@ input ProfilesModuleFilter { """Filter by the object’s `apiName` field.""" apiName: StringFilter + """Filter by the object’s `capabilitiesTableId` field.""" + capabilitiesTableId: UUIDFilter + """Filter by the object’s `databaseId` field.""" databaseId: UUIDFilter @@ -22104,6 +23822,12 @@ input ProfilesModuleFilter { """Filter by the object’s `id` field.""" id: UUIDFilter + """Filter by the object’s `membershipProfilesTableId` field.""" + membershipProfilesTableId: UUIDFilter + + """Filter by the object’s `membershipProfilesTableName` field.""" + membershipProfilesTableName: StringFilter + """Filter by the object’s `membershipsTableId` field.""" membershipsTableId: UUIDFilter @@ -22113,9 +23837,6 @@ input ProfilesModuleFilter { """Checks for any expressions in this list.""" or: [ProfilesModuleFilter!] - """Filter by the object’s `permissionsTableId` field.""" - permissionsTableId: UUIDFilter - """Filter by the object’s `prefix` field.""" prefix: StringFilter @@ -22128,6 +23849,12 @@ input ProfilesModuleFilter { """Filter by the object’s `privateSchemaName` field.""" privateSchemaName: StringFilter + """Filter by the object’s `profileCapabilitiesTableId` field.""" + profileCapabilitiesTableId: UUIDFilter + + """Filter by the object’s `profileCapabilitiesTableName` field.""" + profileCapabilitiesTableName: StringFilter + """Filter by the object’s `profileDefinitionGrantsTableId` field.""" profileDefinitionGrantsTableId: UUIDFilter @@ -22140,12 +23867,6 @@ input ProfilesModuleFilter { """Filter by the object’s `profileGrantsTableName` field.""" profileGrantsTableName: StringFilter - """Filter by the object’s `profilePermissionsTableId` field.""" - profilePermissionsTableId: UUIDFilter - - """Filter by the object’s `profilePermissionsTableName` field.""" - profilePermissionsTableName: StringFilter - """Filter by the object’s `profileTemplatesTableId` field.""" profileTemplatesTableId: UUIDFilter @@ -22172,22 +23893,24 @@ input ProfilesModuleFilter { input ProfilesModuleInput { actorTableId: UUID apiName: String + capabilitiesTableId: UUID databaseId: UUID! entityField: String entityTableId: UUID id: UUID + membershipProfilesTableId: UUID + membershipProfilesTableName: String membershipsTableId: UUID - permissionsTableId: UUID prefix: String privateApiName: String privateSchemaId: UUID privateSchemaName: String + profileCapabilitiesTableId: UUID + profileCapabilitiesTableName: String profileDefinitionGrantsTableId: UUID profileDefinitionGrantsTableName: String profileGrantsTableId: UUID profileGrantsTableName: String - profilePermissionsTableId: UUID - profilePermissionsTableName: String profileTemplatesTableId: UUID profileTemplatesTableName: String publicSchemaName: String @@ -22203,6 +23926,8 @@ enum ProfilesModuleOrderBy { ACTOR_TABLE_ID_DESC API_NAME_ASC API_NAME_DESC + CAPABILITIES_TABLE_ID_ASC + CAPABILITIES_TABLE_ID_DESC DATABASE_ID_ASC DATABASE_ID_DESC ENTITY_FIELD_ASC @@ -22213,9 +23938,11 @@ enum ProfilesModuleOrderBy { ID_DESC MEMBERSHIPS_TABLE_ID_ASC MEMBERSHIPS_TABLE_ID_DESC + MEMBERSHIP_PROFILES_TABLE_ID_ASC + MEMBERSHIP_PROFILES_TABLE_ID_DESC + MEMBERSHIP_PROFILES_TABLE_NAME_ASC + MEMBERSHIP_PROFILES_TABLE_NAME_DESC NATURAL - PERMISSIONS_TABLE_ID_ASC - PERMISSIONS_TABLE_ID_DESC PREFIX_ASC PREFIX_DESC PRIMARY_KEY_ASC @@ -22226,6 +23953,10 @@ enum ProfilesModuleOrderBy { PRIVATE_SCHEMA_ID_DESC PRIVATE_SCHEMA_NAME_ASC PRIVATE_SCHEMA_NAME_DESC + PROFILE_CAPABILITIES_TABLE_ID_ASC + PROFILE_CAPABILITIES_TABLE_ID_DESC + PROFILE_CAPABILITIES_TABLE_NAME_ASC + PROFILE_CAPABILITIES_TABLE_NAME_DESC PROFILE_DEFINITION_GRANTS_TABLE_ID_ASC PROFILE_DEFINITION_GRANTS_TABLE_ID_DESC PROFILE_DEFINITION_GRANTS_TABLE_NAME_ASC @@ -22234,10 +23965,6 @@ enum ProfilesModuleOrderBy { PROFILE_GRANTS_TABLE_ID_DESC PROFILE_GRANTS_TABLE_NAME_ASC PROFILE_GRANTS_TABLE_NAME_DESC - PROFILE_PERMISSIONS_TABLE_ID_ASC - PROFILE_PERMISSIONS_TABLE_ID_DESC - PROFILE_PERMISSIONS_TABLE_NAME_ASC - PROFILE_PERMISSIONS_TABLE_NAME_DESC PROFILE_TEMPLATES_TABLE_ID_ASC PROFILE_TEMPLATES_TABLE_ID_DESC PROFILE_TEMPLATES_TABLE_NAME_ASC @@ -22260,22 +23987,24 @@ Represents an update to a `ProfilesModule`. Fields that are set will be updated. input ProfilesModulePatch { actorTableId: UUID apiName: String + capabilitiesTableId: UUID databaseId: UUID entityField: String entityTableId: UUID id: UUID + membershipProfilesTableId: UUID + membershipProfilesTableName: String membershipsTableId: UUID - permissionsTableId: UUID prefix: String privateApiName: String privateSchemaId: UUID privateSchemaName: String + profileCapabilitiesTableId: UUID + profileCapabilitiesTableName: String profileDefinitionGrantsTableId: UUID profileDefinitionGrantsTableName: String profileGrantsTableId: UUID profileGrantsTableName: String - profilePermissionsTableId: UUID - profilePermissionsTableName: String profileTemplatesTableId: UUID profileTemplatesTableName: String publicSchemaName: String @@ -22316,237 +24045,6 @@ type ProvisionBucketPayload { success: Boolean! } -"""All input for the `provisionCheckConstraint` mutation.""" -input ProvisionCheckConstraintInput { - """ - An arbitrary 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 - definition: JSON - tableId: UUID -} - -"""The output of our `provisionCheckConstraint` mutation.""" -type ProvisionCheckConstraintPayload { - """ - The 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 `provisionFullTextSearch` mutation.""" -input ProvisionFullTextSearchInput { - """ - An arbitrary 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 - definition: JSON - tableId: UUID -} - -"""The output of our `provisionFullTextSearch` mutation.""" -type ProvisionFullTextSearchPayload { - """ - The 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 - result: UUID -} - -"""All input for the `provisionIndex` mutation.""" -input ProvisionIndexInput { - """ - An arbitrary 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 - definition: JSON - tableId: UUID -} - -"""The output of our `provisionIndex` mutation.""" -type ProvisionIndexPayload { - """ - The 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 - result: UUID -} - -"""All input for the `provisionRelation` mutation.""" -input ProvisionRelationInput { - apiRequired: Boolean - - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - createIndex: Boolean - databaseId: UUID - deleteAction: String - exposeInApi: Boolean - fieldName: String - grants: JSON - isRequired: Boolean - junctionSchemaId: UUID - junctionTableId: UUID - junctionTableName: String - nodes: JSON - policies: JSON - relationType: String - sourceFieldName: String - sourceTableId: UUID - targetFieldName: String - targetTableId: UUID - useCompositeKey: Boolean -} - -"""The output of our `provisionRelation` mutation.""" -type ProvisionRelationPayload { - """ - The 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 - result: [ProvisionRelationRecord] -} - -type ProvisionRelationRecord { - outFieldId: UUID - outJunctionTableId: UUID - outSourceFieldId: UUID - outTargetFieldId: UUID -} - -"""All input for the `provisionSpatialRelation` mutation.""" -input ProvisionSpatialRelationInput { - """ - An arbitrary 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 - name: String - operator: String - paramName: String - sourceFieldId: UUID - sourceTableId: UUID - targetFieldId: UUID - targetTableId: UUID -} - -"""The output of our `provisionSpatialRelation` mutation.""" -type ProvisionSpatialRelationPayload { - """ - The 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 - result: 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 - databaseId: UUID - description: String - fields: JSON - fullTextSearches: JSON - grants: JSON - indexes: JSON - nodes: JSON - policies: JSON - schemaId: UUID - tableId: UUID - tableName: String - uniqueConstraints: JSON - useRls: Boolean -} - -"""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 - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - result: [ProvisionTableRecord] -} - -type ProvisionTableRecord { - outFields: [UUID] - outTableId: UUID -} - -"""All input for the `provisionUniqueConstraint` mutation.""" -input ProvisionUniqueConstraintInput { - """ - An arbitrary 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 - definition: JSON - tableId: UUID -} - -"""The output of our `provisionUniqueConstraint` mutation.""" -type ProvisionUniqueConstraintPayload { - """ - The 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 -} - """The root query type which gives access points into the data universe.""" type Query { """ @@ -22786,6 +24284,35 @@ type Query { where: BlueprintFilter ): BlueprintConnection + """Reads and enables pagination through a set of `CapabilitiesModule`.""" + capabilitiesModules( + """Read all values in the set after (below) this cursor.""" + after: Cursor + + """Read all values in the set before (above) this cursor.""" + before: Cursor + + """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 + + """The method to use when ordering `CapabilitiesModule`.""" + orderBy: [CapabilitiesModuleOrderBy!] = [PRIMARY_KEY_ASC] + + """ + A filter to be used in determining which values should be returned by the collection. + """ + where: CapabilitiesModuleFilter + ): CapabilitiesModuleConnection + """Reads and enables pagination through a set of `CatalogModule`.""" catalogModules( """Read all values in the set after (below) this cursor.""" @@ -22906,6 +24433,35 @@ type Query { where: ConnectedAccountsModuleFilter ): ConnectedAccountsModuleConnection + """Reads and enables pagination through a set of `ContentPresetModule`.""" + contentPresetModules( + """Read all values in the set after (below) this cursor.""" + after: Cursor + + """Read all values in the set before (above) this cursor.""" + before: Cursor + + """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 + + """The method to use when ordering `ContentPresetModule`.""" + orderBy: [ContentPresetModuleOrderBy!] = [PRIMARY_KEY_ASC] + + """ + A filter to be used in determining which values should be returned by the collection. + """ + where: ContentPresetModuleFilter + ): ContentPresetModuleConnection + """Reads and enables pagination through a set of `CryptoAddressesModule`.""" cryptoAddressesModules( """Read all values in the set after (below) this cursor.""" @@ -22964,6 +24520,35 @@ type Query { where: CryptoAuthModuleFilter ): CryptoAuthModuleConnection + """Reads and enables pagination through a set of `DataCapabilitiesField`.""" + dataCapabilitiesFields( + """Read all values in the set after (below) this cursor.""" + after: Cursor + + """Read all values in the set before (above) this cursor.""" + before: Cursor + + """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 + + """The method to use when ordering `DataCapabilitiesField`.""" + orderBy: [DataCapabilitiesFieldOrderBy!] = [PRIMARY_KEY_ASC] + + """ + A filter to be used in determining which values should be returned by the collection. + """ + where: DataCapabilitiesFieldFilter + ): DataCapabilitiesFieldConnection + """ Reads and enables pagination through a set of `DatabaseProvisionModule`. """ @@ -23260,6 +24845,35 @@ type Query { where: DomainModuleFilter ): DomainModuleConnection + """Reads and enables pagination through a set of `EmailSenderModule`.""" + emailSenderModules( + """Read all values in the set after (below) this cursor.""" + after: Cursor + + """Read all values in the set before (above) this cursor.""" + before: Cursor + + """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 + + """The method to use when ordering `EmailSenderModule`.""" + orderBy: [EmailSenderModuleOrderBy!] = [PRIMARY_KEY_ASC] + + """ + A filter to be used in determining which values should be returned by the collection. + """ + where: EmailSenderModuleFilter + ): EmailSenderModuleConnection + """Reads and enables pagination through a set of `EmailsModule`.""" emailsModules( """Read all values in the set after (below) this cursor.""" @@ -23347,6 +24961,35 @@ type Query { where: EventsModuleFilter ): EventsModuleConnection + """Reads and enables pagination through a set of `FileRefField`.""" + fileRefFields( + """Read all values in the set after (below) this cursor.""" + after: Cursor + + """Read all values in the set before (above) this cursor.""" + before: Cursor + + """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 + + """The method to use when ordering `FileRefField`.""" + orderBy: [FileRefFieldOrderBy!] = [PRIMARY_KEY_ASC] + + """ + A filter to be used in determining which values should be returned by the collection. + """ + where: FileRefFieldFilter + ): FileRefFieldConnection + """ Reads and enables pagination through a set of `FunctionDeploymentModule`. """ @@ -23964,8 +25607,8 @@ type Query { where: NotificationsModuleFilter ): NotificationsModuleConnection - """Reads and enables pagination through a set of `PagesModule`.""" - pagesModules( + """Reads and enables pagination through a set of `OauthRequestsModule`.""" + oauthRequestsModules( """Read all values in the set after (below) this cursor.""" after: Cursor @@ -23984,17 +25627,17 @@ type Query { """ offset: Int - """The method to use when ordering `PagesModule`.""" - orderBy: [PagesModuleOrderBy!] = [PRIMARY_KEY_ASC] + """The method to use when ordering `OauthRequestsModule`.""" + orderBy: [OauthRequestsModuleOrderBy!] = [PRIMARY_KEY_ASC] """ A filter to be used in determining which values should be returned by the collection. """ - where: PagesModuleFilter - ): PagesModuleConnection + where: OauthRequestsModuleFilter + ): OauthRequestsModuleConnection - """Reads and enables pagination through a set of `PermissionsModule`.""" - permissionsModules( + """Reads and enables pagination through a set of `PagesModule`.""" + pagesModules( """Read all values in the set after (below) this cursor.""" after: Cursor @@ -24013,14 +25656,14 @@ type Query { """ offset: Int - """The method to use when ordering `PermissionsModule`.""" - orderBy: [PermissionsModuleOrderBy!] = [PRIMARY_KEY_ASC] + """The method to use when ordering `PagesModule`.""" + orderBy: [PagesModuleOrderBy!] = [PRIMARY_KEY_ASC] """ A filter to be used in determining which values should be returned by the collection. """ - where: PermissionsModuleFilter - ): PermissionsModuleConnection + where: PagesModuleFilter + ): PagesModuleConnection """Reads and enables pagination through a set of `PhoneNumbersModule`.""" phoneNumbersModules( @@ -24254,16 +25897,6 @@ type Query { where: RelationProvisionFilter ): RelationProvisionConnection - """ - 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. - """ - resolveBlueprintField(databaseId: UUID, fieldName: String, tableId: UUID): UUID - - """ - 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. - """ - resolveBlueprintTable(databaseId: UUID, defaultSchemaId: UUID, schemaName: String, tableMap: JSON, tableName: String): UUID - """Reads and enables pagination through a set of `ResourceModule`.""" resourceModules( """Read all values in the set after (below) this cursor.""" @@ -24351,6 +25984,35 @@ type Query { where: RouteModuleFilter ): RouteModuleConnection + """Reads and enables pagination through a set of `ScopeTypesModule`.""" + scopeTypesModules( + """Read all values in the set after (below) this cursor.""" + after: Cursor + + """Read all values in the set before (above) this cursor.""" + before: Cursor + + """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 + + """The method to use when ordering `ScopeTypesModule`.""" + orderBy: [ScopeTypesModuleOrderBy!] = [PRIMARY_KEY_ASC] + + """ + A filter to be used in determining which values should be returned by the collection. + """ + where: ScopeTypesModuleFilter + ): ScopeTypesModuleConnection + """Reads and enables pagination through a set of `SecureTableProvision`.""" secureTableProvisions( """Read all values in the set after (below) this cursor.""" @@ -24641,6 +26303,37 @@ type Query { where: UserSettingsModuleFilter ): UserSettingsModuleConnection + """ + Reads and enables pagination through a set of `UserSettingsSecurityModule`. + """ + userSettingsSecurityModules( + """Read all values in the set after (below) this cursor.""" + after: Cursor + + """Read all values in the set before (above) this cursor.""" + before: Cursor + + """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 + + """The method to use when ordering `UserSettingsSecurityModule`.""" + orderBy: [UserSettingsSecurityModuleOrderBy!] = [PRIMARY_KEY_ASC] + + """ + A filter to be used in determining which values should be returned by the collection. + """ + where: UserSettingsSecurityModuleFilter + ): UserSettingsSecurityModuleConnection + """Reads and enables pagination through a set of `UserStateModule`.""" userStateModules( """Read all values in the set after (below) this cursor.""" @@ -24793,7 +26486,7 @@ type RateLimitMetersModule { apiName: String checkRateLimitFunction: String! databaseId: UUID! - defaultPermissions: [String] + defaultCapabilities: [String] id: UUID! prefix: String privateApiName: String @@ -24853,8 +26546,8 @@ input RateLimitMetersModuleFilter { """Filter by the object’s `databaseId` field.""" databaseId: UUIDFilter - """Filter by the object’s `defaultPermissions` field.""" - defaultPermissions: StringListFilter + """Filter by the object’s `defaultCapabilities` field.""" + defaultCapabilities: StringListFilter """Filter by the object’s `id` field.""" id: UUIDFilter @@ -24907,7 +26600,7 @@ input RateLimitMetersModuleInput { apiName: String checkRateLimitFunction: String databaseId: UUID! - defaultPermissions: [String] + defaultCapabilities: [String] id: UUID prefix: String privateApiName: String @@ -24931,8 +26624,8 @@ enum RateLimitMetersModuleOrderBy { CHECK_RATE_LIMIT_FUNCTION_DESC DATABASE_ID_ASC DATABASE_ID_DESC - DEFAULT_PERMISSIONS_ASC - DEFAULT_PERMISSIONS_DESC + DEFAULT_CAPABILITIES_ASC + DEFAULT_CAPABILITIES_DESC ID_ASC ID_DESC NATURAL @@ -24971,7 +26664,7 @@ input RateLimitMetersModulePatch { apiName: String checkRateLimitFunction: String databaseId: UUID - defaultPermissions: [String] + defaultCapabilities: [String] id: UUID prefix: String privateApiName: String @@ -25986,7 +27679,7 @@ input RelationProvisionPatch { type ResourceModule { apiName: String databaseId: UUID! - defaultPermissions: [String] + defaultCapabilities: [String] entityField: String entityTableId: UUID @@ -26100,8 +27793,8 @@ input ResourceModuleFilter { """Filter by the object’s `databaseId` field.""" databaseId: UUIDFilter - """Filter by the object’s `defaultPermissions` field.""" - defaultPermissions: StringListFilter + """Filter by the object’s `defaultCapabilities` field.""" + defaultCapabilities: StringListFilter """Filter by the object’s `entityField` field.""" entityField: StringFilter @@ -26231,7 +27924,7 @@ input ResourceModuleFilter { input ResourceModuleInput { apiName: String databaseId: UUID! - defaultPermissions: [String] + defaultCapabilities: [String] entityField: String entityTableId: UUID id: UUID @@ -26273,8 +27966,8 @@ enum ResourceModuleOrderBy { API_NAME_DESC DATABASE_ID_ASC DATABASE_ID_DESC - DEFAULT_PERMISSIONS_ASC - DEFAULT_PERMISSIONS_DESC + DEFAULT_CAPABILITIES_ASC + DEFAULT_CAPABILITIES_DESC ENTITY_FIELD_ASC ENTITY_FIELD_DESC ENTITY_TABLE_ID_ASC @@ -26352,7 +28045,7 @@ Represents an update to a `ResourceModule`. Fields that are set will be updated. input ResourceModulePatch { apiName: String databaseId: UUID - defaultPermissions: [String] + defaultCapabilities: [String] entityField: String entityTableId: UUID id: UUID @@ -26568,12 +28261,14 @@ input RlsModulePatch { type RouteModule { apiName: String + appLinksFunctionName: String """Reads a single `CatalogModule` that is related to this `RouteModule`.""" catalogModule: CatalogModule catalogModuleId: UUID databaseId: UUID! - defaultPermissions: [String] + deepLinkFunctionName: String + defaultCapabilities: [String] """Reads a single `DomainModule` that is related to this `RouteModule`.""" domainModule: DomainModule @@ -26635,6 +28330,9 @@ input RouteModuleFilter { """Filter by the object’s `apiName` field.""" apiName: StringFilter + """Filter by the object’s `appLinksFunctionName` field.""" + appLinksFunctionName: StringFilter + """Filter by the object’s `catalogModule` relation.""" catalogModule: CatalogModuleFilter @@ -26647,8 +28345,11 @@ input RouteModuleFilter { """Filter by the object’s `databaseId` field.""" databaseId: UUIDFilter - """Filter by the object’s `defaultPermissions` field.""" - defaultPermissions: StringListFilter + """Filter by the object’s `deepLinkFunctionName` field.""" + deepLinkFunctionName: StringFilter + + """Filter by the object’s `defaultCapabilities` field.""" + defaultCapabilities: StringListFilter """Filter by the object’s `domainModule` relation.""" domainModule: DomainModuleFilter @@ -26726,9 +28427,11 @@ input RouteModuleFilter { """An input for mutations affecting `RouteModule`""" input RouteModuleInput { apiName: String + appLinksFunctionName: String catalogModuleId: UUID databaseId: UUID! - defaultPermissions: [String] + deepLinkFunctionName: String + defaultCapabilities: [String] domainModuleId: UUID entityField: String entityTableId: UUID @@ -26755,12 +28458,16 @@ input RouteModuleInput { enum RouteModuleOrderBy { API_NAME_ASC API_NAME_DESC + APP_LINKS_FUNCTION_NAME_ASC + APP_LINKS_FUNCTION_NAME_DESC CATALOG_MODULE_ID_ASC CATALOG_MODULE_ID_DESC DATABASE_ID_ASC DATABASE_ID_DESC - DEFAULT_PERMISSIONS_ASC - DEFAULT_PERMISSIONS_DESC + DEEP_LINK_FUNCTION_NAME_ASC + DEEP_LINK_FUNCTION_NAME_DESC + DEFAULT_CAPABILITIES_ASC + DEFAULT_CAPABILITIES_DESC DOMAIN_MODULE_ID_ASC DOMAIN_MODULE_ID_DESC ENTITY_FIELD_ASC @@ -26811,9 +28518,11 @@ Represents an update to a `RouteModule`. Fields that are set will be updated. """ input RouteModulePatch { apiName: String + appLinksFunctionName: String catalogModuleId: UUID databaseId: UUID - defaultPermissions: [String] + deepLinkFunctionName: String + defaultCapabilities: [String] domainModuleId: UUID entityField: String entityTableId: UUID @@ -26836,6 +28545,108 @@ input RouteModulePatch { scope: String } +type ScopeTypesModule { + databaseId: UUID! + id: UUID! + privateSchemaName: String + schemaId: UUID! + scopeTypesTableId: UUID! +} + +"""A connection to a list of `ScopeTypesModule` values.""" +type ScopeTypesModuleConnection { + """ + A list of edges which contains the `ScopeTypesModule` and cursor to aid in pagination. + """ + edges: [ScopeTypesModuleEdge]! + + """A list of `ScopeTypesModule` objects.""" + nodes: [ScopeTypesModule]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! + + """ + The count of *all* `ScopeTypesModule` you could get from the connection. + """ + totalCount: Int! +} + +"""A `ScopeTypesModule` edge in the connection.""" +type ScopeTypesModuleEdge { + """A cursor for use in pagination.""" + cursor: Cursor + + """The `ScopeTypesModule` at the end of the edge.""" + node: ScopeTypesModule +} + +""" +A filter to be used against `ScopeTypesModule` object types. All fields are combined with a logical ‘and.’ +""" +input ScopeTypesModuleFilter { + """Checks for all expressions in this list.""" + and: [ScopeTypesModuleFilter!] + + """Filter by the object’s `databaseId` field.""" + databaseId: UUIDFilter + + """Filter by the object’s `id` field.""" + id: UUIDFilter + + """Negates the expression.""" + not: ScopeTypesModuleFilter + + """Checks for any expressions in this list.""" + or: [ScopeTypesModuleFilter!] + + """Filter by the object’s `privateSchemaName` field.""" + privateSchemaName: StringFilter + + """Filter by the object’s `schemaId` field.""" + schemaId: UUIDFilter + + """Filter by the object’s `scopeTypesTableId` field.""" + scopeTypesTableId: UUIDFilter +} + +"""An input for mutations affecting `ScopeTypesModule`""" +input ScopeTypesModuleInput { + databaseId: UUID! + id: UUID + privateSchemaName: String + schemaId: UUID + scopeTypesTableId: UUID +} + +"""Methods to use when ordering `ScopeTypesModule`.""" +enum ScopeTypesModuleOrderBy { + DATABASE_ID_ASC + DATABASE_ID_DESC + ID_ASC + ID_DESC + NATURAL + PRIMARY_KEY_ASC + PRIMARY_KEY_DESC + PRIVATE_SCHEMA_NAME_ASC + PRIVATE_SCHEMA_NAME_DESC + SCHEMA_ID_ASC + SCHEMA_ID_DESC + SCOPE_TYPES_TABLE_ID_ASC + SCOPE_TYPES_TABLE_ID_DESC +} + +""" +Represents an update to a `ScopeTypesModule`. Fields that are set will be updated. +""" +input ScopeTypesModulePatch { + databaseId: UUID + id: UUID + privateSchemaName: String + schemaId: UUID + scopeTypesTableId: UUID +} + """ Provisions security, fields, grants, and policies onto a table. Each row can independently: (1) create fields via nodes[] array (supporting multiple Data* modules per row), (2) grant privileges via grants[] array (supporting per-role privilege targeting), (3) create RLS policies via policies[] array (supporting multiple Authz* policies per row). Multiple rows can target the same table to compose different concerns. All three concerns are optional and independent. """ @@ -27388,7 +29199,36 @@ type SiteSurfaceModule { catalogModule: CatalogModule catalogModuleId: UUID databaseId: UUID! - defaultPermissions: [String] + defaultCapabilities: [String] + + """Reads and enables pagination through a set of `EmailSenderModule`.""" + emailSenderModules( + """Read all values in the set after (below) this cursor.""" + after: Cursor + + """Read all values in the set before (above) this cursor.""" + before: Cursor + + """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 + + """The method to use when ordering `EmailSenderModule`.""" + orderBy: [EmailSenderModuleOrderBy!] = [PRIMARY_KEY_ASC] + + """ + A filter to be used in determining which values should be returned by the collection. + """ + where: EmailSenderModuleFilter + ): EmailSenderModuleConnection! entityField: String entityTableId: UUID id: UUID! @@ -27498,8 +29338,14 @@ input SiteSurfaceModuleFilter { """Filter by the object’s `databaseId` field.""" databaseId: UUIDFilter - """Filter by the object’s `defaultPermissions` field.""" - defaultPermissions: StringListFilter + """Filter by the object’s `defaultCapabilities` field.""" + defaultCapabilities: StringListFilter + + """Filter by the object’s `emailSenderModules` relation.""" + emailSenderModules: SiteSurfaceModuleToManyEmailSenderModuleFilter + + """`emailSenderModules` exist.""" + emailSenderModulesExist: Boolean """Filter by the object’s `entityField` field.""" entityField: StringFilter @@ -27603,7 +29449,7 @@ input SiteSurfaceModuleInput { apiName: String catalogModuleId: UUID databaseId: UUID! - defaultPermissions: [String] + defaultCapabilities: [String] entityField: String entityTableId: UUID id: UUID @@ -27642,8 +29488,8 @@ enum SiteSurfaceModuleOrderBy { CATALOG_MODULE_ID_DESC DATABASE_ID_ASC DATABASE_ID_DESC - DEFAULT_PERMISSIONS_ASC - DEFAULT_PERMISSIONS_DESC + DEFAULT_CAPABILITIES_ASC + DEFAULT_CAPABILITIES_DESC ENTITY_FIELD_ASC ENTITY_FIELD_DESC ENTITY_TABLE_ID_ASC @@ -27712,7 +29558,7 @@ input SiteSurfaceModulePatch { apiName: String catalogModuleId: UUID databaseId: UUID - defaultPermissions: [String] + defaultCapabilities: [String] entityField: String entityTableId: UUID id: UUID @@ -27743,6 +29589,20 @@ input SiteSurfaceModulePatch { sitesTableName: String } +""" +A filter to be used against many `EmailSenderModule` object types. All fields are combined with a logical ‘and.’ +""" +input SiteSurfaceModuleToManyEmailSenderModuleFilter { + """Filters to entities where every related entity matches.""" + every: EmailSenderModuleFilter + + """Filters to entities where no related entity matches.""" + none: EmailSenderModuleFilter + + """Filters to entities where at least one related entity matches.""" + some: EmailSenderModuleFilter +} + """ A filter to be used against many `PagesModule` object types. All fields are combined with a logical ‘and.’ """ @@ -27988,13 +29848,42 @@ type StorageModule { catalogModuleId: UUID confirmUploadDelay: Interval! databaseId: UUID! + defaultCapabilities: [String] defaultMaxFileSize: BigInt - defaultPermissions: [String] downloadUrlExpirySeconds: Int endpoint: String entityField: String entityTableId: UUID fileEventsTableId: UUID + + """Reads and enables pagination through a set of `FileRefField`.""" + fileRefFields( + """Read all values in the set after (below) this cursor.""" + after: Cursor + + """Read all values in the set before (above) this cursor.""" + before: Cursor + + """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 + + """The method to use when ordering `FileRefField`.""" + orderBy: [FileRefFieldOrderBy!] = [PRIMARY_KEY_ASC] + + """ + A filter to be used in determining which values should be returned by the collection. + """ + where: FileRefFieldFilter + ): FileRefFieldConnection! filesTableId: UUID! filesTableName: String! hasAuditLog: Boolean! @@ -28109,12 +29998,12 @@ input StorageModuleFilter { """Filter by the object’s `databaseId` field.""" databaseId: UUIDFilter + """Filter by the object’s `defaultCapabilities` field.""" + defaultCapabilities: StringListFilter + """Filter by the object’s `defaultMaxFileSize` field.""" defaultMaxFileSize: BigIntFilter - """Filter by the object’s `defaultPermissions` field.""" - defaultPermissions: StringListFilter - """Filter by the object’s `downloadUrlExpirySeconds` field.""" downloadUrlExpirySeconds: IntFilter @@ -28130,6 +30019,12 @@ input StorageModuleFilter { """Filter by the object’s `fileEventsTableId` field.""" fileEventsTableId: UUIDFilter + """Filter by the object’s `fileRefFields` relation.""" + fileRefFields: StorageModuleToManyFileRefFieldFilter + + """`fileRefFields` exist.""" + fileRefFieldsExist: Boolean + """Filter by the object’s `filesTableId` field.""" filesTableId: UUIDFilter @@ -28231,8 +30126,8 @@ input StorageModuleInput { catalogModuleId: UUID confirmUploadDelay: IntervalInput databaseId: UUID! + defaultCapabilities: [String] defaultMaxFileSize: BigInt - defaultPermissions: [String] downloadUrlExpirySeconds: Int endpoint: String entityField: String @@ -28284,10 +30179,10 @@ enum StorageModuleOrderBy { CONFIRM_UPLOAD_DELAY_DESC DATABASE_ID_ASC DATABASE_ID_DESC + DEFAULT_CAPABILITIES_ASC + DEFAULT_CAPABILITIES_DESC DEFAULT_MAX_FILE_SIZE_ASC DEFAULT_MAX_FILE_SIZE_DESC - DEFAULT_PERMISSIONS_ASC - DEFAULT_PERMISSIONS_DESC DOWNLOAD_URL_EXPIRY_SECONDS_ASC DOWNLOAD_URL_EXPIRY_SECONDS_DESC ENDPOINT_ASC @@ -28367,8 +30262,8 @@ input StorageModulePatch { catalogModuleId: UUID confirmUploadDelay: IntervalInput databaseId: UUID + defaultCapabilities: [String] defaultMaxFileSize: BigInt - defaultPermissions: [String] downloadUrlExpirySeconds: Int endpoint: String entityField: String @@ -28402,6 +30297,20 @@ input StorageModulePatch { uploadUrlExpirySeconds: Int } +""" +A filter to be used against many `FileRefField` object types. All fields are combined with a logical ‘and.’ +""" +input StorageModuleToManyFileRefFieldFilter { + """Filters to entities where every related entity matches.""" + every: FileRefFieldFilter + + """Filters to entities where no related entity matches.""" + none: FileRefFieldFilter + + """Filters to entities where at least one related entity matches.""" + some: FileRefFieldFilter +} + """ A filter to be used against many `HttpRouteModule` object types. All fields are combined with a logical ‘and.’ """ @@ -29253,6 +31162,44 @@ type UpdateBlueprintTemplatePayload { query: Query } +"""All input for the `updateCapabilitiesModule` mutation.""" +input UpdateCapabilitiesModuleInput { + """ + An object where the defined keys will be set on the `CapabilitiesModule` being updated. + """ + capabilitiesModulePatch: CapabilitiesModulePatch! + + """ + An arbitrary 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 update `CapabilitiesModule` mutation.""" +type UpdateCapabilitiesModulePayload { + """The `CapabilitiesModule` that was updated by this mutation.""" + capabilitiesModule: CapabilitiesModule + + """An edge for our `CapabilitiesModule`. May be used by Relay 1.""" + capabilitiesModuleEdge( + """The method to use when ordering `CapabilitiesModule`.""" + orderBy: [CapabilitiesModuleOrderBy!]! = [PRIMARY_KEY_ASC] + ): CapabilitiesModuleEdge + + """ + The 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 `updateCatalogModule` mutation.""" input UpdateCatalogModuleInput { """ @@ -29405,6 +31352,44 @@ type UpdateConnectedAccountsModulePayload { query: Query } +"""All input for the `updateContentPresetModule` mutation.""" +input UpdateContentPresetModuleInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + + """ + An object where the defined keys will be set on the `ContentPresetModule` being updated. + """ + contentPresetModulePatch: ContentPresetModulePatch! + id: UUID! +} + +"""The output of our update `ContentPresetModule` mutation.""" +type UpdateContentPresetModulePayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `ContentPresetModule` that was updated by this mutation.""" + contentPresetModule: ContentPresetModule + + """An edge for our `ContentPresetModule`. May be used by Relay 1.""" + contentPresetModuleEdge( + """The method to use when ordering `ContentPresetModule`.""" + orderBy: [ContentPresetModuleOrderBy!]! = [PRIMARY_KEY_ASC] + ): ContentPresetModuleEdge + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query +} + """All input for the `updateCryptoAddressesModule` mutation.""" input UpdateCryptoAddressesModuleInput { """ @@ -29481,6 +31466,44 @@ type UpdateCryptoAuthModulePayload { query: Query } +"""All input for the `updateDataCapabilitiesField` mutation.""" +input UpdateDataCapabilitiesFieldInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + + """ + An object where the defined keys will be set on the `DataCapabilitiesField` being updated. + """ + dataCapabilitiesFieldPatch: DataCapabilitiesFieldPatch! + id: UUID! +} + +"""The output of our update `DataCapabilitiesField` mutation.""" +type UpdateDataCapabilitiesFieldPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `DataCapabilitiesField` that was updated by this mutation.""" + dataCapabilitiesField: DataCapabilitiesField + + """An edge for our `DataCapabilitiesField`. May be used by Relay 1.""" + dataCapabilitiesFieldEdge( + """The method to use when ordering `DataCapabilitiesField`.""" + orderBy: [DataCapabilitiesFieldOrderBy!]! = [PRIMARY_KEY_ASC] + ): DataCapabilitiesFieldEdge + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query +} + """All input for the `updateDatabaseProvisionModule` mutation.""" input UpdateDatabaseProvisionModuleInput { """ @@ -29861,6 +31884,44 @@ type UpdateDomainModulePayload { query: Query } +"""All input for the `updateEmailSenderModule` mutation.""" +input UpdateEmailSenderModuleInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + + """ + An object where the defined keys will be set on the `EmailSenderModule` being updated. + """ + emailSenderModulePatch: EmailSenderModulePatch! + id: UUID! +} + +"""The output of our update `EmailSenderModule` mutation.""" +type UpdateEmailSenderModulePayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `EmailSenderModule` that was updated by this mutation.""" + emailSenderModule: EmailSenderModule + + """An edge for our `EmailSenderModule`. May be used by Relay 1.""" + emailSenderModuleEdge( + """The method to use when ordering `EmailSenderModule`.""" + orderBy: [EmailSenderModuleOrderBy!]! = [PRIMARY_KEY_ASC] + ): EmailSenderModuleEdge + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query +} + """All input for the `updateEmailsModule` mutation.""" input UpdateEmailsModuleInput { """ @@ -29977,6 +32038,44 @@ type UpdateEventsModulePayload { query: Query } +"""All input for the `updateFileRefField` mutation.""" +input UpdateFileRefFieldInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + + """ + An object where the defined keys will be set on the `FileRefField` being updated. + """ + fileRefFieldPatch: FileRefFieldPatch! + id: UUID! +} + +"""The output of our update `FileRefField` mutation.""" +type UpdateFileRefFieldPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `FileRefField` that was updated by this mutation.""" + fileRefField: FileRefField + + """An edge for our `FileRefField`. May be used by Relay 1.""" + fileRefFieldEdge( + """The method to use when ordering `FileRefField`.""" + orderBy: [FileRefFieldOrderBy!]! = [PRIMARY_KEY_ASC] + ): FileRefFieldEdge + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query +} + """All input for the `updateFunctionDeploymentModule` mutation.""" input UpdateFunctionDeploymentModuleInput { """ @@ -30775,8 +32874,8 @@ type UpdateNotificationsModulePayload { query: Query } -"""All input for the `updatePagesModule` mutation.""" -input UpdatePagesModuleInput { +"""All input for the `updateOauthRequestsModule` mutation.""" +input UpdateOauthRequestsModuleInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. @@ -30785,27 +32884,27 @@ input UpdatePagesModuleInput { id: UUID! """ - An object where the defined keys will be set on the `PagesModule` being updated. + An object where the defined keys will be set on the `OauthRequestsModule` being updated. """ - pagesModulePatch: PagesModulePatch! + oauthRequestsModulePatch: OauthRequestsModulePatch! } -"""The output of our update `PagesModule` mutation.""" -type UpdatePagesModulePayload { +"""The output of our update `OauthRequestsModule` mutation.""" +type UpdateOauthRequestsModulePayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `PagesModule` that was updated by this mutation.""" - pagesModule: PagesModule + """The `OauthRequestsModule` that was updated by this mutation.""" + oauthRequestsModule: OauthRequestsModule - """An edge for our `PagesModule`. May be used by Relay 1.""" - pagesModuleEdge( - """The method to use when ordering `PagesModule`.""" - orderBy: [PagesModuleOrderBy!]! = [PRIMARY_KEY_ASC] - ): PagesModuleEdge + """An edge for our `OauthRequestsModule`. May be used by Relay 1.""" + oauthRequestsModuleEdge( + """The method to use when ordering `OauthRequestsModule`.""" + orderBy: [OauthRequestsModuleOrderBy!]! = [PRIMARY_KEY_ASC] + ): OauthRequestsModuleEdge """ Our root query field type. Allows us to run any query from our mutation payload. @@ -30813,8 +32912,8 @@ type UpdatePagesModulePayload { query: Query } -"""All input for the `updatePermissionsModule` mutation.""" -input UpdatePermissionsModuleInput { +"""All input for the `updatePagesModule` mutation.""" +input UpdatePagesModuleInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. @@ -30823,27 +32922,27 @@ input UpdatePermissionsModuleInput { id: UUID! """ - An object where the defined keys will be set on the `PermissionsModule` being updated. + An object where the defined keys will be set on the `PagesModule` being updated. """ - permissionsModulePatch: PermissionsModulePatch! + pagesModulePatch: PagesModulePatch! } -"""The output of our update `PermissionsModule` mutation.""" -type UpdatePermissionsModulePayload { +"""The output of our update `PagesModule` mutation.""" +type UpdatePagesModulePayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `PermissionsModule` that was updated by this mutation.""" - permissionsModule: PermissionsModule + """The `PagesModule` that was updated by this mutation.""" + pagesModule: PagesModule - """An edge for our `PermissionsModule`. May be used by Relay 1.""" - permissionsModuleEdge( - """The method to use when ordering `PermissionsModule`.""" - orderBy: [PermissionsModuleOrderBy!]! = [PRIMARY_KEY_ASC] - ): PermissionsModuleEdge + """An edge for our `PagesModule`. May be used by Relay 1.""" + pagesModuleEdge( + """The method to use when ordering `PagesModule`.""" + orderBy: [PagesModuleOrderBy!]! = [PRIMARY_KEY_ASC] + ): PagesModuleEdge """ Our root query field type. Allows us to run any query from our mutation payload. @@ -31271,6 +33370,44 @@ type UpdateRouteModulePayload { ): RouteModuleEdge } +"""All input for the `updateScopeTypesModule` mutation.""" +input UpdateScopeTypesModuleInput { + """ + An arbitrary 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 `ScopeTypesModule` being updated. + """ + scopeTypesModulePatch: ScopeTypesModulePatch! +} + +"""The output of our update `ScopeTypesModule` mutation.""" +type UpdateScopeTypesModulePayload { + """ + The 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 + + """The `ScopeTypesModule` that was updated by this mutation.""" + scopeTypesModule: ScopeTypesModule + + """An edge for our `ScopeTypesModule`. May be used by Relay 1.""" + scopeTypesModuleEdge( + """The method to use when ordering `ScopeTypesModule`.""" + orderBy: [ScopeTypesModuleOrderBy!]! = [PRIMARY_KEY_ASC] + ): ScopeTypesModuleEdge +} + """All input for the `updateSecureTableProvision` mutation.""" input UpdateSecureTableProvisionInput { """ @@ -31653,6 +33790,44 @@ type UpdateUserSettingsModulePayload { ): UserSettingsModuleEdge } +"""All input for the `updateUserSettingsSecurityModule` mutation.""" +input UpdateUserSettingsSecurityModuleInput { + """ + An arbitrary 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 `UserSettingsSecurityModule` being updated. + """ + userSettingsSecurityModulePatch: UserSettingsSecurityModulePatch! +} + +"""The output of our update `UserSettingsSecurityModule` mutation.""" +type UpdateUserSettingsSecurityModulePayload { + """ + The 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 + + """The `UserSettingsSecurityModule` that was updated by this mutation.""" + userSettingsSecurityModule: UserSettingsSecurityModule + + """An edge for our `UserSettingsSecurityModule`. May be used by Relay 1.""" + userSettingsSecurityModuleEdge( + """The method to use when ordering `UserSettingsSecurityModule`.""" + orderBy: [UserSettingsSecurityModuleOrderBy!]! = [PRIMARY_KEY_ASC] + ): UserSettingsSecurityModuleEdge +} + """All input for the `updateUserStateModule` mutation.""" input UpdateUserStateModuleInput { """ @@ -32368,6 +34543,124 @@ input UserSettingsModulePatch { tableName: String } +type UserSettingsSecurityModule { + apiName: String + databaseId: UUID! + id: UUID! + ownerTableId: UUID! + schemaId: UUID! + tableId: UUID! + tableName: String! +} + +"""A connection to a list of `UserSettingsSecurityModule` values.""" +type UserSettingsSecurityModuleConnection { + """ + A list of edges which contains the `UserSettingsSecurityModule` and cursor to aid in pagination. + """ + edges: [UserSettingsSecurityModuleEdge]! + + """A list of `UserSettingsSecurityModule` objects.""" + nodes: [UserSettingsSecurityModule]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! + + """ + The count of *all* `UserSettingsSecurityModule` you could get from the connection. + """ + totalCount: Int! +} + +"""A `UserSettingsSecurityModule` edge in the connection.""" +type UserSettingsSecurityModuleEdge { + """A cursor for use in pagination.""" + cursor: Cursor + + """The `UserSettingsSecurityModule` at the end of the edge.""" + node: UserSettingsSecurityModule +} + +""" +A filter to be used against `UserSettingsSecurityModule` object types. All fields are combined with a logical ‘and.’ +""" +input UserSettingsSecurityModuleFilter { + """Checks for all expressions in this list.""" + and: [UserSettingsSecurityModuleFilter!] + + """Filter by the object’s `apiName` field.""" + apiName: StringFilter + + """Filter by the object’s `databaseId` field.""" + databaseId: UUIDFilter + + """Filter by the object’s `id` field.""" + id: UUIDFilter + + """Negates the expression.""" + not: UserSettingsSecurityModuleFilter + + """Checks for any expressions in this list.""" + or: [UserSettingsSecurityModuleFilter!] + + """Filter by the object’s `ownerTableId` field.""" + ownerTableId: 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 +} + +"""An input for mutations affecting `UserSettingsSecurityModule`""" +input UserSettingsSecurityModuleInput { + apiName: String + databaseId: UUID! + id: UUID + ownerTableId: UUID + schemaId: UUID + tableId: UUID + tableName: String +} + +"""Methods to use when ordering `UserSettingsSecurityModule`.""" +enum UserSettingsSecurityModuleOrderBy { + API_NAME_ASC + API_NAME_DESC + DATABASE_ID_ASC + DATABASE_ID_DESC + ID_ASC + ID_DESC + NATURAL + OWNER_TABLE_ID_ASC + OWNER_TABLE_ID_DESC + PRIMARY_KEY_ASC + PRIMARY_KEY_DESC + SCHEMA_ID_ASC + SCHEMA_ID_DESC + TABLE_ID_ASC + TABLE_ID_DESC + TABLE_NAME_ASC + TABLE_NAME_DESC +} + +""" +Represents an update to a `UserSettingsSecurityModule`. Fields that are set will be updated. +""" +input UserSettingsSecurityModulePatch { + apiName: String + databaseId: UUID + id: UUID + ownerTableId: UUID + schemaId: UUID + tableId: UUID + tableName: String +} + type UserStateModule { databaseId: UUID! entityField: String @@ -32952,7 +35245,7 @@ input WebauthnCredentialsModulePatch { type WebhookModule { apiName: String databaseId: UUID! - defaultPermissions: [String] + defaultCapabilities: [String] entityField: String entityTableId: UUID @@ -33034,8 +35327,8 @@ input WebhookModuleFilter { """Filter by the object’s `databaseId` field.""" databaseId: UUIDFilter - """Filter by the object’s `defaultPermissions` field.""" - defaultPermissions: StringListFilter + """Filter by the object’s `defaultCapabilities` field.""" + defaultCapabilities: StringListFilter """Filter by the object’s `entityField` field.""" entityField: StringFilter @@ -33132,7 +35425,7 @@ input WebhookModuleFilter { input WebhookModuleInput { apiName: String databaseId: UUID! - defaultPermissions: [String] + defaultCapabilities: [String] entityField: String entityTableId: UUID functionInvocationModuleId: UUID @@ -33161,8 +35454,8 @@ enum WebhookModuleOrderBy { API_NAME_DESC DATABASE_ID_ASC DATABASE_ID_DESC - DEFAULT_PERMISSIONS_ASC - DEFAULT_PERMISSIONS_DESC + DEFAULT_CAPABILITIES_ASC + DEFAULT_CAPABILITIES_DESC ENTITY_FIELD_ASC ENTITY_FIELD_DESC ENTITY_TABLE_ID_ASC @@ -33214,7 +35507,7 @@ Represents an update to a `WebhookModule`. Fields that are set will be updated. input WebhookModulePatch { apiName: String databaseId: UUID - defaultPermissions: [String] + defaultCapabilities: [String] entityField: String entityTableId: UUID functionInvocationModuleId: UUID diff --git a/sdk/constructive-sdk/schemas/objects.graphql b/sdk/constructive-sdk/schemas/objects.graphql index 6984ef2d31..2858c435c8 100644 --- a/sdk/constructive-sdk/schemas/objects.graphql +++ b/sdk/constructive-sdk/schemas/objects.graphql @@ -613,6 +613,36 @@ type InsertNodeAtPathPayload { result: UUID } +"""All input for the `insertNodesAtPaths` mutation.""" +input InsertNodesAtPathsInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + datas: [JSON] + kidsList: JSON + ktreeList: JSON + paths: JSON + root: UUID + sId: UUID +} + +"""The output of our `insertNodesAtPaths` mutation.""" +type InsertNodesAtPathsPayload { + """ + The 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 + result: UUID +} + """ Represents JSON values as specified by [ECMA-404](http://www.ecma-international.org/publications/files/ECMA-ST/ECMA-404.pdf). """ @@ -1061,6 +1091,12 @@ type Mutation { """ input: InsertNodeAtPathInput! ): InsertNodeAtPathPayload + insertNodesAtPaths( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: InsertNodesAtPathsInput! + ): InsertNodesAtPathsPayload """ Provision an S3 bucket for a logical bucket in the database. @@ -1074,12 +1110,24 @@ type Mutation { """ input: ProvisionBucketInput! ): ProvisionBucketPayload + setAndCommit( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: SetAndCommitInput! + ): SetAndCommitPayload setDataAtPath( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ input: SetDataAtPathInput! ): SetDataAtPathPayload + setManyAndCommit( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: SetManyAndCommitInput! + ): SetManyAndCommitPayload """Updates a single `Commit` using a unique key and a patch.""" updateCommit( @@ -1572,6 +1620,44 @@ input RefPatch { storeId: UUID } +"""All input for the `setAndCommit` mutation.""" +input SetAndCommitInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + data: JSON + kids: [UUID] + ktree: [String] + message: String + path: [String] + refname: String + sId: UUID + storeId: UUID +} + +"""The output of our `setAndCommit` mutation.""" +type SetAndCommitPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """An edge for our `Commit`. May be used by Relay 1.""" + commitEdge( + """The method to use when ordering `Commit`.""" + orderBy: [CommitOrderBy!]! = [PRIMARY_KEY_ASC] + ): CommitEdge + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + result: Commit +} + """All input for the `setDataAtPath` mutation.""" input SetDataAtPathInput { """ @@ -1600,6 +1686,41 @@ type SetDataAtPathPayload { result: UUID } +"""All input for the `setManyAndCommit` mutation.""" +input SetManyAndCommitInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + entries: JSON + message: String + refname: String + sId: UUID + storeId: UUID +} + +"""The output of our `setManyAndCommit` mutation.""" +type SetManyAndCommitPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """An edge for our `Commit`. May be used by Relay 1.""" + commitEdge( + """The method to use when ordering `Commit`.""" + orderBy: [CommitOrderBy!]! = [PRIMARY_KEY_ASC] + ): CommitEdge + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + result: Commit +} + """ Named stores — one per version-controlled tree (e.g. one graph, one definition set) """ diff --git a/sdk/constructive-sdk/schemas/usage.graphql b/sdk/constructive-sdk/schemas/usage.graphql index c5cdf5c88c..541f8e75f0 100644 --- a/sdk/constructive-sdk/schemas/usage.graphql +++ b/sdk/constructive-sdk/schemas/usage.graphql @@ -27,7 +27,7 @@ type AppLimit { periodCredits: BigInt """ - Ceiling set by the active plan via apply_plan(). Window reset does not change this value. + Ceiling pinned for this actor by the active plan via apply_plan(). NULL means the ceiling follows the tenant default in the default-limits table, so raising a default reaches rows that already exist. Window reset does not change this value. """ planMax: BigInt @@ -319,7 +319,7 @@ type AppLimitCredit { } """ -Redeemable credit codes managed by admins with the add_credits permission +Redeemable credit codes managed by admins with the add_credits capability """ type AppLimitCreditCode { """ @@ -1515,7 +1515,7 @@ input AppLimitInput { periodCredits: BigInt """ - Ceiling set by the active plan via apply_plan(). Window reset does not change this value. + Ceiling pinned for this actor by the active plan via apply_plan(). NULL means the ceiling follows the tenant default in the default-limits table, so raising a default reaches rows that already exist. Window reset does not change this value. """ planMax: BigInt @@ -1602,7 +1602,7 @@ input AppLimitPatch { periodCredits: BigInt """ - Ceiling set by the active plan via apply_plan(). Window reset does not change this value. + Ceiling pinned for this actor by the active plan via apply_plan(). NULL means the ceiling follows the tenant default in the default-limits table, so raising a default reaches rows that already exist. Window reset does not change this value. """ planMax: BigInt @@ -4057,7 +4057,7 @@ type OrgLimit { periodCredits: BigInt """ - Ceiling set by the active plan via apply_plan(). Window reset does not change this value. + Ceiling pinned for this actor by the active plan via apply_plan(). NULL means the ceiling follows the tenant default in the default-limits table, so raising a default reaches rows that already exist. Window reset does not change this value. """ planMax: BigInt @@ -4109,7 +4109,7 @@ type OrgLimitAggregate { periodCredits: BigInt """ - Ceiling set by the active plan via apply_plan(). Window reset does not change this value. + Ceiling pinned for this entity by the active plan via apply_plan(). NULL means the ceiling follows the tenant default in the default-limits table, so raising a default reaches rows that already exist. Window reset does not change this value. """ planMax: BigInt @@ -4246,7 +4246,7 @@ input OrgLimitAggregateInput { periodCredits: BigInt """ - Ceiling set by the active plan via apply_plan(). Window reset does not change this value. + Ceiling pinned for this entity by the active plan via apply_plan(). NULL means the ceiling follows the tenant default in the default-limits table, so raising a default reaches rows that already exist. Window reset does not change this value. """ planMax: BigInt @@ -4336,7 +4336,7 @@ input OrgLimitAggregatePatch { periodCredits: BigInt """ - Ceiling set by the active plan via apply_plan(). Window reset does not change this value. + Ceiling pinned for this entity by the active plan via apply_plan(). NULL means the ceiling follows the tenant default in the default-limits table, so raising a default reaches rows that already exist. Window reset does not change this value. """ planMax: BigInt @@ -5301,7 +5301,7 @@ input OrgLimitInput { periodCredits: BigInt """ - Ceiling set by the active plan via apply_plan(). Window reset does not change this value. + Ceiling pinned for this actor by the active plan via apply_plan(). NULL means the ceiling follows the tenant default in the default-limits table, so raising a default reaches rows that already exist. Window reset does not change this value. """ planMax: BigInt @@ -5391,7 +5391,7 @@ input OrgLimitPatch { periodCredits: BigInt """ - Ceiling set by the active plan via apply_plan(). Window reset does not change this value. + Ceiling pinned for this actor by the active plan via apply_plan(). NULL means the ceiling follows the tenant default in the default-limits table, so raising a default reaches rows that already exist. Window reset does not change this value. """ planMax: BigInt @@ -5912,6 +5912,8 @@ type Query { """ where: AppLimitFilter ): AppLimitConnection + captureAppLimitDefaults: JSON + captureOrgLimitDefaults: JSON """Reads and enables pagination through a set of `OrgLimitAggregate`.""" orgLimitAggregates( diff --git a/sdk/constructive-sdk/src/admin/README.md b/sdk/constructive-sdk/src/admin/README.md index c9e7aa3cfd..5278cfea63 100644 --- a/sdk/constructive-sdk/src/admin/README.md +++ b/sdk/constructive-sdk/src/admin/README.md @@ -8,8 +8,8 @@ ## Overview -- **Tables:** 30 -- **Custom queries:** 9 +- **Tables:** 26 +- **Custom queries:** 1 - **Custom mutations:** 3 **Generators:** ORM diff --git a/sdk/constructive-sdk/src/admin/orm/README.md b/sdk/constructive-sdk/src/admin/orm/README.md index c5a36159a7..29954ce8ff 100644 --- a/sdk/constructive-sdk/src/admin/orm/README.md +++ b/sdk/constructive-sdk/src/admin/orm/README.md @@ -22,18 +22,18 @@ const db = createClient({ | Model | Operations | |-------|------------| | `appAdminGrant` | findMany, findOne, create, update, delete | +| `appCapabilityDefaultCapability` | findMany, findOne, create, update, delete | +| `appCapabilityDefaultGrant` | findMany, findOne, create, update, delete | | `appClaimedInvite` | findMany, findOne, create, update, delete | | `appGrant` | findMany, findOne, create, update, delete | | `appInvite` | findMany, findOne, create, update, delete | | `appMembership` | findMany, findOne, create, update, delete | | `appMembershipDefault` | findMany, findOne, create, update, delete | | `appOwnerGrant` | findMany, findOne, create, update, delete | -| `appPermission` | findMany, findOne, create, update, delete | -| `appPermissionDefault` | findMany, findOne, create, update, delete | -| `appPermissionDefaultGrant` | findMany, findOne, create, update, delete | -| `appPermissionDefaultPermission` | findMany, findOne, create, update, delete | | `membershipType` | findMany, findOne, create, update, delete | | `orgAdminGrant` | findMany, findOne, create, update, delete | +| `orgCapabilityDefaultCapability` | findMany, findOne, create, update, delete | +| `orgCapabilityDefaultGrant` | findMany, findOne, create, update, delete | | `orgChartEdge` | findMany, findOne, create, update, delete | | `orgChartEdgeGrant` | findMany, findOne, create, update, delete | | `orgClaimedInvite` | findMany, findOne, create, update, delete | @@ -47,10 +47,6 @@ const db = createClient({ | `orgMembershipDefault` | findMany, findOne, create, update, delete | | `orgMembershipSetting` | findMany, findOne, create, update, delete | | `orgOwnerGrant` | findMany, findOne, create, update, delete | -| `orgPermission` | findMany, findOne, create, update, delete | -| `orgPermissionDefault` | findMany, findOne, create, update, delete | -| `orgPermissionDefaultGrant` | findMany, findOne, create, update, delete | -| `orgPermissionDefaultPermission` | findMany, findOne, create, update, delete | ## Table Operations @@ -88,6 +84,72 @@ const updated = await db.appAdminGrant.update({ where: { id: '' }, data: { const deleted = await db.appAdminGrant.delete({ where: { id: '' } }).execute(); ``` +### `db.appCapabilityDefaultCapability` + +CRUD operations for AppCapabilityDefaultCapability records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `capabilityId` | UUID | Yes | +| `createdAt` | Datetime | No | +| `id` | UUID | No | +| `updatedAt` | Datetime | No | + +**Operations:** + +```typescript +// List all appCapabilityDefaultCapability records +const items = await db.appCapabilityDefaultCapability.findMany({ select: { capabilityId: true, createdAt: true, id: true, updatedAt: true } }).execute(); + +// Get one by id +const item = await db.appCapabilityDefaultCapability.findOne({ id: '', select: { capabilityId: true, createdAt: true, id: true, updatedAt: true } }).execute(); + +// Create +const created = await db.appCapabilityDefaultCapability.create({ data: { capabilityId: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.appCapabilityDefaultCapability.update({ where: { id: '' }, data: { capabilityId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.appCapabilityDefaultCapability.delete({ where: { id: '' } }).execute(); +``` + +### `db.appCapabilityDefaultGrant` + +CRUD operations for AppCapabilityDefaultGrant records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `capabilityId` | UUID | Yes | +| `createdAt` | Datetime | No | +| `grantorId` | UUID | Yes | +| `id` | UUID | No | +| `isGrant` | Boolean | Yes | +| `updatedAt` | Datetime | No | + +**Operations:** + +```typescript +// List all appCapabilityDefaultGrant records +const items = await db.appCapabilityDefaultGrant.findMany({ select: { capabilityId: true, createdAt: true, grantorId: true, id: true, isGrant: true, updatedAt: true } }).execute(); + +// Get one by id +const item = await db.appCapabilityDefaultGrant.findOne({ id: '', select: { capabilityId: true, createdAt: true, grantorId: true, id: true, isGrant: true, updatedAt: true } }).execute(); + +// Create +const created = await db.appCapabilityDefaultGrant.create({ data: { capabilityId: '', grantorId: '', isGrant: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.appCapabilityDefaultGrant.update({ where: { id: '' }, data: { capabilityId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.appCapabilityDefaultGrant.delete({ where: { id: '' } }).execute(); +``` + ### `db.appClaimedInvite` CRUD operations for AppClaimedInvite records. @@ -131,24 +193,24 @@ CRUD operations for AppGrant records. | Field | Type | Editable | |-------|------|----------| | `actorId` | UUID | Yes | +| `capabilities` | BitString | Yes | | `createdAt` | Datetime | No | | `grantorId` | UUID | Yes | | `id` | UUID | No | | `isGrant` | Boolean | Yes | -| `permissions` | BitString | Yes | | `updatedAt` | Datetime | No | **Operations:** ```typescript // List all appGrant records -const items = await db.appGrant.findMany({ select: { actorId: true, createdAt: true, grantorId: true, id: true, isGrant: true, permissions: true, updatedAt: true } }).execute(); +const items = await db.appGrant.findMany({ select: { actorId: true, capabilities: true, createdAt: true, grantorId: true, id: true, isGrant: true, updatedAt: true } }).execute(); // Get one by id -const item = await db.appGrant.findOne({ id: '', select: { actorId: true, createdAt: true, grantorId: true, id: true, isGrant: true, permissions: true, updatedAt: true } }).execute(); +const item = await db.appGrant.findOne({ id: '', select: { actorId: true, capabilities: true, createdAt: true, grantorId: true, id: true, isGrant: true, updatedAt: true } }).execute(); // Create -const created = await db.appGrant.create({ data: { actorId: '', grantorId: '', isGrant: '', permissions: '' }, select: { id: true } }).execute(); +const created = await db.appGrant.create({ data: { actorId: '', capabilities: '', grantorId: '', isGrant: '' }, select: { id: true } }).execute(); // Update const updated = await db.appGrant.update({ where: { id: '' }, data: { actorId: '' }, select: { id: true } }).execute(); @@ -209,6 +271,7 @@ CRUD operations for AppMembership records. | Field | Type | Editable | |-------|------|----------| | `actorId` | UUID | Yes | +| `capabilities` | BitString | Yes | | `createdAt` | Datetime | No | | `createdBy` | UUID | Yes | | `granted` | BitString | Yes | @@ -220,7 +283,6 @@ CRUD operations for AppMembership records. | `isDisabled` | Boolean | Yes | | `isOwner` | Boolean | Yes | | `isVerified` | Boolean | Yes | -| `permissions` | BitString | Yes | | `profileId` | UUID | Yes | | `updatedAt` | Datetime | No | | `updatedBy` | UUID | Yes | @@ -229,13 +291,13 @@ CRUD operations for AppMembership records. ```typescript // List all appMembership records -const items = await db.appMembership.findMany({ select: { actorId: true, createdAt: true, createdBy: true, granted: true, id: true, isActive: true, isAdmin: true, isApproved: true, isBanned: true, isDisabled: true, isOwner: true, isVerified: true, permissions: true, profileId: true, updatedAt: true, updatedBy: true } }).execute(); +const items = await db.appMembership.findMany({ select: { actorId: true, capabilities: true, createdAt: true, createdBy: true, granted: true, id: true, isActive: true, isAdmin: true, isApproved: true, isBanned: true, isDisabled: true, isOwner: true, isVerified: true, profileId: true, updatedAt: true, updatedBy: true } }).execute(); // Get one by id -const item = await db.appMembership.findOne({ id: '', select: { actorId: true, createdAt: true, createdBy: true, granted: true, id: true, isActive: true, isAdmin: true, isApproved: true, isBanned: true, isDisabled: true, isOwner: true, isVerified: true, permissions: true, profileId: true, updatedAt: true, updatedBy: true } }).execute(); +const item = await db.appMembership.findOne({ id: '', select: { actorId: true, capabilities: true, createdAt: true, createdBy: true, granted: true, id: true, isActive: true, isAdmin: true, isApproved: true, isBanned: true, isDisabled: true, isOwner: true, isVerified: true, profileId: true, updatedAt: true, updatedBy: true } }).execute(); // Create -const created = await db.appMembership.create({ data: { actorId: '', createdBy: '', granted: '', isActive: '', isAdmin: '', isApproved: '', isBanned: '', isDisabled: '', isOwner: '', isVerified: '', permissions: '', profileId: '', updatedBy: '' }, select: { id: true } }).execute(); +const created = await db.appMembership.create({ data: { actorId: '', capabilities: '', createdBy: '', granted: '', isActive: '', isAdmin: '', isApproved: '', isBanned: '', isDisabled: '', isOwner: '', isVerified: '', profileId: '', updatedBy: '' }, select: { id: true } }).execute(); // Update const updated = await db.appMembership.update({ where: { id: '' }, data: { actorId: '' }, select: { id: true } }).execute(); @@ -313,178 +375,117 @@ const updated = await db.appOwnerGrant.update({ where: { id: '' }, data: { const deleted = await db.appOwnerGrant.delete({ where: { id: '' } }).execute(); ``` -### `db.appPermission` +### `db.membershipType` -CRUD operations for AppPermission records. +CRUD operations for MembershipType records. **Fields:** | Field | Type | Editable | |-------|------|----------| -| `bitnum` | Int | Yes | -| `bitstr` | BitString | Yes | | `description` | String | Yes | -| `id` | UUID | No | +| `hasUsersTableEntry` | Boolean | Yes | +| `id` | Int | No | | `name` | String | Yes | +| `parentMembershipType` | Int | Yes | +| `scope` | String | Yes | **Operations:** ```typescript -// List all appPermission records -const items = await db.appPermission.findMany({ select: { bitnum: true, bitstr: true, description: true, id: true, name: true } }).execute(); - -// Get one by id -const item = await db.appPermission.findOne({ id: '', select: { bitnum: true, bitstr: true, description: true, id: true, name: true } }).execute(); - -// Create -const created = await db.appPermission.create({ data: { bitnum: '', bitstr: '', description: '', name: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.appPermission.update({ where: { id: '' }, data: { bitnum: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.appPermission.delete({ where: { id: '' } }).execute(); -``` - -### `db.appPermissionDefault` - -CRUD operations for AppPermissionDefault records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `permissions` | BitString | Yes | - -**Operations:** - -```typescript -// List all appPermissionDefault records -const items = await db.appPermissionDefault.findMany({ select: { id: true, permissions: true } }).execute(); +// List all membershipType records +const items = await db.membershipType.findMany({ select: { description: true, hasUsersTableEntry: true, id: true, name: true, parentMembershipType: true, scope: true } }).execute(); // Get one by id -const item = await db.appPermissionDefault.findOne({ id: '', select: { id: true, permissions: true } }).execute(); +const item = await db.membershipType.findOne({ id: '', select: { description: true, hasUsersTableEntry: true, id: true, name: true, parentMembershipType: true, scope: true } }).execute(); // Create -const created = await db.appPermissionDefault.create({ data: { permissions: '' }, select: { id: true } }).execute(); +const created = await db.membershipType.create({ data: { description: '', hasUsersTableEntry: '', name: '', parentMembershipType: '', scope: '' }, select: { id: true } }).execute(); // Update -const updated = await db.appPermissionDefault.update({ where: { id: '' }, data: { permissions: '' }, select: { id: true } }).execute(); +const updated = await db.membershipType.update({ where: { id: '' }, data: { description: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.appPermissionDefault.delete({ where: { id: '' } }).execute(); +const deleted = await db.membershipType.delete({ where: { id: '' } }).execute(); ``` -### `db.appPermissionDefaultGrant` +### `db.orgAdminGrant` -CRUD operations for AppPermissionDefaultGrant records. +CRUD operations for OrgAdminGrant records. **Fields:** | Field | Type | Editable | |-------|------|----------| +| `actorId` | UUID | Yes | | `createdAt` | Datetime | No | +| `entityId` | UUID | Yes | | `grantorId` | UUID | Yes | | `id` | UUID | No | | `isGrant` | Boolean | Yes | -| `permissionId` | UUID | Yes | | `updatedAt` | Datetime | No | **Operations:** ```typescript -// List all appPermissionDefaultGrant records -const items = await db.appPermissionDefaultGrant.findMany({ select: { createdAt: true, grantorId: true, id: true, isGrant: true, permissionId: true, updatedAt: true } }).execute(); +// List all orgAdminGrant records +const items = await db.orgAdminGrant.findMany({ select: { actorId: true, createdAt: true, entityId: true, grantorId: true, id: true, isGrant: true, updatedAt: true } }).execute(); // Get one by id -const item = await db.appPermissionDefaultGrant.findOne({ id: '', select: { createdAt: true, grantorId: true, id: true, isGrant: true, permissionId: true, updatedAt: true } }).execute(); +const item = await db.orgAdminGrant.findOne({ id: '', select: { actorId: true, createdAt: true, entityId: true, grantorId: true, id: true, isGrant: true, updatedAt: true } }).execute(); // Create -const created = await db.appPermissionDefaultGrant.create({ data: { grantorId: '', isGrant: '', permissionId: '' }, select: { id: true } }).execute(); +const created = await db.orgAdminGrant.create({ data: { actorId: '', entityId: '', grantorId: '', isGrant: '' }, select: { id: true } }).execute(); // Update -const updated = await db.appPermissionDefaultGrant.update({ where: { id: '' }, data: { grantorId: '' }, select: { id: true } }).execute(); +const updated = await db.orgAdminGrant.update({ where: { id: '' }, data: { actorId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.appPermissionDefaultGrant.delete({ where: { id: '' } }).execute(); +const deleted = await db.orgAdminGrant.delete({ where: { id: '' } }).execute(); ``` -### `db.appPermissionDefaultPermission` +### `db.orgCapabilityDefaultCapability` -CRUD operations for AppPermissionDefaultPermission records. +CRUD operations for OrgCapabilityDefaultCapability records. **Fields:** | Field | Type | Editable | |-------|------|----------| +| `capabilityId` | UUID | Yes | | `createdAt` | Datetime | No | +| `entityId` | UUID | Yes | | `id` | UUID | No | -| `permissionId` | UUID | Yes | | `updatedAt` | Datetime | No | **Operations:** ```typescript -// List all appPermissionDefaultPermission records -const items = await db.appPermissionDefaultPermission.findMany({ select: { createdAt: true, id: true, permissionId: true, updatedAt: true } }).execute(); - -// Get one by id -const item = await db.appPermissionDefaultPermission.findOne({ id: '', select: { createdAt: true, id: true, permissionId: true, updatedAt: true } }).execute(); - -// Create -const created = await db.appPermissionDefaultPermission.create({ data: { permissionId: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.appPermissionDefaultPermission.update({ where: { id: '' }, data: { permissionId: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.appPermissionDefaultPermission.delete({ where: { id: '' } }).execute(); -``` - -### `db.membershipType` - -CRUD operations for MembershipType records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `description` | String | Yes | -| `hasUsersTableEntry` | Boolean | Yes | -| `id` | Int | No | -| `name` | String | Yes | -| `parentMembershipType` | Int | Yes | -| `scope` | String | Yes | - -**Operations:** - -```typescript -// List all membershipType records -const items = await db.membershipType.findMany({ select: { description: true, hasUsersTableEntry: true, id: true, name: true, parentMembershipType: true, scope: true } }).execute(); +// List all orgCapabilityDefaultCapability records +const items = await db.orgCapabilityDefaultCapability.findMany({ select: { capabilityId: true, createdAt: true, entityId: true, id: true, updatedAt: true } }).execute(); // Get one by id -const item = await db.membershipType.findOne({ id: '', select: { description: true, hasUsersTableEntry: true, id: true, name: true, parentMembershipType: true, scope: true } }).execute(); +const item = await db.orgCapabilityDefaultCapability.findOne({ id: '', select: { capabilityId: true, createdAt: true, entityId: true, id: true, updatedAt: true } }).execute(); // Create -const created = await db.membershipType.create({ data: { description: '', hasUsersTableEntry: '', name: '', parentMembershipType: '', scope: '' }, select: { id: true } }).execute(); +const created = await db.orgCapabilityDefaultCapability.create({ data: { capabilityId: '', entityId: '' }, select: { id: true } }).execute(); // Update -const updated = await db.membershipType.update({ where: { id: '' }, data: { description: '' }, select: { id: true } }).execute(); +const updated = await db.orgCapabilityDefaultCapability.update({ where: { id: '' }, data: { capabilityId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.membershipType.delete({ where: { id: '' } }).execute(); +const deleted = await db.orgCapabilityDefaultCapability.delete({ where: { id: '' } }).execute(); ``` -### `db.orgAdminGrant` +### `db.orgCapabilityDefaultGrant` -CRUD operations for OrgAdminGrant records. +CRUD operations for OrgCapabilityDefaultGrant records. **Fields:** | Field | Type | Editable | |-------|------|----------| -| `actorId` | UUID | Yes | +| `capabilityId` | UUID | Yes | | `createdAt` | Datetime | No | | `entityId` | UUID | Yes | | `grantorId` | UUID | Yes | @@ -495,20 +496,20 @@ CRUD operations for OrgAdminGrant records. **Operations:** ```typescript -// List all orgAdminGrant records -const items = await db.orgAdminGrant.findMany({ select: { actorId: true, createdAt: true, entityId: true, grantorId: true, id: true, isGrant: true, updatedAt: true } }).execute(); +// List all orgCapabilityDefaultGrant records +const items = await db.orgCapabilityDefaultGrant.findMany({ select: { capabilityId: true, createdAt: true, entityId: true, grantorId: true, id: true, isGrant: true, updatedAt: true } }).execute(); // Get one by id -const item = await db.orgAdminGrant.findOne({ id: '', select: { actorId: true, createdAt: true, entityId: true, grantorId: true, id: true, isGrant: true, updatedAt: true } }).execute(); +const item = await db.orgCapabilityDefaultGrant.findOne({ id: '', select: { capabilityId: true, createdAt: true, entityId: true, grantorId: true, id: true, isGrant: true, updatedAt: true } }).execute(); // Create -const created = await db.orgAdminGrant.create({ data: { actorId: '', entityId: '', grantorId: '', isGrant: '' }, select: { id: true } }).execute(); +const created = await db.orgCapabilityDefaultGrant.create({ data: { capabilityId: '', entityId: '', grantorId: '', isGrant: '' }, select: { id: true } }).execute(); // Update -const updated = await db.orgAdminGrant.update({ where: { id: '' }, data: { actorId: '' }, select: { id: true } }).execute(); +const updated = await db.orgCapabilityDefaultGrant.update({ where: { id: '' }, data: { capabilityId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.orgAdminGrant.delete({ where: { id: '' } }).execute(); +const deleted = await db.orgCapabilityDefaultGrant.delete({ where: { id: '' } }).execute(); ``` ### `db.orgChartEdge` @@ -688,25 +689,25 @@ CRUD operations for OrgGrant records. | Field | Type | Editable | |-------|------|----------| | `actorId` | UUID | Yes | +| `capabilities` | BitString | Yes | | `createdAt` | Datetime | No | | `entityId` | UUID | Yes | | `grantorId` | UUID | Yes | | `id` | UUID | No | | `isGrant` | Boolean | Yes | -| `permissions` | BitString | Yes | | `updatedAt` | Datetime | No | **Operations:** ```typescript // List all orgGrant records -const items = await db.orgGrant.findMany({ select: { actorId: true, createdAt: true, entityId: true, grantorId: true, id: true, isGrant: true, permissions: true, updatedAt: true } }).execute(); +const items = await db.orgGrant.findMany({ select: { actorId: true, capabilities: true, createdAt: true, entityId: true, grantorId: true, id: true, isGrant: true, updatedAt: true } }).execute(); // Get one by id -const item = await db.orgGrant.findOne({ id: '', select: { actorId: true, createdAt: true, entityId: true, grantorId: true, id: true, isGrant: true, permissions: true, updatedAt: true } }).execute(); +const item = await db.orgGrant.findOne({ id: '', select: { actorId: true, capabilities: true, createdAt: true, entityId: true, grantorId: true, id: true, isGrant: true, updatedAt: true } }).execute(); // Create -const created = await db.orgGrant.create({ data: { actorId: '', entityId: '', grantorId: '', isGrant: '', permissions: '' }, select: { id: true } }).execute(); +const created = await db.orgGrant.create({ data: { actorId: '', capabilities: '', entityId: '', grantorId: '', isGrant: '' }, select: { id: true } }).execute(); // Update const updated = await db.orgGrant.update({ where: { id: '' }, data: { actorId: '' }, select: { id: true } }).execute(); @@ -841,6 +842,7 @@ CRUD operations for OrgMembership records. | Field | Type | Editable | |-------|------|----------| | `actorId` | UUID | Yes | +| `capabilities` | BitString | Yes | | `createdAt` | Datetime | No | | `createdBy` | UUID | Yes | | `entityId` | UUID | Yes | @@ -854,7 +856,6 @@ CRUD operations for OrgMembership records. | `isExternal` | Boolean | Yes | | `isOwner` | Boolean | Yes | | `isReadOnly` | Boolean | Yes | -| `permissions` | BitString | Yes | | `profileId` | UUID | Yes | | `updatedAt` | Datetime | No | | `updatedBy` | UUID | Yes | @@ -863,13 +864,13 @@ CRUD operations for OrgMembership records. ```typescript // List all orgMembership records -const items = await db.orgMembership.findMany({ select: { actorId: true, createdAt: true, createdBy: true, entityId: true, granted: true, id: true, isActive: true, isAdmin: true, isApproved: true, isBanned: true, isDisabled: true, isExternal: true, isOwner: true, isReadOnly: true, permissions: true, profileId: true, updatedAt: true, updatedBy: true } }).execute(); +const items = await db.orgMembership.findMany({ select: { actorId: true, capabilities: true, createdAt: true, createdBy: true, entityId: true, granted: true, id: true, isActive: true, isAdmin: true, isApproved: true, isBanned: true, isDisabled: true, isExternal: true, isOwner: true, isReadOnly: true, profileId: true, updatedAt: true, updatedBy: true } }).execute(); // Get one by id -const item = await db.orgMembership.findOne({ id: '', select: { actorId: true, createdAt: true, createdBy: true, entityId: true, granted: true, id: true, isActive: true, isAdmin: true, isApproved: true, isBanned: true, isDisabled: true, isExternal: true, isOwner: true, isReadOnly: true, permissions: true, profileId: true, updatedAt: true, updatedBy: true } }).execute(); +const item = await db.orgMembership.findOne({ id: '', select: { actorId: true, capabilities: true, createdAt: true, createdBy: true, entityId: true, granted: true, id: true, isActive: true, isAdmin: true, isApproved: true, isBanned: true, isDisabled: true, isExternal: true, isOwner: true, isReadOnly: true, profileId: true, updatedAt: true, updatedBy: true } }).execute(); // Create -const created = await db.orgMembership.create({ data: { actorId: '', createdBy: '', entityId: '', granted: '', isActive: '', isAdmin: '', isApproved: '', isBanned: '', isDisabled: '', isExternal: '', isOwner: '', isReadOnly: '', permissions: '', profileId: '', updatedBy: '' }, select: { id: true } }).execute(); +const created = await db.orgMembership.create({ data: { actorId: '', capabilities: '', createdBy: '', entityId: '', granted: '', isActive: '', isAdmin: '', isApproved: '', isBanned: '', isDisabled: '', isExternal: '', isOwner: '', isReadOnly: '', profileId: '', updatedBy: '' }, select: { id: true } }).execute(); // Update const updated = await db.orgMembership.update({ where: { id: '' }, data: { actorId: '' }, select: { id: true } }).execute(); @@ -990,203 +991,8 @@ const updated = await db.orgOwnerGrant.update({ where: { id: '' }, data: { const deleted = await db.orgOwnerGrant.delete({ where: { id: '' } }).execute(); ``` -### `db.orgPermission` - -CRUD operations for OrgPermission records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `bitnum` | Int | Yes | -| `bitstr` | BitString | Yes | -| `description` | String | Yes | -| `id` | UUID | No | -| `name` | String | Yes | - -**Operations:** - -```typescript -// List all orgPermission records -const items = await db.orgPermission.findMany({ select: { bitnum: true, bitstr: true, description: true, id: true, name: true } }).execute(); - -// Get one by id -const item = await db.orgPermission.findOne({ id: '', select: { bitnum: true, bitstr: true, description: true, id: true, name: true } }).execute(); - -// Create -const created = await db.orgPermission.create({ data: { bitnum: '', bitstr: '', description: '', name: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.orgPermission.update({ where: { id: '' }, data: { bitnum: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.orgPermission.delete({ where: { id: '' } }).execute(); -``` - -### `db.orgPermissionDefault` - -CRUD operations for OrgPermissionDefault records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `entityId` | UUID | Yes | -| `id` | UUID | No | -| `permissions` | BitString | Yes | - -**Operations:** - -```typescript -// List all orgPermissionDefault records -const items = await db.orgPermissionDefault.findMany({ select: { entityId: true, id: true, permissions: true } }).execute(); - -// Get one by id -const item = await db.orgPermissionDefault.findOne({ id: '', select: { entityId: true, id: true, permissions: true } }).execute(); - -// Create -const created = await db.orgPermissionDefault.create({ data: { entityId: '', permissions: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.orgPermissionDefault.update({ where: { id: '' }, data: { entityId: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.orgPermissionDefault.delete({ where: { id: '' } }).execute(); -``` - -### `db.orgPermissionDefaultGrant` - -CRUD operations for OrgPermissionDefaultGrant records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `createdAt` | Datetime | No | -| `entityId` | UUID | Yes | -| `grantorId` | UUID | Yes | -| `id` | UUID | No | -| `isGrant` | Boolean | Yes | -| `permissionId` | UUID | Yes | -| `updatedAt` | Datetime | No | - -**Operations:** - -```typescript -// List all orgPermissionDefaultGrant records -const items = await db.orgPermissionDefaultGrant.findMany({ select: { createdAt: true, entityId: true, grantorId: true, id: true, isGrant: true, permissionId: true, updatedAt: true } }).execute(); - -// Get one by id -const item = await db.orgPermissionDefaultGrant.findOne({ id: '', select: { createdAt: true, entityId: true, grantorId: true, id: true, isGrant: true, permissionId: true, updatedAt: true } }).execute(); - -// Create -const created = await db.orgPermissionDefaultGrant.create({ data: { entityId: '', grantorId: '', isGrant: '', permissionId: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.orgPermissionDefaultGrant.update({ where: { id: '' }, data: { entityId: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.orgPermissionDefaultGrant.delete({ where: { id: '' } }).execute(); -``` - -### `db.orgPermissionDefaultPermission` - -CRUD operations for OrgPermissionDefaultPermission records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `createdAt` | Datetime | No | -| `entityId` | UUID | Yes | -| `id` | UUID | No | -| `permissionId` | UUID | Yes | -| `updatedAt` | Datetime | No | - -**Operations:** - -```typescript -// List all orgPermissionDefaultPermission records -const items = await db.orgPermissionDefaultPermission.findMany({ select: { createdAt: true, entityId: true, id: true, permissionId: true, updatedAt: true } }).execute(); - -// Get one by id -const item = await db.orgPermissionDefaultPermission.findOne({ id: '', select: { createdAt: true, entityId: true, id: true, permissionId: true, updatedAt: true } }).execute(); - -// Create -const created = await db.orgPermissionDefaultPermission.create({ data: { entityId: '', permissionId: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.orgPermissionDefaultPermission.update({ where: { id: '' }, data: { entityId: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.orgPermissionDefaultPermission.delete({ where: { id: '' } }).execute(); -``` - ## Custom Operations -### `db.query.appPermissionsGetByMask` - -Reads and enables pagination through a set of `AppPermission`. - -- **Type:** query -- **Arguments:** - - | Argument | Type | - |----------|------| - | `after` | Cursor | - | `first` | Int | - | `mask` | BitString | - | `offset` | Int | - -```typescript -const result = await db.query.appPermissionsGetByMask({ after: '', first: '', mask: '', offset: '' }).execute(); -``` - -### `db.query.appPermissionsGetMask` - -appPermissionsGetMask - -- **Type:** query -- **Arguments:** - - | Argument | Type | - |----------|------| - | `ids` | [UUID] | - -```typescript -const result = await db.query.appPermissionsGetMask({ ids: '' }).execute(); -``` - -### `db.query.appPermissionsGetMaskByNames` - -appPermissionsGetMaskByNames - -- **Type:** query -- **Arguments:** - - | Argument | Type | - |----------|------| - | `names` | [String] | - -```typescript -const result = await db.query.appPermissionsGetMaskByNames({ names: '' }).execute(); -``` - -### `db.query.appPermissionsGetPaddedMask` - -appPermissionsGetPaddedMask - -- **Type:** query -- **Arguments:** - - | Argument | Type | - |----------|------| - | `mask` | BitString | - -```typescript -const result = await db.query.appPermissionsGetPaddedMask({ mask: '' }).execute(); -``` - ### `db.query.orgIsManagerOf` orgIsManagerOf @@ -1205,69 +1011,6 @@ orgIsManagerOf const result = await db.query.orgIsManagerOf({ managerId: '', maxDepth: '', targetEntityId: '', userId: '' }).execute(); ``` -### `db.query.orgPermissionsGetByMask` - -Reads and enables pagination through a set of `OrgPermission`. - -- **Type:** query -- **Arguments:** - - | Argument | Type | - |----------|------| - | `after` | Cursor | - | `first` | Int | - | `mask` | BitString | - | `offset` | Int | - -```typescript -const result = await db.query.orgPermissionsGetByMask({ after: '', first: '', mask: '', offset: '' }).execute(); -``` - -### `db.query.orgPermissionsGetMask` - -orgPermissionsGetMask - -- **Type:** query -- **Arguments:** - - | Argument | Type | - |----------|------| - | `ids` | [UUID] | - -```typescript -const result = await db.query.orgPermissionsGetMask({ ids: '' }).execute(); -``` - -### `db.query.orgPermissionsGetMaskByNames` - -orgPermissionsGetMaskByNames - -- **Type:** query -- **Arguments:** - - | Argument | Type | - |----------|------| - | `names` | [String] | - -```typescript -const result = await db.query.orgPermissionsGetMaskByNames({ names: '' }).execute(); -``` - -### `db.query.orgPermissionsGetPaddedMask` - -orgPermissionsGetPaddedMask - -- **Type:** query -- **Arguments:** - - | Argument | Type | - |----------|------| - | `mask` | BitString | - -```typescript -const result = await db.query.orgPermissionsGetPaddedMask({ mask: '' }).execute(); -``` - ### `db.mutation.provisionBucket` Provision an S3 bucket for a logical bucket in the database. diff --git a/sdk/constructive-sdk/src/admin/orm/index.ts b/sdk/constructive-sdk/src/admin/orm/index.ts index 5a87e5498e..91f3ff0c09 100644 --- a/sdk/constructive-sdk/src/admin/orm/index.ts +++ b/sdk/constructive-sdk/src/admin/orm/index.ts @@ -6,18 +6,18 @@ import { OrmClient } from './client'; import type { OrmClientConfig } from './client'; import { AppAdminGrantModel } from './models/appAdminGrant'; +import { AppCapabilityDefaultCapabilityModel } from './models/appCapabilityDefaultCapability'; +import { AppCapabilityDefaultGrantModel } from './models/appCapabilityDefaultGrant'; import { AppClaimedInviteModel } from './models/appClaimedInvite'; import { AppGrantModel } from './models/appGrant'; import { AppInviteModel } from './models/appInvite'; import { AppMembershipModel } from './models/appMembership'; import { AppMembershipDefaultModel } from './models/appMembershipDefault'; import { AppOwnerGrantModel } from './models/appOwnerGrant'; -import { AppPermissionModel } from './models/appPermission'; -import { AppPermissionDefaultModel } from './models/appPermissionDefault'; -import { AppPermissionDefaultGrantModel } from './models/appPermissionDefaultGrant'; -import { AppPermissionDefaultPermissionModel } from './models/appPermissionDefaultPermission'; import { MembershipTypeModel } from './models/membershipType'; import { OrgAdminGrantModel } from './models/orgAdminGrant'; +import { OrgCapabilityDefaultCapabilityModel } from './models/orgCapabilityDefaultCapability'; +import { OrgCapabilityDefaultGrantModel } from './models/orgCapabilityDefaultGrant'; import { OrgChartEdgeModel } from './models/orgChartEdge'; import { OrgChartEdgeGrantModel } from './models/orgChartEdgeGrant'; import { OrgClaimedInviteModel } from './models/orgClaimedInvite'; @@ -31,10 +31,6 @@ import { OrgMembershipModel } from './models/orgMembership'; import { OrgMembershipDefaultModel } from './models/orgMembershipDefault'; import { OrgMembershipSettingModel } from './models/orgMembershipSetting'; import { OrgOwnerGrantModel } from './models/orgOwnerGrant'; -import { OrgPermissionModel } from './models/orgPermission'; -import { OrgPermissionDefaultModel } from './models/orgPermissionDefault'; -import { OrgPermissionDefaultGrantModel } from './models/orgPermissionDefaultGrant'; -import { OrgPermissionDefaultPermissionModel } from './models/orgPermissionDefaultPermission'; import { createQueryOperations } from './query'; import { createMutationOperations } from './mutation'; export type { OrmClientConfig, QueryResult, GraphQLError, GraphQLAdapter } from './client'; @@ -71,18 +67,18 @@ export function createClient(config: OrmClientConfig) { const client = new OrmClient(config); return { appAdminGrant: new AppAdminGrantModel(client), + appCapabilityDefaultCapability: new AppCapabilityDefaultCapabilityModel(client), + appCapabilityDefaultGrant: new AppCapabilityDefaultGrantModel(client), appClaimedInvite: new AppClaimedInviteModel(client), appGrant: new AppGrantModel(client), appInvite: new AppInviteModel(client), appMembership: new AppMembershipModel(client), appMembershipDefault: new AppMembershipDefaultModel(client), appOwnerGrant: new AppOwnerGrantModel(client), - appPermission: new AppPermissionModel(client), - appPermissionDefault: new AppPermissionDefaultModel(client), - appPermissionDefaultGrant: new AppPermissionDefaultGrantModel(client), - appPermissionDefaultPermission: new AppPermissionDefaultPermissionModel(client), membershipType: new MembershipTypeModel(client), orgAdminGrant: new OrgAdminGrantModel(client), + orgCapabilityDefaultCapability: new OrgCapabilityDefaultCapabilityModel(client), + orgCapabilityDefaultGrant: new OrgCapabilityDefaultGrantModel(client), orgChartEdge: new OrgChartEdgeModel(client), orgChartEdgeGrant: new OrgChartEdgeGrantModel(client), orgClaimedInvite: new OrgClaimedInviteModel(client), @@ -96,10 +92,6 @@ export function createClient(config: OrmClientConfig) { orgMembershipDefault: new OrgMembershipDefaultModel(client), orgMembershipSetting: new OrgMembershipSettingModel(client), orgOwnerGrant: new OrgOwnerGrantModel(client), - orgPermission: new OrgPermissionModel(client), - orgPermissionDefault: new OrgPermissionDefaultModel(client), - orgPermissionDefaultGrant: new OrgPermissionDefaultGrantModel(client), - orgPermissionDefaultPermission: new OrgPermissionDefaultPermissionModel(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 8942c14919..25b8b53218 100644 --- a/sdk/constructive-sdk/src/admin/orm/input-types.ts +++ b/sdk/constructive-sdk/src/admin/orm/input-types.ts @@ -245,6 +245,25 @@ export interface AppAdminGrant { isGrant?: boolean | null; updatedAt?: string | null; } +/** Join table linking capability defaults to individual capabilities; recompute trigger rebuilds the defaults bitmask */ +export interface AppCapabilityDefaultCapability { + /** References the capability included in the defaults bundle */ + capabilityId?: string | null; + createdAt?: string | null; + id: string; + updatedAt?: string | null; +} +/** Audit log of capability additions and removals from the defaults bitmask */ +export interface AppCapabilityDefaultGrant { + /** References the capability being added to or removed from defaults */ + capabilityId?: string | null; + createdAt?: string | null; + grantorId?: string | null; + id: string; + /** True to add the capability to defaults, false to remove it */ + isGrant?: boolean | null; + updatedAt?: string | null; +} /** Records of successfully claimed invitations, linking senders to receivers */ export interface AppClaimedInvite { createdAt?: string | null; @@ -257,17 +276,17 @@ export interface AppClaimedInvite { senderId?: string | null; updatedAt?: string | null; } -/** Records of individual permission grants and revocations for members via bitmask */ +/** Records of individual capability grants and revocations for members via bitmask */ export interface AppGrant { - /** The member receiving or losing the permission grant; NULL if user was deleted */ + /** The member receiving or losing the capability grant; NULL if user was deleted */ actorId?: string | null; + /** Bitmask of capabilities being granted or revoked */ + capabilities?: string | null; createdAt?: string | null; grantorId?: string | null; id: string; - /** True to grant the permissions, false to revoke them */ + /** True to grant the capabilities, false to revoke them */ isGrant?: boolean | null; - /** Bitmask of permissions being granted or revoked */ - permissions?: string | null; updatedAt?: string | null; } /** Invitation records sent to prospective members via email, with token-based redemption and expiration */ @@ -300,13 +319,15 @@ export interface AppInvite { senderId?: string | null; updatedAt?: string | null; } -/** Tracks membership records linking actors to entities with permission bitmasks, ownership, and admin status */ +/** Tracks membership records linking actors to entities with capability bitmasks, ownership, and admin status */ export interface AppMembership { /** References the user who holds this membership */ actorId?: string | null; + /** Aggregated capability bitmask combining profile-based and directly granted capabilities */ + capabilities?: string | null; createdAt?: string | null; createdBy?: string | null; - /** Bitmask of permissions directly granted to this member (not from profiles) */ + /** Bitmask of capabilities directly granted to this member (not from profiles) */ granted?: string | null; id: string; /** Computed field indicating the membership is approved, verified, not banned, and not disabled */ @@ -323,8 +344,6 @@ export interface AppMembership { isOwner?: boolean | null; /** Whether this member has been verified (e.g. email confirmation) */ isVerified?: boolean | null; - /** Aggregated permission bitmask combining profile-based and directly granted permissions */ - permissions?: string | null; profileId?: string | null; updatedAt?: string | null; updatedBy?: string | null; @@ -352,43 +371,6 @@ export interface AppOwnerGrant { isGrant?: boolean | null; updatedAt?: string | null; } -/** Defines available permissions as named bits within a bitmask, used by the RBAC system for access control */ -export interface AppPermission { - /** Position of this permission in the bitmask (1-indexed), must be unique per permission set */ - bitnum?: number | null; - /** Pre-computed bitmask with only this permission bit set, used for bitwise OR/AND operations */ - bitstr?: string | null; - /** Human-readable description of what this permission allows */ - description?: string | null; - id: string; - /** Human-readable permission name (e.g. read, write, manage) */ - name?: string | null; -} -/** Stores the default permission bitmask assigned to new members upon joining */ -export interface AppPermissionDefault { - id: string; - /** Default permission bitmask applied to new members */ - permissions?: string | null; -} -/** Audit log of permission additions and removals from the defaults bitmask */ -export interface AppPermissionDefaultGrant { - createdAt?: string | null; - grantorId?: string | null; - id: string; - /** True to add the permission to defaults, false to remove it */ - isGrant?: boolean | null; - /** References the permission being added to or removed from defaults */ - permissionId?: string | null; - updatedAt?: string | null; -} -/** Join table linking permission defaults to individual permissions; recompute trigger rebuilds the defaults bitmask */ -export interface AppPermissionDefaultPermission { - createdAt?: string | null; - id: string; - /** References the permission included in the defaults bundle */ - permissionId?: string | null; - updatedAt?: string | null; -} /** Defines the different scopes of membership (e.g. App Member, Organization Member, Group Member) */ export interface MembershipType { /** Description of what this membership type represents */ @@ -417,6 +399,29 @@ export interface OrgAdminGrant { isGrant?: boolean | null; updatedAt?: string | null; } +/** Join table linking capability defaults to individual capabilities; recompute trigger rebuilds the defaults bitmask */ +export interface OrgCapabilityDefaultCapability { + /** References the capability included in the defaults bundle */ + capabilityId?: string | null; + createdAt?: string | null; + /** Scopes this default capability to a specific entity */ + entityId?: string | null; + id: string; + updatedAt?: string | null; +} +/** Audit log of capability additions and removals from the defaults bitmask */ +export interface OrgCapabilityDefaultGrant { + /** References the capability being added to or removed from defaults */ + capabilityId?: string | null; + createdAt?: string | null; + /** Scopes this audit entry to a specific entity */ + entityId?: string | null; + grantorId?: string | null; + id: string; + /** True to add the capability to defaults, false to remove it */ + isGrant?: boolean | null; + updatedAt?: string | null; +} /** Organizational chart edges defining parent-child reporting relationships between members within an entity */ export interface OrgChartEdge { /** User ID of the subordinate (employee) in this reporting relationship */ @@ -474,19 +479,19 @@ export interface OrgGetSubordinatesRecord { depth?: number | null; userId?: string | null; } -/** Records of individual permission grants and revocations for members via bitmask */ +/** Records of individual capability grants and revocations for members via bitmask */ export interface OrgGrant { - /** The member receiving or losing the permission grant; NULL if user was deleted */ + /** The member receiving or losing the capability grant; NULL if user was deleted */ actorId?: string | null; + /** Bitmask of capabilities being granted or revoked */ + capabilities?: string | null; createdAt?: string | null; - /** The entity (org or group) this permission grant applies to */ + /** The entity (org or group) this capability grant applies to */ entityId?: string | null; grantorId?: string | null; id: string; - /** True to grant the permissions, false to revoke them */ + /** True to grant the capabilities, false to revoke them */ isGrant?: boolean | null; - /** Bitmask of permissions being granted or revoked */ - permissions?: string | null; updatedAt?: string | null; } /** Invitation records sent to prospective members via email, with token-based redemption and expiration */ @@ -556,15 +561,17 @@ export interface OrgMemberProfile { title?: string | null; updatedAt?: string | null; } -/** Tracks membership records linking actors to entities with permission bitmasks, ownership, and admin status */ +/** Tracks membership records linking actors to entities with capability bitmasks, ownership, and admin status */ export interface OrgMembership { /** References the user who holds this membership */ actorId?: string | null; + /** Aggregated capability bitmask combining profile-based and directly granted capabilities */ + capabilities?: string | null; createdAt?: string | null; createdBy?: string | null; /** References the entity (org or group) this membership belongs to */ entityId?: string | null; - /** Bitmask of permissions directly granted to this member (not from profiles) */ + /** Bitmask of capabilities directly granted to this member (not from profiles) */ granted?: string | null; id: string; /** Computed field indicating the membership is approved, verified, not banned, and not disabled */ @@ -577,14 +584,12 @@ export interface OrgMembership { isBanned?: boolean | null; /** Whether this membership is temporarily disabled */ isDisabled?: boolean | null; - /** Whether this member is external (not a member of the parent scope). External members may have restricted permissions. */ + /** Whether this member is external (not a member of the parent scope). External members may have restricted capabilities. */ isExternal?: boolean | null; /** Whether the actor is the owner of this entity */ isOwner?: boolean | null; /** Whether this member has read-only access (blocks mutations when true) */ isReadOnly?: boolean | null; - /** Aggregated permission bitmask combining profile-based and directly granted permissions */ - permissions?: string | null; profileId?: string | null; updatedAt?: string | null; updatedBy?: string | null; @@ -618,7 +623,7 @@ export interface OrgMembershipSetting { /** References the entity these settings apply to */ entityId?: string | null; id: string; - /** Controls how profile assignment on invites is validated: strict (permission + subset check), permission_only (permission only), or subset_only (subset check only) */ + /** Controls how profile assignment on invites is validated: strict (capability + subset check), capability_only (capability only), or subset_only (subset check only) */ inviteProfileAssignmentMode?: string | 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; @@ -640,49 +645,6 @@ export interface OrgOwnerGrant { isGrant?: boolean | null; updatedAt?: string | null; } -/** Defines available permissions as named bits within a bitmask, used by the RBAC system for access control */ -export interface OrgPermission { - /** Position of this permission in the bitmask (1-indexed), must be unique per permission set */ - bitnum?: number | null; - /** Pre-computed bitmask with only this permission bit set, used for bitwise OR/AND operations */ - bitstr?: string | null; - /** Human-readable description of what this permission allows */ - description?: string | null; - id: string; - /** Human-readable permission name (e.g. read, write, manage) */ - name?: string | null; -} -/** Stores the default permission bitmask assigned to new members upon joining */ -export interface OrgPermissionDefault { - /** References the entity these default permissions apply to */ - entityId?: string | null; - id: string; - /** Default permission bitmask applied to new members */ - permissions?: string | null; -} -/** Audit log of permission additions and removals from the defaults bitmask */ -export interface OrgPermissionDefaultGrant { - createdAt?: string | null; - /** Scopes this audit entry to a specific entity */ - entityId?: string | null; - grantorId?: string | null; - id: string; - /** True to add the permission to defaults, false to remove it */ - isGrant?: boolean | null; - /** References the permission being added to or removed from defaults */ - permissionId?: string | null; - updatedAt?: string | null; -} -/** Join table linking permission defaults to individual permissions; recompute trigger rebuilds the defaults bitmask */ -export interface OrgPermissionDefaultPermission { - createdAt?: string | null; - /** Scopes this default permission to a specific entity */ - entityId?: string | null; - id: string; - /** References the permission included in the defaults bundle */ - permissionId?: string | null; - updatedAt?: string | null; -} // ============ Relation Helper Types ============ export interface ConnectionResult { nodes: T[]; @@ -697,25 +659,18 @@ export interface PageInfo { } // ============ Entity Relation Types ============ export interface AppAdminGrantRelations {} +export interface AppCapabilityDefaultCapabilityRelations {} +export interface AppCapabilityDefaultGrantRelations {} export interface AppClaimedInviteRelations {} export interface AppGrantRelations {} export interface AppInviteRelations {} export interface AppMembershipRelations {} export interface AppMembershipDefaultRelations {} export interface AppOwnerGrantRelations {} -export interface AppPermissionRelations { - appPermissionDefaultPermissionByPermissionId?: AppPermissionDefaultPermission | null; - appPermissionDefaultGrantsByPermissionId?: ConnectionResult; -} -export interface AppPermissionDefaultRelations {} -export interface AppPermissionDefaultGrantRelations { - permission?: AppPermission | null; -} -export interface AppPermissionDefaultPermissionRelations { - permission?: AppPermission | null; -} export interface MembershipTypeRelations {} export interface OrgAdminGrantRelations {} +export interface OrgCapabilityDefaultCapabilityRelations {} +export interface OrgCapabilityDefaultGrantRelations {} export interface OrgChartEdgeRelations {} export interface OrgChartEdgeGrantRelations {} export interface OrgClaimedInviteRelations {} @@ -733,19 +688,12 @@ export interface OrgMembershipRelations { export interface OrgMembershipDefaultRelations {} export interface OrgMembershipSettingRelations {} export interface OrgOwnerGrantRelations {} -export interface OrgPermissionRelations { - orgPermissionDefaultGrantsByPermissionId?: ConnectionResult; - orgPermissionDefaultPermissionsByPermissionId?: ConnectionResult; -} -export interface OrgPermissionDefaultRelations {} -export interface OrgPermissionDefaultGrantRelations { - permission?: OrgPermission | null; -} -export interface OrgPermissionDefaultPermissionRelations { - permission?: OrgPermission | null; -} // ============ Entity Types With Relations ============ export type AppAdminGrantWithRelations = AppAdminGrant & AppAdminGrantRelations; +export type AppCapabilityDefaultCapabilityWithRelations = AppCapabilityDefaultCapability & + AppCapabilityDefaultCapabilityRelations; +export type AppCapabilityDefaultGrantWithRelations = AppCapabilityDefaultGrant & + AppCapabilityDefaultGrantRelations; export type AppClaimedInviteWithRelations = AppClaimedInvite & AppClaimedInviteRelations; export type AppGrantWithRelations = AppGrant & AppGrantRelations; export type AppInviteWithRelations = AppInvite & AppInviteRelations; @@ -753,15 +701,12 @@ export type AppMembershipWithRelations = AppMembership & AppMembershipRelations; export type AppMembershipDefaultWithRelations = AppMembershipDefault & AppMembershipDefaultRelations; export type AppOwnerGrantWithRelations = AppOwnerGrant & AppOwnerGrantRelations; -export type AppPermissionWithRelations = AppPermission & AppPermissionRelations; -export type AppPermissionDefaultWithRelations = AppPermissionDefault & - AppPermissionDefaultRelations; -export type AppPermissionDefaultGrantWithRelations = AppPermissionDefaultGrant & - AppPermissionDefaultGrantRelations; -export type AppPermissionDefaultPermissionWithRelations = AppPermissionDefaultPermission & - AppPermissionDefaultPermissionRelations; export type MembershipTypeWithRelations = MembershipType & MembershipTypeRelations; export type OrgAdminGrantWithRelations = OrgAdminGrant & OrgAdminGrantRelations; +export type OrgCapabilityDefaultCapabilityWithRelations = OrgCapabilityDefaultCapability & + OrgCapabilityDefaultCapabilityRelations; +export type OrgCapabilityDefaultGrantWithRelations = OrgCapabilityDefaultGrant & + OrgCapabilityDefaultGrantRelations; export type OrgChartEdgeWithRelations = OrgChartEdge & OrgChartEdgeRelations; export type OrgChartEdgeGrantWithRelations = OrgChartEdgeGrant & OrgChartEdgeGrantRelations; export type OrgClaimedInviteWithRelations = OrgClaimedInvite & OrgClaimedInviteRelations; @@ -779,13 +724,6 @@ export type OrgMembershipDefaultWithRelations = OrgMembershipDefault & export type OrgMembershipSettingWithRelations = OrgMembershipSetting & OrgMembershipSettingRelations; export type OrgOwnerGrantWithRelations = OrgOwnerGrant & OrgOwnerGrantRelations; -export type OrgPermissionWithRelations = OrgPermission & OrgPermissionRelations; -export type OrgPermissionDefaultWithRelations = OrgPermissionDefault & - OrgPermissionDefaultRelations; -export type OrgPermissionDefaultGrantWithRelations = OrgPermissionDefaultGrant & - OrgPermissionDefaultGrantRelations; -export type OrgPermissionDefaultPermissionWithRelations = OrgPermissionDefaultPermission & - OrgPermissionDefaultPermissionRelations; // ============ Entity Select Types ============ export type AppAdminGrantSelect = { actorId?: boolean; @@ -795,6 +733,20 @@ export type AppAdminGrantSelect = { isGrant?: boolean; updatedAt?: boolean; }; +export type AppCapabilityDefaultCapabilitySelect = { + capabilityId?: boolean; + createdAt?: boolean; + id?: boolean; + updatedAt?: boolean; +}; +export type AppCapabilityDefaultGrantSelect = { + capabilityId?: boolean; + createdAt?: boolean; + grantorId?: boolean; + id?: boolean; + isGrant?: boolean; + updatedAt?: boolean; +}; export type AppClaimedInviteSelect = { createdAt?: boolean; data?: boolean; @@ -805,11 +757,11 @@ export type AppClaimedInviteSelect = { }; export type AppGrantSelect = { actorId?: boolean; + capabilities?: boolean; createdAt?: boolean; grantorId?: boolean; id?: boolean; isGrant?: boolean; - permissions?: boolean; updatedAt?: boolean; }; export type AppInviteSelect = { @@ -831,6 +783,7 @@ export type AppInviteSelect = { }; export type AppMembershipSelect = { actorId?: boolean; + capabilities?: boolean; createdAt?: boolean; createdBy?: boolean; granted?: boolean; @@ -842,7 +795,6 @@ export type AppMembershipSelect = { isDisabled?: boolean; isOwner?: boolean; isVerified?: boolean; - permissions?: boolean; profileId?: boolean; updatedAt?: boolean; updatedBy?: boolean; @@ -864,56 +816,32 @@ export type AppOwnerGrantSelect = { isGrant?: boolean; updatedAt?: boolean; }; -export type AppPermissionSelect = { - bitnum?: boolean; - bitstr?: boolean; +export type MembershipTypeSelect = { description?: boolean; + hasUsersTableEntry?: boolean; id?: boolean; name?: boolean; - appPermissionDefaultPermissionByPermissionId?: { - select: AppPermissionDefaultPermissionSelect; - }; - appPermissionDefaultGrantsByPermissionId?: { - select: AppPermissionDefaultGrantSelect; - first?: number; - filter?: AppPermissionDefaultGrantFilter; - orderBy?: AppPermissionDefaultGrantOrderBy[]; - }; -}; -export type AppPermissionDefaultSelect = { - id?: boolean; - permissions?: boolean; + parentMembershipType?: boolean; + scope?: boolean; }; -export type AppPermissionDefaultGrantSelect = { +export type OrgAdminGrantSelect = { + actorId?: boolean; createdAt?: boolean; + entityId?: boolean; grantorId?: boolean; id?: boolean; isGrant?: boolean; - permissionId?: boolean; updatedAt?: boolean; - permission?: { - select: AppPermissionSelect; - }; }; -export type AppPermissionDefaultPermissionSelect = { +export type OrgCapabilityDefaultCapabilitySelect = { + capabilityId?: boolean; createdAt?: boolean; + entityId?: boolean; id?: boolean; - permissionId?: boolean; updatedAt?: boolean; - permission?: { - select: AppPermissionSelect; - }; -}; -export type MembershipTypeSelect = { - description?: boolean; - hasUsersTableEntry?: boolean; - id?: boolean; - name?: boolean; - parentMembershipType?: boolean; - scope?: boolean; }; -export type OrgAdminGrantSelect = { - actorId?: boolean; +export type OrgCapabilityDefaultGrantSelect = { + capabilityId?: boolean; createdAt?: boolean; entityId?: boolean; grantorId?: boolean; @@ -961,12 +889,12 @@ export type OrgGetSubordinatesRecordSelect = { }; export type OrgGrantSelect = { actorId?: boolean; + capabilities?: boolean; createdAt?: boolean; entityId?: boolean; grantorId?: boolean; id?: boolean; isGrant?: boolean; - permissions?: boolean; updatedAt?: boolean; }; export type OrgInviteSelect = { @@ -1013,6 +941,7 @@ export type OrgMemberProfileSelect = { }; export type OrgMembershipSelect = { actorId?: boolean; + capabilities?: boolean; createdAt?: boolean; createdBy?: boolean; entityId?: boolean; @@ -1026,7 +955,6 @@ export type OrgMembershipSelect = { isExternal?: boolean; isOwner?: boolean; isReadOnly?: boolean; - permissions?: boolean; profileId?: boolean; updatedAt?: boolean; updatedBy?: boolean; @@ -1068,52 +996,6 @@ export type OrgOwnerGrantSelect = { isGrant?: boolean; updatedAt?: boolean; }; -export type OrgPermissionSelect = { - bitnum?: boolean; - bitstr?: boolean; - description?: boolean; - id?: boolean; - name?: boolean; - orgPermissionDefaultGrantsByPermissionId?: { - select: OrgPermissionDefaultGrantSelect; - first?: number; - filter?: OrgPermissionDefaultGrantFilter; - orderBy?: OrgPermissionDefaultGrantOrderBy[]; - }; - orgPermissionDefaultPermissionsByPermissionId?: { - select: OrgPermissionDefaultPermissionSelect; - first?: number; - filter?: OrgPermissionDefaultPermissionFilter; - orderBy?: OrgPermissionDefaultPermissionOrderBy[]; - }; -}; -export type OrgPermissionDefaultSelect = { - entityId?: boolean; - id?: boolean; - permissions?: boolean; -}; -export type OrgPermissionDefaultGrantSelect = { - createdAt?: boolean; - entityId?: boolean; - grantorId?: boolean; - id?: boolean; - isGrant?: boolean; - permissionId?: boolean; - updatedAt?: boolean; - permission?: { - select: OrgPermissionSelect; - }; -}; -export type OrgPermissionDefaultPermissionSelect = { - createdAt?: boolean; - entityId?: boolean; - id?: boolean; - permissionId?: boolean; - updatedAt?: boolean; - permission?: { - select: OrgPermissionSelect; - }; -}; // ============ Table Filter Types ============ export interface AppAdminGrantFilter { /** Filter by the object’s `actorId` field. */ @@ -1135,6 +1017,42 @@ export interface AppAdminGrantFilter { /** Filter by the object’s `updatedAt` field. */ updatedAt?: DatetimeFilter; } +export interface AppCapabilityDefaultCapabilityFilter { + /** Checks for all expressions in this list. */ + and?: AppCapabilityDefaultCapabilityFilter[]; + /** Filter by the object’s `capabilityId` field. */ + capabilityId?: UUIDFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Negates the expression. */ + not?: AppCapabilityDefaultCapabilityFilter; + /** Checks for any expressions in this list. */ + or?: AppCapabilityDefaultCapabilityFilter[]; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; +} +export interface AppCapabilityDefaultGrantFilter { + /** Checks for all expressions in this list. */ + and?: AppCapabilityDefaultGrantFilter[]; + /** Filter by the object’s `capabilityId` field. */ + capabilityId?: UUIDFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `grantorId` field. */ + grantorId?: UUIDFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `isGrant` field. */ + isGrant?: BooleanFilter; + /** Negates the expression. */ + not?: AppCapabilityDefaultGrantFilter; + /** Checks for any expressions in this list. */ + or?: AppCapabilityDefaultGrantFilter[]; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; +} export interface AppClaimedInviteFilter { /** Checks for all expressions in this list. */ and?: AppClaimedInviteFilter[]; @@ -1158,6 +1076,8 @@ export interface AppGrantFilter { actorId?: UUIDFilter; /** Checks for all expressions in this list. */ and?: AppGrantFilter[]; + /** Filter by the object’s `capabilities` field. */ + capabilities?: BitStringFilter; /** Filter by the object’s `createdAt` field. */ createdAt?: DatetimeFilter; /** Filter by the object’s `grantorId` field. */ @@ -1170,8 +1090,6 @@ export interface AppGrantFilter { not?: AppGrantFilter; /** Checks for any expressions in this list. */ or?: AppGrantFilter[]; - /** Filter by the object’s `permissions` field. */ - permissions?: BitStringFilter; /** Filter by the object’s `updatedAt` field. */ updatedAt?: DatetimeFilter; } @@ -1216,6 +1134,8 @@ export interface AppMembershipFilter { actorId?: UUIDFilter; /** Checks for all expressions in this list. */ and?: AppMembershipFilter[]; + /** Filter by the object’s `capabilities` field. */ + capabilities?: BitStringFilter; /** Filter by the object’s `createdAt` field. */ createdAt?: DatetimeFilter; /** Filter by the object’s `createdBy` field. */ @@ -1242,8 +1162,6 @@ export interface AppMembershipFilter { not?: AppMembershipFilter; /** Checks for any expressions in this list. */ or?: AppMembershipFilter[]; - /** Filter by the object’s `permissions` field. */ - permissions?: BitStringFilter; /** Filter by the object’s `profileId` field. */ profileId?: UUIDFilter; /** Filter by the object’s `updatedAt` field. */ @@ -1293,49 +1211,35 @@ export interface AppOwnerGrantFilter { /** Filter by the object’s `updatedAt` field. */ updatedAt?: DatetimeFilter; } -export interface AppPermissionFilter { +export interface MembershipTypeFilter { /** Checks for all expressions in this list. */ - and?: AppPermissionFilter[]; - /** Filter by the object’s `appPermissionDefaultGrantsByPermissionId` relation. */ - appPermissionDefaultGrantsByPermissionId?: AppPermissionToManyAppPermissionDefaultGrantFilter; - /** `appPermissionDefaultGrantsByPermissionId` exist. */ - appPermissionDefaultGrantsByPermissionIdExist?: boolean; - /** Filter by the object’s `appPermissionDefaultPermissionByPermissionId` relation. */ - appPermissionDefaultPermissionByPermissionId?: AppPermissionDefaultPermissionFilter; - /** A related `appPermissionDefaultPermissionByPermissionId` exists. */ - appPermissionDefaultPermissionByPermissionIdExists?: boolean; - /** Filter by the object’s `bitnum` field. */ - bitnum?: IntFilter; - /** Filter by the object’s `bitstr` field. */ - bitstr?: BitStringFilter; + and?: MembershipTypeFilter[]; /** Filter by the object’s `description` field. */ description?: StringFilter; + /** Filter by the object’s `hasUsersTableEntry` field. */ + hasUsersTableEntry?: BooleanFilter; /** Filter by the object’s `id` field. */ - id?: UUIDFilter; + id?: IntFilter; /** Filter by the object’s `name` field. */ name?: StringFilter; /** Negates the expression. */ - not?: AppPermissionFilter; - /** Checks for any expressions in this list. */ - or?: AppPermissionFilter[]; -} -export interface AppPermissionDefaultFilter { - /** Checks for all expressions in this list. */ - and?: AppPermissionDefaultFilter[]; - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Negates the expression. */ - not?: AppPermissionDefaultFilter; + not?: MembershipTypeFilter; /** Checks for any expressions in this list. */ - or?: AppPermissionDefaultFilter[]; - /** Filter by the object’s `permissions` field. */ - permissions?: BitStringFilter; + or?: MembershipTypeFilter[]; + /** Filter by the object’s `parentMembershipType` field. */ + parentMembershipType?: IntFilter; + /** Filter by the object’s `scope` field. */ + scope?: StringFilter; } -export interface AppPermissionDefaultGrantFilter { +export interface OrgAdminGrantFilter { + /** Filter by the object’s `actorId` field. */ + actorId?: UUIDFilter; /** Checks for all expressions in this list. */ - and?: AppPermissionDefaultGrantFilter[]; + and?: OrgAdminGrantFilter[]; /** Filter by the object’s `createdAt` field. */ createdAt?: DatetimeFilter; + /** Filter by the object’s `entityId` field. */ + entityId?: UUIDFilter; /** Filter by the object’s `grantorId` field. */ grantorId?: UUIDFilter; /** Filter by the object’s `id` field. */ @@ -1343,59 +1247,35 @@ export interface AppPermissionDefaultGrantFilter { /** Filter by the object’s `isGrant` field. */ isGrant?: BooleanFilter; /** Negates the expression. */ - not?: AppPermissionDefaultGrantFilter; + not?: OrgAdminGrantFilter; /** Checks for any expressions in this list. */ - or?: AppPermissionDefaultGrantFilter[]; - /** Filter by the object’s `permission` relation. */ - permission?: AppPermissionFilter; - /** Filter by the object’s `permissionId` field. */ - permissionId?: UUIDFilter; + or?: OrgAdminGrantFilter[]; /** Filter by the object’s `updatedAt` field. */ updatedAt?: DatetimeFilter; } -export interface AppPermissionDefaultPermissionFilter { +export interface OrgCapabilityDefaultCapabilityFilter { /** Checks for all expressions in this list. */ - and?: AppPermissionDefaultPermissionFilter[]; + and?: OrgCapabilityDefaultCapabilityFilter[]; + /** Filter by the object’s `capabilityId` field. */ + capabilityId?: UUIDFilter; /** Filter by the object’s `createdAt` field. */ createdAt?: DatetimeFilter; + /** Filter by the object’s `entityId` field. */ + entityId?: UUIDFilter; /** Filter by the object’s `id` field. */ id?: UUIDFilter; /** Negates the expression. */ - not?: AppPermissionDefaultPermissionFilter; + not?: OrgCapabilityDefaultCapabilityFilter; /** Checks for any expressions in this list. */ - or?: AppPermissionDefaultPermissionFilter[]; - /** Filter by the object’s `permission` relation. */ - permission?: AppPermissionFilter; - /** Filter by the object’s `permissionId` field. */ - permissionId?: UUIDFilter; + or?: OrgCapabilityDefaultCapabilityFilter[]; /** Filter by the object’s `updatedAt` field. */ updatedAt?: DatetimeFilter; } -export interface MembershipTypeFilter { - /** Checks for all expressions in this list. */ - and?: MembershipTypeFilter[]; - /** Filter by the object’s `description` field. */ - description?: StringFilter; - /** Filter by the object’s `hasUsersTableEntry` field. */ - hasUsersTableEntry?: BooleanFilter; - /** Filter by the object’s `id` field. */ - id?: IntFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Negates the expression. */ - not?: MembershipTypeFilter; - /** Checks for any expressions in this list. */ - or?: MembershipTypeFilter[]; - /** Filter by the object’s `parentMembershipType` field. */ - parentMembershipType?: IntFilter; - /** Filter by the object’s `scope` field. */ - scope?: StringFilter; -} -export interface OrgAdminGrantFilter { - /** Filter by the object’s `actorId` field. */ - actorId?: UUIDFilter; +export interface OrgCapabilityDefaultGrantFilter { /** Checks for all expressions in this list. */ - and?: OrgAdminGrantFilter[]; + and?: OrgCapabilityDefaultGrantFilter[]; + /** Filter by the object’s `capabilityId` field. */ + capabilityId?: UUIDFilter; /** Filter by the object’s `createdAt` field. */ createdAt?: DatetimeFilter; /** Filter by the object’s `entityId` field. */ @@ -1407,9 +1287,9 @@ export interface OrgAdminGrantFilter { /** Filter by the object’s `isGrant` field. */ isGrant?: BooleanFilter; /** Negates the expression. */ - not?: OrgAdminGrantFilter; + not?: OrgCapabilityDefaultGrantFilter; /** Checks for any expressions in this list. */ - or?: OrgAdminGrantFilter[]; + or?: OrgCapabilityDefaultGrantFilter[]; /** Filter by the object’s `updatedAt` field. */ updatedAt?: DatetimeFilter; } @@ -1502,6 +1382,8 @@ export interface OrgGrantFilter { actorId?: UUIDFilter; /** Checks for all expressions in this list. */ and?: OrgGrantFilter[]; + /** Filter by the object’s `capabilities` field. */ + capabilities?: BitStringFilter; /** Filter by the object’s `createdAt` field. */ createdAt?: DatetimeFilter; /** Filter by the object’s `entityId` field. */ @@ -1516,8 +1398,6 @@ export interface OrgGrantFilter { not?: OrgGrantFilter; /** Checks for any expressions in this list. */ or?: OrgGrantFilter[]; - /** Filter by the object’s `permissions` field. */ - permissions?: BitStringFilter; /** Filter by the object’s `updatedAt` field. */ updatedAt?: DatetimeFilter; } @@ -1616,6 +1496,8 @@ export interface OrgMembershipFilter { actorId?: UUIDFilter; /** Checks for all expressions in this list. */ and?: OrgMembershipFilter[]; + /** Filter by the object’s `capabilities` field. */ + capabilities?: BitStringFilter; /** Filter by the object’s `createdAt` field. */ createdAt?: DatetimeFilter; /** Filter by the object’s `createdBy` field. */ @@ -1650,8 +1532,6 @@ export interface OrgMembershipFilter { orgMemberProfileByMembershipId?: OrgMemberProfileFilter; /** A related `orgMemberProfileByMembershipId` exists. */ orgMemberProfileByMembershipIdExists?: boolean; - /** Filter by the object’s `permissions` field. */ - permissions?: BitStringFilter; /** Filter by the object’s `profileId` field. */ profileId?: UUIDFilter; /** Filter by the object’s `updatedAt` field. */ @@ -1739,90 +1619,6 @@ export interface OrgOwnerGrantFilter { /** Filter by the object’s `updatedAt` field. */ updatedAt?: DatetimeFilter; } -export interface OrgPermissionFilter { - /** Checks for all expressions in this list. */ - and?: OrgPermissionFilter[]; - /** 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 `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Negates the expression. */ - not?: OrgPermissionFilter; - /** Checks for any expressions in this list. */ - or?: OrgPermissionFilter[]; - /** Filter by the object’s `orgPermissionDefaultGrantsByPermissionId` relation. */ - orgPermissionDefaultGrantsByPermissionId?: OrgPermissionToManyOrgPermissionDefaultGrantFilter; - /** `orgPermissionDefaultGrantsByPermissionId` exist. */ - orgPermissionDefaultGrantsByPermissionIdExist?: boolean; - /** Filter by the object’s `orgPermissionDefaultPermissionsByPermissionId` relation. */ - orgPermissionDefaultPermissionsByPermissionId?: OrgPermissionToManyOrgPermissionDefaultPermissionFilter; - /** `orgPermissionDefaultPermissionsByPermissionId` exist. */ - orgPermissionDefaultPermissionsByPermissionIdExist?: boolean; -} -export interface OrgPermissionDefaultFilter { - /** Checks for all expressions in this list. */ - and?: OrgPermissionDefaultFilter[]; - /** Filter by the object’s `entityId` field. */ - entityId?: UUIDFilter; - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Negates the expression. */ - not?: OrgPermissionDefaultFilter; - /** Checks for any expressions in this list. */ - or?: OrgPermissionDefaultFilter[]; - /** Filter by the object’s `permissions` field. */ - permissions?: BitStringFilter; -} -export interface OrgPermissionDefaultGrantFilter { - /** Checks for all expressions in this list. */ - and?: OrgPermissionDefaultGrantFilter[]; - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; - /** Filter by the object’s `entityId` field. */ - entityId?: UUIDFilter; - /** Filter by the object’s `grantorId` field. */ - grantorId?: UUIDFilter; - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `isGrant` field. */ - isGrant?: BooleanFilter; - /** Negates the expression. */ - not?: OrgPermissionDefaultGrantFilter; - /** Checks for any expressions in this list. */ - or?: OrgPermissionDefaultGrantFilter[]; - /** Filter by the object’s `permission` relation. */ - permission?: OrgPermissionFilter; - /** Filter by the object’s `permissionId` field. */ - permissionId?: UUIDFilter; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; -} -export interface OrgPermissionDefaultPermissionFilter { - /** Checks for all expressions in this list. */ - and?: OrgPermissionDefaultPermissionFilter[]; - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; - /** Filter by the object’s `entityId` field. */ - entityId?: UUIDFilter; - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Negates the expression. */ - not?: OrgPermissionDefaultPermissionFilter; - /** Checks for any expressions in this list. */ - or?: OrgPermissionDefaultPermissionFilter[]; - /** Filter by the object’s `permission` relation. */ - permission?: OrgPermissionFilter; - /** Filter by the object’s `permissionId` field. */ - permissionId?: UUIDFilter; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; -} // ============ OrderBy Types ============ export type AppAdminGrantOrderBy = | 'ACTOR_ID_ASC' @@ -1840,25 +1636,21 @@ export type AppAdminGrantOrderBy = | 'PRIMARY_KEY_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC'; -export type AppClaimedInviteOrderBy = +export type AppCapabilityDefaultCapabilityOrderBy = + | 'CAPABILITY_ID_ASC' + | 'CAPABILITY_ID_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' - | 'DATA_ASC' - | 'DATA_DESC' | 'ID_ASC' | 'ID_DESC' | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' - | 'RECEIVER_ID_ASC' - | 'RECEIVER_ID_DESC' - | 'SENDER_ID_ASC' - | 'SENDER_ID_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC'; -export type AppGrantOrderBy = - | 'ACTOR_ID_ASC' - | 'ACTOR_ID_DESC' +export type AppCapabilityDefaultGrantOrderBy = + | 'CAPABILITY_ID_ASC' + | 'CAPABILITY_ID_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' | 'GRANTOR_ID_ASC' @@ -1868,14 +1660,46 @@ export type AppGrantOrderBy = | 'IS_GRANT_ASC' | 'IS_GRANT_DESC' | 'NATURAL' - | 'PERMISSIONS_ASC' - | 'PERMISSIONS_DESC' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC'; -export type AppInviteOrderBy = - | 'CHANNEL_ASC' +export type AppClaimedInviteOrderBy = + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'DATA_ASC' + | 'DATA_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'RECEIVER_ID_ASC' + | 'RECEIVER_ID_DESC' + | 'SENDER_ID_ASC' + | 'SENDER_ID_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC'; +export type AppGrantOrderBy = + | 'ACTOR_ID_ASC' + | 'ACTOR_ID_DESC' + | 'CAPABILITIES_ASC' + | 'CAPABILITIES_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'GRANTOR_ID_ASC' + | 'GRANTOR_ID_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'IS_GRANT_ASC' + | 'IS_GRANT_DESC' + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC'; +export type AppInviteOrderBy = + | 'CHANNEL_ASC' | 'CHANNEL_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' @@ -1911,6 +1735,8 @@ export type AppInviteOrderBy = export type AppMembershipOrderBy = | 'ACTOR_ID_ASC' | 'ACTOR_ID_DESC' + | 'CAPABILITIES_ASC' + | 'CAPABILITIES_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' | 'CREATED_BY_ASC' @@ -1934,8 +1760,6 @@ export type AppMembershipOrderBy = | 'IS_VERIFIED_ASC' | 'IS_VERIFIED_DESC' | 'NATURAL' - | 'PERMISSIONS_ASC' - | 'PERMISSIONS_DESC' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'PROFILE_ID_ASC' @@ -1978,31 +1802,29 @@ export type AppOwnerGrantOrderBy = | 'PRIMARY_KEY_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC'; -export type AppPermissionOrderBy = - | 'BITNUM_ASC' - | 'BITNUM_DESC' - | 'BITSTR_ASC' - | 'BITSTR_DESC' +export type MembershipTypeOrderBy = | 'DESCRIPTION_ASC' | 'DESCRIPTION_DESC' + | 'HAS_USERS_TABLE_ENTRY_ASC' + | 'HAS_USERS_TABLE_ENTRY_DESC' | 'ID_ASC' | 'ID_DESC' | 'NAME_ASC' | 'NAME_DESC' | 'NATURAL' + | 'PARENT_MEMBERSHIP_TYPE_ASC' + | 'PARENT_MEMBERSHIP_TYPE_DESC' | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC'; -export type AppPermissionDefaultOrderBy = - | 'ID_ASC' - | 'ID_DESC' - | 'NATURAL' - | 'PERMISSIONS_ASC' - | 'PERMISSIONS_DESC' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC'; -export type AppPermissionDefaultGrantOrderBy = + | 'PRIMARY_KEY_DESC' + | 'SCOPE_ASC' + | 'SCOPE_DESC'; +export type OrgAdminGrantOrderBy = + | 'ACTOR_ID_ASC' + | 'ACTOR_ID_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' + | 'ENTITY_ID_ASC' + | 'ENTITY_ID_DESC' | 'GRANTOR_ID_ASC' | 'GRANTOR_ID_DESC' | 'ID_ASC' @@ -2010,43 +1832,27 @@ export type AppPermissionDefaultGrantOrderBy = | 'IS_GRANT_ASC' | 'IS_GRANT_DESC' | 'NATURAL' - | 'PERMISSION_ID_ASC' - | 'PERMISSION_ID_DESC' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC'; -export type AppPermissionDefaultPermissionOrderBy = +export type OrgCapabilityDefaultCapabilityOrderBy = + | 'CAPABILITY_ID_ASC' + | 'CAPABILITY_ID_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' + | 'ENTITY_ID_ASC' + | 'ENTITY_ID_DESC' | 'ID_ASC' | 'ID_DESC' | 'NATURAL' - | 'PERMISSION_ID_ASC' - | 'PERMISSION_ID_DESC' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC'; -export type MembershipTypeOrderBy = - | 'DESCRIPTION_ASC' - | 'DESCRIPTION_DESC' - | 'HAS_USERS_TABLE_ENTRY_ASC' - | 'HAS_USERS_TABLE_ENTRY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'NAME_ASC' - | 'NAME_DESC' - | 'NATURAL' - | 'PARENT_MEMBERSHIP_TYPE_ASC' - | 'PARENT_MEMBERSHIP_TYPE_DESC' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'SCOPE_ASC' - | 'SCOPE_DESC'; -export type OrgAdminGrantOrderBy = - | 'ACTOR_ID_ASC' - | 'ACTOR_ID_DESC' +export type OrgCapabilityDefaultGrantOrderBy = + | 'CAPABILITY_ID_ASC' + | 'CAPABILITY_ID_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' | 'ENTITY_ID_ASC' @@ -2141,6 +1947,8 @@ export type OrgGetSubordinatesRecordsOrderBy = export type OrgGrantOrderBy = | 'ACTOR_ID_ASC' | 'ACTOR_ID_DESC' + | 'CAPABILITIES_ASC' + | 'CAPABILITIES_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' | 'ENTITY_ID_ASC' @@ -2152,8 +1960,6 @@ export type OrgGrantOrderBy = | 'IS_GRANT_ASC' | 'IS_GRANT_DESC' | 'NATURAL' - | 'PERMISSIONS_ASC' - | 'PERMISSIONS_DESC' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'UPDATED_AT_ASC' @@ -2239,6 +2045,8 @@ export type OrgMemberProfileOrderBy = export type OrgMembershipOrderBy = | 'ACTOR_ID_ASC' | 'ACTOR_ID_DESC' + | 'CAPABILITIES_ASC' + | 'CAPABILITIES_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' | 'CREATED_BY_ASC' @@ -2266,8 +2074,6 @@ export type OrgMembershipOrderBy = | 'IS_READ_ONLY_ASC' | 'IS_READ_ONLY_DESC' | 'NATURAL' - | 'PERMISSIONS_ASC' - | 'PERMISSIONS_DESC' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'PROFILE_ID_ASC' @@ -2344,62 +2150,6 @@ export type OrgOwnerGrantOrderBy = | 'PRIMARY_KEY_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC'; -export type OrgPermissionOrderBy = - | 'BITNUM_ASC' - | 'BITNUM_DESC' - | 'BITSTR_ASC' - | 'BITSTR_DESC' - | 'DESCRIPTION_ASC' - | 'DESCRIPTION_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'NAME_ASC' - | 'NAME_DESC' - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC'; -export type OrgPermissionDefaultOrderBy = - | 'ENTITY_ID_ASC' - | 'ENTITY_ID_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'NATURAL' - | 'PERMISSIONS_ASC' - | 'PERMISSIONS_DESC' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC'; -export type OrgPermissionDefaultGrantOrderBy = - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'ENTITY_ID_ASC' - | 'ENTITY_ID_DESC' - | 'GRANTOR_ID_ASC' - | 'GRANTOR_ID_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'IS_GRANT_ASC' - | 'IS_GRANT_DESC' - | 'NATURAL' - | 'PERMISSION_ID_ASC' - | 'PERMISSION_ID_DESC' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC'; -export type OrgPermissionDefaultPermissionOrderBy = - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'ENTITY_ID_ASC' - | 'ENTITY_ID_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'NATURAL' - | 'PERMISSION_ID_ASC' - | 'PERMISSION_ID_DESC' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC'; // ============ CRUD Input Types ============ export interface CreateAppAdminGrantInput { clientMutationId?: string; @@ -2423,6 +2173,46 @@ export interface DeleteAppAdminGrantInput { clientMutationId?: string; id: string; } +export interface CreateAppCapabilityDefaultCapabilityInput { + clientMutationId?: string; + appCapabilityDefaultCapability: { + capabilityId: string; + }; +} +export interface AppCapabilityDefaultCapabilityPatch { + capabilityId?: string | null; +} +export interface UpdateAppCapabilityDefaultCapabilityInput { + clientMutationId?: string; + id: string; + appCapabilityDefaultCapabilityPatch: AppCapabilityDefaultCapabilityPatch; +} +export interface DeleteAppCapabilityDefaultCapabilityInput { + clientMutationId?: string; + id: string; +} +export interface CreateAppCapabilityDefaultGrantInput { + clientMutationId?: string; + appCapabilityDefaultGrant: { + capabilityId: string; + grantorId?: string; + isGrant?: boolean; + }; +} +export interface AppCapabilityDefaultGrantPatch { + capabilityId?: string | null; + grantorId?: string | null; + isGrant?: boolean | null; +} +export interface UpdateAppCapabilityDefaultGrantInput { + clientMutationId?: string; + id: string; + appCapabilityDefaultGrantPatch: AppCapabilityDefaultGrantPatch; +} +export interface DeleteAppCapabilityDefaultGrantInput { + clientMutationId?: string; + id: string; +} export interface CreateAppClaimedInviteInput { clientMutationId?: string; appClaimedInvite: { @@ -2449,16 +2239,16 @@ export interface CreateAppGrantInput { clientMutationId?: string; appGrant: { actorId?: string; + capabilities?: string; grantorId?: string; isGrant?: boolean; - permissions?: string; }; } export interface AppGrantPatch { actorId?: string | null; + capabilities?: string | null; grantorId?: string | null; isGrant?: boolean | null; - permissions?: string | null; } export interface UpdateAppGrantInput { clientMutationId?: string; @@ -2513,6 +2303,7 @@ export interface CreateAppMembershipInput { clientMutationId?: string; appMembership: { actorId: string; + capabilities?: string; createdBy?: string; granted?: string; isActive?: boolean; @@ -2522,13 +2313,13 @@ export interface CreateAppMembershipInput { isDisabled?: boolean; isOwner?: boolean; isVerified?: boolean; - permissions?: string; profileId?: string; updatedBy?: string; }; } export interface AppMembershipPatch { actorId?: string | null; + capabilities?: string | null; createdBy?: string | null; granted?: string | null; isActive?: boolean | null; @@ -2538,7 +2329,6 @@ export interface AppMembershipPatch { isDisabled?: boolean | null; isOwner?: boolean | null; isVerified?: boolean | null; - permissions?: string | null; profileId?: string | null; updatedBy?: string | null; } @@ -2597,88 +2387,6 @@ export interface DeleteAppOwnerGrantInput { clientMutationId?: string; id: string; } -export interface CreateAppPermissionInput { - clientMutationId?: string; - appPermission: { - bitnum?: number; - bitstr?: string; - description?: string; - name?: string; - }; -} -export interface AppPermissionPatch { - bitnum?: number | null; - bitstr?: string | null; - description?: string | null; - name?: string | null; -} -export interface UpdateAppPermissionInput { - clientMutationId?: string; - id: string; - appPermissionPatch: AppPermissionPatch; -} -export interface DeleteAppPermissionInput { - clientMutationId?: string; - id: string; -} -export interface CreateAppPermissionDefaultInput { - clientMutationId?: string; - appPermissionDefault: { - permissions?: string; - }; -} -export interface AppPermissionDefaultPatch { - permissions?: string | null; -} -export interface UpdateAppPermissionDefaultInput { - clientMutationId?: string; - id: string; - appPermissionDefaultPatch: AppPermissionDefaultPatch; -} -export interface DeleteAppPermissionDefaultInput { - clientMutationId?: string; - id: string; -} -export interface CreateAppPermissionDefaultGrantInput { - clientMutationId?: string; - appPermissionDefaultGrant: { - grantorId?: string; - isGrant?: boolean; - permissionId: string; - }; -} -export interface AppPermissionDefaultGrantPatch { - grantorId?: string | null; - isGrant?: boolean | null; - permissionId?: string | null; -} -export interface UpdateAppPermissionDefaultGrantInput { - clientMutationId?: string; - id: string; - appPermissionDefaultGrantPatch: AppPermissionDefaultGrantPatch; -} -export interface DeleteAppPermissionDefaultGrantInput { - clientMutationId?: string; - id: string; -} -export interface CreateAppPermissionDefaultPermissionInput { - clientMutationId?: string; - appPermissionDefaultPermission: { - permissionId: string; - }; -} -export interface AppPermissionDefaultPermissionPatch { - permissionId?: string | null; -} -export interface UpdateAppPermissionDefaultPermissionInput { - clientMutationId?: string; - id: string; - appPermissionDefaultPermissionPatch: AppPermissionDefaultPermissionPatch; -} -export interface DeleteAppPermissionDefaultPermissionInput { - clientMutationId?: string; - id: string; -} export interface CreateMembershipTypeInput { clientMutationId?: string; membershipType: { @@ -2729,6 +2437,50 @@ export interface DeleteOrgAdminGrantInput { clientMutationId?: string; id: string; } +export interface CreateOrgCapabilityDefaultCapabilityInput { + clientMutationId?: string; + orgCapabilityDefaultCapability: { + capabilityId: string; + entityId: string; + }; +} +export interface OrgCapabilityDefaultCapabilityPatch { + capabilityId?: string | null; + entityId?: string | null; +} +export interface UpdateOrgCapabilityDefaultCapabilityInput { + clientMutationId?: string; + id: string; + orgCapabilityDefaultCapabilityPatch: OrgCapabilityDefaultCapabilityPatch; +} +export interface DeleteOrgCapabilityDefaultCapabilityInput { + clientMutationId?: string; + id: string; +} +export interface CreateOrgCapabilityDefaultGrantInput { + clientMutationId?: string; + orgCapabilityDefaultGrant: { + capabilityId: string; + entityId: string; + grantorId?: string; + isGrant?: boolean; + }; +} +export interface OrgCapabilityDefaultGrantPatch { + capabilityId?: string | null; + entityId?: string | null; + grantorId?: string | null; + isGrant?: boolean | null; +} +export interface UpdateOrgCapabilityDefaultGrantInput { + clientMutationId?: string; + id: string; + orgCapabilityDefaultGrantPatch: OrgCapabilityDefaultGrantPatch; +} +export interface DeleteOrgCapabilityDefaultGrantInput { + clientMutationId?: string; + id: string; +} export interface CreateOrgChartEdgeInput { clientMutationId?: string; orgChartEdge: { @@ -2853,18 +2605,18 @@ export interface CreateOrgGrantInput { clientMutationId?: string; orgGrant: { actorId?: string; + capabilities?: string; entityId: string; grantorId?: string; isGrant?: boolean; - permissions?: string; }; } export interface OrgGrantPatch { actorId?: string | null; + capabilities?: string | null; entityId?: string | null; grantorId?: string | null; isGrant?: boolean | null; - permissions?: string | null; } export interface UpdateOrgGrantInput { clientMutationId?: string; @@ -2980,6 +2732,7 @@ export interface CreateOrgMembershipInput { clientMutationId?: string; orgMembership: { actorId: string; + capabilities?: string; createdBy?: string; entityId: string; granted?: string; @@ -2991,13 +2744,13 @@ export interface CreateOrgMembershipInput { isExternal?: boolean; isOwner?: boolean; isReadOnly?: boolean; - permissions?: string; profileId?: string; updatedBy?: string; }; } export interface OrgMembershipPatch { actorId?: string | null; + capabilities?: string | null; createdBy?: string | null; entityId?: string | null; granted?: string | null; @@ -3009,7 +2762,6 @@ export interface OrgMembershipPatch { isExternal?: boolean | null; isOwner?: boolean | null; isReadOnly?: boolean | null; - permissions?: string | null; profileId?: string | null; updatedBy?: string | null; } @@ -3108,121 +2860,25 @@ export interface DeleteOrgOwnerGrantInput { clientMutationId?: string; id: string; } -export interface CreateOrgPermissionInput { - clientMutationId?: string; - orgPermission: { - bitnum?: number; - bitstr?: string; - description?: string; - name?: string; - }; -} -export interface OrgPermissionPatch { - bitnum?: number | null; - bitstr?: string | null; - description?: string | null; - name?: string | null; -} -export interface UpdateOrgPermissionInput { - clientMutationId?: string; - id: string; - orgPermissionPatch: OrgPermissionPatch; -} -export interface DeleteOrgPermissionInput { - clientMutationId?: string; - id: string; -} -export interface CreateOrgPermissionDefaultInput { - clientMutationId?: string; - orgPermissionDefault: { - entityId: string; - permissions?: string; - }; -} -export interface OrgPermissionDefaultPatch { - entityId?: string | null; - permissions?: string | null; -} -export interface UpdateOrgPermissionDefaultInput { - clientMutationId?: string; - id: string; - orgPermissionDefaultPatch: OrgPermissionDefaultPatch; +// ============ Connection Fields Map ============ +export const connectionFieldsMap = {} as Record>; +// ============ Custom Input Types (from schema) ============ +export interface ProvisionBucketInput { + /** The logical bucket key (e.g., "public", "private") */ + bucketKey: string; + /** + * Owner entity ID for entity-scoped bucket provisioning. + * Omit for app-level (database-wide) storage. + */ + ownerId?: string; } -export interface DeleteOrgPermissionDefaultInput { +export interface SubmitAppInviteCodeInput { clientMutationId?: string; - id: string; + token?: string; } -export interface CreateOrgPermissionDefaultGrantInput { +export interface SubmitOrgInviteCodeInput { clientMutationId?: string; - orgPermissionDefaultGrant: { - entityId: string; - grantorId?: string; - isGrant?: boolean; - permissionId: string; - }; -} -export interface OrgPermissionDefaultGrantPatch { - entityId?: string | null; - grantorId?: string | null; - isGrant?: boolean | null; - permissionId?: string | null; -} -export interface UpdateOrgPermissionDefaultGrantInput { - clientMutationId?: string; - id: string; - orgPermissionDefaultGrantPatch: OrgPermissionDefaultGrantPatch; -} -export interface DeleteOrgPermissionDefaultGrantInput { - clientMutationId?: string; - id: string; -} -export interface CreateOrgPermissionDefaultPermissionInput { - clientMutationId?: string; - orgPermissionDefaultPermission: { - entityId: string; - permissionId: string; - }; -} -export interface OrgPermissionDefaultPermissionPatch { - entityId?: string | null; - permissionId?: string | null; -} -export interface UpdateOrgPermissionDefaultPermissionInput { - clientMutationId?: string; - id: string; - orgPermissionDefaultPermissionPatch: OrgPermissionDefaultPermissionPatch; -} -export interface DeleteOrgPermissionDefaultPermissionInput { - clientMutationId?: string; - id: string; -} -// ============ Connection Fields Map ============ -export const connectionFieldsMap = { - AppPermission: { - appPermissionDefaultGrantsByPermissionId: 'AppPermissionDefaultGrant', - }, - OrgPermission: { - orgPermissionDefaultGrantsByPermissionId: 'OrgPermissionDefaultGrant', - orgPermissionDefaultPermissionsByPermissionId: 'OrgPermissionDefaultPermission', - }, -} as Record>; -// ============ Custom Input Types (from schema) ============ -export interface ProvisionBucketInput { - /** The logical bucket key (e.g., "public", "private") */ - bucketKey: string; - /** - * Owner entity ID for entity-scoped bucket provisioning. - * Omit for app-level (database-wide) storage. - */ - ownerId?: string; -} -export interface SubmitAppInviteCodeInput { - clientMutationId?: string; - token?: string; -} -export interface SubmitOrgInviteCodeInput { - clientMutationId?: string; - token?: string; + token?: string; } /** A filter to be used against ConstructiveInternalTypeEmail fields. All fields are combined with a logical ‘and.’ */ export interface ConstructiveInternalTypeEmailFilter { @@ -3301,15 +2957,6 @@ export interface ConstructiveInternalTypeEmailFilter { /** Starts with the specified string (case-insensitive). */ startsWithInsensitive?: ConstructiveInternalTypeEmail; } -/** A filter to be used against many `AppPermissionDefaultGrant` object types. All fields are combined with a logical ‘and.’ */ -export interface AppPermissionToManyAppPermissionDefaultGrantFilter { - /** Filters to entities where every related entity matches. */ - every?: AppPermissionDefaultGrantFilter; - /** Filters to entities where no related entity matches. */ - none?: AppPermissionDefaultGrantFilter; - /** Filters to entities where at least one related entity matches. */ - some?: AppPermissionDefaultGrantFilter; -} /** A filter to be used against ConstructiveInternalTypeImage fields. All fields are combined with a logical ‘and.’ */ export interface ConstructiveInternalTypeImageFilter { /** Contained by the specified JSON. */ @@ -3345,24 +2992,6 @@ export interface ConstructiveInternalTypeImageFilter { /** Not included in the specified list. */ notIn?: ConstructiveInternalTypeImage[]; } -/** A filter to be used against many `OrgPermissionDefaultGrant` object types. All fields are combined with a logical ‘and.’ */ -export interface OrgPermissionToManyOrgPermissionDefaultGrantFilter { - /** Filters to entities where every related entity matches. */ - every?: OrgPermissionDefaultGrantFilter; - /** Filters to entities where no related entity matches. */ - none?: OrgPermissionDefaultGrantFilter; - /** Filters to entities where at least one related entity matches. */ - some?: OrgPermissionDefaultGrantFilter; -} -/** A filter to be used against many `OrgPermissionDefaultPermission` object types. All fields are combined with a logical ‘and.’ */ -export interface OrgPermissionToManyOrgPermissionDefaultPermissionFilter { - /** Filters to entities where every related entity matches. */ - every?: OrgPermissionDefaultPermissionFilter; - /** Filters to entities where no related entity matches. */ - none?: OrgPermissionDefaultPermissionFilter; - /** Filters to entities where at least one related entity matches. */ - some?: OrgPermissionDefaultPermissionFilter; -} /** An input for mutations affecting `AppAdminGrant` */ export interface AppAdminGrantInput { /** The member receiving or losing the admin grant; NULL if user was deleted */ @@ -3374,6 +3003,25 @@ export interface AppAdminGrantInput { isGrant?: boolean; updatedAt?: string; } +/** An input for mutations affecting `AppCapabilityDefaultCapability` */ +export interface AppCapabilityDefaultCapabilityInput { + /** References the capability included in the defaults bundle */ + capabilityId: string; + createdAt?: string; + id?: string; + updatedAt?: string; +} +/** An input for mutations affecting `AppCapabilityDefaultGrant` */ +export interface AppCapabilityDefaultGrantInput { + /** References the capability being added to or removed from defaults */ + capabilityId: string; + createdAt?: string; + grantorId?: string; + id?: string; + /** True to add the capability to defaults, false to remove it */ + isGrant?: boolean; + updatedAt?: string; +} /** An input for mutations affecting `AppClaimedInvite` */ export interface AppClaimedInviteInput { createdAt?: string; @@ -3388,15 +3036,15 @@ export interface AppClaimedInviteInput { } /** An input for mutations affecting `AppGrant` */ export interface AppGrantInput { - /** The member receiving or losing the permission grant; NULL if user was deleted */ + /** The member receiving or losing the capability grant; NULL if user was deleted */ actorId?: string; + /** Bitmask of capabilities being granted or revoked */ + capabilities?: string; createdAt?: string; grantorId?: string; id?: string; - /** True to grant the permissions, false to revoke them */ + /** True to grant the capabilities, false to revoke them */ isGrant?: boolean; - /** Bitmask of permissions being granted or revoked */ - permissions?: string; updatedAt?: string; } /** An input for mutations affecting `AppInvite` */ @@ -3433,9 +3081,11 @@ export interface AppInviteInput { export interface AppMembershipInput { /** References the user who holds this membership */ actorId: string; + /** Aggregated capability bitmask combining profile-based and directly granted capabilities */ + capabilities?: string; createdAt?: string; createdBy?: string; - /** Bitmask of permissions directly granted to this member (not from profiles) */ + /** Bitmask of capabilities directly granted to this member (not from profiles) */ granted?: string; id?: string; /** Computed field indicating the membership is approved, verified, not banned, and not disabled */ @@ -3452,8 +3102,6 @@ export interface AppMembershipInput { isOwner?: boolean; /** Whether this member has been verified (e.g. email confirmation) */ isVerified?: boolean; - /** Aggregated permission bitmask combining profile-based and directly granted permissions */ - permissions?: string; profileId?: string; updatedAt?: string; updatedBy?: string; @@ -3481,43 +3129,6 @@ export interface AppOwnerGrantInput { isGrant?: boolean; updatedAt?: string; } -/** An input for mutations affecting `AppPermission` */ -export interface AppPermissionInput { - /** 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; - id?: string; - /** Human-readable permission name (e.g. read, write, manage) */ - name?: string; -} -/** An input for mutations affecting `AppPermissionDefault` */ -export interface AppPermissionDefaultInput { - id?: string; - /** Default permission bitmask applied to new members */ - permissions?: string; -} -/** An input for mutations affecting `AppPermissionDefaultGrant` */ -export interface AppPermissionDefaultGrantInput { - createdAt?: string; - grantorId?: string; - id?: string; - /** True to add the permission to defaults, false to remove it */ - isGrant?: boolean; - /** References the permission being added to or removed from defaults */ - permissionId: string; - updatedAt?: string; -} -/** An input for mutations affecting `AppPermissionDefaultPermission` */ -export interface AppPermissionDefaultPermissionInput { - createdAt?: string; - id?: string; - /** References the permission included in the defaults bundle */ - permissionId: string; - updatedAt?: string; -} /** An input for mutations affecting `MembershipType` */ export interface MembershipTypeInput { /** Description of what this membership type represents */ @@ -3546,6 +3157,29 @@ export interface OrgAdminGrantInput { isGrant?: boolean; updatedAt?: string; } +/** An input for mutations affecting `OrgCapabilityDefaultCapability` */ +export interface OrgCapabilityDefaultCapabilityInput { + /** References the capability included in the defaults bundle */ + capabilityId: string; + createdAt?: string; + /** Scopes this default capability to a specific entity */ + entityId: string; + id?: string; + updatedAt?: string; +} +/** An input for mutations affecting `OrgCapabilityDefaultGrant` */ +export interface OrgCapabilityDefaultGrantInput { + /** References the capability being added to or removed from defaults */ + capabilityId: string; + createdAt?: string; + /** Scopes this audit entry to a specific entity */ + entityId: string; + grantorId?: string; + id?: string; + /** True to add the capability to defaults, false to remove it */ + isGrant?: boolean; + updatedAt?: string; +} /** An input for mutations affecting `OrgChartEdge` */ export interface OrgChartEdgeInput { /** User ID of the subordinate (employee) in this reporting relationship */ @@ -3597,17 +3231,17 @@ export interface OrgClaimedInviteInput { } /** An input for mutations affecting `OrgGrant` */ export interface OrgGrantInput { - /** The member receiving or losing the permission grant; NULL if user was deleted */ + /** The member receiving or losing the capability grant; NULL if user was deleted */ actorId?: string; + /** Bitmask of capabilities being granted or revoked */ + capabilities?: string; createdAt?: string; - /** The entity (org or group) this permission grant applies to */ + /** The entity (org or group) this capability grant applies to */ entityId: string; grantorId?: string; id?: string; - /** True to grant the permissions, false to revoke them */ + /** True to grant the capabilities, false to revoke them */ isGrant?: boolean; - /** Bitmask of permissions being granted or revoked */ - permissions?: string; updatedAt?: string; } /** An input for mutations affecting `OrgInvite` */ @@ -3681,11 +3315,13 @@ export interface OrgMemberProfileInput { export interface OrgMembershipInput { /** References the user who holds this membership */ actorId: string; + /** Aggregated capability bitmask combining profile-based and directly granted capabilities */ + capabilities?: string; createdAt?: string; createdBy?: string; /** References the entity (org or group) this membership belongs to */ entityId: string; - /** Bitmask of permissions directly granted to this member (not from profiles) */ + /** Bitmask of capabilities directly granted to this member (not from profiles) */ granted?: string; id?: string; /** Computed field indicating the membership is approved, verified, not banned, and not disabled */ @@ -3698,14 +3334,12 @@ export interface OrgMembershipInput { isBanned?: boolean; /** Whether this membership is temporarily disabled */ isDisabled?: boolean; - /** Whether this member is external (not a member of the parent scope). External members may have restricted permissions. */ + /** Whether this member is external (not a member of the parent scope). External members may have restricted capabilities. */ isExternal?: boolean; /** Whether the actor is the owner of this entity */ isOwner?: boolean; /** Whether this member has read-only access (blocks mutations when true) */ isReadOnly?: boolean; - /** Aggregated permission bitmask combining profile-based and directly granted permissions */ - permissions?: string; profileId?: string; updatedAt?: string; updatedBy?: string; @@ -3739,7 +3373,7 @@ export interface OrgMembershipSettingInput { /** References the entity these settings apply to */ entityId: string; id?: string; - /** Controls how profile assignment on invites is validated: strict (permission + subset check), permission_only (permission only), or subset_only (subset check only) */ + /** Controls how profile assignment on invites is validated: strict (capability + subset check), capability_only (capability only), or subset_only (subset check only) */ inviteProfileAssignmentMode?: 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; @@ -3761,432 +3395,7 @@ export interface OrgOwnerGrantInput { isGrant?: boolean; updatedAt?: string; } -/** An input for mutations affecting `OrgPermission` */ -export interface OrgPermissionInput { - /** 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; - id?: string; - /** Human-readable permission name (e.g. read, write, manage) */ - name?: string; -} -/** An input for mutations affecting `OrgPermissionDefault` */ -export interface OrgPermissionDefaultInput { - /** References the entity these default permissions apply to */ - entityId: string; - id?: string; - /** Default permission bitmask applied to new members */ - permissions?: string; -} -/** An input for mutations affecting `OrgPermissionDefaultGrant` */ -export interface OrgPermissionDefaultGrantInput { - createdAt?: string; - /** Scopes this audit entry to a specific entity */ - entityId: string; - grantorId?: string; - id?: string; - /** True to add the permission to defaults, false to remove it */ - isGrant?: boolean; - /** References the permission being added to or removed from defaults */ - permissionId: string; - updatedAt?: string; -} -/** An input for mutations affecting `OrgPermissionDefaultPermission` */ -export interface OrgPermissionDefaultPermissionInput { - createdAt?: string; - /** Scopes this default permission to a specific entity */ - entityId: string; - id?: string; - /** References the permission included in the defaults bundle */ - permissionId: string; - updatedAt?: string; -} -/** A filter to be used against `AppPermissionDefaultGrant` object types. All fields are combined with a logical ‘and.’ */ -export interface AppPermissionDefaultGrantFilter { - /** Checks for all expressions in this list. */ - and?: AppPermissionDefaultGrantFilter[]; - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; - /** Filter by the object’s `grantorId` field. */ - grantorId?: UUIDFilter; - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `isGrant` field. */ - isGrant?: BooleanFilter; - /** Negates the expression. */ - not?: AppPermissionDefaultGrantFilter; - /** Checks for any expressions in this list. */ - or?: AppPermissionDefaultGrantFilter[]; - /** Filter by the object’s `permission` relation. */ - permission?: AppPermissionFilter; - /** Filter by the object’s `permissionId` field. */ - permissionId?: UUIDFilter; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; -} -/** A filter to be used against `OrgPermissionDefaultGrant` object types. All fields are combined with a logical ‘and.’ */ -export interface OrgPermissionDefaultGrantFilter { - /** Checks for all expressions in this list. */ - and?: OrgPermissionDefaultGrantFilter[]; - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; - /** Filter by the object’s `entityId` field. */ - entityId?: UUIDFilter; - /** Filter by the object’s `grantorId` field. */ - grantorId?: UUIDFilter; - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `isGrant` field. */ - isGrant?: BooleanFilter; - /** Negates the expression. */ - not?: OrgPermissionDefaultGrantFilter; - /** Checks for any expressions in this list. */ - or?: OrgPermissionDefaultGrantFilter[]; - /** Filter by the object’s `permission` relation. */ - permission?: OrgPermissionFilter; - /** Filter by the object’s `permissionId` field. */ - permissionId?: UUIDFilter; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; -} -/** A filter to be used against `OrgPermissionDefaultPermission` object types. All fields are combined with a logical ‘and.’ */ -export interface OrgPermissionDefaultPermissionFilter { - /** Checks for all expressions in this list. */ - and?: OrgPermissionDefaultPermissionFilter[]; - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; - /** Filter by the object’s `entityId` field. */ - entityId?: UUIDFilter; - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Negates the expression. */ - not?: OrgPermissionDefaultPermissionFilter; - /** Checks for any expressions in this list. */ - or?: OrgPermissionDefaultPermissionFilter[]; - /** Filter by the object’s `permission` relation. */ - permission?: OrgPermissionFilter; - /** Filter by the object’s `permissionId` field. */ - permissionId?: UUIDFilter; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; -} -/** A filter to be used against Datetime fields. All fields are combined with a logical ‘and.’ */ -export interface DatetimeFilter { - /** Not equal to the specified value, treating null like an ordinary value. */ - distinctFrom?: string; - /** Equal to the specified value. */ - equalTo?: string; - /** Greater than the specified value. */ - greaterThan?: string; - /** Greater than or equal to the specified value. */ - greaterThanOrEqualTo?: string; - /** Included in the specified list. */ - in?: string[]; - /** Is null (if `true` is specified) or is not null (if `false` is specified). */ - isNull?: boolean; - /** Less than the specified value. */ - lessThan?: string; - /** Less than or equal to the specified value. */ - lessThanOrEqualTo?: string; - /** Equal to the specified value, treating null like an ordinary value. */ - notDistinctFrom?: string; - /** Not equal to the specified value. */ - notEqualTo?: string; - /** Not included in the specified list. */ - notIn?: string[]; -} -/** A filter to be used against UUID fields. All fields are combined with a logical ‘and.’ */ -export interface UUIDFilter { - /** Not equal to the specified value, treating null like an ordinary value. */ - distinctFrom?: string; - /** Equal to the specified value. */ - equalTo?: string; - /** Greater than the specified value. */ - greaterThan?: string; - /** Greater than or equal to the specified value. */ - greaterThanOrEqualTo?: string; - /** Included in the specified list. */ - in?: string[]; - /** Is null (if `true` is specified) or is not null (if `false` is specified). */ - isNull?: boolean; - /** Less than the specified value. */ - lessThan?: string; - /** Less than or equal to the specified value. */ - lessThanOrEqualTo?: string; - /** Equal to the specified value, treating null like an ordinary value. */ - notDistinctFrom?: string; - /** Not equal to the specified value. */ - notEqualTo?: string; - /** Not included in the specified list. */ - notIn?: string[]; -} -/** A filter to be used against Boolean fields. All fields are combined with a logical ‘and.’ */ -export interface BooleanFilter { - /** Not equal to the specified value, treating null like an ordinary value. */ - distinctFrom?: boolean; - /** Equal to the specified value. */ - equalTo?: boolean; - /** Greater than the specified value. */ - greaterThan?: boolean; - /** Greater than or equal to the specified value. */ - greaterThanOrEqualTo?: boolean; - /** Included in the specified list. */ - in?: boolean[]; - /** Is null (if `true` is specified) or is not null (if `false` is specified). */ - isNull?: boolean; - /** Less than the specified value. */ - lessThan?: boolean; - /** Less than or equal to the specified value. */ - lessThanOrEqualTo?: boolean; - /** Equal to the specified value, treating null like an ordinary value. */ - notDistinctFrom?: boolean; - /** Not equal to the specified value. */ - notEqualTo?: boolean; - /** Not included in the specified list. */ - notIn?: boolean[]; -} -/** A filter to be used against `AppPermission` object types. All fields are combined with a logical ‘and.’ */ -export interface AppPermissionFilter { - /** Checks for all expressions in this list. */ - and?: AppPermissionFilter[]; - /** Filter by the object’s `appPermissionDefaultGrantsByPermissionId` relation. */ - appPermissionDefaultGrantsByPermissionId?: AppPermissionToManyAppPermissionDefaultGrantFilter; - /** `appPermissionDefaultGrantsByPermissionId` exist. */ - appPermissionDefaultGrantsByPermissionIdExist?: boolean; - /** Filter by the object’s `appPermissionDefaultPermissionByPermissionId` relation. */ - appPermissionDefaultPermissionByPermissionId?: AppPermissionDefaultPermissionFilter; - /** A related `appPermissionDefaultPermissionByPermissionId` exists. */ - appPermissionDefaultPermissionByPermissionIdExists?: boolean; - /** 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 `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Negates the expression. */ - not?: AppPermissionFilter; - /** Checks for any expressions in this list. */ - or?: AppPermissionFilter[]; -} -/** A filter to be used against `OrgPermission` object types. All fields are combined with a logical ‘and.’ */ -export interface OrgPermissionFilter { - /** Checks for all expressions in this list. */ - and?: OrgPermissionFilter[]; - /** 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 `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Negates the expression. */ - not?: OrgPermissionFilter; - /** Checks for any expressions in this list. */ - or?: OrgPermissionFilter[]; - /** Filter by the object’s `orgPermissionDefaultGrantsByPermissionId` relation. */ - orgPermissionDefaultGrantsByPermissionId?: OrgPermissionToManyOrgPermissionDefaultGrantFilter; - /** `orgPermissionDefaultGrantsByPermissionId` exist. */ - orgPermissionDefaultGrantsByPermissionIdExist?: boolean; - /** Filter by the object’s `orgPermissionDefaultPermissionsByPermissionId` relation. */ - orgPermissionDefaultPermissionsByPermissionId?: OrgPermissionToManyOrgPermissionDefaultPermissionFilter; - /** `orgPermissionDefaultPermissionsByPermissionId` exist. */ - orgPermissionDefaultPermissionsByPermissionIdExist?: boolean; -} -/** A filter to be used against `AppPermissionDefaultPermission` object types. All fields are combined with a logical ‘and.’ */ -export interface AppPermissionDefaultPermissionFilter { - /** Checks for all expressions in this list. */ - and?: AppPermissionDefaultPermissionFilter[]; - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Negates the expression. */ - not?: AppPermissionDefaultPermissionFilter; - /** Checks for any expressions in this list. */ - or?: AppPermissionDefaultPermissionFilter[]; - /** Filter by the object’s `permission` relation. */ - permission?: AppPermissionFilter; - /** Filter by the object’s `permissionId` field. */ - permissionId?: UUIDFilter; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; -} -/** A filter to be used against Int fields. All fields are combined with a logical ‘and.’ */ -export interface IntFilter { - /** Not equal to the specified value, treating null like an ordinary value. */ - distinctFrom?: number; - /** Equal to the specified value. */ - equalTo?: number; - /** Greater than the specified value. */ - greaterThan?: number; - /** Greater than or equal to the specified value. */ - greaterThanOrEqualTo?: number; - /** Included in the specified list. */ - in?: number[]; - /** Is null (if `true` is specified) or is not null (if `false` is specified). */ - isNull?: boolean; - /** Less than the specified value. */ - lessThan?: number; - /** Less than or equal to the specified value. */ - lessThanOrEqualTo?: number; - /** Equal to the specified value, treating null like an ordinary value. */ - notDistinctFrom?: number; - /** Not equal to the specified value. */ - notEqualTo?: number; - /** Not included in the specified list. */ - notIn?: number[]; -} -/** A filter to be used against BitString fields. All fields are combined with a logical ‘and.’ */ -export interface BitStringFilter { - /** Not equal to the specified value, treating null like an ordinary value. */ - distinctFrom?: string; - /** Equal to the specified value. */ - equalTo?: string; - /** Greater than the specified value. */ - greaterThan?: string; - /** Greater than or equal to the specified value. */ - greaterThanOrEqualTo?: string; - /** Included in the specified list. */ - in?: string[]; - /** Is null (if `true` is specified) or is not null (if `false` is specified). */ - isNull?: boolean; - /** Less than the specified value. */ - lessThan?: string; - /** Less than or equal to the specified value. */ - lessThanOrEqualTo?: string; - /** Equal to the specified value, treating null like an ordinary value. */ - notDistinctFrom?: string; - /** Not equal to the specified value. */ - notEqualTo?: string; - /** Not included in the specified list. */ - notIn?: string[]; -} -/** A filter to be used against String fields. All fields are combined with a logical ‘and.’ */ -export interface StringFilter { - /** Not equal to the specified value, treating null like an ordinary value. */ - distinctFrom?: string; - /** Not equal to the specified value, treating null like an ordinary value (case-insensitive). */ - distinctFromInsensitive?: string; - /** Ends with the specified string (case-sensitive). */ - endsWith?: string; - /** Ends with the specified string (case-insensitive). */ - endsWithInsensitive?: string; - /** Equal to the specified value. */ - equalTo?: string; - /** Equal to the specified value (case-insensitive). */ - equalToInsensitive?: string; - /** Greater than the specified value. */ - greaterThan?: string; - /** Greater than the specified value (case-insensitive). */ - greaterThanInsensitive?: string; - /** Greater than or equal to the specified value. */ - greaterThanOrEqualTo?: string; - /** Greater than or equal to the specified value (case-insensitive). */ - greaterThanOrEqualToInsensitive?: string; - /** Included in the specified list. */ - in?: string[]; - /** Included in the specified list (case-insensitive). */ - inInsensitive?: string[]; - /** Contains the specified string (case-sensitive). */ - includes?: string; - /** Contains the specified string (case-insensitive). */ - includesInsensitive?: string; - /** Is null (if `true` is specified) or is not null (if `false` is specified). */ - isNull?: boolean; - /** Less than the specified value. */ - lessThan?: string; - /** Less than the specified value (case-insensitive). */ - lessThanInsensitive?: string; - /** Less than or equal to the specified value. */ - lessThanOrEqualTo?: string; - /** Less than or equal to the specified value (case-insensitive). */ - lessThanOrEqualToInsensitive?: string; - /** Matches the specified pattern (case-sensitive). An underscore (_) matches any single character; a percent sign (%) matches any sequence of zero or more characters. */ - like?: string; - /** Matches the specified pattern (case-insensitive). An underscore (_) matches any single character; a percent sign (%) matches any sequence of zero or more characters. */ - likeInsensitive?: string; - /** Equal to the specified value, treating null like an ordinary value. */ - notDistinctFrom?: string; - /** Equal to the specified value, treating null like an ordinary value (case-insensitive). */ - notDistinctFromInsensitive?: string; - /** Does not end with the specified string (case-sensitive). */ - notEndsWith?: string; - /** Does not end with the specified string (case-insensitive). */ - notEndsWithInsensitive?: string; - /** Not equal to the specified value. */ - notEqualTo?: string; - /** Not equal to the specified value (case-insensitive). */ - notEqualToInsensitive?: string; - /** Not included in the specified list. */ - notIn?: string[]; - /** Not included in the specified list (case-insensitive). */ - notInInsensitive?: string[]; - /** Does not contain the specified string (case-sensitive). */ - notIncludes?: string; - /** Does not contain the specified string (case-insensitive). */ - notIncludesInsensitive?: 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; - /** Does not match the specified pattern (case-insensitive). An underscore (_) matches any single character; a percent sign (%) matches any sequence of zero or more characters. */ - notLikeInsensitive?: string; - /** Does not start with the specified string (case-sensitive). */ - notStartsWith?: string; - /** Does not start with the specified string (case-insensitive). */ - notStartsWithInsensitive?: string; - /** Starts with the specified string (case-sensitive). */ - startsWith?: string; - /** Starts with the specified string (case-insensitive). */ - startsWithInsensitive?: string; -} -/** A connection to a list of `AppPermission` values. */ // ============ Payload/Return Types (for custom operations) ============ -export interface AppPermissionConnection { - edges: AppPermissionEdge[]; - nodes: AppPermission[]; - pageInfo: PageInfo; - totalCount: number; -} -export type AppPermissionConnectionSelect = { - edges?: { - select: AppPermissionEdgeSelect; - }; - nodes?: { - select: AppPermissionSelect; - }; - pageInfo?: { - select: PageInfoSelect; - }; - totalCount?: boolean; -}; -/** A connection to a list of `OrgPermission` values. */ -export interface OrgPermissionConnection { - edges: OrgPermissionEdge[]; - nodes: OrgPermission[]; - pageInfo: PageInfo; - totalCount: number; -} -export type OrgPermissionConnectionSelect = { - edges?: { - select: OrgPermissionEdgeSelect; - }; - nodes?: { - select: OrgPermissionSelect; - }; - pageInfo?: { - select: PageInfoSelect; - }; - totalCount?: boolean; -}; export interface ProvisionBucketPayload { /** The access type applied */ accessType: string; @@ -4255,18 +3464,108 @@ export type UpdateAppAdminGrantPayloadSelect = { }; clientMutationId?: boolean; }; -export interface DeleteAppAdminGrantPayload { - /** The `AppAdminGrant` that was deleted by this mutation. */ - appAdminGrant?: AppAdminGrant | null; - appAdminGrantEdge?: AppAdminGrantEdge | null; +export interface DeleteAppAdminGrantPayload { + /** The `AppAdminGrant` that was deleted by this mutation. */ + appAdminGrant?: AppAdminGrant | null; + appAdminGrantEdge?: AppAdminGrantEdge | null; + clientMutationId?: string | null; +} +export type DeleteAppAdminGrantPayloadSelect = { + appAdminGrant?: { + select: AppAdminGrantSelect; + }; + appAdminGrantEdge?: { + select: AppAdminGrantEdgeSelect; + }; + clientMutationId?: boolean; +}; +export interface CreateAppCapabilityDefaultCapabilityPayload { + /** The `AppCapabilityDefaultCapability` that was created by this mutation. */ + appCapabilityDefaultCapability?: AppCapabilityDefaultCapability | null; + appCapabilityDefaultCapabilityEdge?: AppCapabilityDefaultCapabilityEdge | null; + clientMutationId?: string | null; +} +export type CreateAppCapabilityDefaultCapabilityPayloadSelect = { + appCapabilityDefaultCapability?: { + select: AppCapabilityDefaultCapabilitySelect; + }; + appCapabilityDefaultCapabilityEdge?: { + select: AppCapabilityDefaultCapabilityEdgeSelect; + }; + clientMutationId?: boolean; +}; +export interface UpdateAppCapabilityDefaultCapabilityPayload { + /** The `AppCapabilityDefaultCapability` that was updated by this mutation. */ + appCapabilityDefaultCapability?: AppCapabilityDefaultCapability | null; + appCapabilityDefaultCapabilityEdge?: AppCapabilityDefaultCapabilityEdge | null; + clientMutationId?: string | null; +} +export type UpdateAppCapabilityDefaultCapabilityPayloadSelect = { + appCapabilityDefaultCapability?: { + select: AppCapabilityDefaultCapabilitySelect; + }; + appCapabilityDefaultCapabilityEdge?: { + select: AppCapabilityDefaultCapabilityEdgeSelect; + }; + clientMutationId?: boolean; +}; +export interface DeleteAppCapabilityDefaultCapabilityPayload { + /** The `AppCapabilityDefaultCapability` that was deleted by this mutation. */ + appCapabilityDefaultCapability?: AppCapabilityDefaultCapability | null; + appCapabilityDefaultCapabilityEdge?: AppCapabilityDefaultCapabilityEdge | null; + clientMutationId?: string | null; +} +export type DeleteAppCapabilityDefaultCapabilityPayloadSelect = { + appCapabilityDefaultCapability?: { + select: AppCapabilityDefaultCapabilitySelect; + }; + appCapabilityDefaultCapabilityEdge?: { + select: AppCapabilityDefaultCapabilityEdgeSelect; + }; + clientMutationId?: boolean; +}; +export interface CreateAppCapabilityDefaultGrantPayload { + /** The `AppCapabilityDefaultGrant` that was created by this mutation. */ + appCapabilityDefaultGrant?: AppCapabilityDefaultGrant | null; + appCapabilityDefaultGrantEdge?: AppCapabilityDefaultGrantEdge | null; + clientMutationId?: string | null; +} +export type CreateAppCapabilityDefaultGrantPayloadSelect = { + appCapabilityDefaultGrant?: { + select: AppCapabilityDefaultGrantSelect; + }; + appCapabilityDefaultGrantEdge?: { + select: AppCapabilityDefaultGrantEdgeSelect; + }; + clientMutationId?: boolean; +}; +export interface UpdateAppCapabilityDefaultGrantPayload { + /** The `AppCapabilityDefaultGrant` that was updated by this mutation. */ + appCapabilityDefaultGrant?: AppCapabilityDefaultGrant | null; + appCapabilityDefaultGrantEdge?: AppCapabilityDefaultGrantEdge | null; + clientMutationId?: string | null; +} +export type UpdateAppCapabilityDefaultGrantPayloadSelect = { + appCapabilityDefaultGrant?: { + select: AppCapabilityDefaultGrantSelect; + }; + appCapabilityDefaultGrantEdge?: { + select: AppCapabilityDefaultGrantEdgeSelect; + }; + clientMutationId?: boolean; +}; +export interface DeleteAppCapabilityDefaultGrantPayload { + /** The `AppCapabilityDefaultGrant` that was deleted by this mutation. */ + appCapabilityDefaultGrant?: AppCapabilityDefaultGrant | null; + appCapabilityDefaultGrantEdge?: AppCapabilityDefaultGrantEdge | null; clientMutationId?: string | null; } -export type DeleteAppAdminGrantPayloadSelect = { - appAdminGrant?: { - select: AppAdminGrantSelect; +export type DeleteAppCapabilityDefaultGrantPayloadSelect = { + appCapabilityDefaultGrant?: { + select: AppCapabilityDefaultGrantSelect; }; - appAdminGrantEdge?: { - select: AppAdminGrantEdgeSelect; + appCapabilityDefaultGrantEdge?: { + select: AppCapabilityDefaultGrantEdgeSelect; }; clientMutationId?: boolean; }; @@ -4540,186 +3839,6 @@ export type DeleteAppOwnerGrantPayloadSelect = { }; clientMutationId?: boolean; }; -export interface CreateAppPermissionPayload { - /** The `AppPermission` that was created by this mutation. */ - appPermission?: AppPermission | null; - appPermissionEdge?: AppPermissionEdge | null; - clientMutationId?: string | null; -} -export type CreateAppPermissionPayloadSelect = { - appPermission?: { - select: AppPermissionSelect; - }; - appPermissionEdge?: { - select: AppPermissionEdgeSelect; - }; - clientMutationId?: boolean; -}; -export interface UpdateAppPermissionPayload { - /** The `AppPermission` that was updated by this mutation. */ - appPermission?: AppPermission | null; - appPermissionEdge?: AppPermissionEdge | null; - clientMutationId?: string | null; -} -export type UpdateAppPermissionPayloadSelect = { - appPermission?: { - select: AppPermissionSelect; - }; - appPermissionEdge?: { - select: AppPermissionEdgeSelect; - }; - clientMutationId?: boolean; -}; -export interface DeleteAppPermissionPayload { - /** The `AppPermission` that was deleted by this mutation. */ - appPermission?: AppPermission | null; - appPermissionEdge?: AppPermissionEdge | null; - clientMutationId?: string | null; -} -export type DeleteAppPermissionPayloadSelect = { - appPermission?: { - select: AppPermissionSelect; - }; - appPermissionEdge?: { - select: AppPermissionEdgeSelect; - }; - clientMutationId?: boolean; -}; -export interface CreateAppPermissionDefaultPayload { - /** The `AppPermissionDefault` that was created by this mutation. */ - appPermissionDefault?: AppPermissionDefault | null; - appPermissionDefaultEdge?: AppPermissionDefaultEdge | null; - clientMutationId?: string | null; -} -export type CreateAppPermissionDefaultPayloadSelect = { - appPermissionDefault?: { - select: AppPermissionDefaultSelect; - }; - appPermissionDefaultEdge?: { - select: AppPermissionDefaultEdgeSelect; - }; - clientMutationId?: boolean; -}; -export interface UpdateAppPermissionDefaultPayload { - /** The `AppPermissionDefault` that was updated by this mutation. */ - appPermissionDefault?: AppPermissionDefault | null; - appPermissionDefaultEdge?: AppPermissionDefaultEdge | null; - clientMutationId?: string | null; -} -export type UpdateAppPermissionDefaultPayloadSelect = { - appPermissionDefault?: { - select: AppPermissionDefaultSelect; - }; - appPermissionDefaultEdge?: { - select: AppPermissionDefaultEdgeSelect; - }; - clientMutationId?: boolean; -}; -export interface DeleteAppPermissionDefaultPayload { - /** The `AppPermissionDefault` that was deleted by this mutation. */ - appPermissionDefault?: AppPermissionDefault | null; - appPermissionDefaultEdge?: AppPermissionDefaultEdge | null; - clientMutationId?: string | null; -} -export type DeleteAppPermissionDefaultPayloadSelect = { - appPermissionDefault?: { - select: AppPermissionDefaultSelect; - }; - appPermissionDefaultEdge?: { - select: AppPermissionDefaultEdgeSelect; - }; - clientMutationId?: boolean; -}; -export interface CreateAppPermissionDefaultGrantPayload { - /** The `AppPermissionDefaultGrant` that was created by this mutation. */ - appPermissionDefaultGrant?: AppPermissionDefaultGrant | null; - appPermissionDefaultGrantEdge?: AppPermissionDefaultGrantEdge | null; - clientMutationId?: string | null; -} -export type CreateAppPermissionDefaultGrantPayloadSelect = { - appPermissionDefaultGrant?: { - select: AppPermissionDefaultGrantSelect; - }; - appPermissionDefaultGrantEdge?: { - select: AppPermissionDefaultGrantEdgeSelect; - }; - clientMutationId?: boolean; -}; -export interface UpdateAppPermissionDefaultGrantPayload { - /** The `AppPermissionDefaultGrant` that was updated by this mutation. */ - appPermissionDefaultGrant?: AppPermissionDefaultGrant | null; - appPermissionDefaultGrantEdge?: AppPermissionDefaultGrantEdge | null; - clientMutationId?: string | null; -} -export type UpdateAppPermissionDefaultGrantPayloadSelect = { - appPermissionDefaultGrant?: { - select: AppPermissionDefaultGrantSelect; - }; - appPermissionDefaultGrantEdge?: { - select: AppPermissionDefaultGrantEdgeSelect; - }; - clientMutationId?: boolean; -}; -export interface DeleteAppPermissionDefaultGrantPayload { - /** The `AppPermissionDefaultGrant` that was deleted by this mutation. */ - appPermissionDefaultGrant?: AppPermissionDefaultGrant | null; - appPermissionDefaultGrantEdge?: AppPermissionDefaultGrantEdge | null; - clientMutationId?: string | null; -} -export type DeleteAppPermissionDefaultGrantPayloadSelect = { - appPermissionDefaultGrant?: { - select: AppPermissionDefaultGrantSelect; - }; - appPermissionDefaultGrantEdge?: { - select: AppPermissionDefaultGrantEdgeSelect; - }; - clientMutationId?: boolean; -}; -export interface CreateAppPermissionDefaultPermissionPayload { - /** The `AppPermissionDefaultPermission` that was created by this mutation. */ - appPermissionDefaultPermission?: AppPermissionDefaultPermission | null; - appPermissionDefaultPermissionEdge?: AppPermissionDefaultPermissionEdge | null; - clientMutationId?: string | null; -} -export type CreateAppPermissionDefaultPermissionPayloadSelect = { - appPermissionDefaultPermission?: { - select: AppPermissionDefaultPermissionSelect; - }; - appPermissionDefaultPermissionEdge?: { - select: AppPermissionDefaultPermissionEdgeSelect; - }; - clientMutationId?: boolean; -}; -export interface UpdateAppPermissionDefaultPermissionPayload { - /** The `AppPermissionDefaultPermission` that was updated by this mutation. */ - appPermissionDefaultPermission?: AppPermissionDefaultPermission | null; - appPermissionDefaultPermissionEdge?: AppPermissionDefaultPermissionEdge | null; - clientMutationId?: string | null; -} -export type UpdateAppPermissionDefaultPermissionPayloadSelect = { - appPermissionDefaultPermission?: { - select: AppPermissionDefaultPermissionSelect; - }; - appPermissionDefaultPermissionEdge?: { - select: AppPermissionDefaultPermissionEdgeSelect; - }; - clientMutationId?: boolean; -}; -export interface DeleteAppPermissionDefaultPermissionPayload { - /** The `AppPermissionDefaultPermission` that was deleted by this mutation. */ - appPermissionDefaultPermission?: AppPermissionDefaultPermission | null; - appPermissionDefaultPermissionEdge?: AppPermissionDefaultPermissionEdge | null; - clientMutationId?: string | null; -} -export type DeleteAppPermissionDefaultPermissionPayloadSelect = { - appPermissionDefaultPermission?: { - select: AppPermissionDefaultPermissionSelect; - }; - appPermissionDefaultPermissionEdge?: { - select: AppPermissionDefaultPermissionEdgeSelect; - }; - clientMutationId?: boolean; -}; export interface CreateMembershipTypePayload { clientMutationId?: string | null; /** The `MembershipType` that was created by this mutation. */ @@ -4810,6 +3929,96 @@ export type DeleteOrgAdminGrantPayloadSelect = { select: OrgAdminGrantEdgeSelect; }; }; +export interface CreateOrgCapabilityDefaultCapabilityPayload { + clientMutationId?: string | null; + /** The `OrgCapabilityDefaultCapability` that was created by this mutation. */ + orgCapabilityDefaultCapability?: OrgCapabilityDefaultCapability | null; + orgCapabilityDefaultCapabilityEdge?: OrgCapabilityDefaultCapabilityEdge | null; +} +export type CreateOrgCapabilityDefaultCapabilityPayloadSelect = { + clientMutationId?: boolean; + orgCapabilityDefaultCapability?: { + select: OrgCapabilityDefaultCapabilitySelect; + }; + orgCapabilityDefaultCapabilityEdge?: { + select: OrgCapabilityDefaultCapabilityEdgeSelect; + }; +}; +export interface UpdateOrgCapabilityDefaultCapabilityPayload { + clientMutationId?: string | null; + /** The `OrgCapabilityDefaultCapability` that was updated by this mutation. */ + orgCapabilityDefaultCapability?: OrgCapabilityDefaultCapability | null; + orgCapabilityDefaultCapabilityEdge?: OrgCapabilityDefaultCapabilityEdge | null; +} +export type UpdateOrgCapabilityDefaultCapabilityPayloadSelect = { + clientMutationId?: boolean; + orgCapabilityDefaultCapability?: { + select: OrgCapabilityDefaultCapabilitySelect; + }; + orgCapabilityDefaultCapabilityEdge?: { + select: OrgCapabilityDefaultCapabilityEdgeSelect; + }; +}; +export interface DeleteOrgCapabilityDefaultCapabilityPayload { + clientMutationId?: string | null; + /** The `OrgCapabilityDefaultCapability` that was deleted by this mutation. */ + orgCapabilityDefaultCapability?: OrgCapabilityDefaultCapability | null; + orgCapabilityDefaultCapabilityEdge?: OrgCapabilityDefaultCapabilityEdge | null; +} +export type DeleteOrgCapabilityDefaultCapabilityPayloadSelect = { + clientMutationId?: boolean; + orgCapabilityDefaultCapability?: { + select: OrgCapabilityDefaultCapabilitySelect; + }; + orgCapabilityDefaultCapabilityEdge?: { + select: OrgCapabilityDefaultCapabilityEdgeSelect; + }; +}; +export interface CreateOrgCapabilityDefaultGrantPayload { + clientMutationId?: string | null; + /** The `OrgCapabilityDefaultGrant` that was created by this mutation. */ + orgCapabilityDefaultGrant?: OrgCapabilityDefaultGrant | null; + orgCapabilityDefaultGrantEdge?: OrgCapabilityDefaultGrantEdge | null; +} +export type CreateOrgCapabilityDefaultGrantPayloadSelect = { + clientMutationId?: boolean; + orgCapabilityDefaultGrant?: { + select: OrgCapabilityDefaultGrantSelect; + }; + orgCapabilityDefaultGrantEdge?: { + select: OrgCapabilityDefaultGrantEdgeSelect; + }; +}; +export interface UpdateOrgCapabilityDefaultGrantPayload { + clientMutationId?: string | null; + /** The `OrgCapabilityDefaultGrant` that was updated by this mutation. */ + orgCapabilityDefaultGrant?: OrgCapabilityDefaultGrant | null; + orgCapabilityDefaultGrantEdge?: OrgCapabilityDefaultGrantEdge | null; +} +export type UpdateOrgCapabilityDefaultGrantPayloadSelect = { + clientMutationId?: boolean; + orgCapabilityDefaultGrant?: { + select: OrgCapabilityDefaultGrantSelect; + }; + orgCapabilityDefaultGrantEdge?: { + select: OrgCapabilityDefaultGrantEdgeSelect; + }; +}; +export interface DeleteOrgCapabilityDefaultGrantPayload { + clientMutationId?: string | null; + /** The `OrgCapabilityDefaultGrant` that was deleted by this mutation. */ + orgCapabilityDefaultGrant?: OrgCapabilityDefaultGrant | null; + orgCapabilityDefaultGrantEdge?: OrgCapabilityDefaultGrantEdge | null; +} +export type DeleteOrgCapabilityDefaultGrantPayloadSelect = { + clientMutationId?: boolean; + orgCapabilityDefaultGrant?: { + select: OrgCapabilityDefaultGrantSelect; + }; + orgCapabilityDefaultGrantEdge?: { + select: OrgCapabilityDefaultGrantEdgeSelect; + }; +}; export interface CreateOrgChartEdgePayload { clientMutationId?: string | null; /** The `OrgChartEdge` that was created by this mutation. */ @@ -5305,237 +4514,40 @@ export type DeleteOrgOwnerGrantPayloadSelect = { select: OrgOwnerGrantEdgeSelect; }; }; -export interface CreateOrgPermissionPayload { - clientMutationId?: string | null; - /** The `OrgPermission` that was created by this mutation. */ - orgPermission?: OrgPermission | null; - orgPermissionEdge?: OrgPermissionEdge | null; -} -export type CreateOrgPermissionPayloadSelect = { - clientMutationId?: boolean; - orgPermission?: { - select: OrgPermissionSelect; - }; - orgPermissionEdge?: { - select: OrgPermissionEdgeSelect; - }; -}; -export interface UpdateOrgPermissionPayload { - clientMutationId?: string | null; - /** The `OrgPermission` that was updated by this mutation. */ - orgPermission?: OrgPermission | null; - orgPermissionEdge?: OrgPermissionEdge | null; -} -export type UpdateOrgPermissionPayloadSelect = { - clientMutationId?: boolean; - orgPermission?: { - select: OrgPermissionSelect; - }; - orgPermissionEdge?: { - select: OrgPermissionEdgeSelect; - }; -}; -export interface DeleteOrgPermissionPayload { - clientMutationId?: string | null; - /** The `OrgPermission` that was deleted by this mutation. */ - orgPermission?: OrgPermission | null; - orgPermissionEdge?: OrgPermissionEdge | null; -} -export type DeleteOrgPermissionPayloadSelect = { - clientMutationId?: boolean; - orgPermission?: { - select: OrgPermissionSelect; - }; - orgPermissionEdge?: { - select: OrgPermissionEdgeSelect; - }; -}; -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 CreateOrgPermissionDefaultGrantPayload { - clientMutationId?: string | null; - /** The `OrgPermissionDefaultGrant` that was created by this mutation. */ - orgPermissionDefaultGrant?: OrgPermissionDefaultGrant | null; - orgPermissionDefaultGrantEdge?: OrgPermissionDefaultGrantEdge | null; -} -export type CreateOrgPermissionDefaultGrantPayloadSelect = { - clientMutationId?: boolean; - orgPermissionDefaultGrant?: { - select: OrgPermissionDefaultGrantSelect; - }; - orgPermissionDefaultGrantEdge?: { - select: OrgPermissionDefaultGrantEdgeSelect; - }; -}; -export interface UpdateOrgPermissionDefaultGrantPayload { - clientMutationId?: string | null; - /** The `OrgPermissionDefaultGrant` that was updated by this mutation. */ - orgPermissionDefaultGrant?: OrgPermissionDefaultGrant | null; - orgPermissionDefaultGrantEdge?: OrgPermissionDefaultGrantEdge | null; -} -export type UpdateOrgPermissionDefaultGrantPayloadSelect = { - clientMutationId?: boolean; - orgPermissionDefaultGrant?: { - select: OrgPermissionDefaultGrantSelect; - }; - orgPermissionDefaultGrantEdge?: { - select: OrgPermissionDefaultGrantEdgeSelect; - }; -}; -export interface DeleteOrgPermissionDefaultGrantPayload { - clientMutationId?: string | null; - /** The `OrgPermissionDefaultGrant` that was deleted by this mutation. */ - orgPermissionDefaultGrant?: OrgPermissionDefaultGrant | null; - orgPermissionDefaultGrantEdge?: OrgPermissionDefaultGrantEdge | null; -} -export type DeleteOrgPermissionDefaultGrantPayloadSelect = { - clientMutationId?: boolean; - orgPermissionDefaultGrant?: { - select: OrgPermissionDefaultGrantSelect; - }; - orgPermissionDefaultGrantEdge?: { - select: OrgPermissionDefaultGrantEdgeSelect; - }; -}; -export interface CreateOrgPermissionDefaultPermissionPayload { - clientMutationId?: string | null; - /** The `OrgPermissionDefaultPermission` that was created by this mutation. */ - orgPermissionDefaultPermission?: OrgPermissionDefaultPermission | null; - orgPermissionDefaultPermissionEdge?: OrgPermissionDefaultPermissionEdge | null; -} -export type CreateOrgPermissionDefaultPermissionPayloadSelect = { - clientMutationId?: boolean; - orgPermissionDefaultPermission?: { - select: OrgPermissionDefaultPermissionSelect; - }; - orgPermissionDefaultPermissionEdge?: { - select: OrgPermissionDefaultPermissionEdgeSelect; - }; -}; -export interface UpdateOrgPermissionDefaultPermissionPayload { - clientMutationId?: string | null; - /** The `OrgPermissionDefaultPermission` that was updated by this mutation. */ - orgPermissionDefaultPermission?: OrgPermissionDefaultPermission | null; - orgPermissionDefaultPermissionEdge?: OrgPermissionDefaultPermissionEdge | null; -} -export type UpdateOrgPermissionDefaultPermissionPayloadSelect = { - clientMutationId?: boolean; - orgPermissionDefaultPermission?: { - select: OrgPermissionDefaultPermissionSelect; - }; - orgPermissionDefaultPermissionEdge?: { - select: OrgPermissionDefaultPermissionEdgeSelect; - }; -}; -export interface DeleteOrgPermissionDefaultPermissionPayload { - clientMutationId?: string | null; - /** The `OrgPermissionDefaultPermission` that was deleted by this mutation. */ - orgPermissionDefaultPermission?: OrgPermissionDefaultPermission | null; - orgPermissionDefaultPermissionEdge?: OrgPermissionDefaultPermissionEdge | null; -} -export type DeleteOrgPermissionDefaultPermissionPayloadSelect = { - clientMutationId?: boolean; - orgPermissionDefaultPermission?: { - select: OrgPermissionDefaultPermissionSelect; - }; - orgPermissionDefaultPermissionEdge?: { - select: OrgPermissionDefaultPermissionEdgeSelect; - }; -}; -/** A `AppPermission` edge in the connection. */ -export interface AppPermissionEdge { +/** A `AppAdminGrant` edge in the connection. */ +export interface AppAdminGrantEdge { cursor?: string | null; - /** The `AppPermission` at the end of the edge. */ - node?: AppPermission | null; + /** The `AppAdminGrant` at the end of the edge. */ + node?: AppAdminGrant | null; } -export type AppPermissionEdgeSelect = { +export type AppAdminGrantEdgeSelect = { cursor?: boolean; node?: { - select: AppPermissionSelect; + select: AppAdminGrantSelect; }; }; -/** Information about pagination in a connection. */ -export interface PageInfo { - /** When paginating forwards, the cursor to continue. */ - endCursor?: string | null; - /** When paginating forwards, are there more items? */ - hasNextPage: boolean; - /** When paginating backwards, are there more items? */ - hasPreviousPage: boolean; - /** When paginating backwards, the cursor to continue. */ - startCursor?: string | null; -} -export type PageInfoSelect = { - endCursor?: boolean; - hasNextPage?: boolean; - hasPreviousPage?: boolean; - startCursor?: boolean; -}; -/** A `OrgPermission` edge in the connection. */ -export interface OrgPermissionEdge { +/** A `AppCapabilityDefaultCapability` edge in the connection. */ +export interface AppCapabilityDefaultCapabilityEdge { cursor?: string | null; - /** The `OrgPermission` at the end of the edge. */ - node?: OrgPermission | null; + /** The `AppCapabilityDefaultCapability` at the end of the edge. */ + node?: AppCapabilityDefaultCapability | null; } -export type OrgPermissionEdgeSelect = { +export type AppCapabilityDefaultCapabilityEdgeSelect = { cursor?: boolean; node?: { - select: OrgPermissionSelect; + select: AppCapabilityDefaultCapabilitySelect; }; }; -/** A `AppAdminGrant` edge in the connection. */ -export interface AppAdminGrantEdge { +/** A `AppCapabilityDefaultGrant` edge in the connection. */ +export interface AppCapabilityDefaultGrantEdge { cursor?: string | null; - /** The `AppAdminGrant` at the end of the edge. */ - node?: AppAdminGrant | null; + /** The `AppCapabilityDefaultGrant` at the end of the edge. */ + node?: AppCapabilityDefaultGrant | null; } -export type AppAdminGrantEdgeSelect = { +export type AppCapabilityDefaultGrantEdgeSelect = { cursor?: boolean; node?: { - select: AppAdminGrantSelect; + select: AppCapabilityDefaultGrantSelect; }; }; /** A `AppClaimedInvite` edge in the connection. */ @@ -5610,42 +4622,6 @@ export type AppOwnerGrantEdgeSelect = { select: AppOwnerGrantSelect; }; }; -/** A `AppPermissionDefault` edge in the connection. */ -export interface AppPermissionDefaultEdge { - cursor?: string | null; - /** The `AppPermissionDefault` at the end of the edge. */ - node?: AppPermissionDefault | null; -} -export type AppPermissionDefaultEdgeSelect = { - cursor?: boolean; - node?: { - select: AppPermissionDefaultSelect; - }; -}; -/** A `AppPermissionDefaultGrant` edge in the connection. */ -export interface AppPermissionDefaultGrantEdge { - cursor?: string | null; - /** The `AppPermissionDefaultGrant` at the end of the edge. */ - node?: AppPermissionDefaultGrant | null; -} -export type AppPermissionDefaultGrantEdgeSelect = { - cursor?: boolean; - node?: { - select: AppPermissionDefaultGrantSelect; - }; -}; -/** A `AppPermissionDefaultPermission` edge in the connection. */ -export interface AppPermissionDefaultPermissionEdge { - cursor?: string | null; - /** The `AppPermissionDefaultPermission` at the end of the edge. */ - node?: AppPermissionDefaultPermission | null; -} -export type AppPermissionDefaultPermissionEdgeSelect = { - cursor?: boolean; - node?: { - select: AppPermissionDefaultPermissionSelect; - }; -}; /** A `MembershipType` edge in the connection. */ export interface MembershipTypeEdge { cursor?: string | null; @@ -5670,6 +4646,30 @@ export type OrgAdminGrantEdgeSelect = { select: OrgAdminGrantSelect; }; }; +/** A `OrgCapabilityDefaultCapability` edge in the connection. */ +export interface OrgCapabilityDefaultCapabilityEdge { + cursor?: string | null; + /** The `OrgCapabilityDefaultCapability` at the end of the edge. */ + node?: OrgCapabilityDefaultCapability | null; +} +export type OrgCapabilityDefaultCapabilityEdgeSelect = { + cursor?: boolean; + node?: { + select: OrgCapabilityDefaultCapabilitySelect; + }; +}; +/** A `OrgCapabilityDefaultGrant` edge in the connection. */ +export interface OrgCapabilityDefaultGrantEdge { + cursor?: string | null; + /** The `OrgCapabilityDefaultGrant` at the end of the edge. */ + node?: OrgCapabilityDefaultGrant | null; +} +export type OrgCapabilityDefaultGrantEdgeSelect = { + cursor?: boolean; + node?: { + select: OrgCapabilityDefaultGrantSelect; + }; +}; /** A `OrgChartEdge` edge in the connection. */ export interface OrgChartEdgeEdge { cursor?: string | null; @@ -5802,39 +4802,3 @@ export type OrgOwnerGrantEdgeSelect = { select: OrgOwnerGrantSelect; }; }; -/** A `OrgPermissionDefault` edge in the connection. */ -export interface OrgPermissionDefaultEdge { - cursor?: string | null; - /** The `OrgPermissionDefault` at the end of the edge. */ - node?: OrgPermissionDefault | null; -} -export type OrgPermissionDefaultEdgeSelect = { - cursor?: boolean; - node?: { - select: OrgPermissionDefaultSelect; - }; -}; -/** A `OrgPermissionDefaultGrant` edge in the connection. */ -export interface OrgPermissionDefaultGrantEdge { - cursor?: string | null; - /** The `OrgPermissionDefaultGrant` at the end of the edge. */ - node?: OrgPermissionDefaultGrant | null; -} -export type OrgPermissionDefaultGrantEdgeSelect = { - cursor?: boolean; - node?: { - select: OrgPermissionDefaultGrantSelect; - }; -}; -/** A `OrgPermissionDefaultPermission` edge in the connection. */ -export interface OrgPermissionDefaultPermissionEdge { - cursor?: string | null; - /** The `OrgPermissionDefaultPermission` at the end of the edge. */ - node?: OrgPermissionDefaultPermission | null; -} -export type OrgPermissionDefaultPermissionEdgeSelect = { - cursor?: boolean; - node?: { - select: OrgPermissionDefaultPermissionSelect; - }; -}; diff --git a/sdk/constructive-sdk/src/admin/orm/models/appCapabilityDefaultCapability.ts b/sdk/constructive-sdk/src/admin/orm/models/appCapabilityDefaultCapability.ts new file mode 100644 index 0000000000..2f90833f58 --- /dev/null +++ b/sdk/constructive-sdk/src/admin/orm/models/appCapabilityDefaultCapability.ts @@ -0,0 +1,273 @@ +/** + * AppCapabilityDefaultCapability 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 { + AppCapabilityDefaultCapability, + AppCapabilityDefaultCapabilityWithRelations, + AppCapabilityDefaultCapabilitySelect, + AppCapabilityDefaultCapabilityFilter, + AppCapabilityDefaultCapabilityOrderBy, + CreateAppCapabilityDefaultCapabilityInput, + UpdateAppCapabilityDefaultCapabilityInput, + AppCapabilityDefaultCapabilityPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class AppCapabilityDefaultCapabilityModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs< + S, + AppCapabilityDefaultCapabilityFilter, + AppCapabilityDefaultCapabilityOrderBy + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + appCapabilityDefaultCapabilities: ConnectionResult< + InferSelectResult + >; + }> { + const { document, variables } = buildFindManyDocument( + 'AppCapabilityDefaultCapability', + 'appCapabilityDefaultCapabilities', + 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, + }, + 'AppCapabilityDefaultCapabilityFilter', + 'AppCapabilityDefaultCapabilityOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'AppCapabilityDefaultCapability', + fieldName: 'appCapabilityDefaultCapabilities', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs< + S, + AppCapabilityDefaultCapabilityFilter, + AppCapabilityDefaultCapabilityOrderBy + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + appCapabilityDefaultCapability: InferSelectResult< + AppCapabilityDefaultCapabilityWithRelations, + S + > | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'AppCapabilityDefaultCapability', + 'appCapabilityDefaultCapabilities', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'AppCapabilityDefaultCapabilityFilter', + 'AppCapabilityDefaultCapabilityOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'AppCapabilityDefaultCapability', + fieldName: 'appCapabilityDefaultCapability', + document, + variables, + transform: (data: { + appCapabilityDefaultCapabilities?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + appCapabilityDefaultCapability: data.appCapabilityDefaultCapabilities?.nodes?.[0] ?? null, + }), + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + appCapabilityDefaultCapability: InferSelectResult< + AppCapabilityDefaultCapabilityWithRelations, + S + > | null; + }> { + const { document, variables } = buildFindManyDocument( + 'AppCapabilityDefaultCapability', + 'appCapabilityDefaultCapabilities', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'AppCapabilityDefaultCapabilityFilter', + 'AppCapabilityDefaultCapabilityOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'AppCapabilityDefaultCapability', + fieldName: 'appCapabilityDefaultCapability', + document, + variables, + transform: (data: { + appCapabilityDefaultCapabilities?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + appCapabilityDefaultCapability: data.appCapabilityDefaultCapabilities?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs< + S, + CreateAppCapabilityDefaultCapabilityInput['appCapabilityDefaultCapability'] + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createAppCapabilityDefaultCapability: { + appCapabilityDefaultCapability: InferSelectResult< + AppCapabilityDefaultCapabilityWithRelations, + S + >; + }; + }> { + const { document, variables } = buildCreateDocument( + 'AppCapabilityDefaultCapability', + 'createAppCapabilityDefaultCapability', + 'appCapabilityDefaultCapability', + args.select, + args.data, + 'CreateAppCapabilityDefaultCapabilityInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'AppCapabilityDefaultCapability', + fieldName: 'createAppCapabilityDefaultCapability', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + AppCapabilityDefaultCapabilityPatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateAppCapabilityDefaultCapability: { + appCapabilityDefaultCapability: InferSelectResult< + AppCapabilityDefaultCapabilityWithRelations, + S + >; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'AppCapabilityDefaultCapability', + 'updateAppCapabilityDefaultCapability', + 'appCapabilityDefaultCapability', + args.select, + args.where.id, + args.data, + 'UpdateAppCapabilityDefaultCapabilityInput', + 'id', + 'appCapabilityDefaultCapabilityPatch', + connectionFieldsMap, + undefined + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'AppCapabilityDefaultCapability', + fieldName: 'updateAppCapabilityDefaultCapability', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteAppCapabilityDefaultCapability: { + appCapabilityDefaultCapability: InferSelectResult< + AppCapabilityDefaultCapabilityWithRelations, + S + >; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'AppCapabilityDefaultCapability', + 'deleteAppCapabilityDefaultCapability', + 'appCapabilityDefaultCapability', + { + id: args.where.id, + }, + 'DeleteAppCapabilityDefaultCapabilityInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'AppCapabilityDefaultCapability', + fieldName: 'deleteAppCapabilityDefaultCapability', + document, + variables, + }); + } +} diff --git a/sdk/constructive-sdk/src/admin/orm/models/appCapabilityDefaultGrant.ts b/sdk/constructive-sdk/src/admin/orm/models/appCapabilityDefaultGrant.ts new file mode 100644 index 0000000000..174d579999 --- /dev/null +++ b/sdk/constructive-sdk/src/admin/orm/models/appCapabilityDefaultGrant.ts @@ -0,0 +1,247 @@ +/** + * AppCapabilityDefaultGrant 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 { + AppCapabilityDefaultGrant, + AppCapabilityDefaultGrantWithRelations, + AppCapabilityDefaultGrantSelect, + AppCapabilityDefaultGrantFilter, + AppCapabilityDefaultGrantOrderBy, + CreateAppCapabilityDefaultGrantInput, + UpdateAppCapabilityDefaultGrantInput, + AppCapabilityDefaultGrantPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class AppCapabilityDefaultGrantModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + appCapabilityDefaultGrants: ConnectionResult< + InferSelectResult + >; + }> { + const { document, variables } = buildFindManyDocument( + 'AppCapabilityDefaultGrant', + 'appCapabilityDefaultGrants', + 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, + }, + 'AppCapabilityDefaultGrantFilter', + 'AppCapabilityDefaultGrantOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'AppCapabilityDefaultGrant', + fieldName: 'appCapabilityDefaultGrants', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + appCapabilityDefaultGrant: InferSelectResult | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'AppCapabilityDefaultGrant', + 'appCapabilityDefaultGrants', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'AppCapabilityDefaultGrantFilter', + 'AppCapabilityDefaultGrantOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'AppCapabilityDefaultGrant', + fieldName: 'appCapabilityDefaultGrant', + document, + variables, + transform: (data: { + appCapabilityDefaultGrants?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + appCapabilityDefaultGrant: data.appCapabilityDefaultGrants?.nodes?.[0] ?? null, + }), + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + appCapabilityDefaultGrant: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'AppCapabilityDefaultGrant', + 'appCapabilityDefaultGrants', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'AppCapabilityDefaultGrantFilter', + 'AppCapabilityDefaultGrantOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'AppCapabilityDefaultGrant', + fieldName: 'appCapabilityDefaultGrant', + document, + variables, + transform: (data: { + appCapabilityDefaultGrants?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + appCapabilityDefaultGrant: data.appCapabilityDefaultGrants?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createAppCapabilityDefaultGrant: { + appCapabilityDefaultGrant: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'AppCapabilityDefaultGrant', + 'createAppCapabilityDefaultGrant', + 'appCapabilityDefaultGrant', + args.select, + args.data, + 'CreateAppCapabilityDefaultGrantInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'AppCapabilityDefaultGrant', + fieldName: 'createAppCapabilityDefaultGrant', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + AppCapabilityDefaultGrantPatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateAppCapabilityDefaultGrant: { + appCapabilityDefaultGrant: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'AppCapabilityDefaultGrant', + 'updateAppCapabilityDefaultGrant', + 'appCapabilityDefaultGrant', + args.select, + args.where.id, + args.data, + 'UpdateAppCapabilityDefaultGrantInput', + 'id', + 'appCapabilityDefaultGrantPatch', + connectionFieldsMap, + undefined + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'AppCapabilityDefaultGrant', + fieldName: 'updateAppCapabilityDefaultGrant', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteAppCapabilityDefaultGrant: { + appCapabilityDefaultGrant: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'AppCapabilityDefaultGrant', + 'deleteAppCapabilityDefaultGrant', + 'appCapabilityDefaultGrant', + { + id: args.where.id, + }, + 'DeleteAppCapabilityDefaultGrantInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'AppCapabilityDefaultGrant', + fieldName: 'deleteAppCapabilityDefaultGrant', + document, + variables, + }); + } +} diff --git a/sdk/constructive-sdk/src/admin/orm/models/appPermission.ts b/sdk/constructive-sdk/src/admin/orm/models/appPermission.ts deleted file mode 100644 index efa4812398..0000000000 --- a/sdk/constructive-sdk/src/admin/orm/models/appPermission.ts +++ /dev/null @@ -1,245 +0,0 @@ -/** - * AppPermission 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 { - AppPermission, - AppPermissionWithRelations, - AppPermissionSelect, - AppPermissionFilter, - AppPermissionOrderBy, - CreateAppPermissionInput, - UpdateAppPermissionInput, - AppPermissionPatch, -} from '../input-types'; -import { connectionFieldsMap } from '../input-types'; -export class AppPermissionModel { - constructor(private client: OrmClient) {} - findMany( - args: FindManyArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - appPermissions: ConnectionResult>; - }> { - const { document, variables } = buildFindManyDocument( - 'AppPermission', - 'appPermissions', - 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, - }, - 'AppPermissionFilter', - 'AppPermissionOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'AppPermission', - fieldName: 'appPermissions', - document, - variables, - }); - } - findFirst( - args: FindFirstArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - appPermission: InferSelectResult | null; - }> { - const { document, variables } = buildFindFirstDocument( - 'AppPermission', - 'appPermissions', - args.select, - { - where: args?.where, - orderBy: args?.orderBy as string[] | undefined, - }, - 'AppPermissionFilter', - 'AppPermissionOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'AppPermission', - fieldName: 'appPermission', - document, - variables, - transform: (data: { - appPermissions?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - appPermission: data.appPermissions?.nodes?.[0] ?? null, - }), - }); - } - findOne( - args: { - id: string; - select: S; - } & StrictSelect - ): QueryBuilder<{ - appPermission: InferSelectResult | null; - }> { - const { document, variables } = buildFindManyDocument( - 'AppPermission', - 'appPermissions', - args.select, - { - where: { - id: { - equalTo: args.id, - }, - }, - first: 1, - }, - 'AppPermissionFilter', - 'AppPermissionOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'AppPermission', - fieldName: 'appPermission', - document, - variables, - transform: (data: { - appPermissions?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - appPermission: data.appPermissions?.nodes?.[0] ?? null, - }), - }); - } - create( - args: CreateArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createAppPermission: { - appPermission: InferSelectResult; - }; - }> { - const { document, variables } = buildCreateDocument( - 'AppPermission', - 'createAppPermission', - 'appPermission', - args.select, - args.data, - 'CreateAppPermissionInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'AppPermission', - fieldName: 'createAppPermission', - document, - variables, - }); - } - update( - args: UpdateArgs< - S, - { - id: string; - }, - AppPermissionPatch - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - updateAppPermission: { - appPermission: InferSelectResult; - }; - }> { - const { document, variables } = buildUpdateByPkDocument( - 'AppPermission', - 'updateAppPermission', - 'appPermission', - args.select, - args.where.id, - args.data, - 'UpdateAppPermissionInput', - 'id', - 'appPermissionPatch', - connectionFieldsMap, - undefined - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'AppPermission', - fieldName: 'updateAppPermission', - document, - variables, - }); - } - delete( - args: DeleteArgs< - { - id: string; - }, - S - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - deleteAppPermission: { - appPermission: InferSelectResult; - }; - }> { - const { document, variables } = buildDeleteByPkDocument( - 'AppPermission', - 'deleteAppPermission', - 'appPermission', - { - id: args.where.id, - }, - 'DeleteAppPermissionInput', - args.select, - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'AppPermission', - fieldName: 'deleteAppPermission', - document, - variables, - }); - } -} diff --git a/sdk/constructive-sdk/src/admin/orm/models/appPermissionDefault.ts b/sdk/constructive-sdk/src/admin/orm/models/appPermissionDefault.ts deleted file mode 100644 index c967364f31..0000000000 --- a/sdk/constructive-sdk/src/admin/orm/models/appPermissionDefault.ts +++ /dev/null @@ -1,247 +0,0 @@ -/** - * AppPermissionDefault 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 { - AppPermissionDefault, - AppPermissionDefaultWithRelations, - AppPermissionDefaultSelect, - AppPermissionDefaultFilter, - AppPermissionDefaultOrderBy, - CreateAppPermissionDefaultInput, - UpdateAppPermissionDefaultInput, - AppPermissionDefaultPatch, -} from '../input-types'; -import { connectionFieldsMap } from '../input-types'; -export class AppPermissionDefaultModel { - constructor(private client: OrmClient) {} - findMany( - args: FindManyArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - appPermissionDefaults: ConnectionResult< - InferSelectResult - >; - }> { - const { document, variables } = buildFindManyDocument( - 'AppPermissionDefault', - 'appPermissionDefaults', - 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, - }, - 'AppPermissionDefaultFilter', - 'AppPermissionDefaultOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'AppPermissionDefault', - fieldName: 'appPermissionDefaults', - document, - variables, - }); - } - findFirst( - args: FindFirstArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - appPermissionDefault: InferSelectResult | null; - }> { - const { document, variables } = buildFindFirstDocument( - 'AppPermissionDefault', - 'appPermissionDefaults', - args.select, - { - where: args?.where, - orderBy: args?.orderBy as string[] | undefined, - }, - 'AppPermissionDefaultFilter', - 'AppPermissionDefaultOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'AppPermissionDefault', - fieldName: 'appPermissionDefault', - document, - variables, - transform: (data: { - appPermissionDefaults?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - appPermissionDefault: data.appPermissionDefaults?.nodes?.[0] ?? null, - }), - }); - } - findOne( - args: { - id: string; - select: S; - } & StrictSelect - ): QueryBuilder<{ - appPermissionDefault: InferSelectResult | null; - }> { - const { document, variables } = buildFindManyDocument( - 'AppPermissionDefault', - 'appPermissionDefaults', - args.select, - { - where: { - id: { - equalTo: args.id, - }, - }, - first: 1, - }, - 'AppPermissionDefaultFilter', - 'AppPermissionDefaultOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'AppPermissionDefault', - fieldName: 'appPermissionDefault', - document, - variables, - transform: (data: { - appPermissionDefaults?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - appPermissionDefault: data.appPermissionDefaults?.nodes?.[0] ?? null, - }), - }); - } - create( - args: CreateArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createAppPermissionDefault: { - appPermissionDefault: InferSelectResult; - }; - }> { - const { document, variables } = buildCreateDocument( - 'AppPermissionDefault', - 'createAppPermissionDefault', - 'appPermissionDefault', - args.select, - args.data, - 'CreateAppPermissionDefaultInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'AppPermissionDefault', - fieldName: 'createAppPermissionDefault', - document, - variables, - }); - } - update( - args: UpdateArgs< - S, - { - id: string; - }, - AppPermissionDefaultPatch - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - updateAppPermissionDefault: { - appPermissionDefault: InferSelectResult; - }; - }> { - const { document, variables } = buildUpdateByPkDocument( - 'AppPermissionDefault', - 'updateAppPermissionDefault', - 'appPermissionDefault', - args.select, - args.where.id, - args.data, - 'UpdateAppPermissionDefaultInput', - 'id', - 'appPermissionDefaultPatch', - connectionFieldsMap, - undefined - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'AppPermissionDefault', - fieldName: 'updateAppPermissionDefault', - document, - variables, - }); - } - delete( - args: DeleteArgs< - { - id: string; - }, - S - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - deleteAppPermissionDefault: { - appPermissionDefault: InferSelectResult; - }; - }> { - const { document, variables } = buildDeleteByPkDocument( - 'AppPermissionDefault', - 'deleteAppPermissionDefault', - 'appPermissionDefault', - { - id: args.where.id, - }, - 'DeleteAppPermissionDefaultInput', - args.select, - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'AppPermissionDefault', - fieldName: 'deleteAppPermissionDefault', - document, - variables, - }); - } -} diff --git a/sdk/constructive-sdk/src/admin/orm/models/appPermissionDefaultGrant.ts b/sdk/constructive-sdk/src/admin/orm/models/appPermissionDefaultGrant.ts deleted file mode 100644 index b6a3b10748..0000000000 --- a/sdk/constructive-sdk/src/admin/orm/models/appPermissionDefaultGrant.ts +++ /dev/null @@ -1,247 +0,0 @@ -/** - * AppPermissionDefaultGrant 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 { - AppPermissionDefaultGrant, - AppPermissionDefaultGrantWithRelations, - AppPermissionDefaultGrantSelect, - AppPermissionDefaultGrantFilter, - AppPermissionDefaultGrantOrderBy, - CreateAppPermissionDefaultGrantInput, - UpdateAppPermissionDefaultGrantInput, - AppPermissionDefaultGrantPatch, -} from '../input-types'; -import { connectionFieldsMap } from '../input-types'; -export class AppPermissionDefaultGrantModel { - constructor(private client: OrmClient) {} - findMany( - args: FindManyArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - appPermissionDefaultGrants: ConnectionResult< - InferSelectResult - >; - }> { - const { document, variables } = buildFindManyDocument( - 'AppPermissionDefaultGrant', - 'appPermissionDefaultGrants', - 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, - }, - 'AppPermissionDefaultGrantFilter', - 'AppPermissionDefaultGrantOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'AppPermissionDefaultGrant', - fieldName: 'appPermissionDefaultGrants', - document, - variables, - }); - } - findFirst( - args: FindFirstArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - appPermissionDefaultGrant: InferSelectResult | null; - }> { - const { document, variables } = buildFindFirstDocument( - 'AppPermissionDefaultGrant', - 'appPermissionDefaultGrants', - args.select, - { - where: args?.where, - orderBy: args?.orderBy as string[] | undefined, - }, - 'AppPermissionDefaultGrantFilter', - 'AppPermissionDefaultGrantOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'AppPermissionDefaultGrant', - fieldName: 'appPermissionDefaultGrant', - document, - variables, - transform: (data: { - appPermissionDefaultGrants?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - appPermissionDefaultGrant: data.appPermissionDefaultGrants?.nodes?.[0] ?? null, - }), - }); - } - findOne( - args: { - id: string; - select: S; - } & StrictSelect - ): QueryBuilder<{ - appPermissionDefaultGrant: InferSelectResult | null; - }> { - const { document, variables } = buildFindManyDocument( - 'AppPermissionDefaultGrant', - 'appPermissionDefaultGrants', - args.select, - { - where: { - id: { - equalTo: args.id, - }, - }, - first: 1, - }, - 'AppPermissionDefaultGrantFilter', - 'AppPermissionDefaultGrantOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'AppPermissionDefaultGrant', - fieldName: 'appPermissionDefaultGrant', - document, - variables, - transform: (data: { - appPermissionDefaultGrants?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - appPermissionDefaultGrant: data.appPermissionDefaultGrants?.nodes?.[0] ?? null, - }), - }); - } - create( - args: CreateArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createAppPermissionDefaultGrant: { - appPermissionDefaultGrant: InferSelectResult; - }; - }> { - const { document, variables } = buildCreateDocument( - 'AppPermissionDefaultGrant', - 'createAppPermissionDefaultGrant', - 'appPermissionDefaultGrant', - args.select, - args.data, - 'CreateAppPermissionDefaultGrantInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'AppPermissionDefaultGrant', - fieldName: 'createAppPermissionDefaultGrant', - document, - variables, - }); - } - update( - args: UpdateArgs< - S, - { - id: string; - }, - AppPermissionDefaultGrantPatch - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - updateAppPermissionDefaultGrant: { - appPermissionDefaultGrant: InferSelectResult; - }; - }> { - const { document, variables } = buildUpdateByPkDocument( - 'AppPermissionDefaultGrant', - 'updateAppPermissionDefaultGrant', - 'appPermissionDefaultGrant', - args.select, - args.where.id, - args.data, - 'UpdateAppPermissionDefaultGrantInput', - 'id', - 'appPermissionDefaultGrantPatch', - connectionFieldsMap, - undefined - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'AppPermissionDefaultGrant', - fieldName: 'updateAppPermissionDefaultGrant', - document, - variables, - }); - } - delete( - args: DeleteArgs< - { - id: string; - }, - S - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - deleteAppPermissionDefaultGrant: { - appPermissionDefaultGrant: InferSelectResult; - }; - }> { - const { document, variables } = buildDeleteByPkDocument( - 'AppPermissionDefaultGrant', - 'deleteAppPermissionDefaultGrant', - 'appPermissionDefaultGrant', - { - id: args.where.id, - }, - 'DeleteAppPermissionDefaultGrantInput', - args.select, - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'AppPermissionDefaultGrant', - fieldName: 'deleteAppPermissionDefaultGrant', - document, - variables, - }); - } -} diff --git a/sdk/constructive-sdk/src/admin/orm/models/appPermissionDefaultPermission.ts b/sdk/constructive-sdk/src/admin/orm/models/appPermissionDefaultPermission.ts deleted file mode 100644 index 6e47d9eeec..0000000000 --- a/sdk/constructive-sdk/src/admin/orm/models/appPermissionDefaultPermission.ts +++ /dev/null @@ -1,273 +0,0 @@ -/** - * AppPermissionDefaultPermission 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 { - AppPermissionDefaultPermission, - AppPermissionDefaultPermissionWithRelations, - AppPermissionDefaultPermissionSelect, - AppPermissionDefaultPermissionFilter, - AppPermissionDefaultPermissionOrderBy, - CreateAppPermissionDefaultPermissionInput, - UpdateAppPermissionDefaultPermissionInput, - AppPermissionDefaultPermissionPatch, -} from '../input-types'; -import { connectionFieldsMap } from '../input-types'; -export class AppPermissionDefaultPermissionModel { - constructor(private client: OrmClient) {} - findMany( - args: FindManyArgs< - S, - AppPermissionDefaultPermissionFilter, - AppPermissionDefaultPermissionOrderBy - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - appPermissionDefaultPermissions: ConnectionResult< - InferSelectResult - >; - }> { - const { document, variables } = buildFindManyDocument( - 'AppPermissionDefaultPermission', - 'appPermissionDefaultPermissions', - 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, - }, - 'AppPermissionDefaultPermissionFilter', - 'AppPermissionDefaultPermissionOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'AppPermissionDefaultPermission', - fieldName: 'appPermissionDefaultPermissions', - document, - variables, - }); - } - findFirst( - args: FindFirstArgs< - S, - AppPermissionDefaultPermissionFilter, - AppPermissionDefaultPermissionOrderBy - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - appPermissionDefaultPermission: InferSelectResult< - AppPermissionDefaultPermissionWithRelations, - S - > | null; - }> { - const { document, variables } = buildFindFirstDocument( - 'AppPermissionDefaultPermission', - 'appPermissionDefaultPermissions', - args.select, - { - where: args?.where, - orderBy: args?.orderBy as string[] | undefined, - }, - 'AppPermissionDefaultPermissionFilter', - 'AppPermissionDefaultPermissionOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'AppPermissionDefaultPermission', - fieldName: 'appPermissionDefaultPermission', - document, - variables, - transform: (data: { - appPermissionDefaultPermissions?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - appPermissionDefaultPermission: data.appPermissionDefaultPermissions?.nodes?.[0] ?? null, - }), - }); - } - findOne( - args: { - id: string; - select: S; - } & StrictSelect - ): QueryBuilder<{ - appPermissionDefaultPermission: InferSelectResult< - AppPermissionDefaultPermissionWithRelations, - S - > | null; - }> { - const { document, variables } = buildFindManyDocument( - 'AppPermissionDefaultPermission', - 'appPermissionDefaultPermissions', - args.select, - { - where: { - id: { - equalTo: args.id, - }, - }, - first: 1, - }, - 'AppPermissionDefaultPermissionFilter', - 'AppPermissionDefaultPermissionOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'AppPermissionDefaultPermission', - fieldName: 'appPermissionDefaultPermission', - document, - variables, - transform: (data: { - appPermissionDefaultPermissions?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - appPermissionDefaultPermission: data.appPermissionDefaultPermissions?.nodes?.[0] ?? null, - }), - }); - } - create( - args: CreateArgs< - S, - CreateAppPermissionDefaultPermissionInput['appPermissionDefaultPermission'] - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createAppPermissionDefaultPermission: { - appPermissionDefaultPermission: InferSelectResult< - AppPermissionDefaultPermissionWithRelations, - S - >; - }; - }> { - const { document, variables } = buildCreateDocument( - 'AppPermissionDefaultPermission', - 'createAppPermissionDefaultPermission', - 'appPermissionDefaultPermission', - args.select, - args.data, - 'CreateAppPermissionDefaultPermissionInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'AppPermissionDefaultPermission', - fieldName: 'createAppPermissionDefaultPermission', - document, - variables, - }); - } - update( - args: UpdateArgs< - S, - { - id: string; - }, - AppPermissionDefaultPermissionPatch - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - updateAppPermissionDefaultPermission: { - appPermissionDefaultPermission: InferSelectResult< - AppPermissionDefaultPermissionWithRelations, - S - >; - }; - }> { - const { document, variables } = buildUpdateByPkDocument( - 'AppPermissionDefaultPermission', - 'updateAppPermissionDefaultPermission', - 'appPermissionDefaultPermission', - args.select, - args.where.id, - args.data, - 'UpdateAppPermissionDefaultPermissionInput', - 'id', - 'appPermissionDefaultPermissionPatch', - connectionFieldsMap, - undefined - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'AppPermissionDefaultPermission', - fieldName: 'updateAppPermissionDefaultPermission', - document, - variables, - }); - } - delete( - args: DeleteArgs< - { - id: string; - }, - S - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - deleteAppPermissionDefaultPermission: { - appPermissionDefaultPermission: InferSelectResult< - AppPermissionDefaultPermissionWithRelations, - S - >; - }; - }> { - const { document, variables } = buildDeleteByPkDocument( - 'AppPermissionDefaultPermission', - 'deleteAppPermissionDefaultPermission', - 'appPermissionDefaultPermission', - { - id: args.where.id, - }, - 'DeleteAppPermissionDefaultPermissionInput', - args.select, - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'AppPermissionDefaultPermission', - fieldName: 'deleteAppPermissionDefaultPermission', - 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 b952c1e1d9..f14d099d6e 100644 --- a/sdk/constructive-sdk/src/admin/orm/models/index.ts +++ b/sdk/constructive-sdk/src/admin/orm/models/index.ts @@ -4,18 +4,18 @@ * DO NOT EDIT - changes will be overwritten */ export { AppAdminGrantModel } from './appAdminGrant'; +export { AppCapabilityDefaultCapabilityModel } from './appCapabilityDefaultCapability'; +export { AppCapabilityDefaultGrantModel } from './appCapabilityDefaultGrant'; export { AppClaimedInviteModel } from './appClaimedInvite'; export { AppGrantModel } from './appGrant'; export { AppInviteModel } from './appInvite'; export { AppMembershipModel } from './appMembership'; export { AppMembershipDefaultModel } from './appMembershipDefault'; export { AppOwnerGrantModel } from './appOwnerGrant'; -export { AppPermissionModel } from './appPermission'; -export { AppPermissionDefaultModel } from './appPermissionDefault'; -export { AppPermissionDefaultGrantModel } from './appPermissionDefaultGrant'; -export { AppPermissionDefaultPermissionModel } from './appPermissionDefaultPermission'; export { MembershipTypeModel } from './membershipType'; export { OrgAdminGrantModel } from './orgAdminGrant'; +export { OrgCapabilityDefaultCapabilityModel } from './orgCapabilityDefaultCapability'; +export { OrgCapabilityDefaultGrantModel } from './orgCapabilityDefaultGrant'; export { OrgChartEdgeModel } from './orgChartEdge'; export { OrgChartEdgeGrantModel } from './orgChartEdgeGrant'; export { OrgClaimedInviteModel } from './orgClaimedInvite'; @@ -29,7 +29,3 @@ export { OrgMembershipModel } from './orgMembership'; export { OrgMembershipDefaultModel } from './orgMembershipDefault'; export { OrgMembershipSettingModel } from './orgMembershipSetting'; export { OrgOwnerGrantModel } from './orgOwnerGrant'; -export { OrgPermissionModel } from './orgPermission'; -export { OrgPermissionDefaultModel } from './orgPermissionDefault'; -export { OrgPermissionDefaultGrantModel } from './orgPermissionDefaultGrant'; -export { OrgPermissionDefaultPermissionModel } from './orgPermissionDefaultPermission'; diff --git a/sdk/constructive-sdk/src/admin/orm/models/orgCapabilityDefaultCapability.ts b/sdk/constructive-sdk/src/admin/orm/models/orgCapabilityDefaultCapability.ts new file mode 100644 index 0000000000..5f902d96ac --- /dev/null +++ b/sdk/constructive-sdk/src/admin/orm/models/orgCapabilityDefaultCapability.ts @@ -0,0 +1,273 @@ +/** + * OrgCapabilityDefaultCapability 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 { + OrgCapabilityDefaultCapability, + OrgCapabilityDefaultCapabilityWithRelations, + OrgCapabilityDefaultCapabilitySelect, + OrgCapabilityDefaultCapabilityFilter, + OrgCapabilityDefaultCapabilityOrderBy, + CreateOrgCapabilityDefaultCapabilityInput, + UpdateOrgCapabilityDefaultCapabilityInput, + OrgCapabilityDefaultCapabilityPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class OrgCapabilityDefaultCapabilityModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs< + S, + OrgCapabilityDefaultCapabilityFilter, + OrgCapabilityDefaultCapabilityOrderBy + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + orgCapabilityDefaultCapabilities: ConnectionResult< + InferSelectResult + >; + }> { + const { document, variables } = buildFindManyDocument( + 'OrgCapabilityDefaultCapability', + 'orgCapabilityDefaultCapabilities', + 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, + }, + 'OrgCapabilityDefaultCapabilityFilter', + 'OrgCapabilityDefaultCapabilityOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'OrgCapabilityDefaultCapability', + fieldName: 'orgCapabilityDefaultCapabilities', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs< + S, + OrgCapabilityDefaultCapabilityFilter, + OrgCapabilityDefaultCapabilityOrderBy + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + orgCapabilityDefaultCapability: InferSelectResult< + OrgCapabilityDefaultCapabilityWithRelations, + S + > | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'OrgCapabilityDefaultCapability', + 'orgCapabilityDefaultCapabilities', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'OrgCapabilityDefaultCapabilityFilter', + 'OrgCapabilityDefaultCapabilityOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'OrgCapabilityDefaultCapability', + fieldName: 'orgCapabilityDefaultCapability', + document, + variables, + transform: (data: { + orgCapabilityDefaultCapabilities?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + orgCapabilityDefaultCapability: data.orgCapabilityDefaultCapabilities?.nodes?.[0] ?? null, + }), + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + orgCapabilityDefaultCapability: InferSelectResult< + OrgCapabilityDefaultCapabilityWithRelations, + S + > | null; + }> { + const { document, variables } = buildFindManyDocument( + 'OrgCapabilityDefaultCapability', + 'orgCapabilityDefaultCapabilities', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'OrgCapabilityDefaultCapabilityFilter', + 'OrgCapabilityDefaultCapabilityOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'OrgCapabilityDefaultCapability', + fieldName: 'orgCapabilityDefaultCapability', + document, + variables, + transform: (data: { + orgCapabilityDefaultCapabilities?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + orgCapabilityDefaultCapability: data.orgCapabilityDefaultCapabilities?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs< + S, + CreateOrgCapabilityDefaultCapabilityInput['orgCapabilityDefaultCapability'] + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createOrgCapabilityDefaultCapability: { + orgCapabilityDefaultCapability: InferSelectResult< + OrgCapabilityDefaultCapabilityWithRelations, + S + >; + }; + }> { + const { document, variables } = buildCreateDocument( + 'OrgCapabilityDefaultCapability', + 'createOrgCapabilityDefaultCapability', + 'orgCapabilityDefaultCapability', + args.select, + args.data, + 'CreateOrgCapabilityDefaultCapabilityInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'OrgCapabilityDefaultCapability', + fieldName: 'createOrgCapabilityDefaultCapability', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + OrgCapabilityDefaultCapabilityPatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateOrgCapabilityDefaultCapability: { + orgCapabilityDefaultCapability: InferSelectResult< + OrgCapabilityDefaultCapabilityWithRelations, + S + >; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'OrgCapabilityDefaultCapability', + 'updateOrgCapabilityDefaultCapability', + 'orgCapabilityDefaultCapability', + args.select, + args.where.id, + args.data, + 'UpdateOrgCapabilityDefaultCapabilityInput', + 'id', + 'orgCapabilityDefaultCapabilityPatch', + connectionFieldsMap, + undefined + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'OrgCapabilityDefaultCapability', + fieldName: 'updateOrgCapabilityDefaultCapability', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteOrgCapabilityDefaultCapability: { + orgCapabilityDefaultCapability: InferSelectResult< + OrgCapabilityDefaultCapabilityWithRelations, + S + >; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'OrgCapabilityDefaultCapability', + 'deleteOrgCapabilityDefaultCapability', + 'orgCapabilityDefaultCapability', + { + id: args.where.id, + }, + 'DeleteOrgCapabilityDefaultCapabilityInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'OrgCapabilityDefaultCapability', + fieldName: 'deleteOrgCapabilityDefaultCapability', + document, + variables, + }); + } +} diff --git a/sdk/constructive-sdk/src/admin/orm/models/orgCapabilityDefaultGrant.ts b/sdk/constructive-sdk/src/admin/orm/models/orgCapabilityDefaultGrant.ts new file mode 100644 index 0000000000..9cce27ce2b --- /dev/null +++ b/sdk/constructive-sdk/src/admin/orm/models/orgCapabilityDefaultGrant.ts @@ -0,0 +1,247 @@ +/** + * OrgCapabilityDefaultGrant 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 { + OrgCapabilityDefaultGrant, + OrgCapabilityDefaultGrantWithRelations, + OrgCapabilityDefaultGrantSelect, + OrgCapabilityDefaultGrantFilter, + OrgCapabilityDefaultGrantOrderBy, + CreateOrgCapabilityDefaultGrantInput, + UpdateOrgCapabilityDefaultGrantInput, + OrgCapabilityDefaultGrantPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class OrgCapabilityDefaultGrantModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + orgCapabilityDefaultGrants: ConnectionResult< + InferSelectResult + >; + }> { + const { document, variables } = buildFindManyDocument( + 'OrgCapabilityDefaultGrant', + 'orgCapabilityDefaultGrants', + 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, + }, + 'OrgCapabilityDefaultGrantFilter', + 'OrgCapabilityDefaultGrantOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'OrgCapabilityDefaultGrant', + fieldName: 'orgCapabilityDefaultGrants', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + orgCapabilityDefaultGrant: InferSelectResult | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'OrgCapabilityDefaultGrant', + 'orgCapabilityDefaultGrants', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'OrgCapabilityDefaultGrantFilter', + 'OrgCapabilityDefaultGrantOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'OrgCapabilityDefaultGrant', + fieldName: 'orgCapabilityDefaultGrant', + document, + variables, + transform: (data: { + orgCapabilityDefaultGrants?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + orgCapabilityDefaultGrant: data.orgCapabilityDefaultGrants?.nodes?.[0] ?? null, + }), + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + orgCapabilityDefaultGrant: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'OrgCapabilityDefaultGrant', + 'orgCapabilityDefaultGrants', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'OrgCapabilityDefaultGrantFilter', + 'OrgCapabilityDefaultGrantOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'OrgCapabilityDefaultGrant', + fieldName: 'orgCapabilityDefaultGrant', + document, + variables, + transform: (data: { + orgCapabilityDefaultGrants?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + orgCapabilityDefaultGrant: data.orgCapabilityDefaultGrants?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createOrgCapabilityDefaultGrant: { + orgCapabilityDefaultGrant: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'OrgCapabilityDefaultGrant', + 'createOrgCapabilityDefaultGrant', + 'orgCapabilityDefaultGrant', + args.select, + args.data, + 'CreateOrgCapabilityDefaultGrantInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'OrgCapabilityDefaultGrant', + fieldName: 'createOrgCapabilityDefaultGrant', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + OrgCapabilityDefaultGrantPatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateOrgCapabilityDefaultGrant: { + orgCapabilityDefaultGrant: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'OrgCapabilityDefaultGrant', + 'updateOrgCapabilityDefaultGrant', + 'orgCapabilityDefaultGrant', + args.select, + args.where.id, + args.data, + 'UpdateOrgCapabilityDefaultGrantInput', + 'id', + 'orgCapabilityDefaultGrantPatch', + connectionFieldsMap, + undefined + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'OrgCapabilityDefaultGrant', + fieldName: 'updateOrgCapabilityDefaultGrant', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteOrgCapabilityDefaultGrant: { + orgCapabilityDefaultGrant: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'OrgCapabilityDefaultGrant', + 'deleteOrgCapabilityDefaultGrant', + 'orgCapabilityDefaultGrant', + { + id: args.where.id, + }, + 'DeleteOrgCapabilityDefaultGrantInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'OrgCapabilityDefaultGrant', + fieldName: 'deleteOrgCapabilityDefaultGrant', + document, + variables, + }); + } +} diff --git a/sdk/constructive-sdk/src/admin/orm/models/orgPermission.ts b/sdk/constructive-sdk/src/admin/orm/models/orgPermission.ts deleted file mode 100644 index e3aded7147..0000000000 --- a/sdk/constructive-sdk/src/admin/orm/models/orgPermission.ts +++ /dev/null @@ -1,245 +0,0 @@ -/** - * OrgPermission 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 { - OrgPermission, - OrgPermissionWithRelations, - OrgPermissionSelect, - OrgPermissionFilter, - OrgPermissionOrderBy, - CreateOrgPermissionInput, - UpdateOrgPermissionInput, - OrgPermissionPatch, -} from '../input-types'; -import { connectionFieldsMap } from '../input-types'; -export class OrgPermissionModel { - constructor(private client: OrmClient) {} - findMany( - args: FindManyArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - orgPermissions: ConnectionResult>; - }> { - const { document, variables } = buildFindManyDocument( - 'OrgPermission', - 'orgPermissions', - 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, - }, - 'OrgPermissionFilter', - 'OrgPermissionOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'OrgPermission', - fieldName: 'orgPermissions', - document, - variables, - }); - } - findFirst( - args: FindFirstArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - orgPermission: InferSelectResult | null; - }> { - const { document, variables } = buildFindFirstDocument( - 'OrgPermission', - 'orgPermissions', - args.select, - { - where: args?.where, - orderBy: args?.orderBy as string[] | undefined, - }, - 'OrgPermissionFilter', - 'OrgPermissionOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'OrgPermission', - fieldName: 'orgPermission', - document, - variables, - transform: (data: { - orgPermissions?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - orgPermission: data.orgPermissions?.nodes?.[0] ?? null, - }), - }); - } - findOne( - args: { - id: string; - select: S; - } & StrictSelect - ): QueryBuilder<{ - orgPermission: InferSelectResult | null; - }> { - const { document, variables } = buildFindManyDocument( - 'OrgPermission', - 'orgPermissions', - args.select, - { - where: { - id: { - equalTo: args.id, - }, - }, - first: 1, - }, - 'OrgPermissionFilter', - 'OrgPermissionOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'OrgPermission', - fieldName: 'orgPermission', - document, - variables, - transform: (data: { - orgPermissions?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - orgPermission: data.orgPermissions?.nodes?.[0] ?? null, - }), - }); - } - create( - args: CreateArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createOrgPermission: { - orgPermission: InferSelectResult; - }; - }> { - const { document, variables } = buildCreateDocument( - 'OrgPermission', - 'createOrgPermission', - 'orgPermission', - args.select, - args.data, - 'CreateOrgPermissionInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'OrgPermission', - fieldName: 'createOrgPermission', - document, - variables, - }); - } - update( - args: UpdateArgs< - S, - { - id: string; - }, - OrgPermissionPatch - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - updateOrgPermission: { - orgPermission: InferSelectResult; - }; - }> { - const { document, variables } = buildUpdateByPkDocument( - 'OrgPermission', - 'updateOrgPermission', - 'orgPermission', - args.select, - args.where.id, - args.data, - 'UpdateOrgPermissionInput', - 'id', - 'orgPermissionPatch', - connectionFieldsMap, - undefined - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'OrgPermission', - fieldName: 'updateOrgPermission', - document, - variables, - }); - } - delete( - args: DeleteArgs< - { - id: string; - }, - S - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - deleteOrgPermission: { - orgPermission: InferSelectResult; - }; - }> { - const { document, variables } = buildDeleteByPkDocument( - 'OrgPermission', - 'deleteOrgPermission', - 'orgPermission', - { - id: args.where.id, - }, - 'DeleteOrgPermissionInput', - args.select, - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'OrgPermission', - fieldName: 'deleteOrgPermission', - document, - variables, - }); - } -} diff --git a/sdk/constructive-sdk/src/admin/orm/models/orgPermissionDefault.ts b/sdk/constructive-sdk/src/admin/orm/models/orgPermissionDefault.ts deleted file mode 100644 index 20ed957d15..0000000000 --- a/sdk/constructive-sdk/src/admin/orm/models/orgPermissionDefault.ts +++ /dev/null @@ -1,247 +0,0 @@ -/** - * OrgPermissionDefault 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 { - OrgPermissionDefault, - OrgPermissionDefaultWithRelations, - OrgPermissionDefaultSelect, - OrgPermissionDefaultFilter, - OrgPermissionDefaultOrderBy, - CreateOrgPermissionDefaultInput, - UpdateOrgPermissionDefaultInput, - OrgPermissionDefaultPatch, -} from '../input-types'; -import { connectionFieldsMap } from '../input-types'; -export class OrgPermissionDefaultModel { - constructor(private client: OrmClient) {} - findMany( - args: FindManyArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - orgPermissionDefaults: ConnectionResult< - InferSelectResult - >; - }> { - const { document, variables } = buildFindManyDocument( - 'OrgPermissionDefault', - 'orgPermissionDefaults', - 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, - }, - 'OrgPermissionDefaultFilter', - 'OrgPermissionDefaultOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'OrgPermissionDefault', - fieldName: 'orgPermissionDefaults', - document, - variables, - }); - } - findFirst( - args: FindFirstArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - orgPermissionDefault: InferSelectResult | null; - }> { - const { document, variables } = buildFindFirstDocument( - 'OrgPermissionDefault', - 'orgPermissionDefaults', - args.select, - { - where: args?.where, - orderBy: args?.orderBy as string[] | undefined, - }, - 'OrgPermissionDefaultFilter', - 'OrgPermissionDefaultOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'OrgPermissionDefault', - fieldName: 'orgPermissionDefault', - document, - variables, - transform: (data: { - orgPermissionDefaults?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - orgPermissionDefault: data.orgPermissionDefaults?.nodes?.[0] ?? null, - }), - }); - } - findOne( - args: { - id: string; - select: S; - } & StrictSelect - ): QueryBuilder<{ - orgPermissionDefault: InferSelectResult | null; - }> { - const { document, variables } = buildFindManyDocument( - 'OrgPermissionDefault', - 'orgPermissionDefaults', - args.select, - { - where: { - id: { - equalTo: args.id, - }, - }, - first: 1, - }, - 'OrgPermissionDefaultFilter', - 'OrgPermissionDefaultOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'OrgPermissionDefault', - fieldName: 'orgPermissionDefault', - document, - variables, - transform: (data: { - orgPermissionDefaults?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - orgPermissionDefault: data.orgPermissionDefaults?.nodes?.[0] ?? null, - }), - }); - } - create( - args: CreateArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createOrgPermissionDefault: { - orgPermissionDefault: InferSelectResult; - }; - }> { - const { document, variables } = buildCreateDocument( - 'OrgPermissionDefault', - 'createOrgPermissionDefault', - 'orgPermissionDefault', - args.select, - args.data, - 'CreateOrgPermissionDefaultInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'OrgPermissionDefault', - fieldName: 'createOrgPermissionDefault', - document, - variables, - }); - } - update( - args: UpdateArgs< - S, - { - id: string; - }, - OrgPermissionDefaultPatch - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - updateOrgPermissionDefault: { - orgPermissionDefault: InferSelectResult; - }; - }> { - const { document, variables } = buildUpdateByPkDocument( - 'OrgPermissionDefault', - 'updateOrgPermissionDefault', - 'orgPermissionDefault', - args.select, - args.where.id, - args.data, - 'UpdateOrgPermissionDefaultInput', - 'id', - 'orgPermissionDefaultPatch', - connectionFieldsMap, - undefined - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'OrgPermissionDefault', - fieldName: 'updateOrgPermissionDefault', - document, - variables, - }); - } - delete( - args: DeleteArgs< - { - id: string; - }, - S - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - deleteOrgPermissionDefault: { - orgPermissionDefault: InferSelectResult; - }; - }> { - const { document, variables } = buildDeleteByPkDocument( - 'OrgPermissionDefault', - 'deleteOrgPermissionDefault', - 'orgPermissionDefault', - { - id: args.where.id, - }, - 'DeleteOrgPermissionDefaultInput', - args.select, - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'OrgPermissionDefault', - fieldName: 'deleteOrgPermissionDefault', - document, - variables, - }); - } -} diff --git a/sdk/constructive-sdk/src/admin/orm/models/orgPermissionDefaultGrant.ts b/sdk/constructive-sdk/src/admin/orm/models/orgPermissionDefaultGrant.ts deleted file mode 100644 index 07d5976acb..0000000000 --- a/sdk/constructive-sdk/src/admin/orm/models/orgPermissionDefaultGrant.ts +++ /dev/null @@ -1,247 +0,0 @@ -/** - * OrgPermissionDefaultGrant 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 { - OrgPermissionDefaultGrant, - OrgPermissionDefaultGrantWithRelations, - OrgPermissionDefaultGrantSelect, - OrgPermissionDefaultGrantFilter, - OrgPermissionDefaultGrantOrderBy, - CreateOrgPermissionDefaultGrantInput, - UpdateOrgPermissionDefaultGrantInput, - OrgPermissionDefaultGrantPatch, -} from '../input-types'; -import { connectionFieldsMap } from '../input-types'; -export class OrgPermissionDefaultGrantModel { - constructor(private client: OrmClient) {} - findMany( - args: FindManyArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - orgPermissionDefaultGrants: ConnectionResult< - InferSelectResult - >; - }> { - const { document, variables } = buildFindManyDocument( - 'OrgPermissionDefaultGrant', - 'orgPermissionDefaultGrants', - 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, - }, - 'OrgPermissionDefaultGrantFilter', - 'OrgPermissionDefaultGrantOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'OrgPermissionDefaultGrant', - fieldName: 'orgPermissionDefaultGrants', - document, - variables, - }); - } - findFirst( - args: FindFirstArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - orgPermissionDefaultGrant: InferSelectResult | null; - }> { - const { document, variables } = buildFindFirstDocument( - 'OrgPermissionDefaultGrant', - 'orgPermissionDefaultGrants', - args.select, - { - where: args?.where, - orderBy: args?.orderBy as string[] | undefined, - }, - 'OrgPermissionDefaultGrantFilter', - 'OrgPermissionDefaultGrantOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'OrgPermissionDefaultGrant', - fieldName: 'orgPermissionDefaultGrant', - document, - variables, - transform: (data: { - orgPermissionDefaultGrants?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - orgPermissionDefaultGrant: data.orgPermissionDefaultGrants?.nodes?.[0] ?? null, - }), - }); - } - findOne( - args: { - id: string; - select: S; - } & StrictSelect - ): QueryBuilder<{ - orgPermissionDefaultGrant: InferSelectResult | null; - }> { - const { document, variables } = buildFindManyDocument( - 'OrgPermissionDefaultGrant', - 'orgPermissionDefaultGrants', - args.select, - { - where: { - id: { - equalTo: args.id, - }, - }, - first: 1, - }, - 'OrgPermissionDefaultGrantFilter', - 'OrgPermissionDefaultGrantOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'OrgPermissionDefaultGrant', - fieldName: 'orgPermissionDefaultGrant', - document, - variables, - transform: (data: { - orgPermissionDefaultGrants?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - orgPermissionDefaultGrant: data.orgPermissionDefaultGrants?.nodes?.[0] ?? null, - }), - }); - } - create( - args: CreateArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createOrgPermissionDefaultGrant: { - orgPermissionDefaultGrant: InferSelectResult; - }; - }> { - const { document, variables } = buildCreateDocument( - 'OrgPermissionDefaultGrant', - 'createOrgPermissionDefaultGrant', - 'orgPermissionDefaultGrant', - args.select, - args.data, - 'CreateOrgPermissionDefaultGrantInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'OrgPermissionDefaultGrant', - fieldName: 'createOrgPermissionDefaultGrant', - document, - variables, - }); - } - update( - args: UpdateArgs< - S, - { - id: string; - }, - OrgPermissionDefaultGrantPatch - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - updateOrgPermissionDefaultGrant: { - orgPermissionDefaultGrant: InferSelectResult; - }; - }> { - const { document, variables } = buildUpdateByPkDocument( - 'OrgPermissionDefaultGrant', - 'updateOrgPermissionDefaultGrant', - 'orgPermissionDefaultGrant', - args.select, - args.where.id, - args.data, - 'UpdateOrgPermissionDefaultGrantInput', - 'id', - 'orgPermissionDefaultGrantPatch', - connectionFieldsMap, - undefined - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'OrgPermissionDefaultGrant', - fieldName: 'updateOrgPermissionDefaultGrant', - document, - variables, - }); - } - delete( - args: DeleteArgs< - { - id: string; - }, - S - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - deleteOrgPermissionDefaultGrant: { - orgPermissionDefaultGrant: InferSelectResult; - }; - }> { - const { document, variables } = buildDeleteByPkDocument( - 'OrgPermissionDefaultGrant', - 'deleteOrgPermissionDefaultGrant', - 'orgPermissionDefaultGrant', - { - id: args.where.id, - }, - 'DeleteOrgPermissionDefaultGrantInput', - args.select, - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'OrgPermissionDefaultGrant', - fieldName: 'deleteOrgPermissionDefaultGrant', - document, - variables, - }); - } -} diff --git a/sdk/constructive-sdk/src/admin/orm/models/orgPermissionDefaultPermission.ts b/sdk/constructive-sdk/src/admin/orm/models/orgPermissionDefaultPermission.ts deleted file mode 100644 index 3339ceaeca..0000000000 --- a/sdk/constructive-sdk/src/admin/orm/models/orgPermissionDefaultPermission.ts +++ /dev/null @@ -1,273 +0,0 @@ -/** - * OrgPermissionDefaultPermission 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 { - OrgPermissionDefaultPermission, - OrgPermissionDefaultPermissionWithRelations, - OrgPermissionDefaultPermissionSelect, - OrgPermissionDefaultPermissionFilter, - OrgPermissionDefaultPermissionOrderBy, - CreateOrgPermissionDefaultPermissionInput, - UpdateOrgPermissionDefaultPermissionInput, - OrgPermissionDefaultPermissionPatch, -} from '../input-types'; -import { connectionFieldsMap } from '../input-types'; -export class OrgPermissionDefaultPermissionModel { - constructor(private client: OrmClient) {} - findMany( - args: FindManyArgs< - S, - OrgPermissionDefaultPermissionFilter, - OrgPermissionDefaultPermissionOrderBy - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - orgPermissionDefaultPermissions: ConnectionResult< - InferSelectResult - >; - }> { - const { document, variables } = buildFindManyDocument( - 'OrgPermissionDefaultPermission', - 'orgPermissionDefaultPermissions', - 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, - }, - 'OrgPermissionDefaultPermissionFilter', - 'OrgPermissionDefaultPermissionOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'OrgPermissionDefaultPermission', - fieldName: 'orgPermissionDefaultPermissions', - document, - variables, - }); - } - findFirst( - args: FindFirstArgs< - S, - OrgPermissionDefaultPermissionFilter, - OrgPermissionDefaultPermissionOrderBy - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - orgPermissionDefaultPermission: InferSelectResult< - OrgPermissionDefaultPermissionWithRelations, - S - > | null; - }> { - const { document, variables } = buildFindFirstDocument( - 'OrgPermissionDefaultPermission', - 'orgPermissionDefaultPermissions', - args.select, - { - where: args?.where, - orderBy: args?.orderBy as string[] | undefined, - }, - 'OrgPermissionDefaultPermissionFilter', - 'OrgPermissionDefaultPermissionOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'OrgPermissionDefaultPermission', - fieldName: 'orgPermissionDefaultPermission', - document, - variables, - transform: (data: { - orgPermissionDefaultPermissions?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - orgPermissionDefaultPermission: data.orgPermissionDefaultPermissions?.nodes?.[0] ?? null, - }), - }); - } - findOne( - args: { - id: string; - select: S; - } & StrictSelect - ): QueryBuilder<{ - orgPermissionDefaultPermission: InferSelectResult< - OrgPermissionDefaultPermissionWithRelations, - S - > | null; - }> { - const { document, variables } = buildFindManyDocument( - 'OrgPermissionDefaultPermission', - 'orgPermissionDefaultPermissions', - args.select, - { - where: { - id: { - equalTo: args.id, - }, - }, - first: 1, - }, - 'OrgPermissionDefaultPermissionFilter', - 'OrgPermissionDefaultPermissionOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'OrgPermissionDefaultPermission', - fieldName: 'orgPermissionDefaultPermission', - document, - variables, - transform: (data: { - orgPermissionDefaultPermissions?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - orgPermissionDefaultPermission: data.orgPermissionDefaultPermissions?.nodes?.[0] ?? null, - }), - }); - } - create( - args: CreateArgs< - S, - CreateOrgPermissionDefaultPermissionInput['orgPermissionDefaultPermission'] - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createOrgPermissionDefaultPermission: { - orgPermissionDefaultPermission: InferSelectResult< - OrgPermissionDefaultPermissionWithRelations, - S - >; - }; - }> { - const { document, variables } = buildCreateDocument( - 'OrgPermissionDefaultPermission', - 'createOrgPermissionDefaultPermission', - 'orgPermissionDefaultPermission', - args.select, - args.data, - 'CreateOrgPermissionDefaultPermissionInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'OrgPermissionDefaultPermission', - fieldName: 'createOrgPermissionDefaultPermission', - document, - variables, - }); - } - update( - args: UpdateArgs< - S, - { - id: string; - }, - OrgPermissionDefaultPermissionPatch - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - updateOrgPermissionDefaultPermission: { - orgPermissionDefaultPermission: InferSelectResult< - OrgPermissionDefaultPermissionWithRelations, - S - >; - }; - }> { - const { document, variables } = buildUpdateByPkDocument( - 'OrgPermissionDefaultPermission', - 'updateOrgPermissionDefaultPermission', - 'orgPermissionDefaultPermission', - args.select, - args.where.id, - args.data, - 'UpdateOrgPermissionDefaultPermissionInput', - 'id', - 'orgPermissionDefaultPermissionPatch', - connectionFieldsMap, - undefined - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'OrgPermissionDefaultPermission', - fieldName: 'updateOrgPermissionDefaultPermission', - document, - variables, - }); - } - delete( - args: DeleteArgs< - { - id: string; - }, - S - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - deleteOrgPermissionDefaultPermission: { - orgPermissionDefaultPermission: InferSelectResult< - OrgPermissionDefaultPermissionWithRelations, - S - >; - }; - }> { - const { document, variables } = buildDeleteByPkDocument( - 'OrgPermissionDefaultPermission', - 'deleteOrgPermissionDefaultPermission', - 'orgPermissionDefaultPermission', - { - id: args.where.id, - }, - 'DeleteOrgPermissionDefaultPermissionInput', - args.select, - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'OrgPermissionDefaultPermission', - fieldName: 'deleteOrgPermissionDefaultPermission', - document, - variables, - }); - } -} diff --git a/sdk/constructive-sdk/src/admin/orm/query/index.ts b/sdk/constructive-sdk/src/admin/orm/query/index.ts index 6d5f48130e..0e78db2c2c 100644 --- a/sdk/constructive-sdk/src/admin/orm/query/index.ts +++ b/sdk/constructive-sdk/src/admin/orm/query/index.ts @@ -6,186 +6,15 @@ import { OrmClient } from '../client'; import { QueryBuilder, buildCustomDocument } from '../query-builder'; import type { InferSelectResult, StrictSelect } from '../select-types'; -import type { AppPermissionConnection, OrgPermissionConnection } from '../input-types'; import { connectionFieldsMap } from '../input-types'; -export interface AppPermissionsGetByMaskVariables { - /** Read all values in the set after (below) this cursor. */ - after?: string; - /** Only read the first `n` values of the set. */ - first?: number; - mask?: string; - /** - * Skip the first `n` values from our `after` cursor, an alternative to cursor - * based pagination. May not be used with `last`. - */ - offset?: number; -} -export interface AppPermissionsGetMaskVariables { - ids?: string[]; -} -export interface AppPermissionsGetMaskByNamesVariables { - names?: string[]; -} -export interface AppPermissionsGetPaddedMaskVariables { - mask?: string; -} export interface OrgIsManagerOfVariables { managerId?: string; maxDepth?: number; targetEntityId?: string; userId?: string; } -export interface OrgPermissionsGetByMaskVariables { - /** Read all values in the set after (below) this cursor. */ - after?: string; - /** Only read the first `n` values of the set. */ - first?: number; - mask?: string; - /** - * Skip the first `n` values from our `after` cursor, an alternative to cursor - * based pagination. May not be used with `last`. - */ - offset?: number; -} -export interface OrgPermissionsGetMaskVariables { - ids?: string[]; -} -export interface OrgPermissionsGetMaskByNamesVariables { - names?: string[]; -} -export interface OrgPermissionsGetPaddedMaskVariables { - mask?: string; -} export function createQueryOperations(client: OrmClient) { return { - appPermissionsGetByMask: ( - args: AppPermissionsGetByMaskVariables, - options?: { - select?: Record; - } - ) => - new QueryBuilder<{ - appPermissionsGetByMask: AppPermissionConnection | null; - }>({ - client, - operation: 'query', - operationName: 'AppPermissionsGetByMask', - fieldName: 'appPermissionsGetByMask', - ...buildCustomDocument( - 'query', - 'AppPermissionsGetByMask', - 'appPermissionsGetByMask', - options?.select, - args, - [ - { - name: 'after', - type: 'Cursor', - }, - { - name: 'first', - type: 'Int', - }, - { - name: 'mask', - type: 'BitString', - }, - { - name: 'offset', - type: 'Int', - }, - ], - connectionFieldsMap, - undefined - ), - }), - appPermissionsGetMask: ( - args: AppPermissionsGetMaskVariables, - options?: { - select?: Record; - } - ) => - new QueryBuilder<{ - appPermissionsGetMask: string | null; - }>({ - client, - operation: 'query', - operationName: 'AppPermissionsGetMask', - fieldName: 'appPermissionsGetMask', - ...buildCustomDocument( - 'query', - 'AppPermissionsGetMask', - 'appPermissionsGetMask', - options?.select, - args, - [ - { - name: 'ids', - type: '[UUID]', - }, - ], - connectionFieldsMap, - undefined - ), - }), - appPermissionsGetMaskByNames: ( - args: AppPermissionsGetMaskByNamesVariables, - options?: { - select?: Record; - } - ) => - new QueryBuilder<{ - appPermissionsGetMaskByNames: string | null; - }>({ - client, - operation: 'query', - operationName: 'AppPermissionsGetMaskByNames', - fieldName: 'appPermissionsGetMaskByNames', - ...buildCustomDocument( - 'query', - 'AppPermissionsGetMaskByNames', - 'appPermissionsGetMaskByNames', - options?.select, - args, - [ - { - name: 'names', - type: '[String]', - }, - ], - connectionFieldsMap, - undefined - ), - }), - appPermissionsGetPaddedMask: ( - args: AppPermissionsGetPaddedMaskVariables, - options?: { - select?: Record; - } - ) => - new QueryBuilder<{ - appPermissionsGetPaddedMask: string | null; - }>({ - client, - operation: 'query', - operationName: 'AppPermissionsGetPaddedMask', - fieldName: 'appPermissionsGetPaddedMask', - ...buildCustomDocument( - 'query', - 'AppPermissionsGetPaddedMask', - 'appPermissionsGetPaddedMask', - options?.select, - args, - [ - { - name: 'mask', - type: 'BitString', - }, - ], - connectionFieldsMap, - undefined - ), - }), orgIsManagerOf: ( args: OrgIsManagerOfVariables, options?: { @@ -227,133 +56,5 @@ export function createQueryOperations(client: OrmClient) { undefined ), }), - orgPermissionsGetByMask: ( - args: OrgPermissionsGetByMaskVariables, - options?: { - select?: Record; - } - ) => - new QueryBuilder<{ - orgPermissionsGetByMask: OrgPermissionConnection | null; - }>({ - client, - operation: 'query', - operationName: 'OrgPermissionsGetByMask', - fieldName: 'orgPermissionsGetByMask', - ...buildCustomDocument( - 'query', - 'OrgPermissionsGetByMask', - 'orgPermissionsGetByMask', - options?.select, - args, - [ - { - name: 'after', - type: 'Cursor', - }, - { - name: 'first', - type: 'Int', - }, - { - name: 'mask', - type: 'BitString', - }, - { - name: 'offset', - type: 'Int', - }, - ], - connectionFieldsMap, - undefined - ), - }), - orgPermissionsGetMask: ( - args: OrgPermissionsGetMaskVariables, - options?: { - select?: Record; - } - ) => - new QueryBuilder<{ - orgPermissionsGetMask: string | null; - }>({ - client, - operation: 'query', - operationName: 'OrgPermissionsGetMask', - fieldName: 'orgPermissionsGetMask', - ...buildCustomDocument( - 'query', - 'OrgPermissionsGetMask', - 'orgPermissionsGetMask', - options?.select, - args, - [ - { - name: 'ids', - type: '[UUID]', - }, - ], - connectionFieldsMap, - undefined - ), - }), - orgPermissionsGetMaskByNames: ( - args: OrgPermissionsGetMaskByNamesVariables, - options?: { - select?: Record; - } - ) => - new QueryBuilder<{ - orgPermissionsGetMaskByNames: string | null; - }>({ - client, - operation: 'query', - operationName: 'OrgPermissionsGetMaskByNames', - fieldName: 'orgPermissionsGetMaskByNames', - ...buildCustomDocument( - 'query', - 'OrgPermissionsGetMaskByNames', - 'orgPermissionsGetMaskByNames', - options?.select, - args, - [ - { - name: 'names', - type: '[String]', - }, - ], - connectionFieldsMap, - undefined - ), - }), - orgPermissionsGetPaddedMask: ( - args: OrgPermissionsGetPaddedMaskVariables, - options?: { - select?: Record; - } - ) => - new QueryBuilder<{ - orgPermissionsGetPaddedMask: string | null; - }>({ - client, - operation: 'query', - operationName: 'OrgPermissionsGetPaddedMask', - fieldName: 'orgPermissionsGetPaddedMask', - ...buildCustomDocument( - 'query', - 'OrgPermissionsGetPaddedMask', - 'orgPermissionsGetPaddedMask', - options?.select, - args, - [ - { - name: 'mask', - type: 'BitString', - }, - ], - connectionFieldsMap, - undefined - ), - }), }; } diff --git a/sdk/constructive-sdk/src/api/README.md b/sdk/constructive-sdk/src/api/README.md index 27e7800079..79505f3138 100644 --- a/sdk/constructive-sdk/src/api/README.md +++ b/sdk/constructive-sdk/src/api/README.md @@ -8,7 +8,7 @@ ## Overview -- **Tables:** 80 +- **Tables:** 86 - **Custom queries:** 6 - **Custom mutations:** 11 diff --git a/sdk/constructive-sdk/src/api/orm/README.md b/sdk/constructive-sdk/src/api/orm/README.md index 485932a4b7..d9d708a558 100644 --- a/sdk/constructive-sdk/src/api/orm/README.md +++ b/sdk/constructive-sdk/src/api/orm/README.md @@ -21,9 +21,9 @@ const db = createClient({ | Model | Operations | |-------|------------| +| `api` | findMany, findOne, create, update, delete | | `apiSchema` | findMany, findOne, create, update, delete | | `apiSetting` | findMany, findOne, create, update, delete | -| `apis` | findMany, findOne, create, update, delete | | `astMigration` | findMany, findOne, create, update, delete | | `checkConstraint` | findMany, findOne, create, update, delete | | `compositeType` | findMany, findOne, create, update, delete | @@ -37,6 +37,9 @@ const db = createClient({ | `domainEvent` | findMany, findOne, create, update, delete | | `domainType` | findMany, findOne, create, update, delete | | `domainVerification` | findMany, findOne, create, update, delete | +| `emailIdentity` | findMany, findOne, create, update, delete | +| `emailProviderAccount` | findMany, findOne, create, update, delete | +| `emailSiteIdentity` | findMany, findOne, create, update, delete | | `embeddingChunk` | findMany, findOne, create, update, delete | | `enum` | findMany, findOne, create, update, delete | | `exclusionConstraint` | findMany, findOne, create, update, delete | @@ -53,13 +56,16 @@ const db = createClient({ | `nodeTypeRegistry` | findMany, findOne, create, update, delete | | `page` | findMany, findOne, create, update, delete | | `partition` | findMany, findOne, create, update, delete | +| `platformApi` | findMany, findOne, create, update, delete | | `platformApiSchema` | findMany, findOne, create, update, delete | | `platformApiSetting` | findMany, findOne, create, update, delete | -| `platformApis` | findMany, findOne, create, update, delete | | `platformCorsSetting` | findMany, findOne, create, update, delete | | `platformDomain` | findMany, findOne, create, update, delete | | `platformDomainEvent` | findMany, findOne, create, update, delete | | `platformDomainVerification` | findMany, findOne, create, update, delete | +| `platformEmailIdentity` | findMany, findOne, create, update, delete | +| `platformEmailProviderAccount` | findMany, findOne, create, update, delete | +| `platformEmailSiteIdentity` | findMany, findOne, create, update, delete | | `platformManagedDomain` | findMany, findOne, create, update, delete | | `platformPage` | findMany, findOne, create, update, delete | | `platformSiteAppLink` | findMany, findOne, create, update, delete | @@ -104,6 +110,44 @@ const db = createClient({ ## Table Operations +### `db.api` + +CRUD operations for Api records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `anonRole` | String | Yes | +| `config` | JSON | Yes | +| `createdAt` | Datetime | No | +| `databaseId` | UUID | Yes | +| `dbname` | String | Yes | +| `id` | UUID | No | +| `isPublished` | Boolean | Yes | +| `name` | String | Yes | +| `roleName` | String | Yes | +| `updatedAt` | Datetime | No | + +**Operations:** + +```typescript +// List all api records +const items = await db.api.findMany({ select: { anonRole: true, config: true, createdAt: true, databaseId: true, dbname: true, id: true, isPublished: true, name: true, roleName: true, updatedAt: true } }).execute(); + +// Get one by id +const item = await db.api.findOne({ id: '', select: { anonRole: true, config: true, createdAt: true, databaseId: true, dbname: true, id: true, isPublished: true, name: true, roleName: true, updatedAt: true } }).execute(); + +// Create +const created = await db.api.create({ data: { anonRole: '', config: '', databaseId: '', dbname: '', isPublished: '', name: '', roleName: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.api.update({ where: { id: '' }, data: { anonRole: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.api.delete({ where: { id: '' } }).execute(); +``` + ### `db.apiSchema` CRUD operations for ApiSchema records. @@ -185,44 +229,6 @@ const updated = await db.apiSetting.update({ where: { id: '' }, data: { ap const deleted = await db.apiSetting.delete({ where: { id: '' } }).execute(); ``` -### `db.apis` - -CRUD operations for Apis records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `anonRole` | String | Yes | -| `config` | JSON | Yes | -| `createdAt` | Datetime | No | -| `databaseId` | UUID | Yes | -| `dbname` | String | Yes | -| `id` | UUID | No | -| `isPublished` | Boolean | Yes | -| `name` | String | Yes | -| `roleName` | String | Yes | -| `updatedAt` | Datetime | No | - -**Operations:** - -```typescript -// List all apis records -const items = await db.apis.findMany({ select: { anonRole: true, config: true, createdAt: true, databaseId: true, dbname: true, id: true, isPublished: true, name: true, roleName: true, updatedAt: true } }).execute(); - -// Get one by id -const item = await db.apis.findOne({ id: '', select: { anonRole: true, config: true, createdAt: true, databaseId: true, dbname: true, id: true, isPublished: true, name: true, roleName: true, updatedAt: true } }).execute(); - -// Create -const created = await db.apis.create({ data: { anonRole: '', config: '', databaseId: '', dbname: '', isPublished: '', name: '', roleName: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.apis.update({ where: { id: '' }, data: { anonRole: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.apis.delete({ where: { id: '' } }).execute(); -``` - ### `db.astMigration` CRUD operations for AstMigration records. @@ -743,6 +749,125 @@ const updated = await db.domainVerification.update({ where: { id: '' }, da const deleted = await db.domainVerification.delete({ where: { id: '' } }).execute(); ``` +### `db.emailIdentity` + +CRUD operations for EmailIdentity records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `createdAt` | Datetime | No | +| `databaseId` | UUID | Yes | +| `fromAddress` | String | Yes | +| `fromName` | String | Yes | +| `id` | UUID | No | +| `isActive` | Boolean | Yes | +| `isDefault` | Boolean | Yes | +| `name` | String | Yes | +| `providerAccountId` | UUID | Yes | +| `replyToAddress` | String | Yes | +| `supportAddress` | String | Yes | +| `transportMode` | String | Yes | +| `updatedAt` | Datetime | No | + +**Operations:** + +```typescript +// List all emailIdentity records +const items = await db.emailIdentity.findMany({ select: { createdAt: true, databaseId: true, fromAddress: true, fromName: true, id: true, isActive: true, isDefault: true, name: true, providerAccountId: true, replyToAddress: true, supportAddress: true, transportMode: true, updatedAt: true } }).execute(); + +// Get one by id +const item = await db.emailIdentity.findOne({ id: '', select: { createdAt: true, databaseId: true, fromAddress: true, fromName: true, id: true, isActive: true, isDefault: true, name: true, providerAccountId: true, replyToAddress: true, supportAddress: true, transportMode: true, updatedAt: true } }).execute(); + +// Create +const created = await db.emailIdentity.create({ data: { databaseId: '', fromAddress: '', fromName: '', isActive: '', isDefault: '', name: '', providerAccountId: '', replyToAddress: '', supportAddress: '', transportMode: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.emailIdentity.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.emailIdentity.delete({ where: { id: '' } }).execute(); +``` + +### `db.emailProviderAccount` + +CRUD operations for EmailProviderAccount records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `apiBaseUrl` | String | Yes | +| `createdAt` | Datetime | No | +| `credentialsSecretName` | String | Yes | +| `databaseId` | UUID | Yes | +| `id` | UUID | No | +| `isActive` | Boolean | Yes | +| `name` | String | Yes | +| `provider` | String | Yes | +| `providerAccountName` | String | Yes | +| `region` | String | Yes | +| `smtpHost` | String | Yes | +| `smtpPort` | Int | Yes | +| `smtpSecure` | Boolean | Yes | +| `smtpUser` | String | Yes | +| `updatedAt` | Datetime | No | +| `webhookSigningSecretName` | String | Yes | + +**Operations:** + +```typescript +// List all emailProviderAccount records +const items = await db.emailProviderAccount.findMany({ select: { apiBaseUrl: true, createdAt: true, credentialsSecretName: true, databaseId: true, id: true, isActive: true, name: true, provider: true, providerAccountName: true, region: true, smtpHost: true, smtpPort: true, smtpSecure: true, smtpUser: true, updatedAt: true, webhookSigningSecretName: true } }).execute(); + +// Get one by id +const item = await db.emailProviderAccount.findOne({ id: '', select: { apiBaseUrl: true, createdAt: true, credentialsSecretName: true, databaseId: true, id: true, isActive: true, name: true, provider: true, providerAccountName: true, region: true, smtpHost: true, smtpPort: true, smtpSecure: true, smtpUser: true, updatedAt: true, webhookSigningSecretName: true } }).execute(); + +// Create +const created = await db.emailProviderAccount.create({ data: { apiBaseUrl: '', credentialsSecretName: '', databaseId: '', isActive: '', name: '', provider: '', providerAccountName: '', region: '', smtpHost: '', smtpPort: '', smtpSecure: '', smtpUser: '', webhookSigningSecretName: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.emailProviderAccount.update({ where: { id: '' }, data: { apiBaseUrl: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.emailProviderAccount.delete({ where: { id: '' } }).execute(); +``` + +### `db.emailSiteIdentity` + +CRUD operations for EmailSiteIdentity records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `createdAt` | Datetime | No | +| `databaseId` | UUID | Yes | +| `emailIdentityId` | UUID | Yes | +| `id` | UUID | No | +| `siteId` | UUID | Yes | +| `updatedAt` | Datetime | No | + +**Operations:** + +```typescript +// List all emailSiteIdentity records +const items = await db.emailSiteIdentity.findMany({ select: { createdAt: true, databaseId: true, emailIdentityId: true, id: true, siteId: true, updatedAt: true } }).execute(); + +// Get one by id +const item = await db.emailSiteIdentity.findOne({ id: '', select: { createdAt: true, databaseId: true, emailIdentityId: true, id: true, siteId: true, updatedAt: true } }).execute(); + +// Create +const created = await db.emailSiteIdentity.create({ data: { databaseId: '', emailIdentityId: '', siteId: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.emailSiteIdentity.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.emailSiteIdentity.delete({ where: { id: '' } }).execute(); +``` + ### `db.embeddingChunk` CRUD operations for EmbeddingChunk records. @@ -1394,6 +1519,43 @@ const updated = await db.partition.update({ where: { id: '' }, data: { dat const deleted = await db.partition.delete({ where: { id: '' } }).execute(); ``` +### `db.platformApi` + +CRUD operations for PlatformApi records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `anonRole` | String | Yes | +| `config` | JSON | Yes | +| `createdAt` | Datetime | No | +| `dbname` | String | Yes | +| `id` | UUID | No | +| `isPublished` | Boolean | Yes | +| `name` | String | Yes | +| `roleName` | String | Yes | +| `updatedAt` | Datetime | No | + +**Operations:** + +```typescript +// List all platformApi records +const items = await db.platformApi.findMany({ select: { anonRole: true, config: true, createdAt: true, dbname: true, id: true, isPublished: true, name: true, roleName: true, updatedAt: true } }).execute(); + +// Get one by id +const item = await db.platformApi.findOne({ id: '', select: { anonRole: true, config: true, createdAt: true, dbname: true, id: true, isPublished: true, name: true, roleName: true, updatedAt: true } }).execute(); + +// Create +const created = await db.platformApi.create({ data: { anonRole: '', config: '', dbname: '', isPublished: '', name: '', roleName: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.platformApi.update({ where: { id: '' }, data: { anonRole: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.platformApi.delete({ where: { id: '' } }).execute(); +``` + ### `db.platformApiSchema` CRUD operations for PlatformApiSchema records. @@ -1473,43 +1635,6 @@ const updated = await db.platformApiSetting.update({ where: { id: '' }, da const deleted = await db.platformApiSetting.delete({ where: { id: '' } }).execute(); ``` -### `db.platformApis` - -CRUD operations for PlatformApis records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `anonRole` | String | Yes | -| `config` | JSON | Yes | -| `createdAt` | Datetime | No | -| `dbname` | String | Yes | -| `id` | UUID | No | -| `isPublished` | Boolean | Yes | -| `name` | String | Yes | -| `roleName` | String | Yes | -| `updatedAt` | Datetime | No | - -**Operations:** - -```typescript -// List all platformApis records -const items = await db.platformApis.findMany({ select: { anonRole: true, config: true, createdAt: true, dbname: true, id: true, isPublished: true, name: true, roleName: true, updatedAt: true } }).execute(); - -// Get one by id -const item = await db.platformApis.findOne({ id: '', select: { anonRole: true, config: true, createdAt: true, dbname: true, id: true, isPublished: true, name: true, roleName: true, updatedAt: true } }).execute(); - -// Create -const created = await db.platformApis.create({ data: { anonRole: '', config: '', dbname: '', isPublished: '', name: '', roleName: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.platformApis.update({ where: { id: '' }, data: { anonRole: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.platformApis.delete({ where: { id: '' } }).execute(); -``` - ### `db.platformCorsSetting` CRUD operations for PlatformCorsSetting records. @@ -1666,6 +1791,122 @@ const updated = await db.platformDomainVerification.update({ where: { id: '' } }).execute(); ``` +### `db.platformEmailIdentity` + +CRUD operations for PlatformEmailIdentity records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `createdAt` | Datetime | No | +| `fromAddress` | String | Yes | +| `fromName` | String | Yes | +| `id` | UUID | No | +| `isActive` | Boolean | Yes | +| `isDefault` | Boolean | Yes | +| `name` | String | Yes | +| `providerAccountId` | UUID | Yes | +| `replyToAddress` | String | Yes | +| `supportAddress` | String | Yes | +| `transportMode` | String | Yes | +| `updatedAt` | Datetime | No | + +**Operations:** + +```typescript +// List all platformEmailIdentity records +const items = await db.platformEmailIdentity.findMany({ select: { createdAt: true, fromAddress: true, fromName: true, id: true, isActive: true, isDefault: true, name: true, providerAccountId: true, replyToAddress: true, supportAddress: true, transportMode: true, updatedAt: true } }).execute(); + +// Get one by id +const item = await db.platformEmailIdentity.findOne({ id: '', select: { createdAt: true, fromAddress: true, fromName: true, id: true, isActive: true, isDefault: true, name: true, providerAccountId: true, replyToAddress: true, supportAddress: true, transportMode: true, updatedAt: true } }).execute(); + +// Create +const created = await db.platformEmailIdentity.create({ data: { fromAddress: '', fromName: '', isActive: '', isDefault: '', name: '', providerAccountId: '', replyToAddress: '', supportAddress: '', transportMode: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.platformEmailIdentity.update({ where: { id: '' }, data: { fromAddress: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.platformEmailIdentity.delete({ where: { id: '' } }).execute(); +``` + +### `db.platformEmailProviderAccount` + +CRUD operations for PlatformEmailProviderAccount records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `apiBaseUrl` | String | Yes | +| `createdAt` | Datetime | No | +| `credentialsSecretName` | String | Yes | +| `id` | UUID | No | +| `isActive` | Boolean | Yes | +| `name` | String | Yes | +| `provider` | String | Yes | +| `providerAccountName` | String | Yes | +| `region` | String | Yes | +| `smtpHost` | String | Yes | +| `smtpPort` | Int | Yes | +| `smtpSecure` | Boolean | Yes | +| `smtpUser` | String | Yes | +| `updatedAt` | Datetime | No | +| `webhookSigningSecretName` | String | Yes | + +**Operations:** + +```typescript +// List all platformEmailProviderAccount records +const items = await db.platformEmailProviderAccount.findMany({ select: { apiBaseUrl: true, createdAt: true, credentialsSecretName: true, id: true, isActive: true, name: true, provider: true, providerAccountName: true, region: true, smtpHost: true, smtpPort: true, smtpSecure: true, smtpUser: true, updatedAt: true, webhookSigningSecretName: true } }).execute(); + +// Get one by id +const item = await db.platformEmailProviderAccount.findOne({ id: '', select: { apiBaseUrl: true, createdAt: true, credentialsSecretName: true, id: true, isActive: true, name: true, provider: true, providerAccountName: true, region: true, smtpHost: true, smtpPort: true, smtpSecure: true, smtpUser: true, updatedAt: true, webhookSigningSecretName: true } }).execute(); + +// Create +const created = await db.platformEmailProviderAccount.create({ data: { apiBaseUrl: '', credentialsSecretName: '', isActive: '', name: '', provider: '', providerAccountName: '', region: '', smtpHost: '', smtpPort: '', smtpSecure: '', smtpUser: '', webhookSigningSecretName: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.platformEmailProviderAccount.update({ where: { id: '' }, data: { apiBaseUrl: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.platformEmailProviderAccount.delete({ where: { id: '' } }).execute(); +``` + +### `db.platformEmailSiteIdentity` + +CRUD operations for PlatformEmailSiteIdentity records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `createdAt` | Datetime | No | +| `emailIdentityId` | UUID | Yes | +| `id` | UUID | No | +| `siteId` | UUID | Yes | +| `updatedAt` | Datetime | No | + +**Operations:** + +```typescript +// List all platformEmailSiteIdentity records +const items = await db.platformEmailSiteIdentity.findMany({ select: { createdAt: true, emailIdentityId: true, id: true, siteId: true, updatedAt: true } }).execute(); + +// Get one by id +const item = await db.platformEmailSiteIdentity.findOne({ id: '', select: { createdAt: true, emailIdentityId: true, id: true, siteId: true, updatedAt: true } }).execute(); + +// Create +const created = await db.platformEmailSiteIdentity.create({ data: { emailIdentityId: '', siteId: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.platformEmailSiteIdentity.update({ where: { id: '' }, data: { emailIdentityId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.platformEmailSiteIdentity.delete({ where: { id: '' } }).execute(); +``` + ### `db.platformManagedDomain` CRUD operations for PlatformManagedDomain records. diff --git a/sdk/constructive-sdk/src/api/orm/index.ts b/sdk/constructive-sdk/src/api/orm/index.ts index 98c5108b79..4af633de9c 100644 --- a/sdk/constructive-sdk/src/api/orm/index.ts +++ b/sdk/constructive-sdk/src/api/orm/index.ts @@ -5,9 +5,9 @@ */ import { OrmClient } from './client'; import type { OrmClientConfig } from './client'; +import { ApiModel } from './models/api'; import { ApiSchemaModel } from './models/apiSchema'; import { ApiSettingModel } from './models/apiSetting'; -import { ApisModel } from './models/apis'; import { AstMigrationModel } from './models/astMigration'; import { CheckConstraintModel } from './models/checkConstraint'; import { CompositeTypeModel } from './models/compositeType'; @@ -21,6 +21,9 @@ import { DomainModel } from './models/domain'; import { DomainEventModel } from './models/domainEvent'; import { DomainTypeModel } from './models/domainType'; import { DomainVerificationModel } from './models/domainVerification'; +import { EmailIdentityModel } from './models/emailIdentity'; +import { EmailProviderAccountModel } from './models/emailProviderAccount'; +import { EmailSiteIdentityModel } from './models/emailSiteIdentity'; import { EmbeddingChunkModel } from './models/embeddingChunk'; import { EnumModel } from './models/enum'; import { ExclusionConstraintModel } from './models/exclusionConstraint'; @@ -37,13 +40,16 @@ import { ManagedDomainModel } from './models/managedDomain'; import { NodeTypeRegistryModel } from './models/nodeTypeRegistry'; import { PageModel } from './models/page'; import { PartitionModel } from './models/partition'; +import { PlatformApiModel } from './models/platformApi'; import { PlatformApiSchemaModel } from './models/platformApiSchema'; import { PlatformApiSettingModel } from './models/platformApiSetting'; -import { PlatformApisModel } from './models/platformApis'; import { PlatformCorsSettingModel } from './models/platformCorsSetting'; import { PlatformDomainModel } from './models/platformDomain'; import { PlatformDomainEventModel } from './models/platformDomainEvent'; import { PlatformDomainVerificationModel } from './models/platformDomainVerification'; +import { PlatformEmailIdentityModel } from './models/platformEmailIdentity'; +import { PlatformEmailProviderAccountModel } from './models/platformEmailProviderAccount'; +import { PlatformEmailSiteIdentityModel } from './models/platformEmailSiteIdentity'; import { PlatformManagedDomainModel } from './models/platformManagedDomain'; import { PlatformPageModel } from './models/platformPage'; import { PlatformSiteAppLinkModel } from './models/platformSiteAppLink'; @@ -120,9 +126,9 @@ export { createMutationOperations } from './mutation'; export function createClient(config: OrmClientConfig) { const client = new OrmClient(config); return { + api: new ApiModel(client), apiSchema: new ApiSchemaModel(client), apiSetting: new ApiSettingModel(client), - apis: new ApisModel(client), astMigration: new AstMigrationModel(client), checkConstraint: new CheckConstraintModel(client), compositeType: new CompositeTypeModel(client), @@ -136,6 +142,9 @@ export function createClient(config: OrmClientConfig) { domainEvent: new DomainEventModel(client), domainType: new DomainTypeModel(client), domainVerification: new DomainVerificationModel(client), + emailIdentity: new EmailIdentityModel(client), + emailProviderAccount: new EmailProviderAccountModel(client), + emailSiteIdentity: new EmailSiteIdentityModel(client), embeddingChunk: new EmbeddingChunkModel(client), enum: new EnumModel(client), exclusionConstraint: new ExclusionConstraintModel(client), @@ -152,13 +161,16 @@ export function createClient(config: OrmClientConfig) { nodeTypeRegistry: new NodeTypeRegistryModel(client), page: new PageModel(client), partition: new PartitionModel(client), + platformApi: new PlatformApiModel(client), platformApiSchema: new PlatformApiSchemaModel(client), platformApiSetting: new PlatformApiSettingModel(client), - platformApis: new PlatformApisModel(client), platformCorsSetting: new PlatformCorsSettingModel(client), platformDomain: new PlatformDomainModel(client), platformDomainEvent: new PlatformDomainEventModel(client), platformDomainVerification: new PlatformDomainVerificationModel(client), + platformEmailIdentity: new PlatformEmailIdentityModel(client), + platformEmailProviderAccount: new PlatformEmailProviderAccountModel(client), + platformEmailSiteIdentity: new PlatformEmailSiteIdentityModel(client), platformManagedDomain: new PlatformManagedDomainModel(client), platformPage: new PlatformPageModel(client), platformSiteAppLink: new PlatformSiteAppLinkModel(client), diff --git a/sdk/constructive-sdk/src/api/orm/input-types.ts b/sdk/constructive-sdk/src/api/orm/input-types.ts index 2347f17ca6..982e890b60 100644 --- a/sdk/constructive-sdk/src/api/orm/input-types.ts +++ b/sdk/constructive-sdk/src/api/orm/input-types.ts @@ -232,11 +232,31 @@ export interface UUIDListFilter { } // ============ Enum Types ============ export type ApiExposureLevel = 'EXPOSABLE' | 'INTERNAL_ONLY' | 'NEVER_EXPOSE'; -export type ObjectCategory = 'APP' | 'AUTH' | 'CORE' | 'MEMBERSHIPS' | 'MODULE' | 'PERMISSIONS'; +export type ObjectCategory = 'APP' | 'AUTH' | 'CAPABILITIES' | 'CORE' | 'MEMBERSHIPS' | 'MODULE'; // ============ Custom Scalar Types ============ export type ConstructiveInternalTypeImage = unknown; -/** Join table linking API surfaces to the metaschema schemas they expose */ +/** API surfaces exposed by this scope; publication makes a surface bindable from other scopes */ // ============ Entity Types ============ +export interface Api { + /** Anonymous role the API executes as */ + anonRole?: string | null; + /** Module-specific configuration for this API surface */ + config?: Record | null; + createdAt?: string | null; + /** Database that owns this resource (database-scoped isolation) */ + databaseId?: string | null; + /** Database this API surface serves */ + dbname?: string | null; + id: string; + /** Whether other scopes may see and route to this API surface */ + isPublished?: boolean | null; + /** Owner-local API surface name */ + name?: string | null; + /** Authenticated role the API executes as */ + roleName?: string | null; + updatedAt?: string | null; +} +/** Join table linking API surfaces to the metaschema schemas they expose */ export interface ApiSchema { /** API surface that exposes this schema */ apiId?: string | null; @@ -286,26 +306,6 @@ export interface ApiSetting { statementTimeoutMs?: string | null; updatedAt?: string | null; } -/** API surfaces exposed by this scope; publication makes a surface bindable from other scopes */ -export interface Apis { - /** Anonymous role the API executes as */ - anonRole?: string | null; - /** Module-specific configuration for this API surface */ - config?: Record | null; - createdAt?: string | null; - /** Database that owns this resource (database-scoped isolation) */ - databaseId?: string | null; - /** Database this API surface serves */ - dbname?: string | null; - id: string; - /** Whether other scopes may see and route to this API surface */ - isPublished?: boolean | null; - /** Owner-local API surface name */ - name?: string | null; - /** Authenticated role the API executes as */ - roleName?: string | null; - updatedAt?: string | null; -} export interface AstMigration { actionId?: string | null; actionName?: string | null; @@ -546,6 +546,76 @@ export interface DomainVerification { /** When this challenge succeeded */ verifiedAt?: string | null; } +/** Outbound sender identity: the from/reply-to/support addresses a tenant sends as, and the provider account the mail leaves through */ +export interface EmailIdentity { + createdAt?: string | null; + /** Database that owns this resource (database-scoped isolation) */ + databaseId?: string | null; + /** Envelope/header From address, lower-case. Must be accepted by the sending account at the provider. */ + fromAddress?: string | null; + /** Display name shown beside the from address */ + fromName?: string | null; + id: string; + /** Whether this identity may be resolved for a send */ + isActive?: boolean | null; + /** The scope default identity, used when no site binding resolves. At most one per scope key. */ + isDefault?: boolean | null; + /** Operator-facing name for this identity (e.g. transactional, support) */ + name?: string | null; + /** Same-scope provider account this identity sends through. Required for transport_mode = own, NULL for platform_shared. */ + providerAccountId?: string | null; + /** Reply-To address when replies should not go to the from address */ + replyToAddress?: string | null; + /** Support address rendered in message bodies and footers */ + supportAddress?: string | null; + /** own = send through provider_account_id in this scope; platform_shared = send through the platform installation's shared account, an explicit recorded choice and never an implicit fallback */ + transportMode?: string | null; + updatedAt?: string | null; +} +/** A tenant's configured account at an email provider: provider slug, endpoint coordinates, and the NAME of the secret holding its credentials (never the credential itself) */ +export interface EmailProviderAccount { + /** Provider API base URL when it is not the provider default (e.g. Mailgun EU) */ + apiBaseUrl?: string | null; + createdAt?: string | null; + /** Name of the secret holding this account's API key or SMTP password. The value is resolved from the secret store at send time (realm = this row's id) and is never stored here. */ + credentialsSecretName?: string | null; + /** Database that owns this resource (database-scoped isolation) */ + databaseId?: string | null; + id: string; + /** Whether identities may send through this account. Disabling one row stops every identity that references it. */ + isActive?: boolean | null; + /** Operator-facing name for this account (e.g. transactional, marketing) */ + name?: string | null; + /** integration_providers.slug of the provider this account is at (mailgun, ses, postmark, smtp), matched by string not by FK */ + provider?: string | null; + /** Account identifier at the provider — the Mailgun sending domain, the SES verified identity, the Postmark server name */ + providerAccountName?: string | null; + /** Provider region for region-addressed providers (e.g. SES us-east-1) */ + region?: string | null; + /** SMTP host (provider = smtp, or a provider addressed over SMTP) */ + smtpHost?: string | null; + /** SMTP port */ + smtpPort?: number | null; + /** Whether the SMTP connection uses implicit TLS */ + smtpSecure?: boolean | null; + /** SMTP username; the password is a secret, addressed by credentials_secret_name */ + smtpUser?: string | null; + updatedAt?: string | null; + /** Name of the secret used to verify this provider's delivery/bounce webhooks. Name only; the value stays in the secret store. */ + webhookSigningSecretName?: string | null; +} +/** Binds a site to the identity it sends as. Unique on site_id: one identity per site, but many sites may share an identity. */ +export interface EmailSiteIdentity { + createdAt?: string | null; + /** Database that owns this resource (database-scoped isolation) */ + databaseId?: string | null; + /** Identity this site sends as */ + emailIdentityId?: string | null; + id: string; + /** Site whose mail is sent as the bound identity */ + siteId?: string | null; + updatedAt?: string | null; +} export interface EmbeddingChunk { chunkOverlap?: number | null; chunkSize?: number | null; @@ -821,6 +891,24 @@ export interface Partition { tableId?: string | null; updatedAt?: string | null; } +/** API surfaces exposed by this scope; publication makes a surface bindable from other scopes */ +export interface PlatformApi { + /** Anonymous role the API executes as */ + anonRole?: string | null; + /** Module-specific configuration for this API surface */ + config?: Record | null; + createdAt?: string | null; + /** Database this API surface serves */ + dbname?: string | null; + id: string; + /** Whether other scopes may see and route to this API surface */ + isPublished?: boolean | null; + /** Owner-local API surface name */ + name?: string | null; + /** Authenticated role the API executes as */ + roleName?: string | null; + updatedAt?: string | null; +} /** Join table linking API surfaces to the metaschema schemas they expose */ export interface PlatformApiSchema { /** API surface that exposes this schema */ @@ -867,24 +955,6 @@ export interface PlatformApiSetting { statementTimeoutMs?: string | null; updatedAt?: string | null; } -/** API surfaces exposed by this scope; publication makes a surface bindable from other scopes */ -export interface PlatformApis { - /** Anonymous role the API executes as */ - anonRole?: string | null; - /** Module-specific configuration for this API surface */ - config?: Record | null; - createdAt?: string | null; - /** Database this API surface serves */ - dbname?: string | null; - id: string; - /** Whether other scopes may see and route to this API surface */ - isPublished?: boolean | null; - /** Owner-local API surface name */ - name?: string | null; - /** Authenticated role the API executes as */ - roleName?: string | null; - updatedAt?: string | null; -} /** Scope-wide and per-API CORS origin configuration; NULL api_id means scope-wide default */ export interface PlatformCorsSetting { /** Array of allowed CORS origins (e.g. https://example.com) */ @@ -973,6 +1043,70 @@ export interface PlatformDomainVerification { /** When this challenge succeeded */ verifiedAt?: string | null; } +/** Outbound sender identity: the from/reply-to/support addresses a tenant sends as, and the provider account the mail leaves through */ +export interface PlatformEmailIdentity { + createdAt?: string | null; + /** Envelope/header From address, lower-case. Must be accepted by the sending account at the provider. */ + fromAddress?: string | null; + /** Display name shown beside the from address */ + fromName?: string | null; + id: string; + /** Whether this identity may be resolved for a send */ + isActive?: boolean | null; + /** The scope default identity, used when no site binding resolves. At most one per scope key. */ + isDefault?: boolean | null; + /** Operator-facing name for this identity (e.g. transactional, support) */ + name?: string | null; + /** Same-scope provider account this identity sends through. Required for transport_mode = own, NULL for platform_shared. */ + providerAccountId?: string | null; + /** Reply-To address when replies should not go to the from address */ + replyToAddress?: string | null; + /** Support address rendered in message bodies and footers */ + supportAddress?: string | null; + /** own = send through provider_account_id in this scope; platform_shared = send through the platform installation's shared account, an explicit recorded choice and never an implicit fallback */ + transportMode?: string | null; + updatedAt?: string | null; +} +/** A tenant's configured account at an email provider: provider slug, endpoint coordinates, and the NAME of the secret holding its credentials (never the credential itself) */ +export interface PlatformEmailProviderAccount { + /** Provider API base URL when it is not the provider default (e.g. Mailgun EU) */ + apiBaseUrl?: string | null; + createdAt?: string | null; + /** Name of the secret holding this account's API key or SMTP password. The value is resolved from the secret store at send time (realm = this row's id) and is never stored here. */ + credentialsSecretName?: string | null; + id: string; + /** Whether identities may send through this account. Disabling one row stops every identity that references it. */ + isActive?: boolean | null; + /** Operator-facing name for this account (e.g. transactional, marketing) */ + name?: string | null; + /** integration_providers.slug of the provider this account is at (mailgun, ses, postmark, smtp), matched by string not by FK */ + provider?: string | null; + /** Account identifier at the provider — the Mailgun sending domain, the SES verified identity, the Postmark server name */ + providerAccountName?: string | null; + /** Provider region for region-addressed providers (e.g. SES us-east-1) */ + region?: string | null; + /** SMTP host (provider = smtp, or a provider addressed over SMTP) */ + smtpHost?: string | null; + /** SMTP port */ + smtpPort?: number | null; + /** Whether the SMTP connection uses implicit TLS */ + smtpSecure?: boolean | null; + /** SMTP username; the password is a secret, addressed by credentials_secret_name */ + smtpUser?: string | null; + updatedAt?: string | null; + /** Name of the secret used to verify this provider's delivery/bounce webhooks. Name only; the value stays in the secret store. */ + webhookSigningSecretName?: string | null; +} +/** Binds a site to the identity it sends as. Unique on site_id: one identity per site, but many sites may share an identity. */ +export interface PlatformEmailSiteIdentity { + createdAt?: string | null; + /** Identity this site sends as */ + emailIdentityId?: string | null; + id: string; + /** Site whose mail is sent as the bound identity */ + siteId?: string | null; + updatedAt?: string | null; +} /** Platform-operated hostnames whose DNS and certificate lifecycle the platform drives */ export interface PlatformManagedDomain { /** Whether tenants may claim subdomains under this managed hostname */ @@ -1736,17 +1870,17 @@ export interface PageInfo { endCursor?: string | null; } // ============ Entity Relation Types ============ +export interface ApiRelations { + apiSetting?: ApiSetting | null; + apiSchemas?: ConnectionResult; + corsSettings?: ConnectionResult; +} export interface ApiSchemaRelations { - api?: Apis | null; + api?: Api | null; schema?: Schema | null; } export interface ApiSettingRelations { - api?: Apis | null; -} -export interface ApisRelations { - apiSettingByApiId?: ApiSetting | null; - apiSchemasByApiId?: ConnectionResult; - corsSettingsByApiId?: ConnectionResult; + api?: Api | null; } export interface AstMigrationRelations {} export interface CheckConstraintRelations { @@ -1758,7 +1892,7 @@ export interface CompositeTypeRelations { schema?: Schema | null; } export interface CorsSettingRelations { - api?: Apis | null; + api?: Api | null; } export interface DatabaseRelations { checkConstraints?: ConnectionResult; @@ -1828,6 +1962,17 @@ export interface DomainVerificationRelations { domain?: Domain | null; managedDomain?: ManagedDomain | null; } +export interface EmailIdentityRelations { + providerAccount?: EmailProviderAccount | null; + emailSiteIdentities?: ConnectionResult; +} +export interface EmailProviderAccountRelations { + emailIdentitiesByProviderAccountId?: ConnectionResult; +} +export interface EmailSiteIdentityRelations { + emailIdentity?: EmailIdentity | null; + site?: Site | null; +} export interface EmbeddingChunkRelations { chunksTable?: Table | null; database?: Database | null; @@ -1896,20 +2041,20 @@ export interface PartitionRelations { partitionKey?: Field | null; table?: Table | null; } +export interface PlatformApiRelations { + platformApiSettingByApiId?: PlatformApiSetting | null; + platformCorsSettingByApiId?: PlatformCorsSetting | null; + platformApiSchemasByApiId?: ConnectionResult; +} export interface PlatformApiSchemaRelations { - api?: PlatformApis | null; + api?: PlatformApi | null; schema?: Schema | null; } export interface PlatformApiSettingRelations { - api?: PlatformApis | null; -} -export interface PlatformApisRelations { - platformApiSettingByApiId?: PlatformApiSetting | null; - platformCorsSettingByApiId?: PlatformCorsSetting | null; - platformApiSchemasByApiId?: ConnectionResult; + api?: PlatformApi | null; } export interface PlatformCorsSettingRelations { - api?: PlatformApis | null; + api?: PlatformApi | null; } export interface PlatformDomainRelations { platformDomainEventsByDomainId?: ConnectionResult; @@ -1924,6 +2069,17 @@ export interface PlatformDomainVerificationRelations { domain?: PlatformDomain | null; managedDomain?: PlatformManagedDomain | null; } +export interface PlatformEmailIdentityRelations { + providerAccount?: PlatformEmailProviderAccount | null; + platformEmailSiteIdentitiesByEmailIdentityId?: ConnectionResult; +} +export interface PlatformEmailProviderAccountRelations { + platformEmailIdentitiesByProviderAccountId?: ConnectionResult; +} +export interface PlatformEmailSiteIdentityRelations { + emailIdentity?: PlatformEmailIdentity | null; + site?: PlatformSite | null; +} export interface PlatformManagedDomainRelations { platformDomainEventsByManagedDomainId?: ConnectionResult; platformDomainVerificationsByManagedDomainId?: ConnectionResult; @@ -1935,6 +2091,7 @@ export interface PlatformSiteAppLinkRelations { site?: PlatformSite | null; } export interface PlatformSiteRelations { + platformEmailSiteIdentityBySiteId?: PlatformEmailSiteIdentity | null; platformSiteMetadatumBySiteId?: PlatformSiteMetadatum | null; platformSiteWebConfigBySiteId?: PlatformSiteWebConfig | null; platformPagesBySiteId?: ConnectionResult; @@ -2014,6 +2171,7 @@ export interface SiteAppLinkRelations { site?: Site | null; } export interface SiteRelations { + emailSiteIdentity?: EmailSiteIdentity | null; siteMetadatum?: SiteMetadatum | null; siteWebConfig?: SiteWebConfig | null; pages?: ConnectionResult; @@ -2139,9 +2297,9 @@ export interface WebauthnSettingRelations { userField?: Field | null; } // ============ Entity Types With Relations ============ +export type ApiWithRelations = Api & ApiRelations; export type ApiSchemaWithRelations = ApiSchema & ApiSchemaRelations; export type ApiSettingWithRelations = ApiSetting & ApiSettingRelations; -export type ApisWithRelations = Apis & ApisRelations; export type AstMigrationWithRelations = AstMigration & AstMigrationRelations; export type CheckConstraintWithRelations = CheckConstraint & CheckConstraintRelations; export type CompositeTypeWithRelations = CompositeType & CompositeTypeRelations; @@ -2155,6 +2313,10 @@ export type DomainWithRelations = Domain & DomainRelations; export type DomainEventWithRelations = DomainEvent & DomainEventRelations; export type DomainTypeWithRelations = DomainType & DomainTypeRelations; export type DomainVerificationWithRelations = DomainVerification & DomainVerificationRelations; +export type EmailIdentityWithRelations = EmailIdentity & EmailIdentityRelations; +export type EmailProviderAccountWithRelations = EmailProviderAccount & + EmailProviderAccountRelations; +export type EmailSiteIdentityWithRelations = EmailSiteIdentity & EmailSiteIdentityRelations; export type EmbeddingChunkWithRelations = EmbeddingChunk & EmbeddingChunkRelations; export type EnumWithRelations = Enum & EnumRelations; export type ExclusionConstraintWithRelations = ExclusionConstraint & ExclusionConstraintRelations; @@ -2173,14 +2335,20 @@ export type ManagedDomainWithRelations = ManagedDomain & ManagedDomainRelations; export type NodeTypeRegistryWithRelations = NodeTypeRegistry & NodeTypeRegistryRelations; export type PageWithRelations = Page & PageRelations; export type PartitionWithRelations = Partition & PartitionRelations; +export type PlatformApiWithRelations = PlatformApi & PlatformApiRelations; export type PlatformApiSchemaWithRelations = PlatformApiSchema & PlatformApiSchemaRelations; export type PlatformApiSettingWithRelations = PlatformApiSetting & PlatformApiSettingRelations; -export type PlatformApisWithRelations = PlatformApis & PlatformApisRelations; export type PlatformCorsSettingWithRelations = PlatformCorsSetting & PlatformCorsSettingRelations; export type PlatformDomainWithRelations = PlatformDomain & PlatformDomainRelations; export type PlatformDomainEventWithRelations = PlatformDomainEvent & PlatformDomainEventRelations; export type PlatformDomainVerificationWithRelations = PlatformDomainVerification & PlatformDomainVerificationRelations; +export type PlatformEmailIdentityWithRelations = PlatformEmailIdentity & + PlatformEmailIdentityRelations; +export type PlatformEmailProviderAccountWithRelations = PlatformEmailProviderAccount & + PlatformEmailProviderAccountRelations; +export type PlatformEmailSiteIdentityWithRelations = PlatformEmailSiteIdentity & + PlatformEmailSiteIdentityRelations; export type PlatformManagedDomainWithRelations = PlatformManagedDomain & PlatformManagedDomainRelations; export type PlatformPageWithRelations = PlatformPage & PlatformPageRelations; @@ -2230,6 +2398,33 @@ export type ViewRuleWithRelations = ViewRule & ViewRuleRelations; export type ViewTableWithRelations = ViewTable & ViewTableRelations; export type WebauthnSettingWithRelations = WebauthnSetting & WebauthnSettingRelations; // ============ Entity Select Types ============ +export type ApiSelect = { + anonRole?: boolean; + config?: boolean; + createdAt?: boolean; + databaseId?: boolean; + dbname?: boolean; + id?: boolean; + isPublished?: boolean; + name?: boolean; + roleName?: boolean; + updatedAt?: boolean; + apiSetting?: { + select: ApiSettingSelect; + }; + apiSchemas?: { + select: ApiSchemaSelect; + first?: number; + filter?: ApiSchemaFilter; + orderBy?: ApiSchemaOrderBy[]; + }; + corsSettings?: { + select: CorsSettingSelect; + first?: number; + filter?: CorsSettingFilter; + orderBy?: CorsSettingOrderBy[]; + }; +}; export type ApiSchemaSelect = { apiId?: boolean; createdAt?: boolean; @@ -2238,7 +2433,7 @@ export type ApiSchemaSelect = { schemaId?: boolean; updatedAt?: boolean; api?: { - select: ApisSelect; + select: ApiSelect; }; schema?: { select: SchemaSelect; @@ -2265,34 +2460,7 @@ export type ApiSettingSelect = { statementTimeoutMs?: boolean; updatedAt?: boolean; api?: { - select: ApisSelect; - }; -}; -export type ApisSelect = { - anonRole?: boolean; - config?: boolean; - createdAt?: boolean; - databaseId?: boolean; - dbname?: boolean; - id?: boolean; - isPublished?: boolean; - name?: boolean; - roleName?: boolean; - updatedAt?: boolean; - apiSettingByApiId?: { - select: ApiSettingSelect; - }; - apiSchemasByApiId?: { - select: ApiSchemaSelect; - first?: number; - filter?: ApiSchemaFilter; - orderBy?: ApiSchemaOrderBy[]; - }; - corsSettingsByApiId?: { - select: CorsSettingSelect; - first?: number; - filter?: CorsSettingFilter; - orderBy?: CorsSettingOrderBy[]; + select: ApiSelect; }; }; export type AstMigrationSelect = { @@ -2358,7 +2526,7 @@ export type CorsSettingSelect = { id?: boolean; updatedAt?: boolean; api?: { - select: ApisSelect; + select: ApiSelect; }; }; export type DatabaseSelect = { @@ -2759,6 +2927,68 @@ export type DomainVerificationSelect = { select: ManagedDomainSelect; }; }; +export type EmailIdentitySelect = { + createdAt?: boolean; + databaseId?: boolean; + fromAddress?: boolean; + fromName?: boolean; + id?: boolean; + isActive?: boolean; + isDefault?: boolean; + name?: boolean; + providerAccountId?: boolean; + replyToAddress?: boolean; + supportAddress?: boolean; + transportMode?: boolean; + updatedAt?: boolean; + providerAccount?: { + select: EmailProviderAccountSelect; + }; + emailSiteIdentities?: { + select: EmailSiteIdentitySelect; + first?: number; + filter?: EmailSiteIdentityFilter; + orderBy?: EmailSiteIdentityOrderBy[]; + }; +}; +export type EmailProviderAccountSelect = { + apiBaseUrl?: boolean; + createdAt?: boolean; + credentialsSecretName?: boolean; + databaseId?: boolean; + id?: boolean; + isActive?: boolean; + name?: boolean; + provider?: boolean; + providerAccountName?: boolean; + region?: boolean; + smtpHost?: boolean; + smtpPort?: boolean; + smtpSecure?: boolean; + smtpUser?: boolean; + updatedAt?: boolean; + webhookSigningSecretName?: boolean; + emailIdentitiesByProviderAccountId?: { + select: EmailIdentitySelect; + first?: number; + filter?: EmailIdentityFilter; + orderBy?: EmailIdentityOrderBy[]; + }; +}; +export type EmailSiteIdentitySelect = { + createdAt?: boolean; + databaseId?: boolean; + emailIdentityId?: boolean; + id?: boolean; + siteId?: boolean; + updatedAt?: boolean; + emailIdentity?: { + select: EmailIdentitySelect; + }; + site?: { + select: SiteSelect; + }; +}; export type EmbeddingChunkSelect = { chunkOverlap?: boolean; chunkSize?: boolean; @@ -3135,6 +3365,29 @@ export type PartitionSelect = { select: TableSelect; }; }; +export type PlatformApiSelect = { + anonRole?: boolean; + config?: boolean; + createdAt?: boolean; + dbname?: boolean; + id?: boolean; + isPublished?: boolean; + name?: boolean; + roleName?: boolean; + updatedAt?: boolean; + platformApiSettingByApiId?: { + select: PlatformApiSettingSelect; + }; + platformCorsSettingByApiId?: { + select: PlatformCorsSettingSelect; + }; + platformApiSchemasByApiId?: { + select: PlatformApiSchemaSelect; + first?: number; + filter?: PlatformApiSchemaFilter; + orderBy?: PlatformApiSchemaOrderBy[]; + }; +}; export type PlatformApiSchemaSelect = { apiId?: boolean; createdAt?: boolean; @@ -3142,7 +3395,7 @@ export type PlatformApiSchemaSelect = { schemaId?: boolean; updatedAt?: boolean; api?: { - select: PlatformApisSelect; + select: PlatformApiSelect; }; schema?: { select: SchemaSelect; @@ -3168,30 +3421,7 @@ export type PlatformApiSettingSelect = { statementTimeoutMs?: boolean; updatedAt?: boolean; api?: { - select: PlatformApisSelect; - }; -}; -export type PlatformApisSelect = { - anonRole?: boolean; - config?: boolean; - createdAt?: boolean; - dbname?: boolean; - id?: boolean; - isPublished?: boolean; - name?: boolean; - roleName?: boolean; - updatedAt?: boolean; - platformApiSettingByApiId?: { - select: PlatformApiSettingSelect; - }; - platformCorsSettingByApiId?: { - select: PlatformCorsSettingSelect; - }; - platformApiSchemasByApiId?: { - select: PlatformApiSchemaSelect; - first?: number; - filter?: PlatformApiSchemaFilter; - orderBy?: PlatformApiSchemaOrderBy[]; + select: PlatformApiSelect; }; }; export type PlatformCorsSettingSelect = { @@ -3201,7 +3431,7 @@ export type PlatformCorsSettingSelect = { id?: boolean; updatedAt?: boolean; api?: { - select: PlatformApisSelect; + select: PlatformApiSelect; }; }; export type PlatformDomainSelect = { @@ -3276,6 +3506,65 @@ export type PlatformDomainVerificationSelect = { select: PlatformManagedDomainSelect; }; }; +export type PlatformEmailIdentitySelect = { + createdAt?: boolean; + fromAddress?: boolean; + fromName?: boolean; + id?: boolean; + isActive?: boolean; + isDefault?: boolean; + name?: boolean; + providerAccountId?: boolean; + replyToAddress?: boolean; + supportAddress?: boolean; + transportMode?: boolean; + updatedAt?: boolean; + providerAccount?: { + select: PlatformEmailProviderAccountSelect; + }; + platformEmailSiteIdentitiesByEmailIdentityId?: { + select: PlatformEmailSiteIdentitySelect; + first?: number; + filter?: PlatformEmailSiteIdentityFilter; + orderBy?: PlatformEmailSiteIdentityOrderBy[]; + }; +}; +export type PlatformEmailProviderAccountSelect = { + apiBaseUrl?: boolean; + createdAt?: boolean; + credentialsSecretName?: boolean; + id?: boolean; + isActive?: boolean; + name?: boolean; + provider?: boolean; + providerAccountName?: boolean; + region?: boolean; + smtpHost?: boolean; + smtpPort?: boolean; + smtpSecure?: boolean; + smtpUser?: boolean; + updatedAt?: boolean; + webhookSigningSecretName?: boolean; + platformEmailIdentitiesByProviderAccountId?: { + select: PlatformEmailIdentitySelect; + first?: number; + filter?: PlatformEmailIdentityFilter; + orderBy?: PlatformEmailIdentityOrderBy[]; + }; +}; +export type PlatformEmailSiteIdentitySelect = { + createdAt?: boolean; + emailIdentityId?: boolean; + id?: boolean; + siteId?: boolean; + updatedAt?: boolean; + emailIdentity?: { + select: PlatformEmailIdentitySelect; + }; + site?: { + select: PlatformSiteSelect; + }; +}; export type PlatformManagedDomainSelect = { allowPublicUsage?: boolean; annotations?: boolean; @@ -3344,6 +3633,9 @@ export type PlatformSiteSelect = { resourceId?: boolean; title?: boolean; updatedAt?: boolean; + platformEmailSiteIdentityBySiteId?: { + select: PlatformEmailSiteIdentitySelect; + }; platformSiteMetadatumBySiteId?: { select: PlatformSiteMetadatumSelect; }; @@ -3748,6 +4040,9 @@ export type SiteSelect = { resourceId?: boolean; title?: boolean; updatedAt?: boolean; + emailSiteIdentity?: { + select: EmailSiteIdentitySelect; + }; siteMetadatum?: { select: SiteMetadatumSelect; }; @@ -4365,11 +4660,51 @@ export type WebauthnSettingSelect = { }; }; // ============ Table Filter Types ============ +export interface ApiFilter { + /** Checks for all expressions in this list. */ + and?: ApiFilter[]; + /** Filter by the object’s `anonRole` field. */ + anonRole?: StringFilter; + /** Filter by the object’s `apiSchemas` relation. */ + apiSchemas?: ApiToManyApiSchemaFilter; + /** `apiSchemas` exist. */ + apiSchemasExist?: boolean; + /** Filter by the object’s `apiSetting` relation. */ + apiSetting?: ApiSettingFilter; + /** A related `apiSetting` exists. */ + apiSettingExists?: boolean; + /** Filter by the object’s `config` field. */ + config?: JSONFilter; + /** Filter by the object’s `corsSettings` relation. */ + corsSettings?: ApiToManyCorsSettingFilter; + /** `corsSettings` exist. */ + corsSettingsExist?: boolean; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `dbname` field. */ + dbname?: StringFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `isPublished` field. */ + isPublished?: BooleanFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Negates the expression. */ + not?: ApiFilter; + /** Checks for any expressions in this list. */ + or?: ApiFilter[]; + /** Filter by the object’s `roleName` field. */ + roleName?: StringFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; +} export interface ApiSchemaFilter { /** Checks for all expressions in this list. */ and?: ApiSchemaFilter[]; /** Filter by the object’s `api` relation. */ - api?: ApisFilter; + api?: ApiFilter; /** Filter by the object’s `apiId` field. */ apiId?: UUIDFilter; /** Filter by the object’s `createdAt` field. */ @@ -4393,7 +4728,7 @@ export interface ApiSettingFilter { /** Checks for all expressions in this list. */ and?: ApiSettingFilter[]; /** Filter by the object’s `api` relation. */ - api?: ApisFilter; + api?: ApiFilter; /** Filter by the object’s `apiId` field. */ apiId?: UUIDFilter; /** Filter by the object’s `createdAt` field. */ @@ -4437,46 +4772,6 @@ export interface ApiSettingFilter { /** Filter by the object’s `updatedAt` field. */ updatedAt?: DatetimeFilter; } -export interface ApisFilter { - /** Checks for all expressions in this list. */ - and?: ApisFilter[]; - /** Filter by the object’s `anonRole` field. */ - anonRole?: StringFilter; - /** Filter by the object’s `apiSchemasByApiId` relation. */ - apiSchemasByApiId?: ApisToManyApiSchemaFilter; - /** `apiSchemasByApiId` exist. */ - apiSchemasByApiIdExist?: boolean; - /** Filter by the object’s `apiSettingByApiId` relation. */ - apiSettingByApiId?: ApiSettingFilter; - /** A related `apiSettingByApiId` exists. */ - apiSettingByApiIdExists?: boolean; - /** Filter by the object’s `config` field. */ - config?: JSONFilter; - /** Filter by the object’s `corsSettingsByApiId` relation. */ - corsSettingsByApiId?: ApisToManyCorsSettingFilter; - /** `corsSettingsByApiId` exist. */ - corsSettingsByApiIdExist?: boolean; - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Filter by the object’s `dbname` field. */ - dbname?: StringFilter; - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `isPublished` field. */ - isPublished?: BooleanFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Negates the expression. */ - not?: ApisFilter; - /** Checks for any expressions in this list. */ - or?: ApisFilter[]; - /** Filter by the object’s `roleName` field. */ - roleName?: StringFilter; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; -} export interface AstMigrationFilter { /** Filter by the object’s `actionId` field. */ actionId?: UUIDFilter; @@ -4589,7 +4884,7 @@ export interface CorsSettingFilter { /** Checks for all expressions in this list. */ and?: CorsSettingFilter[]; /** Filter by the object’s `api` relation. */ - api?: ApisFilter; + api?: ApiFilter; /** A related `api` exists. */ apiExists?: boolean; /** Filter by the object’s `apiId` field. */ @@ -5093,6 +5388,116 @@ export interface DomainVerificationFilter { /** Filter by the object’s `verifiedAt` field. */ verifiedAt?: DatetimeFilter; } +export interface EmailIdentityFilter { + /** Checks for all expressions in this list. */ + and?: EmailIdentityFilter[]; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `emailSiteIdentities` relation. */ + emailSiteIdentities?: EmailIdentityToManyEmailSiteIdentityFilter; + /** `emailSiteIdentities` exist. */ + emailSiteIdentitiesExist?: boolean; + /** Filter by the object’s `fromAddress` field. */ + fromAddress?: StringFilter; + /** Filter by the object’s `fromName` field. */ + fromName?: StringFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `isActive` field. */ + isActive?: BooleanFilter; + /** Filter by the object’s `isDefault` field. */ + isDefault?: BooleanFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Negates the expression. */ + not?: EmailIdentityFilter; + /** Checks for any expressions in this list. */ + or?: EmailIdentityFilter[]; + /** Filter by the object’s `providerAccount` relation. */ + providerAccount?: EmailProviderAccountFilter; + /** A related `providerAccount` exists. */ + providerAccountExists?: boolean; + /** Filter by the object’s `providerAccountId` field. */ + providerAccountId?: UUIDFilter; + /** Filter by the object’s `replyToAddress` field. */ + replyToAddress?: StringFilter; + /** Filter by the object’s `supportAddress` field. */ + supportAddress?: StringFilter; + /** Filter by the object’s `transportMode` field. */ + transportMode?: StringFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; +} +export interface EmailProviderAccountFilter { + /** Checks for all expressions in this list. */ + and?: EmailProviderAccountFilter[]; + /** Filter by the object’s `apiBaseUrl` field. */ + apiBaseUrl?: StringFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `credentialsSecretName` field. */ + credentialsSecretName?: StringFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `emailIdentitiesByProviderAccountId` relation. */ + emailIdentitiesByProviderAccountId?: EmailProviderAccountToManyEmailIdentityFilter; + /** `emailIdentitiesByProviderAccountId` exist. */ + emailIdentitiesByProviderAccountIdExist?: boolean; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `isActive` field. */ + isActive?: BooleanFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Negates the expression. */ + not?: EmailProviderAccountFilter; + /** Checks for any expressions in this list. */ + or?: EmailProviderAccountFilter[]; + /** Filter by the object’s `provider` field. */ + provider?: StringFilter; + /** Filter by the object’s `providerAccountName` field. */ + providerAccountName?: StringFilter; + /** Filter by the object’s `region` field. */ + region?: StringFilter; + /** Filter by the object’s `smtpHost` field. */ + smtpHost?: StringFilter; + /** Filter by the object’s `smtpPort` field. */ + smtpPort?: IntFilter; + /** Filter by the object’s `smtpSecure` field. */ + smtpSecure?: BooleanFilter; + /** Filter by the object’s `smtpUser` field. */ + smtpUser?: StringFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `webhookSigningSecretName` field. */ + webhookSigningSecretName?: StringFilter; +} +export interface EmailSiteIdentityFilter { + /** Checks for all expressions in this list. */ + and?: EmailSiteIdentityFilter[]; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `emailIdentity` relation. */ + emailIdentity?: EmailIdentityFilter; + /** Filter by the object’s `emailIdentityId` field. */ + emailIdentityId?: UUIDFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Negates the expression. */ + not?: EmailSiteIdentityFilter; + /** Checks for any expressions in this list. */ + or?: EmailSiteIdentityFilter[]; + /** Filter by the object’s `site` relation. */ + site?: SiteFilter; + /** Filter by the object’s `siteId` field. */ + siteId?: UUIDFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; +} export interface EmbeddingChunkFilter { /** Checks for all expressions in this list. */ and?: EmbeddingChunkFilter[]; @@ -5727,11 +6132,49 @@ export interface PartitionFilter { /** Filter by the object’s `updatedAt` field. */ updatedAt?: DatetimeFilter; } +export interface PlatformApiFilter { + /** Checks for all expressions in this list. */ + and?: PlatformApiFilter[]; + /** Filter by the object’s `anonRole` field. */ + anonRole?: StringFilter; + /** Filter by the object’s `config` field. */ + config?: JSONFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `dbname` field. */ + dbname?: StringFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `isPublished` field. */ + isPublished?: BooleanFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Negates the expression. */ + not?: PlatformApiFilter; + /** Checks for any expressions in this list. */ + or?: PlatformApiFilter[]; + /** Filter by the object’s `platformApiSchemasByApiId` relation. */ + platformApiSchemasByApiId?: PlatformApiToManyPlatformApiSchemaFilter; + /** `platformApiSchemasByApiId` exist. */ + platformApiSchemasByApiIdExist?: boolean; + /** Filter by the object’s `platformApiSettingByApiId` relation. */ + platformApiSettingByApiId?: PlatformApiSettingFilter; + /** A related `platformApiSettingByApiId` exists. */ + platformApiSettingByApiIdExists?: boolean; + /** Filter by the object’s `platformCorsSettingByApiId` relation. */ + platformCorsSettingByApiId?: PlatformCorsSettingFilter; + /** A related `platformCorsSettingByApiId` exists. */ + platformCorsSettingByApiIdExists?: boolean; + /** Filter by the object’s `roleName` field. */ + roleName?: StringFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; +} export interface PlatformApiSchemaFilter { /** Checks for all expressions in this list. */ and?: PlatformApiSchemaFilter[]; /** Filter by the object’s `api` relation. */ - api?: PlatformApisFilter; + api?: PlatformApiFilter; /** Filter by the object’s `apiId` field. */ apiId?: UUIDFilter; /** Filter by the object’s `createdAt` field. */ @@ -5753,7 +6196,7 @@ export interface PlatformApiSettingFilter { /** Checks for all expressions in this list. */ and?: PlatformApiSettingFilter[]; /** Filter by the object’s `api` relation. */ - api?: PlatformApisFilter; + api?: PlatformApiFilter; /** Filter by the object’s `apiId` field. */ apiId?: UUIDFilter; /** Filter by the object’s `createdAt` field. */ @@ -5795,51 +6238,13 @@ export interface PlatformApiSettingFilter { /** Filter by the object’s `updatedAt` field. */ updatedAt?: DatetimeFilter; } -export interface PlatformApisFilter { - /** Checks for all expressions in this list. */ - and?: PlatformApisFilter[]; - /** Filter by the object’s `anonRole` field. */ - anonRole?: StringFilter; - /** Filter by the object’s `config` field. */ - config?: JSONFilter; - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; - /** Filter by the object’s `dbname` field. */ - dbname?: StringFilter; - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `isPublished` field. */ - isPublished?: BooleanFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Negates the expression. */ - not?: PlatformApisFilter; - /** Checks for any expressions in this list. */ - or?: PlatformApisFilter[]; - /** Filter by the object’s `platformApiSchemasByApiId` relation. */ - platformApiSchemasByApiId?: PlatformApisToManyPlatformApiSchemaFilter; - /** `platformApiSchemasByApiId` exist. */ - platformApiSchemasByApiIdExist?: boolean; - /** Filter by the object’s `platformApiSettingByApiId` relation. */ - platformApiSettingByApiId?: PlatformApiSettingFilter; - /** A related `platformApiSettingByApiId` exists. */ - platformApiSettingByApiIdExists?: boolean; - /** Filter by the object’s `platformCorsSettingByApiId` relation. */ - platformCorsSettingByApiId?: PlatformCorsSettingFilter; - /** A related `platformCorsSettingByApiId` exists. */ - platformCorsSettingByApiIdExists?: boolean; - /** Filter by the object’s `roleName` field. */ - roleName?: StringFilter; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; -} export interface PlatformCorsSettingFilter { /** Filter by the object’s `allowedOrigins` field. */ allowedOrigins?: StringListFilter; /** Checks for all expressions in this list. */ and?: PlatformCorsSettingFilter[]; /** Filter by the object’s `api` relation. */ - api?: PlatformApisFilter; + api?: PlatformApiFilter; /** A related `api` exists. */ apiExists?: boolean; /** Filter by the object’s `apiId` field. */ @@ -5985,6 +6390,110 @@ export interface PlatformDomainVerificationFilter { /** Filter by the object’s `verifiedAt` field. */ verifiedAt?: DatetimeFilter; } +export interface PlatformEmailIdentityFilter { + /** Checks for all expressions in this list. */ + and?: PlatformEmailIdentityFilter[]; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `fromAddress` field. */ + fromAddress?: StringFilter; + /** Filter by the object’s `fromName` field. */ + fromName?: StringFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `isActive` field. */ + isActive?: BooleanFilter; + /** Filter by the object’s `isDefault` field. */ + isDefault?: BooleanFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Negates the expression. */ + not?: PlatformEmailIdentityFilter; + /** Checks for any expressions in this list. */ + or?: PlatformEmailIdentityFilter[]; + /** Filter by the object’s `platformEmailSiteIdentitiesByEmailIdentityId` relation. */ + platformEmailSiteIdentitiesByEmailIdentityId?: PlatformEmailIdentityToManyPlatformEmailSiteIdentityFilter; + /** `platformEmailSiteIdentitiesByEmailIdentityId` exist. */ + platformEmailSiteIdentitiesByEmailIdentityIdExist?: boolean; + /** Filter by the object’s `providerAccount` relation. */ + providerAccount?: PlatformEmailProviderAccountFilter; + /** A related `providerAccount` exists. */ + providerAccountExists?: boolean; + /** Filter by the object’s `providerAccountId` field. */ + providerAccountId?: UUIDFilter; + /** Filter by the object’s `replyToAddress` field. */ + replyToAddress?: StringFilter; + /** Filter by the object’s `supportAddress` field. */ + supportAddress?: StringFilter; + /** Filter by the object’s `transportMode` field. */ + transportMode?: StringFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; +} +export interface PlatformEmailProviderAccountFilter { + /** Checks for all expressions in this list. */ + and?: PlatformEmailProviderAccountFilter[]; + /** Filter by the object’s `apiBaseUrl` field. */ + apiBaseUrl?: StringFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `credentialsSecretName` field. */ + credentialsSecretName?: StringFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `isActive` field. */ + isActive?: BooleanFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Negates the expression. */ + not?: PlatformEmailProviderAccountFilter; + /** Checks for any expressions in this list. */ + or?: PlatformEmailProviderAccountFilter[]; + /** Filter by the object’s `platformEmailIdentitiesByProviderAccountId` relation. */ + platformEmailIdentitiesByProviderAccountId?: PlatformEmailProviderAccountToManyPlatformEmailIdentityFilter; + /** `platformEmailIdentitiesByProviderAccountId` exist. */ + platformEmailIdentitiesByProviderAccountIdExist?: boolean; + /** Filter by the object’s `provider` field. */ + provider?: StringFilter; + /** Filter by the object’s `providerAccountName` field. */ + providerAccountName?: StringFilter; + /** Filter by the object’s `region` field. */ + region?: StringFilter; + /** Filter by the object’s `smtpHost` field. */ + smtpHost?: StringFilter; + /** Filter by the object’s `smtpPort` field. */ + smtpPort?: IntFilter; + /** Filter by the object’s `smtpSecure` field. */ + smtpSecure?: BooleanFilter; + /** Filter by the object’s `smtpUser` field. */ + smtpUser?: StringFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `webhookSigningSecretName` field. */ + webhookSigningSecretName?: StringFilter; +} +export interface PlatformEmailSiteIdentityFilter { + /** Checks for all expressions in this list. */ + and?: PlatformEmailSiteIdentityFilter[]; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `emailIdentity` relation. */ + emailIdentity?: PlatformEmailIdentityFilter; + /** Filter by the object’s `emailIdentityId` field. */ + emailIdentityId?: UUIDFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Negates the expression. */ + not?: PlatformEmailSiteIdentityFilter; + /** Checks for any expressions in this list. */ + or?: PlatformEmailSiteIdentityFilter[]; + /** Filter by the object’s `site` relation. */ + site?: PlatformSiteFilter; + /** Filter by the object’s `siteId` field. */ + siteId?: UUIDFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; +} export interface PlatformManagedDomainFilter { /** Filter by the object’s `allowPublicUsage` field. */ allowPublicUsage?: BooleanFilter; @@ -6108,6 +6617,10 @@ export interface PlatformSiteFilter { not?: PlatformSiteFilter; /** Checks for any expressions in this list. */ or?: PlatformSiteFilter[]; + /** Filter by the object’s `platformEmailSiteIdentityBySiteId` relation. */ + platformEmailSiteIdentityBySiteId?: PlatformEmailSiteIdentityFilter; + /** A related `platformEmailSiteIdentityBySiteId` exists. */ + platformEmailSiteIdentityBySiteIdExists?: boolean; /** Filter by the object’s `platformPagesBySiteId` relation. */ platformPagesBySiteId?: PlatformSiteToManyPlatformPageFilter; /** `platformPagesBySiteId` exist. */ @@ -6742,6 +7255,10 @@ export interface SiteFilter { databaseId?: UUIDFilter; /** Filter by the object’s `description` field. */ description?: StringFilter; + /** Filter by the object’s `emailSiteIdentity` relation. */ + emailSiteIdentity?: EmailSiteIdentityFilter; + /** A related `emailSiteIdentity` exists. */ + emailSiteIdentityExists?: boolean; /** Filter by the object’s `id` field. */ id?: UUIDFilter; /** Filter by the object’s `installationId` field. */ @@ -7642,30 +8159,54 @@ export interface WebauthnSettingFilter { userFieldId?: UUIDFilter; } // ============ OrderBy Types ============ -export type ApiSchemaOrderBy = - | 'API_ID_ASC' - | 'API_ID_DESC' +export type ApiOrderBy = + | 'ANON_ROLE_ASC' + | 'ANON_ROLE_DESC' + | 'CONFIG_ASC' + | 'CONFIG_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' + | 'DBNAME_ASC' + | 'DBNAME_DESC' | 'ID_ASC' | 'ID_DESC' + | 'IS_PUBLISHED_ASC' + | 'IS_PUBLISHED_DESC' + | 'NAME_ASC' + | 'NAME_DESC' | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' - | 'SCHEMA_ID_ASC' - | 'SCHEMA_ID_DESC' + | 'ROLE_NAME_ASC' + | 'ROLE_NAME_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC'; -export type ApiSettingOrderBy = +export type ApiSchemaOrderBy = | 'API_ID_ASC' | 'API_ID_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' - | 'ENABLE_AGGREGATES_ASC' + | 'ID_ASC' + | 'ID_DESC' + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'SCHEMA_ID_ASC' + | 'SCHEMA_ID_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC'; +export type ApiSettingOrderBy = + | 'API_ID_ASC' + | 'API_ID_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'ENABLE_AGGREGATES_ASC' | 'ENABLE_AGGREGATES_DESC' | 'ENABLE_BULK_ASC' | 'ENABLE_BULK_DESC' @@ -7700,30 +8241,6 @@ export type ApiSettingOrderBy = | 'STATEMENT_TIMEOUT_MS_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC'; -export type ApisOrderBy = - | 'ANON_ROLE_ASC' - | 'ANON_ROLE_DESC' - | 'CONFIG_ASC' - | 'CONFIG_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' - | 'DBNAME_ASC' - | 'DBNAME_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'IS_PUBLISHED_ASC' - | 'IS_PUBLISHED_DESC' - | 'NAME_ASC' - | 'NAME_DESC' - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ROLE_NAME_ASC' - | 'ROLE_NAME_DESC' - | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC'; export type AstMigrationOrderBy = | 'ACTION_ID_ASC' | 'ACTION_ID_DESC' @@ -8086,6 +8603,88 @@ export type DomainVerificationOrderBy = | 'UPDATED_AT_DESC' | 'VERIFIED_AT_ASC' | 'VERIFIED_AT_DESC'; +export type EmailIdentityOrderBy = + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'FROM_ADDRESS_ASC' + | 'FROM_ADDRESS_DESC' + | 'FROM_NAME_ASC' + | 'FROM_NAME_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'IS_ACTIVE_ASC' + | 'IS_ACTIVE_DESC' + | 'IS_DEFAULT_ASC' + | 'IS_DEFAULT_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'PROVIDER_ACCOUNT_ID_ASC' + | 'PROVIDER_ACCOUNT_ID_DESC' + | 'REPLY_TO_ADDRESS_ASC' + | 'REPLY_TO_ADDRESS_DESC' + | 'SUPPORT_ADDRESS_ASC' + | 'SUPPORT_ADDRESS_DESC' + | 'TRANSPORT_MODE_ASC' + | 'TRANSPORT_MODE_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC'; +export type EmailProviderAccountOrderBy = + | 'API_BASE_URL_ASC' + | 'API_BASE_URL_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'CREDENTIALS_SECRET_NAME_ASC' + | 'CREDENTIALS_SECRET_NAME_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'IS_ACTIVE_ASC' + | 'IS_ACTIVE_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'PROVIDER_ACCOUNT_NAME_ASC' + | 'PROVIDER_ACCOUNT_NAME_DESC' + | 'PROVIDER_ASC' + | 'PROVIDER_DESC' + | 'REGION_ASC' + | 'REGION_DESC' + | 'SMTP_HOST_ASC' + | 'SMTP_HOST_DESC' + | 'SMTP_PORT_ASC' + | 'SMTP_PORT_DESC' + | 'SMTP_SECURE_ASC' + | 'SMTP_SECURE_DESC' + | 'SMTP_USER_ASC' + | 'SMTP_USER_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC' + | 'WEBHOOK_SIGNING_SECRET_NAME_ASC' + | 'WEBHOOK_SIGNING_SECRET_NAME_DESC'; +export type EmailSiteIdentityOrderBy = + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'EMAIL_IDENTITY_ID_ASC' + | 'EMAIL_IDENTITY_ID_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'SITE_ID_ASC' + | 'SITE_ID_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC'; export type EmbeddingChunkOrderBy = | 'CHUNKING_TASK_NAME_ASC' | 'CHUNKING_TASK_NAME_DESC' @@ -8556,6 +9155,28 @@ export type PartitionOrderBy = | 'TABLE_ID_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC'; +export type PlatformApiOrderBy = + | 'ANON_ROLE_ASC' + | 'ANON_ROLE_DESC' + | 'CONFIG_ASC' + | 'CONFIG_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'DBNAME_ASC' + | 'DBNAME_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'IS_PUBLISHED_ASC' + | 'IS_PUBLISHED_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ROLE_NAME_ASC' + | 'ROLE_NAME_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC'; export type PlatformApiSchemaOrderBy = | 'API_ID_ASC' | 'API_ID_DESC' @@ -8610,28 +9231,6 @@ export type PlatformApiSettingOrderBy = | 'STATEMENT_TIMEOUT_MS_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC'; -export type PlatformApisOrderBy = - | 'ANON_ROLE_ASC' - | 'ANON_ROLE_DESC' - | 'CONFIG_ASC' - | 'CONFIG_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'DBNAME_ASC' - | 'DBNAME_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'IS_PUBLISHED_ASC' - | 'IS_PUBLISHED_DESC' - | 'NAME_ASC' - | 'NAME_DESC' - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ROLE_NAME_ASC' - | 'ROLE_NAME_DESC' - | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC'; export type PlatformCorsSettingOrderBy = | 'ALLOWED_ORIGINS_ASC' | 'ALLOWED_ORIGINS_DESC' @@ -8736,6 +9335,82 @@ export type PlatformDomainVerificationOrderBy = | 'UPDATED_AT_DESC' | 'VERIFIED_AT_ASC' | 'VERIFIED_AT_DESC'; +export type PlatformEmailIdentityOrderBy = + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'FROM_ADDRESS_ASC' + | 'FROM_ADDRESS_DESC' + | 'FROM_NAME_ASC' + | 'FROM_NAME_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'IS_ACTIVE_ASC' + | 'IS_ACTIVE_DESC' + | 'IS_DEFAULT_ASC' + | 'IS_DEFAULT_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'PROVIDER_ACCOUNT_ID_ASC' + | 'PROVIDER_ACCOUNT_ID_DESC' + | 'REPLY_TO_ADDRESS_ASC' + | 'REPLY_TO_ADDRESS_DESC' + | 'SUPPORT_ADDRESS_ASC' + | 'SUPPORT_ADDRESS_DESC' + | 'TRANSPORT_MODE_ASC' + | 'TRANSPORT_MODE_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC'; +export type PlatformEmailProviderAccountOrderBy = + | 'API_BASE_URL_ASC' + | 'API_BASE_URL_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'CREDENTIALS_SECRET_NAME_ASC' + | 'CREDENTIALS_SECRET_NAME_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'IS_ACTIVE_ASC' + | 'IS_ACTIVE_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'PROVIDER_ACCOUNT_NAME_ASC' + | 'PROVIDER_ACCOUNT_NAME_DESC' + | 'PROVIDER_ASC' + | 'PROVIDER_DESC' + | 'REGION_ASC' + | 'REGION_DESC' + | 'SMTP_HOST_ASC' + | 'SMTP_HOST_DESC' + | 'SMTP_PORT_ASC' + | 'SMTP_PORT_DESC' + | 'SMTP_SECURE_ASC' + | 'SMTP_SECURE_DESC' + | 'SMTP_USER_ASC' + | 'SMTP_USER_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC' + | 'WEBHOOK_SIGNING_SECRET_NAME_ASC' + | 'WEBHOOK_SIGNING_SECRET_NAME_DESC'; +export type PlatformEmailSiteIdentityOrderBy = + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'EMAIL_IDENTITY_ID_ASC' + | 'EMAIL_IDENTITY_ID_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'SITE_ID_ASC' + | 'SITE_ID_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC'; export type PlatformManagedDomainOrderBy = | 'ALLOW_PUBLIC_USAGE_ASC' | 'ALLOW_PUBLIC_USAGE_DESC' @@ -9801,6 +10476,36 @@ export type WebauthnSettingOrderBy = | 'USER_FIELD_ID_ASC' | 'USER_FIELD_ID_DESC'; // ============ CRUD Input Types ============ +export interface CreateApiInput { + clientMutationId?: string; + api: { + anonRole?: string; + config?: Record; + databaseId: string; + dbname?: string; + isPublished?: boolean; + name: string; + roleName?: string; + }; +} +export interface ApiPatch { + anonRole?: string | null; + config?: Record | null; + databaseId?: string | null; + dbname?: string | null; + isPublished?: boolean | null; + name?: string | null; + roleName?: string | null; +} +export interface UpdateApiInput { + clientMutationId?: string; + id: string; + apiPatch: ApiPatch; +} +export interface DeleteApiInput { + clientMutationId?: string; + id: string; +} export interface CreateApiSchemaInput { clientMutationId?: string; apiSchema: { @@ -9871,36 +10576,6 @@ export interface DeleteApiSettingInput { clientMutationId?: string; id: string; } -export interface CreateApisInput { - clientMutationId?: string; - apis: { - anonRole?: string; - config?: Record; - databaseId: string; - dbname?: string; - isPublished?: boolean; - name: string; - roleName?: string; - }; -} -export interface ApisPatch { - anonRole?: string | null; - config?: Record | null; - databaseId?: string | null; - dbname?: string | null; - isPublished?: boolean | null; - name?: string | null; - roleName?: string | null; -} -export interface UpdateApisInput { - clientMutationId?: string; - id: string; - apisPatch: ApisPatch; -} -export interface DeleteApisInput { - clientMutationId?: string; - id: string; -} export interface CreateAstMigrationInput { clientMutationId?: string; astMigration: { @@ -10357,6 +11032,106 @@ export interface DeleteDomainVerificationInput { clientMutationId?: string; id: string; } +export interface CreateEmailIdentityInput { + clientMutationId?: string; + emailIdentity: { + databaseId: string; + fromAddress: string; + fromName?: string; + isActive?: boolean; + isDefault?: boolean; + name: string; + providerAccountId?: string; + replyToAddress?: string; + supportAddress?: string; + transportMode?: string; + }; +} +export interface EmailIdentityPatch { + databaseId?: string | null; + fromAddress?: string | null; + fromName?: string | null; + isActive?: boolean | null; + isDefault?: boolean | null; + name?: string | null; + providerAccountId?: string | null; + replyToAddress?: string | null; + supportAddress?: string | null; + transportMode?: string | null; +} +export interface UpdateEmailIdentityInput { + clientMutationId?: string; + id: string; + emailIdentityPatch: EmailIdentityPatch; +} +export interface DeleteEmailIdentityInput { + clientMutationId?: string; + id: string; +} +export interface CreateEmailProviderAccountInput { + clientMutationId?: string; + emailProviderAccount: { + apiBaseUrl?: string; + credentialsSecretName: string; + databaseId: string; + isActive?: boolean; + name: string; + provider: string; + providerAccountName?: string; + region?: string; + smtpHost?: string; + smtpPort?: number; + smtpSecure?: boolean; + smtpUser?: string; + webhookSigningSecretName?: string; + }; +} +export interface EmailProviderAccountPatch { + apiBaseUrl?: string | null; + credentialsSecretName?: string | null; + databaseId?: string | null; + isActive?: boolean | null; + name?: string | null; + provider?: string | null; + providerAccountName?: string | null; + region?: string | null; + smtpHost?: string | null; + smtpPort?: number | null; + smtpSecure?: boolean | null; + smtpUser?: string | null; + webhookSigningSecretName?: string | null; +} +export interface UpdateEmailProviderAccountInput { + clientMutationId?: string; + id: string; + emailProviderAccountPatch: EmailProviderAccountPatch; +} +export interface DeleteEmailProviderAccountInput { + clientMutationId?: string; + id: string; +} +export interface CreateEmailSiteIdentityInput { + clientMutationId?: string; + emailSiteIdentity: { + databaseId: string; + emailIdentityId: string; + siteId: string; + }; +} +export interface EmailSiteIdentityPatch { + databaseId?: string | null; + emailIdentityId?: string | null; + siteId?: string | null; +} +export interface UpdateEmailSiteIdentityInput { + clientMutationId?: string; + id: string; + emailSiteIdentityPatch: EmailSiteIdentityPatch; +} +export interface DeleteEmailSiteIdentityInput { + clientMutationId?: string; + id: string; +} export interface CreateEmbeddingChunkInput { clientMutationId?: string; embeddingChunk: { @@ -10939,10 +11714,38 @@ export interface DeletePartitionInput { clientMutationId?: string; id: string; } -export interface CreatePlatformApiSchemaInput { +export interface CreatePlatformApiInput { clientMutationId?: string; - platformApiSchema: { - apiId: string; + platformApi: { + anonRole?: string; + config?: Record; + dbname?: string; + isPublished?: boolean; + name: string; + roleName?: string; + }; +} +export interface PlatformApiPatch { + anonRole?: string | null; + config?: Record | null; + dbname?: string | null; + isPublished?: boolean | null; + name?: string | null; + roleName?: string | null; +} +export interface UpdatePlatformApiInput { + clientMutationId?: string; + id: string; + platformApiPatch: PlatformApiPatch; +} +export interface DeletePlatformApiInput { + clientMutationId?: string; + id: string; +} +export interface CreatePlatformApiSchemaInput { + clientMutationId?: string; + platformApiSchema: { + apiId: string; schemaId: string; }; } @@ -11005,34 +11808,6 @@ export interface DeletePlatformApiSettingInput { clientMutationId?: string; id: string; } -export interface CreatePlatformApisInput { - clientMutationId?: string; - platformApis: { - anonRole?: string; - config?: Record; - dbname?: string; - isPublished?: boolean; - name: string; - roleName?: string; - }; -} -export interface PlatformApisPatch { - anonRole?: string | null; - config?: Record | null; - dbname?: string | null; - isPublished?: boolean | null; - name?: string | null; - roleName?: string | null; -} -export interface UpdatePlatformApisInput { - clientMutationId?: string; - id: string; - platformApisPatch: PlatformApisPatch; -} -export interface DeletePlatformApisInput { - clientMutationId?: string; - id: string; -} export interface CreatePlatformCorsSettingInput { clientMutationId?: string; platformCorsSetting: { @@ -11161,6 +11936,100 @@ export interface DeletePlatformDomainVerificationInput { clientMutationId?: string; id: string; } +export interface CreatePlatformEmailIdentityInput { + clientMutationId?: string; + platformEmailIdentity: { + fromAddress: string; + fromName?: string; + isActive?: boolean; + isDefault?: boolean; + name: string; + providerAccountId?: string; + replyToAddress?: string; + supportAddress?: string; + transportMode?: string; + }; +} +export interface PlatformEmailIdentityPatch { + fromAddress?: string | null; + fromName?: string | null; + isActive?: boolean | null; + isDefault?: boolean | null; + name?: string | null; + providerAccountId?: string | null; + replyToAddress?: string | null; + supportAddress?: string | null; + transportMode?: string | null; +} +export interface UpdatePlatformEmailIdentityInput { + clientMutationId?: string; + id: string; + platformEmailIdentityPatch: PlatformEmailIdentityPatch; +} +export interface DeletePlatformEmailIdentityInput { + clientMutationId?: string; + id: string; +} +export interface CreatePlatformEmailProviderAccountInput { + clientMutationId?: string; + platformEmailProviderAccount: { + apiBaseUrl?: string; + credentialsSecretName: string; + isActive?: boolean; + name: string; + provider: string; + providerAccountName?: string; + region?: string; + smtpHost?: string; + smtpPort?: number; + smtpSecure?: boolean; + smtpUser?: string; + webhookSigningSecretName?: string; + }; +} +export interface PlatformEmailProviderAccountPatch { + apiBaseUrl?: string | null; + credentialsSecretName?: string | null; + isActive?: boolean | null; + name?: string | null; + provider?: string | null; + providerAccountName?: string | null; + region?: string | null; + smtpHost?: string | null; + smtpPort?: number | null; + smtpSecure?: boolean | null; + smtpUser?: string | null; + webhookSigningSecretName?: string | null; +} +export interface UpdatePlatformEmailProviderAccountInput { + clientMutationId?: string; + id: string; + platformEmailProviderAccountPatch: PlatformEmailProviderAccountPatch; +} +export interface DeletePlatformEmailProviderAccountInput { + clientMutationId?: string; + id: string; +} +export interface CreatePlatformEmailSiteIdentityInput { + clientMutationId?: string; + platformEmailSiteIdentity: { + emailIdentityId: string; + siteId: string; + }; +} +export interface PlatformEmailSiteIdentityPatch { + emailIdentityId?: string | null; + siteId?: string | null; +} +export interface UpdatePlatformEmailSiteIdentityInput { + clientMutationId?: string; + id: string; + platformEmailSiteIdentityPatch: PlatformEmailSiteIdentityPatch; +} +export interface DeletePlatformEmailSiteIdentityInput { + clientMutationId?: string; + id: string; +} export interface CreatePlatformManagedDomainInput { clientMutationId?: string; platformManagedDomain: { @@ -12503,9 +13372,9 @@ export interface DeleteWebauthnSettingInput { } // ============ Connection Fields Map ============ export const connectionFieldsMap = { - Apis: { - apiSchemasByApiId: 'ApiSchema', - corsSettingsByApiId: 'CorsSetting', + Api: { + apiSchemas: 'ApiSchema', + corsSettings: 'CorsSetting', }, Database: { checkConstraints: 'CheckConstraint', @@ -12549,6 +13418,12 @@ export const connectionFieldsMap = { httpRoutes: 'HttpRoute', routes: 'Route', }, + EmailIdentity: { + emailSiteIdentities: 'EmailSiteIdentity', + }, + EmailProviderAccount: { + emailIdentitiesByProviderAccountId: 'EmailIdentity', + }, Field: { embeddingChunksByEmbeddingFieldId: 'EmbeddingChunk', embeddingChunksByParentFkFieldId: 'EmbeddingChunk', @@ -12564,13 +13439,19 @@ export const connectionFieldsMap = { domainEvents: 'DomainEvent', domainVerifications: 'DomainVerification', }, - PlatformApis: { + PlatformApi: { platformApiSchemasByApiId: 'PlatformApiSchema', }, PlatformDomain: { platformDomainEventsByDomainId: 'PlatformDomainEvent', platformDomainVerificationsByDomainId: 'PlatformDomainVerification', }, + PlatformEmailIdentity: { + platformEmailSiteIdentitiesByEmailIdentityId: 'PlatformEmailSiteIdentity', + }, + PlatformEmailProviderAccount: { + platformEmailIdentitiesByProviderAccountId: 'PlatformEmailIdentity', + }, PlatformManagedDomain: { platformDomainEventsByManagedDomainId: 'PlatformDomainEvent', platformDomainVerificationsByManagedDomainId: 'PlatformDomainVerification', @@ -12713,7 +13594,7 @@ export interface SitesProvisionStaticSiteInput { siteConfig?: Record; } /** A filter to be used against many `ApiSchema` object types. All fields are combined with a logical ‘and.’ */ -export interface ApisToManyApiSchemaFilter { +export interface ApiToManyApiSchemaFilter { /** Filters to entities where every related entity matches. */ every?: ApiSchemaFilter; /** Filters to entities where no related entity matches. */ @@ -12722,7 +13603,7 @@ export interface ApisToManyApiSchemaFilter { some?: ApiSchemaFilter; } /** A filter to be used against many `CorsSetting` object types. All fields are combined with a logical ‘and.’ */ -export interface ApisToManyCorsSettingFilter { +export interface ApiToManyCorsSettingFilter { /** Filters to entities where every related entity matches. */ every?: CorsSettingFilter; /** Filters to entities where no related entity matches. */ @@ -13097,6 +13978,24 @@ export interface DomainToManyRouteFilter { /** Filters to entities where at least one related entity matches. */ some?: RouteFilter; } +/** A filter to be used against many `EmailSiteIdentity` object types. All fields are combined with a logical ‘and.’ */ +export interface EmailIdentityToManyEmailSiteIdentityFilter { + /** Filters to entities where every related entity matches. */ + every?: EmailSiteIdentityFilter; + /** Filters to entities where no related entity matches. */ + none?: EmailSiteIdentityFilter; + /** Filters to entities where at least one related entity matches. */ + some?: EmailSiteIdentityFilter; +} +/** A filter to be used against many `EmailIdentity` object types. All fields are combined with a logical ‘and.’ */ +export interface EmailProviderAccountToManyEmailIdentityFilter { + /** Filters to entities where every related entity matches. */ + every?: EmailIdentityFilter; + /** Filters to entities where no related entity matches. */ + none?: EmailIdentityFilter; + /** Filters to entities where at least one related entity matches. */ + some?: EmailIdentityFilter; +} /** A filter to be used against many `EmbeddingChunk` object types. All fields are combined with a logical ‘and.’ */ export interface FieldToManyEmbeddingChunkFilter { /** Filters to entities where every related entity matches. */ @@ -13161,7 +14060,7 @@ export interface ManagedDomainToManyDomainVerificationFilter { some?: DomainVerificationFilter; } /** A filter to be used against many `PlatformApiSchema` object types. All fields are combined with a logical ‘and.’ */ -export interface PlatformApisToManyPlatformApiSchemaFilter { +export interface PlatformApiToManyPlatformApiSchemaFilter { /** Filters to entities where every related entity matches. */ every?: PlatformApiSchemaFilter; /** Filters to entities where no related entity matches. */ @@ -13187,6 +14086,24 @@ export interface PlatformDomainToManyPlatformDomainVerificationFilter { /** Filters to entities where at least one related entity matches. */ some?: PlatformDomainVerificationFilter; } +/** A filter to be used against many `PlatformEmailSiteIdentity` object types. All fields are combined with a logical ‘and.’ */ +export interface PlatformEmailIdentityToManyPlatformEmailSiteIdentityFilter { + /** Filters to entities where every related entity matches. */ + every?: PlatformEmailSiteIdentityFilter; + /** Filters to entities where no related entity matches. */ + none?: PlatformEmailSiteIdentityFilter; + /** Filters to entities where at least one related entity matches. */ + some?: PlatformEmailSiteIdentityFilter; +} +/** A filter to be used against many `PlatformEmailIdentity` object types. All fields are combined with a logical ‘and.’ */ +export interface PlatformEmailProviderAccountToManyPlatformEmailIdentityFilter { + /** Filters to entities where every related entity matches. */ + every?: PlatformEmailIdentityFilter; + /** Filters to entities where no related entity matches. */ + none?: PlatformEmailIdentityFilter; + /** Filters to entities where at least one related entity matches. */ + some?: PlatformEmailIdentityFilter; +} /** A filter to be used against many `PlatformDomainEvent` object types. All fields are combined with a logical ‘and.’ */ export interface PlatformManagedDomainToManyPlatformDomainEventFilter { /** Filters to entities where every related entity matches. */ @@ -13670,6 +14587,26 @@ export interface ViewToManyViewTableFilter { /** Filters to entities where at least one related entity matches. */ some?: ViewTableFilter; } +/** An input for mutations affecting `Api` */ +export interface ApiInput { + /** Anonymous role the API executes as */ + anonRole?: string; + /** Module-specific configuration for this API surface */ + config?: Record; + createdAt?: string; + /** Database that owns this resource (database-scoped isolation) */ + databaseId: string; + /** Database this API surface serves */ + dbname?: string; + id?: string; + /** Whether other scopes may see and route to this API surface */ + isPublished?: boolean; + /** Owner-local API surface name */ + name: string; + /** Authenticated role the API executes as */ + roleName?: string; + updatedAt?: string; +} /** An input for mutations affecting `ApiSchema` */ export interface ApiSchemaInput { /** API surface that exposes this schema */ @@ -13720,26 +14657,6 @@ export interface ApiSettingInput { statementTimeoutMs?: string; updatedAt?: string; } -/** An input for mutations affecting `Apis` */ -export interface ApisInput { - /** Anonymous role the API executes as */ - anonRole?: string; - /** Module-specific configuration for this API surface */ - config?: Record; - createdAt?: string; - /** Database that owns this resource (database-scoped isolation) */ - databaseId: string; - /** Database this API surface serves */ - dbname?: string; - id?: string; - /** Whether other scopes may see and route to this API surface */ - isPublished?: boolean; - /** Owner-local API surface name */ - name: string; - /** Authenticated role the API executes as */ - roleName?: string; - updatedAt?: string; -} /** An input for mutations affecting `CheckConstraint` */ export interface CheckConstraintInput { category?: ObjectCategory; @@ -13972,6 +14889,76 @@ export interface DomainVerificationInput { /** When this challenge succeeded */ verifiedAt?: string; } +/** An input for mutations affecting `EmailIdentity` */ +export interface EmailIdentityInput { + createdAt?: string; + /** Database that owns this resource (database-scoped isolation) */ + databaseId: string; + /** Envelope/header From address, lower-case. Must be accepted by the sending account at the provider. */ + fromAddress: string; + /** Display name shown beside the from address */ + fromName?: string; + id?: string; + /** Whether this identity may be resolved for a send */ + isActive?: boolean; + /** The scope default identity, used when no site binding resolves. At most one per scope key. */ + isDefault?: boolean; + /** Operator-facing name for this identity (e.g. transactional, support) */ + name: string; + /** Same-scope provider account this identity sends through. Required for transport_mode = own, NULL for platform_shared. */ + providerAccountId?: string; + /** Reply-To address when replies should not go to the from address */ + replyToAddress?: string; + /** Support address rendered in message bodies and footers */ + supportAddress?: string; + /** own = send through provider_account_id in this scope; platform_shared = send through the platform installation's shared account, an explicit recorded choice and never an implicit fallback */ + transportMode?: string; + updatedAt?: string; +} +/** An input for mutations affecting `EmailProviderAccount` */ +export interface EmailProviderAccountInput { + /** Provider API base URL when it is not the provider default (e.g. Mailgun EU) */ + apiBaseUrl?: string; + createdAt?: string; + /** Name of the secret holding this account's API key or SMTP password. The value is resolved from the secret store at send time (realm = this row's id) and is never stored here. */ + credentialsSecretName: string; + /** Database that owns this resource (database-scoped isolation) */ + databaseId: string; + id?: string; + /** Whether identities may send through this account. Disabling one row stops every identity that references it. */ + isActive?: boolean; + /** Operator-facing name for this account (e.g. transactional, marketing) */ + name: string; + /** integration_providers.slug of the provider this account is at (mailgun, ses, postmark, smtp), matched by string not by FK */ + provider: string; + /** Account identifier at the provider — the Mailgun sending domain, the SES verified identity, the Postmark server name */ + providerAccountName?: string; + /** Provider region for region-addressed providers (e.g. SES us-east-1) */ + region?: string; + /** SMTP host (provider = smtp, or a provider addressed over SMTP) */ + smtpHost?: string; + /** SMTP port */ + smtpPort?: number; + /** Whether the SMTP connection uses implicit TLS */ + smtpSecure?: boolean; + /** SMTP username; the password is a secret, addressed by credentials_secret_name */ + smtpUser?: string; + updatedAt?: string; + /** Name of the secret used to verify this provider's delivery/bounce webhooks. Name only; the value stays in the secret store. */ + webhookSigningSecretName?: string; +} +/** An input for mutations affecting `EmailSiteIdentity` */ +export interface EmailSiteIdentityInput { + createdAt?: string; + /** Database that owns this resource (database-scoped isolation) */ + databaseId: string; + /** Identity this site sends as */ + emailIdentityId: string; + id?: string; + /** Site whose mail is sent as the bound identity */ + siteId: string; + updatedAt?: string; +} /** An input for mutations affecting `EmbeddingChunk` */ export interface EmbeddingChunkInput { chunkOverlap?: number; @@ -14259,6 +15246,24 @@ export interface PartitionInput { tableId: string; updatedAt?: string; } +/** An input for mutations affecting `PlatformApi` */ +export interface PlatformApiInput { + /** Anonymous role the API executes as */ + anonRole?: string; + /** Module-specific configuration for this API surface */ + config?: Record; + createdAt?: string; + /** Database this API surface serves */ + dbname?: string; + id?: string; + /** Whether other scopes may see and route to this API surface */ + isPublished?: boolean; + /** Owner-local API surface name */ + name: string; + /** Authenticated role the API executes as */ + roleName?: string; + updatedAt?: string; +} /** An input for mutations affecting `PlatformApiSchema` */ export interface PlatformApiSchemaInput { /** API surface that exposes this schema */ @@ -14305,24 +15310,6 @@ export interface PlatformApiSettingInput { statementTimeoutMs?: string; updatedAt?: string; } -/** An input for mutations affecting `PlatformApis` */ -export interface PlatformApisInput { - /** Anonymous role the API executes as */ - anonRole?: string; - /** Module-specific configuration for this API surface */ - config?: Record; - createdAt?: string; - /** Database this API surface serves */ - dbname?: string; - id?: string; - /** Whether other scopes may see and route to this API surface */ - isPublished?: boolean; - /** Owner-local API surface name */ - name: string; - /** Authenticated role the API executes as */ - roleName?: string; - updatedAt?: string; -} /** An input for mutations affecting `PlatformCorsSetting` */ export interface PlatformCorsSettingInput { /** Array of allowed CORS origins (e.g. https://example.com) */ @@ -14411,6 +15398,70 @@ export interface PlatformDomainVerificationInput { /** When this challenge succeeded */ verifiedAt?: string; } +/** An input for mutations affecting `PlatformEmailIdentity` */ +export interface PlatformEmailIdentityInput { + createdAt?: string; + /** Envelope/header From address, lower-case. Must be accepted by the sending account at the provider. */ + fromAddress: string; + /** Display name shown beside the from address */ + fromName?: string; + id?: string; + /** Whether this identity may be resolved for a send */ + isActive?: boolean; + /** The scope default identity, used when no site binding resolves. At most one per scope key. */ + isDefault?: boolean; + /** Operator-facing name for this identity (e.g. transactional, support) */ + name: string; + /** Same-scope provider account this identity sends through. Required for transport_mode = own, NULL for platform_shared. */ + providerAccountId?: string; + /** Reply-To address when replies should not go to the from address */ + replyToAddress?: string; + /** Support address rendered in message bodies and footers */ + supportAddress?: string; + /** own = send through provider_account_id in this scope; platform_shared = send through the platform installation's shared account, an explicit recorded choice and never an implicit fallback */ + transportMode?: string; + updatedAt?: string; +} +/** An input for mutations affecting `PlatformEmailProviderAccount` */ +export interface PlatformEmailProviderAccountInput { + /** Provider API base URL when it is not the provider default (e.g. Mailgun EU) */ + apiBaseUrl?: string; + createdAt?: string; + /** Name of the secret holding this account's API key or SMTP password. The value is resolved from the secret store at send time (realm = this row's id) and is never stored here. */ + credentialsSecretName: string; + id?: string; + /** Whether identities may send through this account. Disabling one row stops every identity that references it. */ + isActive?: boolean; + /** Operator-facing name for this account (e.g. transactional, marketing) */ + name: string; + /** integration_providers.slug of the provider this account is at (mailgun, ses, postmark, smtp), matched by string not by FK */ + provider: string; + /** Account identifier at the provider — the Mailgun sending domain, the SES verified identity, the Postmark server name */ + providerAccountName?: string; + /** Provider region for region-addressed providers (e.g. SES us-east-1) */ + region?: string; + /** SMTP host (provider = smtp, or a provider addressed over SMTP) */ + smtpHost?: string; + /** SMTP port */ + smtpPort?: number; + /** Whether the SMTP connection uses implicit TLS */ + smtpSecure?: boolean; + /** SMTP username; the password is a secret, addressed by credentials_secret_name */ + smtpUser?: string; + updatedAt?: string; + /** Name of the secret used to verify this provider's delivery/bounce webhooks. Name only; the value stays in the secret store. */ + webhookSigningSecretName?: string; +} +/** An input for mutations affecting `PlatformEmailSiteIdentity` */ +export interface PlatformEmailSiteIdentityInput { + createdAt?: string; + /** Identity this site sends as */ + emailIdentityId: string; + id?: string; + /** Site whose mail is sent as the bound identity */ + siteId: string; + updatedAt?: string; +} /** An input for mutations affecting `PlatformManagedDomain` */ export interface PlatformManagedDomainInput { /** Whether tenants may claim subdomains under this managed hostname */ @@ -15166,7 +16217,7 @@ export interface ApiSchemaFilter { /** Checks for all expressions in this list. */ and?: ApiSchemaFilter[]; /** Filter by the object’s `api` relation. */ - api?: ApisFilter; + api?: ApiFilter; /** Filter by the object’s `apiId` field. */ apiId?: UUIDFilter; /** Filter by the object’s `createdAt` field. */ @@ -15193,7 +16244,7 @@ export interface CorsSettingFilter { /** Checks for all expressions in this list. */ and?: CorsSettingFilter[]; /** Filter by the object’s `api` relation. */ - api?: ApisFilter; + api?: ApiFilter; /** A related `api` exists. */ apiExists?: boolean; /** Filter by the object’s `apiId` field. */ @@ -16847,12 +17898,80 @@ export interface RouteFilter { /** Filter by the object’s `updatedAt` field. */ updatedAt?: DatetimeFilter; } +/** A filter to be used against `EmailSiteIdentity` object types. All fields are combined with a logical ‘and.’ */ +export interface EmailSiteIdentityFilter { + /** Checks for all expressions in this list. */ + and?: EmailSiteIdentityFilter[]; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `emailIdentity` relation. */ + emailIdentity?: EmailIdentityFilter; + /** Filter by the object’s `emailIdentityId` field. */ + emailIdentityId?: UUIDFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Negates the expression. */ + not?: EmailSiteIdentityFilter; + /** Checks for any expressions in this list. */ + or?: EmailSiteIdentityFilter[]; + /** Filter by the object’s `site` relation. */ + site?: SiteFilter; + /** Filter by the object’s `siteId` field. */ + siteId?: UUIDFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; +} +/** A filter to be used against `EmailIdentity` object types. All fields are combined with a logical ‘and.’ */ +export interface EmailIdentityFilter { + /** Checks for all expressions in this list. */ + and?: EmailIdentityFilter[]; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `emailSiteIdentities` relation. */ + emailSiteIdentities?: EmailIdentityToManyEmailSiteIdentityFilter; + /** `emailSiteIdentities` exist. */ + emailSiteIdentitiesExist?: boolean; + /** Filter by the object’s `fromAddress` field. */ + fromAddress?: StringFilter; + /** Filter by the object’s `fromName` field. */ + fromName?: StringFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `isActive` field. */ + isActive?: BooleanFilter; + /** Filter by the object’s `isDefault` field. */ + isDefault?: BooleanFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Negates the expression. */ + not?: EmailIdentityFilter; + /** Checks for any expressions in this list. */ + or?: EmailIdentityFilter[]; + /** Filter by the object’s `providerAccount` relation. */ + providerAccount?: EmailProviderAccountFilter; + /** A related `providerAccount` exists. */ + providerAccountExists?: boolean; + /** Filter by the object’s `providerAccountId` field. */ + providerAccountId?: UUIDFilter; + /** Filter by the object’s `replyToAddress` field. */ + replyToAddress?: StringFilter; + /** Filter by the object’s `supportAddress` field. */ + supportAddress?: StringFilter; + /** Filter by the object’s `transportMode` field. */ + transportMode?: StringFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; +} /** A filter to be used against `PlatformApiSchema` object types. All fields are combined with a logical ‘and.’ */ export interface PlatformApiSchemaFilter { /** Checks for all expressions in this list. */ and?: PlatformApiSchemaFilter[]; /** Filter by the object’s `api` relation. */ - api?: PlatformApisFilter; + api?: PlatformApiFilter; /** Filter by the object’s `apiId` field. */ apiId?: UUIDFilter; /** Filter by the object’s `createdAt` field. */ @@ -16958,22 +18077,86 @@ export interface PlatformDomainVerificationFilter { /** Filter by the object’s `verifiedAt` field. */ verifiedAt?: DatetimeFilter; } -/** A filter to be used against `PlatformPage` object types. All fields are combined with a logical ‘and.’ */ -export interface PlatformPageFilter { +/** A filter to be used against `PlatformEmailSiteIdentity` object types. All fields are combined with a logical ‘and.’ */ +export interface PlatformEmailSiteIdentityFilter { /** Checks for all expressions in this list. */ - and?: PlatformPageFilter[]; - /** Filter by the object’s `commitId` field. */ - commitId?: UUIDFilter; - /** Filter by the object’s `content` field. */ - content?: JSONFilter; + and?: PlatformEmailSiteIdentityFilter[]; /** Filter by the object’s `createdAt` field. */ createdAt?: DatetimeFilter; + /** Filter by the object’s `emailIdentity` relation. */ + emailIdentity?: PlatformEmailIdentityFilter; + /** Filter by the object’s `emailIdentityId` field. */ + emailIdentityId?: UUIDFilter; /** Filter by the object’s `id` field. */ id?: UUIDFilter; /** Negates the expression. */ - not?: PlatformPageFilter; + not?: PlatformEmailSiteIdentityFilter; /** Checks for any expressions in this list. */ - or?: PlatformPageFilter[]; + or?: PlatformEmailSiteIdentityFilter[]; + /** Filter by the object’s `site` relation. */ + site?: PlatformSiteFilter; + /** Filter by the object’s `siteId` field. */ + siteId?: UUIDFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; +} +/** A filter to be used against `PlatformEmailIdentity` object types. All fields are combined with a logical ‘and.’ */ +export interface PlatformEmailIdentityFilter { + /** Checks for all expressions in this list. */ + and?: PlatformEmailIdentityFilter[]; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `fromAddress` field. */ + fromAddress?: StringFilter; + /** Filter by the object’s `fromName` field. */ + fromName?: StringFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `isActive` field. */ + isActive?: BooleanFilter; + /** Filter by the object’s `isDefault` field. */ + isDefault?: BooleanFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Negates the expression. */ + not?: PlatformEmailIdentityFilter; + /** Checks for any expressions in this list. */ + or?: PlatformEmailIdentityFilter[]; + /** Filter by the object’s `platformEmailSiteIdentitiesByEmailIdentityId` relation. */ + platformEmailSiteIdentitiesByEmailIdentityId?: PlatformEmailIdentityToManyPlatformEmailSiteIdentityFilter; + /** `platformEmailSiteIdentitiesByEmailIdentityId` exist. */ + platformEmailSiteIdentitiesByEmailIdentityIdExist?: boolean; + /** Filter by the object’s `providerAccount` relation. */ + providerAccount?: PlatformEmailProviderAccountFilter; + /** A related `providerAccount` exists. */ + providerAccountExists?: boolean; + /** Filter by the object’s `providerAccountId` field. */ + providerAccountId?: UUIDFilter; + /** Filter by the object’s `replyToAddress` field. */ + replyToAddress?: StringFilter; + /** Filter by the object’s `supportAddress` field. */ + supportAddress?: StringFilter; + /** Filter by the object’s `transportMode` field. */ + transportMode?: StringFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; +} +/** A filter to be used against `PlatformPage` object types. All fields are combined with a logical ‘and.’ */ +export interface PlatformPageFilter { + /** Checks for all expressions in this list. */ + and?: PlatformPageFilter[]; + /** Filter by the object’s `commitId` field. */ + commitId?: UUIDFilter; + /** Filter by the object’s `content` field. */ + content?: JSONFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Negates the expression. */ + not?: PlatformPageFilter; + /** Checks for any expressions in this list. */ + or?: PlatformPageFilter[]; /** Filter by the object’s `site` relation. */ site?: PlatformSiteFilter; /** Filter by the object’s `siteId` field. */ @@ -17302,26 +18485,26 @@ export interface SiteThemeFilter { /** Filter by the object’s `updatedAt` field. */ updatedAt?: DatetimeFilter; } -/** A filter to be used against `Apis` object types. All fields are combined with a logical ‘and.’ */ -export interface ApisFilter { +/** A filter to be used against `Api` object types. All fields are combined with a logical ‘and.’ */ +export interface ApiFilter { /** Checks for all expressions in this list. */ - and?: ApisFilter[]; + and?: ApiFilter[]; /** Filter by the object’s `anonRole` field. */ anonRole?: StringFilter; - /** Filter by the object’s `apiSchemasByApiId` relation. */ - apiSchemasByApiId?: ApisToManyApiSchemaFilter; - /** `apiSchemasByApiId` exist. */ - apiSchemasByApiIdExist?: boolean; - /** Filter by the object’s `apiSettingByApiId` relation. */ - apiSettingByApiId?: ApiSettingFilter; - /** A related `apiSettingByApiId` exists. */ - apiSettingByApiIdExists?: boolean; + /** Filter by the object’s `apiSchemas` relation. */ + apiSchemas?: ApiToManyApiSchemaFilter; + /** `apiSchemas` exist. */ + apiSchemasExist?: boolean; + /** Filter by the object’s `apiSetting` relation. */ + apiSetting?: ApiSettingFilter; + /** A related `apiSetting` exists. */ + apiSettingExists?: boolean; /** Filter by the object’s `config` field. */ config?: JSONFilter; - /** Filter by the object’s `corsSettingsByApiId` relation. */ - corsSettingsByApiId?: ApisToManyCorsSettingFilter; - /** `corsSettingsByApiId` exist. */ - corsSettingsByApiIdExist?: boolean; + /** Filter by the object’s `corsSettings` relation. */ + corsSettings?: ApiToManyCorsSettingFilter; + /** `corsSettings` exist. */ + corsSettingsExist?: boolean; /** Filter by the object’s `createdAt` field. */ createdAt?: DatetimeFilter; /** Filter by the object’s `databaseId` field. */ @@ -17335,9 +18518,9 @@ export interface ApisFilter { /** Filter by the object’s `name` field. */ name?: StringFilter; /** Negates the expression. */ - not?: ApisFilter; + not?: ApiFilter; /** Checks for any expressions in this list. */ - or?: ApisFilter[]; + or?: ApiFilter[]; /** Filter by the object’s `roleName` field. */ roleName?: StringFilter; /** Filter by the object’s `updatedAt` field. */ @@ -17917,10 +19100,126 @@ export interface ManagedDomainFilter { /** Filter by the object’s `verifiedAt` field. */ verifiedAt?: DatetimeFilter; } -/** A filter to be used against `PlatformApis` object types. All fields are combined with a logical ‘and.’ */ -export interface PlatformApisFilter { +/** A filter to be used against `Site` object types. All fields are combined with a logical ‘and.’ */ +export interface SiteFilter { + /** Filter by the object’s `activeCommitId` field. */ + activeCommitId?: UUIDFilter; /** Checks for all expressions in this list. */ - and?: PlatformApisFilter[]; + and?: SiteFilter[]; + /** Filter by the object’s `bucketId` field. */ + bucketId?: UUIDFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `description` field. */ + description?: StringFilter; + /** Filter by the object’s `emailSiteIdentity` relation. */ + emailSiteIdentity?: EmailSiteIdentityFilter; + /** A related `emailSiteIdentity` exists. */ + emailSiteIdentityExists?: boolean; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `installationId` field. */ + installationId?: UUIDFilter; + /** Filter by the object’s `installationMemberSlug` field. */ + installationMemberSlug?: StringFilter; + /** Filter by the object’s `isPublished` field. */ + isPublished?: BooleanFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Negates the expression. */ + not?: SiteFilter; + /** Checks for any expressions in this list. */ + or?: SiteFilter[]; + /** Filter by the object’s `pages` relation. */ + pages?: SiteToManyPageFilter; + /** `pages` exist. */ + pagesExist?: boolean; + /** Filter by the object’s `resourceId` field. */ + resourceId?: UUIDFilter; + /** Filter by the object’s `siteAppLinks` relation. */ + siteAppLinks?: SiteToManySiteAppLinkFilter; + /** `siteAppLinks` exist. */ + siteAppLinksExist?: boolean; + /** Filter by the object’s `siteDeepLinks` relation. */ + siteDeepLinks?: SiteToManySiteDeepLinkFilter; + /** `siteDeepLinks` exist. */ + siteDeepLinksExist?: boolean; + /** Filter by the object’s `siteErrorPages` relation. */ + siteErrorPages?: SiteToManySiteErrorPageFilter; + /** `siteErrorPages` exist. */ + siteErrorPagesExist?: boolean; + /** Filter by the object’s `siteMetadatum` relation. */ + siteMetadatum?: SiteMetadatumFilter; + /** A related `siteMetadatum` exists. */ + siteMetadatumExists?: boolean; + /** Filter by the object’s `siteModules` relation. */ + siteModules?: SiteToManySiteModuleFilter; + /** `siteModules` exist. */ + siteModulesExist?: boolean; + /** Filter by the object’s `siteThemes` relation. */ + siteThemes?: SiteToManySiteThemeFilter; + /** `siteThemes` exist. */ + siteThemesExist?: boolean; + /** Filter by the object’s `siteWebConfig` relation. */ + siteWebConfig?: SiteWebConfigFilter; + /** A related `siteWebConfig` exists. */ + siteWebConfigExists?: boolean; + /** Filter by the object’s `title` field. */ + title?: StringFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; +} +/** A filter to be used against `EmailProviderAccount` object types. All fields are combined with a logical ‘and.’ */ +export interface EmailProviderAccountFilter { + /** Checks for all expressions in this list. */ + and?: EmailProviderAccountFilter[]; + /** Filter by the object’s `apiBaseUrl` field. */ + apiBaseUrl?: StringFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `credentialsSecretName` field. */ + credentialsSecretName?: StringFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `emailIdentitiesByProviderAccountId` relation. */ + emailIdentitiesByProviderAccountId?: EmailProviderAccountToManyEmailIdentityFilter; + /** `emailIdentitiesByProviderAccountId` exist. */ + emailIdentitiesByProviderAccountIdExist?: boolean; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `isActive` field. */ + isActive?: BooleanFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Negates the expression. */ + not?: EmailProviderAccountFilter; + /** Checks for any expressions in this list. */ + or?: EmailProviderAccountFilter[]; + /** Filter by the object’s `provider` field. */ + provider?: StringFilter; + /** Filter by the object’s `providerAccountName` field. */ + providerAccountName?: StringFilter; + /** Filter by the object’s `region` field. */ + region?: StringFilter; + /** Filter by the object’s `smtpHost` field. */ + smtpHost?: StringFilter; + /** Filter by the object’s `smtpPort` field. */ + smtpPort?: IntFilter; + /** Filter by the object’s `smtpSecure` field. */ + smtpSecure?: BooleanFilter; + /** Filter by the object’s `smtpUser` field. */ + smtpUser?: StringFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `webhookSigningSecretName` field. */ + webhookSigningSecretName?: StringFilter; +} +/** A filter to be used against `PlatformApi` object types. All fields are combined with a logical ‘and.’ */ +export interface PlatformApiFilter { + /** Checks for all expressions in this list. */ + and?: PlatformApiFilter[]; /** Filter by the object’s `anonRole` field. */ anonRole?: StringFilter; /** Filter by the object’s `config` field. */ @@ -17936,11 +19235,11 @@ export interface PlatformApisFilter { /** Filter by the object’s `name` field. */ name?: StringFilter; /** Negates the expression. */ - not?: PlatformApisFilter; + not?: PlatformApiFilter; /** Checks for any expressions in this list. */ - or?: PlatformApisFilter[]; + or?: PlatformApiFilter[]; /** Filter by the object’s `platformApiSchemasByApiId` relation. */ - platformApiSchemasByApiId?: PlatformApisToManyPlatformApiSchemaFilter; + platformApiSchemasByApiId?: PlatformApiToManyPlatformApiSchemaFilter; /** `platformApiSchemasByApiId` exist. */ platformApiSchemasByApiIdExist?: boolean; /** Filter by the object’s `platformApiSettingByApiId` relation. */ @@ -18068,6 +19367,10 @@ export interface PlatformSiteFilter { not?: PlatformSiteFilter; /** Checks for any expressions in this list. */ or?: PlatformSiteFilter[]; + /** Filter by the object’s `platformEmailSiteIdentityBySiteId` relation. */ + platformEmailSiteIdentityBySiteId?: PlatformEmailSiteIdentityFilter; + /** A related `platformEmailSiteIdentityBySiteId` exists. */ + platformEmailSiteIdentityBySiteIdExists?: boolean; /** Filter by the object’s `platformPagesBySiteId` relation. */ platformPagesBySiteId?: PlatformSiteToManyPlatformPageFilter; /** `platformPagesBySiteId` exist. */ @@ -18107,79 +19410,55 @@ export interface PlatformSiteFilter { /** Filter by the object’s `updatedAt` field. */ updatedAt?: DatetimeFilter; } -/** A filter to be used against `Site` object types. All fields are combined with a logical ‘and.’ */ -export interface SiteFilter { - /** Filter by the object’s `activeCommitId` field. */ - activeCommitId?: UUIDFilter; +/** A filter to be used against `PlatformEmailProviderAccount` object types. All fields are combined with a logical ‘and.’ */ +export interface PlatformEmailProviderAccountFilter { /** Checks for all expressions in this list. */ - and?: SiteFilter[]; - /** Filter by the object’s `bucketId` field. */ - bucketId?: UUIDFilter; + and?: PlatformEmailProviderAccountFilter[]; + /** Filter by the object’s `apiBaseUrl` field. */ + apiBaseUrl?: StringFilter; /** Filter by the object’s `createdAt` field. */ createdAt?: DatetimeFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Filter by the object’s `description` field. */ - description?: StringFilter; + /** Filter by the object’s `credentialsSecretName` field. */ + credentialsSecretName?: StringFilter; /** Filter by the object’s `id` field. */ id?: UUIDFilter; - /** Filter by the object’s `installationId` field. */ - installationId?: UUIDFilter; - /** Filter by the object’s `installationMemberSlug` field. */ - installationMemberSlug?: StringFilter; - /** Filter by the object’s `isPublished` field. */ - isPublished?: BooleanFilter; + /** Filter by the object’s `isActive` field. */ + isActive?: BooleanFilter; /** Filter by the object’s `name` field. */ name?: StringFilter; /** Negates the expression. */ - not?: SiteFilter; + not?: PlatformEmailProviderAccountFilter; /** Checks for any expressions in this list. */ - or?: SiteFilter[]; - /** Filter by the object’s `pages` relation. */ - pages?: SiteToManyPageFilter; - /** `pages` exist. */ - pagesExist?: boolean; - /** Filter by the object’s `resourceId` field. */ - resourceId?: UUIDFilter; - /** Filter by the object’s `siteAppLinks` relation. */ - siteAppLinks?: SiteToManySiteAppLinkFilter; - /** `siteAppLinks` exist. */ - siteAppLinksExist?: boolean; - /** Filter by the object’s `siteDeepLinks` relation. */ - siteDeepLinks?: SiteToManySiteDeepLinkFilter; - /** `siteDeepLinks` exist. */ - siteDeepLinksExist?: boolean; - /** Filter by the object’s `siteErrorPages` relation. */ - siteErrorPages?: SiteToManySiteErrorPageFilter; - /** `siteErrorPages` exist. */ - siteErrorPagesExist?: boolean; - /** Filter by the object’s `siteMetadatum` relation. */ - siteMetadatum?: SiteMetadatumFilter; - /** A related `siteMetadatum` exists. */ - siteMetadatumExists?: boolean; - /** Filter by the object’s `siteModules` relation. */ - siteModules?: SiteToManySiteModuleFilter; - /** `siteModules` exist. */ - siteModulesExist?: boolean; - /** Filter by the object’s `siteThemes` relation. */ - siteThemes?: SiteToManySiteThemeFilter; - /** `siteThemes` exist. */ - siteThemesExist?: boolean; - /** Filter by the object’s `siteWebConfig` relation. */ - siteWebConfig?: SiteWebConfigFilter; - /** A related `siteWebConfig` exists. */ - siteWebConfigExists?: boolean; - /** Filter by the object’s `title` field. */ - title?: StringFilter; + or?: PlatformEmailProviderAccountFilter[]; + /** Filter by the object’s `platformEmailIdentitiesByProviderAccountId` relation. */ + platformEmailIdentitiesByProviderAccountId?: PlatformEmailProviderAccountToManyPlatformEmailIdentityFilter; + /** `platformEmailIdentitiesByProviderAccountId` exist. */ + platformEmailIdentitiesByProviderAccountIdExist?: boolean; + /** Filter by the object’s `provider` field. */ + provider?: StringFilter; + /** Filter by the object’s `providerAccountName` field. */ + providerAccountName?: StringFilter; + /** Filter by the object’s `region` field. */ + region?: StringFilter; + /** Filter by the object’s `smtpHost` field. */ + smtpHost?: StringFilter; + /** Filter by the object’s `smtpPort` field. */ + smtpPort?: IntFilter; + /** Filter by the object’s `smtpSecure` field. */ + smtpSecure?: BooleanFilter; + /** Filter by the object’s `smtpUser` field. */ + smtpUser?: StringFilter; /** Filter by the object’s `updatedAt` field. */ updatedAt?: DatetimeFilter; + /** Filter by the object’s `webhookSigningSecretName` field. */ + webhookSigningSecretName?: StringFilter; } /** A filter to be used against `ApiSetting` object types. All fields are combined with a logical ‘and.’ */ export interface ApiSettingFilter { /** Checks for all expressions in this list. */ and?: ApiSettingFilter[]; /** Filter by the object’s `api` relation. */ - api?: ApisFilter; + api?: ApiFilter; /** Filter by the object’s `apiId` field. */ apiId?: UUIDFilter; /** Filter by the object’s `createdAt` field. */ @@ -18223,12 +19502,82 @@ export interface ApiSettingFilter { /** Filter by the object’s `updatedAt` field. */ updatedAt?: DatetimeFilter; } +/** A filter to be used against `SiteMetadatum` object types. All fields are combined with a logical ‘and.’ */ +export interface SiteMetadatumFilter { + /** Checks for all expressions in this list. */ + and?: SiteMetadatumFilter[]; + /** Filter by the object’s `appleTouchIcon` field. */ + appleTouchIcon?: ConstructiveInternalTypeImageFilter; + /** Filter by the object’s `canonicalUrl` field. */ + canonicalUrl?: StringFilter; + /** Filter by the object’s `commitId` field. */ + commitId?: UUIDFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `description` field. */ + description?: StringFilter; + /** Filter by the object’s `favicon` field. */ + favicon?: ConstructiveInternalTypeImageFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `logo` field. */ + logo?: ConstructiveInternalTypeImageFilter; + /** Negates the expression. */ + not?: SiteMetadatumFilter; + /** Filter by the object’s `ogImage` field. */ + ogImage?: ConstructiveInternalTypeImageFilter; + /** Checks for any expressions in this list. */ + or?: SiteMetadatumFilter[]; + /** Filter by the object’s `robots` field. */ + robots?: StringFilter; + /** Filter by the object’s `site` relation. */ + site?: SiteFilter; + /** Filter by the object’s `siteId` field. */ + siteId?: UUIDFilter; + /** Filter by the object’s `storeId` field. */ + storeId?: UUIDFilter; + /** Filter by the object’s `title` field. */ + title?: StringFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; +} +/** A filter to be used against `SiteWebConfig` object types. All fields are combined with a logical ‘and.’ */ +export interface SiteWebConfigFilter { + /** Checks for all expressions in this list. */ + and?: SiteWebConfigFilter[]; + /** Filter by the object’s `cleanUrls` field. */ + cleanUrls?: BooleanFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `indexDocument` field. */ + indexDocument?: StringFilter; + /** Filter by the object’s `metadata` field. */ + metadata?: JSONFilter; + /** Negates the expression. */ + not?: SiteWebConfigFilter; + /** Checks for any expressions in this list. */ + or?: SiteWebConfigFilter[]; + /** Filter by the object’s `site` relation. */ + site?: SiteFilter; + /** Filter by the object’s `siteId` field. */ + siteId?: UUIDFilter; + /** Filter by the object’s `spaFallback` field. */ + spaFallback?: BooleanFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; +} /** A filter to be used against `PlatformApiSetting` object types. All fields are combined with a logical ‘and.’ */ export interface PlatformApiSettingFilter { /** Checks for all expressions in this list. */ and?: PlatformApiSettingFilter[]; /** Filter by the object’s `api` relation. */ - api?: PlatformApisFilter; + api?: PlatformApiFilter; /** Filter by the object’s `apiId` field. */ apiId?: UUIDFilter; /** Filter by the object’s `createdAt` field. */ @@ -18277,7 +19626,7 @@ export interface PlatformCorsSettingFilter { /** Checks for all expressions in this list. */ and?: PlatformCorsSettingFilter[]; /** Filter by the object’s `api` relation. */ - api?: PlatformApisFilter; + api?: PlatformApiFilter; /** A related `api` exists. */ apiExists?: boolean; /** Filter by the object’s `apiId` field. */ @@ -18331,85 +19680,15 @@ export interface PlatformSiteMetadatumFilter { title?: StringFilter; /** Filter by the object’s `updatedAt` field. */ updatedAt?: DatetimeFilter; -} -/** A filter to be used against `PlatformSiteWebConfig` object types. All fields are combined with a logical ‘and.’ */ -export interface PlatformSiteWebConfigFilter { - /** Checks for all expressions in this list. */ - and?: PlatformSiteWebConfigFilter[]; - /** Filter by the object’s `cleanUrls` field. */ - cleanUrls?: BooleanFilter; - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `indexDocument` field. */ - indexDocument?: StringFilter; - /** Filter by the object’s `metadata` field. */ - metadata?: JSONFilter; - /** Negates the expression. */ - not?: PlatformSiteWebConfigFilter; - /** Checks for any expressions in this list. */ - or?: PlatformSiteWebConfigFilter[]; - /** Filter by the object’s `site` relation. */ - site?: PlatformSiteFilter; - /** Filter by the object’s `siteId` field. */ - siteId?: UUIDFilter; - /** Filter by the object’s `spaFallback` field. */ - spaFallback?: BooleanFilter; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; -} -/** A filter to be used against `SiteMetadatum` object types. All fields are combined with a logical ‘and.’ */ -export interface SiteMetadatumFilter { - /** Checks for all expressions in this list. */ - and?: SiteMetadatumFilter[]; - /** Filter by the object’s `appleTouchIcon` field. */ - appleTouchIcon?: ConstructiveInternalTypeImageFilter; - /** Filter by the object’s `canonicalUrl` field. */ - canonicalUrl?: StringFilter; - /** Filter by the object’s `commitId` field. */ - commitId?: UUIDFilter; - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Filter by the object’s `description` field. */ - description?: StringFilter; - /** Filter by the object’s `favicon` field. */ - favicon?: ConstructiveInternalTypeImageFilter; - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `logo` field. */ - logo?: ConstructiveInternalTypeImageFilter; - /** Negates the expression. */ - not?: SiteMetadatumFilter; - /** Filter by the object’s `ogImage` field. */ - ogImage?: ConstructiveInternalTypeImageFilter; - /** Checks for any expressions in this list. */ - or?: SiteMetadatumFilter[]; - /** Filter by the object’s `robots` field. */ - robots?: StringFilter; - /** Filter by the object’s `site` relation. */ - site?: SiteFilter; - /** Filter by the object’s `siteId` field. */ - siteId?: UUIDFilter; - /** Filter by the object’s `storeId` field. */ - storeId?: UUIDFilter; - /** Filter by the object’s `title` field. */ - title?: StringFilter; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; -} -/** A filter to be used against `SiteWebConfig` object types. All fields are combined with a logical ‘and.’ */ -export interface SiteWebConfigFilter { +} +/** A filter to be used against `PlatformSiteWebConfig` object types. All fields are combined with a logical ‘and.’ */ +export interface PlatformSiteWebConfigFilter { /** Checks for all expressions in this list. */ - and?: SiteWebConfigFilter[]; + and?: PlatformSiteWebConfigFilter[]; /** Filter by the object’s `cleanUrls` field. */ cleanUrls?: BooleanFilter; /** Filter by the object’s `createdAt` field. */ createdAt?: DatetimeFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; /** Filter by the object’s `id` field. */ id?: UUIDFilter; /** Filter by the object’s `indexDocument` field. */ @@ -18417,11 +19696,11 @@ export interface SiteWebConfigFilter { /** Filter by the object’s `metadata` field. */ metadata?: JSONFilter; /** Negates the expression. */ - not?: SiteWebConfigFilter; + not?: PlatformSiteWebConfigFilter; /** Checks for any expressions in this list. */ - or?: SiteWebConfigFilter[]; + or?: PlatformSiteWebConfigFilter[]; /** Filter by the object’s `site` relation. */ - site?: SiteFilter; + site?: PlatformSiteFilter; /** Filter by the object’s `siteId` field. */ siteId?: UUIDFilter; /** Filter by the object’s `spaFallback` field. */ @@ -18627,6 +19906,51 @@ export type SitesProvisionStaticSitePayloadSelect = { select: PlatformRouteSelect; }; }; +export interface CreateApiPayload { + /** The `Api` that was created by this mutation. */ + api?: Api | null; + apiEdge?: ApiEdge | null; + clientMutationId?: string | null; +} +export type CreateApiPayloadSelect = { + api?: { + select: ApiSelect; + }; + apiEdge?: { + select: ApiEdgeSelect; + }; + clientMutationId?: boolean; +}; +export interface UpdateApiPayload { + /** The `Api` that was updated by this mutation. */ + api?: Api | null; + apiEdge?: ApiEdge | null; + clientMutationId?: string | null; +} +export type UpdateApiPayloadSelect = { + api?: { + select: ApiSelect; + }; + apiEdge?: { + select: ApiEdgeSelect; + }; + clientMutationId?: boolean; +}; +export interface DeleteApiPayload { + /** The `Api` that was deleted by this mutation. */ + api?: Api | null; + apiEdge?: ApiEdge | null; + clientMutationId?: string | null; +} +export type DeleteApiPayloadSelect = { + api?: { + select: ApiSelect; + }; + apiEdge?: { + select: ApiEdgeSelect; + }; + clientMutationId?: boolean; +}; export interface CreateApiSchemaPayload { /** The `ApiSchema` that was created by this mutation. */ apiSchema?: ApiSchema | null; @@ -18717,51 +20041,6 @@ export type DeleteApiSettingPayloadSelect = { }; clientMutationId?: boolean; }; -export interface CreateApisPayload { - /** The `Apis` that was created by this mutation. */ - apis?: Apis | null; - apisEdge?: ApisEdge | null; - clientMutationId?: string | null; -} -export type CreateApisPayloadSelect = { - apis?: { - select: ApisSelect; - }; - apisEdge?: { - select: ApisEdgeSelect; - }; - clientMutationId?: boolean; -}; -export interface UpdateApisPayload { - /** The `Apis` that was updated by this mutation. */ - apis?: Apis | null; - apisEdge?: ApisEdge | null; - clientMutationId?: string | null; -} -export type UpdateApisPayloadSelect = { - apis?: { - select: ApisSelect; - }; - apisEdge?: { - select: ApisEdgeSelect; - }; - clientMutationId?: boolean; -}; -export interface DeleteApisPayload { - /** The `Apis` that was deleted by this mutation. */ - apis?: Apis | null; - apisEdge?: ApisEdge | null; - clientMutationId?: string | null; -} -export type DeleteApisPayloadSelect = { - apis?: { - select: ApisSelect; - }; - apisEdge?: { - select: ApisEdgeSelect; - }; - clientMutationId?: boolean; -}; export interface CreateCheckConstraintPayload { /** The `CheckConstraint` that was created by this mutation. */ checkConstraint?: CheckConstraint | null; @@ -19302,6 +20581,141 @@ export type DeleteDomainVerificationPayloadSelect = { select: DomainVerificationEdgeSelect; }; }; +export interface CreateEmailIdentityPayload { + clientMutationId?: string | null; + /** The `EmailIdentity` that was created by this mutation. */ + emailIdentity?: EmailIdentity | null; + emailIdentityEdge?: EmailIdentityEdge | null; +} +export type CreateEmailIdentityPayloadSelect = { + clientMutationId?: boolean; + emailIdentity?: { + select: EmailIdentitySelect; + }; + emailIdentityEdge?: { + select: EmailIdentityEdgeSelect; + }; +}; +export interface UpdateEmailIdentityPayload { + clientMutationId?: string | null; + /** The `EmailIdentity` that was updated by this mutation. */ + emailIdentity?: EmailIdentity | null; + emailIdentityEdge?: EmailIdentityEdge | null; +} +export type UpdateEmailIdentityPayloadSelect = { + clientMutationId?: boolean; + emailIdentity?: { + select: EmailIdentitySelect; + }; + emailIdentityEdge?: { + select: EmailIdentityEdgeSelect; + }; +}; +export interface DeleteEmailIdentityPayload { + clientMutationId?: string | null; + /** The `EmailIdentity` that was deleted by this mutation. */ + emailIdentity?: EmailIdentity | null; + emailIdentityEdge?: EmailIdentityEdge | null; +} +export type DeleteEmailIdentityPayloadSelect = { + clientMutationId?: boolean; + emailIdentity?: { + select: EmailIdentitySelect; + }; + emailIdentityEdge?: { + select: EmailIdentityEdgeSelect; + }; +}; +export interface CreateEmailProviderAccountPayload { + clientMutationId?: string | null; + /** The `EmailProviderAccount` that was created by this mutation. */ + emailProviderAccount?: EmailProviderAccount | null; + emailProviderAccountEdge?: EmailProviderAccountEdge | null; +} +export type CreateEmailProviderAccountPayloadSelect = { + clientMutationId?: boolean; + emailProviderAccount?: { + select: EmailProviderAccountSelect; + }; + emailProviderAccountEdge?: { + select: EmailProviderAccountEdgeSelect; + }; +}; +export interface UpdateEmailProviderAccountPayload { + clientMutationId?: string | null; + /** The `EmailProviderAccount` that was updated by this mutation. */ + emailProviderAccount?: EmailProviderAccount | null; + emailProviderAccountEdge?: EmailProviderAccountEdge | null; +} +export type UpdateEmailProviderAccountPayloadSelect = { + clientMutationId?: boolean; + emailProviderAccount?: { + select: EmailProviderAccountSelect; + }; + emailProviderAccountEdge?: { + select: EmailProviderAccountEdgeSelect; + }; +}; +export interface DeleteEmailProviderAccountPayload { + clientMutationId?: string | null; + /** The `EmailProviderAccount` that was deleted by this mutation. */ + emailProviderAccount?: EmailProviderAccount | null; + emailProviderAccountEdge?: EmailProviderAccountEdge | null; +} +export type DeleteEmailProviderAccountPayloadSelect = { + clientMutationId?: boolean; + emailProviderAccount?: { + select: EmailProviderAccountSelect; + }; + emailProviderAccountEdge?: { + select: EmailProviderAccountEdgeSelect; + }; +}; +export interface CreateEmailSiteIdentityPayload { + clientMutationId?: string | null; + /** The `EmailSiteIdentity` that was created by this mutation. */ + emailSiteIdentity?: EmailSiteIdentity | null; + emailSiteIdentityEdge?: EmailSiteIdentityEdge | null; +} +export type CreateEmailSiteIdentityPayloadSelect = { + clientMutationId?: boolean; + emailSiteIdentity?: { + select: EmailSiteIdentitySelect; + }; + emailSiteIdentityEdge?: { + select: EmailSiteIdentityEdgeSelect; + }; +}; +export interface UpdateEmailSiteIdentityPayload { + clientMutationId?: string | null; + /** The `EmailSiteIdentity` that was updated by this mutation. */ + emailSiteIdentity?: EmailSiteIdentity | null; + emailSiteIdentityEdge?: EmailSiteIdentityEdge | null; +} +export type UpdateEmailSiteIdentityPayloadSelect = { + clientMutationId?: boolean; + emailSiteIdentity?: { + select: EmailSiteIdentitySelect; + }; + emailSiteIdentityEdge?: { + select: EmailSiteIdentityEdgeSelect; + }; +}; +export interface DeleteEmailSiteIdentityPayload { + clientMutationId?: string | null; + /** The `EmailSiteIdentity` that was deleted by this mutation. */ + emailSiteIdentity?: EmailSiteIdentity | null; + emailSiteIdentityEdge?: EmailSiteIdentityEdge | null; +} +export type DeleteEmailSiteIdentityPayloadSelect = { + clientMutationId?: boolean; + emailSiteIdentity?: { + select: EmailSiteIdentitySelect; + }; + emailSiteIdentityEdge?: { + select: EmailSiteIdentityEdgeSelect; + }; +}; export interface CreateEmbeddingChunkPayload { clientMutationId?: string | null; /** The `EmbeddingChunk` that was created by this mutation. */ @@ -20022,6 +21436,51 @@ export type DeletePartitionPayloadSelect = { select: PartitionEdgeSelect; }; }; +export interface CreatePlatformApiPayload { + clientMutationId?: string | null; + /** The `PlatformApi` that was created by this mutation. */ + platformApi?: PlatformApi | null; + platformApiEdge?: PlatformApiEdge | null; +} +export type CreatePlatformApiPayloadSelect = { + clientMutationId?: boolean; + platformApi?: { + select: PlatformApiSelect; + }; + platformApiEdge?: { + select: PlatformApiEdgeSelect; + }; +}; +export interface UpdatePlatformApiPayload { + clientMutationId?: string | null; + /** The `PlatformApi` that was updated by this mutation. */ + platformApi?: PlatformApi | null; + platformApiEdge?: PlatformApiEdge | null; +} +export type UpdatePlatformApiPayloadSelect = { + clientMutationId?: boolean; + platformApi?: { + select: PlatformApiSelect; + }; + platformApiEdge?: { + select: PlatformApiEdgeSelect; + }; +}; +export interface DeletePlatformApiPayload { + clientMutationId?: string | null; + /** The `PlatformApi` that was deleted by this mutation. */ + platformApi?: PlatformApi | null; + platformApiEdge?: PlatformApiEdge | null; +} +export type DeletePlatformApiPayloadSelect = { + clientMutationId?: boolean; + platformApi?: { + select: PlatformApiSelect; + }; + platformApiEdge?: { + select: PlatformApiEdgeSelect; + }; +}; export interface CreatePlatformApiSchemaPayload { clientMutationId?: string | null; /** The `PlatformApiSchema` that was created by this mutation. */ @@ -20112,51 +21571,6 @@ export type DeletePlatformApiSettingPayloadSelect = { select: PlatformApiSettingEdgeSelect; }; }; -export interface CreatePlatformApisPayload { - clientMutationId?: string | null; - /** The `PlatformApis` that was created by this mutation. */ - platformApis?: PlatformApis | null; - platformApisEdge?: PlatformApisEdge | null; -} -export type CreatePlatformApisPayloadSelect = { - clientMutationId?: boolean; - platformApis?: { - select: PlatformApisSelect; - }; - platformApisEdge?: { - select: PlatformApisEdgeSelect; - }; -}; -export interface UpdatePlatformApisPayload { - clientMutationId?: string | null; - /** The `PlatformApis` that was updated by this mutation. */ - platformApis?: PlatformApis | null; - platformApisEdge?: PlatformApisEdge | null; -} -export type UpdatePlatformApisPayloadSelect = { - clientMutationId?: boolean; - platformApis?: { - select: PlatformApisSelect; - }; - platformApisEdge?: { - select: PlatformApisEdgeSelect; - }; -}; -export interface DeletePlatformApisPayload { - clientMutationId?: string | null; - /** The `PlatformApis` that was deleted by this mutation. */ - platformApis?: PlatformApis | null; - platformApisEdge?: PlatformApisEdge | null; -} -export type DeletePlatformApisPayloadSelect = { - clientMutationId?: boolean; - platformApis?: { - select: PlatformApisSelect; - }; - platformApisEdge?: { - select: PlatformApisEdgeSelect; - }; -}; export interface CreatePlatformCorsSettingPayload { clientMutationId?: string | null; /** The `PlatformCorsSetting` that was created by this mutation. */ @@ -20337,6 +21751,141 @@ export type DeletePlatformDomainVerificationPayloadSelect = { select: PlatformDomainVerificationEdgeSelect; }; }; +export interface CreatePlatformEmailIdentityPayload { + clientMutationId?: string | null; + /** The `PlatformEmailIdentity` that was created by this mutation. */ + platformEmailIdentity?: PlatformEmailIdentity | null; + platformEmailIdentityEdge?: PlatformEmailIdentityEdge | null; +} +export type CreatePlatformEmailIdentityPayloadSelect = { + clientMutationId?: boolean; + platformEmailIdentity?: { + select: PlatformEmailIdentitySelect; + }; + platformEmailIdentityEdge?: { + select: PlatformEmailIdentityEdgeSelect; + }; +}; +export interface UpdatePlatformEmailIdentityPayload { + clientMutationId?: string | null; + /** The `PlatformEmailIdentity` that was updated by this mutation. */ + platformEmailIdentity?: PlatformEmailIdentity | null; + platformEmailIdentityEdge?: PlatformEmailIdentityEdge | null; +} +export type UpdatePlatformEmailIdentityPayloadSelect = { + clientMutationId?: boolean; + platformEmailIdentity?: { + select: PlatformEmailIdentitySelect; + }; + platformEmailIdentityEdge?: { + select: PlatformEmailIdentityEdgeSelect; + }; +}; +export interface DeletePlatformEmailIdentityPayload { + clientMutationId?: string | null; + /** The `PlatformEmailIdentity` that was deleted by this mutation. */ + platformEmailIdentity?: PlatformEmailIdentity | null; + platformEmailIdentityEdge?: PlatformEmailIdentityEdge | null; +} +export type DeletePlatformEmailIdentityPayloadSelect = { + clientMutationId?: boolean; + platformEmailIdentity?: { + select: PlatformEmailIdentitySelect; + }; + platformEmailIdentityEdge?: { + select: PlatformEmailIdentityEdgeSelect; + }; +}; +export interface CreatePlatformEmailProviderAccountPayload { + clientMutationId?: string | null; + /** The `PlatformEmailProviderAccount` that was created by this mutation. */ + platformEmailProviderAccount?: PlatformEmailProviderAccount | null; + platformEmailProviderAccountEdge?: PlatformEmailProviderAccountEdge | null; +} +export type CreatePlatformEmailProviderAccountPayloadSelect = { + clientMutationId?: boolean; + platformEmailProviderAccount?: { + select: PlatformEmailProviderAccountSelect; + }; + platformEmailProviderAccountEdge?: { + select: PlatformEmailProviderAccountEdgeSelect; + }; +}; +export interface UpdatePlatformEmailProviderAccountPayload { + clientMutationId?: string | null; + /** The `PlatformEmailProviderAccount` that was updated by this mutation. */ + platformEmailProviderAccount?: PlatformEmailProviderAccount | null; + platformEmailProviderAccountEdge?: PlatformEmailProviderAccountEdge | null; +} +export type UpdatePlatformEmailProviderAccountPayloadSelect = { + clientMutationId?: boolean; + platformEmailProviderAccount?: { + select: PlatformEmailProviderAccountSelect; + }; + platformEmailProviderAccountEdge?: { + select: PlatformEmailProviderAccountEdgeSelect; + }; +}; +export interface DeletePlatformEmailProviderAccountPayload { + clientMutationId?: string | null; + /** The `PlatformEmailProviderAccount` that was deleted by this mutation. */ + platformEmailProviderAccount?: PlatformEmailProviderAccount | null; + platformEmailProviderAccountEdge?: PlatformEmailProviderAccountEdge | null; +} +export type DeletePlatformEmailProviderAccountPayloadSelect = { + clientMutationId?: boolean; + platformEmailProviderAccount?: { + select: PlatformEmailProviderAccountSelect; + }; + platformEmailProviderAccountEdge?: { + select: PlatformEmailProviderAccountEdgeSelect; + }; +}; +export interface CreatePlatformEmailSiteIdentityPayload { + clientMutationId?: string | null; + /** The `PlatformEmailSiteIdentity` that was created by this mutation. */ + platformEmailSiteIdentity?: PlatformEmailSiteIdentity | null; + platformEmailSiteIdentityEdge?: PlatformEmailSiteIdentityEdge | null; +} +export type CreatePlatformEmailSiteIdentityPayloadSelect = { + clientMutationId?: boolean; + platformEmailSiteIdentity?: { + select: PlatformEmailSiteIdentitySelect; + }; + platformEmailSiteIdentityEdge?: { + select: PlatformEmailSiteIdentityEdgeSelect; + }; +}; +export interface UpdatePlatformEmailSiteIdentityPayload { + clientMutationId?: string | null; + /** The `PlatformEmailSiteIdentity` that was updated by this mutation. */ + platformEmailSiteIdentity?: PlatformEmailSiteIdentity | null; + platformEmailSiteIdentityEdge?: PlatformEmailSiteIdentityEdge | null; +} +export type UpdatePlatformEmailSiteIdentityPayloadSelect = { + clientMutationId?: boolean; + platformEmailSiteIdentity?: { + select: PlatformEmailSiteIdentitySelect; + }; + platformEmailSiteIdentityEdge?: { + select: PlatformEmailSiteIdentityEdgeSelect; + }; +}; +export interface DeletePlatformEmailSiteIdentityPayload { + clientMutationId?: string | null; + /** The `PlatformEmailSiteIdentity` that was deleted by this mutation. */ + platformEmailSiteIdentity?: PlatformEmailSiteIdentity | null; + platformEmailSiteIdentityEdge?: PlatformEmailSiteIdentityEdge | null; +} +export type DeletePlatformEmailSiteIdentityPayloadSelect = { + clientMutationId?: boolean; + platformEmailSiteIdentity?: { + select: PlatformEmailSiteIdentitySelect; + }; + platformEmailSiteIdentityEdge?: { + select: PlatformEmailSiteIdentityEdgeSelect; + }; +}; export interface CreatePlatformManagedDomainPayload { clientMutationId?: string | null; /** The `PlatformManagedDomain` that was created by this mutation. */ @@ -22227,7 +23776,7 @@ export interface DatabaseProvisionModule { /** Uniform billing anchor: when the request was fulfilled with a usable database (cold provision completion or warm pool claim). Platform absorbs all provisioning compute before this point */ fulfilledAt?: string | null; id: string; - /** JSONB array of modules to install. Each element is either a string ("users_module") or a [name, options] tuple (["permissions_module", {"scope": "app"}]) */ + /** JSONB array of modules to install. Each element is either a string ("users_module") or a [name, options] tuple (["capabilities_module", {"scope": "app"}]) */ modules: Record; /** Additional configuration options for provisioning */ options: Record; @@ -22262,6 +23811,18 @@ export type DatabaseProvisionModuleSelect = { subdomain?: boolean; updatedAt?: boolean; }; +/** A `Api` edge in the connection. */ +export interface ApiEdge { + cursor?: string | null; + /** The `Api` at the end of the edge. */ + node?: Api | null; +} +export type ApiEdgeSelect = { + cursor?: boolean; + node?: { + select: ApiSelect; + }; +}; /** A `ApiSchema` edge in the connection. */ export interface ApiSchemaEdge { cursor?: string | null; @@ -22286,18 +23847,6 @@ export type ApiSettingEdgeSelect = { select: ApiSettingSelect; }; }; -/** A `Apis` edge in the connection. */ -export interface ApisEdge { - cursor?: string | null; - /** The `Apis` at the end of the edge. */ - node?: Apis | null; -} -export type ApisEdgeSelect = { - cursor?: boolean; - node?: { - select: ApisSelect; - }; -}; /** A `CheckConstraint` edge in the connection. */ export interface CheckConstraintEdge { cursor?: string | null; @@ -22430,6 +23979,42 @@ export type DomainVerificationEdgeSelect = { select: DomainVerificationSelect; }; }; +/** A `EmailIdentity` edge in the connection. */ +export interface EmailIdentityEdge { + cursor?: string | null; + /** The `EmailIdentity` at the end of the edge. */ + node?: EmailIdentity | null; +} +export type EmailIdentityEdgeSelect = { + cursor?: boolean; + node?: { + select: EmailIdentitySelect; + }; +}; +/** A `EmailProviderAccount` edge in the connection. */ +export interface EmailProviderAccountEdge { + cursor?: string | null; + /** The `EmailProviderAccount` at the end of the edge. */ + node?: EmailProviderAccount | null; +} +export type EmailProviderAccountEdgeSelect = { + cursor?: boolean; + node?: { + select: EmailProviderAccountSelect; + }; +}; +/** A `EmailSiteIdentity` edge in the connection. */ +export interface EmailSiteIdentityEdge { + cursor?: string | null; + /** The `EmailSiteIdentity` at the end of the edge. */ + node?: EmailSiteIdentity | null; +} +export type EmailSiteIdentityEdgeSelect = { + cursor?: boolean; + node?: { + select: EmailSiteIdentitySelect; + }; +}; /** A `EmbeddingChunk` edge in the connection. */ export interface EmbeddingChunkEdge { cursor?: string | null; @@ -22622,6 +24207,18 @@ export type PartitionEdgeSelect = { select: PartitionSelect; }; }; +/** A `PlatformApi` edge in the connection. */ +export interface PlatformApiEdge { + cursor?: string | null; + /** The `PlatformApi` at the end of the edge. */ + node?: PlatformApi | null; +} +export type PlatformApiEdgeSelect = { + cursor?: boolean; + node?: { + select: PlatformApiSelect; + }; +}; /** A `PlatformApiSchema` edge in the connection. */ export interface PlatformApiSchemaEdge { cursor?: string | null; @@ -22646,18 +24243,6 @@ export type PlatformApiSettingEdgeSelect = { select: PlatformApiSettingSelect; }; }; -/** A `PlatformApis` edge in the connection. */ -export interface PlatformApisEdge { - cursor?: string | null; - /** The `PlatformApis` at the end of the edge. */ - node?: PlatformApis | null; -} -export type PlatformApisEdgeSelect = { - cursor?: boolean; - node?: { - select: PlatformApisSelect; - }; -}; /** A `PlatformCorsSetting` edge in the connection. */ export interface PlatformCorsSettingEdge { cursor?: string | null; @@ -22694,6 +24279,42 @@ export type PlatformDomainVerificationEdgeSelect = { select: PlatformDomainVerificationSelect; }; }; +/** A `PlatformEmailIdentity` edge in the connection. */ +export interface PlatformEmailIdentityEdge { + cursor?: string | null; + /** The `PlatformEmailIdentity` at the end of the edge. */ + node?: PlatformEmailIdentity | null; +} +export type PlatformEmailIdentityEdgeSelect = { + cursor?: boolean; + node?: { + select: PlatformEmailIdentitySelect; + }; +}; +/** A `PlatformEmailProviderAccount` edge in the connection. */ +export interface PlatformEmailProviderAccountEdge { + cursor?: string | null; + /** The `PlatformEmailProviderAccount` at the end of the edge. */ + node?: PlatformEmailProviderAccount | null; +} +export type PlatformEmailProviderAccountEdgeSelect = { + cursor?: boolean; + node?: { + select: PlatformEmailProviderAccountSelect; + }; +}; +/** A `PlatformEmailSiteIdentity` edge in the connection. */ +export interface PlatformEmailSiteIdentityEdge { + cursor?: string | null; + /** The `PlatformEmailSiteIdentity` at the end of the edge. */ + node?: PlatformEmailSiteIdentity | null; +} +export type PlatformEmailSiteIdentityEdgeSelect = { + cursor?: boolean; + node?: { + select: PlatformEmailSiteIdentitySelect; + }; +}; /** A `PlatformManagedDomain` edge in the connection. */ export interface PlatformManagedDomainEdge { cursor?: string | null; diff --git a/sdk/constructive-sdk/src/api/orm/models/apis.ts b/sdk/constructive-sdk/src/api/orm/models/api.ts similarity index 60% rename from sdk/constructive-sdk/src/api/orm/models/apis.ts rename to sdk/constructive-sdk/src/api/orm/models/api.ts index a62444db0f..4d60695731 100644 --- a/sdk/constructive-sdk/src/api/orm/models/apis.ts +++ b/sdk/constructive-sdk/src/api/orm/models/api.ts @@ -1,5 +1,5 @@ /** - * Apis model for ORM client + * Api 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 { - Apis, - ApisWithRelations, - ApisSelect, - ApisFilter, - ApisOrderBy, - CreateApisInput, - UpdateApisInput, - ApisPatch, + Api, + ApiWithRelations, + ApiSelect, + ApiFilter, + ApiOrderBy, + CreateApiInput, + UpdateApiInput, + ApiPatch, } from '../input-types'; import { connectionFieldsMap } from '../input-types'; -export class ApisModel { +export class ApiModel { constructor(private client: OrmClient) {} - findMany( - args: FindManyArgs & { + findMany( + args: FindManyArgs & { select: S; - } & StrictSelect + } & StrictSelect ): QueryBuilder<{ - apises: ConnectionResult>; + apis: ConnectionResult>; }> { const { document, variables } = buildFindManyDocument( - 'Apis', - 'apises', + 'Api', + 'apis', args.select, { where: args?.where, @@ -56,65 +56,65 @@ export class ApisModel { before: args?.before, offset: args?.offset, }, - 'ApisFilter', - 'ApisOrderBy', + 'ApiFilter', + 'ApiOrderBy', connectionFieldsMap ); return new QueryBuilder({ client: this.client, operation: 'query', - operationName: 'Apis', - fieldName: 'apises', + operationName: 'Api', + fieldName: 'apis', document, variables, }); } - findFirst( - args: FindFirstArgs & { + findFirst( + args: FindFirstArgs & { select: S; - } & StrictSelect + } & StrictSelect ): QueryBuilder<{ - apis: InferSelectResult | null; + api: InferSelectResult | null; }> { const { document, variables } = buildFindFirstDocument( - 'Apis', - 'apises', + 'Api', + 'apis', args.select, { where: args?.where, orderBy: args?.orderBy as string[] | undefined, }, - 'ApisFilter', - 'ApisOrderBy', + 'ApiFilter', + 'ApiOrderBy', connectionFieldsMap ); return new QueryBuilder({ client: this.client, operation: 'query', - operationName: 'Apis', - fieldName: 'apis', + operationName: 'Api', + fieldName: 'api', document, variables, transform: (data: { - apises?: { - nodes?: InferSelectResult[]; + apis?: { + nodes?: InferSelectResult[]; }; }) => ({ - apis: data.apises?.nodes?.[0] ?? null, + api: data.apis?.nodes?.[0] ?? null, }), }); } - findOne( + findOne( args: { id: string; select: S; - } & StrictSelect + } & StrictSelect ): QueryBuilder<{ - apis: InferSelectResult | null; + api: InferSelectResult | null; }> { const { document, variables } = buildFindManyDocument( - 'Apis', - 'apises', + 'Api', + 'apis', args.select, { where: { @@ -124,91 +124,91 @@ export class ApisModel { }, first: 1, }, - 'ApisFilter', - 'ApisOrderBy', + 'ApiFilter', + 'ApiOrderBy', connectionFieldsMap ); return new QueryBuilder({ client: this.client, operation: 'query', - operationName: 'Apis', - fieldName: 'apis', + operationName: 'Api', + fieldName: 'api', document, variables, transform: (data: { - apises?: { - nodes?: InferSelectResult[]; + apis?: { + nodes?: InferSelectResult[]; }; }) => ({ - apis: data.apises?.nodes?.[0] ?? null, + api: data.apis?.nodes?.[0] ?? null, }), }); } - create( - args: CreateArgs & { + create( + args: CreateArgs & { select: S; - } & StrictSelect + } & StrictSelect ): QueryBuilder<{ - createApis: { - apis: InferSelectResult; + createApi: { + api: InferSelectResult; }; }> { const { document, variables } = buildCreateDocument( - 'Apis', - 'createApis', - 'apis', + 'Api', + 'createApi', + 'api', args.select, args.data, - 'CreateApisInput', + 'CreateApiInput', connectionFieldsMap ); return new QueryBuilder({ client: this.client, operation: 'mutation', - operationName: 'Apis', - fieldName: 'createApis', + operationName: 'Api', + fieldName: 'createApi', document, variables, }); } - update( + update( args: UpdateArgs< S, { id: string; }, - ApisPatch + ApiPatch > & { select: S; - } & StrictSelect + } & StrictSelect ): QueryBuilder<{ - updateApis: { - apis: InferSelectResult; + updateApi: { + api: InferSelectResult; }; }> { const { document, variables } = buildUpdateByPkDocument( - 'Apis', - 'updateApis', - 'apis', + 'Api', + 'updateApi', + 'api', args.select, args.where.id, args.data, - 'UpdateApisInput', + 'UpdateApiInput', 'id', - 'apisPatch', + 'apiPatch', connectionFieldsMap, undefined ); return new QueryBuilder({ client: this.client, operation: 'mutation', - operationName: 'Apis', - fieldName: 'updateApis', + operationName: 'Api', + fieldName: 'updateApi', document, variables, }); } - delete( + delete( args: DeleteArgs< { id: string; @@ -216,28 +216,28 @@ export class ApisModel { S > & { select: S; - } & StrictSelect + } & StrictSelect ): QueryBuilder<{ - deleteApis: { - apis: InferSelectResult; + deleteApi: { + api: InferSelectResult; }; }> { const { document, variables } = buildDeleteByPkDocument( - 'Apis', - 'deleteApis', - 'apis', + 'Api', + 'deleteApi', + 'api', { id: args.where.id, }, - 'DeleteApisInput', + 'DeleteApiInput', args.select, connectionFieldsMap ); return new QueryBuilder({ client: this.client, operation: 'mutation', - operationName: 'Apis', - fieldName: 'deleteApis', + operationName: 'Api', + fieldName: 'deleteApi', document, variables, }); diff --git a/sdk/constructive-sdk/src/api/orm/models/emailIdentity.ts b/sdk/constructive-sdk/src/api/orm/models/emailIdentity.ts new file mode 100644 index 0000000000..ac0262d9d9 --- /dev/null +++ b/sdk/constructive-sdk/src/api/orm/models/emailIdentity.ts @@ -0,0 +1,245 @@ +/** + * EmailIdentity 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 { + EmailIdentity, + EmailIdentityWithRelations, + EmailIdentitySelect, + EmailIdentityFilter, + EmailIdentityOrderBy, + CreateEmailIdentityInput, + UpdateEmailIdentityInput, + EmailIdentityPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class EmailIdentityModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + emailIdentities: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'EmailIdentity', + 'emailIdentities', + 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, + }, + 'EmailIdentityFilter', + 'EmailIdentityOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'EmailIdentity', + fieldName: 'emailIdentities', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + emailIdentity: InferSelectResult | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'EmailIdentity', + 'emailIdentities', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'EmailIdentityFilter', + 'EmailIdentityOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'EmailIdentity', + fieldName: 'emailIdentity', + document, + variables, + transform: (data: { + emailIdentities?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + emailIdentity: data.emailIdentities?.nodes?.[0] ?? null, + }), + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + emailIdentity: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'EmailIdentity', + 'emailIdentities', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'EmailIdentityFilter', + 'EmailIdentityOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'EmailIdentity', + fieldName: 'emailIdentity', + document, + variables, + transform: (data: { + emailIdentities?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + emailIdentity: data.emailIdentities?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createEmailIdentity: { + emailIdentity: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'EmailIdentity', + 'createEmailIdentity', + 'emailIdentity', + args.select, + args.data, + 'CreateEmailIdentityInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'EmailIdentity', + fieldName: 'createEmailIdentity', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + EmailIdentityPatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateEmailIdentity: { + emailIdentity: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'EmailIdentity', + 'updateEmailIdentity', + 'emailIdentity', + args.select, + args.where.id, + args.data, + 'UpdateEmailIdentityInput', + 'id', + 'emailIdentityPatch', + connectionFieldsMap, + undefined + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'EmailIdentity', + fieldName: 'updateEmailIdentity', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteEmailIdentity: { + emailIdentity: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'EmailIdentity', + 'deleteEmailIdentity', + 'emailIdentity', + { + id: args.where.id, + }, + 'DeleteEmailIdentityInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'EmailIdentity', + fieldName: 'deleteEmailIdentity', + document, + variables, + }); + } +} diff --git a/sdk/constructive-sdk/src/api/orm/models/emailProviderAccount.ts b/sdk/constructive-sdk/src/api/orm/models/emailProviderAccount.ts new file mode 100644 index 0000000000..a720e8d015 --- /dev/null +++ b/sdk/constructive-sdk/src/api/orm/models/emailProviderAccount.ts @@ -0,0 +1,247 @@ +/** + * EmailProviderAccount 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 { + EmailProviderAccount, + EmailProviderAccountWithRelations, + EmailProviderAccountSelect, + EmailProviderAccountFilter, + EmailProviderAccountOrderBy, + CreateEmailProviderAccountInput, + UpdateEmailProviderAccountInput, + EmailProviderAccountPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class EmailProviderAccountModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + emailProviderAccounts: ConnectionResult< + InferSelectResult + >; + }> { + const { document, variables } = buildFindManyDocument( + 'EmailProviderAccount', + 'emailProviderAccounts', + 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, + }, + 'EmailProviderAccountFilter', + 'EmailProviderAccountOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'EmailProviderAccount', + fieldName: 'emailProviderAccounts', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + emailProviderAccount: InferSelectResult | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'EmailProviderAccount', + 'emailProviderAccounts', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'EmailProviderAccountFilter', + 'EmailProviderAccountOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'EmailProviderAccount', + fieldName: 'emailProviderAccount', + document, + variables, + transform: (data: { + emailProviderAccounts?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + emailProviderAccount: data.emailProviderAccounts?.nodes?.[0] ?? null, + }), + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + emailProviderAccount: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'EmailProviderAccount', + 'emailProviderAccounts', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'EmailProviderAccountFilter', + 'EmailProviderAccountOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'EmailProviderAccount', + fieldName: 'emailProviderAccount', + document, + variables, + transform: (data: { + emailProviderAccounts?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + emailProviderAccount: data.emailProviderAccounts?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createEmailProviderAccount: { + emailProviderAccount: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'EmailProviderAccount', + 'createEmailProviderAccount', + 'emailProviderAccount', + args.select, + args.data, + 'CreateEmailProviderAccountInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'EmailProviderAccount', + fieldName: 'createEmailProviderAccount', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + EmailProviderAccountPatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateEmailProviderAccount: { + emailProviderAccount: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'EmailProviderAccount', + 'updateEmailProviderAccount', + 'emailProviderAccount', + args.select, + args.where.id, + args.data, + 'UpdateEmailProviderAccountInput', + 'id', + 'emailProviderAccountPatch', + connectionFieldsMap, + undefined + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'EmailProviderAccount', + fieldName: 'updateEmailProviderAccount', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteEmailProviderAccount: { + emailProviderAccount: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'EmailProviderAccount', + 'deleteEmailProviderAccount', + 'emailProviderAccount', + { + id: args.where.id, + }, + 'DeleteEmailProviderAccountInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'EmailProviderAccount', + fieldName: 'deleteEmailProviderAccount', + document, + variables, + }); + } +} diff --git a/sdk/constructive-sdk/src/api/orm/models/emailSiteIdentity.ts b/sdk/constructive-sdk/src/api/orm/models/emailSiteIdentity.ts new file mode 100644 index 0000000000..408d8ffa81 --- /dev/null +++ b/sdk/constructive-sdk/src/api/orm/models/emailSiteIdentity.ts @@ -0,0 +1,245 @@ +/** + * EmailSiteIdentity 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 { + EmailSiteIdentity, + EmailSiteIdentityWithRelations, + EmailSiteIdentitySelect, + EmailSiteIdentityFilter, + EmailSiteIdentityOrderBy, + CreateEmailSiteIdentityInput, + UpdateEmailSiteIdentityInput, + EmailSiteIdentityPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class EmailSiteIdentityModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + emailSiteIdentities: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'EmailSiteIdentity', + 'emailSiteIdentities', + 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, + }, + 'EmailSiteIdentityFilter', + 'EmailSiteIdentityOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'EmailSiteIdentity', + fieldName: 'emailSiteIdentities', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + emailSiteIdentity: InferSelectResult | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'EmailSiteIdentity', + 'emailSiteIdentities', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'EmailSiteIdentityFilter', + 'EmailSiteIdentityOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'EmailSiteIdentity', + fieldName: 'emailSiteIdentity', + document, + variables, + transform: (data: { + emailSiteIdentities?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + emailSiteIdentity: data.emailSiteIdentities?.nodes?.[0] ?? null, + }), + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + emailSiteIdentity: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'EmailSiteIdentity', + 'emailSiteIdentities', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'EmailSiteIdentityFilter', + 'EmailSiteIdentityOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'EmailSiteIdentity', + fieldName: 'emailSiteIdentity', + document, + variables, + transform: (data: { + emailSiteIdentities?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + emailSiteIdentity: data.emailSiteIdentities?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createEmailSiteIdentity: { + emailSiteIdentity: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'EmailSiteIdentity', + 'createEmailSiteIdentity', + 'emailSiteIdentity', + args.select, + args.data, + 'CreateEmailSiteIdentityInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'EmailSiteIdentity', + fieldName: 'createEmailSiteIdentity', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + EmailSiteIdentityPatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateEmailSiteIdentity: { + emailSiteIdentity: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'EmailSiteIdentity', + 'updateEmailSiteIdentity', + 'emailSiteIdentity', + args.select, + args.where.id, + args.data, + 'UpdateEmailSiteIdentityInput', + 'id', + 'emailSiteIdentityPatch', + connectionFieldsMap, + undefined + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'EmailSiteIdentity', + fieldName: 'updateEmailSiteIdentity', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteEmailSiteIdentity: { + emailSiteIdentity: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'EmailSiteIdentity', + 'deleteEmailSiteIdentity', + 'emailSiteIdentity', + { + id: args.where.id, + }, + 'DeleteEmailSiteIdentityInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'EmailSiteIdentity', + fieldName: 'deleteEmailSiteIdentity', + document, + variables, + }); + } +} diff --git a/sdk/constructive-sdk/src/api/orm/models/index.ts b/sdk/constructive-sdk/src/api/orm/models/index.ts index a947c4f65f..c3370b199c 100644 --- a/sdk/constructive-sdk/src/api/orm/models/index.ts +++ b/sdk/constructive-sdk/src/api/orm/models/index.ts @@ -3,9 +3,9 @@ * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ +export { ApiModel } from './api'; export { ApiSchemaModel } from './apiSchema'; export { ApiSettingModel } from './apiSetting'; -export { ApisModel } from './apis'; export { AstMigrationModel } from './astMigration'; export { CheckConstraintModel } from './checkConstraint'; export { CompositeTypeModel } from './compositeType'; @@ -19,6 +19,9 @@ export { DomainModel } from './domain'; export { DomainEventModel } from './domainEvent'; export { DomainTypeModel } from './domainType'; export { DomainVerificationModel } from './domainVerification'; +export { EmailIdentityModel } from './emailIdentity'; +export { EmailProviderAccountModel } from './emailProviderAccount'; +export { EmailSiteIdentityModel } from './emailSiteIdentity'; export { EmbeddingChunkModel } from './embeddingChunk'; export { EnumModel } from './enum'; export { ExclusionConstraintModel } from './exclusionConstraint'; @@ -35,13 +38,16 @@ export { ManagedDomainModel } from './managedDomain'; export { NodeTypeRegistryModel } from './nodeTypeRegistry'; export { PageModel } from './page'; export { PartitionModel } from './partition'; +export { PlatformApiModel } from './platformApi'; export { PlatformApiSchemaModel } from './platformApiSchema'; export { PlatformApiSettingModel } from './platformApiSetting'; -export { PlatformApisModel } from './platformApis'; export { PlatformCorsSettingModel } from './platformCorsSetting'; export { PlatformDomainModel } from './platformDomain'; export { PlatformDomainEventModel } from './platformDomainEvent'; export { PlatformDomainVerificationModel } from './platformDomainVerification'; +export { PlatformEmailIdentityModel } from './platformEmailIdentity'; +export { PlatformEmailProviderAccountModel } from './platformEmailProviderAccount'; +export { PlatformEmailSiteIdentityModel } from './platformEmailSiteIdentity'; export { PlatformManagedDomainModel } from './platformManagedDomain'; export { PlatformPageModel } from './platformPage'; export { PlatformSiteAppLinkModel } from './platformSiteAppLink'; diff --git a/sdk/constructive-cli/src/api/orm/models/platformApis.ts b/sdk/constructive-sdk/src/api/orm/models/platformApi.ts similarity index 54% rename from sdk/constructive-cli/src/api/orm/models/platformApis.ts rename to sdk/constructive-sdk/src/api/orm/models/platformApi.ts index 43cd25c9d2..3eee59e6c8 100644 --- a/sdk/constructive-cli/src/api/orm/models/platformApis.ts +++ b/sdk/constructive-sdk/src/api/orm/models/platformApi.ts @@ -1,5 +1,5 @@ /** - * PlatformApis model for ORM client + * PlatformApi 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 { - PlatformApis, - PlatformApisWithRelations, - PlatformApisSelect, - PlatformApisFilter, - PlatformApisOrderBy, - CreatePlatformApisInput, - UpdatePlatformApisInput, - PlatformApisPatch, + PlatformApi, + PlatformApiWithRelations, + PlatformApiSelect, + PlatformApiFilter, + PlatformApiOrderBy, + CreatePlatformApiInput, + UpdatePlatformApiInput, + PlatformApiPatch, } from '../input-types'; import { connectionFieldsMap } from '../input-types'; -export class PlatformApisModel { +export class PlatformApiModel { constructor(private client: OrmClient) {} - findMany( - args: FindManyArgs & { + findMany( + args: FindManyArgs & { select: S; - } & StrictSelect + } & StrictSelect ): QueryBuilder<{ - platformApises: ConnectionResult>; + platformApis: ConnectionResult>; }> { const { document, variables } = buildFindManyDocument( - 'PlatformApis', - 'platformApises', + 'PlatformApi', + 'platformApis', args.select, { where: args?.where, @@ -56,65 +56,65 @@ export class PlatformApisModel { before: args?.before, offset: args?.offset, }, - 'PlatformApisFilter', - 'PlatformApisOrderBy', + 'PlatformApiFilter', + 'PlatformApiOrderBy', connectionFieldsMap ); return new QueryBuilder({ client: this.client, operation: 'query', - operationName: 'PlatformApis', - fieldName: 'platformApises', + operationName: 'PlatformApi', + fieldName: 'platformApis', document, variables, }); } - findFirst( - args: FindFirstArgs & { + findFirst( + args: FindFirstArgs & { select: S; - } & StrictSelect + } & StrictSelect ): QueryBuilder<{ - platformApis: InferSelectResult | null; + platformApi: InferSelectResult | null; }> { const { document, variables } = buildFindFirstDocument( - 'PlatformApis', - 'platformApises', + 'PlatformApi', + 'platformApis', args.select, { where: args?.where, orderBy: args?.orderBy as string[] | undefined, }, - 'PlatformApisFilter', - 'PlatformApisOrderBy', + 'PlatformApiFilter', + 'PlatformApiOrderBy', connectionFieldsMap ); return new QueryBuilder({ client: this.client, operation: 'query', - operationName: 'PlatformApis', - fieldName: 'platformApis', + operationName: 'PlatformApi', + fieldName: 'platformApi', document, variables, transform: (data: { - platformApises?: { - nodes?: InferSelectResult[]; + platformApis?: { + nodes?: InferSelectResult[]; }; }) => ({ - platformApis: data.platformApises?.nodes?.[0] ?? null, + platformApi: data.platformApis?.nodes?.[0] ?? null, }), }); } - findOne( + findOne( args: { id: string; select: S; - } & StrictSelect + } & StrictSelect ): QueryBuilder<{ - platformApis: InferSelectResult | null; + platformApi: InferSelectResult | null; }> { const { document, variables } = buildFindManyDocument( - 'PlatformApis', - 'platformApises', + 'PlatformApi', + 'platformApis', args.select, { where: { @@ -124,91 +124,91 @@ export class PlatformApisModel { }, first: 1, }, - 'PlatformApisFilter', - 'PlatformApisOrderBy', + 'PlatformApiFilter', + 'PlatformApiOrderBy', connectionFieldsMap ); return new QueryBuilder({ client: this.client, operation: 'query', - operationName: 'PlatformApis', - fieldName: 'platformApis', + operationName: 'PlatformApi', + fieldName: 'platformApi', document, variables, transform: (data: { - platformApises?: { - nodes?: InferSelectResult[]; + platformApis?: { + nodes?: InferSelectResult[]; }; }) => ({ - platformApis: data.platformApises?.nodes?.[0] ?? null, + platformApi: data.platformApis?.nodes?.[0] ?? null, }), }); } - create( - args: CreateArgs & { + create( + args: CreateArgs & { select: S; - } & StrictSelect + } & StrictSelect ): QueryBuilder<{ - createPlatformApis: { - platformApis: InferSelectResult; + createPlatformApi: { + platformApi: InferSelectResult; }; }> { const { document, variables } = buildCreateDocument( - 'PlatformApis', - 'createPlatformApis', - 'platformApis', + 'PlatformApi', + 'createPlatformApi', + 'platformApi', args.select, args.data, - 'CreatePlatformApisInput', + 'CreatePlatformApiInput', connectionFieldsMap ); return new QueryBuilder({ client: this.client, operation: 'mutation', - operationName: 'PlatformApis', - fieldName: 'createPlatformApis', + operationName: 'PlatformApi', + fieldName: 'createPlatformApi', document, variables, }); } - update( + update( args: UpdateArgs< S, { id: string; }, - PlatformApisPatch + PlatformApiPatch > & { select: S; - } & StrictSelect + } & StrictSelect ): QueryBuilder<{ - updatePlatformApis: { - platformApis: InferSelectResult; + updatePlatformApi: { + platformApi: InferSelectResult; }; }> { const { document, variables } = buildUpdateByPkDocument( - 'PlatformApis', - 'updatePlatformApis', - 'platformApis', + 'PlatformApi', + 'updatePlatformApi', + 'platformApi', args.select, args.where.id, args.data, - 'UpdatePlatformApisInput', + 'UpdatePlatformApiInput', 'id', - 'platformApisPatch', + 'platformApiPatch', connectionFieldsMap, undefined ); return new QueryBuilder({ client: this.client, operation: 'mutation', - operationName: 'PlatformApis', - fieldName: 'updatePlatformApis', + operationName: 'PlatformApi', + fieldName: 'updatePlatformApi', document, variables, }); } - delete( + delete( args: DeleteArgs< { id: string; @@ -216,28 +216,28 @@ export class PlatformApisModel { S > & { select: S; - } & StrictSelect + } & StrictSelect ): QueryBuilder<{ - deletePlatformApis: { - platformApis: InferSelectResult; + deletePlatformApi: { + platformApi: InferSelectResult; }; }> { const { document, variables } = buildDeleteByPkDocument( - 'PlatformApis', - 'deletePlatformApis', - 'platformApis', + 'PlatformApi', + 'deletePlatformApi', + 'platformApi', { id: args.where.id, }, - 'DeletePlatformApisInput', + 'DeletePlatformApiInput', args.select, connectionFieldsMap ); return new QueryBuilder({ client: this.client, operation: 'mutation', - operationName: 'PlatformApis', - fieldName: 'deletePlatformApis', + operationName: 'PlatformApi', + fieldName: 'deletePlatformApi', document, variables, }); diff --git a/sdk/constructive-sdk/src/api/orm/models/platformEmailIdentity.ts b/sdk/constructive-sdk/src/api/orm/models/platformEmailIdentity.ts new file mode 100644 index 0000000000..8cc262f318 --- /dev/null +++ b/sdk/constructive-sdk/src/api/orm/models/platformEmailIdentity.ts @@ -0,0 +1,247 @@ +/** + * PlatformEmailIdentity 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 { + PlatformEmailIdentity, + PlatformEmailIdentityWithRelations, + PlatformEmailIdentitySelect, + PlatformEmailIdentityFilter, + PlatformEmailIdentityOrderBy, + CreatePlatformEmailIdentityInput, + UpdatePlatformEmailIdentityInput, + PlatformEmailIdentityPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class PlatformEmailIdentityModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformEmailIdentities: ConnectionResult< + InferSelectResult + >; + }> { + const { document, variables } = buildFindManyDocument( + 'PlatformEmailIdentity', + 'platformEmailIdentities', + 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, + }, + 'PlatformEmailIdentityFilter', + 'PlatformEmailIdentityOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformEmailIdentity', + fieldName: 'platformEmailIdentities', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformEmailIdentity: InferSelectResult | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'PlatformEmailIdentity', + 'platformEmailIdentities', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'PlatformEmailIdentityFilter', + 'PlatformEmailIdentityOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformEmailIdentity', + fieldName: 'platformEmailIdentity', + document, + variables, + transform: (data: { + platformEmailIdentities?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + platformEmailIdentity: data.platformEmailIdentities?.nodes?.[0] ?? null, + }), + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformEmailIdentity: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'PlatformEmailIdentity', + 'platformEmailIdentities', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'PlatformEmailIdentityFilter', + 'PlatformEmailIdentityOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformEmailIdentity', + fieldName: 'platformEmailIdentity', + document, + variables, + transform: (data: { + platformEmailIdentities?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + platformEmailIdentity: data.platformEmailIdentities?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createPlatformEmailIdentity: { + platformEmailIdentity: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'PlatformEmailIdentity', + 'createPlatformEmailIdentity', + 'platformEmailIdentity', + args.select, + args.data, + 'CreatePlatformEmailIdentityInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PlatformEmailIdentity', + fieldName: 'createPlatformEmailIdentity', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + PlatformEmailIdentityPatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updatePlatformEmailIdentity: { + platformEmailIdentity: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'PlatformEmailIdentity', + 'updatePlatformEmailIdentity', + 'platformEmailIdentity', + args.select, + args.where.id, + args.data, + 'UpdatePlatformEmailIdentityInput', + 'id', + 'platformEmailIdentityPatch', + connectionFieldsMap, + undefined + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PlatformEmailIdentity', + fieldName: 'updatePlatformEmailIdentity', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deletePlatformEmailIdentity: { + platformEmailIdentity: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'PlatformEmailIdentity', + 'deletePlatformEmailIdentity', + 'platformEmailIdentity', + { + id: args.where.id, + }, + 'DeletePlatformEmailIdentityInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PlatformEmailIdentity', + fieldName: 'deletePlatformEmailIdentity', + document, + variables, + }); + } +} diff --git a/sdk/constructive-sdk/src/api/orm/models/platformEmailProviderAccount.ts b/sdk/constructive-sdk/src/api/orm/models/platformEmailProviderAccount.ts new file mode 100644 index 0000000000..07c760f30b --- /dev/null +++ b/sdk/constructive-sdk/src/api/orm/models/platformEmailProviderAccount.ts @@ -0,0 +1,261 @@ +/** + * PlatformEmailProviderAccount 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 { + PlatformEmailProviderAccount, + PlatformEmailProviderAccountWithRelations, + PlatformEmailProviderAccountSelect, + PlatformEmailProviderAccountFilter, + PlatformEmailProviderAccountOrderBy, + CreatePlatformEmailProviderAccountInput, + UpdatePlatformEmailProviderAccountInput, + PlatformEmailProviderAccountPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class PlatformEmailProviderAccountModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs< + S, + PlatformEmailProviderAccountFilter, + PlatformEmailProviderAccountOrderBy + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformEmailProviderAccounts: ConnectionResult< + InferSelectResult + >; + }> { + const { document, variables } = buildFindManyDocument( + 'PlatformEmailProviderAccount', + 'platformEmailProviderAccounts', + 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, + }, + 'PlatformEmailProviderAccountFilter', + 'PlatformEmailProviderAccountOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformEmailProviderAccount', + fieldName: 'platformEmailProviderAccounts', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs< + S, + PlatformEmailProviderAccountFilter, + PlatformEmailProviderAccountOrderBy + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformEmailProviderAccount: InferSelectResult< + PlatformEmailProviderAccountWithRelations, + S + > | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'PlatformEmailProviderAccount', + 'platformEmailProviderAccounts', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'PlatformEmailProviderAccountFilter', + 'PlatformEmailProviderAccountOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformEmailProviderAccount', + fieldName: 'platformEmailProviderAccount', + document, + variables, + transform: (data: { + platformEmailProviderAccounts?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + platformEmailProviderAccount: data.platformEmailProviderAccounts?.nodes?.[0] ?? null, + }), + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformEmailProviderAccount: InferSelectResult< + PlatformEmailProviderAccountWithRelations, + S + > | null; + }> { + const { document, variables } = buildFindManyDocument( + 'PlatformEmailProviderAccount', + 'platformEmailProviderAccounts', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'PlatformEmailProviderAccountFilter', + 'PlatformEmailProviderAccountOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformEmailProviderAccount', + fieldName: 'platformEmailProviderAccount', + document, + variables, + transform: (data: { + platformEmailProviderAccounts?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + platformEmailProviderAccount: data.platformEmailProviderAccounts?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createPlatformEmailProviderAccount: { + platformEmailProviderAccount: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'PlatformEmailProviderAccount', + 'createPlatformEmailProviderAccount', + 'platformEmailProviderAccount', + args.select, + args.data, + 'CreatePlatformEmailProviderAccountInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PlatformEmailProviderAccount', + fieldName: 'createPlatformEmailProviderAccount', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + PlatformEmailProviderAccountPatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updatePlatformEmailProviderAccount: { + platformEmailProviderAccount: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'PlatformEmailProviderAccount', + 'updatePlatformEmailProviderAccount', + 'platformEmailProviderAccount', + args.select, + args.where.id, + args.data, + 'UpdatePlatformEmailProviderAccountInput', + 'id', + 'platformEmailProviderAccountPatch', + connectionFieldsMap, + undefined + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PlatformEmailProviderAccount', + fieldName: 'updatePlatformEmailProviderAccount', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deletePlatformEmailProviderAccount: { + platformEmailProviderAccount: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'PlatformEmailProviderAccount', + 'deletePlatformEmailProviderAccount', + 'platformEmailProviderAccount', + { + id: args.where.id, + }, + 'DeletePlatformEmailProviderAccountInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PlatformEmailProviderAccount', + fieldName: 'deletePlatformEmailProviderAccount', + document, + variables, + }); + } +} diff --git a/sdk/constructive-sdk/src/api/orm/models/platformEmailSiteIdentity.ts b/sdk/constructive-sdk/src/api/orm/models/platformEmailSiteIdentity.ts new file mode 100644 index 0000000000..bc3ff67daa --- /dev/null +++ b/sdk/constructive-sdk/src/api/orm/models/platformEmailSiteIdentity.ts @@ -0,0 +1,247 @@ +/** + * PlatformEmailSiteIdentity 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 { + PlatformEmailSiteIdentity, + PlatformEmailSiteIdentityWithRelations, + PlatformEmailSiteIdentitySelect, + PlatformEmailSiteIdentityFilter, + PlatformEmailSiteIdentityOrderBy, + CreatePlatformEmailSiteIdentityInput, + UpdatePlatformEmailSiteIdentityInput, + PlatformEmailSiteIdentityPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class PlatformEmailSiteIdentityModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformEmailSiteIdentities: ConnectionResult< + InferSelectResult + >; + }> { + const { document, variables } = buildFindManyDocument( + 'PlatformEmailSiteIdentity', + 'platformEmailSiteIdentities', + 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, + }, + 'PlatformEmailSiteIdentityFilter', + 'PlatformEmailSiteIdentityOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformEmailSiteIdentity', + fieldName: 'platformEmailSiteIdentities', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformEmailSiteIdentity: InferSelectResult | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'PlatformEmailSiteIdentity', + 'platformEmailSiteIdentities', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'PlatformEmailSiteIdentityFilter', + 'PlatformEmailSiteIdentityOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformEmailSiteIdentity', + fieldName: 'platformEmailSiteIdentity', + document, + variables, + transform: (data: { + platformEmailSiteIdentities?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + platformEmailSiteIdentity: data.platformEmailSiteIdentities?.nodes?.[0] ?? null, + }), + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformEmailSiteIdentity: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'PlatformEmailSiteIdentity', + 'platformEmailSiteIdentities', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'PlatformEmailSiteIdentityFilter', + 'PlatformEmailSiteIdentityOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformEmailSiteIdentity', + fieldName: 'platformEmailSiteIdentity', + document, + variables, + transform: (data: { + platformEmailSiteIdentities?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + platformEmailSiteIdentity: data.platformEmailSiteIdentities?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createPlatformEmailSiteIdentity: { + platformEmailSiteIdentity: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'PlatformEmailSiteIdentity', + 'createPlatformEmailSiteIdentity', + 'platformEmailSiteIdentity', + args.select, + args.data, + 'CreatePlatformEmailSiteIdentityInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PlatformEmailSiteIdentity', + fieldName: 'createPlatformEmailSiteIdentity', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + PlatformEmailSiteIdentityPatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updatePlatformEmailSiteIdentity: { + platformEmailSiteIdentity: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'PlatformEmailSiteIdentity', + 'updatePlatformEmailSiteIdentity', + 'platformEmailSiteIdentity', + args.select, + args.where.id, + args.data, + 'UpdatePlatformEmailSiteIdentityInput', + 'id', + 'platformEmailSiteIdentityPatch', + connectionFieldsMap, + undefined + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PlatformEmailSiteIdentity', + fieldName: 'updatePlatformEmailSiteIdentity', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deletePlatformEmailSiteIdentity: { + platformEmailSiteIdentity: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'PlatformEmailSiteIdentity', + 'deletePlatformEmailSiteIdentity', + 'platformEmailSiteIdentity', + { + id: args.where.id, + }, + 'DeletePlatformEmailSiteIdentityInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PlatformEmailSiteIdentity', + fieldName: 'deletePlatformEmailSiteIdentity', + document, + variables, + }); + } +} diff --git a/sdk/constructive-sdk/src/auth/README.md b/sdk/constructive-sdk/src/auth/README.md index b24922f1cc..8dfde0256e 100644 --- a/sdk/constructive-sdk/src/auth/README.md +++ b/sdk/constructive-sdk/src/auth/README.md @@ -10,7 +10,7 @@ - **Tables:** 13 - **Custom queries:** 5 -- **Custom mutations:** 30 +- **Custom mutations:** 32 **Generators:** ORM diff --git a/sdk/constructive-sdk/src/auth/orm/README.md b/sdk/constructive-sdk/src/auth/orm/README.md index 79d52a6c09..1e4f99a142 100644 --- a/sdk/constructive-sdk/src/auth/orm/README.md +++ b/sdk/constructive-sdk/src/auth/orm/README.md @@ -921,6 +921,21 @@ signInCrossOrigin const result = await db.mutation.signInCrossOrigin({ input: { credentialKind: '', token: '' } }).execute(); ``` +### `db.mutation.signInMagicLink` + +signInMagicLink + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | SignInMagicLinkInput (required) | + +```typescript +const result = await db.mutation.signInMagicLink({ input: { credentialKind: '', deviceToken: '', rememberMe: '', token: '' } }).execute(); +``` + ### `db.mutation.signInSmsOtp` signInSmsOtp @@ -966,6 +981,21 @@ signUp const result = await db.mutation.signUp({ input: '' }).execute(); ``` +### `db.mutation.signUpMagicLink` + +signUpMagicLink + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | SignUpMagicLinkInput (required) | + +```typescript +const result = await db.mutation.signUpMagicLink({ input: { credentialKind: '', deviceToken: '', rememberMe: '', token: '' } }).execute(); +``` + ### `db.mutation.signUpSms` signUpSms diff --git a/sdk/constructive-sdk/src/auth/orm/input-types.ts b/sdk/constructive-sdk/src/auth/orm/input-types.ts index b59a65f3f1..f2ea8e5716 100644 --- a/sdk/constructive-sdk/src/auth/orm/input-types.ts +++ b/sdk/constructive-sdk/src/auth/orm/input-types.ts @@ -306,7 +306,7 @@ export interface OrgApiKeyList { } /** User phone numbers with country code, verification, and primary-number management */ export interface PhoneNumber { - /** Country calling code (e.g. +1, +44) */ + /** Country calling code the number was entered under (e.g. +1, +44). Display only: `number` already carries it, and sign-in matches `number`. */ cc?: string | null; createdAt?: string | null; id: string; @@ -316,7 +316,7 @@ export interface PhoneNumber { isVerified?: boolean | null; /** Optional user-provided label for this phone number (e.g. "Mobile", "Work"). */ name?: string | null; - /** The phone number without country code */ + /** The full number in E.164 form, country calling code included (e.g. +15551234567). This is the value SMS sign-in and MFA match, so it is unique across the table and constrained to that shape. */ number?: string | null; ownerId?: string | null; updatedAt?: string | null; @@ -351,9 +351,9 @@ export interface PrincipalEntity { principalId?: string | null; updatedAt?: string | null; } -/** Per-scope permission overrides for principals. No row = full access; row exists = apply restrictions. */ +/** Per-scope capability overrides for principals. No row = full access; row exists = apply restrictions. */ export interface PrincipalScopeOverride { - /** Optional permission mask; AND-masked with parent permissions during cascade. NULL means no extra mask. */ + /** Optional capability mask; AND-masked with parent capabilities during cascade. NULL means no extra mask. */ allowedMask?: string | null; createdAt?: string | null; id: string; @@ -1866,6 +1866,13 @@ export interface SignInCrossOriginInput { credentialKind?: string; token?: string; } +export interface SignInMagicLinkInput { + clientMutationId?: string; + credentialKind?: string; + deviceToken?: string; + rememberMe?: boolean; + token?: string; +} export interface SignInSmsOtpInput { clientMutationId?: string; code?: string; @@ -1886,6 +1893,13 @@ export interface SignUpInput { password?: string; rememberMe?: boolean; } +export interface SignUpMagicLinkInput { + clientMutationId?: string; + credentialKind?: string; + deviceToken?: string; + rememberMe?: boolean; + token?: string; +} export interface SignUpSmsInput { clientMutationId?: string; code?: string; @@ -2332,7 +2346,7 @@ export interface EmailInput { } /** An input for mutations affecting `PhoneNumber` */ export interface PhoneNumberInput { - /** Country calling code (e.g. +1, +44) */ + /** Country calling code the number was entered under (e.g. +1, +44). Display only: `number` already carries it, and sign-in matches `number`. */ cc: string; createdAt?: string; id?: string; @@ -2342,7 +2356,7 @@ export interface PhoneNumberInput { isVerified?: boolean; /** Optional user-provided label for this phone number (e.g. "Mobile", "Work"). */ name?: string; - /** The phone number without country code */ + /** The full number in E.164 form, country calling code included (e.g. +15551234567). This is the value SMS sign-in and MFA match, so it is unique across the table and constrained to that shape. */ number: string; ownerId?: string; updatedAt?: string; @@ -3271,6 +3285,16 @@ export type SignInCrossOriginPayloadSelect = { select: SignInCrossOriginRecordSelect; }; }; +export interface SignInMagicLinkPayload { + clientMutationId?: string | null; + result?: SignInMagicLinkRecord | null; +} +export type SignInMagicLinkPayloadSelect = { + clientMutationId?: boolean; + result?: { + select: SignInMagicLinkRecordSelect; + }; +}; export interface SignInSmsOtpPayload { clientMutationId?: string | null; result?: SignInSmsOtpRecord | null; @@ -3297,6 +3321,16 @@ export type SignUpPayloadSelect = { select: SignUpRecordSelect; }; }; +export interface SignUpMagicLinkPayload { + clientMutationId?: string | null; + result?: SignUpMagicLinkRecord | null; +} +export type SignUpMagicLinkPayloadSelect = { + clientMutationId?: boolean; + result?: { + select: SignUpMagicLinkRecordSelect; + }; +}; export interface SignUpSmsPayload { clientMutationId?: string | null; result?: SignUpSmsRecord | null; @@ -3765,6 +3799,16 @@ export type SignInCrossOriginRecordSelect = { totpEnabled?: boolean; userId?: boolean; }; +export interface SignInMagicLinkRecord { + accessToken?: string | null; + accessTokenExpiresAt?: string | null; + userId?: string | null; +} +export type SignInMagicLinkRecordSelect = { + accessToken?: boolean; + accessTokenExpiresAt?: boolean; + userId?: boolean; +}; export interface SignInSmsOtpRecord { accessToken?: string | null; accessTokenExpiresAt?: string | null; @@ -3791,6 +3835,16 @@ export type SignUpRecordSelect = { totpEnabled?: boolean; userId?: boolean; }; +export interface SignUpMagicLinkRecord { + accessToken?: string | null; + accessTokenExpiresAt?: string | null; + userId?: string | null; +} +export type SignUpMagicLinkRecordSelect = { + accessToken?: boolean; + accessTokenExpiresAt?: boolean; + userId?: boolean; +}; export interface SignUpSmsRecord { accessToken?: string | null; accessTokenExpiresAt?: string | null; diff --git a/sdk/constructive-sdk/src/auth/orm/mutation/index.ts b/sdk/constructive-sdk/src/auth/orm/mutation/index.ts index ae0973c7fb..d1531288e5 100644 --- a/sdk/constructive-sdk/src/auth/orm/mutation/index.ts +++ b/sdk/constructive-sdk/src/auth/orm/mutation/index.ts @@ -30,9 +30,11 @@ import type { SetPasswordInput, SignInInput, SignInCrossOriginInput, + SignInMagicLinkInput, SignInSmsOtpInput, SignOutInput, SignUpInput, + SignUpMagicLinkInput, SignUpSmsInput, VerifyEmailInput, VerifyPasswordInput, @@ -60,9 +62,11 @@ import type { SetPasswordPayload, SignInPayload, SignInCrossOriginPayload, + SignInMagicLinkPayload, SignInSmsOtpPayload, SignOutPayload, SignUpPayload, + SignUpMagicLinkPayload, SignUpSmsPayload, VerifyEmailPayload, VerifyPasswordPayload, @@ -90,9 +94,11 @@ import type { SetPasswordPayloadSelect, SignInPayloadSelect, SignInCrossOriginPayloadSelect, + SignInMagicLinkPayloadSelect, SignInSmsOtpPayloadSelect, SignOutPayloadSelect, SignUpPayloadSelect, + SignUpMagicLinkPayloadSelect, SignUpSmsPayloadSelect, VerifyEmailPayloadSelect, VerifyPasswordPayloadSelect, @@ -175,6 +181,9 @@ export interface SignInVariables { export interface SignInCrossOriginVariables { input: SignInCrossOriginInput; } +export interface SignInMagicLinkVariables { + input: SignInMagicLinkInput; +} export interface SignInSmsOtpVariables { input: SignInSmsOtpInput; } @@ -184,6 +193,9 @@ export interface SignOutVariables { export interface SignUpVariables { input: SignUpInput; } +export interface SignUpMagicLinkVariables { + input: SignUpMagicLinkInput; +} export interface SignUpSmsVariables { input: SignUpSmsInput; } @@ -865,6 +877,35 @@ export function createMutationOperations(client: OrmClient) { 'SignInCrossOriginPayload' ), }), + signInMagicLink: ( + args: SignInMagicLinkVariables, + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + signInMagicLink: InferSelectResult | null; + }>({ + client, + operation: 'mutation', + operationName: 'SignInMagicLink', + fieldName: 'signInMagicLink', + ...buildCustomDocument( + 'mutation', + 'SignInMagicLink', + 'signInMagicLink', + options.select, + args, + [ + { + name: 'input', + type: 'SignInMagicLinkInput!', + }, + ], + connectionFieldsMap, + 'SignInMagicLinkPayload' + ), + }), signInSmsOtp: ( args: SignInSmsOtpVariables, options: { @@ -952,6 +993,35 @@ export function createMutationOperations(client: OrmClient) { 'SignUpPayload' ), }), + signUpMagicLink: ( + args: SignUpMagicLinkVariables, + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + signUpMagicLink: InferSelectResult | null; + }>({ + client, + operation: 'mutation', + operationName: 'SignUpMagicLink', + fieldName: 'signUpMagicLink', + ...buildCustomDocument( + 'mutation', + 'SignUpMagicLink', + 'signUpMagicLink', + options.select, + args, + [ + { + name: 'input', + type: 'SignUpMagicLinkInput!', + }, + ], + connectionFieldsMap, + 'SignUpMagicLinkPayload' + ), + }), signUpSms: ( args: SignUpSmsVariables, options: { diff --git a/sdk/constructive-sdk/src/compute/README.md b/sdk/constructive-sdk/src/compute/README.md index 7842a63936..0451ebe896 100644 --- a/sdk/constructive-sdk/src/compute/README.md +++ b/sdk/constructive-sdk/src/compute/README.md @@ -8,9 +8,9 @@ ## Overview -- **Tables:** 69 +- **Tables:** 70 - **Custom queries:** 1 -- **Custom mutations:** 28 +- **Custom mutations:** 37 **Generators:** ORM diff --git a/sdk/constructive-sdk/src/compute/orm/README.md b/sdk/constructive-sdk/src/compute/orm/README.md index d1a03c4e98..a3ab572efd 100644 --- a/sdk/constructive-sdk/src/compute/orm/README.md +++ b/sdk/constructive-sdk/src/compute/orm/README.md @@ -21,6 +21,7 @@ const db = createClient({ | Model | Operations | |-------|------------| +| `contentPreset` | findMany, findOne, create, update, delete | | `dbPreset` | findMany, findOne, create, update, delete | | `functionApiBinding` | findMany, findOne, create, update, delete | | `functionCapabilityBinding` | findMany, findOne, create, update, delete | @@ -93,6 +94,45 @@ const db = createClient({ ## Table Operations +### `db.contentPreset` + +CRUD operations for ContentPreset records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `active` | Boolean | Yes | +| `commitId` | UUID | Yes | +| `createdAt` | Datetime | No | +| `definition` | JSON | Yes | +| `description` | String | Yes | +| `id` | UUID | No | +| `kind` | String | Yes | +| `label` | String | Yes | +| `slug` | String | Yes | +| `storeId` | UUID | Yes | +| `updatedAt` | Datetime | No | + +**Operations:** + +```typescript +// List all contentPreset records +const items = await db.contentPreset.findMany({ select: { active: true, commitId: true, createdAt: true, definition: true, description: true, id: true, kind: true, label: true, slug: true, storeId: true, updatedAt: true } }).execute(); + +// Get one by id +const item = await db.contentPreset.findOne({ id: '', select: { active: true, commitId: true, createdAt: true, definition: true, description: true, id: true, kind: true, label: true, slug: true, storeId: true, updatedAt: true } }).execute(); + +// Create +const created = await db.contentPreset.create({ data: { active: '', commitId: '', definition: '', description: '', kind: '', label: '', slug: '', storeId: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.contentPreset.update({ where: { id: '' }, data: { active: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.contentPreset.delete({ where: { id: '' } }).execute(); +``` + ### `db.dbPreset` CRUD operations for DbPreset records. @@ -245,6 +285,7 @@ CRUD operations for FunctionDefinition records. | `requiredBuckets` | String | Yes | | `requiredConfigs` | ResourceRequirement | Yes | | `requiredModels` | String | Yes | +| `requiredModules` | String | Yes | | `requiredSecrets` | ResourceRequirement | Yes | | `resources` | JSON | Yes | | `runtime` | String | Yes | @@ -261,13 +302,13 @@ CRUD operations for FunctionDefinition records. ```typescript // List all functionDefinition records -const items = await db.functionDefinition.findMany({ select: { accessChannels: true, category: true, concurrency: true, cpuLimitMillicores: true, cpuRequestMillicores: true, createdAt: true, databaseId: true, description: true, fnCategory: true, functionColumns: true, graphId: true, icon: true, id: true, image: true, inputs: true, integrations: true, isPublished: true, maxAttempts: true, memoryLimitBytes: true, memoryRequestBytes: true, moduleTable: true, name: true, outputs: true, payloadArgs: true, priority: true, props: true, protected: true, publishedAt: true, queueName: true, requiredBuckets: true, requiredConfigs: true, requiredModels: true, requiredSecrets: true, resources: true, runtime: true, scaleMax: true, scaleMin: true, targetFunction: true, targetSchema: true, taskIdentifier: true, timeoutSeconds: true, updatedAt: true, volatile: true } }).execute(); +const items = await db.functionDefinition.findMany({ select: { accessChannels: true, category: true, concurrency: true, cpuLimitMillicores: true, cpuRequestMillicores: true, createdAt: true, databaseId: true, description: true, fnCategory: true, functionColumns: true, graphId: true, icon: true, id: true, image: true, inputs: true, integrations: true, isPublished: true, maxAttempts: true, memoryLimitBytes: true, memoryRequestBytes: true, moduleTable: true, name: true, outputs: true, payloadArgs: true, priority: true, props: true, protected: true, publishedAt: true, queueName: true, requiredBuckets: true, requiredConfigs: true, requiredModels: true, requiredModules: true, requiredSecrets: true, resources: true, runtime: true, scaleMax: true, scaleMin: true, targetFunction: true, targetSchema: true, taskIdentifier: true, timeoutSeconds: true, updatedAt: true, volatile: true } }).execute(); // Get one by id -const item = await db.functionDefinition.findOne({ id: '', select: { accessChannels: true, category: true, concurrency: true, cpuLimitMillicores: true, cpuRequestMillicores: true, createdAt: true, databaseId: true, description: true, fnCategory: true, functionColumns: true, graphId: true, icon: true, id: true, image: true, inputs: true, integrations: true, isPublished: true, maxAttempts: true, memoryLimitBytes: true, memoryRequestBytes: true, moduleTable: true, name: true, outputs: true, payloadArgs: true, priority: true, props: true, protected: true, publishedAt: true, queueName: true, requiredBuckets: true, requiredConfigs: true, requiredModels: true, requiredSecrets: true, resources: true, runtime: true, scaleMax: true, scaleMin: true, targetFunction: true, targetSchema: true, taskIdentifier: true, timeoutSeconds: true, updatedAt: true, volatile: true } }).execute(); +const item = await db.functionDefinition.findOne({ id: '', select: { accessChannels: true, category: true, concurrency: true, cpuLimitMillicores: true, cpuRequestMillicores: true, createdAt: true, databaseId: true, description: true, fnCategory: true, functionColumns: true, graphId: true, icon: true, id: true, image: true, inputs: true, integrations: true, isPublished: true, maxAttempts: true, memoryLimitBytes: true, memoryRequestBytes: true, moduleTable: true, name: true, outputs: true, payloadArgs: true, priority: true, props: true, protected: true, publishedAt: true, queueName: true, requiredBuckets: true, requiredConfigs: true, requiredModels: true, requiredModules: true, requiredSecrets: true, resources: true, runtime: true, scaleMax: true, scaleMin: true, targetFunction: true, targetSchema: true, taskIdentifier: true, timeoutSeconds: true, updatedAt: true, volatile: true } }).execute(); // Create -const created = await db.functionDefinition.create({ data: { accessChannels: '', category: '', concurrency: '', cpuLimitMillicores: '', cpuRequestMillicores: '', databaseId: '', description: '', fnCategory: '', functionColumns: '', graphId: '', icon: '', image: '', inputs: '', integrations: '', isPublished: '', maxAttempts: '', memoryLimitBytes: '', memoryRequestBytes: '', moduleTable: '', name: '', outputs: '', payloadArgs: '', priority: '', props: '', protected: '', publishedAt: '', queueName: '', requiredBuckets: '', requiredConfigs: '', requiredModels: '', requiredSecrets: '', resources: '', runtime: '', scaleMax: '', scaleMin: '', targetFunction: '', targetSchema: '', taskIdentifier: '', timeoutSeconds: '', volatile: '' }, select: { id: true } }).execute(); +const created = await db.functionDefinition.create({ data: { accessChannels: '', category: '', concurrency: '', cpuLimitMillicores: '', cpuRequestMillicores: '', databaseId: '', description: '', fnCategory: '', functionColumns: '', graphId: '', icon: '', image: '', inputs: '', integrations: '', isPublished: '', maxAttempts: '', memoryLimitBytes: '', memoryRequestBytes: '', moduleTable: '', name: '', outputs: '', payloadArgs: '', priority: '', props: '', protected: '', publishedAt: '', queueName: '', requiredBuckets: '', requiredConfigs: '', requiredModels: '', requiredModules: '', requiredSecrets: '', resources: '', runtime: '', scaleMax: '', scaleMin: '', targetFunction: '', targetSchema: '', taskIdentifier: '', timeoutSeconds: '', volatile: '' }, select: { id: true } }).execute(); // Update const updated = await db.functionDefinition.update({ where: { id: '' }, data: { accessChannels: '' }, select: { id: true } }).execute(); @@ -297,6 +338,7 @@ CRUD operations for FunctionDeployment records. | `lastError` | String | Yes | | `lastErrorAt` | Datetime | Yes | | `namespaceId` | UUID | Yes | +| `realm` | String | Yes | | `resources` | JSON | Yes | | `revision` | Int | Yes | | `scaleMax` | Int | Yes | @@ -311,13 +353,13 @@ CRUD operations for FunctionDeployment records. ```typescript // List all functionDeployment records -const items = await db.functionDeployment.findMany({ select: { annotations: true, concurrency: true, createdAt: true, databaseId: true, errorCount: true, handlerName: true, id: true, image: true, imageVersion: true, labels: true, lastError: true, lastErrorAt: true, namespaceId: true, resources: true, revision: true, scaleMax: true, scaleMin: true, serviceName: true, serviceUrl: true, status: true, timeoutSeconds: true, updatedAt: true } }).execute(); +const items = await db.functionDeployment.findMany({ select: { annotations: true, concurrency: true, createdAt: true, databaseId: true, errorCount: true, handlerName: true, id: true, image: true, imageVersion: true, labels: true, lastError: true, lastErrorAt: true, namespaceId: true, realm: true, resources: true, revision: true, scaleMax: true, scaleMin: true, serviceName: true, serviceUrl: true, status: true, timeoutSeconds: true, updatedAt: true } }).execute(); // Get one by id -const item = await db.functionDeployment.findOne({ id: '', select: { annotations: true, concurrency: true, createdAt: true, databaseId: true, errorCount: true, handlerName: true, id: true, image: true, imageVersion: true, labels: true, lastError: true, lastErrorAt: true, namespaceId: true, resources: true, revision: true, scaleMax: true, scaleMin: true, serviceName: true, serviceUrl: true, status: true, timeoutSeconds: true, updatedAt: true } }).execute(); +const item = await db.functionDeployment.findOne({ id: '', select: { annotations: true, concurrency: true, createdAt: true, databaseId: true, errorCount: true, handlerName: true, id: true, image: true, imageVersion: true, labels: true, lastError: true, lastErrorAt: true, namespaceId: true, realm: true, resources: true, revision: true, scaleMax: true, scaleMin: true, serviceName: true, serviceUrl: true, status: true, timeoutSeconds: true, updatedAt: true } }).execute(); // Create -const created = await db.functionDeployment.create({ data: { annotations: '', concurrency: '', databaseId: '', errorCount: '', handlerName: '', image: '', imageVersion: '', labels: '', lastError: '', lastErrorAt: '', namespaceId: '', resources: '', revision: '', scaleMax: '', scaleMin: '', serviceName: '', serviceUrl: '', status: '', timeoutSeconds: '' }, select: { id: true } }).execute(); +const created = await db.functionDeployment.create({ data: { annotations: '', concurrency: '', databaseId: '', errorCount: '', handlerName: '', image: '', imageVersion: '', labels: '', lastError: '', lastErrorAt: '', namespaceId: '', realm: '', resources: '', revision: '', scaleMax: '', scaleMin: '', serviceName: '', serviceUrl: '', status: '', timeoutSeconds: '' }, select: { id: true } }).execute(); // Update const updated = await db.functionDeployment.update({ where: { id: '' }, data: { annotations: '' }, select: { id: true } }).execute(); @@ -1227,6 +1269,7 @@ CRUD operations for PlatformFunctionDefinition records. | `requiredBuckets` | String | Yes | | `requiredConfigs` | ResourceRequirement | Yes | | `requiredModels` | String | Yes | +| `requiredModules` | String | Yes | | `requiredSecrets` | ResourceRequirement | Yes | | `resources` | JSON | Yes | | `runtime` | String | Yes | @@ -1244,13 +1287,13 @@ CRUD operations for PlatformFunctionDefinition records. ```typescript // List all platformFunctionDefinition records -const items = await db.platformFunctionDefinition.findMany({ select: { accessChannels: true, billable: true, category: true, concurrency: true, cpuLimitMillicores: true, cpuRequestMillicores: true, createdAt: true, description: true, fnCategory: true, functionColumns: true, graphId: true, icon: true, id: true, image: true, inputs: true, integrations: true, isPublished: true, maxAttempts: true, memoryLimitBytes: true, memoryRequestBytes: true, moduleTable: true, name: true, outputs: true, payloadArgs: true, priority: true, props: true, protected: true, publishedAt: true, queueName: true, requiredBuckets: true, requiredConfigs: true, requiredModels: true, requiredSecrets: true, resources: true, runtime: true, scaleMax: true, scaleMin: true, system: true, targetFunction: true, targetSchema: true, taskIdentifier: true, timeoutSeconds: true, updatedAt: true, volatile: true } }).execute(); +const items = await db.platformFunctionDefinition.findMany({ select: { accessChannels: true, billable: true, category: true, concurrency: true, cpuLimitMillicores: true, cpuRequestMillicores: true, createdAt: true, description: true, fnCategory: true, functionColumns: true, graphId: true, icon: true, id: true, image: true, inputs: true, integrations: true, isPublished: true, maxAttempts: true, memoryLimitBytes: true, memoryRequestBytes: true, moduleTable: true, name: true, outputs: true, payloadArgs: true, priority: true, props: true, protected: true, publishedAt: true, queueName: true, requiredBuckets: true, requiredConfigs: true, requiredModels: true, requiredModules: true, requiredSecrets: true, resources: true, runtime: true, scaleMax: true, scaleMin: true, system: true, targetFunction: true, targetSchema: true, taskIdentifier: true, timeoutSeconds: true, updatedAt: true, volatile: true } }).execute(); // Get one by id -const item = await db.platformFunctionDefinition.findOne({ id: '', select: { accessChannels: true, billable: true, category: true, concurrency: true, cpuLimitMillicores: true, cpuRequestMillicores: true, createdAt: true, description: true, fnCategory: true, functionColumns: true, graphId: true, icon: true, id: true, image: true, inputs: true, integrations: true, isPublished: true, maxAttempts: true, memoryLimitBytes: true, memoryRequestBytes: true, moduleTable: true, name: true, outputs: true, payloadArgs: true, priority: true, props: true, protected: true, publishedAt: true, queueName: true, requiredBuckets: true, requiredConfigs: true, requiredModels: true, requiredSecrets: true, resources: true, runtime: true, scaleMax: true, scaleMin: true, system: true, targetFunction: true, targetSchema: true, taskIdentifier: true, timeoutSeconds: true, updatedAt: true, volatile: true } }).execute(); +const item = await db.platformFunctionDefinition.findOne({ id: '', select: { accessChannels: true, billable: true, category: true, concurrency: true, cpuLimitMillicores: true, cpuRequestMillicores: true, createdAt: true, description: true, fnCategory: true, functionColumns: true, graphId: true, icon: true, id: true, image: true, inputs: true, integrations: true, isPublished: true, maxAttempts: true, memoryLimitBytes: true, memoryRequestBytes: true, moduleTable: true, name: true, outputs: true, payloadArgs: true, priority: true, props: true, protected: true, publishedAt: true, queueName: true, requiredBuckets: true, requiredConfigs: true, requiredModels: true, requiredModules: true, requiredSecrets: true, resources: true, runtime: true, scaleMax: true, scaleMin: true, system: true, targetFunction: true, targetSchema: true, taskIdentifier: true, timeoutSeconds: true, updatedAt: true, volatile: true } }).execute(); // Create -const created = await db.platformFunctionDefinition.create({ data: { accessChannels: '', billable: '', category: '', concurrency: '', cpuLimitMillicores: '', cpuRequestMillicores: '', description: '', fnCategory: '', functionColumns: '', graphId: '', icon: '', image: '', inputs: '', integrations: '', isPublished: '', maxAttempts: '', memoryLimitBytes: '', memoryRequestBytes: '', moduleTable: '', name: '', outputs: '', payloadArgs: '', priority: '', props: '', protected: '', publishedAt: '', queueName: '', requiredBuckets: '', requiredConfigs: '', requiredModels: '', requiredSecrets: '', resources: '', runtime: '', scaleMax: '', scaleMin: '', system: '', targetFunction: '', targetSchema: '', taskIdentifier: '', timeoutSeconds: '', volatile: '' }, select: { id: true } }).execute(); +const created = await db.platformFunctionDefinition.create({ data: { accessChannels: '', billable: '', category: '', concurrency: '', cpuLimitMillicores: '', cpuRequestMillicores: '', description: '', fnCategory: '', functionColumns: '', graphId: '', icon: '', image: '', inputs: '', integrations: '', isPublished: '', maxAttempts: '', memoryLimitBytes: '', memoryRequestBytes: '', moduleTable: '', name: '', outputs: '', payloadArgs: '', priority: '', props: '', protected: '', publishedAt: '', queueName: '', requiredBuckets: '', requiredConfigs: '', requiredModels: '', requiredModules: '', requiredSecrets: '', resources: '', runtime: '', scaleMax: '', scaleMin: '', system: '', targetFunction: '', targetSchema: '', taskIdentifier: '', timeoutSeconds: '', volatile: '' }, select: { id: true } }).execute(); // Update const updated = await db.platformFunctionDefinition.update({ where: { id: '' }, data: { accessChannels: '' }, select: { id: true } }).execute(); @@ -1279,6 +1322,7 @@ CRUD operations for PlatformFunctionDeployment records. | `lastError` | String | Yes | | `lastErrorAt` | Datetime | Yes | | `namespaceId` | UUID | Yes | +| `realm` | String | Yes | | `resources` | JSON | Yes | | `revision` | Int | Yes | | `scaleMax` | Int | Yes | @@ -1293,13 +1337,13 @@ CRUD operations for PlatformFunctionDeployment records. ```typescript // List all platformFunctionDeployment records -const items = await db.platformFunctionDeployment.findMany({ select: { annotations: true, concurrency: true, createdAt: true, errorCount: true, handlerName: true, id: true, image: true, imageVersion: true, labels: true, lastError: true, lastErrorAt: true, namespaceId: true, resources: true, revision: true, scaleMax: true, scaleMin: true, serviceName: true, serviceUrl: true, status: true, timeoutSeconds: true, updatedAt: true } }).execute(); +const items = await db.platformFunctionDeployment.findMany({ select: { annotations: true, concurrency: true, createdAt: true, errorCount: true, handlerName: true, id: true, image: true, imageVersion: true, labels: true, lastError: true, lastErrorAt: true, namespaceId: true, realm: true, resources: true, revision: true, scaleMax: true, scaleMin: true, serviceName: true, serviceUrl: true, status: true, timeoutSeconds: true, updatedAt: true } }).execute(); // Get one by id -const item = await db.platformFunctionDeployment.findOne({ id: '', select: { annotations: true, concurrency: true, createdAt: true, errorCount: true, handlerName: true, id: true, image: true, imageVersion: true, labels: true, lastError: true, lastErrorAt: true, namespaceId: true, resources: true, revision: true, scaleMax: true, scaleMin: true, serviceName: true, serviceUrl: true, status: true, timeoutSeconds: true, updatedAt: true } }).execute(); +const item = await db.platformFunctionDeployment.findOne({ id: '', select: { annotations: true, concurrency: true, createdAt: true, errorCount: true, handlerName: true, id: true, image: true, imageVersion: true, labels: true, lastError: true, lastErrorAt: true, namespaceId: true, realm: true, resources: true, revision: true, scaleMax: true, scaleMin: true, serviceName: true, serviceUrl: true, status: true, timeoutSeconds: true, updatedAt: true } }).execute(); // Create -const created = await db.platformFunctionDeployment.create({ data: { annotations: '', concurrency: '', errorCount: '', handlerName: '', image: '', imageVersion: '', labels: '', lastError: '', lastErrorAt: '', namespaceId: '', resources: '', revision: '', scaleMax: '', scaleMin: '', serviceName: '', serviceUrl: '', status: '', timeoutSeconds: '' }, select: { id: true } }).execute(); +const created = await db.platformFunctionDeployment.create({ data: { annotations: '', concurrency: '', errorCount: '', handlerName: '', image: '', imageVersion: '', labels: '', lastError: '', lastErrorAt: '', namespaceId: '', realm: '', resources: '', revision: '', scaleMax: '', scaleMin: '', serviceName: '', serviceUrl: '', status: '', timeoutSeconds: '' }, select: { id: true } }).execute(); // Update const updated = await db.platformFunctionDeployment.update({ where: { id: '' }, data: { annotations: '' }, select: { id: true } }).execute(); @@ -3053,6 +3097,36 @@ infraInsertNodeAtPath const result = await db.mutation.infraInsertNodeAtPath({ input: '' }).execute(); ``` +### `db.mutation.infraInsertNodesAtPaths` + +infraInsertNodesAtPaths + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | InfraInsertNodesAtPathsInput (required) | + +```typescript +const result = await db.mutation.infraInsertNodesAtPaths({ input: '' }).execute(); +``` + +### `db.mutation.infraSetAndCommit` + +infraSetAndCommit + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | InfraSetAndCommitInput (required) | + +```typescript +const result = await db.mutation.infraSetAndCommit({ input: '' }).execute(); +``` + ### `db.mutation.infraSetDataAtPath` infraSetDataAtPath @@ -3068,6 +3142,21 @@ infraSetDataAtPath const result = await db.mutation.infraSetDataAtPath({ input: { data: '', path: '', root: '', sId: '' } }).execute(); ``` +### `db.mutation.infraSetManyAndCommit` + +infraSetManyAndCommit + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | InfraSetManyAndCommitInput (required) | + +```typescript +const result = await db.mutation.infraSetManyAndCommit({ input: { entries: '', message: '', refname: '', sId: '', storeId: '' } }).execute(); +``` + ### `db.mutation.initEmptyRepo` initEmptyRepo @@ -3098,6 +3187,21 @@ insertNodeAtPath const result = await db.mutation.insertNodeAtPath({ input: '' }).execute(); ``` +### `db.mutation.insertNodesAtPaths` + +insertNodesAtPaths + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | InsertNodesAtPathsInput (required) | + +```typescript +const result = await db.mutation.insertNodesAtPaths({ input: '' }).execute(); +``` + ### `db.mutation.platformInfraInitEmptyRepo` platformInfraInitEmptyRepo @@ -3128,6 +3232,36 @@ platformInfraInsertNodeAtPath const result = await db.mutation.platformInfraInsertNodeAtPath({ input: '' }).execute(); ``` +### `db.mutation.platformInfraInsertNodesAtPaths` + +platformInfraInsertNodesAtPaths + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | PlatformInfraInsertNodesAtPathsInput (required) | + +```typescript +const result = await db.mutation.platformInfraInsertNodesAtPaths({ input: '' }).execute(); +``` + +### `db.mutation.platformInfraSetAndCommit` + +platformInfraSetAndCommit + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | PlatformInfraSetAndCommitInput (required) | + +```typescript +const result = await db.mutation.platformInfraSetAndCommit({ input: '' }).execute(); +``` + ### `db.mutation.platformInfraSetDataAtPath` platformInfraSetDataAtPath @@ -3143,6 +3277,21 @@ platformInfraSetDataAtPath const result = await db.mutation.platformInfraSetDataAtPath({ input: { data: '', path: '', root: '', sId: '' } }).execute(); ``` +### `db.mutation.platformInfraSetManyAndCommit` + +platformInfraSetManyAndCommit + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | PlatformInfraSetManyAndCommitInput (required) | + +```typescript +const result = await db.mutation.platformInfraSetManyAndCommit({ input: { entries: '', message: '', refname: '', sId: '', storeId: '' } }).execute(); +``` + ### `db.mutation.platformResourceInstallationsInstall` platformResourceInstallationsInstall @@ -3296,6 +3445,21 @@ saveGraph const result = await db.mutation.saveGraph({ input: { graphId: '', message: '', rootHash: '' } }).execute(); ``` +### `db.mutation.setAndCommit` + +setAndCommit + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | SetAndCommitInput (required) | + +```typescript +const result = await db.mutation.setAndCommit({ input: '' }).execute(); +``` + ### `db.mutation.setDataAtPath` setDataAtPath @@ -3311,6 +3475,21 @@ setDataAtPath const result = await db.mutation.setDataAtPath({ input: { data: '', path: '', root: '', sId: '' } }).execute(); ``` +### `db.mutation.setManyAndCommit` + +setManyAndCommit + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | SetManyAndCommitInput (required) | + +```typescript +const result = await db.mutation.setManyAndCommit({ input: { entries: '', message: '', refname: '', sId: '', storeId: '' } }).execute(); +``` + ### `db.mutation.startExecution` startExecution diff --git a/sdk/constructive-sdk/src/compute/orm/index.ts b/sdk/constructive-sdk/src/compute/orm/index.ts index 531cf363ab..62973ed4f2 100644 --- a/sdk/constructive-sdk/src/compute/orm/index.ts +++ b/sdk/constructive-sdk/src/compute/orm/index.ts @@ -5,6 +5,7 @@ */ import { OrmClient } from './client'; import type { OrmClientConfig } from './client'; +import { ContentPresetModel } from './models/contentPreset'; import { DbPresetModel } from './models/dbPreset'; import { FunctionApiBindingModel } from './models/functionApiBinding'; import { FunctionCapabilityBindingModel } from './models/functionCapabilityBinding'; @@ -109,6 +110,7 @@ export { createMutationOperations } from './mutation'; export function createClient(config: OrmClientConfig) { const client = new OrmClient(config); return { + contentPreset: new ContentPresetModel(client), dbPreset: new DbPresetModel(client), functionApiBinding: new FunctionApiBindingModel(client), functionCapabilityBinding: new FunctionCapabilityBindingModel(client), diff --git a/sdk/constructive-sdk/src/compute/orm/input-types.ts b/sdk/constructive-sdk/src/compute/orm/input-types.ts index a132305584..566e3f81b1 100644 --- a/sdk/constructive-sdk/src/compute/orm/input-types.ts +++ b/sdk/constructive-sdk/src/compute/orm/input-types.ts @@ -234,8 +234,33 @@ export interface UUIDListFilter { export type Base64EncodedBinary = unknown; export type ConstructiveInternalTypeImage = unknown; export type ResourceRequirement = unknown; -/** Database provisioning preset catalog — merkle-versioned head over the infra store */ +/** Seed-content preset catalog (limit defaults, trust ladders, ...) — merkle-versioned head over the infra store */ // ============ Entity Types ============ +export interface ContentPreset { + /** Whether this preset is selectable at provision time */ + active?: boolean | null; + /** Infra store commit for the current definition (stamped by the versioned trigger on every write) */ + commitId?: string | null; + /** Timestamp of preset creation */ + createdAt?: string | null; + /** The seed document itself, in the shape the kind's seed function takes — the readily-cached head; history lives in the infra store */ + definition?: Record | null; + /** Human-readable description of the preset */ + description?: string | null; + /** Unique preset identifier */ + id: string; + /** What the definition seeds — the module option that resolves it (limit_defaults, trust_ladder, ...) */ + kind?: string | null; + /** Human-readable preset name */ + label?: string | null; + /** Preset slug (unique per kind per scope); the preset's path in the infra tree is [content_preset, kind, slug] */ + slug?: string | null; + /** Infra Merkle store holding this preset's history (stamped by the versioned trigger) */ + storeId?: string | null; + /** Timestamp of last modification */ + updatedAt?: string | null; +} +/** Database provisioning preset catalog — merkle-versioned head over the infra store */ export interface DbPreset { /** Whether this preset is selectable for new databases */ active?: boolean | null; @@ -296,7 +321,7 @@ export interface FunctionCapabilityBinding { } /** Function definitions — registered cloud functions with routing, queue, and retry configuration */ export interface FunctionDefinition { - /** Invocation channels this function may be exposed through (api, graph, cron, sync, webhook). Internal worker dispatch is implicit and never listed. Default [] = worker only. */ + /** Invocation channels this function may be exposed through (api, graph, cron, sync, page, webhook). Internal worker dispatch is implicit and never listed. Default [] = worker only. */ accessChannels?: string[] | null; /** Function task category (e.g. email, embed, chunk, custom) */ category?: string | null; @@ -352,12 +377,14 @@ export interface FunctionDefinition { publishedAt?: string | null; /** Job queue name for serialization (e.g. email, ai, default) */ queueName?: string | null; - /** Bucket keys this function needs (e.g. uploads, exports). Empty = no bucket requirements. */ + /** Bucket keys this function needs (e.g. uploads, exports). Tenant-agnostic: each key is resolved per invocation against the tenant's buckets by {tags, type}, or by an explicit capability binding row. Empty = no bucket requirements. */ requiredBuckets?: string[] | null; /** Embedded config requirements: array of (name, required, provider) tuples. provider is the integration slug this requirement belongs to, if any. */ requiredConfigs?: ResourceRequirement[] | null; /** Inference model whitelist (e.g. gpt-4o, claude-3). Empty = no model requirements. */ requiredModels?: string[] | null; + /** Modules whose api surfaces this function calls, e.g. notifications_module. Suffix . to name which surface when a module's schemas are attached to several (capabilities_module.admin), and @ to pin the registration when a module is registered at more than one scope (limits_module@org) — usually unnecessary, since resolution walks the execution's scope chain. A value that is not a module name is read as an api name. Resolved per invocation; empty = no api requirements. */ + requiredModules?: string[] | null; /** Embedded secret requirements: array of (name, required, provider) tuples. provider is the integration slug this requirement belongs to, if any. */ requiredSecrets?: ResourceRequirement[] | null; /** Container resource requests and limits: {requests: {memory, cpu}, limits: {memory, cpu}} */ @@ -406,6 +433,8 @@ export interface FunctionDeployment { lastErrorAt?: string | null; /** Target namespace for this deployment (maps to a K8s namespace) */ namespaceId?: string | null; + /** Config/secret realm this deployment resolves required keys against. Per key, the realm-specific atom wins over the NULL-realm default. NULL = the default lane (or a runtime-query worker that fetches per-item realms on demand). */ + realm?: string | null; /** K8s resource spec override: {"requests":{"cpu":"100m","memory":"128Mi"},"limits":{...}} */ resources?: Record | null; /** Deployment revision number (incremented on each redeployment) */ @@ -911,7 +940,7 @@ export interface PlatformFunctionCapabilityBinding { } /** Function definitions — registered cloud functions with routing, queue, and retry configuration */ export interface PlatformFunctionDefinition { - /** Invocation channels this function may be exposed through (api, graph, cron, sync, webhook). Internal worker dispatch is implicit and never listed. Default [] = worker only. */ + /** Invocation channels this function may be exposed through (api, graph, cron, sync, page, webhook). Internal worker dispatch is implicit and never listed. Default [] = worker only. */ accessChannels?: string[] | null; /** Whether executions are metered through the invocation ledger and billing quota gate */ billable?: boolean | null; @@ -967,12 +996,14 @@ export interface PlatformFunctionDefinition { publishedAt?: string | null; /** Job queue name for serialization (e.g. email, ai, default) */ queueName?: string | null; - /** Bucket keys this function needs (e.g. uploads, exports). Empty = no bucket requirements. */ + /** Bucket keys this function needs (e.g. uploads, exports). Tenant-agnostic: each key is resolved per invocation against the tenant's buckets by {tags, type}, or by an explicit capability binding row. Empty = no bucket requirements. */ requiredBuckets?: string[] | null; /** Embedded config requirements: array of (name, required, provider) tuples. provider is the integration slug this requirement belongs to, if any. */ requiredConfigs?: ResourceRequirement[] | null; /** Inference model whitelist (e.g. gpt-4o, claude-3). Empty = no model requirements. */ requiredModels?: string[] | null; + /** Modules whose api surfaces this function calls, e.g. notifications_module. Suffix . to name which surface when a module's schemas are attached to several (capabilities_module.admin), and @ to pin the registration when a module is registered at more than one scope (limits_module@org) — usually unnecessary, since resolution walks the execution's scope chain. A value that is not a module name is read as an api name. Resolved per invocation; empty = no api requirements. */ + requiredModules?: string[] | null; /** Embedded secret requirements: array of (name, required, provider) tuples. provider is the integration slug this requirement belongs to, if any. */ requiredSecrets?: ResourceRequirement[] | null; /** Container resource requests and limits: {requests: {memory, cpu}, limits: {memory, cpu}} */ @@ -1021,6 +1052,8 @@ export interface PlatformFunctionDeployment { lastErrorAt?: string | null; /** Target namespace for this deployment (maps to a K8s namespace) */ namespaceId?: string | null; + /** Config/secret realm this deployment resolves required keys against. Per key, the realm-specific atom wins over the NULL-realm default. NULL = the default lane (or a runtime-query worker that fetches per-item realms on demand). */ + realm?: string | null; /** K8s resource spec override: {"requests":{"cpu":"100m","memory":"128Mi"},"limits":{...}} */ resources?: Record | null; /** Deployment revision number (incremented on each redeployment) */ @@ -1946,6 +1979,7 @@ export interface PageInfo { endCursor?: string | null; } // ============ Entity Relation Types ============ +export interface ContentPresetRelations {} export interface DbPresetRelations {} export interface FunctionApiBindingRelations { functionDefinition?: FunctionDefinition | null; @@ -2098,6 +2132,7 @@ export interface WebhookEventRelations { endpoint?: WebhookEndpoint | null; } // ============ Entity Types With Relations ============ +export type ContentPresetWithRelations = ContentPreset & ContentPresetRelations; export type DbPresetWithRelations = DbPreset & DbPresetRelations; export type FunctionApiBindingWithRelations = FunctionApiBinding & FunctionApiBindingRelations; export type FunctionCapabilityBindingWithRelations = FunctionCapabilityBinding & @@ -2205,6 +2240,19 @@ export type ResourcesResolvedRequirementWithRelations = ResourcesResolvedRequire export type WebhookEndpointWithRelations = WebhookEndpoint & WebhookEndpointRelations; export type WebhookEventWithRelations = WebhookEvent & WebhookEventRelations; // ============ Entity Select Types ============ +export type ContentPresetSelect = { + active?: boolean; + commitId?: boolean; + createdAt?: boolean; + definition?: boolean; + description?: boolean; + id?: boolean; + kind?: boolean; + label?: boolean; + slug?: boolean; + storeId?: boolean; + updatedAt?: boolean; +}; export type DbPresetSelect = { active?: boolean; commitId?: boolean; @@ -2284,6 +2332,7 @@ export type FunctionDefinitionSelect = { requiredBuckets?: boolean; requiredConfigs?: boolean; requiredModels?: boolean; + requiredModules?: boolean; requiredSecrets?: boolean; resources?: boolean; runtime?: boolean; @@ -2328,6 +2377,7 @@ export type FunctionDeploymentSelect = { lastError?: boolean; lastErrorAt?: boolean; namespaceId?: boolean; + realm?: boolean; resources?: boolean; revision?: boolean; scaleMax?: boolean; @@ -2697,6 +2747,7 @@ export type PlatformFunctionDefinitionSelect = { requiredBuckets?: boolean; requiredConfigs?: boolean; requiredModels?: boolean; + requiredModules?: boolean; requiredSecrets?: boolean; resources?: boolean; runtime?: boolean; @@ -2744,6 +2795,7 @@ export type PlatformFunctionDeploymentSelect = { lastError?: boolean; lastErrorAt?: boolean; namespaceId?: boolean; + realm?: boolean; resources?: boolean; revision?: boolean; scaleMax?: boolean; @@ -3472,6 +3524,36 @@ export type WebhookEventSelect = { }; }; // ============ Table Filter Types ============ +export interface ContentPresetFilter { + /** Filter by the object’s `active` field. */ + active?: BooleanFilter; + /** Checks for all expressions in this list. */ + and?: ContentPresetFilter[]; + /** Filter by the object’s `commitId` field. */ + commitId?: UUIDFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `definition` field. */ + definition?: JSONFilter; + /** Filter by the object’s `description` field. */ + description?: StringFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `kind` field. */ + kind?: StringFilter; + /** Filter by the object’s `label` field. */ + label?: StringFilter; + /** Negates the expression. */ + not?: ContentPresetFilter; + /** Checks for any expressions in this list. */ + or?: ContentPresetFilter[]; + /** Filter by the object’s `slug` field. */ + slug?: StringFilter; + /** Filter by the object’s `storeId` field. */ + storeId?: UUIDFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; +} export interface DbPresetFilter { /** Filter by the object’s `active` field. */ active?: BooleanFilter; @@ -3639,6 +3721,8 @@ export interface FunctionDefinitionFilter { requiredBuckets?: StringListFilter; /** Filter by the object’s `requiredModels` field. */ requiredModels?: StringListFilter; + /** Filter by the object’s `requiredModules` field. */ + requiredModules?: StringListFilter; /** Filter by the object’s `resources` field. */ resources?: JSONFilter; /** Filter by the object’s `runtime` field. */ @@ -3699,6 +3783,8 @@ export interface FunctionDeploymentFilter { not?: FunctionDeploymentFilter; /** Checks for any expressions in this list. */ or?: FunctionDeploymentFilter[]; + /** Filter by the object’s `realm` field. */ + realm?: StringFilter; /** Filter by the object’s `resources` field. */ resources?: JSONFilter; /** Filter by the object’s `revision` field. */ @@ -4451,6 +4537,8 @@ export interface PlatformFunctionDefinitionFilter { requiredBuckets?: StringListFilter; /** Filter by the object’s `requiredModels` field. */ requiredModels?: StringListFilter; + /** Filter by the object’s `requiredModules` field. */ + requiredModules?: StringListFilter; /** Filter by the object’s `resources` field. */ resources?: JSONFilter; /** Filter by the object’s `runtime` field. */ @@ -4507,6 +4595,8 @@ export interface PlatformFunctionDeploymentFilter { not?: PlatformFunctionDeploymentFilter; /** Checks for any expressions in this list. */ or?: PlatformFunctionDeploymentFilter[]; + /** Filter by the object’s `realm` field. */ + realm?: StringFilter; /** Filter by the object’s `resources` field. */ resources?: JSONFilter; /** Filter by the object’s `revision` field. */ @@ -5912,6 +6002,32 @@ export interface WebhookEventFilter { updatedAt?: DatetimeFilter; } // ============ OrderBy Types ============ +export type ContentPresetOrderBy = + | 'ACTIVE_ASC' + | 'ACTIVE_DESC' + | 'COMMIT_ID_ASC' + | 'COMMIT_ID_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'DEFINITION_ASC' + | 'DEFINITION_DESC' + | 'DESCRIPTION_ASC' + | 'DESCRIPTION_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'KIND_ASC' + | 'KIND_DESC' + | 'LABEL_ASC' + | 'LABEL_DESC' + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'SLUG_ASC' + | 'SLUG_DESC' + | 'STORE_ID_ASC' + | 'STORE_ID_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC'; export type DbPresetOrderBy = | 'ACTIVE_ASC' | 'ACTIVE_DESC' @@ -6048,6 +6164,8 @@ export type FunctionDefinitionOrderBy = | 'REQUIRED_CONFIGS_DESC' | 'REQUIRED_MODELS_ASC' | 'REQUIRED_MODELS_DESC' + | 'REQUIRED_MODULES_ASC' + | 'REQUIRED_MODULES_DESC' | 'REQUIRED_SECRETS_ASC' | 'REQUIRED_SECRETS_DESC' | 'RESOURCES_ASC' @@ -6100,6 +6218,8 @@ export type FunctionDeploymentOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' + | 'REALM_ASC' + | 'REALM_DESC' | 'RESOURCES_ASC' | 'RESOURCES_DESC' | 'REVISION_ASC' @@ -6712,6 +6832,8 @@ export type PlatformFunctionDefinitionOrderBy = | 'REQUIRED_CONFIGS_DESC' | 'REQUIRED_MODELS_ASC' | 'REQUIRED_MODELS_DESC' + | 'REQUIRED_MODULES_ASC' + | 'REQUIRED_MODULES_DESC' | 'REQUIRED_SECRETS_ASC' | 'REQUIRED_SECRETS_DESC' | 'RESOURCES_ASC' @@ -6764,6 +6886,8 @@ export type PlatformFunctionDeploymentOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' + | 'REALM_ASC' + | 'REALM_DESC' | 'RESOURCES_ASC' | 'RESOURCES_DESC' | 'REVISION_ASC' @@ -7921,6 +8045,38 @@ export type WebhookEventOrderBy = | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC'; // ============ CRUD Input Types ============ +export interface CreateContentPresetInput { + clientMutationId?: string; + contentPreset: { + active?: boolean; + commitId?: string; + definition: Record; + description?: string; + kind: string; + label?: string; + slug: string; + storeId?: string; + }; +} +export interface ContentPresetPatch { + active?: boolean | null; + commitId?: string | null; + definition?: Record | null; + description?: string | null; + kind?: string | null; + label?: string | null; + slug?: string | null; + storeId?: string | null; +} +export interface UpdateContentPresetInput { + clientMutationId?: string; + id: string; + contentPresetPatch: ContentPresetPatch; +} +export interface DeleteContentPresetInput { + clientMutationId?: string; + id: string; +} export interface CreateDbPresetInput { clientMutationId?: string; dbPreset: { @@ -8036,6 +8192,7 @@ export interface CreateFunctionDefinitionInput { requiredBuckets?: string[]; requiredConfigs?: ResourceRequirementInput[]; requiredModels?: string[]; + requiredModules?: string[]; requiredSecrets?: ResourceRequirementInput[]; resources?: Record; runtime?: string; @@ -8074,6 +8231,7 @@ export interface FunctionDefinitionPatch { requiredBuckets?: string[] | null; requiredConfigs?: ResourceRequirementInput[] | null; requiredModels?: string[] | null; + requiredModules?: string[] | null; requiredSecrets?: ResourceRequirementInput[] | null; resources?: Record | null; runtime?: string | null; @@ -8107,6 +8265,7 @@ export interface CreateFunctionDeploymentInput { lastError?: string; lastErrorAt?: string; namespaceId: string; + realm?: string; resources?: Record; revision?: number; scaleMax?: number; @@ -8129,6 +8288,7 @@ export interface FunctionDeploymentPatch { lastError?: string | null; lastErrorAt?: string | null; namespaceId?: string | null; + realm?: string | null; resources?: Record | null; revision?: number | null; scaleMax?: number | null; @@ -8895,6 +9055,7 @@ export interface CreatePlatformFunctionDefinitionInput { requiredBuckets?: string[]; requiredConfigs?: ResourceRequirementInput[]; requiredModels?: string[]; + requiredModules?: string[]; requiredSecrets?: ResourceRequirementInput[]; resources?: Record; runtime?: string; @@ -8934,6 +9095,7 @@ export interface PlatformFunctionDefinitionPatch { requiredBuckets?: string[] | null; requiredConfigs?: ResourceRequirementInput[] | null; requiredModels?: string[] | null; + requiredModules?: string[] | null; requiredSecrets?: ResourceRequirementInput[] | null; resources?: Record | null; runtime?: string | null; @@ -8967,6 +9129,7 @@ export interface CreatePlatformFunctionDeploymentInput { lastError?: string; lastErrorAt?: string; namespaceId: string; + realm?: string; resources?: Record; revision?: number; scaleMax?: number; @@ -8988,6 +9151,7 @@ export interface PlatformFunctionDeploymentPatch { lastError?: string | null; lastErrorAt?: string | null; namespaceId?: string | null; + realm?: string | null; resources?: Record | null; revision?: number | null; scaleMax?: number | null; @@ -10613,6 +10777,26 @@ export interface InfraInsertNodeAtPathInput { root?: string; sId?: string; } +export interface InfraInsertNodesAtPathsInput { + clientMutationId?: string; + datas?: Record[]; + kidsList?: Record; + ktreeList?: Record; + paths?: Record; + root?: string; + sId?: string; +} +export interface InfraSetAndCommitInput { + clientMutationId?: string; + data?: Record; + kids?: string[]; + ktree?: string[]; + message?: string; + path?: string[]; + refname?: string; + sId?: string; + storeId?: string; +} export interface InfraSetDataAtPathInput { clientMutationId?: string; data?: Record; @@ -10620,6 +10804,14 @@ export interface InfraSetDataAtPathInput { root?: string; sId?: string; } +export interface InfraSetManyAndCommitInput { + clientMutationId?: string; + entries?: Record; + message?: string; + refname?: string; + sId?: string; + storeId?: string; +} export interface InitEmptyRepoInput { clientMutationId?: string; sId?: string; @@ -10634,6 +10826,15 @@ export interface InsertNodeAtPathInput { root?: string; sId?: string; } +export interface InsertNodesAtPathsInput { + clientMutationId?: string; + datas?: Record[]; + kidsList?: Record; + ktreeList?: Record; + paths?: Record; + root?: string; + sId?: string; +} export interface PlatformInfraInitEmptyRepoInput { clientMutationId?: string; sId?: string; @@ -10648,6 +10849,26 @@ export interface PlatformInfraInsertNodeAtPathInput { root?: string; sId?: string; } +export interface PlatformInfraInsertNodesAtPathsInput { + clientMutationId?: string; + datas?: Record[]; + kidsList?: Record; + ktreeList?: Record; + paths?: Record; + root?: string; + sId?: string; +} +export interface PlatformInfraSetAndCommitInput { + clientMutationId?: string; + data?: Record; + kids?: string[]; + ktree?: string[]; + message?: string; + path?: string[]; + refname?: string; + sId?: string; + storeId?: string; +} export interface PlatformInfraSetDataAtPathInput { clientMutationId?: string; data?: Record; @@ -10655,6 +10876,14 @@ export interface PlatformInfraSetDataAtPathInput { root?: string; sId?: string; } +export interface PlatformInfraSetManyAndCommitInput { + clientMutationId?: string; + entries?: Record; + message?: string; + refname?: string; + sId?: string; + storeId?: string; +} export interface PlatformResourceInstallationsInstallInput { clientMutationId?: string; definitionIds?: string[]; @@ -10714,6 +10943,17 @@ export interface SaveGraphInput { message?: string; rootHash?: string; } +export interface SetAndCommitInput { + clientMutationId?: string; + data?: Record; + kids?: string[]; + ktree?: string[]; + message?: string; + path?: string[]; + refname?: string; + sId?: string; + storeId?: string; +} export interface SetDataAtPathInput { clientMutationId?: string; data?: Record; @@ -10721,6 +10961,14 @@ export interface SetDataAtPathInput { root?: string; sId?: string; } +export interface SetManyAndCommitInput { + clientMutationId?: string; + entries?: Record; + message?: string; + refname?: string; + sId?: string; + storeId?: string; +} export interface StartExecutionInput { clientMutationId?: string; graphId?: string; @@ -11067,6 +11315,31 @@ export interface WebhookEndpointToManyWebhookEventFilter { /** Filters to entities where at least one related entity matches. */ some?: WebhookEventFilter; } +/** An input for mutations affecting `ContentPreset` */ +export interface ContentPresetInput { + /** Whether this preset is selectable at provision time */ + active?: boolean; + /** Infra store commit for the current definition (stamped by the versioned trigger on every write) */ + commitId?: string; + /** Timestamp of preset creation */ + createdAt?: string; + /** The seed document itself, in the shape the kind's seed function takes — the readily-cached head; history lives in the infra store */ + definition: Record; + /** Human-readable description of the preset */ + description?: string; + /** Unique preset identifier */ + id?: string; + /** What the definition seeds — the module option that resolves it (limit_defaults, trust_ladder, ...) */ + kind: string; + /** Human-readable preset name */ + label?: string; + /** Preset slug (unique per kind per scope); the preset's path in the infra tree is [content_preset, kind, slug] */ + slug: string; + /** Infra Merkle store holding this preset's history (stamped by the versioned trigger) */ + storeId?: string; + /** Timestamp of last modification */ + updatedAt?: string; +} /** An input for mutations affecting `DbPreset` */ export interface DbPresetInput { /** Whether this preset is selectable for new databases */ @@ -11128,7 +11401,7 @@ export interface FunctionCapabilityBindingInput { } /** An input for mutations affecting `FunctionDefinition` */ export interface FunctionDefinitionInput { - /** Invocation channels this function may be exposed through (api, graph, cron, sync, webhook). Internal worker dispatch is implicit and never listed. Default [] = worker only. */ + /** Invocation channels this function may be exposed through (api, graph, cron, sync, page, webhook). Internal worker dispatch is implicit and never listed. Default [] = worker only. */ accessChannels?: string[]; /** Function task category (e.g. email, embed, chunk, custom) */ category: string; @@ -11176,12 +11449,14 @@ export interface FunctionDefinitionInput { publishedAt?: string; /** Job queue name for serialization (e.g. email, ai, default) */ queueName?: string; - /** Bucket keys this function needs (e.g. uploads, exports). Empty = no bucket requirements. */ + /** Bucket keys this function needs (e.g. uploads, exports). Tenant-agnostic: each key is resolved per invocation against the tenant's buckets by {tags, type}, or by an explicit capability binding row. Empty = no bucket requirements. */ requiredBuckets?: string[]; /** Embedded config requirements: array of (name, required, provider) tuples. provider is the integration slug this requirement belongs to, if any. */ requiredConfigs?: ResourceRequirementInput[]; /** Inference model whitelist (e.g. gpt-4o, claude-3). Empty = no model requirements. */ requiredModels?: string[]; + /** Modules whose api surfaces this function calls, e.g. notifications_module. Suffix . to name which surface when a module's schemas are attached to several (capabilities_module.admin), and @ to pin the registration when a module is registered at more than one scope (limits_module@org) — usually unnecessary, since resolution walks the execution's scope chain. A value that is not a module name is read as an api name. Resolved per invocation; empty = no api requirements. */ + requiredModules?: string[]; /** Embedded secret requirements: array of (name, required, provider) tuples. provider is the integration slug this requirement belongs to, if any. */ requiredSecrets?: ResourceRequirementInput[]; /** Container resource requests and limits: {requests: {memory, cpu}, limits: {memory, cpu}} */ @@ -11234,6 +11509,8 @@ export interface FunctionDeploymentInput { lastErrorAt?: string; /** Target namespace for this deployment (maps to a K8s namespace) */ namespaceId: string; + /** Config/secret realm this deployment resolves required keys against. Per key, the realm-specific atom wins over the NULL-realm default. NULL = the default lane (or a runtime-query worker that fetches per-item realms on demand). */ + realm?: string; /** K8s resource spec override: {"requests":{"cpu":"100m","memory":"128Mi"},"limits":{...}} */ resources?: Record; /** Deployment revision number (incremented on each redeployment) */ @@ -11704,7 +11981,7 @@ export interface PlatformFunctionCapabilityBindingInput { } /** An input for mutations affecting `PlatformFunctionDefinition` */ export interface PlatformFunctionDefinitionInput { - /** Invocation channels this function may be exposed through (api, graph, cron, sync, webhook). Internal worker dispatch is implicit and never listed. Default [] = worker only. */ + /** Invocation channels this function may be exposed through (api, graph, cron, sync, page, webhook). Internal worker dispatch is implicit and never listed. Default [] = worker only. */ accessChannels?: string[]; /** Whether executions are metered through the invocation ledger and billing quota gate */ billable?: boolean; @@ -11752,12 +12029,14 @@ export interface PlatformFunctionDefinitionInput { publishedAt?: string; /** Job queue name for serialization (e.g. email, ai, default) */ queueName?: string; - /** Bucket keys this function needs (e.g. uploads, exports). Empty = no bucket requirements. */ + /** Bucket keys this function needs (e.g. uploads, exports). Tenant-agnostic: each key is resolved per invocation against the tenant's buckets by {tags, type}, or by an explicit capability binding row. Empty = no bucket requirements. */ requiredBuckets?: string[]; /** Embedded config requirements: array of (name, required, provider) tuples. provider is the integration slug this requirement belongs to, if any. */ requiredConfigs?: ResourceRequirementInput[]; /** Inference model whitelist (e.g. gpt-4o, claude-3). Empty = no model requirements. */ requiredModels?: string[]; + /** Modules whose api surfaces this function calls, e.g. notifications_module. Suffix . to name which surface when a module's schemas are attached to several (capabilities_module.admin), and @ to pin the registration when a module is registered at more than one scope (limits_module@org) — usually unnecessary, since resolution walks the execution's scope chain. A value that is not a module name is read as an api name. Resolved per invocation; empty = no api requirements. */ + requiredModules?: string[]; /** Embedded secret requirements: array of (name, required, provider) tuples. provider is the integration slug this requirement belongs to, if any. */ requiredSecrets?: ResourceRequirementInput[]; /** Container resource requests and limits: {requests: {memory, cpu}, limits: {memory, cpu}} */ @@ -11804,6 +12083,8 @@ export interface PlatformFunctionDeploymentInput { lastErrorAt?: string; /** Target namespace for this deployment (maps to a K8s namespace) */ namespaceId: string; + /** Config/secret realm this deployment resolves required keys against. Per key, the realm-specific atom wins over the NULL-realm default. NULL = the default lane (or a runtime-query worker that fetches per-item realms on demand). */ + realm?: string; /** K8s resource spec override: {"requests":{"cpu":"100m","memory":"128Mi"},"limits":{...}} */ resources?: Record; /** Deployment revision number (incremented on each redeployment) */ @@ -12841,6 +13122,8 @@ export interface PlatformFunctionDefinitionFilter { requiredBuckets?: StringListFilter; /** Filter by the object’s `requiredModels` field. */ requiredModels?: StringListFilter; + /** Filter by the object’s `requiredModules` field. */ + requiredModules?: StringListFilter; /** Filter by the object’s `resources` field. */ resources?: JSONFilter; /** Filter by the object’s `runtime` field. */ @@ -12900,6 +13183,8 @@ export interface FunctionDeploymentFilter { not?: FunctionDeploymentFilter; /** Checks for any expressions in this list. */ or?: FunctionDeploymentFilter[]; + /** Filter by the object’s `realm` field. */ + realm?: StringFilter; /** Filter by the object’s `resources` field. */ resources?: JSONFilter; /** Filter by the object’s `revision` field. */ @@ -13282,6 +13567,8 @@ export interface PlatformFunctionDeploymentFilter { not?: PlatformFunctionDeploymentFilter; /** Checks for any expressions in this list. */ or?: PlatformFunctionDeploymentFilter[]; + /** Filter by the object’s `realm` field. */ + realm?: StringFilter; /** Filter by the object’s `resources` field. */ resources?: JSONFilter; /** Filter by the object’s `revision` field. */ @@ -13882,6 +14169,8 @@ export interface FunctionDefinitionFilter { requiredBuckets?: StringListFilter; /** Filter by the object’s `requiredModels` field. */ requiredModels?: StringListFilter; + /** Filter by the object’s `requiredModules` field. */ + requiredModules?: StringListFilter; /** Filter by the object’s `resources` field. */ resources?: JSONFilter; /** Filter by the object’s `runtime` field. */ @@ -14189,6 +14478,28 @@ export type InfraInsertNodeAtPathPayloadSelect = { clientMutationId?: boolean; result?: boolean; }; +export interface InfraInsertNodesAtPathsPayload { + clientMutationId?: string | null; + result?: string | null; +} +export type InfraInsertNodesAtPathsPayloadSelect = { + clientMutationId?: boolean; + result?: boolean; +}; +export interface InfraSetAndCommitPayload { + clientMutationId?: string | null; + infraCommitEdge?: InfraCommitEdge | null; + result?: InfraCommit | null; +} +export type InfraSetAndCommitPayloadSelect = { + clientMutationId?: boolean; + infraCommitEdge?: { + select: InfraCommitEdgeSelect; + }; + result?: { + select: InfraCommitSelect; + }; +}; export interface InfraSetDataAtPathPayload { clientMutationId?: string | null; result?: string | null; @@ -14197,6 +14508,20 @@ export type InfraSetDataAtPathPayloadSelect = { clientMutationId?: boolean; result?: boolean; }; +export interface InfraSetManyAndCommitPayload { + clientMutationId?: string | null; + infraCommitEdge?: InfraCommitEdge | null; + result?: InfraCommit | null; +} +export type InfraSetManyAndCommitPayloadSelect = { + clientMutationId?: boolean; + infraCommitEdge?: { + select: InfraCommitEdgeSelect; + }; + result?: { + select: InfraCommitSelect; + }; +}; export interface InitEmptyRepoPayload { clientMutationId?: string | null; } @@ -14211,6 +14536,14 @@ export type InsertNodeAtPathPayloadSelect = { clientMutationId?: boolean; result?: boolean; }; +export interface InsertNodesAtPathsPayload { + clientMutationId?: string | null; + result?: string | null; +} +export type InsertNodesAtPathsPayloadSelect = { + clientMutationId?: boolean; + result?: boolean; +}; export interface PlatformInfraInitEmptyRepoPayload { clientMutationId?: string | null; } @@ -14225,6 +14558,28 @@ export type PlatformInfraInsertNodeAtPathPayloadSelect = { clientMutationId?: boolean; result?: boolean; }; +export interface PlatformInfraInsertNodesAtPathsPayload { + clientMutationId?: string | null; + result?: string | null; +} +export type PlatformInfraInsertNodesAtPathsPayloadSelect = { + clientMutationId?: boolean; + result?: boolean; +}; +export interface PlatformInfraSetAndCommitPayload { + clientMutationId?: string | null; + platformInfraCommitEdge?: PlatformInfraCommitEdge | null; + result?: PlatformInfraCommit | null; +} +export type PlatformInfraSetAndCommitPayloadSelect = { + clientMutationId?: boolean; + platformInfraCommitEdge?: { + select: PlatformInfraCommitEdgeSelect; + }; + result?: { + select: PlatformInfraCommitSelect; + }; +}; export interface PlatformInfraSetDataAtPathPayload { clientMutationId?: string | null; result?: string | null; @@ -14233,6 +14588,20 @@ export type PlatformInfraSetDataAtPathPayloadSelect = { clientMutationId?: boolean; result?: boolean; }; +export interface PlatformInfraSetManyAndCommitPayload { + clientMutationId?: string | null; + platformInfraCommitEdge?: PlatformInfraCommitEdge | null; + result?: PlatformInfraCommit | null; +} +export type PlatformInfraSetManyAndCommitPayloadSelect = { + clientMutationId?: boolean; + platformInfraCommitEdge?: { + select: PlatformInfraCommitEdgeSelect; + }; + result?: { + select: PlatformInfraCommitSelect; + }; +}; export interface PlatformResourceInstallationsInstallPayload { clientMutationId?: string | null; result?: string | null; @@ -14315,6 +14684,20 @@ export type SaveGraphPayloadSelect = { clientMutationId?: boolean; result?: boolean; }; +export interface SetAndCommitPayload { + clientMutationId?: string | null; + functionGraphCommitEdge?: FunctionGraphCommitEdge | null; + result?: FunctionGraphCommit | null; +} +export type SetAndCommitPayloadSelect = { + clientMutationId?: boolean; + functionGraphCommitEdge?: { + select: FunctionGraphCommitEdgeSelect; + }; + result?: { + select: FunctionGraphCommitSelect; + }; +}; export interface SetDataAtPathPayload { clientMutationId?: string | null; result?: string | null; @@ -14323,6 +14706,20 @@ export type SetDataAtPathPayloadSelect = { clientMutationId?: boolean; result?: boolean; }; +export interface SetManyAndCommitPayload { + clientMutationId?: string | null; + functionGraphCommitEdge?: FunctionGraphCommitEdge | null; + result?: FunctionGraphCommit | null; +} +export type SetManyAndCommitPayloadSelect = { + clientMutationId?: boolean; + functionGraphCommitEdge?: { + select: FunctionGraphCommitEdgeSelect; + }; + result?: { + select: FunctionGraphCommitSelect; + }; +}; export interface StartExecutionPayload { clientMutationId?: string | null; result?: string | null; @@ -14339,6 +14736,51 @@ export type ValidateFunctionGraphPayloadSelect = { clientMutationId?: boolean; result?: boolean; }; +export interface CreateContentPresetPayload { + clientMutationId?: string | null; + /** The `ContentPreset` that was created by this mutation. */ + contentPreset?: ContentPreset | null; + contentPresetEdge?: ContentPresetEdge | null; +} +export type CreateContentPresetPayloadSelect = { + clientMutationId?: boolean; + contentPreset?: { + select: ContentPresetSelect; + }; + contentPresetEdge?: { + select: ContentPresetEdgeSelect; + }; +}; +export interface UpdateContentPresetPayload { + clientMutationId?: string | null; + /** The `ContentPreset` that was updated by this mutation. */ + contentPreset?: ContentPreset | null; + contentPresetEdge?: ContentPresetEdge | null; +} +export type UpdateContentPresetPayloadSelect = { + clientMutationId?: boolean; + contentPreset?: { + select: ContentPresetSelect; + }; + contentPresetEdge?: { + select: ContentPresetEdgeSelect; + }; +}; +export interface DeleteContentPresetPayload { + clientMutationId?: string | null; + /** The `ContentPreset` that was deleted by this mutation. */ + contentPreset?: ContentPreset | null; + contentPresetEdge?: ContentPresetEdge | null; +} +export type DeleteContentPresetPayloadSelect = { + clientMutationId?: boolean; + contentPreset?: { + select: ContentPresetSelect; + }; + contentPresetEdge?: { + select: ContentPresetEdgeSelect; + }; +}; export interface CreateDbPresetPayload { clientMutationId?: string | null; /** The `DbPreset` that was created by this mutation. */ @@ -16852,6 +17294,54 @@ export type DeleteWebhookEventPayloadSelect = { select: WebhookEventEdgeSelect; }; }; +/** A `InfraCommit` edge in the connection. */ +export interface InfraCommitEdge { + cursor?: string | null; + /** The `InfraCommit` at the end of the edge. */ + node?: InfraCommit | null; +} +export type InfraCommitEdgeSelect = { + cursor?: boolean; + node?: { + select: InfraCommitSelect; + }; +}; +/** A `PlatformInfraCommit` edge in the connection. */ +export interface PlatformInfraCommitEdge { + cursor?: string | null; + /** The `PlatformInfraCommit` at the end of the edge. */ + node?: PlatformInfraCommit | null; +} +export type PlatformInfraCommitEdgeSelect = { + cursor?: boolean; + node?: { + select: PlatformInfraCommitSelect; + }; +}; +/** A `FunctionGraphCommit` edge in the connection. */ +export interface FunctionGraphCommitEdge { + cursor?: string | null; + /** The `FunctionGraphCommit` at the end of the edge. */ + node?: FunctionGraphCommit | null; +} +export type FunctionGraphCommitEdgeSelect = { + cursor?: boolean; + node?: { + select: FunctionGraphCommitSelect; + }; +}; +/** A `ContentPreset` edge in the connection. */ +export interface ContentPresetEdge { + cursor?: string | null; + /** The `ContentPreset` at the end of the edge. */ + node?: ContentPreset | null; +} +export type ContentPresetEdgeSelect = { + cursor?: boolean; + node?: { + select: ContentPresetSelect; + }; +}; /** A `DbPreset` edge in the connection. */ export interface DbPresetEdge { cursor?: string | null; @@ -16936,18 +17426,6 @@ export type FunctionExecutionLogEdgeSelect = { select: FunctionExecutionLogSelect; }; }; -/** A `FunctionGraphCommit` edge in the connection. */ -export interface FunctionGraphCommitEdge { - cursor?: string | null; - /** The `FunctionGraphCommit` at the end of the edge. */ - node?: FunctionGraphCommit | null; -} -export type FunctionGraphCommitEdgeSelect = { - cursor?: boolean; - node?: { - select: FunctionGraphCommitSelect; - }; -}; /** A `FunctionGraph` edge in the connection. */ export interface FunctionGraphEdge { cursor?: string | null; @@ -17056,18 +17534,6 @@ export type FunctionInvocationEdgeSelect = { select: FunctionInvocationSelect; }; }; -/** A `InfraCommit` edge in the connection. */ -export interface InfraCommitEdge { - cursor?: string | null; - /** The `InfraCommit` at the end of the edge. */ - node?: InfraCommit | null; -} -export type InfraCommitEdgeSelect = { - cursor?: boolean; - node?: { - select: InfraCommitSelect; - }; -}; /** A `InfraObject` edge in the connection. */ export interface InfraObjectEdge { cursor?: string | null; @@ -17236,18 +17702,6 @@ export type PlatformFunctionInvocationEdgeSelect = { select: PlatformFunctionInvocationSelect; }; }; -/** A `PlatformInfraCommit` edge in the connection. */ -export interface PlatformInfraCommitEdge { - cursor?: string | null; - /** The `PlatformInfraCommit` at the end of the edge. */ - node?: PlatformInfraCommit | null; -} -export type PlatformInfraCommitEdgeSelect = { - cursor?: boolean; - node?: { - select: PlatformInfraCommitSelect; - }; -}; /** A `PlatformInfraObject` edge in the connection. */ export interface PlatformInfraObjectEdge { cursor?: string | null; diff --git a/sdk/constructive-sdk/src/compute/orm/models/contentPreset.ts b/sdk/constructive-sdk/src/compute/orm/models/contentPreset.ts new file mode 100644 index 0000000000..20242ccc78 --- /dev/null +++ b/sdk/constructive-sdk/src/compute/orm/models/contentPreset.ts @@ -0,0 +1,245 @@ +/** + * ContentPreset 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 { + ContentPreset, + ContentPresetWithRelations, + ContentPresetSelect, + ContentPresetFilter, + ContentPresetOrderBy, + CreateContentPresetInput, + UpdateContentPresetInput, + ContentPresetPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class ContentPresetModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + contentPresets: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'ContentPreset', + 'contentPresets', + 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, + }, + 'ContentPresetFilter', + 'ContentPresetOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'ContentPreset', + fieldName: 'contentPresets', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + contentPreset: InferSelectResult | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'ContentPreset', + 'contentPresets', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'ContentPresetFilter', + 'ContentPresetOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'ContentPreset', + fieldName: 'contentPreset', + document, + variables, + transform: (data: { + contentPresets?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + contentPreset: data.contentPresets?.nodes?.[0] ?? null, + }), + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + contentPreset: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'ContentPreset', + 'contentPresets', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'ContentPresetFilter', + 'ContentPresetOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'ContentPreset', + fieldName: 'contentPreset', + document, + variables, + transform: (data: { + contentPresets?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + contentPreset: data.contentPresets?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createContentPreset: { + contentPreset: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'ContentPreset', + 'createContentPreset', + 'contentPreset', + args.select, + args.data, + 'CreateContentPresetInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'ContentPreset', + fieldName: 'createContentPreset', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + ContentPresetPatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateContentPreset: { + contentPreset: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'ContentPreset', + 'updateContentPreset', + 'contentPreset', + args.select, + args.where.id, + args.data, + 'UpdateContentPresetInput', + 'id', + 'contentPresetPatch', + connectionFieldsMap, + undefined + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'ContentPreset', + fieldName: 'updateContentPreset', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteContentPreset: { + contentPreset: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'ContentPreset', + 'deleteContentPreset', + 'contentPreset', + { + id: args.where.id, + }, + 'DeleteContentPresetInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'ContentPreset', + fieldName: 'deleteContentPreset', + document, + variables, + }); + } +} diff --git a/sdk/constructive-sdk/src/compute/orm/models/index.ts b/sdk/constructive-sdk/src/compute/orm/models/index.ts index e2480958de..bb1916cea6 100644 --- a/sdk/constructive-sdk/src/compute/orm/models/index.ts +++ b/sdk/constructive-sdk/src/compute/orm/models/index.ts @@ -3,6 +3,7 @@ * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ +export { ContentPresetModel } from './contentPreset'; export { DbPresetModel } from './dbPreset'; export { FunctionApiBindingModel } from './functionApiBinding'; export { FunctionCapabilityBindingModel } from './functionCapabilityBinding'; diff --git a/sdk/constructive-sdk/src/compute/orm/mutation/index.ts b/sdk/constructive-sdk/src/compute/orm/mutation/index.ts index c5bc975047..948d1e8903 100644 --- a/sdk/constructive-sdk/src/compute/orm/mutation/index.ts +++ b/sdk/constructive-sdk/src/compute/orm/mutation/index.ts @@ -16,12 +16,19 @@ import type { ImportGraphJsonInput, InfraInitEmptyRepoInput, InfraInsertNodeAtPathInput, + InfraInsertNodesAtPathsInput, + InfraSetAndCommitInput, InfraSetDataAtPathInput, + InfraSetManyAndCommitInput, InitEmptyRepoInput, InsertNodeAtPathInput, + InsertNodesAtPathsInput, PlatformInfraInitEmptyRepoInput, PlatformInfraInsertNodeAtPathInput, + PlatformInfraInsertNodesAtPathsInput, + PlatformInfraSetAndCommitInput, PlatformInfraSetDataAtPathInput, + PlatformInfraSetManyAndCommitInput, PlatformResourceInstallationsInstallInput, PlatformResourceInstallationsRollbackInput, PlatformResourceInstallationsUninstallInput, @@ -32,7 +39,9 @@ import type { ResourceInstallationsUninstallInput, ResourceInstallationsUpgradeInput, SaveGraphInput, + SetAndCommitInput, SetDataAtPathInput, + SetManyAndCommitInput, StartExecutionInput, ValidateFunctionGraphInput, AddEdgePayload, @@ -44,12 +53,19 @@ import type { ImportGraphJsonPayload, InfraInitEmptyRepoPayload, InfraInsertNodeAtPathPayload, + InfraInsertNodesAtPathsPayload, + InfraSetAndCommitPayload, InfraSetDataAtPathPayload, + InfraSetManyAndCommitPayload, InitEmptyRepoPayload, InsertNodeAtPathPayload, + InsertNodesAtPathsPayload, PlatformInfraInitEmptyRepoPayload, PlatformInfraInsertNodeAtPathPayload, + PlatformInfraInsertNodesAtPathsPayload, + PlatformInfraSetAndCommitPayload, PlatformInfraSetDataAtPathPayload, + PlatformInfraSetManyAndCommitPayload, PlatformResourceInstallationsInstallPayload, PlatformResourceInstallationsRollbackPayload, PlatformResourceInstallationsUninstallPayload, @@ -60,7 +76,9 @@ import type { ResourceInstallationsUninstallPayload, ResourceInstallationsUpgradePayload, SaveGraphPayload, + SetAndCommitPayload, SetDataAtPathPayload, + SetManyAndCommitPayload, StartExecutionPayload, ValidateFunctionGraphPayload, AddEdgePayloadSelect, @@ -72,12 +90,19 @@ import type { ImportGraphJsonPayloadSelect, InfraInitEmptyRepoPayloadSelect, InfraInsertNodeAtPathPayloadSelect, + InfraInsertNodesAtPathsPayloadSelect, + InfraSetAndCommitPayloadSelect, InfraSetDataAtPathPayloadSelect, + InfraSetManyAndCommitPayloadSelect, InitEmptyRepoPayloadSelect, InsertNodeAtPathPayloadSelect, + InsertNodesAtPathsPayloadSelect, PlatformInfraInitEmptyRepoPayloadSelect, PlatformInfraInsertNodeAtPathPayloadSelect, + PlatformInfraInsertNodesAtPathsPayloadSelect, + PlatformInfraSetAndCommitPayloadSelect, PlatformInfraSetDataAtPathPayloadSelect, + PlatformInfraSetManyAndCommitPayloadSelect, PlatformResourceInstallationsInstallPayloadSelect, PlatformResourceInstallationsRollbackPayloadSelect, PlatformResourceInstallationsUninstallPayloadSelect, @@ -88,7 +113,9 @@ import type { ResourceInstallationsUninstallPayloadSelect, ResourceInstallationsUpgradePayloadSelect, SaveGraphPayloadSelect, + SetAndCommitPayloadSelect, SetDataAtPathPayloadSelect, + SetManyAndCommitPayloadSelect, StartExecutionPayloadSelect, ValidateFunctionGraphPayloadSelect, } from '../input-types'; @@ -120,24 +147,45 @@ export interface InfraInitEmptyRepoVariables { export interface InfraInsertNodeAtPathVariables { input: InfraInsertNodeAtPathInput; } +export interface InfraInsertNodesAtPathsVariables { + input: InfraInsertNodesAtPathsInput; +} +export interface InfraSetAndCommitVariables { + input: InfraSetAndCommitInput; +} export interface InfraSetDataAtPathVariables { input: InfraSetDataAtPathInput; } +export interface InfraSetManyAndCommitVariables { + input: InfraSetManyAndCommitInput; +} export interface InitEmptyRepoVariables { input: InitEmptyRepoInput; } export interface InsertNodeAtPathVariables { input: InsertNodeAtPathInput; } +export interface InsertNodesAtPathsVariables { + input: InsertNodesAtPathsInput; +} export interface PlatformInfraInitEmptyRepoVariables { input: PlatformInfraInitEmptyRepoInput; } export interface PlatformInfraInsertNodeAtPathVariables { input: PlatformInfraInsertNodeAtPathInput; } +export interface PlatformInfraInsertNodesAtPathsVariables { + input: PlatformInfraInsertNodesAtPathsInput; +} +export interface PlatformInfraSetAndCommitVariables { + input: PlatformInfraSetAndCommitInput; +} export interface PlatformInfraSetDataAtPathVariables { input: PlatformInfraSetDataAtPathInput; } +export interface PlatformInfraSetManyAndCommitVariables { + input: PlatformInfraSetManyAndCommitInput; +} export interface PlatformResourceInstallationsInstallVariables { input: PlatformResourceInstallationsInstallInput; } @@ -175,9 +223,15 @@ export interface ResourceInstallationsUpgradeVariables { export interface SaveGraphVariables { input: SaveGraphInput; } +export interface SetAndCommitVariables { + input: SetAndCommitInput; +} export interface SetDataAtPathVariables { input: SetDataAtPathInput; } +export interface SetManyAndCommitVariables { + input: SetManyAndCommitInput; +} export interface StartExecutionVariables { input: StartExecutionInput; } @@ -447,6 +501,64 @@ export function createMutationOperations(client: OrmClient) { 'InfraInsertNodeAtPathPayload' ), }), + infraInsertNodesAtPaths: ( + args: InfraInsertNodesAtPathsVariables, + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + infraInsertNodesAtPaths: InferSelectResult | null; + }>({ + client, + operation: 'mutation', + operationName: 'InfraInsertNodesAtPaths', + fieldName: 'infraInsertNodesAtPaths', + ...buildCustomDocument( + 'mutation', + 'InfraInsertNodesAtPaths', + 'infraInsertNodesAtPaths', + options.select, + args, + [ + { + name: 'input', + type: 'InfraInsertNodesAtPathsInput!', + }, + ], + connectionFieldsMap, + 'InfraInsertNodesAtPathsPayload' + ), + }), + infraSetAndCommit: ( + args: InfraSetAndCommitVariables, + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + infraSetAndCommit: InferSelectResult | null; + }>({ + client, + operation: 'mutation', + operationName: 'InfraSetAndCommit', + fieldName: 'infraSetAndCommit', + ...buildCustomDocument( + 'mutation', + 'InfraSetAndCommit', + 'infraSetAndCommit', + options.select, + args, + [ + { + name: 'input', + type: 'InfraSetAndCommitInput!', + }, + ], + connectionFieldsMap, + 'InfraSetAndCommitPayload' + ), + }), infraSetDataAtPath: ( args: InfraSetDataAtPathVariables, options: { @@ -476,6 +588,35 @@ export function createMutationOperations(client: OrmClient) { 'InfraSetDataAtPathPayload' ), }), + infraSetManyAndCommit: ( + args: InfraSetManyAndCommitVariables, + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + infraSetManyAndCommit: InferSelectResult | null; + }>({ + client, + operation: 'mutation', + operationName: 'InfraSetManyAndCommit', + fieldName: 'infraSetManyAndCommit', + ...buildCustomDocument( + 'mutation', + 'InfraSetManyAndCommit', + 'infraSetManyAndCommit', + options.select, + args, + [ + { + name: 'input', + type: 'InfraSetManyAndCommitInput!', + }, + ], + connectionFieldsMap, + 'InfraSetManyAndCommitPayload' + ), + }), initEmptyRepo: ( args: InitEmptyRepoVariables, options: { @@ -534,6 +675,35 @@ export function createMutationOperations(client: OrmClient) { 'InsertNodeAtPathPayload' ), }), + insertNodesAtPaths: ( + args: InsertNodesAtPathsVariables, + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + insertNodesAtPaths: InferSelectResult | null; + }>({ + client, + operation: 'mutation', + operationName: 'InsertNodesAtPaths', + fieldName: 'insertNodesAtPaths', + ...buildCustomDocument( + 'mutation', + 'InsertNodesAtPaths', + 'insertNodesAtPaths', + options.select, + args, + [ + { + name: 'input', + type: 'InsertNodesAtPathsInput!', + }, + ], + connectionFieldsMap, + 'InsertNodesAtPathsPayload' + ), + }), platformInfraInitEmptyRepo: ( args: PlatformInfraInitEmptyRepoVariables, options: { @@ -595,6 +765,67 @@ export function createMutationOperations(client: OrmClient) { 'PlatformInfraInsertNodeAtPathPayload' ), }), + platformInfraInsertNodesAtPaths: ( + args: PlatformInfraInsertNodesAtPathsVariables, + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + platformInfraInsertNodesAtPaths: InferSelectResult< + PlatformInfraInsertNodesAtPathsPayload, + S + > | null; + }>({ + client, + operation: 'mutation', + operationName: 'PlatformInfraInsertNodesAtPaths', + fieldName: 'platformInfraInsertNodesAtPaths', + ...buildCustomDocument( + 'mutation', + 'PlatformInfraInsertNodesAtPaths', + 'platformInfraInsertNodesAtPaths', + options.select, + args, + [ + { + name: 'input', + type: 'PlatformInfraInsertNodesAtPathsInput!', + }, + ], + connectionFieldsMap, + 'PlatformInfraInsertNodesAtPathsPayload' + ), + }), + platformInfraSetAndCommit: ( + args: PlatformInfraSetAndCommitVariables, + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + platformInfraSetAndCommit: InferSelectResult | null; + }>({ + client, + operation: 'mutation', + operationName: 'PlatformInfraSetAndCommit', + fieldName: 'platformInfraSetAndCommit', + ...buildCustomDocument( + 'mutation', + 'PlatformInfraSetAndCommit', + 'platformInfraSetAndCommit', + options.select, + args, + [ + { + name: 'input', + type: 'PlatformInfraSetAndCommitInput!', + }, + ], + connectionFieldsMap, + 'PlatformInfraSetAndCommitPayload' + ), + }), platformInfraSetDataAtPath: ( args: PlatformInfraSetDataAtPathVariables, options: { @@ -624,6 +855,38 @@ export function createMutationOperations(client: OrmClient) { 'PlatformInfraSetDataAtPathPayload' ), }), + platformInfraSetManyAndCommit: ( + args: PlatformInfraSetManyAndCommitVariables, + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + platformInfraSetManyAndCommit: InferSelectResult< + PlatformInfraSetManyAndCommitPayload, + S + > | null; + }>({ + client, + operation: 'mutation', + operationName: 'PlatformInfraSetManyAndCommit', + fieldName: 'platformInfraSetManyAndCommit', + ...buildCustomDocument( + 'mutation', + 'PlatformInfraSetManyAndCommit', + 'platformInfraSetManyAndCommit', + options.select, + args, + [ + { + name: 'input', + type: 'PlatformInfraSetManyAndCommitInput!', + }, + ], + connectionFieldsMap, + 'PlatformInfraSetManyAndCommitPayload' + ), + }), platformResourceInstallationsInstall: < S extends PlatformResourceInstallationsInstallPayloadSelect, >( @@ -946,6 +1209,35 @@ export function createMutationOperations(client: OrmClient) { 'SaveGraphPayload' ), }), + setAndCommit: ( + args: SetAndCommitVariables, + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + setAndCommit: InferSelectResult | null; + }>({ + client, + operation: 'mutation', + operationName: 'SetAndCommit', + fieldName: 'setAndCommit', + ...buildCustomDocument( + 'mutation', + 'SetAndCommit', + 'setAndCommit', + options.select, + args, + [ + { + name: 'input', + type: 'SetAndCommitInput!', + }, + ], + connectionFieldsMap, + 'SetAndCommitPayload' + ), + }), setDataAtPath: ( args: SetDataAtPathVariables, options: { @@ -975,6 +1267,35 @@ export function createMutationOperations(client: OrmClient) { 'SetDataAtPathPayload' ), }), + setManyAndCommit: ( + args: SetManyAndCommitVariables, + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + setManyAndCommit: InferSelectResult | null; + }>({ + client, + operation: 'mutation', + operationName: 'SetManyAndCommit', + fieldName: 'setManyAndCommit', + ...buildCustomDocument( + 'mutation', + 'SetManyAndCommit', + 'setManyAndCommit', + options.select, + args, + [ + { + name: 'input', + type: 'SetManyAndCommitInput!', + }, + ], + connectionFieldsMap, + 'SetManyAndCommitPayload' + ), + }), startExecution: ( args: StartExecutionVariables, options: { diff --git a/sdk/constructive-sdk/src/infra/README.md b/sdk/constructive-sdk/src/infra/README.md index e87478fa2a..e6b92c40af 100644 --- a/sdk/constructive-sdk/src/infra/README.md +++ b/sdk/constructive-sdk/src/infra/README.md @@ -8,9 +8,9 @@ ## Overview -- **Tables:** 10 +- **Tables:** 11 - **Custom queries:** 0 -- **Custom mutations:** 4 +- **Custom mutations:** 7 **Generators:** ORM diff --git a/sdk/constructive-sdk/src/infra/orm/README.md b/sdk/constructive-sdk/src/infra/orm/README.md index e303005e2f..a090f35cca 100644 --- a/sdk/constructive-sdk/src/infra/orm/README.md +++ b/sdk/constructive-sdk/src/infra/orm/README.md @@ -21,6 +21,7 @@ const db = createClient({ | Model | Operations | |-------|------------| +| `contentPreset` | findMany, findOne, create, update, delete | | `dbPreset` | findMany, findOne, create, update, delete | | `namespace` | findMany, findOne, create, update, delete | | `namespaceEvent` | findMany, findOne, create, update, delete | @@ -34,6 +35,45 @@ const db = createClient({ ## Table Operations +### `db.contentPreset` + +CRUD operations for ContentPreset records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `active` | Boolean | Yes | +| `commitId` | UUID | Yes | +| `createdAt` | Datetime | No | +| `definition` | JSON | Yes | +| `description` | String | Yes | +| `id` | UUID | No | +| `kind` | String | Yes | +| `label` | String | Yes | +| `slug` | String | Yes | +| `storeId` | UUID | Yes | +| `updatedAt` | Datetime | No | + +**Operations:** + +```typescript +// List all contentPreset records +const items = await db.contentPreset.findMany({ select: { active: true, commitId: true, createdAt: true, definition: true, description: true, id: true, kind: true, label: true, slug: true, storeId: true, updatedAt: true } }).execute(); + +// Get one by id +const item = await db.contentPreset.findOne({ id: '', select: { active: true, commitId: true, createdAt: true, definition: true, description: true, id: true, kind: true, label: true, slug: true, storeId: true, updatedAt: true } }).execute(); + +// Create +const created = await db.contentPreset.create({ data: { active: '', commitId: '', definition: '', description: '', kind: '', label: '', slug: '', storeId: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.contentPreset.update({ where: { id: '' }, data: { active: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.contentPreset.delete({ where: { id: '' } }).execute(); +``` + ### `db.dbPreset` CRUD operations for DbPreset records. @@ -424,6 +464,36 @@ platformInfraInsertNodeAtPath const result = await db.mutation.platformInfraInsertNodeAtPath({ input: '' }).execute(); ``` +### `db.mutation.platformInfraInsertNodesAtPaths` + +platformInfraInsertNodesAtPaths + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | PlatformInfraInsertNodesAtPathsInput (required) | + +```typescript +const result = await db.mutation.platformInfraInsertNodesAtPaths({ input: '' }).execute(); +``` + +### `db.mutation.platformInfraSetAndCommit` + +platformInfraSetAndCommit + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | PlatformInfraSetAndCommitInput (required) | + +```typescript +const result = await db.mutation.platformInfraSetAndCommit({ input: '' }).execute(); +``` + ### `db.mutation.platformInfraSetDataAtPath` platformInfraSetDataAtPath @@ -439,6 +509,21 @@ platformInfraSetDataAtPath const result = await db.mutation.platformInfraSetDataAtPath({ input: { data: '', path: '', root: '', sId: '' } }).execute(); ``` +### `db.mutation.platformInfraSetManyAndCommit` + +platformInfraSetManyAndCommit + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | PlatformInfraSetManyAndCommitInput (required) | + +```typescript +const result = await db.mutation.platformInfraSetManyAndCommit({ input: { entries: '', message: '', refname: '', sId: '', storeId: '' } }).execute(); +``` + ### `db.mutation.provisionBucket` Provision an S3 bucket for a logical bucket in the database. diff --git a/sdk/constructive-sdk/src/infra/orm/index.ts b/sdk/constructive-sdk/src/infra/orm/index.ts index c40f0234ec..364d28428c 100644 --- a/sdk/constructive-sdk/src/infra/orm/index.ts +++ b/sdk/constructive-sdk/src/infra/orm/index.ts @@ -5,6 +5,7 @@ */ import { OrmClient } from './client'; import type { OrmClientConfig } from './client'; +import { ContentPresetModel } from './models/contentPreset'; import { DbPresetModel } from './models/dbPreset'; import { NamespaceModel } from './models/namespace'; import { NamespaceEventModel } from './models/namespaceEvent'; @@ -48,6 +49,7 @@ export { createMutationOperations } from './mutation'; export function createClient(config: OrmClientConfig) { const client = new OrmClient(config); return { + contentPreset: new ContentPresetModel(client), dbPreset: new DbPresetModel(client), namespace: new NamespaceModel(client), namespaceEvent: new NamespaceEventModel(client), diff --git a/sdk/constructive-sdk/src/infra/orm/input-types.ts b/sdk/constructive-sdk/src/infra/orm/input-types.ts index 23e81e113d..a0d8e52f29 100644 --- a/sdk/constructive-sdk/src/infra/orm/input-types.ts +++ b/sdk/constructive-sdk/src/infra/orm/input-types.ts @@ -230,8 +230,33 @@ export interface UUIDListFilter { anyGreaterThan?: string; anyGreaterThanOrEqualTo?: string; } -/** Database provisioning preset catalog — merkle-versioned head over the infra store */ +/** Seed-content preset catalog (limit defaults, trust ladders, ...) — merkle-versioned head over the infra store */ // ============ Entity Types ============ +export interface ContentPreset { + /** Whether this preset is selectable at provision time */ + active?: boolean | null; + /** Infra store commit for the current definition (stamped by the versioned trigger on every write) */ + commitId?: string | null; + /** Timestamp of preset creation */ + createdAt?: string | null; + /** The seed document itself, in the shape the kind's seed function takes — the readily-cached head; history lives in the infra store */ + definition?: Record | null; + /** Human-readable description of the preset */ + description?: string | null; + /** Unique preset identifier */ + id: string; + /** What the definition seeds — the module option that resolves it (limit_defaults, trust_ladder, ...) */ + kind?: string | null; + /** Human-readable preset name */ + label?: string | null; + /** Preset slug (unique per kind per scope); the preset's path in the infra tree is [content_preset, kind, slug] */ + slug?: string | null; + /** Infra Merkle store holding this preset's history (stamped by the versioned trigger) */ + storeId?: string | null; + /** Timestamp of last modification */ + updatedAt?: string | null; +} +/** Database provisioning preset catalog — merkle-versioned head over the infra store */ export interface DbPreset { /** Whether this preset is selectable for new databases */ active?: boolean | null; @@ -421,6 +446,7 @@ export interface PageInfo { endCursor?: string | null; } // ============ Entity Relation Types ============ +export interface ContentPresetRelations {} export interface DbPresetRelations {} export interface NamespaceRelations {} export interface NamespaceEventRelations {} @@ -432,6 +458,7 @@ export interface PlatformInfraStoreRelations {} export interface PlatformNamespaceRelations {} export interface PlatformNamespaceEventRelations {} // ============ Entity Types With Relations ============ +export type ContentPresetWithRelations = ContentPreset & ContentPresetRelations; export type DbPresetWithRelations = DbPreset & DbPresetRelations; export type NamespaceWithRelations = Namespace & NamespaceRelations; export type NamespaceEventWithRelations = NamespaceEvent & NamespaceEventRelations; @@ -445,6 +472,19 @@ export type PlatformNamespaceWithRelations = PlatformNamespace & PlatformNamespa export type PlatformNamespaceEventWithRelations = PlatformNamespaceEvent & PlatformNamespaceEventRelations; // ============ Entity Select Types ============ +export type ContentPresetSelect = { + active?: boolean; + commitId?: boolean; + createdAt?: boolean; + definition?: boolean; + description?: boolean; + id?: boolean; + kind?: boolean; + label?: boolean; + slug?: boolean; + storeId?: boolean; + updatedAt?: boolean; +}; export type DbPresetSelect = { active?: boolean; commitId?: boolean; @@ -544,6 +584,36 @@ export type PlatformNamespaceEventSelect = { namespaceId?: boolean; }; // ============ Table Filter Types ============ +export interface ContentPresetFilter { + /** Filter by the object’s `active` field. */ + active?: BooleanFilter; + /** Checks for all expressions in this list. */ + and?: ContentPresetFilter[]; + /** Filter by the object’s `commitId` field. */ + commitId?: UUIDFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `definition` field. */ + definition?: JSONFilter; + /** Filter by the object’s `description` field. */ + description?: StringFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `kind` field. */ + kind?: StringFilter; + /** Filter by the object’s `label` field. */ + label?: StringFilter; + /** Negates the expression. */ + not?: ContentPresetFilter; + /** Checks for any expressions in this list. */ + or?: ContentPresetFilter[]; + /** Filter by the object’s `slug` field. */ + slug?: StringFilter; + /** Filter by the object’s `storeId` field. */ + storeId?: UUIDFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; +} export interface DbPresetFilter { /** Filter by the object’s `active` field. */ active?: BooleanFilter; @@ -776,6 +846,32 @@ export interface PlatformNamespaceEventFilter { or?: PlatformNamespaceEventFilter[]; } // ============ OrderBy Types ============ +export type ContentPresetOrderBy = + | 'ACTIVE_ASC' + | 'ACTIVE_DESC' + | 'COMMIT_ID_ASC' + | 'COMMIT_ID_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'DEFINITION_ASC' + | 'DEFINITION_DESC' + | 'DESCRIPTION_ASC' + | 'DESCRIPTION_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'KIND_ASC' + | 'KIND_DESC' + | 'LABEL_ASC' + | 'LABEL_DESC' + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'SLUG_ASC' + | 'SLUG_DESC' + | 'STORE_ID_ASC' + | 'STORE_ID_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC'; export type DbPresetOrderBy = | 'ACTIVE_ASC' | 'ACTIVE_DESC' @@ -973,6 +1069,38 @@ export type PlatformNamespaceEventOrderBy = | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC'; // ============ CRUD Input Types ============ +export interface CreateContentPresetInput { + clientMutationId?: string; + contentPreset: { + active?: boolean; + commitId?: string; + definition: Record; + description?: string; + kind: string; + label?: string; + slug: string; + storeId?: string; + }; +} +export interface ContentPresetPatch { + active?: boolean | null; + commitId?: string | null; + definition?: Record | null; + description?: string | null; + kind?: string | null; + label?: string | null; + slug?: string | null; + storeId?: string | null; +} +export interface UpdateContentPresetInput { + clientMutationId?: string; + id: string; + contentPresetPatch: ContentPresetPatch; +} +export interface DeleteContentPresetInput { + clientMutationId?: string; + id: string; +} export interface CreateDbPresetInput { clientMutationId?: string; dbPreset: { @@ -1268,6 +1396,26 @@ export interface PlatformInfraInsertNodeAtPathInput { root?: string; sId?: string; } +export interface PlatformInfraInsertNodesAtPathsInput { + clientMutationId?: string; + datas?: Record[]; + kidsList?: Record; + ktreeList?: Record; + paths?: Record; + root?: string; + sId?: string; +} +export interface PlatformInfraSetAndCommitInput { + clientMutationId?: string; + data?: Record; + kids?: string[]; + ktree?: string[]; + message?: string; + path?: string[]; + refname?: string; + sId?: string; + storeId?: string; +} export interface PlatformInfraSetDataAtPathInput { clientMutationId?: string; data?: Record; @@ -1275,6 +1423,14 @@ export interface PlatformInfraSetDataAtPathInput { root?: string; sId?: string; } +export interface PlatformInfraSetManyAndCommitInput { + clientMutationId?: string; + entries?: Record; + message?: string; + refname?: string; + sId?: string; + storeId?: string; +} export interface ProvisionBucketInput { /** The logical bucket key (e.g., "public", "private") */ bucketKey: string; @@ -1284,6 +1440,31 @@ export interface ProvisionBucketInput { */ ownerId?: string; } +/** An input for mutations affecting `ContentPreset` */ +export interface ContentPresetInput { + /** Whether this preset is selectable at provision time */ + active?: boolean; + /** Infra store commit for the current definition (stamped by the versioned trigger on every write) */ + commitId?: string; + /** Timestamp of preset creation */ + createdAt?: string; + /** The seed document itself, in the shape the kind's seed function takes — the readily-cached head; history lives in the infra store */ + definition: Record; + /** Human-readable description of the preset */ + description?: string; + /** Unique preset identifier */ + id?: string; + /** What the definition seeds — the module option that resolves it (limit_defaults, trust_ladder, ...) */ + kind: string; + /** Human-readable preset name */ + label?: string; + /** Preset slug (unique per kind per scope); the preset's path in the infra tree is [content_preset, kind, slug] */ + slug: string; + /** Infra Merkle store holding this preset's history (stamped by the versioned trigger) */ + storeId?: string; + /** Timestamp of last modification */ + updatedAt?: string; +} /** An input for mutations affecting `DbPreset` */ export interface DbPresetInput { /** Whether this preset is selectable for new databases */ @@ -1472,6 +1653,28 @@ export type PlatformInfraInsertNodeAtPathPayloadSelect = { clientMutationId?: boolean; result?: boolean; }; +export interface PlatformInfraInsertNodesAtPathsPayload { + clientMutationId?: string | null; + result?: string | null; +} +export type PlatformInfraInsertNodesAtPathsPayloadSelect = { + clientMutationId?: boolean; + result?: boolean; +}; +export interface PlatformInfraSetAndCommitPayload { + clientMutationId?: string | null; + platformInfraCommitEdge?: PlatformInfraCommitEdge | null; + result?: PlatformInfraCommit | null; +} +export type PlatformInfraSetAndCommitPayloadSelect = { + clientMutationId?: boolean; + platformInfraCommitEdge?: { + select: PlatformInfraCommitEdgeSelect; + }; + result?: { + select: PlatformInfraCommitSelect; + }; +}; export interface PlatformInfraSetDataAtPathPayload { clientMutationId?: string | null; result?: string | null; @@ -1480,6 +1683,20 @@ export type PlatformInfraSetDataAtPathPayloadSelect = { clientMutationId?: boolean; result?: boolean; }; +export interface PlatformInfraSetManyAndCommitPayload { + clientMutationId?: string | null; + platformInfraCommitEdge?: PlatformInfraCommitEdge | null; + result?: PlatformInfraCommit | null; +} +export type PlatformInfraSetManyAndCommitPayloadSelect = { + clientMutationId?: boolean; + platformInfraCommitEdge?: { + select: PlatformInfraCommitEdgeSelect; + }; + result?: { + select: PlatformInfraCommitSelect; + }; +}; export interface ProvisionBucketPayload { /** The access type applied */ accessType: string; @@ -1502,6 +1719,51 @@ export type ProvisionBucketPayloadSelect = { provider?: boolean; success?: boolean; }; +export interface CreateContentPresetPayload { + clientMutationId?: string | null; + /** The `ContentPreset` that was created by this mutation. */ + contentPreset?: ContentPreset | null; + contentPresetEdge?: ContentPresetEdge | null; +} +export type CreateContentPresetPayloadSelect = { + clientMutationId?: boolean; + contentPreset?: { + select: ContentPresetSelect; + }; + contentPresetEdge?: { + select: ContentPresetEdgeSelect; + }; +}; +export interface UpdateContentPresetPayload { + clientMutationId?: string | null; + /** The `ContentPreset` that was updated by this mutation. */ + contentPreset?: ContentPreset | null; + contentPresetEdge?: ContentPresetEdge | null; +} +export type UpdateContentPresetPayloadSelect = { + clientMutationId?: boolean; + contentPreset?: { + select: ContentPresetSelect; + }; + contentPresetEdge?: { + select: ContentPresetEdgeSelect; + }; +}; +export interface DeleteContentPresetPayload { + clientMutationId?: string | null; + /** The `ContentPreset` that was deleted by this mutation. */ + contentPreset?: ContentPreset | null; + contentPresetEdge?: ContentPresetEdge | null; +} +export type DeleteContentPresetPayloadSelect = { + clientMutationId?: boolean; + contentPreset?: { + select: ContentPresetSelect; + }; + contentPresetEdge?: { + select: ContentPresetEdgeSelect; + }; +}; export interface CreateDbPresetPayload { clientMutationId?: string | null; /** The `DbPreset` that was created by this mutation. */ @@ -1907,6 +2169,30 @@ export type DeletePlatformNamespaceEventPayloadSelect = { select: PlatformNamespaceEventEdgeSelect; }; }; +/** A `PlatformInfraCommit` edge in the connection. */ +export interface PlatformInfraCommitEdge { + cursor?: string | null; + /** The `PlatformInfraCommit` at the end of the edge. */ + node?: PlatformInfraCommit | null; +} +export type PlatformInfraCommitEdgeSelect = { + cursor?: boolean; + node?: { + select: PlatformInfraCommitSelect; + }; +}; +/** A `ContentPreset` edge in the connection. */ +export interface ContentPresetEdge { + cursor?: string | null; + /** The `ContentPreset` at the end of the edge. */ + node?: ContentPreset | null; +} +export type ContentPresetEdgeSelect = { + cursor?: boolean; + node?: { + select: ContentPresetSelect; + }; +}; /** A `DbPreset` edge in the connection. */ export interface DbPresetEdge { cursor?: string | null; @@ -1943,18 +2229,6 @@ export type NamespaceEventEdgeSelect = { select: NamespaceEventSelect; }; }; -/** A `PlatformInfraCommit` edge in the connection. */ -export interface PlatformInfraCommitEdge { - cursor?: string | null; - /** The `PlatformInfraCommit` at the end of the edge. */ - node?: PlatformInfraCommit | null; -} -export type PlatformInfraCommitEdgeSelect = { - cursor?: boolean; - node?: { - select: PlatformInfraCommitSelect; - }; -}; /** A `PlatformInfraObject` edge in the connection. */ export interface PlatformInfraObjectEdge { cursor?: string | null; diff --git a/sdk/constructive-sdk/src/infra/orm/models/contentPreset.ts b/sdk/constructive-sdk/src/infra/orm/models/contentPreset.ts new file mode 100644 index 0000000000..20242ccc78 --- /dev/null +++ b/sdk/constructive-sdk/src/infra/orm/models/contentPreset.ts @@ -0,0 +1,245 @@ +/** + * ContentPreset 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 { + ContentPreset, + ContentPresetWithRelations, + ContentPresetSelect, + ContentPresetFilter, + ContentPresetOrderBy, + CreateContentPresetInput, + UpdateContentPresetInput, + ContentPresetPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class ContentPresetModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + contentPresets: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'ContentPreset', + 'contentPresets', + 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, + }, + 'ContentPresetFilter', + 'ContentPresetOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'ContentPreset', + fieldName: 'contentPresets', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + contentPreset: InferSelectResult | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'ContentPreset', + 'contentPresets', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'ContentPresetFilter', + 'ContentPresetOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'ContentPreset', + fieldName: 'contentPreset', + document, + variables, + transform: (data: { + contentPresets?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + contentPreset: data.contentPresets?.nodes?.[0] ?? null, + }), + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + contentPreset: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'ContentPreset', + 'contentPresets', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'ContentPresetFilter', + 'ContentPresetOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'ContentPreset', + fieldName: 'contentPreset', + document, + variables, + transform: (data: { + contentPresets?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + contentPreset: data.contentPresets?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createContentPreset: { + contentPreset: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'ContentPreset', + 'createContentPreset', + 'contentPreset', + args.select, + args.data, + 'CreateContentPresetInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'ContentPreset', + fieldName: 'createContentPreset', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + ContentPresetPatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateContentPreset: { + contentPreset: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'ContentPreset', + 'updateContentPreset', + 'contentPreset', + args.select, + args.where.id, + args.data, + 'UpdateContentPresetInput', + 'id', + 'contentPresetPatch', + connectionFieldsMap, + undefined + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'ContentPreset', + fieldName: 'updateContentPreset', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteContentPreset: { + contentPreset: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'ContentPreset', + 'deleteContentPreset', + 'contentPreset', + { + id: args.where.id, + }, + 'DeleteContentPresetInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'ContentPreset', + fieldName: 'deleteContentPreset', + document, + variables, + }); + } +} diff --git a/sdk/constructive-sdk/src/infra/orm/models/index.ts b/sdk/constructive-sdk/src/infra/orm/models/index.ts index 1e5132eecf..497a17ea94 100644 --- a/sdk/constructive-sdk/src/infra/orm/models/index.ts +++ b/sdk/constructive-sdk/src/infra/orm/models/index.ts @@ -3,6 +3,7 @@ * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ +export { ContentPresetModel } from './contentPreset'; export { DbPresetModel } from './dbPreset'; export { NamespaceModel } from './namespace'; export { NamespaceEventModel } from './namespaceEvent'; diff --git a/sdk/constructive-sdk/src/infra/orm/mutation/index.ts b/sdk/constructive-sdk/src/infra/orm/mutation/index.ts index f266633531..04353e5b5c 100644 --- a/sdk/constructive-sdk/src/infra/orm/mutation/index.ts +++ b/sdk/constructive-sdk/src/infra/orm/mutation/index.ts @@ -9,15 +9,24 @@ import type { InferSelectResult, StrictSelect } from '../select-types'; import type { PlatformInfraInitEmptyRepoInput, PlatformInfraInsertNodeAtPathInput, + PlatformInfraInsertNodesAtPathsInput, + PlatformInfraSetAndCommitInput, PlatformInfraSetDataAtPathInput, + PlatformInfraSetManyAndCommitInput, ProvisionBucketInput, PlatformInfraInitEmptyRepoPayload, PlatformInfraInsertNodeAtPathPayload, + PlatformInfraInsertNodesAtPathsPayload, + PlatformInfraSetAndCommitPayload, PlatformInfraSetDataAtPathPayload, + PlatformInfraSetManyAndCommitPayload, ProvisionBucketPayload, PlatformInfraInitEmptyRepoPayloadSelect, PlatformInfraInsertNodeAtPathPayloadSelect, + PlatformInfraInsertNodesAtPathsPayloadSelect, + PlatformInfraSetAndCommitPayloadSelect, PlatformInfraSetDataAtPathPayloadSelect, + PlatformInfraSetManyAndCommitPayloadSelect, ProvisionBucketPayloadSelect, } from '../input-types'; import { connectionFieldsMap } from '../input-types'; @@ -27,9 +36,18 @@ export interface PlatformInfraInitEmptyRepoVariables { export interface PlatformInfraInsertNodeAtPathVariables { input: PlatformInfraInsertNodeAtPathInput; } +export interface PlatformInfraInsertNodesAtPathsVariables { + input: PlatformInfraInsertNodesAtPathsInput; +} +export interface PlatformInfraSetAndCommitVariables { + input: PlatformInfraSetAndCommitInput; +} export interface PlatformInfraSetDataAtPathVariables { input: PlatformInfraSetDataAtPathInput; } +export interface PlatformInfraSetManyAndCommitVariables { + input: PlatformInfraSetManyAndCommitInput; +} /** * Variables for provisionBucket * Provision an S3 bucket for a logical bucket in the database. @@ -103,6 +121,67 @@ export function createMutationOperations(client: OrmClient) { 'PlatformInfraInsertNodeAtPathPayload' ), }), + platformInfraInsertNodesAtPaths: ( + args: PlatformInfraInsertNodesAtPathsVariables, + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + platformInfraInsertNodesAtPaths: InferSelectResult< + PlatformInfraInsertNodesAtPathsPayload, + S + > | null; + }>({ + client, + operation: 'mutation', + operationName: 'PlatformInfraInsertNodesAtPaths', + fieldName: 'platformInfraInsertNodesAtPaths', + ...buildCustomDocument( + 'mutation', + 'PlatformInfraInsertNodesAtPaths', + 'platformInfraInsertNodesAtPaths', + options.select, + args, + [ + { + name: 'input', + type: 'PlatformInfraInsertNodesAtPathsInput!', + }, + ], + connectionFieldsMap, + 'PlatformInfraInsertNodesAtPathsPayload' + ), + }), + platformInfraSetAndCommit: ( + args: PlatformInfraSetAndCommitVariables, + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + platformInfraSetAndCommit: InferSelectResult | null; + }>({ + client, + operation: 'mutation', + operationName: 'PlatformInfraSetAndCommit', + fieldName: 'platformInfraSetAndCommit', + ...buildCustomDocument( + 'mutation', + 'PlatformInfraSetAndCommit', + 'platformInfraSetAndCommit', + options.select, + args, + [ + { + name: 'input', + type: 'PlatformInfraSetAndCommitInput!', + }, + ], + connectionFieldsMap, + 'PlatformInfraSetAndCommitPayload' + ), + }), platformInfraSetDataAtPath: ( args: PlatformInfraSetDataAtPathVariables, options: { @@ -132,6 +211,38 @@ export function createMutationOperations(client: OrmClient) { 'PlatformInfraSetDataAtPathPayload' ), }), + platformInfraSetManyAndCommit: ( + args: PlatformInfraSetManyAndCommitVariables, + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + platformInfraSetManyAndCommit: InferSelectResult< + PlatformInfraSetManyAndCommitPayload, + S + > | null; + }>({ + client, + operation: 'mutation', + operationName: 'PlatformInfraSetManyAndCommit', + fieldName: 'platformInfraSetManyAndCommit', + ...buildCustomDocument( + 'mutation', + 'PlatformInfraSetManyAndCommit', + 'platformInfraSetManyAndCommit', + options.select, + args, + [ + { + name: 'input', + type: 'PlatformInfraSetManyAndCommitInput!', + }, + ], + connectionFieldsMap, + 'PlatformInfraSetManyAndCommitPayload' + ), + }), provisionBucket: ( args: ProvisionBucketVariables, options: { diff --git a/sdk/constructive-sdk/src/modules/README.md b/sdk/constructive-sdk/src/modules/README.md index efb8e061fd..dcf865e05e 100644 --- a/sdk/constructive-sdk/src/modules/README.md +++ b/sdk/constructive-sdk/src/modules/README.md @@ -8,9 +8,9 @@ ## Overview -- **Tables:** 76 -- **Custom queries:** 2 -- **Custom mutations:** 10 +- **Tables:** 83 +- **Custom queries:** 0 +- **Custom mutations:** 3 **Generators:** ORM diff --git a/sdk/constructive-sdk/src/modules/orm/README.md b/sdk/constructive-sdk/src/modules/orm/README.md index 7982fe489a..de92f9aee3 100644 --- a/sdk/constructive-sdk/src/modules/orm/README.md +++ b/sdk/constructive-sdk/src/modules/orm/README.md @@ -29,12 +29,15 @@ const db = createClient({ | `blueprint` | findMany, findOne, create, update, delete | | `blueprintConstruction` | findMany, findOne, create, update, delete | | `blueprintTemplate` | findMany, findOne, create, update, delete | +| `capabilitiesModule` | findMany, findOne, create, update, delete | | `catalogModule` | findMany, findOne, create, update, delete | | `computeLogModule` | findMany, findOne, create, update, delete | | `configSecretsUserModule` | findMany, findOne, create, update, delete | | `connectedAccountsModule` | findMany, findOne, create, update, delete | +| `contentPresetModule` | findMany, findOne, create, update, delete | | `cryptoAddressesModule` | findMany, findOne, create, update, delete | | `cryptoAuthModule` | findMany, findOne, create, update, delete | +| `dataCapabilitiesField` | findMany, findOne, create, update, delete | | `databaseProvisionModule` | findMany, findOne, create, update, delete | | `databaseSettingsModule` | findMany, findOne, create, update, delete | | `dbPoolConfig` | findMany, findOne, create, update, delete | @@ -45,9 +48,11 @@ const db = createClient({ | `denormalizedTableField` | findMany, findOne, create, update, delete | | `devicesModule` | findMany, findOne, create, update, delete | | `domainModule` | findMany, findOne, create, update, delete | +| `emailSenderModule` | findMany, findOne, create, update, delete | | `emailsModule` | findMany, findOne, create, update, delete | | `entityTypeProvision` | findMany, findOne, create, update, delete | | `eventsModule` | findMany, findOne, create, update, delete | +| `fileRefField` | findMany, findOne, create, update, delete | | `functionDeploymentModule` | findMany, findOne, create, update, delete | | `functionInvocationModule` | findMany, findOne, create, update, delete | | `functionModule` | findMany, findOne, create, update, delete | @@ -69,8 +74,8 @@ const db = createClient({ | `merkleStoreModule` | findMany, findOne, create, update, delete | | `namespaceModule` | findMany, findOne, create, update, delete | | `notificationsModule` | findMany, findOne, create, update, delete | +| `oauthRequestsModule` | findMany, findOne, create, update, delete | | `pagesModule` | findMany, findOne, create, update, delete | -| `permissionsModule` | findMany, findOne, create, update, delete | | `phoneNumbersModule` | findMany, findOne, create, update, delete | | `plansModule` | findMany, findOne, create, update, delete | | `principalAuthModule` | findMany, findOne, create, update, delete | @@ -82,6 +87,7 @@ const db = createClient({ | `resourceModule` | findMany, findOne, create, update, delete | | `rlsModule` | findMany, findOne, create, update, delete | | `routeModule` | findMany, findOne, create, update, delete | +| `scopeTypesModule` | findMany, findOne, create, update, delete | | `secureTableProvision` | findMany, findOne, create, update, delete | | `sessionSecretsModule` | findMany, findOne, create, update, delete | | `sessionsModule` | findMany, findOne, create, update, delete | @@ -92,6 +98,7 @@ const db = createClient({ | `userAuthModule` | findMany, findOne, create, update, delete | | `userCredentialsModule` | findMany, findOne, create, update, delete | | `userSettingsModule` | findMany, findOne, create, update, delete | +| `userSettingsSecurityModule` | findMany, findOne, create, update, delete | | `userStateModule` | findMany, findOne, create, update, delete | | `usersModule` | findMany, findOne, create, update, delete | | `webauthnAuthModule` | findMany, findOne, create, update, delete | @@ -112,7 +119,7 @@ CRUD operations for AgentModule records. | `agentTableName` | String | Yes | | `apiName` | String | Yes | | `databaseId` | UUID | Yes | -| `defaultPermissions` | String | Yes | +| `defaultCapabilities` | String | Yes | | `entityField` | String | Yes | | `entityTableId` | UUID | Yes | | `hasAgents` | Boolean | Yes | @@ -149,13 +156,13 @@ CRUD operations for AgentModule records. ```typescript // List all agentModule records -const items = await db.agentModule.findMany({ select: { agentTableId: true, agentTableName: true, apiName: true, databaseId: true, defaultPermissions: true, entityField: true, entityTableId: true, hasAgents: true, hasPlans: true, hasResources: true, id: true, messageTableId: true, messageTableName: true, personaTableId: true, personaTableName: true, planTableId: true, planTableName: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, promptsTableId: true, promptsTableName: true, provisions: true, publicSchemaName: true, resourceTableId: true, resourceTableName: true, resources: true, schemaId: true, scope: true, shared: true, taskTableId: true, taskTableName: true, threadTableId: true, threadTableName: true } }).execute(); +const items = await db.agentModule.findMany({ select: { agentTableId: true, agentTableName: true, apiName: true, databaseId: true, defaultCapabilities: true, entityField: true, entityTableId: true, hasAgents: true, hasPlans: true, hasResources: true, id: true, messageTableId: true, messageTableName: true, personaTableId: true, personaTableName: true, planTableId: true, planTableName: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, promptsTableId: true, promptsTableName: true, provisions: true, publicSchemaName: true, resourceTableId: true, resourceTableName: true, resources: true, schemaId: true, scope: true, shared: true, taskTableId: true, taskTableName: true, threadTableId: true, threadTableName: true } }).execute(); // Get one by id -const item = await db.agentModule.findOne({ id: '', select: { agentTableId: true, agentTableName: true, apiName: true, databaseId: true, defaultPermissions: true, entityField: true, entityTableId: true, hasAgents: true, hasPlans: true, hasResources: true, id: true, messageTableId: true, messageTableName: true, personaTableId: true, personaTableName: true, planTableId: true, planTableName: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, promptsTableId: true, promptsTableName: true, provisions: true, publicSchemaName: true, resourceTableId: true, resourceTableName: true, resources: true, schemaId: true, scope: true, shared: true, taskTableId: true, taskTableName: true, threadTableId: true, threadTableName: true } }).execute(); +const item = await db.agentModule.findOne({ id: '', select: { agentTableId: true, agentTableName: true, apiName: true, databaseId: true, defaultCapabilities: true, entityField: true, entityTableId: true, hasAgents: true, hasPlans: true, hasResources: true, id: true, messageTableId: true, messageTableName: true, personaTableId: true, personaTableName: true, planTableId: true, planTableName: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, promptsTableId: true, promptsTableName: true, provisions: true, publicSchemaName: true, resourceTableId: true, resourceTableName: true, resources: true, schemaId: true, scope: true, shared: true, taskTableId: true, taskTableName: true, threadTableId: true, threadTableName: true } }).execute(); // Create -const created = await db.agentModule.create({ data: { agentTableId: '', agentTableName: '', apiName: '', databaseId: '', defaultPermissions: '', entityField: '', entityTableId: '', hasAgents: '', hasPlans: '', hasResources: '', messageTableId: '', messageTableName: '', personaTableId: '', personaTableName: '', planTableId: '', planTableName: '', policies: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', promptsTableId: '', promptsTableName: '', provisions: '', publicSchemaName: '', resourceTableId: '', resourceTableName: '', resources: '', schemaId: '', scope: '', shared: '', taskTableId: '', taskTableName: '', threadTableId: '', threadTableName: '' }, select: { id: true } }).execute(); +const created = await db.agentModule.create({ data: { agentTableId: '', agentTableName: '', apiName: '', databaseId: '', defaultCapabilities: '', entityField: '', entityTableId: '', hasAgents: '', hasPlans: '', hasResources: '', messageTableId: '', messageTableName: '', personaTableId: '', personaTableName: '', planTableId: '', planTableName: '', policies: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', promptsTableId: '', promptsTableName: '', provisions: '', publicSchemaName: '', resourceTableId: '', resourceTableName: '', resources: '', schemaId: '', scope: '', shared: '', taskTableId: '', taskTableName: '', threadTableId: '', threadTableName: '' }, select: { id: true } }).execute(); // Update const updated = await db.agentModule.update({ where: { id: '' }, data: { agentTableId: '' }, select: { id: true } }).execute(); @@ -183,7 +190,7 @@ CRUD operations for ApiSurfaceModule records. | `corsSettingsTableId` | UUID | Yes | | `corsSettingsTableName` | String | Yes | | `databaseId` | UUID | Yes | -| `defaultPermissions` | String | Yes | +| `defaultCapabilities` | String | Yes | | `entityField` | String | Yes | | `entityTableId` | UUID | Yes | | `id` | UUID | No | @@ -199,13 +206,13 @@ CRUD operations for ApiSurfaceModule records. ```typescript // List all apiSurfaceModule records -const items = await db.apiSurfaceModule.findMany({ select: { apiName: true, apiSchemasTableId: true, apiSchemasTableName: true, apiSettingsTableId: true, apiSettingsTableName: true, apisTableId: true, apisTableName: true, catalogModuleId: true, corsSettingsTableId: true, corsSettingsTableName: true, databaseId: true, defaultPermissions: true, entityField: true, entityTableId: true, id: true, policies: true, prefix: true, privateApiName: true, provisions: true, publicSchemaName: true, schemaId: true, scope: true } }).execute(); +const items = await db.apiSurfaceModule.findMany({ select: { apiName: true, apiSchemasTableId: true, apiSchemasTableName: true, apiSettingsTableId: true, apiSettingsTableName: true, apisTableId: true, apisTableName: true, catalogModuleId: true, corsSettingsTableId: true, corsSettingsTableName: true, databaseId: true, defaultCapabilities: true, entityField: true, entityTableId: true, id: true, policies: true, prefix: true, privateApiName: true, provisions: true, publicSchemaName: true, schemaId: true, scope: true } }).execute(); // Get one by id -const item = await db.apiSurfaceModule.findOne({ id: '', select: { apiName: true, apiSchemasTableId: true, apiSchemasTableName: true, apiSettingsTableId: true, apiSettingsTableName: true, apisTableId: true, apisTableName: true, catalogModuleId: true, corsSettingsTableId: true, corsSettingsTableName: true, databaseId: true, defaultPermissions: true, entityField: true, entityTableId: true, id: true, policies: true, prefix: true, privateApiName: true, provisions: true, publicSchemaName: true, schemaId: true, scope: true } }).execute(); +const item = await db.apiSurfaceModule.findOne({ id: '', select: { apiName: true, apiSchemasTableId: true, apiSchemasTableName: true, apiSettingsTableId: true, apiSettingsTableName: true, apisTableId: true, apisTableName: true, catalogModuleId: true, corsSettingsTableId: true, corsSettingsTableName: true, databaseId: true, defaultCapabilities: true, entityField: true, entityTableId: true, id: true, policies: true, prefix: true, privateApiName: true, provisions: true, publicSchemaName: true, schemaId: true, scope: true } }).execute(); // Create -const created = await db.apiSurfaceModule.create({ data: { apiName: '', apiSchemasTableId: '', apiSchemasTableName: '', apiSettingsTableId: '', apiSettingsTableName: '', apisTableId: '', apisTableName: '', catalogModuleId: '', corsSettingsTableId: '', corsSettingsTableName: '', databaseId: '', defaultPermissions: '', entityField: '', entityTableId: '', policies: '', prefix: '', privateApiName: '', provisions: '', publicSchemaName: '', schemaId: '', scope: '' }, select: { id: true } }).execute(); +const created = await db.apiSurfaceModule.create({ data: { apiName: '', apiSchemasTableId: '', apiSchemasTableName: '', apiSettingsTableId: '', apiSettingsTableName: '', apisTableId: '', apisTableName: '', catalogModuleId: '', corsSettingsTableId: '', corsSettingsTableName: '', databaseId: '', defaultCapabilities: '', entityField: '', entityTableId: '', policies: '', prefix: '', privateApiName: '', provisions: '', publicSchemaName: '', schemaId: '', scope: '' }, select: { id: true } }).execute(); // Update const updated = await db.apiSurfaceModule.update({ where: { id: '' }, data: { apiName: '' }, select: { id: true } }).execute(); @@ -229,7 +236,7 @@ CRUD operations for AppModule records. | `appsTableName` | String | Yes | | `catalogModuleId` | UUID | Yes | | `databaseId` | UUID | Yes | -| `defaultPermissions` | String | Yes | +| `defaultCapabilities` | String | Yes | | `entityField` | String | Yes | | `entityTableId` | UUID | Yes | | `id` | UUID | No | @@ -247,13 +254,13 @@ CRUD operations for AppModule records. ```typescript // List all appModule records -const items = await db.appModule.findMany({ select: { apiName: true, appComponentsTableId: true, appComponentsTableName: true, appsTableId: true, appsTableName: true, catalogModuleId: true, databaseId: true, defaultPermissions: true, entityField: true, entityTableId: true, id: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provisions: true, publicSchemaName: true, schemaId: true, scope: true } }).execute(); +const items = await db.appModule.findMany({ select: { apiName: true, appComponentsTableId: true, appComponentsTableName: true, appsTableId: true, appsTableName: true, catalogModuleId: true, databaseId: true, defaultCapabilities: true, entityField: true, entityTableId: true, id: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provisions: true, publicSchemaName: true, schemaId: true, scope: true } }).execute(); // Get one by id -const item = await db.appModule.findOne({ id: '', select: { apiName: true, appComponentsTableId: true, appComponentsTableName: true, appsTableId: true, appsTableName: true, catalogModuleId: true, databaseId: true, defaultPermissions: true, entityField: true, entityTableId: true, id: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provisions: true, publicSchemaName: true, schemaId: true, scope: true } }).execute(); +const item = await db.appModule.findOne({ id: '', select: { apiName: true, appComponentsTableId: true, appComponentsTableName: true, appsTableId: true, appsTableName: true, catalogModuleId: true, databaseId: true, defaultCapabilities: true, entityField: true, entityTableId: true, id: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provisions: true, publicSchemaName: true, schemaId: true, scope: true } }).execute(); // Create -const created = await db.appModule.create({ data: { apiName: '', appComponentsTableId: '', appComponentsTableName: '', appsTableId: '', appsTableName: '', catalogModuleId: '', databaseId: '', defaultPermissions: '', entityField: '', entityTableId: '', policies: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', provisions: '', publicSchemaName: '', schemaId: '', scope: '' }, select: { id: true } }).execute(); +const created = await db.appModule.create({ data: { apiName: '', appComponentsTableId: '', appComponentsTableName: '', appsTableId: '', appsTableName: '', catalogModuleId: '', databaseId: '', defaultCapabilities: '', entityField: '', entityTableId: '', policies: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', provisions: '', publicSchemaName: '', schemaId: '', scope: '' }, select: { id: true } }).execute(); // Update const updated = await db.appModule.update({ where: { id: '' }, data: { apiName: '' }, select: { id: true } }).execute(); @@ -274,8 +281,8 @@ CRUD operations for BillingModule records. | `balancesTableId` | UUID | Yes | | `balancesTableName` | String | Yes | | `databaseId` | UUID | Yes | +| `defaultCapabilities` | String | Yes | | `defaultMeterCatalog` | JSON | Yes | -| `defaultPermissions` | String | Yes | | `id` | UUID | No | | `ledgerTableId` | UUID | Yes | | `ledgerTableName` | String | Yes | @@ -303,13 +310,13 @@ CRUD operations for BillingModule records. ```typescript // List all billingModule records -const items = await db.billingModule.findMany({ select: { apiName: true, balancesTableId: true, balancesTableName: true, databaseId: true, defaultMeterCatalog: true, defaultPermissions: true, id: true, ledgerTableId: true, ledgerTableName: true, meterCreditsTableId: true, meterCreditsTableName: true, meterDefaultsTableId: true, meterDefaultsTableName: true, meterSourcesTableId: true, meterSourcesTableName: true, metersTableId: true, metersTableName: true, planSubscriptionsTableId: true, planSubscriptionsTableName: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, publicSchemaName: true, recordUsageFunction: true, rollupUsageSummaryFunction: true, schemaId: true, sweepExpiredSubscriptionsFunction: true } }).execute(); +const items = await db.billingModule.findMany({ select: { apiName: true, balancesTableId: true, balancesTableName: true, databaseId: true, defaultCapabilities: true, defaultMeterCatalog: true, id: true, ledgerTableId: true, ledgerTableName: true, meterCreditsTableId: true, meterCreditsTableName: true, meterDefaultsTableId: true, meterDefaultsTableName: true, meterSourcesTableId: true, meterSourcesTableName: true, metersTableId: true, metersTableName: true, planSubscriptionsTableId: true, planSubscriptionsTableName: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, publicSchemaName: true, recordUsageFunction: true, rollupUsageSummaryFunction: true, schemaId: true, sweepExpiredSubscriptionsFunction: true } }).execute(); // Get one by id -const item = await db.billingModule.findOne({ id: '', select: { apiName: true, balancesTableId: true, balancesTableName: true, databaseId: true, defaultMeterCatalog: true, defaultPermissions: true, id: true, ledgerTableId: true, ledgerTableName: true, meterCreditsTableId: true, meterCreditsTableName: true, meterDefaultsTableId: true, meterDefaultsTableName: true, meterSourcesTableId: true, meterSourcesTableName: true, metersTableId: true, metersTableName: true, planSubscriptionsTableId: true, planSubscriptionsTableName: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, publicSchemaName: true, recordUsageFunction: true, rollupUsageSummaryFunction: true, schemaId: true, sweepExpiredSubscriptionsFunction: true } }).execute(); +const item = await db.billingModule.findOne({ id: '', select: { apiName: true, balancesTableId: true, balancesTableName: true, databaseId: true, defaultCapabilities: true, defaultMeterCatalog: true, id: true, ledgerTableId: true, ledgerTableName: true, meterCreditsTableId: true, meterCreditsTableName: true, meterDefaultsTableId: true, meterDefaultsTableName: true, meterSourcesTableId: true, meterSourcesTableName: true, metersTableId: true, metersTableName: true, planSubscriptionsTableId: true, planSubscriptionsTableName: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, publicSchemaName: true, recordUsageFunction: true, rollupUsageSummaryFunction: true, schemaId: true, sweepExpiredSubscriptionsFunction: true } }).execute(); // Create -const created = await db.billingModule.create({ data: { apiName: '', balancesTableId: '', balancesTableName: '', databaseId: '', defaultMeterCatalog: '', defaultPermissions: '', ledgerTableId: '', ledgerTableName: '', meterCreditsTableId: '', meterCreditsTableName: '', meterDefaultsTableId: '', meterDefaultsTableName: '', meterSourcesTableId: '', meterSourcesTableName: '', metersTableId: '', metersTableName: '', planSubscriptionsTableId: '', planSubscriptionsTableName: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', publicSchemaName: '', recordUsageFunction: '', rollupUsageSummaryFunction: '', schemaId: '', sweepExpiredSubscriptionsFunction: '' }, select: { id: true } }).execute(); +const created = await db.billingModule.create({ data: { apiName: '', balancesTableId: '', balancesTableName: '', databaseId: '', defaultCapabilities: '', defaultMeterCatalog: '', ledgerTableId: '', ledgerTableName: '', meterCreditsTableId: '', meterCreditsTableName: '', meterDefaultsTableId: '', meterDefaultsTableName: '', meterSourcesTableId: '', meterSourcesTableName: '', metersTableId: '', metersTableName: '', planSubscriptionsTableId: '', planSubscriptionsTableName: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', publicSchemaName: '', recordUsageFunction: '', rollupUsageSummaryFunction: '', schemaId: '', sweepExpiredSubscriptionsFunction: '' }, select: { id: true } }).execute(); // Update const updated = await db.billingModule.update({ where: { id: '' }, data: { apiName: '' }, select: { id: true } }).execute(); @@ -329,16 +336,22 @@ CRUD operations for BillingProviderModule records. | `apiName` | String | Yes | | `billingCustomersTableId` | UUID | Yes | | `billingCustomersTableName` | String | Yes | +| `billingInvoicesTableId` | UUID | Yes | +| `billingInvoicesTableName` | String | Yes | | `billingPricesTableId` | UUID | Yes | | `billingPricesTableName` | String | Yes | | `billingProductsTableId` | UUID | Yes | | `billingProductsTableName` | String | Yes | +| `billingRefundsTableId` | UUID | Yes | +| `billingRefundsTableName` | String | Yes | | `billingSubscriptionsTableId` | UUID | Yes | | `billingSubscriptionsTableName` | String | Yes | | `billingWebhookEventsTableId` | UUID | Yes | | `billingWebhookEventsTableName` | String | Yes | | `databaseId` | UUID | Yes | | `id` | UUID | No | +| `listPendingUsageSyncFunction` | String | Yes | +| `markUsageSyncedFunction` | String | Yes | | `prefix` | String | Yes | | `pricesTableId` | UUID | Yes | | `privateApiName` | String | Yes | @@ -346,20 +359,22 @@ CRUD operations for BillingProviderModule records. | `processBillingEventFunction` | String | Yes | | `productsTableId` | UUID | Yes | | `provider` | String | Yes | +| `recordRefundFunction` | String | Yes | | `schemaId` | UUID | Yes | | `subscriptionsTableId` | UUID | Yes | +| `upsertInvoiceFunction` | String | Yes | **Operations:** ```typescript // List all billingProviderModule records -const items = await db.billingProviderModule.findMany({ select: { apiName: true, billingCustomersTableId: true, billingCustomersTableName: true, billingPricesTableId: true, billingPricesTableName: true, billingProductsTableId: true, billingProductsTableName: true, billingSubscriptionsTableId: true, billingSubscriptionsTableName: true, billingWebhookEventsTableId: true, billingWebhookEventsTableName: true, databaseId: true, id: true, prefix: true, pricesTableId: true, privateApiName: true, privateSchemaId: true, processBillingEventFunction: true, productsTableId: true, provider: true, schemaId: true, subscriptionsTableId: true } }).execute(); +const items = await db.billingProviderModule.findMany({ select: { apiName: true, billingCustomersTableId: true, billingCustomersTableName: true, billingInvoicesTableId: true, billingInvoicesTableName: true, billingPricesTableId: true, billingPricesTableName: true, billingProductsTableId: true, billingProductsTableName: true, billingRefundsTableId: true, billingRefundsTableName: true, billingSubscriptionsTableId: true, billingSubscriptionsTableName: true, billingWebhookEventsTableId: true, billingWebhookEventsTableName: true, databaseId: true, id: true, listPendingUsageSyncFunction: true, markUsageSyncedFunction: true, prefix: true, pricesTableId: true, privateApiName: true, privateSchemaId: true, processBillingEventFunction: true, productsTableId: true, provider: true, recordRefundFunction: true, schemaId: true, subscriptionsTableId: true, upsertInvoiceFunction: true } }).execute(); // Get one by id -const item = await db.billingProviderModule.findOne({ id: '', select: { apiName: true, billingCustomersTableId: true, billingCustomersTableName: true, billingPricesTableId: true, billingPricesTableName: true, billingProductsTableId: true, billingProductsTableName: true, billingSubscriptionsTableId: true, billingSubscriptionsTableName: true, billingWebhookEventsTableId: true, billingWebhookEventsTableName: true, databaseId: true, id: true, prefix: true, pricesTableId: true, privateApiName: true, privateSchemaId: true, processBillingEventFunction: true, productsTableId: true, provider: true, schemaId: true, subscriptionsTableId: true } }).execute(); +const item = await db.billingProviderModule.findOne({ id: '', select: { apiName: true, billingCustomersTableId: true, billingCustomersTableName: true, billingInvoicesTableId: true, billingInvoicesTableName: true, billingPricesTableId: true, billingPricesTableName: true, billingProductsTableId: true, billingProductsTableName: true, billingRefundsTableId: true, billingRefundsTableName: true, billingSubscriptionsTableId: true, billingSubscriptionsTableName: true, billingWebhookEventsTableId: true, billingWebhookEventsTableName: true, databaseId: true, id: true, listPendingUsageSyncFunction: true, markUsageSyncedFunction: true, prefix: true, pricesTableId: true, privateApiName: true, privateSchemaId: true, processBillingEventFunction: true, productsTableId: true, provider: true, recordRefundFunction: true, schemaId: true, subscriptionsTableId: true, upsertInvoiceFunction: true } }).execute(); // Create -const created = await db.billingProviderModule.create({ data: { apiName: '', billingCustomersTableId: '', billingCustomersTableName: '', billingPricesTableId: '', billingPricesTableName: '', billingProductsTableId: '', billingProductsTableName: '', billingSubscriptionsTableId: '', billingSubscriptionsTableName: '', billingWebhookEventsTableId: '', billingWebhookEventsTableName: '', databaseId: '', prefix: '', pricesTableId: '', privateApiName: '', privateSchemaId: '', processBillingEventFunction: '', productsTableId: '', provider: '', schemaId: '', subscriptionsTableId: '' }, select: { id: true } }).execute(); +const created = await db.billingProviderModule.create({ data: { apiName: '', billingCustomersTableId: '', billingCustomersTableName: '', billingInvoicesTableId: '', billingInvoicesTableName: '', billingPricesTableId: '', billingPricesTableName: '', billingProductsTableId: '', billingProductsTableName: '', billingRefundsTableId: '', billingRefundsTableName: '', billingSubscriptionsTableId: '', billingSubscriptionsTableName: '', billingWebhookEventsTableId: '', billingWebhookEventsTableName: '', databaseId: '', listPendingUsageSyncFunction: '', markUsageSyncedFunction: '', prefix: '', pricesTableId: '', privateApiName: '', privateSchemaId: '', processBillingEventFunction: '', productsTableId: '', provider: '', recordRefundFunction: '', schemaId: '', subscriptionsTableId: '', upsertInvoiceFunction: '' }, select: { id: true } }).execute(); // Update const updated = await db.billingProviderModule.update({ where: { id: '' }, data: { apiName: '' }, select: { id: true } }).execute(); @@ -495,6 +510,56 @@ const updated = await db.blueprintTemplate.update({ where: { id: '' }, dat const deleted = await db.blueprintTemplate.delete({ where: { id: '' } }).execute(); ``` +### `db.capabilitiesModule` + +CRUD operations for CapabilitiesModule records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `actorTableId` | UUID | Yes | +| `apiName` | String | Yes | +| `bitlen` | Int | Yes | +| `databaseId` | UUID | Yes | +| `defaultTableId` | UUID | Yes | +| `defaultTableName` | String | Yes | +| `entityField` | String | Yes | +| `entityTableId` | UUID | Yes | +| `getByMask` | String | Yes | +| `getMask` | String | Yes | +| `getMaskByName` | String | Yes | +| `getPaddedMask` | String | Yes | +| `id` | UUID | No | +| `prefix` | String | Yes | +| `privateApiName` | String | Yes | +| `privateSchemaId` | UUID | Yes | +| `privateSchemaName` | String | Yes | +| `publicSchemaName` | String | Yes | +| `schemaId` | UUID | Yes | +| `scope` | String | Yes | +| `tableId` | UUID | Yes | +| `tableName` | String | Yes | + +**Operations:** + +```typescript +// List all capabilitiesModule records +const items = await db.capabilitiesModule.findMany({ select: { actorTableId: true, apiName: true, bitlen: true, databaseId: true, defaultTableId: true, defaultTableName: true, entityField: true, entityTableId: true, getByMask: true, getMask: true, getMaskByName: true, getPaddedMask: true, id: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, publicSchemaName: true, schemaId: true, scope: true, tableId: true, tableName: true } }).execute(); + +// Get one by id +const item = await db.capabilitiesModule.findOne({ id: '', select: { actorTableId: true, apiName: true, bitlen: true, databaseId: true, defaultTableId: true, defaultTableName: true, entityField: true, entityTableId: true, getByMask: true, getMask: true, getMaskByName: true, getPaddedMask: true, id: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, publicSchemaName: true, schemaId: true, scope: true, tableId: true, tableName: true } }).execute(); + +// Create +const created = await db.capabilitiesModule.create({ data: { actorTableId: '', apiName: '', bitlen: '', databaseId: '', defaultTableId: '', defaultTableName: '', entityField: '', entityTableId: '', getByMask: '', getMask: '', getMaskByName: '', getPaddedMask: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', publicSchemaName: '', schemaId: '', scope: '', tableId: '', tableName: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.capabilitiesModule.update({ where: { id: '' }, data: { actorTableId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.capabilitiesModule.delete({ where: { id: '' } }).execute(); +``` + ### `db.catalogModule` CRUD operations for CatalogModule records. @@ -508,10 +573,12 @@ CRUD operations for CatalogModule records. | `apisTableName` | String | Yes | | `appsTableId` | UUID | Yes | | `appsTableName` | String | Yes | +| `bindingsTableId` | UUID | Yes | +| `bindingsTableName` | String | Yes | | `bucketsTableId` | UUID | Yes | | `bucketsTableName` | String | Yes | | `databaseId` | UUID | Yes | -| `defaultPermissions` | String | Yes | +| `defaultCapabilities` | String | Yes | | `domainsTableId` | UUID | Yes | | `domainsTableName` | String | Yes | | `entityTableId` | UUID | Yes | @@ -547,13 +614,13 @@ CRUD operations for CatalogModule records. ```typescript // List all catalogModule records -const items = await db.catalogModule.findMany({ select: { apiName: true, apisTableId: true, apisTableName: true, appsTableId: true, appsTableName: true, bucketsTableId: true, bucketsTableName: true, databaseId: true, defaultPermissions: true, domainsTableId: true, domainsTableName: true, entityTableId: true, functionsTableId: true, functionsTableName: true, id: true, namespacesTableId: true, namespacesTableName: true, policies: true, privateApiName: true, provisions: true, publicSchemaName: true, resourceDefinitionsTableId: true, resourceDefinitionsTableName: true, resourceInstallationsTableId: true, resourceInstallationsTableName: true, resourcesTableId: true, resourcesTableName: true, schemaId: true, scope: true, sitesAppLinksTableId: true, sitesAppLinksTableName: true, sitesDeepLinksTableId: true, sitesDeepLinksTableName: true, sitesErrorPagesTableId: true, sitesErrorPagesTableName: true, sitesTableId: true, sitesTableName: true, sitesWebConfigTableId: true, sitesWebConfigTableName: true } }).execute(); +const items = await db.catalogModule.findMany({ select: { apiName: true, apisTableId: true, apisTableName: true, appsTableId: true, appsTableName: true, bindingsTableId: true, bindingsTableName: true, bucketsTableId: true, bucketsTableName: true, databaseId: true, defaultCapabilities: true, domainsTableId: true, domainsTableName: true, entityTableId: true, functionsTableId: true, functionsTableName: true, id: true, namespacesTableId: true, namespacesTableName: true, policies: true, privateApiName: true, provisions: true, publicSchemaName: true, resourceDefinitionsTableId: true, resourceDefinitionsTableName: true, resourceInstallationsTableId: true, resourceInstallationsTableName: true, resourcesTableId: true, resourcesTableName: true, schemaId: true, scope: true, sitesAppLinksTableId: true, sitesAppLinksTableName: true, sitesDeepLinksTableId: true, sitesDeepLinksTableName: true, sitesErrorPagesTableId: true, sitesErrorPagesTableName: true, sitesTableId: true, sitesTableName: true, sitesWebConfigTableId: true, sitesWebConfigTableName: true } }).execute(); // Get one by id -const item = await db.catalogModule.findOne({ id: '', select: { apiName: true, apisTableId: true, apisTableName: true, appsTableId: true, appsTableName: true, bucketsTableId: true, bucketsTableName: true, databaseId: true, defaultPermissions: true, domainsTableId: true, domainsTableName: true, entityTableId: true, functionsTableId: true, functionsTableName: true, id: true, namespacesTableId: true, namespacesTableName: true, policies: true, privateApiName: true, provisions: true, publicSchemaName: true, resourceDefinitionsTableId: true, resourceDefinitionsTableName: true, resourceInstallationsTableId: true, resourceInstallationsTableName: true, resourcesTableId: true, resourcesTableName: true, schemaId: true, scope: true, sitesAppLinksTableId: true, sitesAppLinksTableName: true, sitesDeepLinksTableId: true, sitesDeepLinksTableName: true, sitesErrorPagesTableId: true, sitesErrorPagesTableName: true, sitesTableId: true, sitesTableName: true, sitesWebConfigTableId: true, sitesWebConfigTableName: true } }).execute(); +const item = await db.catalogModule.findOne({ id: '', select: { apiName: true, apisTableId: true, apisTableName: true, appsTableId: true, appsTableName: true, bindingsTableId: true, bindingsTableName: true, bucketsTableId: true, bucketsTableName: true, databaseId: true, defaultCapabilities: true, domainsTableId: true, domainsTableName: true, entityTableId: true, functionsTableId: true, functionsTableName: true, id: true, namespacesTableId: true, namespacesTableName: true, policies: true, privateApiName: true, provisions: true, publicSchemaName: true, resourceDefinitionsTableId: true, resourceDefinitionsTableName: true, resourceInstallationsTableId: true, resourceInstallationsTableName: true, resourcesTableId: true, resourcesTableName: true, schemaId: true, scope: true, sitesAppLinksTableId: true, sitesAppLinksTableName: true, sitesDeepLinksTableId: true, sitesDeepLinksTableName: true, sitesErrorPagesTableId: true, sitesErrorPagesTableName: true, sitesTableId: true, sitesTableName: true, sitesWebConfigTableId: true, sitesWebConfigTableName: true } }).execute(); // Create -const created = await db.catalogModule.create({ data: { apiName: '', apisTableId: '', apisTableName: '', appsTableId: '', appsTableName: '', bucketsTableId: '', bucketsTableName: '', databaseId: '', defaultPermissions: '', domainsTableId: '', domainsTableName: '', entityTableId: '', functionsTableId: '', functionsTableName: '', namespacesTableId: '', namespacesTableName: '', policies: '', privateApiName: '', provisions: '', publicSchemaName: '', resourceDefinitionsTableId: '', resourceDefinitionsTableName: '', resourceInstallationsTableId: '', resourceInstallationsTableName: '', resourcesTableId: '', resourcesTableName: '', schemaId: '', scope: '', sitesAppLinksTableId: '', sitesAppLinksTableName: '', sitesDeepLinksTableId: '', sitesDeepLinksTableName: '', sitesErrorPagesTableId: '', sitesErrorPagesTableName: '', sitesTableId: '', sitesTableName: '', sitesWebConfigTableId: '', sitesWebConfigTableName: '' }, select: { id: true } }).execute(); +const created = await db.catalogModule.create({ data: { apiName: '', apisTableId: '', apisTableName: '', appsTableId: '', appsTableName: '', bindingsTableId: '', bindingsTableName: '', bucketsTableId: '', bucketsTableName: '', databaseId: '', defaultCapabilities: '', domainsTableId: '', domainsTableName: '', entityTableId: '', functionsTableId: '', functionsTableName: '', namespacesTableId: '', namespacesTableName: '', policies: '', privateApiName: '', provisions: '', publicSchemaName: '', resourceDefinitionsTableId: '', resourceDefinitionsTableName: '', resourceInstallationsTableId: '', resourceInstallationsTableName: '', resourcesTableId: '', resourcesTableName: '', schemaId: '', scope: '', sitesAppLinksTableId: '', sitesAppLinksTableName: '', sitesDeepLinksTableId: '', sitesDeepLinksTableName: '', sitesErrorPagesTableId: '', sitesErrorPagesTableName: '', sitesTableId: '', sitesTableName: '', sitesWebConfigTableId: '', sitesWebConfigTableName: '' }, select: { id: true } }).execute(); // Update const updated = await db.catalogModule.update({ where: { id: '' }, data: { apiName: '' }, select: { id: true } }).execute(); @@ -683,6 +750,51 @@ const updated = await db.connectedAccountsModule.update({ where: { id: '' const deleted = await db.connectedAccountsModule.delete({ where: { id: '' } }).execute(); ``` +### `db.contentPresetModule` + +CRUD operations for ContentPresetModule records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `apiName` | String | Yes | +| `contentPresetsTableId` | UUID | Yes | +| `createdAt` | Datetime | No | +| `databaseId` | UUID | Yes | +| `entityTableId` | UUID | Yes | +| `id` | UUID | No | +| `merkleStoreModuleId` | UUID | Yes | +| `policies` | JSON | Yes | +| `prefix` | String | Yes | +| `privateApiName` | String | Yes | +| `privateSchemaId` | UUID | Yes | +| `privateSchemaName` | String | Yes | +| `provisions` | JSON | Yes | +| `publicSchemaId` | UUID | Yes | +| `publicSchemaName` | String | Yes | +| `scope` | String | Yes | +| `storeName` | String | Yes | + +**Operations:** + +```typescript +// List all contentPresetModule records +const items = await db.contentPresetModule.findMany({ select: { apiName: true, contentPresetsTableId: true, createdAt: true, databaseId: true, entityTableId: true, id: true, merkleStoreModuleId: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provisions: true, publicSchemaId: true, publicSchemaName: true, scope: true, storeName: true } }).execute(); + +// Get one by id +const item = await db.contentPresetModule.findOne({ id: '', select: { apiName: true, contentPresetsTableId: true, createdAt: true, databaseId: true, entityTableId: true, id: true, merkleStoreModuleId: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provisions: true, publicSchemaId: true, publicSchemaName: true, scope: true, storeName: true } }).execute(); + +// Create +const created = await db.contentPresetModule.create({ data: { apiName: '', contentPresetsTableId: '', databaseId: '', entityTableId: '', merkleStoreModuleId: '', policies: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', provisions: '', publicSchemaId: '', publicSchemaName: '', scope: '', storeName: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.contentPresetModule.update({ where: { id: '' }, data: { apiName: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.contentPresetModule.delete({ where: { id: '' } }).execute(); +``` + ### `db.cryptoAddressesModule` CRUD operations for CryptoAddressesModule records. @@ -763,6 +875,45 @@ const updated = await db.cryptoAuthModule.update({ where: { id: '' }, data const deleted = await db.cryptoAuthModule.delete({ where: { id: '' } }).execute(); ``` +### `db.dataCapabilitiesField` + +CRUD operations for DataCapabilitiesField records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `capabilitiesModuleId` | UUID | Yes | +| `databaseId` | UUID | Yes | +| `fieldId` | UUID | Yes | +| `fromFieldId` | UUID | Yes | +| `id` | UUID | No | +| `mappingFieldId` | UUID | Yes | +| `mappingKeyFieldId` | UUID | Yes | +| `mappingTableId` | UUID | Yes | +| `mode` | String | Yes | +| `subsetGuard` | Boolean | Yes | +| `tableId` | UUID | Yes | + +**Operations:** + +```typescript +// List all dataCapabilitiesField records +const items = await db.dataCapabilitiesField.findMany({ select: { capabilitiesModuleId: true, databaseId: true, fieldId: true, fromFieldId: true, id: true, mappingFieldId: true, mappingKeyFieldId: true, mappingTableId: true, mode: true, subsetGuard: true, tableId: true } }).execute(); + +// Get one by id +const item = await db.dataCapabilitiesField.findOne({ id: '', select: { capabilitiesModuleId: true, databaseId: true, fieldId: true, fromFieldId: true, id: true, mappingFieldId: true, mappingKeyFieldId: true, mappingTableId: true, mode: true, subsetGuard: true, tableId: true } }).execute(); + +// Create +const created = await db.dataCapabilitiesField.create({ data: { capabilitiesModuleId: '', databaseId: '', fieldId: '', fromFieldId: '', mappingFieldId: '', mappingKeyFieldId: '', mappingTableId: '', mode: '', subsetGuard: '', tableId: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.dataCapabilitiesField.update({ where: { id: '' }, data: { capabilitiesModuleId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.dataCapabilitiesField.delete({ where: { id: '' } }).execute(); +``` + ### `db.databaseProvisionModule` CRUD operations for DatabaseProvisionModule records. @@ -822,7 +973,7 @@ CRUD operations for DatabaseSettingsModule records. | `databaseId` | UUID | Yes | | `databaseSettingsTableId` | UUID | Yes | | `databaseSettingsTableName` | String | Yes | -| `defaultPermissions` | String | Yes | +| `defaultCapabilities` | String | Yes | | `entityField` | String | Yes | | `entityTableId` | UUID | Yes | | `id` | UUID | No | @@ -844,13 +995,13 @@ CRUD operations for DatabaseSettingsModule records. ```typescript // List all databaseSettingsModule records -const items = await db.databaseSettingsModule.findMany({ select: { apiName: true, databaseId: true, databaseSettingsTableId: true, databaseSettingsTableName: true, defaultPermissions: true, entityField: true, entityTableId: true, id: true, policies: true, prefix: true, privateApiName: true, provisions: true, pubkeySettingsTableId: true, pubkeySettingsTableName: true, publicSchemaName: true, rlsSettingsTableId: true, rlsSettingsTableName: true, schemaId: true, scope: true, webauthnSettingsTableId: true, webauthnSettingsTableName: true } }).execute(); +const items = await db.databaseSettingsModule.findMany({ select: { apiName: true, databaseId: true, databaseSettingsTableId: true, databaseSettingsTableName: true, defaultCapabilities: true, entityField: true, entityTableId: true, id: true, policies: true, prefix: true, privateApiName: true, provisions: true, pubkeySettingsTableId: true, pubkeySettingsTableName: true, publicSchemaName: true, rlsSettingsTableId: true, rlsSettingsTableName: true, schemaId: true, scope: true, webauthnSettingsTableId: true, webauthnSettingsTableName: true } }).execute(); // Get one by id -const item = await db.databaseSettingsModule.findOne({ id: '', select: { apiName: true, databaseId: true, databaseSettingsTableId: true, databaseSettingsTableName: true, defaultPermissions: true, entityField: true, entityTableId: true, id: true, policies: true, prefix: true, privateApiName: true, provisions: true, pubkeySettingsTableId: true, pubkeySettingsTableName: true, publicSchemaName: true, rlsSettingsTableId: true, rlsSettingsTableName: true, schemaId: true, scope: true, webauthnSettingsTableId: true, webauthnSettingsTableName: true } }).execute(); +const item = await db.databaseSettingsModule.findOne({ id: '', select: { apiName: true, databaseId: true, databaseSettingsTableId: true, databaseSettingsTableName: true, defaultCapabilities: true, entityField: true, entityTableId: true, id: true, policies: true, prefix: true, privateApiName: true, provisions: true, pubkeySettingsTableId: true, pubkeySettingsTableName: true, publicSchemaName: true, rlsSettingsTableId: true, rlsSettingsTableName: true, schemaId: true, scope: true, webauthnSettingsTableId: true, webauthnSettingsTableName: true } }).execute(); // Create -const created = await db.databaseSettingsModule.create({ data: { apiName: '', databaseId: '', databaseSettingsTableId: '', databaseSettingsTableName: '', defaultPermissions: '', entityField: '', entityTableId: '', policies: '', prefix: '', privateApiName: '', provisions: '', pubkeySettingsTableId: '', pubkeySettingsTableName: '', publicSchemaName: '', rlsSettingsTableId: '', rlsSettingsTableName: '', schemaId: '', scope: '', webauthnSettingsTableId: '', webauthnSettingsTableName: '' }, select: { id: true } }).execute(); +const created = await db.databaseSettingsModule.create({ data: { apiName: '', databaseId: '', databaseSettingsTableId: '', databaseSettingsTableName: '', defaultCapabilities: '', entityField: '', entityTableId: '', policies: '', prefix: '', privateApiName: '', provisions: '', pubkeySettingsTableId: '', pubkeySettingsTableName: '', publicSchemaName: '', rlsSettingsTableId: '', rlsSettingsTableName: '', schemaId: '', scope: '', webauthnSettingsTableId: '', webauthnSettingsTableName: '' }, select: { id: true } }).execute(); // Update const updated = await db.databaseSettingsModule.update({ where: { id: '' }, data: { apiName: '' }, select: { id: true } }).execute(); @@ -995,7 +1146,7 @@ CRUD operations for DbUsageModule records. | `collectDbQueryStatsFunction` | String | Yes | | `collectDbTableStatsFunction` | String | Yes | | `databaseId` | UUID | Yes | -| `defaultPermissions` | String | Yes | +| `defaultCapabilities` | String | Yes | | `entityField` | String | Yes | | `id` | UUID | No | | `interval` | String | Yes | @@ -1023,13 +1174,13 @@ CRUD operations for DbUsageModule records. ```typescript // List all dbUsageModule records -const items = await db.dbUsageModule.findMany({ select: { apiName: true, collectDbQueryStatsFunction: true, collectDbTableStatsFunction: true, databaseId: true, defaultPermissions: true, entityField: true, id: true, interval: true, prefix: true, premake: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, publicSchemaName: true, queryStatsLogTableId: true, queryStatsLogTableName: true, queryStatsSummaryTableId: true, queryStatsSummaryTableName: true, retention: true, rollupDbQueryStatsUsageSummaryFunction: true, rollupDbTableStatsUsageSummaryFunction: true, schemaId: true, scope: true, tableStatsLogTableId: true, tableStatsLogTableName: true, tableStatsSummaryTableId: true, tableStatsSummaryTableName: true } }).execute(); +const items = await db.dbUsageModule.findMany({ select: { apiName: true, collectDbQueryStatsFunction: true, collectDbTableStatsFunction: true, databaseId: true, defaultCapabilities: true, entityField: true, id: true, interval: true, prefix: true, premake: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, publicSchemaName: true, queryStatsLogTableId: true, queryStatsLogTableName: true, queryStatsSummaryTableId: true, queryStatsSummaryTableName: true, retention: true, rollupDbQueryStatsUsageSummaryFunction: true, rollupDbTableStatsUsageSummaryFunction: true, schemaId: true, scope: true, tableStatsLogTableId: true, tableStatsLogTableName: true, tableStatsSummaryTableId: true, tableStatsSummaryTableName: true } }).execute(); // Get one by id -const item = await db.dbUsageModule.findOne({ id: '', select: { apiName: true, collectDbQueryStatsFunction: true, collectDbTableStatsFunction: true, databaseId: true, defaultPermissions: true, entityField: true, id: true, interval: true, prefix: true, premake: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, publicSchemaName: true, queryStatsLogTableId: true, queryStatsLogTableName: true, queryStatsSummaryTableId: true, queryStatsSummaryTableName: true, retention: true, rollupDbQueryStatsUsageSummaryFunction: true, rollupDbTableStatsUsageSummaryFunction: true, schemaId: true, scope: true, tableStatsLogTableId: true, tableStatsLogTableName: true, tableStatsSummaryTableId: true, tableStatsSummaryTableName: true } }).execute(); +const item = await db.dbUsageModule.findOne({ id: '', select: { apiName: true, collectDbQueryStatsFunction: true, collectDbTableStatsFunction: true, databaseId: true, defaultCapabilities: true, entityField: true, id: true, interval: true, prefix: true, premake: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, publicSchemaName: true, queryStatsLogTableId: true, queryStatsLogTableName: true, queryStatsSummaryTableId: true, queryStatsSummaryTableName: true, retention: true, rollupDbQueryStatsUsageSummaryFunction: true, rollupDbTableStatsUsageSummaryFunction: true, schemaId: true, scope: true, tableStatsLogTableId: true, tableStatsLogTableName: true, tableStatsSummaryTableId: true, tableStatsSummaryTableName: true } }).execute(); // Create -const created = await db.dbUsageModule.create({ data: { apiName: '', collectDbQueryStatsFunction: '', collectDbTableStatsFunction: '', databaseId: '', defaultPermissions: '', entityField: '', interval: '', prefix: '', premake: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', publicSchemaName: '', queryStatsLogTableId: '', queryStatsLogTableName: '', queryStatsSummaryTableId: '', queryStatsSummaryTableName: '', retention: '', rollupDbQueryStatsUsageSummaryFunction: '', rollupDbTableStatsUsageSummaryFunction: '', schemaId: '', scope: '', tableStatsLogTableId: '', tableStatsLogTableName: '', tableStatsSummaryTableId: '', tableStatsSummaryTableName: '' }, select: { id: true } }).execute(); +const created = await db.dbUsageModule.create({ data: { apiName: '', collectDbQueryStatsFunction: '', collectDbTableStatsFunction: '', databaseId: '', defaultCapabilities: '', entityField: '', interval: '', prefix: '', premake: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', publicSchemaName: '', queryStatsLogTableId: '', queryStatsLogTableName: '', queryStatsSummaryTableId: '', queryStatsSummaryTableName: '', retention: '', rollupDbQueryStatsUsageSummaryFunction: '', rollupDbTableStatsUsageSummaryFunction: '', schemaId: '', scope: '', tableStatsLogTableId: '', tableStatsLogTableName: '', tableStatsSummaryTableId: '', tableStatsSummaryTableName: '' }, select: { id: true } }).execute(); // Update const updated = await db.dbUsageModule.update({ where: { id: '' }, data: { apiName: '' }, select: { id: true } }).execute(); @@ -1154,7 +1305,7 @@ CRUD operations for DomainModule records. | `apiName` | String | Yes | | `catalogModuleId` | UUID | Yes | | `databaseId` | UUID | Yes | -| `defaultPermissions` | String | Yes | +| `defaultCapabilities` | String | Yes | | `domainEventsTableId` | UUID | Yes | | `domainEventsTableName` | String | Yes | | `domainVerificationsTableId` | UUID | Yes | @@ -1180,13 +1331,13 @@ CRUD operations for DomainModule records. ```typescript // List all domainModule records -const items = await db.domainModule.findMany({ select: { apiName: true, catalogModuleId: true, databaseId: true, defaultPermissions: true, domainEventsTableId: true, domainEventsTableName: true, domainVerificationsTableId: true, domainVerificationsTableName: true, domainsTableId: true, domainsTableName: true, entityField: true, entityTableId: true, id: true, managedDomainsTableId: true, managedDomainsTableName: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provisions: true, publicSchemaName: true, schemaId: true, scope: true } }).execute(); +const items = await db.domainModule.findMany({ select: { apiName: true, catalogModuleId: true, databaseId: true, defaultCapabilities: true, domainEventsTableId: true, domainEventsTableName: true, domainVerificationsTableId: true, domainVerificationsTableName: true, domainsTableId: true, domainsTableName: true, entityField: true, entityTableId: true, id: true, managedDomainsTableId: true, managedDomainsTableName: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provisions: true, publicSchemaName: true, schemaId: true, scope: true } }).execute(); // Get one by id -const item = await db.domainModule.findOne({ id: '', select: { apiName: true, catalogModuleId: true, databaseId: true, defaultPermissions: true, domainEventsTableId: true, domainEventsTableName: true, domainVerificationsTableId: true, domainVerificationsTableName: true, domainsTableId: true, domainsTableName: true, entityField: true, entityTableId: true, id: true, managedDomainsTableId: true, managedDomainsTableName: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provisions: true, publicSchemaName: true, schemaId: true, scope: true } }).execute(); +const item = await db.domainModule.findOne({ id: '', select: { apiName: true, catalogModuleId: true, databaseId: true, defaultCapabilities: true, domainEventsTableId: true, domainEventsTableName: true, domainVerificationsTableId: true, domainVerificationsTableName: true, domainsTableId: true, domainsTableName: true, entityField: true, entityTableId: true, id: true, managedDomainsTableId: true, managedDomainsTableName: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provisions: true, publicSchemaName: true, schemaId: true, scope: true } }).execute(); // Create -const created = await db.domainModule.create({ data: { apiName: '', catalogModuleId: '', databaseId: '', defaultPermissions: '', domainEventsTableId: '', domainEventsTableName: '', domainVerificationsTableId: '', domainVerificationsTableName: '', domainsTableId: '', domainsTableName: '', entityField: '', entityTableId: '', managedDomainsTableId: '', managedDomainsTableName: '', policies: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', provisions: '', publicSchemaName: '', schemaId: '', scope: '' }, select: { id: true } }).execute(); +const created = await db.domainModule.create({ data: { apiName: '', catalogModuleId: '', databaseId: '', defaultCapabilities: '', domainEventsTableId: '', domainEventsTableName: '', domainVerificationsTableId: '', domainVerificationsTableName: '', domainsTableId: '', domainsTableName: '', entityField: '', entityTableId: '', managedDomainsTableId: '', managedDomainsTableName: '', policies: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', provisions: '', publicSchemaName: '', schemaId: '', scope: '' }, select: { id: true } }).execute(); // Update const updated = await db.domainModule.update({ where: { id: '' }, data: { apiName: '' }, select: { id: true } }).execute(); @@ -1195,6 +1346,54 @@ const updated = await db.domainModule.update({ where: { id: '' }, data: { const deleted = await db.domainModule.delete({ where: { id: '' } }).execute(); ``` +### `db.emailSenderModule` + +CRUD operations for EmailSenderModule records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `apiName` | String | Yes | +| `databaseId` | UUID | Yes | +| `defaultCapabilities` | String | Yes | +| `emailIdentitiesTableId` | UUID | Yes | +| `emailIdentitiesTableName` | String | Yes | +| `emailProviderAccountsTableId` | UUID | Yes | +| `emailProviderAccountsTableName` | String | Yes | +| `emailSiteIdentitiesTableId` | UUID | Yes | +| `emailSiteIdentitiesTableName` | String | Yes | +| `entityField` | String | Yes | +| `entityTableId` | UUID | Yes | +| `id` | UUID | No | +| `policies` | JSON | Yes | +| `prefix` | String | Yes | +| `privateApiName` | String | Yes | +| `provisions` | JSON | Yes | +| `publicSchemaName` | String | Yes | +| `schemaId` | UUID | Yes | +| `scope` | String | Yes | +| `siteSurfaceModuleId` | UUID | Yes | + +**Operations:** + +```typescript +// List all emailSenderModule records +const items = await db.emailSenderModule.findMany({ select: { apiName: true, databaseId: true, defaultCapabilities: true, emailIdentitiesTableId: true, emailIdentitiesTableName: true, emailProviderAccountsTableId: true, emailProviderAccountsTableName: true, emailSiteIdentitiesTableId: true, emailSiteIdentitiesTableName: true, entityField: true, entityTableId: true, id: true, policies: true, prefix: true, privateApiName: true, provisions: true, publicSchemaName: true, schemaId: true, scope: true, siteSurfaceModuleId: true } }).execute(); + +// Get one by id +const item = await db.emailSenderModule.findOne({ id: '', select: { apiName: true, databaseId: true, defaultCapabilities: true, emailIdentitiesTableId: true, emailIdentitiesTableName: true, emailProviderAccountsTableId: true, emailProviderAccountsTableName: true, emailSiteIdentitiesTableId: true, emailSiteIdentitiesTableName: true, entityField: true, entityTableId: true, id: true, policies: true, prefix: true, privateApiName: true, provisions: true, publicSchemaName: true, schemaId: true, scope: true, siteSurfaceModuleId: true } }).execute(); + +// Create +const created = await db.emailSenderModule.create({ data: { apiName: '', databaseId: '', defaultCapabilities: '', emailIdentitiesTableId: '', emailIdentitiesTableName: '', emailProviderAccountsTableId: '', emailProviderAccountsTableName: '', emailSiteIdentitiesTableId: '', emailSiteIdentitiesTableName: '', entityField: '', entityTableId: '', policies: '', prefix: '', privateApiName: '', provisions: '', publicSchemaName: '', schemaId: '', scope: '', siteSurfaceModuleId: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.emailSenderModule.update({ where: { id: '' }, data: { apiName: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.emailSenderModule.delete({ where: { id: '' } }).execute(); +``` + ### `db.emailsModule` CRUD operations for EmailsModule records. @@ -1312,7 +1511,7 @@ CRUD operations for EventsModule records. | `actorTableId` | UUID | Yes | | `apiName` | String | Yes | | `databaseId` | UUID | Yes | -| `defaultPermissions` | String | Yes | +| `defaultCapabilities` | String | Yes | | `entityField` | String | Yes | | `entityTableId` | UUID | Yes | | `eventAggregatesTableId` | UUID | Yes | @@ -1321,6 +1520,7 @@ CRUD operations for EventsModule records. | `eventTypesTableName` | String | Yes | | `eventsTableId` | UUID | Yes | | `eventsTableName` | String | Yes | +| `expireGrants` | String | Yes | | `grantAchievement` | String | Yes | | `id` | UUID | No | | `interval` | String | Yes | @@ -1337,9 +1537,11 @@ CRUD operations for EventsModule records. | `privateSchemaId` | UUID | Yes | | `privateSchemaName` | String | Yes | | `publicSchemaName` | String | Yes | +| `recomputeCapabilities` | String | Yes | | `recordEvent` | String | Yes | | `removeEvent` | String | Yes | | `retention` | String | Yes | +| `revokeAchievement` | String | Yes | | `schemaId` | UUID | Yes | | `scope` | String | Yes | | `stepsRequired` | String | Yes | @@ -1349,20 +1551,22 @@ CRUD operations for EventsModule records. | `tgEventBool` | String | Yes | | `tgEventToggle` | String | Yes | | `tgEventToggleBool` | String | Yes | +| `tgLevelGrantSync` | String | Yes | | `tgUpdateAggregates` | String | Yes | +| `trustLadder` | JSON | Yes | | `upsertAggregate` | String | Yes | **Operations:** ```typescript // List all eventsModule records -const items = await db.eventsModule.findMany({ select: { achievementRewardsTableId: true, achievementRewardsTableName: true, actorTableId: true, apiName: true, databaseId: true, defaultPermissions: true, entityField: true, entityTableId: true, eventAggregatesTableId: true, eventAggregatesTableName: true, eventTypesTableId: true, eventTypesTableName: true, eventsTableId: true, eventsTableName: true, grantAchievement: true, id: true, interval: true, levelAchieved: true, levelGrantsTableId: true, levelGrantsTableName: true, levelRequirementsTableId: true, levelRequirementsTableName: true, levelsTableId: true, levelsTableName: true, prefix: true, premake: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, publicSchemaName: true, recordEvent: true, removeEvent: true, retention: true, schemaId: true, scope: true, stepsRequired: true, tgAchievementReward: true, tgCheckAchievements: true, tgEvent: true, tgEventBool: true, tgEventToggle: true, tgEventToggleBool: true, tgUpdateAggregates: true, upsertAggregate: true } }).execute(); +const items = await db.eventsModule.findMany({ select: { achievementRewardsTableId: true, achievementRewardsTableName: true, actorTableId: true, apiName: true, databaseId: true, defaultCapabilities: true, entityField: true, entityTableId: true, eventAggregatesTableId: true, eventAggregatesTableName: true, eventTypesTableId: true, eventTypesTableName: true, eventsTableId: true, eventsTableName: true, expireGrants: true, grantAchievement: true, id: true, interval: true, levelAchieved: true, levelGrantsTableId: true, levelGrantsTableName: true, levelRequirementsTableId: true, levelRequirementsTableName: true, levelsTableId: true, levelsTableName: true, prefix: true, premake: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, publicSchemaName: true, recomputeCapabilities: true, recordEvent: true, removeEvent: true, retention: true, revokeAchievement: true, schemaId: true, scope: true, stepsRequired: true, tgAchievementReward: true, tgCheckAchievements: true, tgEvent: true, tgEventBool: true, tgEventToggle: true, tgEventToggleBool: true, tgLevelGrantSync: true, tgUpdateAggregates: true, trustLadder: true, upsertAggregate: true } }).execute(); // Get one by id -const item = await db.eventsModule.findOne({ id: '', select: { achievementRewardsTableId: true, achievementRewardsTableName: true, actorTableId: true, apiName: true, databaseId: true, defaultPermissions: true, entityField: true, entityTableId: true, eventAggregatesTableId: true, eventAggregatesTableName: true, eventTypesTableId: true, eventTypesTableName: true, eventsTableId: true, eventsTableName: true, grantAchievement: true, id: true, interval: true, levelAchieved: true, levelGrantsTableId: true, levelGrantsTableName: true, levelRequirementsTableId: true, levelRequirementsTableName: true, levelsTableId: true, levelsTableName: true, prefix: true, premake: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, publicSchemaName: true, recordEvent: true, removeEvent: true, retention: true, schemaId: true, scope: true, stepsRequired: true, tgAchievementReward: true, tgCheckAchievements: true, tgEvent: true, tgEventBool: true, tgEventToggle: true, tgEventToggleBool: true, tgUpdateAggregates: true, upsertAggregate: true } }).execute(); +const item = await db.eventsModule.findOne({ id: '', select: { achievementRewardsTableId: true, achievementRewardsTableName: true, actorTableId: true, apiName: true, databaseId: true, defaultCapabilities: true, entityField: true, entityTableId: true, eventAggregatesTableId: true, eventAggregatesTableName: true, eventTypesTableId: true, eventTypesTableName: true, eventsTableId: true, eventsTableName: true, expireGrants: true, grantAchievement: true, id: true, interval: true, levelAchieved: true, levelGrantsTableId: true, levelGrantsTableName: true, levelRequirementsTableId: true, levelRequirementsTableName: true, levelsTableId: true, levelsTableName: true, prefix: true, premake: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, publicSchemaName: true, recomputeCapabilities: true, recordEvent: true, removeEvent: true, retention: true, revokeAchievement: true, schemaId: true, scope: true, stepsRequired: true, tgAchievementReward: true, tgCheckAchievements: true, tgEvent: true, tgEventBool: true, tgEventToggle: true, tgEventToggleBool: true, tgLevelGrantSync: true, tgUpdateAggregates: true, trustLadder: true, upsertAggregate: true } }).execute(); // Create -const created = await db.eventsModule.create({ data: { achievementRewardsTableId: '', achievementRewardsTableName: '', actorTableId: '', apiName: '', databaseId: '', defaultPermissions: '', entityField: '', entityTableId: '', eventAggregatesTableId: '', eventAggregatesTableName: '', eventTypesTableId: '', eventTypesTableName: '', eventsTableId: '', eventsTableName: '', grantAchievement: '', interval: '', levelAchieved: '', levelGrantsTableId: '', levelGrantsTableName: '', levelRequirementsTableId: '', levelRequirementsTableName: '', levelsTableId: '', levelsTableName: '', prefix: '', premake: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', publicSchemaName: '', recordEvent: '', removeEvent: '', retention: '', schemaId: '', scope: '', stepsRequired: '', tgAchievementReward: '', tgCheckAchievements: '', tgEvent: '', tgEventBool: '', tgEventToggle: '', tgEventToggleBool: '', tgUpdateAggregates: '', upsertAggregate: '' }, select: { id: true } }).execute(); +const created = await db.eventsModule.create({ data: { achievementRewardsTableId: '', achievementRewardsTableName: '', actorTableId: '', apiName: '', databaseId: '', defaultCapabilities: '', entityField: '', entityTableId: '', eventAggregatesTableId: '', eventAggregatesTableName: '', eventTypesTableId: '', eventTypesTableName: '', eventsTableId: '', eventsTableName: '', expireGrants: '', grantAchievement: '', interval: '', levelAchieved: '', levelGrantsTableId: '', levelGrantsTableName: '', levelRequirementsTableId: '', levelRequirementsTableName: '', levelsTableId: '', levelsTableName: '', prefix: '', premake: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', publicSchemaName: '', recomputeCapabilities: '', recordEvent: '', removeEvent: '', retention: '', revokeAchievement: '', schemaId: '', scope: '', stepsRequired: '', tgAchievementReward: '', tgCheckAchievements: '', tgEvent: '', tgEventBool: '', tgEventToggle: '', tgEventToggleBool: '', tgLevelGrantSync: '', tgUpdateAggregates: '', trustLadder: '', upsertAggregate: '' }, select: { id: true } }).execute(); // Update const updated = await db.eventsModule.update({ where: { id: '' }, data: { achievementRewardsTableId: '' }, select: { id: true } }).execute(); @@ -1371,6 +1575,43 @@ const updated = await db.eventsModule.update({ where: { id: '' }, data: { const deleted = await db.eventsModule.delete({ where: { id: '' } }).execute(); ``` +### `db.fileRefField` + +CRUD operations for FileRefField records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `bucketKey` | String | Yes | +| `bucketTags` | String | Yes | +| `databaseId` | UUID | Yes | +| `enforceFk` | Boolean | Yes | +| `fieldId` | UUID | Yes | +| `id` | UUID | No | +| `isPublic` | Boolean | Yes | +| `storageModuleId` | UUID | Yes | +| `tableId` | UUID | Yes | + +**Operations:** + +```typescript +// List all fileRefField records +const items = await db.fileRefField.findMany({ select: { bucketKey: true, bucketTags: true, databaseId: true, enforceFk: true, fieldId: true, id: true, isPublic: true, storageModuleId: true, tableId: true } }).execute(); + +// Get one by id +const item = await db.fileRefField.findOne({ id: '', select: { bucketKey: true, bucketTags: true, databaseId: true, enforceFk: true, fieldId: true, id: true, isPublic: true, storageModuleId: true, tableId: true } }).execute(); + +// Create +const created = await db.fileRefField.create({ data: { bucketKey: '', bucketTags: '', databaseId: '', enforceFk: '', fieldId: '', isPublic: '', storageModuleId: '', tableId: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.fileRefField.update({ where: { id: '' }, data: { bucketKey: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.fileRefField.delete({ where: { id: '' } }).execute(); +``` + ### `db.functionDeploymentModule` CRUD operations for FunctionDeploymentModule records. @@ -1381,7 +1622,7 @@ CRUD operations for FunctionDeploymentModule records. |-------|------|----------| | `apiName` | String | Yes | | `databaseId` | UUID | Yes | -| `defaultPermissions` | String | Yes | +| `defaultCapabilities` | String | Yes | | `deploymentEventsTableId` | UUID | Yes | | `deploymentEventsTableName` | String | Yes | | `deploymentsTableId` | UUID | Yes | @@ -1405,13 +1646,13 @@ CRUD operations for FunctionDeploymentModule records. ```typescript // List all functionDeploymentModule records -const items = await db.functionDeploymentModule.findMany({ select: { apiName: true, databaseId: true, defaultPermissions: true, deploymentEventsTableId: true, deploymentEventsTableName: true, deploymentsTableId: true, deploymentsTableName: true, entityField: true, entityTableId: true, functionModuleId: true, id: true, namespaceModuleId: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provisions: true, publicSchemaName: true, schemaId: true, scope: true } }).execute(); +const items = await db.functionDeploymentModule.findMany({ select: { apiName: true, databaseId: true, defaultCapabilities: true, deploymentEventsTableId: true, deploymentEventsTableName: true, deploymentsTableId: true, deploymentsTableName: true, entityField: true, entityTableId: true, functionModuleId: true, id: true, namespaceModuleId: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provisions: true, publicSchemaName: true, schemaId: true, scope: true } }).execute(); // Get one by id -const item = await db.functionDeploymentModule.findOne({ id: '', select: { apiName: true, databaseId: true, defaultPermissions: true, deploymentEventsTableId: true, deploymentEventsTableName: true, deploymentsTableId: true, deploymentsTableName: true, entityField: true, entityTableId: true, functionModuleId: true, id: true, namespaceModuleId: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provisions: true, publicSchemaName: true, schemaId: true, scope: true } }).execute(); +const item = await db.functionDeploymentModule.findOne({ id: '', select: { apiName: true, databaseId: true, defaultCapabilities: true, deploymentEventsTableId: true, deploymentEventsTableName: true, deploymentsTableId: true, deploymentsTableName: true, entityField: true, entityTableId: true, functionModuleId: true, id: true, namespaceModuleId: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provisions: true, publicSchemaName: true, schemaId: true, scope: true } }).execute(); // Create -const created = await db.functionDeploymentModule.create({ data: { apiName: '', databaseId: '', defaultPermissions: '', deploymentEventsTableId: '', deploymentEventsTableName: '', deploymentsTableId: '', deploymentsTableName: '', entityField: '', entityTableId: '', functionModuleId: '', namespaceModuleId: '', policies: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', provisions: '', publicSchemaName: '', schemaId: '', scope: '' }, select: { id: true } }).execute(); +const created = await db.functionDeploymentModule.create({ data: { apiName: '', databaseId: '', defaultCapabilities: '', deploymentEventsTableId: '', deploymentEventsTableName: '', deploymentsTableId: '', deploymentsTableName: '', entityField: '', entityTableId: '', functionModuleId: '', namespaceModuleId: '', policies: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', provisions: '', publicSchemaName: '', schemaId: '', scope: '' }, select: { id: true } }).execute(); // Update const updated = await db.functionDeploymentModule.update({ where: { id: '' }, data: { apiName: '' }, select: { id: true } }).execute(); @@ -1432,7 +1673,7 @@ CRUD operations for FunctionInvocationModule records. | `attemptsTableId` | UUID | Yes | | `attemptsTableName` | String | Yes | | `databaseId` | UUID | Yes | -| `defaultPermissions` | String | Yes | +| `defaultCapabilities` | String | Yes | | `entityField` | String | Yes | | `entityTableId` | UUID | Yes | | `executionLogsTableId` | UUID | Yes | @@ -1454,13 +1695,13 @@ CRUD operations for FunctionInvocationModule records. ```typescript // List all functionInvocationModule records -const items = await db.functionInvocationModule.findMany({ select: { apiName: true, attemptsTableId: true, attemptsTableName: true, databaseId: true, defaultPermissions: true, entityField: true, entityTableId: true, executionLogsTableId: true, executionLogsTableName: true, id: true, invocationsTableId: true, invocationsTableName: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provisions: true, publicSchemaName: true, schemaId: true, scope: true } }).execute(); +const items = await db.functionInvocationModule.findMany({ select: { apiName: true, attemptsTableId: true, attemptsTableName: true, databaseId: true, defaultCapabilities: true, entityField: true, entityTableId: true, executionLogsTableId: true, executionLogsTableName: true, id: true, invocationsTableId: true, invocationsTableName: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provisions: true, publicSchemaName: true, schemaId: true, scope: true } }).execute(); // Get one by id -const item = await db.functionInvocationModule.findOne({ id: '', select: { apiName: true, attemptsTableId: true, attemptsTableName: true, databaseId: true, defaultPermissions: true, entityField: true, entityTableId: true, executionLogsTableId: true, executionLogsTableName: true, id: true, invocationsTableId: true, invocationsTableName: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provisions: true, publicSchemaName: true, schemaId: true, scope: true } }).execute(); +const item = await db.functionInvocationModule.findOne({ id: '', select: { apiName: true, attemptsTableId: true, attemptsTableName: true, databaseId: true, defaultCapabilities: true, entityField: true, entityTableId: true, executionLogsTableId: true, executionLogsTableName: true, id: true, invocationsTableId: true, invocationsTableName: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provisions: true, publicSchemaName: true, schemaId: true, scope: true } }).execute(); // Create -const created = await db.functionInvocationModule.create({ data: { apiName: '', attemptsTableId: '', attemptsTableName: '', databaseId: '', defaultPermissions: '', entityField: '', entityTableId: '', executionLogsTableId: '', executionLogsTableName: '', invocationsTableId: '', invocationsTableName: '', policies: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', provisions: '', publicSchemaName: '', schemaId: '', scope: '' }, select: { id: true } }).execute(); +const created = await db.functionInvocationModule.create({ data: { apiName: '', attemptsTableId: '', attemptsTableName: '', databaseId: '', defaultCapabilities: '', entityField: '', entityTableId: '', executionLogsTableId: '', executionLogsTableName: '', invocationsTableId: '', invocationsTableName: '', policies: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', provisions: '', publicSchemaName: '', schemaId: '', scope: '' }, select: { id: true } }).execute(); // Update const updated = await db.functionInvocationModule.update({ where: { id: '' }, data: { apiName: '' }, select: { id: true } }).execute(); @@ -1482,7 +1723,7 @@ CRUD operations for FunctionModule records. | `bindingsTableName` | String | Yes | | `capabilityBindingsTableId` | UUID | Yes | | `databaseId` | UUID | Yes | -| `defaultPermissions` | String | Yes | +| `defaultCapabilities` | String | Yes | | `definitionsTableId` | UUID | Yes | | `definitionsTableName` | String | Yes | | `entityField` | String | Yes | @@ -1504,13 +1745,13 @@ CRUD operations for FunctionModule records. ```typescript // List all functionModule records -const items = await db.functionModule.findMany({ select: { apiName: true, bindingsTableId: true, bindingsTableName: true, capabilityBindingsTableId: true, databaseId: true, defaultPermissions: true, definitionsTableId: true, definitionsTableName: true, entityField: true, entityTableId: true, hasCron: true, id: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provisions: true, publicSchemaName: true, schedulesTableId: true, schemaId: true, scope: true } }).execute(); +const items = await db.functionModule.findMany({ select: { apiName: true, bindingsTableId: true, bindingsTableName: true, capabilityBindingsTableId: true, databaseId: true, defaultCapabilities: true, definitionsTableId: true, definitionsTableName: true, entityField: true, entityTableId: true, hasCron: true, id: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provisions: true, publicSchemaName: true, schedulesTableId: true, schemaId: true, scope: true } }).execute(); // Get one by id -const item = await db.functionModule.findOne({ id: '', select: { apiName: true, bindingsTableId: true, bindingsTableName: true, capabilityBindingsTableId: true, databaseId: true, defaultPermissions: true, definitionsTableId: true, definitionsTableName: true, entityField: true, entityTableId: true, hasCron: true, id: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provisions: true, publicSchemaName: true, schedulesTableId: true, schemaId: true, scope: true } }).execute(); +const item = await db.functionModule.findOne({ id: '', select: { apiName: true, bindingsTableId: true, bindingsTableName: true, capabilityBindingsTableId: true, databaseId: true, defaultCapabilities: true, definitionsTableId: true, definitionsTableName: true, entityField: true, entityTableId: true, hasCron: true, id: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provisions: true, publicSchemaName: true, schedulesTableId: true, schemaId: true, scope: true } }).execute(); // Create -const created = await db.functionModule.create({ data: { apiName: '', bindingsTableId: '', bindingsTableName: '', capabilityBindingsTableId: '', databaseId: '', defaultPermissions: '', definitionsTableId: '', definitionsTableName: '', entityField: '', entityTableId: '', hasCron: '', policies: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', provisions: '', publicSchemaName: '', schedulesTableId: '', schemaId: '', scope: '' }, select: { id: true } }).execute(); +const created = await db.functionModule.create({ data: { apiName: '', bindingsTableId: '', bindingsTableName: '', capabilityBindingsTableId: '', databaseId: '', defaultCapabilities: '', definitionsTableId: '', definitionsTableName: '', entityField: '', entityTableId: '', hasCron: '', policies: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', provisions: '', publicSchemaName: '', schedulesTableId: '', schemaId: '', scope: '' }, select: { id: true } }).execute(); // Update const updated = await db.functionModule.update({ where: { id: '' }, data: { apiName: '' }, select: { id: true } }).execute(); @@ -1530,7 +1771,7 @@ CRUD operations for GraphExecutionModule records. | `apiName` | String | Yes | | `createdAt` | Datetime | No | | `databaseId` | UUID | Yes | -| `defaultPermissions` | String | Yes | +| `defaultCapabilities` | String | Yes | | `entityField` | String | Yes | | `entityTableId` | UUID | Yes | | `executionsTableId` | UUID | Yes | @@ -1555,13 +1796,13 @@ CRUD operations for GraphExecutionModule records. ```typescript // List all graphExecutionModule records -const items = await db.graphExecutionModule.findMany({ select: { apiName: true, createdAt: true, databaseId: true, defaultPermissions: true, entityField: true, entityTableId: true, executionsTableId: true, executionsTableName: true, graphModuleId: true, id: true, nodeStatesTableId: true, nodeStatesTableName: true, outputsTableId: true, outputsTableName: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provisions: true, publicSchemaName: true, schemaId: true, scope: true } }).execute(); +const items = await db.graphExecutionModule.findMany({ select: { apiName: true, createdAt: true, databaseId: true, defaultCapabilities: true, entityField: true, entityTableId: true, executionsTableId: true, executionsTableName: true, graphModuleId: true, id: true, nodeStatesTableId: true, nodeStatesTableName: true, outputsTableId: true, outputsTableName: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provisions: true, publicSchemaName: true, schemaId: true, scope: true } }).execute(); // Get one by id -const item = await db.graphExecutionModule.findOne({ id: '', select: { apiName: true, createdAt: true, databaseId: true, defaultPermissions: true, entityField: true, entityTableId: true, executionsTableId: true, executionsTableName: true, graphModuleId: true, id: true, nodeStatesTableId: true, nodeStatesTableName: true, outputsTableId: true, outputsTableName: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provisions: true, publicSchemaName: true, schemaId: true, scope: true } }).execute(); +const item = await db.graphExecutionModule.findOne({ id: '', select: { apiName: true, createdAt: true, databaseId: true, defaultCapabilities: true, entityField: true, entityTableId: true, executionsTableId: true, executionsTableName: true, graphModuleId: true, id: true, nodeStatesTableId: true, nodeStatesTableName: true, outputsTableId: true, outputsTableName: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provisions: true, publicSchemaName: true, schemaId: true, scope: true } }).execute(); // Create -const created = await db.graphExecutionModule.create({ data: { apiName: '', databaseId: '', defaultPermissions: '', entityField: '', entityTableId: '', executionsTableId: '', executionsTableName: '', graphModuleId: '', nodeStatesTableId: '', nodeStatesTableName: '', outputsTableId: '', outputsTableName: '', policies: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', provisions: '', publicSchemaName: '', schemaId: '', scope: '' }, select: { id: true } }).execute(); +const created = await db.graphExecutionModule.create({ data: { apiName: '', databaseId: '', defaultCapabilities: '', entityField: '', entityTableId: '', executionsTableId: '', executionsTableName: '', graphModuleId: '', nodeStatesTableId: '', nodeStatesTableName: '', outputsTableId: '', outputsTableName: '', policies: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', provisions: '', publicSchemaName: '', schemaId: '', scope: '' }, select: { id: true } }).execute(); // Update const updated = await db.graphExecutionModule.update({ where: { id: '' }, data: { apiName: '' }, select: { id: true } }).execute(); @@ -1581,7 +1822,7 @@ CRUD operations for GraphModule records. | `apiName` | String | Yes | | `createdAt` | Datetime | No | | `databaseId` | UUID | Yes | -| `defaultPermissions` | String | Yes | +| `defaultCapabilities` | String | Yes | | `entityField` | String | Yes | | `entityTableId` | UUID | Yes | | `graphsTableId` | UUID | Yes | @@ -1601,13 +1842,13 @@ CRUD operations for GraphModule records. ```typescript // List all graphModule records -const items = await db.graphModule.findMany({ select: { apiName: true, createdAt: true, databaseId: true, defaultPermissions: true, entityField: true, entityTableId: true, graphsTableId: true, id: true, merkleStoreModuleId: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provisions: true, publicSchemaId: true, publicSchemaName: true, scope: true } }).execute(); +const items = await db.graphModule.findMany({ select: { apiName: true, createdAt: true, databaseId: true, defaultCapabilities: true, entityField: true, entityTableId: true, graphsTableId: true, id: true, merkleStoreModuleId: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provisions: true, publicSchemaId: true, publicSchemaName: true, scope: true } }).execute(); // Get one by id -const item = await db.graphModule.findOne({ id: '', select: { apiName: true, createdAt: true, databaseId: true, defaultPermissions: true, entityField: true, entityTableId: true, graphsTableId: true, id: true, merkleStoreModuleId: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provisions: true, publicSchemaId: true, publicSchemaName: true, scope: true } }).execute(); +const item = await db.graphModule.findOne({ id: '', select: { apiName: true, createdAt: true, databaseId: true, defaultCapabilities: true, entityField: true, entityTableId: true, graphsTableId: true, id: true, merkleStoreModuleId: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provisions: true, publicSchemaId: true, publicSchemaName: true, scope: true } }).execute(); // Create -const created = await db.graphModule.create({ data: { apiName: '', databaseId: '', defaultPermissions: '', entityField: '', entityTableId: '', graphsTableId: '', merkleStoreModuleId: '', policies: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', provisions: '', publicSchemaId: '', publicSchemaName: '', scope: '' }, select: { id: true } }).execute(); +const created = await db.graphModule.create({ data: { apiName: '', databaseId: '', defaultCapabilities: '', entityField: '', entityTableId: '', graphsTableId: '', merkleStoreModuleId: '', policies: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', provisions: '', publicSchemaId: '', publicSchemaName: '', scope: '' }, select: { id: true } }).execute(); // Update const updated = await db.graphModule.update({ where: { id: '' }, data: { apiName: '' }, select: { id: true } }).execute(); @@ -1630,7 +1871,7 @@ CRUD operations for HierarchyModule records. | `chartEdgesTableName` | String | Yes | | `createdAt` | Datetime | No | | `databaseId` | UUID | Yes | -| `defaultPermissions` | String | Yes | +| `defaultCapabilities` | String | Yes | | `entityField` | String | Yes | | `entityTableId` | UUID | Yes | | `getManagersFunction` | String | Yes | @@ -1652,13 +1893,13 @@ CRUD operations for HierarchyModule records. ```typescript // List all hierarchyModule records -const items = await db.hierarchyModule.findMany({ select: { chartEdgeGrantsTableId: true, chartEdgeGrantsTableName: true, chartEdgesTableId: true, chartEdgesTableName: true, createdAt: true, databaseId: true, defaultPermissions: true, entityField: true, entityTableId: true, getManagersFunction: true, getSubordinatesFunction: true, hierarchySprtTableId: true, hierarchySprtTableName: true, id: true, isManagerOfFunction: true, prefix: true, privateSchemaId: true, privateSchemaName: true, rebuildHierarchyFunction: true, schemaId: true, scope: true, sprtTableName: true, usersTableId: true } }).execute(); +const items = await db.hierarchyModule.findMany({ select: { chartEdgeGrantsTableId: true, chartEdgeGrantsTableName: true, chartEdgesTableId: true, chartEdgesTableName: true, createdAt: true, databaseId: true, defaultCapabilities: true, entityField: true, entityTableId: true, getManagersFunction: true, getSubordinatesFunction: true, hierarchySprtTableId: true, hierarchySprtTableName: true, id: true, isManagerOfFunction: true, prefix: true, privateSchemaId: true, privateSchemaName: true, rebuildHierarchyFunction: true, schemaId: true, scope: true, sprtTableName: true, usersTableId: true } }).execute(); // Get one by id -const item = await db.hierarchyModule.findOne({ id: '', select: { chartEdgeGrantsTableId: true, chartEdgeGrantsTableName: true, chartEdgesTableId: true, chartEdgesTableName: true, createdAt: true, databaseId: true, defaultPermissions: true, entityField: true, entityTableId: true, getManagersFunction: true, getSubordinatesFunction: true, hierarchySprtTableId: true, hierarchySprtTableName: true, id: true, isManagerOfFunction: true, prefix: true, privateSchemaId: true, privateSchemaName: true, rebuildHierarchyFunction: true, schemaId: true, scope: true, sprtTableName: true, usersTableId: true } }).execute(); +const item = await db.hierarchyModule.findOne({ id: '', select: { chartEdgeGrantsTableId: true, chartEdgeGrantsTableName: true, chartEdgesTableId: true, chartEdgesTableName: true, createdAt: true, databaseId: true, defaultCapabilities: true, entityField: true, entityTableId: true, getManagersFunction: true, getSubordinatesFunction: true, hierarchySprtTableId: true, hierarchySprtTableName: true, id: true, isManagerOfFunction: true, prefix: true, privateSchemaId: true, privateSchemaName: true, rebuildHierarchyFunction: true, schemaId: true, scope: true, sprtTableName: true, usersTableId: true } }).execute(); // Create -const created = await db.hierarchyModule.create({ data: { chartEdgeGrantsTableId: '', chartEdgeGrantsTableName: '', chartEdgesTableId: '', chartEdgesTableName: '', databaseId: '', defaultPermissions: '', entityField: '', entityTableId: '', getManagersFunction: '', getSubordinatesFunction: '', hierarchySprtTableId: '', hierarchySprtTableName: '', isManagerOfFunction: '', prefix: '', privateSchemaId: '', privateSchemaName: '', rebuildHierarchyFunction: '', schemaId: '', scope: '', sprtTableName: '', usersTableId: '' }, select: { id: true } }).execute(); +const created = await db.hierarchyModule.create({ data: { chartEdgeGrantsTableId: '', chartEdgeGrantsTableName: '', chartEdgesTableId: '', chartEdgesTableName: '', databaseId: '', defaultCapabilities: '', entityField: '', entityTableId: '', getManagersFunction: '', getSubordinatesFunction: '', hierarchySprtTableId: '', hierarchySprtTableName: '', isManagerOfFunction: '', prefix: '', privateSchemaId: '', privateSchemaName: '', rebuildHierarchyFunction: '', schemaId: '', scope: '', sprtTableName: '', usersTableId: '' }, select: { id: true } }).execute(); // Update const updated = await db.hierarchyModule.update({ where: { id: '' }, data: { chartEdgeGrantsTableId: '' }, select: { id: true } }).execute(); @@ -1677,7 +1918,7 @@ CRUD operations for HttpRouteModule records. |-------|------|----------| | `apiName` | String | Yes | | `databaseId` | UUID | Yes | -| `defaultPermissions` | String | Yes | +| `defaultCapabilities` | String | Yes | | `entityField` | String | Yes | | `entityTableId` | UUID | Yes | | `functionModuleId` | UUID | Yes | @@ -1701,13 +1942,13 @@ CRUD operations for HttpRouteModule records. ```typescript // List all httpRouteModule records -const items = await db.httpRouteModule.findMany({ select: { apiName: true, databaseId: true, defaultPermissions: true, entityField: true, entityTableId: true, functionModuleId: true, httpRoutesTableId: true, httpRoutesTableName: true, id: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provisions: true, publicSchemaName: true, resolverFunctionName: true, resourceModuleId: true, schemaId: true, scope: true, storageModuleId: true } }).execute(); +const items = await db.httpRouteModule.findMany({ select: { apiName: true, databaseId: true, defaultCapabilities: true, entityField: true, entityTableId: true, functionModuleId: true, httpRoutesTableId: true, httpRoutesTableName: true, id: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provisions: true, publicSchemaName: true, resolverFunctionName: true, resourceModuleId: true, schemaId: true, scope: true, storageModuleId: true } }).execute(); // Get one by id -const item = await db.httpRouteModule.findOne({ id: '', select: { apiName: true, databaseId: true, defaultPermissions: true, entityField: true, entityTableId: true, functionModuleId: true, httpRoutesTableId: true, httpRoutesTableName: true, id: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provisions: true, publicSchemaName: true, resolverFunctionName: true, resourceModuleId: true, schemaId: true, scope: true, storageModuleId: true } }).execute(); +const item = await db.httpRouteModule.findOne({ id: '', select: { apiName: true, databaseId: true, defaultCapabilities: true, entityField: true, entityTableId: true, functionModuleId: true, httpRoutesTableId: true, httpRoutesTableName: true, id: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provisions: true, publicSchemaName: true, resolverFunctionName: true, resourceModuleId: true, schemaId: true, scope: true, storageModuleId: true } }).execute(); // Create -const created = await db.httpRouteModule.create({ data: { apiName: '', databaseId: '', defaultPermissions: '', entityField: '', entityTableId: '', functionModuleId: '', httpRoutesTableId: '', httpRoutesTableName: '', policies: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', provisions: '', publicSchemaName: '', resolverFunctionName: '', resourceModuleId: '', schemaId: '', scope: '', storageModuleId: '' }, select: { id: true } }).execute(); +const created = await db.httpRouteModule.create({ data: { apiName: '', databaseId: '', defaultCapabilities: '', entityField: '', entityTableId: '', functionModuleId: '', httpRoutesTableId: '', httpRoutesTableName: '', policies: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', provisions: '', publicSchemaName: '', resolverFunctionName: '', resourceModuleId: '', schemaId: '', scope: '', storageModuleId: '' }, select: { id: true } }).execute(); // Update const updated = await db.httpRouteModule.update({ where: { id: '' }, data: { apiName: '' }, select: { id: true } }).execute(); @@ -2092,6 +2333,7 @@ CRUD operations for LimitsModule records. | `limitCreditsTableId` | UUID | Yes | | `limitDecrementFunction` | String | Yes | | `limitDecrementTrigger` | String | Yes | +| `limitDefaults` | JSON | Yes | | `limitIncrementFunction` | String | Yes | | `limitIncrementTrigger` | String | Yes | | `limitUpdateTrigger` | String | Yes | @@ -2112,13 +2354,13 @@ CRUD operations for LimitsModule records. ```typescript // List all limitsModule records -const items = await db.limitsModule.findMany({ select: { actorTableId: true, aggregateTableId: true, apiName: true, capCheckTrigger: true, creditCodeItemsTableId: true, creditCodesTableId: true, creditRedemptionsTableId: true, databaseId: true, defaultTableId: true, defaultTableName: true, entityField: true, entityTableId: true, eventsTableId: true, id: true, limitAggregateCheckSoftFunction: true, limitCapsDefaultsTableId: true, limitCapsTableId: true, limitCheckFunction: true, limitCheckSoftFunction: true, limitCreditsTableId: true, limitDecrementFunction: true, limitDecrementTrigger: true, limitIncrementFunction: true, limitIncrementTrigger: true, limitUpdateTrigger: true, limitWarningStateTableId: true, limitWarningsTableId: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, publicSchemaName: true, resolveCapFunction: true, schemaId: true, scope: true, tableId: true, tableName: true } }).execute(); +const items = await db.limitsModule.findMany({ select: { actorTableId: true, aggregateTableId: true, apiName: true, capCheckTrigger: true, creditCodeItemsTableId: true, creditCodesTableId: true, creditRedemptionsTableId: true, databaseId: true, defaultTableId: true, defaultTableName: true, entityField: true, entityTableId: true, eventsTableId: true, id: true, limitAggregateCheckSoftFunction: true, limitCapsDefaultsTableId: true, limitCapsTableId: true, limitCheckFunction: true, limitCheckSoftFunction: true, limitCreditsTableId: true, limitDecrementFunction: true, limitDecrementTrigger: true, limitDefaults: true, limitIncrementFunction: true, limitIncrementTrigger: true, limitUpdateTrigger: true, limitWarningStateTableId: true, limitWarningsTableId: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, publicSchemaName: true, resolveCapFunction: true, schemaId: true, scope: true, tableId: true, tableName: true } }).execute(); // Get one by id -const item = await db.limitsModule.findOne({ id: '', select: { actorTableId: true, aggregateTableId: true, apiName: true, capCheckTrigger: true, creditCodeItemsTableId: true, creditCodesTableId: true, creditRedemptionsTableId: true, databaseId: true, defaultTableId: true, defaultTableName: true, entityField: true, entityTableId: true, eventsTableId: true, id: true, limitAggregateCheckSoftFunction: true, limitCapsDefaultsTableId: true, limitCapsTableId: true, limitCheckFunction: true, limitCheckSoftFunction: true, limitCreditsTableId: true, limitDecrementFunction: true, limitDecrementTrigger: true, limitIncrementFunction: true, limitIncrementTrigger: true, limitUpdateTrigger: true, limitWarningStateTableId: true, limitWarningsTableId: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, publicSchemaName: true, resolveCapFunction: true, schemaId: true, scope: true, tableId: true, tableName: true } }).execute(); +const item = await db.limitsModule.findOne({ id: '', select: { actorTableId: true, aggregateTableId: true, apiName: true, capCheckTrigger: true, creditCodeItemsTableId: true, creditCodesTableId: true, creditRedemptionsTableId: true, databaseId: true, defaultTableId: true, defaultTableName: true, entityField: true, entityTableId: true, eventsTableId: true, id: true, limitAggregateCheckSoftFunction: true, limitCapsDefaultsTableId: true, limitCapsTableId: true, limitCheckFunction: true, limitCheckSoftFunction: true, limitCreditsTableId: true, limitDecrementFunction: true, limitDecrementTrigger: true, limitDefaults: true, limitIncrementFunction: true, limitIncrementTrigger: true, limitUpdateTrigger: true, limitWarningStateTableId: true, limitWarningsTableId: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, publicSchemaName: true, resolveCapFunction: true, schemaId: true, scope: true, tableId: true, tableName: true } }).execute(); // Create -const created = await db.limitsModule.create({ data: { actorTableId: '', aggregateTableId: '', apiName: '', capCheckTrigger: '', creditCodeItemsTableId: '', creditCodesTableId: '', creditRedemptionsTableId: '', databaseId: '', defaultTableId: '', defaultTableName: '', entityField: '', entityTableId: '', eventsTableId: '', limitAggregateCheckSoftFunction: '', limitCapsDefaultsTableId: '', limitCapsTableId: '', limitCheckFunction: '', limitCheckSoftFunction: '', limitCreditsTableId: '', limitDecrementFunction: '', limitDecrementTrigger: '', limitIncrementFunction: '', limitIncrementTrigger: '', limitUpdateTrigger: '', limitWarningStateTableId: '', limitWarningsTableId: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', publicSchemaName: '', resolveCapFunction: '', schemaId: '', scope: '', tableId: '', tableName: '' }, select: { id: true } }).execute(); +const created = await db.limitsModule.create({ data: { actorTableId: '', aggregateTableId: '', apiName: '', capCheckTrigger: '', creditCodeItemsTableId: '', creditCodesTableId: '', creditRedemptionsTableId: '', databaseId: '', defaultTableId: '', defaultTableName: '', entityField: '', entityTableId: '', eventsTableId: '', limitAggregateCheckSoftFunction: '', limitCapsDefaultsTableId: '', limitCapsTableId: '', limitCheckFunction: '', limitCheckSoftFunction: '', limitCreditsTableId: '', limitDecrementFunction: '', limitDecrementTrigger: '', limitDefaults: '', limitIncrementFunction: '', limitIncrementTrigger: '', limitUpdateTrigger: '', limitWarningStateTableId: '', limitWarningsTableId: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', publicSchemaName: '', resolveCapFunction: '', schemaId: '', scope: '', tableId: '', tableName: '' }, select: { id: true } }).execute(); // Update const updated = await db.limitsModule.update({ where: { id: '' }, data: { actorTableId: '' }, select: { id: true } }).execute(); @@ -2174,9 +2416,12 @@ CRUD operations for MembershipsModule records. | `adminGrantsTableId` | UUID | Yes | | `adminGrantsTableName` | String | Yes | | `apiName` | String | Yes | +| `capabilitiesTableId` | UUID | Yes | +| `capabilityDefaultCapabilitiesTableId` | UUID | Yes | +| `capabilityDefaultGrantsTableId` | UUID | Yes | | `databaseId` | UUID | Yes | +| `defaultCapabilitiesTableId` | UUID | Yes | | `defaultLimitsTableId` | UUID | Yes | -| `defaultPermissionsTableId` | UUID | Yes | | `entityField` | String | Yes | | `entityIdsByMask` | String | Yes | | `entityIdsByPerm` | String | Yes | @@ -2199,9 +2444,6 @@ CRUD operations for MembershipsModule records. | `membershipsTableName` | String | Yes | | `ownerGrantsTableId` | UUID | Yes | | `ownerGrantsTableName` | String | Yes | -| `permissionDefaultGrantsTableId` | UUID | Yes | -| `permissionDefaultPermissionsTableId` | UUID | Yes | -| `permissionsTableId` | UUID | Yes | | `prefix` | String | Yes | | `privateApiName` | String | Yes | | `privateSchemaId` | UUID | Yes | @@ -2215,13 +2457,13 @@ CRUD operations for MembershipsModule records. ```typescript // List all membershipsModule records -const items = await db.membershipsModule.findMany({ select: { actorMaskCheck: true, actorPermCheck: true, actorTableId: true, adminGrantsTableId: true, adminGrantsTableName: true, apiName: true, databaseId: true, defaultLimitsTableId: true, defaultPermissionsTableId: true, entityField: true, entityIdsByMask: true, entityIdsByPerm: true, entityIdsFunction: true, entityTableId: true, entityTableOwnerId: true, getOrgFn: true, grantsTableId: true, grantsTableName: true, id: true, limitsTableId: true, memberProfilesTableId: true, membersTableId: true, membersTableName: true, membershipDefaultsTableId: true, membershipDefaultsTableName: true, membershipSettingsTableId: true, membershipSettingsTableName: true, membershipsTableId: true, membershipsTableName: true, ownerGrantsTableId: true, ownerGrantsTableName: true, permissionDefaultGrantsTableId: true, permissionDefaultPermissionsTableId: true, permissionsTableId: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, publicSchemaName: true, schemaId: true, scope: true, sprtTableId: true } }).execute(); +const items = await db.membershipsModule.findMany({ select: { actorMaskCheck: true, actorPermCheck: true, actorTableId: true, adminGrantsTableId: true, adminGrantsTableName: true, apiName: true, capabilitiesTableId: true, capabilityDefaultCapabilitiesTableId: true, capabilityDefaultGrantsTableId: true, databaseId: true, defaultCapabilitiesTableId: true, defaultLimitsTableId: true, entityField: true, entityIdsByMask: true, entityIdsByPerm: true, entityIdsFunction: true, entityTableId: true, entityTableOwnerId: true, getOrgFn: true, grantsTableId: true, grantsTableName: true, id: true, limitsTableId: true, memberProfilesTableId: true, membersTableId: true, membersTableName: true, membershipDefaultsTableId: true, membershipDefaultsTableName: true, membershipSettingsTableId: true, membershipSettingsTableName: true, membershipsTableId: true, membershipsTableName: true, ownerGrantsTableId: true, ownerGrantsTableName: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, publicSchemaName: true, schemaId: true, scope: true, sprtTableId: true } }).execute(); // Get one by id -const item = await db.membershipsModule.findOne({ id: '', select: { actorMaskCheck: true, actorPermCheck: true, actorTableId: true, adminGrantsTableId: true, adminGrantsTableName: true, apiName: true, databaseId: true, defaultLimitsTableId: true, defaultPermissionsTableId: true, entityField: true, entityIdsByMask: true, entityIdsByPerm: true, entityIdsFunction: true, entityTableId: true, entityTableOwnerId: true, getOrgFn: true, grantsTableId: true, grantsTableName: true, id: true, limitsTableId: true, memberProfilesTableId: true, membersTableId: true, membersTableName: true, membershipDefaultsTableId: true, membershipDefaultsTableName: true, membershipSettingsTableId: true, membershipSettingsTableName: true, membershipsTableId: true, membershipsTableName: true, ownerGrantsTableId: true, ownerGrantsTableName: true, permissionDefaultGrantsTableId: true, permissionDefaultPermissionsTableId: true, permissionsTableId: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, publicSchemaName: true, schemaId: true, scope: true, sprtTableId: true } }).execute(); +const item = await db.membershipsModule.findOne({ id: '', select: { actorMaskCheck: true, actorPermCheck: true, actorTableId: true, adminGrantsTableId: true, adminGrantsTableName: true, apiName: true, capabilitiesTableId: true, capabilityDefaultCapabilitiesTableId: true, capabilityDefaultGrantsTableId: true, databaseId: true, defaultCapabilitiesTableId: true, defaultLimitsTableId: true, entityField: true, entityIdsByMask: true, entityIdsByPerm: true, entityIdsFunction: true, entityTableId: true, entityTableOwnerId: true, getOrgFn: true, grantsTableId: true, grantsTableName: true, id: true, limitsTableId: true, memberProfilesTableId: true, membersTableId: true, membersTableName: true, membershipDefaultsTableId: true, membershipDefaultsTableName: true, membershipSettingsTableId: true, membershipSettingsTableName: true, membershipsTableId: true, membershipsTableName: true, ownerGrantsTableId: true, ownerGrantsTableName: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, publicSchemaName: true, schemaId: true, scope: true, sprtTableId: true } }).execute(); // Create -const created = await db.membershipsModule.create({ data: { actorMaskCheck: '', actorPermCheck: '', actorTableId: '', adminGrantsTableId: '', adminGrantsTableName: '', apiName: '', databaseId: '', defaultLimitsTableId: '', defaultPermissionsTableId: '', entityField: '', entityIdsByMask: '', entityIdsByPerm: '', entityIdsFunction: '', entityTableId: '', entityTableOwnerId: '', getOrgFn: '', grantsTableId: '', grantsTableName: '', limitsTableId: '', memberProfilesTableId: '', membersTableId: '', membersTableName: '', membershipDefaultsTableId: '', membershipDefaultsTableName: '', membershipSettingsTableId: '', membershipSettingsTableName: '', membershipsTableId: '', membershipsTableName: '', ownerGrantsTableId: '', ownerGrantsTableName: '', permissionDefaultGrantsTableId: '', permissionDefaultPermissionsTableId: '', permissionsTableId: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', publicSchemaName: '', schemaId: '', scope: '', sprtTableId: '' }, select: { id: true } }).execute(); +const created = await db.membershipsModule.create({ data: { actorMaskCheck: '', actorPermCheck: '', actorTableId: '', adminGrantsTableId: '', adminGrantsTableName: '', apiName: '', capabilitiesTableId: '', capabilityDefaultCapabilitiesTableId: '', capabilityDefaultGrantsTableId: '', databaseId: '', defaultCapabilitiesTableId: '', defaultLimitsTableId: '', entityField: '', entityIdsByMask: '', entityIdsByPerm: '', entityIdsFunction: '', entityTableId: '', entityTableOwnerId: '', getOrgFn: '', grantsTableId: '', grantsTableName: '', limitsTableId: '', memberProfilesTableId: '', membersTableId: '', membersTableName: '', membershipDefaultsTableId: '', membershipDefaultsTableName: '', membershipSettingsTableId: '', membershipSettingsTableName: '', membershipsTableId: '', membershipsTableName: '', ownerGrantsTableId: '', ownerGrantsTableName: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', publicSchemaName: '', schemaId: '', scope: '', sprtTableId: '' }, select: { id: true } }).execute(); // Update const updated = await db.membershipsModule.update({ where: { id: '' }, data: { actorMaskCheck: '' }, select: { id: true } }).execute(); @@ -2239,6 +2481,7 @@ CRUD operations for MerkleStoreModule records. | Field | Type | Editable | |-------|------|----------| | `apiName` | String | Yes | +| `capabilityKey` | String | Yes | | `commitTableId` | UUID | Yes | | `createdAt` | Datetime | No | | `databaseId` | UUID | Yes | @@ -2246,7 +2489,6 @@ CRUD operations for MerkleStoreModule records. | `functionPrefix` | String | Yes | | `id` | UUID | No | | `objectTableId` | UUID | Yes | -| `permissionKey` | String | Yes | | `prefix` | String | Yes | | `privateApiName` | String | Yes | | `privateSchemaId` | UUID | Yes | @@ -2261,13 +2503,13 @@ CRUD operations for MerkleStoreModule records. ```typescript // List all merkleStoreModule records -const items = await db.merkleStoreModule.findMany({ select: { apiName: true, commitTableId: true, createdAt: true, databaseId: true, entityField: true, functionPrefix: true, id: true, objectTableId: true, permissionKey: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, publicSchemaName: true, refTableId: true, schemaId: true, scope: true, storeTableId: true } }).execute(); +const items = await db.merkleStoreModule.findMany({ select: { apiName: true, capabilityKey: true, commitTableId: true, createdAt: true, databaseId: true, entityField: true, functionPrefix: true, id: true, objectTableId: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, publicSchemaName: true, refTableId: true, schemaId: true, scope: true, storeTableId: true } }).execute(); // Get one by id -const item = await db.merkleStoreModule.findOne({ id: '', select: { apiName: true, commitTableId: true, createdAt: true, databaseId: true, entityField: true, functionPrefix: true, id: true, objectTableId: true, permissionKey: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, publicSchemaName: true, refTableId: true, schemaId: true, scope: true, storeTableId: true } }).execute(); +const item = await db.merkleStoreModule.findOne({ id: '', select: { apiName: true, capabilityKey: true, commitTableId: true, createdAt: true, databaseId: true, entityField: true, functionPrefix: true, id: true, objectTableId: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, publicSchemaName: true, refTableId: true, schemaId: true, scope: true, storeTableId: true } }).execute(); // Create -const created = await db.merkleStoreModule.create({ data: { apiName: '', commitTableId: '', databaseId: '', entityField: '', functionPrefix: '', objectTableId: '', permissionKey: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', publicSchemaName: '', refTableId: '', schemaId: '', scope: '', storeTableId: '' }, select: { id: true } }).execute(); +const created = await db.merkleStoreModule.create({ data: { apiName: '', capabilityKey: '', commitTableId: '', databaseId: '', entityField: '', functionPrefix: '', objectTableId: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', publicSchemaName: '', refTableId: '', schemaId: '', scope: '', storeTableId: '' }, select: { id: true } }).execute(); // Update const updated = await db.merkleStoreModule.update({ where: { id: '' }, data: { apiName: '' }, select: { id: true } }).execute(); @@ -2286,7 +2528,7 @@ CRUD operations for NamespaceModule records. |-------|------|----------| | `apiName` | String | Yes | | `databaseId` | UUID | Yes | -| `defaultPermissions` | String | Yes | +| `defaultCapabilities` | String | Yes | | `entityField` | String | Yes | | `entityTableId` | UUID | Yes | | `id` | UUID | No | @@ -2308,13 +2550,13 @@ CRUD operations for NamespaceModule records. ```typescript // List all namespaceModule records -const items = await db.namespaceModule.findMany({ select: { apiName: true, databaseId: true, defaultPermissions: true, entityField: true, entityTableId: true, id: true, namespaceEventsTableId: true, namespaceEventsTableName: true, namespacesTableId: true, namespacesTableName: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provisions: true, publicSchemaName: true, schemaId: true, scope: true } }).execute(); +const items = await db.namespaceModule.findMany({ select: { apiName: true, databaseId: true, defaultCapabilities: true, entityField: true, entityTableId: true, id: true, namespaceEventsTableId: true, namespaceEventsTableName: true, namespacesTableId: true, namespacesTableName: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provisions: true, publicSchemaName: true, schemaId: true, scope: true } }).execute(); // Get one by id -const item = await db.namespaceModule.findOne({ id: '', select: { apiName: true, databaseId: true, defaultPermissions: true, entityField: true, entityTableId: true, id: true, namespaceEventsTableId: true, namespaceEventsTableName: true, namespacesTableId: true, namespacesTableName: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provisions: true, publicSchemaName: true, schemaId: true, scope: true } }).execute(); +const item = await db.namespaceModule.findOne({ id: '', select: { apiName: true, databaseId: true, defaultCapabilities: true, entityField: true, entityTableId: true, id: true, namespaceEventsTableId: true, namespaceEventsTableName: true, namespacesTableId: true, namespacesTableName: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provisions: true, publicSchemaName: true, schemaId: true, scope: true } }).execute(); // Create -const created = await db.namespaceModule.create({ data: { apiName: '', databaseId: '', defaultPermissions: '', entityField: '', entityTableId: '', namespaceEventsTableId: '', namespaceEventsTableName: '', namespacesTableId: '', namespacesTableName: '', policies: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', provisions: '', publicSchemaName: '', schemaId: '', scope: '' }, select: { id: true } }).execute(); +const created = await db.namespaceModule.create({ data: { apiName: '', databaseId: '', defaultCapabilities: '', entityField: '', entityTableId: '', namespaceEventsTableId: '', namespaceEventsTableName: '', namespacesTableId: '', namespacesTableName: '', policies: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', provisions: '', publicSchemaName: '', schemaId: '', scope: '' }, select: { id: true } }).execute(); // Update const updated = await db.namespaceModule.update({ where: { id: '' }, data: { apiName: '' }, select: { id: true } }).execute(); @@ -2334,7 +2576,7 @@ CRUD operations for NotificationsModule records. | `apiName` | String | Yes | | `channelsTableId` | UUID | Yes | | `databaseId` | UUID | Yes | -| `defaultPermissions` | String | Yes | +| `defaultCapabilities` | String | Yes | | `deliveryLogTableId` | UUID | Yes | | `entityField` | String | Yes | | `hasChannels` | Boolean | Yes | @@ -2360,13 +2602,13 @@ CRUD operations for NotificationsModule records. ```typescript // List all notificationsModule records -const items = await db.notificationsModule.findMany({ select: { apiName: true, channelsTableId: true, databaseId: true, defaultPermissions: true, deliveryLogTableId: true, entityField: true, hasChannels: true, hasDigestMetadata: true, hasPreferences: true, hasSettingsExtension: true, hasSubscriptions: true, id: true, notificationsTableId: true, organizationSettingsTableId: true, ownerTableId: true, preferencesTableId: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, publicSchemaName: true, readStateTableId: true, schemaId: true, suppressionsTableId: true, userSettingsTableId: true } }).execute(); +const items = await db.notificationsModule.findMany({ select: { apiName: true, channelsTableId: true, databaseId: true, defaultCapabilities: true, deliveryLogTableId: true, entityField: true, hasChannels: true, hasDigestMetadata: true, hasPreferences: true, hasSettingsExtension: true, hasSubscriptions: true, id: true, notificationsTableId: true, organizationSettingsTableId: true, ownerTableId: true, preferencesTableId: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, publicSchemaName: true, readStateTableId: true, schemaId: true, suppressionsTableId: true, userSettingsTableId: true } }).execute(); // Get one by id -const item = await db.notificationsModule.findOne({ id: '', select: { apiName: true, channelsTableId: true, databaseId: true, defaultPermissions: true, deliveryLogTableId: true, entityField: true, hasChannels: true, hasDigestMetadata: true, hasPreferences: true, hasSettingsExtension: true, hasSubscriptions: true, id: true, notificationsTableId: true, organizationSettingsTableId: true, ownerTableId: true, preferencesTableId: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, publicSchemaName: true, readStateTableId: true, schemaId: true, suppressionsTableId: true, userSettingsTableId: true } }).execute(); +const item = await db.notificationsModule.findOne({ id: '', select: { apiName: true, channelsTableId: true, databaseId: true, defaultCapabilities: true, deliveryLogTableId: true, entityField: true, hasChannels: true, hasDigestMetadata: true, hasPreferences: true, hasSettingsExtension: true, hasSubscriptions: true, id: true, notificationsTableId: true, organizationSettingsTableId: true, ownerTableId: true, preferencesTableId: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, publicSchemaName: true, readStateTableId: true, schemaId: true, suppressionsTableId: true, userSettingsTableId: true } }).execute(); // Create -const created = await db.notificationsModule.create({ data: { apiName: '', channelsTableId: '', databaseId: '', defaultPermissions: '', deliveryLogTableId: '', entityField: '', hasChannels: '', hasDigestMetadata: '', hasPreferences: '', hasSettingsExtension: '', hasSubscriptions: '', notificationsTableId: '', organizationSettingsTableId: '', ownerTableId: '', preferencesTableId: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', publicSchemaName: '', readStateTableId: '', schemaId: '', suppressionsTableId: '', userSettingsTableId: '' }, select: { id: true } }).execute(); +const created = await db.notificationsModule.create({ data: { apiName: '', channelsTableId: '', databaseId: '', defaultCapabilities: '', deliveryLogTableId: '', entityField: '', hasChannels: '', hasDigestMetadata: '', hasPreferences: '', hasSettingsExtension: '', hasSubscriptions: '', notificationsTableId: '', organizationSettingsTableId: '', ownerTableId: '', preferencesTableId: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', publicSchemaName: '', readStateTableId: '', schemaId: '', suppressionsTableId: '', userSettingsTableId: '' }, select: { id: true } }).execute(); // Update const updated = await db.notificationsModule.update({ where: { id: '' }, data: { apiName: '' }, select: { id: true } }).execute(); @@ -2375,101 +2617,91 @@ const updated = await db.notificationsModule.update({ where: { id: '' }, d const deleted = await db.notificationsModule.delete({ where: { id: '' } }).execute(); ``` -### `db.pagesModule` +### `db.oauthRequestsModule` -CRUD operations for PagesModule records. +CRUD operations for OauthRequestsModule records. **Fields:** | Field | Type | Editable | |-------|------|----------| -| `apiName` | String | Yes | -| `createdAt` | Datetime | No | | `databaseId` | UUID | Yes | +| `entityField` | String | Yes | | `entityTableId` | UUID | Yes | | `id` | UUID | No | -| `merkleStoreModuleId` | UUID | Yes | -| `pagesTableId` | UUID | Yes | -| `policies` | JSON | Yes | +| `oauthAuthorizationRequestsTableId` | UUID | Yes | +| `oauthAuthorizationRequestsTableName` | String | Yes | +| `pendingIdentityLinksTableId` | UUID | Yes | +| `pendingIdentityLinksTableName` | String | Yes | | `prefix` | String | Yes | -| `privateApiName` | String | Yes | | `privateSchemaId` | UUID | Yes | | `privateSchemaName` | String | Yes | -| `provisions` | JSON | Yes | -| `publicSchemaId` | UUID | Yes | -| `publicSchemaName` | String | Yes | | `scope` | String | Yes | -| `siteSurfaceModuleId` | UUID | Yes | -| `sitesTableId` | UUID | Yes | -| `storeNamePrefix` | String | Yes | **Operations:** ```typescript -// List all pagesModule records -const items = await db.pagesModule.findMany({ select: { apiName: true, createdAt: true, databaseId: true, entityTableId: true, id: true, merkleStoreModuleId: true, pagesTableId: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provisions: true, publicSchemaId: true, publicSchemaName: true, scope: true, siteSurfaceModuleId: true, sitesTableId: true, storeNamePrefix: true } }).execute(); +// List all oauthRequestsModule records +const items = await db.oauthRequestsModule.findMany({ select: { databaseId: true, entityField: true, entityTableId: true, id: true, oauthAuthorizationRequestsTableId: true, oauthAuthorizationRequestsTableName: true, pendingIdentityLinksTableId: true, pendingIdentityLinksTableName: true, prefix: true, privateSchemaId: true, privateSchemaName: true, scope: true } }).execute(); // Get one by id -const item = await db.pagesModule.findOne({ id: '', select: { apiName: true, createdAt: true, databaseId: true, entityTableId: true, id: true, merkleStoreModuleId: true, pagesTableId: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provisions: true, publicSchemaId: true, publicSchemaName: true, scope: true, siteSurfaceModuleId: true, sitesTableId: true, storeNamePrefix: true } }).execute(); +const item = await db.oauthRequestsModule.findOne({ id: '', select: { databaseId: true, entityField: true, entityTableId: true, id: true, oauthAuthorizationRequestsTableId: true, oauthAuthorizationRequestsTableName: true, pendingIdentityLinksTableId: true, pendingIdentityLinksTableName: true, prefix: true, privateSchemaId: true, privateSchemaName: true, scope: true } }).execute(); // Create -const created = await db.pagesModule.create({ data: { apiName: '', databaseId: '', entityTableId: '', merkleStoreModuleId: '', pagesTableId: '', policies: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', provisions: '', publicSchemaId: '', publicSchemaName: '', scope: '', siteSurfaceModuleId: '', sitesTableId: '', storeNamePrefix: '' }, select: { id: true } }).execute(); +const created = await db.oauthRequestsModule.create({ data: { databaseId: '', entityField: '', entityTableId: '', oauthAuthorizationRequestsTableId: '', oauthAuthorizationRequestsTableName: '', pendingIdentityLinksTableId: '', pendingIdentityLinksTableName: '', prefix: '', privateSchemaId: '', privateSchemaName: '', scope: '' }, select: { id: true } }).execute(); // Update -const updated = await db.pagesModule.update({ where: { id: '' }, data: { apiName: '' }, select: { id: true } }).execute(); +const updated = await db.oauthRequestsModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.pagesModule.delete({ where: { id: '' } }).execute(); +const deleted = await db.oauthRequestsModule.delete({ where: { id: '' } }).execute(); ``` -### `db.permissionsModule` +### `db.pagesModule` -CRUD operations for PermissionsModule records. +CRUD operations for PagesModule records. **Fields:** | Field | Type | Editable | |-------|------|----------| -| `actorTableId` | UUID | Yes | | `apiName` | String | Yes | -| `bitlen` | Int | Yes | +| `createdAt` | Datetime | No | | `databaseId` | UUID | Yes | -| `defaultTableId` | UUID | Yes | -| `defaultTableName` | String | Yes | -| `entityField` | String | Yes | | `entityTableId` | UUID | Yes | -| `getByMask` | String | Yes | -| `getMask` | String | Yes | -| `getMaskByName` | String | Yes | -| `getPaddedMask` | String | Yes | | `id` | UUID | No | +| `merkleStoreModuleId` | UUID | Yes | +| `pagesTableId` | UUID | Yes | +| `policies` | JSON | Yes | | `prefix` | String | Yes | | `privateApiName` | String | Yes | | `privateSchemaId` | UUID | Yes | | `privateSchemaName` | String | Yes | +| `provisions` | JSON | Yes | +| `publicSchemaId` | UUID | Yes | | `publicSchemaName` | String | Yes | -| `schemaId` | UUID | Yes | | `scope` | String | Yes | -| `tableId` | UUID | Yes | -| `tableName` | String | Yes | +| `siteSurfaceModuleId` | UUID | Yes | +| `sitesTableId` | UUID | Yes | +| `storeNamePrefix` | String | Yes | **Operations:** ```typescript -// List all permissionsModule records -const items = await db.permissionsModule.findMany({ select: { actorTableId: true, apiName: true, bitlen: true, databaseId: true, defaultTableId: true, defaultTableName: true, entityField: true, entityTableId: true, getByMask: true, getMask: true, getMaskByName: true, getPaddedMask: true, id: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, publicSchemaName: true, schemaId: true, scope: true, tableId: true, tableName: true } }).execute(); +// List all pagesModule records +const items = await db.pagesModule.findMany({ select: { apiName: true, createdAt: true, databaseId: true, entityTableId: true, id: true, merkleStoreModuleId: true, pagesTableId: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provisions: true, publicSchemaId: true, publicSchemaName: true, scope: true, siteSurfaceModuleId: true, sitesTableId: true, storeNamePrefix: true } }).execute(); // Get one by id -const item = await db.permissionsModule.findOne({ id: '', select: { actorTableId: true, apiName: true, bitlen: true, databaseId: true, defaultTableId: true, defaultTableName: true, entityField: true, entityTableId: true, getByMask: true, getMask: true, getMaskByName: true, getPaddedMask: true, id: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, publicSchemaName: true, schemaId: true, scope: true, tableId: true, tableName: true } }).execute(); +const item = await db.pagesModule.findOne({ id: '', select: { apiName: true, createdAt: true, databaseId: true, entityTableId: true, id: true, merkleStoreModuleId: true, pagesTableId: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provisions: true, publicSchemaId: true, publicSchemaName: true, scope: true, siteSurfaceModuleId: true, sitesTableId: true, storeNamePrefix: true } }).execute(); // Create -const created = await db.permissionsModule.create({ data: { actorTableId: '', apiName: '', bitlen: '', databaseId: '', defaultTableId: '', defaultTableName: '', entityField: '', entityTableId: '', getByMask: '', getMask: '', getMaskByName: '', getPaddedMask: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', publicSchemaName: '', schemaId: '', scope: '', tableId: '', tableName: '' }, select: { id: true } }).execute(); +const created = await db.pagesModule.create({ data: { apiName: '', databaseId: '', entityTableId: '', merkleStoreModuleId: '', pagesTableId: '', policies: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', provisions: '', publicSchemaId: '', publicSchemaName: '', scope: '', siteSurfaceModuleId: '', sitesTableId: '', storeNamePrefix: '' }, select: { id: true } }).execute(); // Update -const updated = await db.permissionsModule.update({ where: { id: '' }, data: { actorTableId: '' }, select: { id: true } }).execute(); +const updated = await db.pagesModule.update({ where: { id: '' }, data: { apiName: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.permissionsModule.delete({ where: { id: '' } }).execute(); +const deleted = await db.pagesModule.delete({ where: { id: '' } }).execute(); ``` ### `db.phoneNumbersModule` @@ -2614,22 +2846,24 @@ CRUD operations for ProfilesModule records. |-------|------|----------| | `actorTableId` | UUID | Yes | | `apiName` | String | Yes | +| `capabilitiesTableId` | UUID | Yes | | `databaseId` | UUID | Yes | | `entityField` | String | Yes | | `entityTableId` | UUID | Yes | | `id` | UUID | No | +| `membershipProfilesTableId` | UUID | Yes | +| `membershipProfilesTableName` | String | Yes | | `membershipsTableId` | UUID | Yes | -| `permissionsTableId` | UUID | Yes | | `prefix` | String | Yes | | `privateApiName` | String | Yes | | `privateSchemaId` | UUID | Yes | | `privateSchemaName` | String | Yes | +| `profileCapabilitiesTableId` | UUID | Yes | +| `profileCapabilitiesTableName` | String | Yes | | `profileDefinitionGrantsTableId` | UUID | Yes | | `profileDefinitionGrantsTableName` | String | Yes | | `profileGrantsTableId` | UUID | Yes | | `profileGrantsTableName` | String | Yes | -| `profilePermissionsTableId` | UUID | Yes | -| `profilePermissionsTableName` | String | Yes | | `profileTemplatesTableId` | UUID | Yes | | `profileTemplatesTableName` | String | Yes | | `publicSchemaName` | String | Yes | @@ -2642,13 +2876,13 @@ CRUD operations for ProfilesModule records. ```typescript // List all profilesModule records -const items = await db.profilesModule.findMany({ select: { actorTableId: true, apiName: true, databaseId: true, entityField: true, entityTableId: true, id: true, membershipsTableId: true, permissionsTableId: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, profileDefinitionGrantsTableId: true, profileDefinitionGrantsTableName: true, profileGrantsTableId: true, profileGrantsTableName: true, profilePermissionsTableId: true, profilePermissionsTableName: true, profileTemplatesTableId: true, profileTemplatesTableName: true, publicSchemaName: true, schemaId: true, scope: true, tableId: true, tableName: true } }).execute(); +const items = await db.profilesModule.findMany({ select: { actorTableId: true, apiName: true, capabilitiesTableId: true, databaseId: true, entityField: true, entityTableId: true, id: true, membershipProfilesTableId: true, membershipProfilesTableName: true, membershipsTableId: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, profileCapabilitiesTableId: true, profileCapabilitiesTableName: true, profileDefinitionGrantsTableId: true, profileDefinitionGrantsTableName: true, profileGrantsTableId: true, profileGrantsTableName: true, profileTemplatesTableId: true, profileTemplatesTableName: true, publicSchemaName: true, schemaId: true, scope: true, tableId: true, tableName: true } }).execute(); // Get one by id -const item = await db.profilesModule.findOne({ id: '', select: { actorTableId: true, apiName: true, databaseId: true, entityField: true, entityTableId: true, id: true, membershipsTableId: true, permissionsTableId: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, profileDefinitionGrantsTableId: true, profileDefinitionGrantsTableName: true, profileGrantsTableId: true, profileGrantsTableName: true, profilePermissionsTableId: true, profilePermissionsTableName: true, profileTemplatesTableId: true, profileTemplatesTableName: true, publicSchemaName: true, schemaId: true, scope: true, tableId: true, tableName: true } }).execute(); +const item = await db.profilesModule.findOne({ id: '', select: { actorTableId: true, apiName: true, capabilitiesTableId: true, databaseId: true, entityField: true, entityTableId: true, id: true, membershipProfilesTableId: true, membershipProfilesTableName: true, membershipsTableId: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, profileCapabilitiesTableId: true, profileCapabilitiesTableName: true, profileDefinitionGrantsTableId: true, profileDefinitionGrantsTableName: true, profileGrantsTableId: true, profileGrantsTableName: true, profileTemplatesTableId: true, profileTemplatesTableName: true, publicSchemaName: true, schemaId: true, scope: true, tableId: true, tableName: true } }).execute(); // Create -const created = await db.profilesModule.create({ data: { actorTableId: '', apiName: '', databaseId: '', entityField: '', entityTableId: '', membershipsTableId: '', permissionsTableId: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', profileDefinitionGrantsTableId: '', profileDefinitionGrantsTableName: '', profileGrantsTableId: '', profileGrantsTableName: '', profilePermissionsTableId: '', profilePermissionsTableName: '', profileTemplatesTableId: '', profileTemplatesTableName: '', publicSchemaName: '', schemaId: '', scope: '', tableId: '', tableName: '' }, select: { id: true } }).execute(); +const created = await db.profilesModule.create({ data: { actorTableId: '', apiName: '', capabilitiesTableId: '', databaseId: '', entityField: '', entityTableId: '', membershipProfilesTableId: '', membershipProfilesTableName: '', membershipsTableId: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', profileCapabilitiesTableId: '', profileCapabilitiesTableName: '', profileDefinitionGrantsTableId: '', profileDefinitionGrantsTableName: '', profileGrantsTableId: '', profileGrantsTableName: '', profileTemplatesTableId: '', profileTemplatesTableName: '', publicSchemaName: '', schemaId: '', scope: '', tableId: '', tableName: '' }, select: { id: true } }).execute(); // Update const updated = await db.profilesModule.update({ where: { id: '' }, data: { actorTableId: '' }, select: { id: true } }).execute(); @@ -2668,7 +2902,7 @@ CRUD operations for RateLimitMetersModule records. | `apiName` | String | Yes | | `checkRateLimitFunction` | String | Yes | | `databaseId` | UUID | Yes | -| `defaultPermissions` | String | Yes | +| `defaultCapabilities` | String | Yes | | `id` | UUID | No | | `prefix` | String | Yes | | `privateApiName` | String | Yes | @@ -2687,13 +2921,13 @@ CRUD operations for RateLimitMetersModule records. ```typescript // List all rateLimitMetersModule records -const items = await db.rateLimitMetersModule.findMany({ select: { apiName: true, checkRateLimitFunction: true, databaseId: true, defaultPermissions: true, id: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, publicSchemaName: true, rateLimitOverridesTableId: true, rateLimitOverridesTableName: true, rateLimitStateTableId: true, rateLimitStateTableName: true, rateWindowLimitsTableId: true, rateWindowLimitsTableName: true, schemaId: true } }).execute(); +const items = await db.rateLimitMetersModule.findMany({ select: { apiName: true, checkRateLimitFunction: true, databaseId: true, defaultCapabilities: true, id: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, publicSchemaName: true, rateLimitOverridesTableId: true, rateLimitOverridesTableName: true, rateLimitStateTableId: true, rateLimitStateTableName: true, rateWindowLimitsTableId: true, rateWindowLimitsTableName: true, schemaId: true } }).execute(); // Get one by id -const item = await db.rateLimitMetersModule.findOne({ id: '', select: { apiName: true, checkRateLimitFunction: true, databaseId: true, defaultPermissions: true, id: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, publicSchemaName: true, rateLimitOverridesTableId: true, rateLimitOverridesTableName: true, rateLimitStateTableId: true, rateLimitStateTableName: true, rateWindowLimitsTableId: true, rateWindowLimitsTableName: true, schemaId: true } }).execute(); +const item = await db.rateLimitMetersModule.findOne({ id: '', select: { apiName: true, checkRateLimitFunction: true, databaseId: true, defaultCapabilities: true, id: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, publicSchemaName: true, rateLimitOverridesTableId: true, rateLimitOverridesTableName: true, rateLimitStateTableId: true, rateLimitStateTableName: true, rateWindowLimitsTableId: true, rateWindowLimitsTableName: true, schemaId: true } }).execute(); // Create -const created = await db.rateLimitMetersModule.create({ data: { apiName: '', checkRateLimitFunction: '', databaseId: '', defaultPermissions: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', publicSchemaName: '', rateLimitOverridesTableId: '', rateLimitOverridesTableName: '', rateLimitStateTableId: '', rateLimitStateTableName: '', rateWindowLimitsTableId: '', rateWindowLimitsTableName: '', schemaId: '' }, select: { id: true } }).execute(); +const created = await db.rateLimitMetersModule.create({ data: { apiName: '', checkRateLimitFunction: '', databaseId: '', defaultCapabilities: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', publicSchemaName: '', rateLimitOverridesTableId: '', rateLimitOverridesTableName: '', rateLimitStateTableId: '', rateLimitStateTableName: '', rateWindowLimitsTableId: '', rateWindowLimitsTableName: '', schemaId: '' }, select: { id: true } }).execute(); // Update const updated = await db.rateLimitMetersModule.update({ where: { id: '' }, data: { apiName: '' }, select: { id: true } }).execute(); @@ -2843,7 +3077,7 @@ CRUD operations for ResourceModule records. |-------|------|----------| | `apiName` | String | Yes | | `databaseId` | UUID | Yes | -| `defaultPermissions` | String | Yes | +| `defaultCapabilities` | String | Yes | | `entityField` | String | Yes | | `entityTableId` | UUID | Yes | | `id` | UUID | No | @@ -2882,13 +3116,13 @@ CRUD operations for ResourceModule records. ```typescript // List all resourceModule records -const items = await db.resourceModule.findMany({ select: { apiName: true, databaseId: true, defaultPermissions: true, entityField: true, entityTableId: true, id: true, installationStoreName: true, merkleStoreModuleId: true, namespaceModuleId: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provisions: true, publicSchemaName: true, requirementsStateViewName: true, resolvedRequirementsViewName: true, resourceBillingRollupFunction: true, resourceDefinitionsTableId: true, resourceDefinitionsTableName: true, resourceEventsTableId: true, resourceEventsTableName: true, resourceInstallationsTableId: true, resourceInstallationsTableName: true, resourceStatusChecksTableId: true, resourceStatusChecksTableName: true, resourceUsageLogTableId: true, resourceUsageLogTableName: true, resourceUsageSummaryTableId: true, resourceUsageSummaryTableName: true, resourcesTableId: true, resourcesTableName: true, rollupResourceUsageSummaryFunction: true, schemaId: true, scope: true } }).execute(); +const items = await db.resourceModule.findMany({ select: { apiName: true, databaseId: true, defaultCapabilities: true, entityField: true, entityTableId: true, id: true, installationStoreName: true, merkleStoreModuleId: true, namespaceModuleId: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provisions: true, publicSchemaName: true, requirementsStateViewName: true, resolvedRequirementsViewName: true, resourceBillingRollupFunction: true, resourceDefinitionsTableId: true, resourceDefinitionsTableName: true, resourceEventsTableId: true, resourceEventsTableName: true, resourceInstallationsTableId: true, resourceInstallationsTableName: true, resourceStatusChecksTableId: true, resourceStatusChecksTableName: true, resourceUsageLogTableId: true, resourceUsageLogTableName: true, resourceUsageSummaryTableId: true, resourceUsageSummaryTableName: true, resourcesTableId: true, resourcesTableName: true, rollupResourceUsageSummaryFunction: true, schemaId: true, scope: true } }).execute(); // Get one by id -const item = await db.resourceModule.findOne({ id: '', select: { apiName: true, databaseId: true, defaultPermissions: true, entityField: true, entityTableId: true, id: true, installationStoreName: true, merkleStoreModuleId: true, namespaceModuleId: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provisions: true, publicSchemaName: true, requirementsStateViewName: true, resolvedRequirementsViewName: true, resourceBillingRollupFunction: true, resourceDefinitionsTableId: true, resourceDefinitionsTableName: true, resourceEventsTableId: true, resourceEventsTableName: true, resourceInstallationsTableId: true, resourceInstallationsTableName: true, resourceStatusChecksTableId: true, resourceStatusChecksTableName: true, resourceUsageLogTableId: true, resourceUsageLogTableName: true, resourceUsageSummaryTableId: true, resourceUsageSummaryTableName: true, resourcesTableId: true, resourcesTableName: true, rollupResourceUsageSummaryFunction: true, schemaId: true, scope: true } }).execute(); +const item = await db.resourceModule.findOne({ id: '', select: { apiName: true, databaseId: true, defaultCapabilities: true, entityField: true, entityTableId: true, id: true, installationStoreName: true, merkleStoreModuleId: true, namespaceModuleId: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provisions: true, publicSchemaName: true, requirementsStateViewName: true, resolvedRequirementsViewName: true, resourceBillingRollupFunction: true, resourceDefinitionsTableId: true, resourceDefinitionsTableName: true, resourceEventsTableId: true, resourceEventsTableName: true, resourceInstallationsTableId: true, resourceInstallationsTableName: true, resourceStatusChecksTableId: true, resourceStatusChecksTableName: true, resourceUsageLogTableId: true, resourceUsageLogTableName: true, resourceUsageSummaryTableId: true, resourceUsageSummaryTableName: true, resourcesTableId: true, resourcesTableName: true, rollupResourceUsageSummaryFunction: true, schemaId: true, scope: true } }).execute(); // Create -const created = await db.resourceModule.create({ data: { apiName: '', databaseId: '', defaultPermissions: '', entityField: '', entityTableId: '', installationStoreName: '', merkleStoreModuleId: '', namespaceModuleId: '', policies: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', provisions: '', publicSchemaName: '', requirementsStateViewName: '', resolvedRequirementsViewName: '', resourceBillingRollupFunction: '', resourceDefinitionsTableId: '', resourceDefinitionsTableName: '', resourceEventsTableId: '', resourceEventsTableName: '', resourceInstallationsTableId: '', resourceInstallationsTableName: '', resourceStatusChecksTableId: '', resourceStatusChecksTableName: '', resourceUsageLogTableId: '', resourceUsageLogTableName: '', resourceUsageSummaryTableId: '', resourceUsageSummaryTableName: '', resourcesTableId: '', resourcesTableName: '', rollupResourceUsageSummaryFunction: '', schemaId: '', scope: '' }, select: { id: true } }).execute(); +const created = await db.resourceModule.create({ data: { apiName: '', databaseId: '', defaultCapabilities: '', entityField: '', entityTableId: '', installationStoreName: '', merkleStoreModuleId: '', namespaceModuleId: '', policies: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', provisions: '', publicSchemaName: '', requirementsStateViewName: '', resolvedRequirementsViewName: '', resourceBillingRollupFunction: '', resourceDefinitionsTableId: '', resourceDefinitionsTableName: '', resourceEventsTableId: '', resourceEventsTableName: '', resourceInstallationsTableId: '', resourceInstallationsTableName: '', resourceStatusChecksTableId: '', resourceStatusChecksTableName: '', resourceUsageLogTableId: '', resourceUsageLogTableName: '', resourceUsageSummaryTableId: '', resourceUsageSummaryTableName: '', resourcesTableId: '', resourcesTableName: '', rollupResourceUsageSummaryFunction: '', schemaId: '', scope: '' }, select: { id: true } }).execute(); // Update const updated = await db.resourceModule.update({ where: { id: '' }, data: { apiName: '' }, select: { id: true } }).execute(); @@ -2947,9 +3181,11 @@ CRUD operations for RouteModule records. | Field | Type | Editable | |-------|------|----------| | `apiName` | String | Yes | +| `appLinksFunctionName` | String | Yes | | `catalogModuleId` | UUID | Yes | | `databaseId` | UUID | Yes | -| `defaultPermissions` | String | Yes | +| `deepLinkFunctionName` | String | Yes | +| `defaultCapabilities` | String | Yes | | `domainModuleId` | UUID | Yes | | `entityField` | String | Yes | | `entityTableId` | UUID | Yes | @@ -2975,13 +3211,13 @@ CRUD operations for RouteModule records. ```typescript // List all routeModule records -const items = await db.routeModule.findMany({ select: { apiName: true, catalogModuleId: true, databaseId: true, defaultPermissions: true, domainModuleId: true, entityField: true, entityTableId: true, hostnameBindingsTableId: true, hostnameBindingsTableName: true, id: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provisions: true, publicSchemaName: true, resolverFunctionName: true, routeBindingsTableId: true, routeBindingsTableName: true, routesTableId: true, routesTableName: true, schemaId: true, scope: true } }).execute(); +const items = await db.routeModule.findMany({ select: { apiName: true, appLinksFunctionName: true, catalogModuleId: true, databaseId: true, deepLinkFunctionName: true, defaultCapabilities: true, domainModuleId: true, entityField: true, entityTableId: true, hostnameBindingsTableId: true, hostnameBindingsTableName: true, id: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provisions: true, publicSchemaName: true, resolverFunctionName: true, routeBindingsTableId: true, routeBindingsTableName: true, routesTableId: true, routesTableName: true, schemaId: true, scope: true } }).execute(); // Get one by id -const item = await db.routeModule.findOne({ id: '', select: { apiName: true, catalogModuleId: true, databaseId: true, defaultPermissions: true, domainModuleId: true, entityField: true, entityTableId: true, hostnameBindingsTableId: true, hostnameBindingsTableName: true, id: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provisions: true, publicSchemaName: true, resolverFunctionName: true, routeBindingsTableId: true, routeBindingsTableName: true, routesTableId: true, routesTableName: true, schemaId: true, scope: true } }).execute(); +const item = await db.routeModule.findOne({ id: '', select: { apiName: true, appLinksFunctionName: true, catalogModuleId: true, databaseId: true, deepLinkFunctionName: true, defaultCapabilities: true, domainModuleId: true, entityField: true, entityTableId: true, hostnameBindingsTableId: true, hostnameBindingsTableName: true, id: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provisions: true, publicSchemaName: true, resolverFunctionName: true, routeBindingsTableId: true, routeBindingsTableName: true, routesTableId: true, routesTableName: true, schemaId: true, scope: true } }).execute(); // Create -const created = await db.routeModule.create({ data: { apiName: '', catalogModuleId: '', databaseId: '', defaultPermissions: '', domainModuleId: '', entityField: '', entityTableId: '', hostnameBindingsTableId: '', hostnameBindingsTableName: '', policies: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', provisions: '', publicSchemaName: '', resolverFunctionName: '', routeBindingsTableId: '', routeBindingsTableName: '', routesTableId: '', routesTableName: '', schemaId: '', scope: '' }, select: { id: true } }).execute(); +const created = await db.routeModule.create({ data: { apiName: '', appLinksFunctionName: '', catalogModuleId: '', databaseId: '', deepLinkFunctionName: '', defaultCapabilities: '', domainModuleId: '', entityField: '', entityTableId: '', hostnameBindingsTableId: '', hostnameBindingsTableName: '', policies: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', provisions: '', publicSchemaName: '', resolverFunctionName: '', routeBindingsTableId: '', routeBindingsTableName: '', routesTableId: '', routesTableName: '', schemaId: '', scope: '' }, select: { id: true } }).execute(); // Update const updated = await db.routeModule.update({ where: { id: '' }, data: { apiName: '' }, select: { id: true } }).execute(); @@ -2990,6 +3226,39 @@ const updated = await db.routeModule.update({ where: { id: '' }, data: { a const deleted = await db.routeModule.delete({ where: { id: '' } }).execute(); ``` +### `db.scopeTypesModule` + +CRUD operations for ScopeTypesModule records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `databaseId` | UUID | Yes | +| `id` | UUID | No | +| `privateSchemaName` | String | Yes | +| `schemaId` | UUID | Yes | +| `scopeTypesTableId` | UUID | Yes | + +**Operations:** + +```typescript +// List all scopeTypesModule records +const items = await db.scopeTypesModule.findMany({ select: { databaseId: true, id: true, privateSchemaName: true, schemaId: true, scopeTypesTableId: true } }).execute(); + +// Get one by id +const item = await db.scopeTypesModule.findOne({ id: '', select: { databaseId: true, id: true, privateSchemaName: true, schemaId: true, scopeTypesTableId: true } }).execute(); + +// Create +const created = await db.scopeTypesModule.create({ data: { databaseId: '', privateSchemaName: '', schemaId: '', scopeTypesTableId: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.scopeTypesModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.scopeTypesModule.delete({ where: { id: '' } }).execute(); +``` + ### `db.secureTableProvision` CRUD operations for SecureTableProvision records. @@ -3113,7 +3382,7 @@ CRUD operations for SiteSurfaceModule records. | `apiName` | String | Yes | | `catalogModuleId` | UUID | Yes | | `databaseId` | UUID | Yes | -| `defaultPermissions` | String | Yes | +| `defaultCapabilities` | String | Yes | | `entityField` | String | Yes | | `entityTableId` | UUID | Yes | | `id` | UUID | No | @@ -3147,13 +3416,13 @@ CRUD operations for SiteSurfaceModule records. ```typescript // List all siteSurfaceModule records -const items = await db.siteSurfaceModule.findMany({ select: { apiName: true, catalogModuleId: true, databaseId: true, defaultPermissions: true, entityField: true, entityTableId: true, id: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provisions: true, publicSchemaName: true, schemaId: true, scope: true, siteAppLinksTableId: true, siteAppLinksTableName: true, siteDeepLinksTableId: true, siteDeepLinksTableName: true, siteErrorPagesTableId: true, siteErrorPagesTableName: true, siteMetadataTableId: true, siteMetadataTableName: true, siteModulesTableId: true, siteModulesTableName: true, siteThemesTableId: true, siteThemesTableName: true, siteWebConfigTableId: true, siteWebConfigTableName: true, sitesTableId: true, sitesTableName: true } }).execute(); +const items = await db.siteSurfaceModule.findMany({ select: { apiName: true, catalogModuleId: true, databaseId: true, defaultCapabilities: true, entityField: true, entityTableId: true, id: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provisions: true, publicSchemaName: true, schemaId: true, scope: true, siteAppLinksTableId: true, siteAppLinksTableName: true, siteDeepLinksTableId: true, siteDeepLinksTableName: true, siteErrorPagesTableId: true, siteErrorPagesTableName: true, siteMetadataTableId: true, siteMetadataTableName: true, siteModulesTableId: true, siteModulesTableName: true, siteThemesTableId: true, siteThemesTableName: true, siteWebConfigTableId: true, siteWebConfigTableName: true, sitesTableId: true, sitesTableName: true } }).execute(); // Get one by id -const item = await db.siteSurfaceModule.findOne({ id: '', select: { apiName: true, catalogModuleId: true, databaseId: true, defaultPermissions: true, entityField: true, entityTableId: true, id: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provisions: true, publicSchemaName: true, schemaId: true, scope: true, siteAppLinksTableId: true, siteAppLinksTableName: true, siteDeepLinksTableId: true, siteDeepLinksTableName: true, siteErrorPagesTableId: true, siteErrorPagesTableName: true, siteMetadataTableId: true, siteMetadataTableName: true, siteModulesTableId: true, siteModulesTableName: true, siteThemesTableId: true, siteThemesTableName: true, siteWebConfigTableId: true, siteWebConfigTableName: true, sitesTableId: true, sitesTableName: true } }).execute(); +const item = await db.siteSurfaceModule.findOne({ id: '', select: { apiName: true, catalogModuleId: true, databaseId: true, defaultCapabilities: true, entityField: true, entityTableId: true, id: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provisions: true, publicSchemaName: true, schemaId: true, scope: true, siteAppLinksTableId: true, siteAppLinksTableName: true, siteDeepLinksTableId: true, siteDeepLinksTableName: true, siteErrorPagesTableId: true, siteErrorPagesTableName: true, siteMetadataTableId: true, siteMetadataTableName: true, siteModulesTableId: true, siteModulesTableName: true, siteThemesTableId: true, siteThemesTableName: true, siteWebConfigTableId: true, siteWebConfigTableName: true, sitesTableId: true, sitesTableName: true } }).execute(); // Create -const created = await db.siteSurfaceModule.create({ data: { apiName: '', catalogModuleId: '', databaseId: '', defaultPermissions: '', entityField: '', entityTableId: '', policies: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', provisions: '', publicSchemaName: '', schemaId: '', scope: '', siteAppLinksTableId: '', siteAppLinksTableName: '', siteDeepLinksTableId: '', siteDeepLinksTableName: '', siteErrorPagesTableId: '', siteErrorPagesTableName: '', siteMetadataTableId: '', siteMetadataTableName: '', siteModulesTableId: '', siteModulesTableName: '', siteThemesTableId: '', siteThemesTableName: '', siteWebConfigTableId: '', siteWebConfigTableName: '', sitesTableId: '', sitesTableName: '' }, select: { id: true } }).execute(); +const created = await db.siteSurfaceModule.create({ data: { apiName: '', catalogModuleId: '', databaseId: '', defaultCapabilities: '', entityField: '', entityTableId: '', policies: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', provisions: '', publicSchemaName: '', schemaId: '', scope: '', siteAppLinksTableId: '', siteAppLinksTableName: '', siteDeepLinksTableId: '', siteDeepLinksTableName: '', siteErrorPagesTableId: '', siteErrorPagesTableName: '', siteMetadataTableId: '', siteMetadataTableName: '', siteModulesTableId: '', siteModulesTableName: '', siteThemesTableId: '', siteThemesTableName: '', siteWebConfigTableId: '', siteWebConfigTableName: '', sitesTableId: '', sitesTableName: '' }, select: { id: true } }).execute(); // Update const updated = await db.siteSurfaceModule.update({ where: { id: '' }, data: { apiName: '' }, select: { id: true } }).execute(); @@ -3226,8 +3495,8 @@ CRUD operations for StorageModule records. | `catalogModuleId` | UUID | Yes | | `confirmUploadDelay` | Interval | Yes | | `databaseId` | UUID | Yes | +| `defaultCapabilities` | String | Yes | | `defaultMaxFileSize` | BigInt | Yes | -| `defaultPermissions` | String | Yes | | `downloadUrlExpirySeconds` | Int | Yes | | `endpoint` | String | Yes | | `entityField` | String | Yes | @@ -3264,13 +3533,13 @@ CRUD operations for StorageModule records. ```typescript // List all storageModule records -const items = await db.storageModule.findMany({ select: { allowedOrigins: true, apiName: true, bucketsTableId: true, bucketsTableName: true, cacheTtlSeconds: true, catalogModuleId: true, confirmUploadDelay: true, databaseId: true, defaultMaxFileSize: true, defaultPermissions: true, downloadUrlExpirySeconds: true, endpoint: true, entityField: true, entityTableId: true, fileEventsTableId: true, filesTableId: true, filesTableName: true, hasAuditLog: true, hasConfirmUpload: true, hasContentHash: true, hasCustomKeys: true, hasPathShares: true, hasVersioning: true, id: true, maxBulkFiles: true, maxBulkTotalSize: true, maxFilenameLength: true, pathSharesTableId: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provider: true, provisions: true, publicSchemaName: true, publicUrlPrefix: true, restrictReads: true, schemaId: true, scope: true, uploadUrlExpirySeconds: true } }).execute(); +const items = await db.storageModule.findMany({ select: { allowedOrigins: true, apiName: true, bucketsTableId: true, bucketsTableName: true, cacheTtlSeconds: true, catalogModuleId: true, confirmUploadDelay: true, databaseId: true, defaultCapabilities: true, defaultMaxFileSize: true, downloadUrlExpirySeconds: true, endpoint: true, entityField: true, entityTableId: true, fileEventsTableId: true, filesTableId: true, filesTableName: true, hasAuditLog: true, hasConfirmUpload: true, hasContentHash: true, hasCustomKeys: true, hasPathShares: true, hasVersioning: true, id: true, maxBulkFiles: true, maxBulkTotalSize: true, maxFilenameLength: true, pathSharesTableId: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provider: true, provisions: true, publicSchemaName: true, publicUrlPrefix: true, restrictReads: true, schemaId: true, scope: true, uploadUrlExpirySeconds: true } }).execute(); // Get one by id -const item = await db.storageModule.findOne({ id: '', select: { allowedOrigins: true, apiName: true, bucketsTableId: true, bucketsTableName: true, cacheTtlSeconds: true, catalogModuleId: true, confirmUploadDelay: true, databaseId: true, defaultMaxFileSize: true, defaultPermissions: true, downloadUrlExpirySeconds: true, endpoint: true, entityField: true, entityTableId: true, fileEventsTableId: true, filesTableId: true, filesTableName: true, hasAuditLog: true, hasConfirmUpload: true, hasContentHash: true, hasCustomKeys: true, hasPathShares: true, hasVersioning: true, id: true, maxBulkFiles: true, maxBulkTotalSize: true, maxFilenameLength: true, pathSharesTableId: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provider: true, provisions: true, publicSchemaName: true, publicUrlPrefix: true, restrictReads: true, schemaId: true, scope: true, uploadUrlExpirySeconds: true } }).execute(); +const item = await db.storageModule.findOne({ id: '', select: { allowedOrigins: true, apiName: true, bucketsTableId: true, bucketsTableName: true, cacheTtlSeconds: true, catalogModuleId: true, confirmUploadDelay: true, databaseId: true, defaultCapabilities: true, defaultMaxFileSize: true, downloadUrlExpirySeconds: true, endpoint: true, entityField: true, entityTableId: true, fileEventsTableId: true, filesTableId: true, filesTableName: true, hasAuditLog: true, hasConfirmUpload: true, hasContentHash: true, hasCustomKeys: true, hasPathShares: true, hasVersioning: true, id: true, maxBulkFiles: true, maxBulkTotalSize: true, maxFilenameLength: true, pathSharesTableId: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provider: true, provisions: true, publicSchemaName: true, publicUrlPrefix: true, restrictReads: true, schemaId: true, scope: true, uploadUrlExpirySeconds: true } }).execute(); // Create -const created = await db.storageModule.create({ data: { allowedOrigins: '', apiName: '', bucketsTableId: '', bucketsTableName: '', cacheTtlSeconds: '', catalogModuleId: '', confirmUploadDelay: '', databaseId: '', defaultMaxFileSize: '', defaultPermissions: '', downloadUrlExpirySeconds: '', endpoint: '', entityField: '', entityTableId: '', fileEventsTableId: '', filesTableId: '', filesTableName: '', hasAuditLog: '', hasConfirmUpload: '', hasContentHash: '', hasCustomKeys: '', hasPathShares: '', hasVersioning: '', maxBulkFiles: '', maxBulkTotalSize: '', maxFilenameLength: '', pathSharesTableId: '', policies: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', provider: '', provisions: '', publicSchemaName: '', publicUrlPrefix: '', restrictReads: '', schemaId: '', scope: '', uploadUrlExpirySeconds: '' }, select: { id: true } }).execute(); +const created = await db.storageModule.create({ data: { allowedOrigins: '', apiName: '', bucketsTableId: '', bucketsTableName: '', cacheTtlSeconds: '', catalogModuleId: '', confirmUploadDelay: '', databaseId: '', defaultCapabilities: '', defaultMaxFileSize: '', downloadUrlExpirySeconds: '', endpoint: '', entityField: '', entityTableId: '', fileEventsTableId: '', filesTableId: '', filesTableName: '', hasAuditLog: '', hasConfirmUpload: '', hasContentHash: '', hasCustomKeys: '', hasPathShares: '', hasVersioning: '', maxBulkFiles: '', maxBulkTotalSize: '', maxFilenameLength: '', pathSharesTableId: '', policies: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', provider: '', provisions: '', publicSchemaName: '', publicUrlPrefix: '', restrictReads: '', schemaId: '', scope: '', uploadUrlExpirySeconds: '' }, select: { id: true } }).execute(); // Update const updated = await db.storageModule.update({ where: { id: '' }, data: { allowedOrigins: '' }, select: { id: true } }).execute(); @@ -3453,6 +3722,41 @@ const updated = await db.userSettingsModule.update({ where: { id: '' }, da const deleted = await db.userSettingsModule.delete({ where: { id: '' } }).execute(); ``` +### `db.userSettingsSecurityModule` + +CRUD operations for UserSettingsSecurityModule records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `apiName` | String | Yes | +| `databaseId` | UUID | Yes | +| `id` | UUID | No | +| `ownerTableId` | UUID | Yes | +| `schemaId` | UUID | Yes | +| `tableId` | UUID | Yes | +| `tableName` | String | Yes | + +**Operations:** + +```typescript +// List all userSettingsSecurityModule records +const items = await db.userSettingsSecurityModule.findMany({ select: { apiName: true, databaseId: true, id: true, ownerTableId: true, schemaId: true, tableId: true, tableName: true } }).execute(); + +// Get one by id +const item = await db.userSettingsSecurityModule.findOne({ id: '', select: { apiName: true, databaseId: true, id: true, ownerTableId: true, schemaId: true, tableId: true, tableName: true } }).execute(); + +// Create +const created = await db.userSettingsSecurityModule.create({ data: { apiName: '', databaseId: '', ownerTableId: '', schemaId: '', tableId: '', tableName: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.userSettingsSecurityModule.update({ where: { id: '' }, data: { apiName: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.userSettingsSecurityModule.delete({ where: { id: '' } }).execute(); +``` + ### `db.userStateModule` CRUD operations for UserStateModule records. @@ -3615,7 +3919,7 @@ CRUD operations for WebhookModule records. |-------|------|----------| | `apiName` | String | Yes | | `databaseId` | UUID | Yes | -| `defaultPermissions` | String | Yes | +| `defaultCapabilities` | String | Yes | | `entityField` | String | Yes | | `entityTableId` | UUID | Yes | | `functionInvocationModuleId` | UUID | Yes | @@ -3641,13 +3945,13 @@ CRUD operations for WebhookModule records. ```typescript // List all webhookModule records -const items = await db.webhookModule.findMany({ select: { apiName: true, databaseId: true, defaultPermissions: true, entityField: true, entityTableId: true, functionInvocationModuleId: true, functionModuleId: true, id: true, infraSecretsModuleId: true, namespaceModuleId: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provisions: true, publicSchemaName: true, schemaId: true, scope: true, webhookEndpointsTableId: true, webhookEndpointsTableName: true, webhookEventsTableId: true, webhookEventsTableName: true } }).execute(); +const items = await db.webhookModule.findMany({ select: { apiName: true, databaseId: true, defaultCapabilities: true, entityField: true, entityTableId: true, functionInvocationModuleId: true, functionModuleId: true, id: true, infraSecretsModuleId: true, namespaceModuleId: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provisions: true, publicSchemaName: true, schemaId: true, scope: true, webhookEndpointsTableId: true, webhookEndpointsTableName: true, webhookEventsTableId: true, webhookEventsTableName: true } }).execute(); // Get one by id -const item = await db.webhookModule.findOne({ id: '', select: { apiName: true, databaseId: true, defaultPermissions: true, entityField: true, entityTableId: true, functionInvocationModuleId: true, functionModuleId: true, id: true, infraSecretsModuleId: true, namespaceModuleId: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provisions: true, publicSchemaName: true, schemaId: true, scope: true, webhookEndpointsTableId: true, webhookEndpointsTableName: true, webhookEventsTableId: true, webhookEventsTableName: true } }).execute(); +const item = await db.webhookModule.findOne({ id: '', select: { apiName: true, databaseId: true, defaultCapabilities: true, entityField: true, entityTableId: true, functionInvocationModuleId: true, functionModuleId: true, id: true, infraSecretsModuleId: true, namespaceModuleId: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provisions: true, publicSchemaName: true, schemaId: true, scope: true, webhookEndpointsTableId: true, webhookEndpointsTableName: true, webhookEventsTableId: true, webhookEventsTableName: true } }).execute(); // Create -const created = await db.webhookModule.create({ data: { apiName: '', databaseId: '', defaultPermissions: '', entityField: '', entityTableId: '', functionInvocationModuleId: '', functionModuleId: '', infraSecretsModuleId: '', namespaceModuleId: '', policies: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', provisions: '', publicSchemaName: '', schemaId: '', scope: '', webhookEndpointsTableId: '', webhookEndpointsTableName: '', webhookEventsTableId: '', webhookEventsTableName: '' }, select: { id: true } }).execute(); +const created = await db.webhookModule.create({ data: { apiName: '', databaseId: '', defaultCapabilities: '', entityField: '', entityTableId: '', functionInvocationModuleId: '', functionModuleId: '', infraSecretsModuleId: '', namespaceModuleId: '', policies: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', provisions: '', publicSchemaName: '', schemaId: '', scope: '', webhookEndpointsTableId: '', webhookEndpointsTableName: '', webhookEventsTableId: '', webhookEventsTableName: '' }, select: { id: true } }).execute(); // Update const updated = await db.webhookModule.update({ where: { id: '' }, data: { apiName: '' }, select: { id: true } }).execute(); @@ -3658,42 +3962,6 @@ const deleted = await db.webhookModule.delete({ where: { id: '' } }).execu ## Custom Operations -### `db.query.resolveBlueprintField` - -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. - -- **Type:** query -- **Arguments:** - - | Argument | Type | - |----------|------| - | `databaseId` | UUID | - | `fieldName` | String | - | `tableId` | UUID | - -```typescript -const result = await db.query.resolveBlueprintField({ databaseId: '', fieldName: '', tableId: '' }).execute(); -``` - -### `db.query.resolveBlueprintTable` - -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. - -- **Type:** query -- **Arguments:** - - | Argument | Type | - |----------|------| - | `databaseId` | UUID | - | `defaultSchemaId` | UUID | - | `schemaName` | String | - | `tableMap` | JSON | - | `tableName` | String | - -```typescript -const result = await db.query.resolveBlueprintTable({ databaseId: '', defaultSchemaId: '', schemaName: '', tableMap: '', tableName: '' }).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. 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 function_module is installed, 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. @@ -3742,111 +4010,6 @@ and lifecycle settings. const result = await db.mutation.provisionBucket({ input: { bucketKey: '', ownerId: '' } }).execute(); ``` -### `db.mutation.provisionCheckConstraint` - -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. - -- **Type:** mutation -- **Arguments:** - - | Argument | Type | - |----------|------| - | `input` | ProvisionCheckConstraintInput (required) | - -```typescript -const result = await db.mutation.provisionCheckConstraint({ input: { databaseId: '', definition: '', tableId: '' } }).execute(); -``` - -### `db.mutation.provisionFullTextSearch` - -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. - -- **Type:** mutation -- **Arguments:** - - | Argument | Type | - |----------|------| - | `input` | ProvisionFullTextSearchInput (required) | - -```typescript -const result = await db.mutation.provisionFullTextSearch({ input: { databaseId: '', definition: '', tableId: '' } }).execute(); -``` - -### `db.mutation.provisionIndex` - -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. - -- **Type:** mutation -- **Arguments:** - - | Argument | Type | - |----------|------| - | `input` | ProvisionIndexInput (required) | - -```typescript -const result = await db.mutation.provisionIndex({ input: { databaseId: '', definition: '', tableId: '' } }).execute(); -``` - -### `db.mutation.provisionRelation` - -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). - -- **Type:** mutation -- **Arguments:** - - | Argument | Type | - |----------|------| - | `input` | ProvisionRelationInput (required) | - -```typescript -const result = await db.mutation.provisionRelation({ input: '' }).execute(); -``` - -### `db.mutation.provisionSpatialRelation` - -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. - -- **Type:** mutation -- **Arguments:** - - | Argument | Type | - |----------|------| - | `input` | ProvisionSpatialRelationInput (required) | - -```typescript -const result = await db.mutation.provisionSpatialRelation({ input: '' }).execute(); -``` - -### `db.mutation.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). - -- **Type:** mutation -- **Arguments:** - - | Argument | Type | - |----------|------| - | `input` | ProvisionTableInput (required) | - -```typescript -const result = await db.mutation.provisionTable({ input: '' }).execute(); -``` - -### `db.mutation.provisionUniqueConstraint` - -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. - -- **Type:** mutation -- **Arguments:** - - | Argument | Type | - |----------|------| - | `input` | ProvisionUniqueConstraintInput (required) | - -```typescript -const result = await db.mutation.provisionUniqueConstraint({ input: { databaseId: '', definition: '', tableId: '' } }).execute(); -``` - --- Built by the [Constructive](https://constructive.io) team. diff --git a/sdk/constructive-sdk/src/modules/orm/index.ts b/sdk/constructive-sdk/src/modules/orm/index.ts index 0951126688..249a7e5114 100644 --- a/sdk/constructive-sdk/src/modules/orm/index.ts +++ b/sdk/constructive-sdk/src/modules/orm/index.ts @@ -13,12 +13,15 @@ import { BillingProviderModuleModel } from './models/billingProviderModule'; import { BlueprintModel } from './models/blueprint'; import { BlueprintConstructionModel } from './models/blueprintConstruction'; import { BlueprintTemplateModel } from './models/blueprintTemplate'; +import { CapabilitiesModuleModel } from './models/capabilitiesModule'; import { CatalogModuleModel } from './models/catalogModule'; import { ComputeLogModuleModel } from './models/computeLogModule'; import { ConfigSecretsUserModuleModel } from './models/configSecretsUserModule'; import { ConnectedAccountsModuleModel } from './models/connectedAccountsModule'; +import { ContentPresetModuleModel } from './models/contentPresetModule'; import { CryptoAddressesModuleModel } from './models/cryptoAddressesModule'; import { CryptoAuthModuleModel } from './models/cryptoAuthModule'; +import { DataCapabilitiesFieldModel } from './models/dataCapabilitiesField'; import { DatabaseProvisionModuleModel } from './models/databaseProvisionModule'; import { DatabaseSettingsModuleModel } from './models/databaseSettingsModule'; import { DbPoolConfigModel } from './models/dbPoolConfig'; @@ -29,9 +32,11 @@ import { DefaultIdsModuleModel } from './models/defaultIdsModule'; import { DenormalizedTableFieldModel } from './models/denormalizedTableField'; import { DevicesModuleModel } from './models/devicesModule'; import { DomainModuleModel } from './models/domainModule'; +import { EmailSenderModuleModel } from './models/emailSenderModule'; import { EmailsModuleModel } from './models/emailsModule'; import { EntityTypeProvisionModel } from './models/entityTypeProvision'; import { EventsModuleModel } from './models/eventsModule'; +import { FileRefFieldModel } from './models/fileRefField'; import { FunctionDeploymentModuleModel } from './models/functionDeploymentModule'; import { FunctionInvocationModuleModel } from './models/functionInvocationModule'; import { FunctionModuleModel } from './models/functionModule'; @@ -53,8 +58,8 @@ import { MembershipsModuleModel } from './models/membershipsModule'; import { MerkleStoreModuleModel } from './models/merkleStoreModule'; import { NamespaceModuleModel } from './models/namespaceModule'; import { NotificationsModuleModel } from './models/notificationsModule'; +import { OauthRequestsModuleModel } from './models/oauthRequestsModule'; import { PagesModuleModel } from './models/pagesModule'; -import { PermissionsModuleModel } from './models/permissionsModule'; import { PhoneNumbersModuleModel } from './models/phoneNumbersModule'; import { PlansModuleModel } from './models/plansModule'; import { PrincipalAuthModuleModel } from './models/principalAuthModule'; @@ -66,6 +71,7 @@ import { RelationProvisionModel } from './models/relationProvision'; import { ResourceModuleModel } from './models/resourceModule'; import { RlsModuleModel } from './models/rlsModule'; import { RouteModuleModel } from './models/routeModule'; +import { ScopeTypesModuleModel } from './models/scopeTypesModule'; import { SecureTableProvisionModel } from './models/secureTableProvision'; import { SessionSecretsModuleModel } from './models/sessionSecretsModule'; import { SessionsModuleModel } from './models/sessionsModule'; @@ -76,19 +82,18 @@ import { TransferLogModuleModel } from './models/transferLogModule'; import { UserAuthModuleModel } from './models/userAuthModule'; import { UserCredentialsModuleModel } from './models/userCredentialsModule'; import { UserSettingsModuleModel } from './models/userSettingsModule'; +import { UserSettingsSecurityModuleModel } from './models/userSettingsSecurityModule'; import { UserStateModuleModel } from './models/userStateModule'; import { UsersModuleModel } from './models/usersModule'; import { WebauthnAuthModuleModel } from './models/webauthnAuthModule'; import { WebauthnCredentialsModuleModel } from './models/webauthnCredentialsModule'; import { WebhookModuleModel } from './models/webhookModule'; -import { createQueryOperations } from './query'; import { createMutationOperations } from './mutation'; export type { OrmClientConfig, QueryResult, GraphQLError, GraphQLAdapter } from './client'; export { GraphQLRequestError, FetchAdapter } from './client'; export { QueryBuilder } from './query-builder'; export * from './select-types'; export * from './models'; -export { createQueryOperations } from './query'; export { createMutationOperations } from './mutation'; /** * Create an ORM client instance @@ -124,12 +129,15 @@ export function createClient(config: OrmClientConfig) { blueprint: new BlueprintModel(client), blueprintConstruction: new BlueprintConstructionModel(client), blueprintTemplate: new BlueprintTemplateModel(client), + capabilitiesModule: new CapabilitiesModuleModel(client), catalogModule: new CatalogModuleModel(client), computeLogModule: new ComputeLogModuleModel(client), configSecretsUserModule: new ConfigSecretsUserModuleModel(client), connectedAccountsModule: new ConnectedAccountsModuleModel(client), + contentPresetModule: new ContentPresetModuleModel(client), cryptoAddressesModule: new CryptoAddressesModuleModel(client), cryptoAuthModule: new CryptoAuthModuleModel(client), + dataCapabilitiesField: new DataCapabilitiesFieldModel(client), databaseProvisionModule: new DatabaseProvisionModuleModel(client), databaseSettingsModule: new DatabaseSettingsModuleModel(client), dbPoolConfig: new DbPoolConfigModel(client), @@ -140,9 +148,11 @@ export function createClient(config: OrmClientConfig) { denormalizedTableField: new DenormalizedTableFieldModel(client), devicesModule: new DevicesModuleModel(client), domainModule: new DomainModuleModel(client), + emailSenderModule: new EmailSenderModuleModel(client), emailsModule: new EmailsModuleModel(client), entityTypeProvision: new EntityTypeProvisionModel(client), eventsModule: new EventsModuleModel(client), + fileRefField: new FileRefFieldModel(client), functionDeploymentModule: new FunctionDeploymentModuleModel(client), functionInvocationModule: new FunctionInvocationModuleModel(client), functionModule: new FunctionModuleModel(client), @@ -164,8 +174,8 @@ export function createClient(config: OrmClientConfig) { merkleStoreModule: new MerkleStoreModuleModel(client), namespaceModule: new NamespaceModuleModel(client), notificationsModule: new NotificationsModuleModel(client), + oauthRequestsModule: new OauthRequestsModuleModel(client), pagesModule: new PagesModuleModel(client), - permissionsModule: new PermissionsModuleModel(client), phoneNumbersModule: new PhoneNumbersModuleModel(client), plansModule: new PlansModuleModel(client), principalAuthModule: new PrincipalAuthModuleModel(client), @@ -177,6 +187,7 @@ export function createClient(config: OrmClientConfig) { resourceModule: new ResourceModuleModel(client), rlsModule: new RlsModuleModel(client), routeModule: new RouteModuleModel(client), + scopeTypesModule: new ScopeTypesModuleModel(client), secureTableProvision: new SecureTableProvisionModel(client), sessionSecretsModule: new SessionSecretsModuleModel(client), sessionsModule: new SessionsModuleModel(client), @@ -187,12 +198,12 @@ export function createClient(config: OrmClientConfig) { userAuthModule: new UserAuthModuleModel(client), userCredentialsModule: new UserCredentialsModuleModel(client), userSettingsModule: new UserSettingsModuleModel(client), + userSettingsSecurityModule: new UserSettingsSecurityModuleModel(client), userStateModule: new UserStateModuleModel(client), usersModule: new UsersModuleModel(client), webauthnAuthModule: new WebauthnAuthModuleModel(client), webauthnCredentialsModule: new WebauthnCredentialsModuleModel(client), webhookModule: new WebhookModuleModel(client), - query: createQueryOperations(client), mutation: createMutationOperations(client), }; } diff --git a/sdk/constructive-sdk/src/modules/orm/input-types.ts b/sdk/constructive-sdk/src/modules/orm/input-types.ts index ed552e4810..27a0a0b958 100644 --- a/sdk/constructive-sdk/src/modules/orm/input-types.ts +++ b/sdk/constructive-sdk/src/modules/orm/input-types.ts @@ -236,7 +236,7 @@ export interface AgentModule { agentTableName?: string | null; apiName?: string | null; databaseId?: string | null; - defaultPermissions?: string[] | null; + defaultCapabilities?: string[] | null; entityField?: string | null; entityTableId?: string | null; hasAgents?: boolean | null; @@ -281,7 +281,7 @@ export interface ApiSurfaceModule { corsSettingsTableId?: string | null; corsSettingsTableName?: string | null; databaseId?: string | null; - defaultPermissions?: string[] | null; + defaultCapabilities?: string[] | null; entityField?: string | null; entityTableId?: string | null; id: string; @@ -301,7 +301,7 @@ export interface AppModule { appsTableName?: string | null; catalogModuleId?: string | null; databaseId?: string | null; - defaultPermissions?: string[] | null; + defaultCapabilities?: string[] | null; entityField?: string | null; entityTableId?: string | null; id: string; @@ -320,8 +320,8 @@ export interface BillingModule { balancesTableId?: string | null; balancesTableName?: string | null; databaseId?: string | null; + defaultCapabilities?: string[] | null; defaultMeterCatalog?: Record | null; - defaultPermissions?: string[] | null; id: string; ledgerTableId?: string | null; ledgerTableName?: string | null; @@ -349,16 +349,22 @@ export interface BillingProviderModule { apiName?: string | null; billingCustomersTableId?: string | null; billingCustomersTableName?: string | null; + billingInvoicesTableId?: string | null; + billingInvoicesTableName?: string | null; billingPricesTableId?: string | null; billingPricesTableName?: string | null; billingProductsTableId?: string | null; billingProductsTableName?: string | null; + billingRefundsTableId?: string | null; + billingRefundsTableName?: string | null; billingSubscriptionsTableId?: string | null; billingSubscriptionsTableName?: string | null; billingWebhookEventsTableId?: string | null; billingWebhookEventsTableName?: string | null; databaseId?: string | null; id: string; + listPendingUsageSyncFunction?: string | null; + markUsageSyncedFunction?: string | null; prefix?: string | null; pricesTableId?: string | null; privateApiName?: string | null; @@ -366,8 +372,10 @@ export interface BillingProviderModule { processBillingEventFunction?: string | null; productsTableId?: string | null; provider?: string | null; + recordRefundFunction?: string | null; schemaId?: string | null; subscriptionsTableId?: string | null; + upsertInvoiceFunction?: string | null; } /** An owned, editable blueprint scoped to a specific database. Created by copying from a blueprint_template via copy_template_to_blueprint() or built from scratch. The owner can customize the definition at any time. Execute it with construct_blueprint() which creates a separate blueprint_construction record to track the build. */ export interface Blueprint { @@ -464,16 +472,42 @@ export interface BlueprintTemplate { /** Access control for the template. private: only the owner can see and copy. public: anyone can browse and copy from the marketplace. Defaults to private. */ visibility?: string | null; } +export interface CapabilitiesModule { + actorTableId?: string | null; + apiName?: string | null; + bitlen?: number | null; + databaseId?: string | null; + defaultTableId?: string | null; + defaultTableName?: string | null; + entityField?: string | null; + entityTableId?: string | null; + getByMask?: string | null; + getMask?: string | null; + getMaskByName?: string | null; + getPaddedMask?: string | null; + id: string; + prefix?: string | null; + privateApiName?: string | null; + privateSchemaId?: string | null; + privateSchemaName?: string | null; + publicSchemaName?: string | null; + schemaId?: string | null; + scope?: string | null; + tableId?: string | null; + tableName?: string | null; +} export interface CatalogModule { apiName?: string | null; apisTableId?: string | null; apisTableName?: string | null; appsTableId?: string | null; appsTableName?: string | null; + bindingsTableId?: string | null; + bindingsTableName?: string | null; bucketsTableId?: string | null; bucketsTableName?: string | null; databaseId?: string | null; - defaultPermissions?: string[] | null; + defaultCapabilities?: string[] | null; domainsTableId?: string | null; domainsTableName?: string | null; entityTableId?: string | null; @@ -548,6 +582,25 @@ export interface ConnectedAccountsModule { tableId?: string | null; tableName?: string | null; } +export interface ContentPresetModule { + apiName?: string | null; + contentPresetsTableId?: string | null; + createdAt?: string | null; + databaseId?: string | null; + entityTableId?: string | null; + id: string; + merkleStoreModuleId?: string | null; + policies?: Record | null; + prefix?: string | null; + privateApiName?: string | null; + privateSchemaId?: string | null; + privateSchemaName?: string | null; + provisions?: Record | null; + publicSchemaId?: string | null; + publicSchemaName?: string | null; + scope?: string | null; + storeName?: string | null; +} export interface CryptoAddressesModule { apiName?: string | null; cryptoNetwork?: string | null; @@ -576,6 +629,19 @@ export interface CryptoAuthModule { userField?: string | null; usersTableId?: string | null; } +export interface DataCapabilitiesField { + capabilitiesModuleId?: string | null; + databaseId?: string | null; + fieldId?: string | null; + fromFieldId?: string | null; + id: string; + mappingFieldId?: string | null; + mappingKeyFieldId?: string | null; + mappingTableId?: string | null; + mode?: string | null; + subsetGuard?: boolean | null; + tableId?: 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 { /** When true, cold provisioning runs in the database:provision background job and the insert returns a pending ticket; when false, provisioning runs inline in the insert trigger */ @@ -598,7 +664,7 @@ export interface DatabaseProvisionModule { /** Uniform billing anchor: when the request was fulfilled with a usable database (cold provision completion or warm pool claim). Platform absorbs all provisioning compute before this point */ fulfilledAt?: string | null; id: string; - /** JSONB array of modules to install. Each element is either a string ("users_module") or a [name, options] tuple (["permissions_module", {"scope": "app"}]) */ + /** JSONB array of modules to install. Each element is either a string ("users_module") or a [name, options] tuple (["capabilities_module", {"scope": "app"}]) */ modules?: Record | null; /** Additional configuration options for provisioning */ options?: Record | null; @@ -617,7 +683,7 @@ export interface DatabaseSettingsModule { databaseId?: string | null; databaseSettingsTableId?: string | null; databaseSettingsTableName?: string | null; - defaultPermissions?: string[] | null; + defaultCapabilities?: string[] | null; entityField?: string | null; entityTableId?: string | null; id: string; @@ -701,7 +767,7 @@ export interface DbUsageModule { collectDbQueryStatsFunction?: string | null; collectDbTableStatsFunction?: string | null; databaseId?: string | null; - defaultPermissions?: string[] | null; + defaultCapabilities?: string[] | null; entityField?: string | null; id: string; interval?: string | null; @@ -756,7 +822,7 @@ export interface DomainModule { apiName?: string | null; catalogModuleId?: string | null; databaseId?: string | null; - defaultPermissions?: string[] | null; + defaultCapabilities?: string[] | null; domainEventsTableId?: string | null; domainEventsTableName?: string | null; domainVerificationsTableId?: string | null; @@ -778,6 +844,28 @@ export interface DomainModule { schemaId?: string | null; scope?: string | null; } +export interface EmailSenderModule { + apiName?: string | null; + databaseId?: string | null; + defaultCapabilities?: string[] | null; + emailIdentitiesTableId?: string | null; + emailIdentitiesTableName?: string | null; + emailProviderAccountsTableId?: string | null; + emailProviderAccountsTableName?: string | null; + emailSiteIdentitiesTableId?: string | null; + emailSiteIdentitiesTableName?: string | null; + entityField?: string | null; + entityTableId?: string | null; + id: string; + policies?: Record | null; + prefix?: string | null; + privateApiName?: string | null; + provisions?: Record | null; + publicSchemaName?: string | null; + schemaId?: string | null; + scope?: string | null; + siteSurfaceModuleId?: string | null; +} export interface EmailsModule { apiName?: string | null; databaseId?: string | null; @@ -791,7 +879,7 @@ export interface EmailsModule { } /** * Provisions a new membership entity type. Each INSERT creates an entity table, registers a membership type, - * and installs the required modules (permissions, memberships, limits) plus optional modules (profiles, levels, invites). + * and installs the required modules (capabilities, memberships, limits) plus optional modules (profiles, levels, invites). * Uses provision_membership_table() internally. Graceful: duplicate (database_id, prefix) pairs are silently skipped * via the unique constraint (use INSERT ... ON CONFLICT DO NOTHING). * Policy behavior: by default the five entity-table RLS policies are applied (gated by is_visible). @@ -813,7 +901,7 @@ export interface EntityTypeProvision { * - policies (jsonb array) RLS policy overrides. NULL = apply defaults from apply_function_security(). * Creates {prefix}_function_definitions (or {prefix}_{key}_function_definitions for non-default keys) * with entity-scoped RLS and a job trigger dispatching function:provision tasks. - * Registers manage_functions + invoke_functions permission bits on first provision. + * Registers manage_functions + invoke_functions capability bits on first provision. * Example: functions := '[{}]'::jsonb */ functions?: Record | null; @@ -823,9 +911,9 @@ export interface EntityTypeProvision { * Each element recognizes (all optional): * - key (text) module discriminator. Defaults to 'default'. * - policies (jsonb array) RLS policy overrides. NULL = apply defaults from apply_graph_security(). - * Registers manage_graphs + execute_graphs permission bits on first provision. + * Registers manage_graphs + execute_graphs capability bits on first provision. * Graph module requires a merkle_store_module_id dependency, so entity_type_provision - * only registers permissions here. The graph module itself must be provisioned + * only registers capabilities here. The graph module itself must be provisioned * separately with the merkle store dependency resolved. * Example: graphs := '[{}]'::jsonb */ @@ -865,8 +953,11 @@ export interface EntityTypeProvision { hasLimits?: boolean | null; /** * Whether to provision profiles_module for this type. Defaults to false. - * Profiles provide named permission roles (e.g. 'Editor', 'Viewer') with pre-configured permission bitmasks. - * When true, creates profile tables and applies profiles security. + * Profiles provide named capability roles (e.g. 'Editor', 'Viewer') with pre-configured capability bitmasks. + * When true, creates profile tables and applies profiles security. A membership may hold + * any number of profiles: the membership_profiles assignment table holds every profile a + * membership holds and the membership mask is granted | bit_or(held profile masks), with + * memberships.profile_id kept as a pointer at one held profile. */ hasProfiles?: boolean | null; /** Unique identifier for this provision row. */ @@ -893,7 +984,7 @@ export interface EntityTypeProvision { * - policies (jsonb array) RLS policy overrides. NULL = apply defaults from apply_namespace_security(). * Creates {prefix}_namespaces (or {prefix}_{key}_namespaces for non-default keys) * with entity-scoped RLS (AuthzEntityMembership) and a rename proxy trigger. - * Registers manage_namespaces permission bit on first provision. + * Registers manage_namespaces capability bit on first provision. * Example: namespaces := '[{}]'::jsonb */ namespaces?: Record | null; @@ -915,7 +1006,7 @@ export interface EntityTypeProvision { outGraphModuleId?: string | null; outGraphsTableId?: string | null; /** - * Output: array of installed module labels (e.g. ARRAY['permissions_module:data_room', 'memberships_module:data_room', 'invites_module:data_room']). + * Output: array of installed module labels (e.g. ARRAY['capabilities_module:data_room', 'memberships_module:data_room', 'invites_module:data_room']). * Populated by the trigger. Useful for verifying which modules were provisioned. */ outInstalledModules?: string[] | null; @@ -959,7 +1050,7 @@ export interface EntityTypeProvision { parentEntity?: string | null; /** * SQL prefix used for table and module naming, e.g. 'data_room', 'team_channel'. Required. - * Drives entity table name (prefix || 's' by default), module labels (permissions_module:prefix), + * Drives entity table name (prefix || 's' by default), module labels (capabilities_module:prefix), * and membership table names (prefix_memberships, prefix_members, etc.). * Must be unique per database — the (database_id, prefix) constraint ensures graceful ON CONFLICT DO NOTHING. */ @@ -973,8 +1064,8 @@ export interface EntityTypeProvision { * Defaults (applied when table_provision IS NULL and skip_entity_policies=false): * - SELECT (parent_member): parent entity members can see child entities (only when is_visible=true) * - SELECT (self_member): direct members of the entity can see it - * - INSERT: create_entity permission on the parent entity - * - UPDATE: admin_entity permission on the entity itself + * - INSERT: create_entity capability on the parent entity + * - UPDATE: admin_entity capability on the entity itself * - DELETE: owner of the entity can delete it */ skipEntityPolicies?: boolean | null; @@ -993,7 +1084,7 @@ export interface EntityTypeProvision { * - 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 + * - restrict_reads (boolean) require read_files capability 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 @@ -1019,7 +1110,7 @@ export interface EntityTypeProvision { tableName?: string | null; /** * Single jsonb object describing the full security setup to apply to the entity table. - * Uses the same vocabulary as metaschema_modules_public.provision_table() and blueprint tables[] + * Uses the same vocabulary as metaschema_modules_private.provision_table() and blueprint tables[] * entries, so an entity table is configured the same way an ordinary blueprint table is. * Defaults to NULL; when non-NULL, the five default policies are implicitly replaced by * table_provision.policies[] (is_visible becomes a no-op on this path). @@ -1056,7 +1147,7 @@ export interface EventsModule { actorTableId?: string | null; apiName?: string | null; databaseId?: string | null; - defaultPermissions?: string[] | null; + defaultCapabilities?: string[] | null; entityField?: string | null; entityTableId?: string | null; eventAggregatesTableId?: string | null; @@ -1065,6 +1156,7 @@ export interface EventsModule { eventTypesTableName?: string | null; eventsTableId?: string | null; eventsTableName?: string | null; + expireGrants?: string | null; grantAchievement?: string | null; id: string; interval?: string | null; @@ -1081,9 +1173,11 @@ export interface EventsModule { privateSchemaId?: string | null; privateSchemaName?: string | null; publicSchemaName?: string | null; + recomputeCapabilities?: string | null; recordEvent?: string | null; removeEvent?: string | null; retention?: string | null; + revokeAchievement?: string | null; schemaId?: string | null; scope?: string | null; stepsRequired?: string | null; @@ -1093,13 +1187,26 @@ export interface EventsModule { tgEventBool?: string | null; tgEventToggle?: string | null; tgEventToggleBool?: string | null; + tgLevelGrantSync?: string | null; tgUpdateAggregates?: string | null; + trustLadder?: Record | null; upsertAggregate?: string | null; } +export interface FileRefField { + bucketKey?: string | null; + bucketTags?: string[] | null; + databaseId?: string | null; + enforceFk?: boolean | null; + fieldId?: string | null; + id: string; + isPublic?: boolean | null; + storageModuleId?: string | null; + tableId?: string | null; +} export interface FunctionDeploymentModule { apiName?: string | null; databaseId?: string | null; - defaultPermissions?: string[] | null; + defaultCapabilities?: string[] | null; deploymentEventsTableId?: string | null; deploymentEventsTableName?: string | null; deploymentsTableId?: string | null; @@ -1124,7 +1231,7 @@ export interface FunctionInvocationModule { attemptsTableId?: string | null; attemptsTableName?: string | null; databaseId?: string | null; - defaultPermissions?: string[] | null; + defaultCapabilities?: string[] | null; entityField?: string | null; entityTableId?: string | null; executionLogsTableId?: string | null; @@ -1148,7 +1255,7 @@ export interface FunctionModule { bindingsTableName?: string | null; capabilityBindingsTableId?: string | null; databaseId?: string | null; - defaultPermissions?: string[] | null; + defaultCapabilities?: string[] | null; definitionsTableId?: string | null; definitionsTableName?: string | null; entityField?: string | null; @@ -1170,7 +1277,7 @@ export interface GraphExecutionModule { apiName?: string | null; createdAt?: string | null; databaseId?: string | null; - defaultPermissions?: string[] | null; + defaultCapabilities?: string[] | null; entityField?: string | null; entityTableId?: string | null; executionsTableId?: string | null; @@ -1195,7 +1302,7 @@ export interface GraphModule { apiName?: string | null; createdAt?: string | null; databaseId?: string | null; - defaultPermissions?: string[] | null; + defaultCapabilities?: string[] | null; entityField?: string | null; entityTableId?: string | null; graphsTableId?: string | null; @@ -1218,7 +1325,7 @@ export interface HierarchyModule { chartEdgesTableName?: string | null; createdAt?: string | null; databaseId?: string | null; - defaultPermissions?: string[] | null; + defaultCapabilities?: string[] | null; entityField?: string | null; entityTableId?: string | null; getManagersFunction?: string | null; @@ -1239,7 +1346,7 @@ export interface HierarchyModule { export interface HttpRouteModule { apiName?: string | null; databaseId?: string | null; - defaultPermissions?: string[] | null; + defaultCapabilities?: string[] | null; entityField?: string | null; entityTableId?: string | null; functionModuleId?: string | null; @@ -1442,6 +1549,7 @@ export interface LimitsModule { limitCreditsTableId?: string | null; limitDecrementFunction?: string | null; limitDecrementTrigger?: string | null; + limitDefaults?: Record | null; limitIncrementFunction?: string | null; limitIncrementTrigger?: string | null; limitUpdateTrigger?: string | null; @@ -1472,9 +1580,12 @@ export interface MembershipsModule { adminGrantsTableId?: string | null; adminGrantsTableName?: string | null; apiName?: string | null; + capabilitiesTableId?: string | null; + capabilityDefaultCapabilitiesTableId?: string | null; + capabilityDefaultGrantsTableId?: string | null; databaseId?: string | null; + defaultCapabilitiesTableId?: string | null; defaultLimitsTableId?: string | null; - defaultPermissionsTableId?: string | null; entityField?: string | null; entityIdsByMask?: string | null; entityIdsByPerm?: string | null; @@ -1497,9 +1608,6 @@ export interface MembershipsModule { membershipsTableName?: string | null; ownerGrantsTableId?: string | null; ownerGrantsTableName?: string | null; - permissionDefaultGrantsTableId?: string | null; - permissionDefaultPermissionsTableId?: string | null; - permissionsTableId?: string | null; prefix?: string | null; privateApiName?: string | null; privateSchemaId?: string | null; @@ -1511,6 +1619,7 @@ export interface MembershipsModule { } export interface MerkleStoreModule { apiName?: string | null; + capabilityKey?: string | null; commitTableId?: string | null; createdAt?: string | null; databaseId?: string | null; @@ -1518,7 +1627,6 @@ export interface MerkleStoreModule { functionPrefix?: string | null; id: string; objectTableId?: string | null; - permissionKey?: string | null; prefix?: string | null; privateApiName?: string | null; privateSchemaId?: string | null; @@ -1532,7 +1640,7 @@ export interface MerkleStoreModule { export interface NamespaceModule { apiName?: string | null; databaseId?: string | null; - defaultPermissions?: string[] | null; + defaultCapabilities?: string[] | null; entityField?: string | null; entityTableId?: string | null; id: string; @@ -1554,7 +1662,7 @@ export interface NotificationsModule { apiName?: string | null; channelsTableId?: string | null; databaseId?: string | null; - defaultPermissions?: string[] | null; + defaultCapabilities?: string[] | null; deliveryLogTableId?: string | null; entityField?: string | null; hasChannels?: boolean | null; @@ -1576,6 +1684,28 @@ export interface NotificationsModule { suppressionsTableId?: string | null; userSettingsTableId?: string | null; } +/** + * Config row for the oauth_requests_module, which provisions the in-flight half of an SSO + * sign-in: the OAuth authorization requests table (state + PKCE code_verifier) and the + * pending identity links table (a verified identity parked under a single-use ticket), + * both private, plus the five SECURITY DEFINER procedures that are their only surface. + * Sibling of identity_providers_module (durable provider configuration) rather than part + * of it: this is ephemeral, purged flow state with its own retention. + */ +export interface OauthRequestsModule { + databaseId?: string | null; + entityField?: string | null; + entityTableId?: string | null; + id: string; + oauthAuthorizationRequestsTableId?: string | null; + oauthAuthorizationRequestsTableName?: string | null; + pendingIdentityLinksTableId?: string | null; + pendingIdentityLinksTableName?: string | null; + prefix?: string | null; + privateSchemaId?: string | null; + privateSchemaName?: string | null; + scope?: string | null; +} export interface PagesModule { apiName?: string | null; createdAt?: string | null; @@ -1597,30 +1727,6 @@ export interface PagesModule { sitesTableId?: string | null; storeNamePrefix?: string | null; } -export interface PermissionsModule { - actorTableId?: string | null; - apiName?: string | null; - bitlen?: number | null; - databaseId?: string | null; - defaultTableId?: string | null; - defaultTableName?: string | null; - entityField?: string | null; - entityTableId?: string | null; - getByMask?: string | null; - getMask?: string | null; - getMaskByName?: string | null; - getPaddedMask?: string | null; - id: string; - prefix?: string | null; - privateApiName?: string | null; - privateSchemaId?: string | null; - privateSchemaName?: string | null; - publicSchemaName?: string | null; - schemaId?: string | null; - scope?: string | null; - tableId?: string | null; - tableName?: string | null; -} export interface PhoneNumbersModule { apiName?: string | null; databaseId?: string | null; @@ -1679,22 +1785,24 @@ export interface PrincipalAuthModule { export interface ProfilesModule { actorTableId?: string | null; apiName?: string | null; + capabilitiesTableId?: string | null; databaseId?: string | null; entityField?: string | null; entityTableId?: string | null; id: string; + membershipProfilesTableId?: string | null; + membershipProfilesTableName?: string | null; membershipsTableId?: string | null; - permissionsTableId?: string | null; prefix?: string | null; privateApiName?: string | null; privateSchemaId?: string | null; privateSchemaName?: string | null; + profileCapabilitiesTableId?: string | null; + profileCapabilitiesTableName?: string | null; profileDefinitionGrantsTableId?: string | null; profileDefinitionGrantsTableName?: string | null; profileGrantsTableId?: string | null; profileGrantsTableName?: string | null; - profilePermissionsTableId?: string | null; - profilePermissionsTableName?: string | null; profileTemplatesTableId?: string | null; profileTemplatesTableName?: string | null; publicSchemaName?: string | null; @@ -1707,7 +1815,7 @@ export interface RateLimitMetersModule { apiName?: string | null; checkRateLimitFunction?: string | null; databaseId?: string | null; - defaultPermissions?: string[] | null; + defaultCapabilities?: string[] | null; id: string; prefix?: string | null; privateApiName?: string | null; @@ -1885,7 +1993,7 @@ export interface RelationProvision { export interface ResourceModule { apiName?: string | null; databaseId?: string | null; - defaultPermissions?: string[] | null; + defaultCapabilities?: string[] | null; entityField?: string | null; entityTableId?: string | null; id: string; @@ -1937,9 +2045,11 @@ export interface RlsModule { } export interface RouteModule { apiName?: string | null; + appLinksFunctionName?: string | null; catalogModuleId?: string | null; databaseId?: string | null; - defaultPermissions?: string[] | null; + deepLinkFunctionName?: string | null; + defaultCapabilities?: string[] | null; domainModuleId?: string | null; entityField?: string | null; entityTableId?: string | null; @@ -1961,6 +2071,13 @@ export interface RouteModule { schemaId?: string | null; scope?: string | null; } +export interface ScopeTypesModule { + databaseId?: string | null; + id: string; + privateSchemaName?: string | null; + schemaId?: string | null; + scopeTypesTableId?: string | null; +} /** Provisions security, fields, grants, and policies onto a table. Each row can independently: (1) create fields via nodes[] array (supporting multiple Data* modules per row), (2) grant privileges via grants[] array (supporting per-role privilege targeting), (3) create RLS policies via policies[] array (supporting multiple Authz* policies per row). Multiple rows can target the same table to compose different concerns. All three concerns are optional and independent. */ export interface SecureTableProvision { /** The database this provision belongs to. Required. */ @@ -2013,7 +2130,7 @@ export interface SiteSurfaceModule { apiName?: string | null; catalogModuleId?: string | null; databaseId?: string | null; - defaultPermissions?: string[] | null; + defaultCapabilities?: string[] | null; entityField?: string | null; entityTableId?: string | null; id: string; @@ -2074,8 +2191,8 @@ export interface StorageModule { catalogModuleId?: string | null; confirmUploadDelay?: string | null; databaseId?: string | null; + defaultCapabilities?: string[] | null; defaultMaxFileSize?: string | null; - defaultPermissions?: string[] | null; downloadUrlExpirySeconds?: number | null; endpoint?: string | null; entityField?: string | null; @@ -2183,6 +2300,15 @@ export interface UserSettingsModule { tableId?: string | null; tableName?: string | null; } +export interface UserSettingsSecurityModule { + apiName?: string | null; + databaseId?: string | null; + id: string; + ownerTableId?: string | null; + schemaId?: string | null; + tableId?: string | null; + tableName?: string | null; +} export interface UserStateModule { databaseId?: string | null; entityField?: string | null; @@ -2236,7 +2362,7 @@ export interface WebauthnCredentialsModule { export interface WebhookModule { apiName?: string | null; databaseId?: string | null; - defaultPermissions?: string[] | null; + defaultCapabilities?: string[] | null; entityField?: string | null; entityTableId?: string | null; functionInvocationModuleId?: string | null; @@ -2292,6 +2418,9 @@ export interface BlueprintTemplateRelations { blueprintTemplatesByForkedFromId?: ConnectionResult; blueprintsByTemplateId?: ConnectionResult; } +export interface CapabilitiesModuleRelations { + dataCapabilitiesFields?: ConnectionResult; +} export interface CatalogModuleRelations { apiSurfaceModules?: ConnectionResult; appModules?: ConnectionResult; @@ -2302,8 +2431,14 @@ export interface CatalogModuleRelations { export interface ComputeLogModuleRelations {} export interface ConfigSecretsUserModuleRelations {} export interface ConnectedAccountsModuleRelations {} +export interface ContentPresetModuleRelations { + merkleStoreModule?: MerkleStoreModule | null; +} export interface CryptoAddressesModuleRelations {} export interface CryptoAuthModuleRelations {} +export interface DataCapabilitiesFieldRelations { + capabilitiesModule?: CapabilitiesModule | null; +} export interface DatabaseProvisionModuleRelations {} export interface DatabaseSettingsModuleRelations {} export interface DbPoolConfigRelations {} @@ -2319,9 +2454,15 @@ export interface DomainModuleRelations { catalogModule?: CatalogModule | null; routeModules?: ConnectionResult; } +export interface EmailSenderModuleRelations { + siteSurfaceModule?: SiteSurfaceModule | null; +} export interface EmailsModuleRelations {} export interface EntityTypeProvisionRelations {} export interface EventsModuleRelations {} +export interface FileRefFieldRelations { + storageModule?: StorageModule | null; +} export interface FunctionDeploymentModuleRelations { functionModule?: FunctionModule | null; namespaceModule?: NamespaceModule | null; @@ -2361,6 +2502,7 @@ export interface LimitsModuleRelations {} export interface MembershipTypesModuleRelations {} export interface MembershipsModuleRelations {} export interface MerkleStoreModuleRelations { + contentPresetModules?: ConnectionResult; dbPresetModules?: ConnectionResult; graphModules?: ConnectionResult; pagesModules?: ConnectionResult; @@ -2372,11 +2514,11 @@ export interface NamespaceModuleRelations { webhookModules?: ConnectionResult; } export interface NotificationsModuleRelations {} +export interface OauthRequestsModuleRelations {} export interface PagesModuleRelations { merkleStoreModule?: MerkleStoreModule | null; siteSurfaceModule?: SiteSurfaceModule | null; } -export interface PermissionsModuleRelations {} export interface PhoneNumbersModuleRelations {} export interface PlansModuleRelations {} export interface PrincipalAuthModuleRelations {} @@ -2395,21 +2537,25 @@ export interface RouteModuleRelations { catalogModule?: CatalogModule | null; domainModule?: DomainModule | null; } +export interface ScopeTypesModuleRelations {} export interface SecureTableProvisionRelations {} export interface SessionSecretsModuleRelations {} export interface SessionsModuleRelations {} export interface SiteSurfaceModuleRelations { catalogModule?: CatalogModule | null; + emailSenderModules?: ConnectionResult; pagesModules?: ConnectionResult; } export interface StorageLogModuleRelations {} export interface StorageModuleRelations { + fileRefFields?: ConnectionResult; httpRouteModules?: ConnectionResult; } export interface TransferLogModuleRelations {} export interface UserAuthModuleRelations {} export interface UserCredentialsModuleRelations {} export interface UserSettingsModuleRelations {} +export interface UserSettingsSecurityModuleRelations {} export interface UserStateModuleRelations {} export interface UsersModuleRelations {} export interface WebauthnAuthModuleRelations {} @@ -2431,15 +2577,19 @@ export type BlueprintWithRelations = Blueprint & BlueprintRelations; export type BlueprintConstructionWithRelations = BlueprintConstruction & BlueprintConstructionRelations; export type BlueprintTemplateWithRelations = BlueprintTemplate & BlueprintTemplateRelations; +export type CapabilitiesModuleWithRelations = CapabilitiesModule & CapabilitiesModuleRelations; export type CatalogModuleWithRelations = CatalogModule & CatalogModuleRelations; export type ComputeLogModuleWithRelations = ComputeLogModule & ComputeLogModuleRelations; export type ConfigSecretsUserModuleWithRelations = ConfigSecretsUserModule & ConfigSecretsUserModuleRelations; export type ConnectedAccountsModuleWithRelations = ConnectedAccountsModule & ConnectedAccountsModuleRelations; +export type ContentPresetModuleWithRelations = ContentPresetModule & ContentPresetModuleRelations; export type CryptoAddressesModuleWithRelations = CryptoAddressesModule & CryptoAddressesModuleRelations; export type CryptoAuthModuleWithRelations = CryptoAuthModule & CryptoAuthModuleRelations; +export type DataCapabilitiesFieldWithRelations = DataCapabilitiesField & + DataCapabilitiesFieldRelations; export type DatabaseProvisionModuleWithRelations = DatabaseProvisionModule & DatabaseProvisionModuleRelations; export type DatabaseSettingsModuleWithRelations = DatabaseSettingsModule & @@ -2453,9 +2603,11 @@ export type DenormalizedTableFieldWithRelations = DenormalizedTableField & DenormalizedTableFieldRelations; export type DevicesModuleWithRelations = DevicesModule & DevicesModuleRelations; export type DomainModuleWithRelations = DomainModule & DomainModuleRelations; +export type EmailSenderModuleWithRelations = EmailSenderModule & EmailSenderModuleRelations; export type EmailsModuleWithRelations = EmailsModule & EmailsModuleRelations; export type EntityTypeProvisionWithRelations = EntityTypeProvision & EntityTypeProvisionRelations; export type EventsModuleWithRelations = EventsModule & EventsModuleRelations; +export type FileRefFieldWithRelations = FileRefField & FileRefFieldRelations; export type FunctionDeploymentModuleWithRelations = FunctionDeploymentModule & FunctionDeploymentModuleRelations; export type FunctionInvocationModuleWithRelations = FunctionInvocationModule & @@ -2484,8 +2636,8 @@ export type MembershipsModuleWithRelations = MembershipsModule & MembershipsModu export type MerkleStoreModuleWithRelations = MerkleStoreModule & MerkleStoreModuleRelations; export type NamespaceModuleWithRelations = NamespaceModule & NamespaceModuleRelations; export type NotificationsModuleWithRelations = NotificationsModule & NotificationsModuleRelations; +export type OauthRequestsModuleWithRelations = OauthRequestsModule & OauthRequestsModuleRelations; export type PagesModuleWithRelations = PagesModule & PagesModuleRelations; -export type PermissionsModuleWithRelations = PermissionsModule & PermissionsModuleRelations; export type PhoneNumbersModuleWithRelations = PhoneNumbersModule & PhoneNumbersModuleRelations; export type PlansModuleWithRelations = PlansModule & PlansModuleRelations; export type PrincipalAuthModuleWithRelations = PrincipalAuthModule & PrincipalAuthModuleRelations; @@ -2498,6 +2650,7 @@ export type RelationProvisionWithRelations = RelationProvision & RelationProvisi export type ResourceModuleWithRelations = ResourceModule & ResourceModuleRelations; export type RlsModuleWithRelations = RlsModule & RlsModuleRelations; export type RouteModuleWithRelations = RouteModule & RouteModuleRelations; +export type ScopeTypesModuleWithRelations = ScopeTypesModule & ScopeTypesModuleRelations; export type SecureTableProvisionWithRelations = SecureTableProvision & SecureTableProvisionRelations; export type SessionSecretsModuleWithRelations = SessionSecretsModule & @@ -2511,6 +2664,8 @@ export type UserAuthModuleWithRelations = UserAuthModule & UserAuthModuleRelatio export type UserCredentialsModuleWithRelations = UserCredentialsModule & UserCredentialsModuleRelations; export type UserSettingsModuleWithRelations = UserSettingsModule & UserSettingsModuleRelations; +export type UserSettingsSecurityModuleWithRelations = UserSettingsSecurityModule & + UserSettingsSecurityModuleRelations; export type UserStateModuleWithRelations = UserStateModule & UserStateModuleRelations; export type UsersModuleWithRelations = UsersModule & UsersModuleRelations; export type WebauthnAuthModuleWithRelations = WebauthnAuthModule & WebauthnAuthModuleRelations; @@ -2523,7 +2678,7 @@ export type AgentModuleSelect = { agentTableName?: boolean; apiName?: boolean; databaseId?: boolean; - defaultPermissions?: boolean; + defaultCapabilities?: boolean; entityField?: boolean; entityTableId?: boolean; hasAgents?: boolean; @@ -2568,7 +2723,7 @@ export type ApiSurfaceModuleSelect = { corsSettingsTableId?: boolean; corsSettingsTableName?: boolean; databaseId?: boolean; - defaultPermissions?: boolean; + defaultCapabilities?: boolean; entityField?: boolean; entityTableId?: boolean; id?: boolean; @@ -2591,7 +2746,7 @@ export type AppModuleSelect = { appsTableName?: boolean; catalogModuleId?: boolean; databaseId?: boolean; - defaultPermissions?: boolean; + defaultCapabilities?: boolean; entityField?: boolean; entityTableId?: boolean; id?: boolean; @@ -2613,8 +2768,8 @@ export type BillingModuleSelect = { balancesTableId?: boolean; balancesTableName?: boolean; databaseId?: boolean; + defaultCapabilities?: boolean; defaultMeterCatalog?: boolean; - defaultPermissions?: boolean; id?: boolean; ledgerTableId?: boolean; ledgerTableName?: boolean; @@ -2642,16 +2797,22 @@ export type BillingProviderModuleSelect = { apiName?: boolean; billingCustomersTableId?: boolean; billingCustomersTableName?: boolean; + billingInvoicesTableId?: boolean; + billingInvoicesTableName?: boolean; billingPricesTableId?: boolean; billingPricesTableName?: boolean; billingProductsTableId?: boolean; billingProductsTableName?: boolean; + billingRefundsTableId?: boolean; + billingRefundsTableName?: boolean; billingSubscriptionsTableId?: boolean; billingSubscriptionsTableName?: boolean; billingWebhookEventsTableId?: boolean; billingWebhookEventsTableName?: boolean; databaseId?: boolean; id?: boolean; + listPendingUsageSyncFunction?: boolean; + markUsageSyncedFunction?: boolean; prefix?: boolean; pricesTableId?: boolean; privateApiName?: boolean; @@ -2659,8 +2820,10 @@ export type BillingProviderModuleSelect = { processBillingEventFunction?: boolean; productsTableId?: boolean; provider?: boolean; + recordRefundFunction?: boolean; schemaId?: boolean; subscriptionsTableId?: boolean; + upsertInvoiceFunction?: boolean; }; export type BlueprintSelect = { createdAt?: boolean; @@ -2738,16 +2901,48 @@ export type BlueprintTemplateSelect = { orderBy?: BlueprintOrderBy[]; }; }; +export type CapabilitiesModuleSelect = { + actorTableId?: boolean; + apiName?: boolean; + bitlen?: boolean; + databaseId?: boolean; + defaultTableId?: boolean; + defaultTableName?: boolean; + entityField?: boolean; + entityTableId?: boolean; + getByMask?: boolean; + getMask?: boolean; + getMaskByName?: boolean; + getPaddedMask?: boolean; + id?: boolean; + prefix?: boolean; + privateApiName?: boolean; + privateSchemaId?: boolean; + privateSchemaName?: boolean; + publicSchemaName?: boolean; + schemaId?: boolean; + scope?: boolean; + tableId?: boolean; + tableName?: boolean; + dataCapabilitiesFields?: { + select: DataCapabilitiesFieldSelect; + first?: number; + filter?: DataCapabilitiesFieldFilter; + orderBy?: DataCapabilitiesFieldOrderBy[]; + }; +}; export type CatalogModuleSelect = { apiName?: boolean; apisTableId?: boolean; apisTableName?: boolean; appsTableId?: boolean; appsTableName?: boolean; + bindingsTableId?: boolean; + bindingsTableName?: boolean; bucketsTableId?: boolean; bucketsTableName?: boolean; databaseId?: boolean; - defaultPermissions?: boolean; + defaultCapabilities?: boolean; domainsTableId?: boolean; domainsTableName?: boolean; entityTableId?: boolean; @@ -2852,6 +3047,28 @@ export type ConnectedAccountsModuleSelect = { tableId?: boolean; tableName?: boolean; }; +export type ContentPresetModuleSelect = { + apiName?: boolean; + contentPresetsTableId?: boolean; + createdAt?: boolean; + databaseId?: boolean; + entityTableId?: boolean; + id?: boolean; + merkleStoreModuleId?: boolean; + policies?: boolean; + prefix?: boolean; + privateApiName?: boolean; + privateSchemaId?: boolean; + privateSchemaName?: boolean; + provisions?: boolean; + publicSchemaId?: boolean; + publicSchemaName?: boolean; + scope?: boolean; + storeName?: boolean; + merkleStoreModule?: { + select: MerkleStoreModuleSelect; + }; +}; export type CryptoAddressesModuleSelect = { apiName?: boolean; cryptoNetwork?: boolean; @@ -2880,6 +3097,22 @@ export type CryptoAuthModuleSelect = { userField?: boolean; usersTableId?: boolean; }; +export type DataCapabilitiesFieldSelect = { + capabilitiesModuleId?: boolean; + databaseId?: boolean; + fieldId?: boolean; + fromFieldId?: boolean; + id?: boolean; + mappingFieldId?: boolean; + mappingKeyFieldId?: boolean; + mappingTableId?: boolean; + mode?: boolean; + subsetGuard?: boolean; + tableId?: boolean; + capabilitiesModule?: { + select: CapabilitiesModuleSelect; + }; +}; export type DatabaseProvisionModuleSelect = { async?: boolean; bootstrapError?: boolean; @@ -2906,7 +3139,7 @@ export type DatabaseSettingsModuleSelect = { databaseId?: boolean; databaseSettingsTableId?: boolean; databaseSettingsTableName?: boolean; - defaultPermissions?: boolean; + defaultCapabilities?: boolean; entityField?: boolean; entityTableId?: boolean; id?: boolean; @@ -2978,7 +3211,7 @@ export type DbUsageModuleSelect = { collectDbQueryStatsFunction?: boolean; collectDbTableStatsFunction?: boolean; databaseId?: boolean; - defaultPermissions?: boolean; + defaultCapabilities?: boolean; entityField?: boolean; id?: boolean; interval?: boolean; @@ -3033,7 +3266,7 @@ export type DomainModuleSelect = { apiName?: boolean; catalogModuleId?: boolean; databaseId?: boolean; - defaultPermissions?: boolean; + defaultCapabilities?: boolean; domainEventsTableId?: boolean; domainEventsTableName?: boolean; domainVerificationsTableId?: boolean; @@ -3064,6 +3297,31 @@ export type DomainModuleSelect = { orderBy?: RouteModuleOrderBy[]; }; }; +export type EmailSenderModuleSelect = { + apiName?: boolean; + databaseId?: boolean; + defaultCapabilities?: boolean; + emailIdentitiesTableId?: boolean; + emailIdentitiesTableName?: boolean; + emailProviderAccountsTableId?: boolean; + emailProviderAccountsTableName?: boolean; + emailSiteIdentitiesTableId?: boolean; + emailSiteIdentitiesTableName?: boolean; + entityField?: boolean; + entityTableId?: boolean; + id?: boolean; + policies?: boolean; + prefix?: boolean; + privateApiName?: boolean; + provisions?: boolean; + publicSchemaName?: boolean; + schemaId?: boolean; + scope?: boolean; + siteSurfaceModuleId?: boolean; + siteSurfaceModule?: { + select: SiteSurfaceModuleSelect; + }; +}; export type EmailsModuleSelect = { apiName?: boolean; databaseId?: boolean; @@ -3122,7 +3380,7 @@ export type EventsModuleSelect = { actorTableId?: boolean; apiName?: boolean; databaseId?: boolean; - defaultPermissions?: boolean; + defaultCapabilities?: boolean; entityField?: boolean; entityTableId?: boolean; eventAggregatesTableId?: boolean; @@ -3131,6 +3389,7 @@ export type EventsModuleSelect = { eventTypesTableName?: boolean; eventsTableId?: boolean; eventsTableName?: boolean; + expireGrants?: boolean; grantAchievement?: boolean; id?: boolean; interval?: boolean; @@ -3147,9 +3406,11 @@ export type EventsModuleSelect = { privateSchemaId?: boolean; privateSchemaName?: boolean; publicSchemaName?: boolean; + recomputeCapabilities?: boolean; recordEvent?: boolean; removeEvent?: boolean; retention?: boolean; + revokeAchievement?: boolean; schemaId?: boolean; scope?: boolean; stepsRequired?: boolean; @@ -3159,13 +3420,29 @@ export type EventsModuleSelect = { tgEventBool?: boolean; tgEventToggle?: boolean; tgEventToggleBool?: boolean; + tgLevelGrantSync?: boolean; tgUpdateAggregates?: boolean; + trustLadder?: boolean; upsertAggregate?: boolean; }; +export type FileRefFieldSelect = { + bucketKey?: boolean; + bucketTags?: boolean; + databaseId?: boolean; + enforceFk?: boolean; + fieldId?: boolean; + id?: boolean; + isPublic?: boolean; + storageModuleId?: boolean; + tableId?: boolean; + storageModule?: { + select: StorageModuleSelect; + }; +}; export type FunctionDeploymentModuleSelect = { apiName?: boolean; databaseId?: boolean; - defaultPermissions?: boolean; + defaultCapabilities?: boolean; deploymentEventsTableId?: boolean; deploymentEventsTableName?: boolean; deploymentsTableId?: boolean; @@ -3196,7 +3473,7 @@ export type FunctionInvocationModuleSelect = { attemptsTableId?: boolean; attemptsTableName?: boolean; databaseId?: boolean; - defaultPermissions?: boolean; + defaultCapabilities?: boolean; entityField?: boolean; entityTableId?: boolean; executionLogsTableId?: boolean; @@ -3226,7 +3503,7 @@ export type FunctionModuleSelect = { bindingsTableName?: boolean; capabilityBindingsTableId?: boolean; databaseId?: boolean; - defaultPermissions?: boolean; + defaultCapabilities?: boolean; definitionsTableId?: boolean; definitionsTableName?: boolean; entityField?: boolean; @@ -3266,7 +3543,7 @@ export type GraphExecutionModuleSelect = { apiName?: boolean; createdAt?: boolean; databaseId?: boolean; - defaultPermissions?: boolean; + defaultCapabilities?: boolean; entityField?: boolean; entityTableId?: boolean; executionsTableId?: boolean; @@ -3294,7 +3571,7 @@ export type GraphModuleSelect = { apiName?: boolean; createdAt?: boolean; databaseId?: boolean; - defaultPermissions?: boolean; + defaultCapabilities?: boolean; entityField?: boolean; entityTableId?: boolean; graphsTableId?: boolean; @@ -3326,7 +3603,7 @@ export type HierarchyModuleSelect = { chartEdgesTableName?: boolean; createdAt?: boolean; databaseId?: boolean; - defaultPermissions?: boolean; + defaultCapabilities?: boolean; entityField?: boolean; entityTableId?: boolean; getManagersFunction?: boolean; @@ -3347,7 +3624,7 @@ export type HierarchyModuleSelect = { export type HttpRouteModuleSelect = { apiName?: boolean; databaseId?: boolean; - defaultPermissions?: boolean; + defaultCapabilities?: boolean; entityField?: boolean; entityTableId?: boolean; functionModuleId?: boolean; @@ -3543,6 +3820,7 @@ export type LimitsModuleSelect = { limitCreditsTableId?: boolean; limitDecrementFunction?: boolean; limitDecrementTrigger?: boolean; + limitDefaults?: boolean; limitIncrementFunction?: boolean; limitIncrementTrigger?: boolean; limitUpdateTrigger?: boolean; @@ -3573,9 +3851,12 @@ export type MembershipsModuleSelect = { adminGrantsTableId?: boolean; adminGrantsTableName?: boolean; apiName?: boolean; + capabilitiesTableId?: boolean; + capabilityDefaultCapabilitiesTableId?: boolean; + capabilityDefaultGrantsTableId?: boolean; databaseId?: boolean; + defaultCapabilitiesTableId?: boolean; defaultLimitsTableId?: boolean; - defaultPermissionsTableId?: boolean; entityField?: boolean; entityIdsByMask?: boolean; entityIdsByPerm?: boolean; @@ -3598,9 +3879,6 @@ export type MembershipsModuleSelect = { membershipsTableName?: boolean; ownerGrantsTableId?: boolean; ownerGrantsTableName?: boolean; - permissionDefaultGrantsTableId?: boolean; - permissionDefaultPermissionsTableId?: boolean; - permissionsTableId?: boolean; prefix?: boolean; privateApiName?: boolean; privateSchemaId?: boolean; @@ -3612,6 +3890,7 @@ export type MembershipsModuleSelect = { }; export type MerkleStoreModuleSelect = { apiName?: boolean; + capabilityKey?: boolean; commitTableId?: boolean; createdAt?: boolean; databaseId?: boolean; @@ -3619,7 +3898,6 @@ export type MerkleStoreModuleSelect = { functionPrefix?: boolean; id?: boolean; objectTableId?: boolean; - permissionKey?: boolean; prefix?: boolean; privateApiName?: boolean; privateSchemaId?: boolean; @@ -3629,6 +3907,12 @@ export type MerkleStoreModuleSelect = { schemaId?: boolean; scope?: boolean; storeTableId?: boolean; + contentPresetModules?: { + select: ContentPresetModuleSelect; + first?: number; + filter?: ContentPresetModuleFilter; + orderBy?: ContentPresetModuleOrderBy[]; + }; dbPresetModules?: { select: DbPresetModuleSelect; first?: number; @@ -3657,7 +3941,7 @@ export type MerkleStoreModuleSelect = { export type NamespaceModuleSelect = { apiName?: boolean; databaseId?: boolean; - defaultPermissions?: boolean; + defaultCapabilities?: boolean; entityField?: boolean; entityTableId?: boolean; id?: boolean; @@ -3697,7 +3981,7 @@ export type NotificationsModuleSelect = { apiName?: boolean; channelsTableId?: boolean; databaseId?: boolean; - defaultPermissions?: boolean; + defaultCapabilities?: boolean; deliveryLogTableId?: boolean; entityField?: boolean; hasChannels?: boolean; @@ -3719,6 +4003,20 @@ export type NotificationsModuleSelect = { suppressionsTableId?: boolean; userSettingsTableId?: boolean; }; +export type OauthRequestsModuleSelect = { + databaseId?: boolean; + entityField?: boolean; + entityTableId?: boolean; + id?: boolean; + oauthAuthorizationRequestsTableId?: boolean; + oauthAuthorizationRequestsTableName?: boolean; + pendingIdentityLinksTableId?: boolean; + pendingIdentityLinksTableName?: boolean; + prefix?: boolean; + privateSchemaId?: boolean; + privateSchemaName?: boolean; + scope?: boolean; +}; export type PagesModuleSelect = { apiName?: boolean; createdAt?: boolean; @@ -3746,30 +4044,6 @@ export type PagesModuleSelect = { select: SiteSurfaceModuleSelect; }; }; -export type PermissionsModuleSelect = { - actorTableId?: boolean; - apiName?: boolean; - bitlen?: boolean; - databaseId?: boolean; - defaultTableId?: boolean; - defaultTableName?: boolean; - entityField?: boolean; - entityTableId?: boolean; - getByMask?: boolean; - getMask?: boolean; - getMaskByName?: boolean; - getPaddedMask?: boolean; - id?: boolean; - prefix?: boolean; - privateApiName?: boolean; - privateSchemaId?: boolean; - privateSchemaName?: boolean; - publicSchemaName?: boolean; - schemaId?: boolean; - scope?: boolean; - tableId?: boolean; - tableName?: boolean; -}; export type PhoneNumbersModuleSelect = { apiName?: boolean; databaseId?: boolean; @@ -3827,22 +4101,24 @@ export type PrincipalAuthModuleSelect = { export type ProfilesModuleSelect = { actorTableId?: boolean; apiName?: boolean; + capabilitiesTableId?: boolean; databaseId?: boolean; entityField?: boolean; entityTableId?: boolean; id?: boolean; + membershipProfilesTableId?: boolean; + membershipProfilesTableName?: boolean; membershipsTableId?: boolean; - permissionsTableId?: boolean; prefix?: boolean; privateApiName?: boolean; privateSchemaId?: boolean; privateSchemaName?: boolean; + profileCapabilitiesTableId?: boolean; + profileCapabilitiesTableName?: boolean; profileDefinitionGrantsTableId?: boolean; profileDefinitionGrantsTableName?: boolean; profileGrantsTableId?: boolean; profileGrantsTableName?: boolean; - profilePermissionsTableId?: boolean; - profilePermissionsTableName?: boolean; profileTemplatesTableId?: boolean; profileTemplatesTableName?: boolean; publicSchemaName?: boolean; @@ -3855,7 +4131,7 @@ export type RateLimitMetersModuleSelect = { apiName?: boolean; checkRateLimitFunction?: boolean; databaseId?: boolean; - defaultPermissions?: boolean; + defaultCapabilities?: boolean; id?: boolean; prefix?: boolean; privateApiName?: boolean; @@ -3926,7 +4202,7 @@ export type RelationProvisionSelect = { export type ResourceModuleSelect = { apiName?: boolean; databaseId?: boolean; - defaultPermissions?: boolean; + defaultCapabilities?: boolean; entityField?: boolean; entityTableId?: boolean; id?: boolean; @@ -3990,9 +4266,11 @@ export type RlsModuleSelect = { }; export type RouteModuleSelect = { apiName?: boolean; + appLinksFunctionName?: boolean; catalogModuleId?: boolean; databaseId?: boolean; - defaultPermissions?: boolean; + deepLinkFunctionName?: boolean; + defaultCapabilities?: boolean; domainModuleId?: boolean; entityField?: boolean; entityTableId?: boolean; @@ -4020,6 +4298,13 @@ export type RouteModuleSelect = { select: DomainModuleSelect; }; }; +export type ScopeTypesModuleSelect = { + databaseId?: boolean; + id?: boolean; + privateSchemaName?: boolean; + schemaId?: boolean; + scopeTypesTableId?: boolean; +}; export type SecureTableProvisionSelect = { databaseId?: boolean; fields?: boolean; @@ -4058,7 +4343,7 @@ export type SiteSurfaceModuleSelect = { apiName?: boolean; catalogModuleId?: boolean; databaseId?: boolean; - defaultPermissions?: boolean; + defaultCapabilities?: boolean; entityField?: boolean; entityTableId?: boolean; id?: boolean; @@ -4090,6 +4375,12 @@ export type SiteSurfaceModuleSelect = { catalogModule?: { select: CatalogModuleSelect; }; + emailSenderModules?: { + select: EmailSenderModuleSelect; + first?: number; + filter?: EmailSenderModuleFilter; + orderBy?: EmailSenderModuleOrderBy[]; + }; pagesModules?: { select: PagesModuleSelect; first?: number; @@ -4128,8 +4419,8 @@ export type StorageModuleSelect = { catalogModuleId?: boolean; confirmUploadDelay?: boolean; databaseId?: boolean; + defaultCapabilities?: boolean; defaultMaxFileSize?: boolean; - defaultPermissions?: boolean; downloadUrlExpirySeconds?: boolean; endpoint?: boolean; entityField?: boolean; @@ -4161,6 +4452,12 @@ export type StorageModuleSelect = { schemaId?: boolean; scope?: boolean; uploadUrlExpirySeconds?: boolean; + fileRefFields?: { + select: FileRefFieldSelect; + first?: number; + filter?: FileRefFieldFilter; + orderBy?: FileRefFieldOrderBy[]; + }; httpRouteModules?: { select: HttpRouteModuleSelect; first?: number; @@ -4238,6 +4535,15 @@ export type UserSettingsModuleSelect = { tableId?: boolean; tableName?: boolean; }; +export type UserSettingsSecurityModuleSelect = { + apiName?: boolean; + databaseId?: boolean; + id?: boolean; + ownerTableId?: boolean; + schemaId?: boolean; + tableId?: boolean; + tableName?: boolean; +}; export type UserStateModuleSelect = { databaseId?: boolean; entityField?: boolean; @@ -4289,7 +4595,7 @@ export type WebauthnCredentialsModuleSelect = { export type WebhookModuleSelect = { apiName?: boolean; databaseId?: boolean; - defaultPermissions?: boolean; + defaultCapabilities?: boolean; entityField?: boolean; entityTableId?: boolean; functionInvocationModuleId?: boolean; @@ -4335,8 +4641,8 @@ export interface AgentModuleFilter { apiName?: StringFilter; /** Filter by the object’s `databaseId` field. */ databaseId?: UUIDFilter; - /** Filter by the object’s `defaultPermissions` field. */ - defaultPermissions?: StringListFilter; + /** Filter by the object’s `defaultCapabilities` field. */ + defaultCapabilities?: StringListFilter; /** Filter by the object’s `entityField` field. */ entityField?: StringFilter; /** Filter by the object’s `entityTableId` field. */ @@ -4433,8 +4739,8 @@ export interface ApiSurfaceModuleFilter { corsSettingsTableName?: StringFilter; /** Filter by the object’s `databaseId` field. */ databaseId?: UUIDFilter; - /** Filter by the object’s `defaultPermissions` field. */ - defaultPermissions?: StringListFilter; + /** Filter by the object’s `defaultCapabilities` field. */ + defaultCapabilities?: StringListFilter; /** Filter by the object’s `entityField` field. */ entityField?: StringFilter; /** Filter by the object’s `entityTableId` field. */ @@ -4481,8 +4787,8 @@ export interface AppModuleFilter { catalogModuleId?: UUIDFilter; /** Filter by the object’s `databaseId` field. */ databaseId?: UUIDFilter; - /** Filter by the object’s `defaultPermissions` field. */ - defaultPermissions?: StringListFilter; + /** Filter by the object’s `defaultCapabilities` field. */ + defaultCapabilities?: StringListFilter; /** Filter by the object’s `entityField` field. */ entityField?: StringFilter; /** Filter by the object’s `entityTableId` field. */ @@ -4523,10 +4829,10 @@ export interface BillingModuleFilter { balancesTableName?: StringFilter; /** Filter by the object’s `databaseId` field. */ databaseId?: UUIDFilter; + /** Filter by the object’s `defaultCapabilities` field. */ + defaultCapabilities?: StringListFilter; /** Filter by the object’s `defaultMeterCatalog` field. */ defaultMeterCatalog?: JSONFilter; - /** Filter by the object’s `defaultPermissions` field. */ - defaultPermissions?: StringListFilter; /** Filter by the object’s `id` field. */ id?: UUIDFilter; /** Filter by the object’s `ledgerTableId` field. */ @@ -4585,6 +4891,10 @@ export interface BillingProviderModuleFilter { billingCustomersTableId?: UUIDFilter; /** Filter by the object’s `billingCustomersTableName` field. */ billingCustomersTableName?: StringFilter; + /** Filter by the object’s `billingInvoicesTableId` field. */ + billingInvoicesTableId?: UUIDFilter; + /** Filter by the object’s `billingInvoicesTableName` field. */ + billingInvoicesTableName?: StringFilter; /** Filter by the object’s `billingPricesTableId` field. */ billingPricesTableId?: UUIDFilter; /** Filter by the object’s `billingPricesTableName` field. */ @@ -4593,6 +4903,10 @@ export interface BillingProviderModuleFilter { billingProductsTableId?: UUIDFilter; /** Filter by the object’s `billingProductsTableName` field. */ billingProductsTableName?: StringFilter; + /** Filter by the object’s `billingRefundsTableId` field. */ + billingRefundsTableId?: UUIDFilter; + /** Filter by the object’s `billingRefundsTableName` field. */ + billingRefundsTableName?: StringFilter; /** Filter by the object’s `billingSubscriptionsTableId` field. */ billingSubscriptionsTableId?: UUIDFilter; /** Filter by the object’s `billingSubscriptionsTableName` field. */ @@ -4605,6 +4919,10 @@ export interface BillingProviderModuleFilter { databaseId?: UUIDFilter; /** Filter by the object’s `id` field. */ id?: UUIDFilter; + /** Filter by the object’s `listPendingUsageSyncFunction` field. */ + listPendingUsageSyncFunction?: StringFilter; + /** Filter by the object’s `markUsageSyncedFunction` field. */ + markUsageSyncedFunction?: StringFilter; /** Negates the expression. */ not?: BillingProviderModuleFilter; /** Checks for any expressions in this list. */ @@ -4623,10 +4941,14 @@ export interface BillingProviderModuleFilter { productsTableId?: UUIDFilter; /** Filter by the object’s `provider` field. */ provider?: StringFilter; + /** Filter by the object’s `recordRefundFunction` field. */ + recordRefundFunction?: StringFilter; /** Filter by the object’s `schemaId` field. */ schemaId?: UUIDFilter; /** Filter by the object’s `subscriptionsTableId` field. */ subscriptionsTableId?: UUIDFilter; + /** Filter by the object’s `upsertInvoiceFunction` field. */ + upsertInvoiceFunction?: StringFilter; } export interface BlueprintFilter { /** Checks for all expressions in this list. */ @@ -4760,9 +5082,65 @@ export interface BlueprintTemplateFilter { /** Filter by the object’s `visibility` field. */ visibility?: StringFilter; } -export interface CatalogModuleFilter { +export interface CapabilitiesModuleFilter { + /** Filter by the object’s `actorTableId` field. */ + actorTableId?: UUIDFilter; /** Checks for all expressions in this list. */ - and?: CatalogModuleFilter[]; + and?: CapabilitiesModuleFilter[]; + /** Filter by the object’s `apiName` field. */ + apiName?: StringFilter; + /** Filter by the object’s `bitlen` field. */ + bitlen?: IntFilter; + /** Filter by the object’s `dataCapabilitiesFields` relation. */ + dataCapabilitiesFields?: CapabilitiesModuleToManyDataCapabilitiesFieldFilter; + /** `dataCapabilitiesFields` exist. */ + dataCapabilitiesFieldsExist?: boolean; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `defaultTableId` field. */ + defaultTableId?: UUIDFilter; + /** Filter by the object’s `defaultTableName` field. */ + defaultTableName?: StringFilter; + /** Filter by the object’s `entityField` field. */ + entityField?: StringFilter; + /** Filter by the object’s `entityTableId` field. */ + entityTableId?: UUIDFilter; + /** Filter by the object’s `getByMask` field. */ + getByMask?: StringFilter; + /** Filter by the object’s `getMask` field. */ + getMask?: StringFilter; + /** Filter by the object’s `getMaskByName` field. */ + getMaskByName?: StringFilter; + /** Filter by the object’s `getPaddedMask` field. */ + getPaddedMask?: StringFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Negates the expression. */ + not?: CapabilitiesModuleFilter; + /** Checks for any expressions in this list. */ + or?: CapabilitiesModuleFilter[]; + /** Filter by the object’s `prefix` field. */ + prefix?: StringFilter; + /** Filter by the object’s `privateApiName` field. */ + privateApiName?: StringFilter; + /** Filter by the object’s `privateSchemaId` field. */ + privateSchemaId?: UUIDFilter; + /** Filter by the object’s `privateSchemaName` field. */ + privateSchemaName?: StringFilter; + /** Filter by the object’s `publicSchemaName` field. */ + publicSchemaName?: StringFilter; + /** Filter by the object’s `schemaId` field. */ + schemaId?: UUIDFilter; + /** Filter by the object’s `scope` field. */ + scope?: StringFilter; + /** Filter by the object’s `tableId` field. */ + tableId?: UUIDFilter; + /** Filter by the object’s `tableName` field. */ + tableName?: StringFilter; +} +export interface CatalogModuleFilter { + /** Checks for all expressions in this list. */ + and?: CatalogModuleFilter[]; /** Filter by the object’s `apiName` field. */ apiName?: StringFilter; /** Filter by the object’s `apiSurfaceModules` relation. */ @@ -4781,14 +5159,18 @@ export interface CatalogModuleFilter { appsTableId?: UUIDFilter; /** Filter by the object’s `appsTableName` field. */ appsTableName?: StringFilter; + /** Filter by the object’s `bindingsTableId` field. */ + bindingsTableId?: UUIDFilter; + /** Filter by the object’s `bindingsTableName` field. */ + bindingsTableName?: StringFilter; /** Filter by the object’s `bucketsTableId` field. */ bucketsTableId?: UUIDFilter; /** Filter by the object’s `bucketsTableName` field. */ bucketsTableName?: StringFilter; /** Filter by the object’s `databaseId` field. */ databaseId?: UUIDFilter; - /** Filter by the object’s `defaultPermissions` field. */ - defaultPermissions?: StringListFilter; + /** Filter by the object’s `defaultCapabilities` field. */ + defaultCapabilities?: StringListFilter; /** Filter by the object’s `domainModules` relation. */ domainModules?: CatalogModuleToManyDomainModuleFilter; /** `domainModules` exist. */ @@ -4964,6 +5346,50 @@ export interface ConnectedAccountsModuleFilter { /** Filter by the object’s `tableName` field. */ tableName?: StringFilter; } +export interface ContentPresetModuleFilter { + /** Checks for all expressions in this list. */ + and?: ContentPresetModuleFilter[]; + /** Filter by the object’s `apiName` field. */ + apiName?: StringFilter; + /** Filter by the object’s `contentPresetsTableId` field. */ + contentPresetsTableId?: UUIDFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `entityTableId` field. */ + entityTableId?: UUIDFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `merkleStoreModule` relation. */ + merkleStoreModule?: MerkleStoreModuleFilter; + /** Filter by the object’s `merkleStoreModuleId` field. */ + merkleStoreModuleId?: UUIDFilter; + /** Negates the expression. */ + not?: ContentPresetModuleFilter; + /** Checks for any expressions in this list. */ + or?: ContentPresetModuleFilter[]; + /** Filter by the object’s `policies` field. */ + policies?: JSONFilter; + /** Filter by the object’s `prefix` field. */ + prefix?: StringFilter; + /** Filter by the object’s `privateApiName` field. */ + privateApiName?: StringFilter; + /** Filter by the object’s `privateSchemaId` field. */ + privateSchemaId?: UUIDFilter; + /** Filter by the object’s `privateSchemaName` field. */ + privateSchemaName?: StringFilter; + /** Filter by the object’s `provisions` field. */ + provisions?: JSONFilter; + /** Filter by the object’s `publicSchemaId` field. */ + publicSchemaId?: UUIDFilter; + /** Filter by the object’s `publicSchemaName` field. */ + publicSchemaName?: StringFilter; + /** Filter by the object’s `scope` field. */ + scope?: StringFilter; + /** Filter by the object’s `storeName` field. */ + storeName?: StringFilter; +} export interface CryptoAddressesModuleFilter { /** Checks for all expressions in this list. */ and?: CryptoAddressesModuleFilter[]; @@ -5028,6 +5454,38 @@ export interface CryptoAuthModuleFilter { /** Filter by the object’s `usersTableId` field. */ usersTableId?: UUIDFilter; } +export interface DataCapabilitiesFieldFilter { + /** Checks for all expressions in this list. */ + and?: DataCapabilitiesFieldFilter[]; + /** Filter by the object’s `capabilitiesModule` relation. */ + capabilitiesModule?: CapabilitiesModuleFilter; + /** Filter by the object’s `capabilitiesModuleId` field. */ + capabilitiesModuleId?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `fieldId` field. */ + fieldId?: UUIDFilter; + /** Filter by the object’s `fromFieldId` field. */ + fromFieldId?: UUIDFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `mappingFieldId` field. */ + mappingFieldId?: UUIDFilter; + /** Filter by the object’s `mappingKeyFieldId` field. */ + mappingKeyFieldId?: UUIDFilter; + /** Filter by the object’s `mappingTableId` field. */ + mappingTableId?: UUIDFilter; + /** Filter by the object’s `mode` field. */ + mode?: StringFilter; + /** Negates the expression. */ + not?: DataCapabilitiesFieldFilter; + /** Checks for any expressions in this list. */ + or?: DataCapabilitiesFieldFilter[]; + /** Filter by the object’s `subsetGuard` field. */ + subsetGuard?: BooleanFilter; + /** Filter by the object’s `tableId` field. */ + tableId?: UUIDFilter; +} export interface DatabaseProvisionModuleFilter { /** Checks for all expressions in this list. */ and?: DatabaseProvisionModuleFilter[]; @@ -5085,8 +5543,8 @@ export interface DatabaseSettingsModuleFilter { databaseSettingsTableId?: UUIDFilter; /** Filter by the object’s `databaseSettingsTableName` field. */ databaseSettingsTableName?: StringFilter; - /** Filter by the object’s `defaultPermissions` field. */ - defaultPermissions?: StringListFilter; + /** Filter by the object’s `defaultCapabilities` field. */ + defaultCapabilities?: StringListFilter; /** Filter by the object’s `entityField` field. */ entityField?: StringFilter; /** Filter by the object’s `entityTableId` field. */ @@ -5241,8 +5699,8 @@ export interface DbUsageModuleFilter { collectDbTableStatsFunction?: StringFilter; /** Filter by the object’s `databaseId` field. */ databaseId?: UUIDFilter; - /** Filter by the object’s `defaultPermissions` field. */ - defaultPermissions?: StringListFilter; + /** Filter by the object’s `defaultCapabilities` field. */ + defaultCapabilities?: StringListFilter; /** Filter by the object’s `entityField` field. */ entityField?: StringFilter; /** Filter by the object’s `id` field. */ @@ -5371,8 +5829,8 @@ export interface DomainModuleFilter { catalogModuleId?: UUIDFilter; /** Filter by the object’s `databaseId` field. */ databaseId?: UUIDFilter; - /** Filter by the object’s `defaultPermissions` field. */ - defaultPermissions?: StringListFilter; + /** Filter by the object’s `defaultCapabilities` field. */ + defaultCapabilities?: StringListFilter; /** Filter by the object’s `domainEventsTableId` field. */ domainEventsTableId?: UUIDFilter; /** Filter by the object’s `domainEventsTableName` field. */ @@ -5422,6 +5880,58 @@ export interface DomainModuleFilter { /** Filter by the object’s `scope` field. */ scope?: StringFilter; } +export interface EmailSenderModuleFilter { + /** Checks for all expressions in this list. */ + and?: EmailSenderModuleFilter[]; + /** Filter by the object’s `apiName` field. */ + apiName?: StringFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `defaultCapabilities` field. */ + defaultCapabilities?: StringListFilter; + /** Filter by the object’s `emailIdentitiesTableId` field. */ + emailIdentitiesTableId?: UUIDFilter; + /** Filter by the object’s `emailIdentitiesTableName` field. */ + emailIdentitiesTableName?: StringFilter; + /** Filter by the object’s `emailProviderAccountsTableId` field. */ + emailProviderAccountsTableId?: UUIDFilter; + /** Filter by the object’s `emailProviderAccountsTableName` field. */ + emailProviderAccountsTableName?: StringFilter; + /** Filter by the object’s `emailSiteIdentitiesTableId` field. */ + emailSiteIdentitiesTableId?: UUIDFilter; + /** Filter by the object’s `emailSiteIdentitiesTableName` field. */ + emailSiteIdentitiesTableName?: StringFilter; + /** Filter by the object’s `entityField` field. */ + entityField?: StringFilter; + /** Filter by the object’s `entityTableId` field. */ + entityTableId?: UUIDFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Negates the expression. */ + not?: EmailSenderModuleFilter; + /** Checks for any expressions in this list. */ + or?: EmailSenderModuleFilter[]; + /** Filter by the object’s `policies` field. */ + policies?: JSONFilter; + /** Filter by the object’s `prefix` field. */ + prefix?: StringFilter; + /** Filter by the object’s `privateApiName` field. */ + privateApiName?: StringFilter; + /** Filter by the object’s `provisions` field. */ + provisions?: JSONFilter; + /** Filter by the object’s `publicSchemaName` field. */ + publicSchemaName?: StringFilter; + /** Filter by the object’s `schemaId` field. */ + schemaId?: UUIDFilter; + /** Filter by the object’s `scope` field. */ + scope?: StringFilter; + /** Filter by the object’s `siteSurfaceModule` relation. */ + siteSurfaceModule?: SiteSurfaceModuleFilter; + /** A related `siteSurfaceModule` exists. */ + siteSurfaceModuleExists?: boolean; + /** Filter by the object’s `siteSurfaceModuleId` field. */ + siteSurfaceModuleId?: UUIDFilter; +} export interface EmailsModuleFilter { /** Checks for all expressions in this list. */ and?: EmailsModuleFilter[]; @@ -5547,8 +6057,8 @@ export interface EventsModuleFilter { apiName?: StringFilter; /** Filter by the object’s `databaseId` field. */ databaseId?: UUIDFilter; - /** Filter by the object’s `defaultPermissions` field. */ - defaultPermissions?: StringListFilter; + /** Filter by the object’s `defaultCapabilities` field. */ + defaultCapabilities?: StringListFilter; /** Filter by the object’s `entityField` field. */ entityField?: StringFilter; /** Filter by the object’s `entityTableId` field. */ @@ -5565,6 +6075,8 @@ export interface EventsModuleFilter { eventsTableId?: UUIDFilter; /** Filter by the object’s `eventsTableName` field. */ eventsTableName?: StringFilter; + /** Filter by the object’s `expireGrants` field. */ + expireGrants?: StringFilter; /** Filter by the object’s `grantAchievement` field. */ grantAchievement?: StringFilter; /** Filter by the object’s `id` field. */ @@ -5601,12 +6113,16 @@ export interface EventsModuleFilter { privateSchemaName?: StringFilter; /** Filter by the object’s `publicSchemaName` field. */ publicSchemaName?: StringFilter; + /** Filter by the object’s `recomputeCapabilities` field. */ + recomputeCapabilities?: StringFilter; /** Filter by the object’s `recordEvent` field. */ recordEvent?: StringFilter; /** Filter by the object’s `removeEvent` field. */ removeEvent?: StringFilter; /** Filter by the object’s `retention` field. */ retention?: StringFilter; + /** Filter by the object’s `revokeAchievement` field. */ + revokeAchievement?: StringFilter; /** Filter by the object’s `schemaId` field. */ schemaId?: UUIDFilter; /** Filter by the object’s `scope` field. */ @@ -5625,11 +6141,43 @@ export interface EventsModuleFilter { tgEventToggle?: StringFilter; /** Filter by the object’s `tgEventToggleBool` field. */ tgEventToggleBool?: StringFilter; + /** Filter by the object’s `tgLevelGrantSync` field. */ + tgLevelGrantSync?: StringFilter; /** Filter by the object’s `tgUpdateAggregates` field. */ tgUpdateAggregates?: StringFilter; + /** Filter by the object’s `trustLadder` field. */ + trustLadder?: JSONFilter; /** Filter by the object’s `upsertAggregate` field. */ upsertAggregate?: StringFilter; } +export interface FileRefFieldFilter { + /** Checks for all expressions in this list. */ + and?: FileRefFieldFilter[]; + /** Filter by the object’s `bucketKey` field. */ + bucketKey?: StringFilter; + /** Filter by the object’s `bucketTags` field. */ + bucketTags?: StringListFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `enforceFk` field. */ + enforceFk?: BooleanFilter; + /** Filter by the object’s `fieldId` field. */ + fieldId?: UUIDFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `isPublic` field. */ + isPublic?: BooleanFilter; + /** Negates the expression. */ + not?: FileRefFieldFilter; + /** Checks for any expressions in this list. */ + or?: FileRefFieldFilter[]; + /** Filter by the object’s `storageModule` relation. */ + storageModule?: StorageModuleFilter; + /** Filter by the object’s `storageModuleId` field. */ + storageModuleId?: UUIDFilter; + /** Filter by the object’s `tableId` field. */ + tableId?: UUIDFilter; +} export interface FunctionDeploymentModuleFilter { /** Checks for all expressions in this list. */ and?: FunctionDeploymentModuleFilter[]; @@ -5637,8 +6185,8 @@ export interface FunctionDeploymentModuleFilter { apiName?: StringFilter; /** Filter by the object’s `databaseId` field. */ databaseId?: UUIDFilter; - /** Filter by the object’s `defaultPermissions` field. */ - defaultPermissions?: StringListFilter; + /** Filter by the object’s `defaultCapabilities` field. */ + defaultCapabilities?: StringListFilter; /** Filter by the object’s `deploymentEventsTableId` field. */ deploymentEventsTableId?: UUIDFilter; /** Filter by the object’s `deploymentEventsTableName` field. */ @@ -5699,8 +6247,8 @@ export interface FunctionInvocationModuleFilter { attemptsTableName?: StringFilter; /** Filter by the object’s `databaseId` field. */ databaseId?: UUIDFilter; - /** Filter by the object’s `defaultPermissions` field. */ - defaultPermissions?: StringListFilter; + /** Filter by the object’s `defaultCapabilities` field. */ + defaultCapabilities?: StringListFilter; /** Filter by the object’s `entityField` field. */ entityField?: StringFilter; /** Filter by the object’s `entityTableId` field. */ @@ -5755,8 +6303,8 @@ export interface FunctionModuleFilter { capabilityBindingsTableId?: UUIDFilter; /** Filter by the object’s `databaseId` field. */ databaseId?: UUIDFilter; - /** Filter by the object’s `defaultPermissions` field. */ - defaultPermissions?: StringListFilter; + /** Filter by the object’s `defaultCapabilities` field. */ + defaultCapabilities?: StringListFilter; /** Filter by the object’s `definitionsTableId` field. */ definitionsTableId?: UUIDFilter; /** Filter by the object’s `definitionsTableName` field. */ @@ -5815,8 +6363,8 @@ export interface GraphExecutionModuleFilter { createdAt?: DatetimeFilter; /** Filter by the object’s `databaseId` field. */ databaseId?: UUIDFilter; - /** Filter by the object’s `defaultPermissions` field. */ - defaultPermissions?: StringListFilter; + /** Filter by the object’s `defaultCapabilities` field. */ + defaultCapabilities?: StringListFilter; /** Filter by the object’s `entityField` field. */ entityField?: StringFilter; /** Filter by the object’s `entityTableId` field. */ @@ -5871,8 +6419,8 @@ export interface GraphModuleFilter { createdAt?: DatetimeFilter; /** Filter by the object’s `databaseId` field. */ databaseId?: UUIDFilter; - /** Filter by the object’s `defaultPermissions` field. */ - defaultPermissions?: StringListFilter; + /** Filter by the object’s `defaultCapabilities` field. */ + defaultCapabilities?: StringListFilter; /** Filter by the object’s `entityField` field. */ entityField?: StringFilter; /** Filter by the object’s `entityTableId` field. */ @@ -5927,8 +6475,8 @@ export interface HierarchyModuleFilter { createdAt?: DatetimeFilter; /** Filter by the object’s `databaseId` field. */ databaseId?: UUIDFilter; - /** Filter by the object’s `defaultPermissions` field. */ - defaultPermissions?: StringListFilter; + /** Filter by the object’s `defaultCapabilities` field. */ + defaultCapabilities?: StringListFilter; /** Filter by the object’s `entityField` field. */ entityField?: StringFilter; /** Filter by the object’s `entityTableId` field. */ @@ -5973,8 +6521,8 @@ export interface HttpRouteModuleFilter { apiName?: StringFilter; /** Filter by the object’s `databaseId` field. */ databaseId?: UUIDFilter; - /** Filter by the object’s `defaultPermissions` field. */ - defaultPermissions?: StringListFilter; + /** Filter by the object’s `defaultCapabilities` field. */ + defaultCapabilities?: StringListFilter; /** Filter by the object’s `entityField` field. */ entityField?: StringFilter; /** Filter by the object’s `entityTableId` field. */ @@ -6387,6 +6935,8 @@ export interface LimitsModuleFilter { limitDecrementFunction?: StringFilter; /** Filter by the object’s `limitDecrementTrigger` field. */ limitDecrementTrigger?: StringFilter; + /** Filter by the object’s `limitDefaults` field. */ + limitDefaults?: JSONFilter; /** Filter by the object’s `limitIncrementFunction` field. */ limitIncrementFunction?: StringFilter; /** Filter by the object’s `limitIncrementTrigger` field. */ @@ -6455,12 +7005,18 @@ export interface MembershipsModuleFilter { and?: MembershipsModuleFilter[]; /** Filter by the object’s `apiName` field. */ apiName?: StringFilter; + /** Filter by the object’s `capabilitiesTableId` field. */ + capabilitiesTableId?: UUIDFilter; + /** Filter by the object’s `capabilityDefaultCapabilitiesTableId` field. */ + capabilityDefaultCapabilitiesTableId?: UUIDFilter; + /** Filter by the object’s `capabilityDefaultGrantsTableId` field. */ + capabilityDefaultGrantsTableId?: UUIDFilter; /** Filter by the object’s `databaseId` field. */ databaseId?: UUIDFilter; + /** Filter by the object’s `defaultCapabilitiesTableId` field. */ + defaultCapabilitiesTableId?: UUIDFilter; /** Filter by the object’s `defaultLimitsTableId` field. */ defaultLimitsTableId?: UUIDFilter; - /** Filter by the object’s `defaultPermissionsTableId` field. */ - defaultPermissionsTableId?: UUIDFilter; /** Filter by the object’s `entityField` field. */ entityField?: StringFilter; /** Filter by the object’s `entityIdsByMask` field. */ @@ -6509,12 +7065,6 @@ export interface MembershipsModuleFilter { ownerGrantsTableId?: UUIDFilter; /** Filter by the object’s `ownerGrantsTableName` field. */ ownerGrantsTableName?: StringFilter; - /** Filter by the object’s `permissionDefaultGrantsTableId` field. */ - permissionDefaultGrantsTableId?: UUIDFilter; - /** Filter by the object’s `permissionDefaultPermissionsTableId` field. */ - permissionDefaultPermissionsTableId?: UUIDFilter; - /** Filter by the object’s `permissionsTableId` field. */ - permissionsTableId?: UUIDFilter; /** Filter by the object’s `prefix` field. */ prefix?: StringFilter; /** Filter by the object’s `privateApiName` field. */ @@ -6537,8 +7087,14 @@ export interface MerkleStoreModuleFilter { and?: MerkleStoreModuleFilter[]; /** Filter by the object’s `apiName` field. */ apiName?: StringFilter; + /** Filter by the object’s `capabilityKey` field. */ + capabilityKey?: StringFilter; /** Filter by the object’s `commitTableId` field. */ commitTableId?: UUIDFilter; + /** Filter by the object’s `contentPresetModules` relation. */ + contentPresetModules?: MerkleStoreModuleToManyContentPresetModuleFilter; + /** `contentPresetModules` exist. */ + contentPresetModulesExist?: boolean; /** Filter by the object’s `createdAt` field. */ createdAt?: DatetimeFilter; /** Filter by the object’s `databaseId` field. */ @@ -6567,8 +7123,6 @@ export interface MerkleStoreModuleFilter { pagesModules?: MerkleStoreModuleToManyPagesModuleFilter; /** `pagesModules` exist. */ pagesModulesExist?: boolean; - /** Filter by the object’s `permissionKey` field. */ - permissionKey?: StringFilter; /** Filter by the object’s `prefix` field. */ prefix?: StringFilter; /** Filter by the object’s `privateApiName` field. */ @@ -6599,8 +7153,8 @@ export interface NamespaceModuleFilter { apiName?: StringFilter; /** Filter by the object’s `databaseId` field. */ databaseId?: UUIDFilter; - /** Filter by the object’s `defaultPermissions` field. */ - defaultPermissions?: StringListFilter; + /** Filter by the object’s `defaultCapabilities` field. */ + defaultCapabilities?: StringListFilter; /** Filter by the object’s `entityField` field. */ entityField?: StringFilter; /** Filter by the object’s `entityTableId` field. */ @@ -6659,8 +7213,8 @@ export interface NotificationsModuleFilter { channelsTableId?: UUIDFilter; /** Filter by the object’s `databaseId` field. */ databaseId?: UUIDFilter; - /** Filter by the object’s `defaultPermissions` field. */ - defaultPermissions?: StringListFilter; + /** Filter by the object’s `defaultCapabilities` field. */ + defaultCapabilities?: StringListFilter; /** Filter by the object’s `deliveryLogTableId` field. */ deliveryLogTableId?: UUIDFilter; /** Filter by the object’s `entityField` field. */ @@ -6706,6 +7260,38 @@ export interface NotificationsModuleFilter { /** Filter by the object’s `userSettingsTableId` field. */ userSettingsTableId?: UUIDFilter; } +export interface OauthRequestsModuleFilter { + /** Checks for all expressions in this list. */ + and?: OauthRequestsModuleFilter[]; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `entityField` field. */ + entityField?: StringFilter; + /** Filter by the object’s `entityTableId` field. */ + entityTableId?: UUIDFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Negates the expression. */ + not?: OauthRequestsModuleFilter; + /** Filter by the object’s `oauthAuthorizationRequestsTableId` field. */ + oauthAuthorizationRequestsTableId?: UUIDFilter; + /** Filter by the object’s `oauthAuthorizationRequestsTableName` field. */ + oauthAuthorizationRequestsTableName?: StringFilter; + /** Checks for any expressions in this list. */ + or?: OauthRequestsModuleFilter[]; + /** Filter by the object’s `pendingIdentityLinksTableId` field. */ + pendingIdentityLinksTableId?: UUIDFilter; + /** Filter by the object’s `pendingIdentityLinksTableName` field. */ + pendingIdentityLinksTableName?: StringFilter; + /** Filter by the object’s `prefix` field. */ + prefix?: StringFilter; + /** Filter by the object’s `privateSchemaId` field. */ + privateSchemaId?: UUIDFilter; + /** Filter by the object’s `privateSchemaName` field. */ + privateSchemaName?: StringFilter; + /** Filter by the object’s `scope` field. */ + scope?: StringFilter; +} export interface PagesModuleFilter { /** Checks for all expressions in this list. */ and?: PagesModuleFilter[]; @@ -6758,58 +7344,6 @@ export interface PagesModuleFilter { /** Filter by the object’s `storeNamePrefix` field. */ storeNamePrefix?: StringFilter; } -export interface PermissionsModuleFilter { - /** Filter by the object’s `actorTableId` field. */ - actorTableId?: UUIDFilter; - /** Checks for all expressions in this list. */ - and?: PermissionsModuleFilter[]; - /** Filter by the object’s `apiName` field. */ - apiName?: StringFilter; - /** Filter by the object’s `bitlen` field. */ - bitlen?: IntFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Filter by the object’s `defaultTableId` field. */ - defaultTableId?: UUIDFilter; - /** Filter by the object’s `defaultTableName` field. */ - defaultTableName?: StringFilter; - /** Filter by the object’s `entityField` field. */ - entityField?: StringFilter; - /** Filter by the object’s `entityTableId` field. */ - entityTableId?: UUIDFilter; - /** Filter by the object’s `getByMask` field. */ - getByMask?: StringFilter; - /** Filter by the object’s `getMask` field. */ - getMask?: StringFilter; - /** Filter by the object’s `getMaskByName` field. */ - getMaskByName?: StringFilter; - /** Filter by the object’s `getPaddedMask` field. */ - getPaddedMask?: StringFilter; - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Negates the expression. */ - not?: PermissionsModuleFilter; - /** Checks for any expressions in this list. */ - or?: PermissionsModuleFilter[]; - /** Filter by the object’s `prefix` field. */ - prefix?: StringFilter; - /** Filter by the object’s `privateApiName` field. */ - privateApiName?: StringFilter; - /** Filter by the object’s `privateSchemaId` field. */ - privateSchemaId?: UUIDFilter; - /** Filter by the object’s `privateSchemaName` field. */ - privateSchemaName?: StringFilter; - /** Filter by the object’s `publicSchemaName` field. */ - publicSchemaName?: StringFilter; - /** Filter by the object’s `schemaId` field. */ - schemaId?: UUIDFilter; - /** Filter by the object’s `scope` field. */ - scope?: StringFilter; - /** Filter by the object’s `tableId` field. */ - tableId?: UUIDFilter; - /** Filter by the object’s `tableName` field. */ - tableName?: StringFilter; -} export interface PhoneNumbersModuleFilter { /** Checks for all expressions in this list. */ and?: PhoneNumbersModuleFilter[]; @@ -6937,6 +7471,8 @@ export interface ProfilesModuleFilter { and?: ProfilesModuleFilter[]; /** Filter by the object’s `apiName` field. */ apiName?: StringFilter; + /** Filter by the object’s `capabilitiesTableId` field. */ + capabilitiesTableId?: UUIDFilter; /** Filter by the object’s `databaseId` field. */ databaseId?: UUIDFilter; /** Filter by the object’s `entityField` field. */ @@ -6945,14 +7481,16 @@ export interface ProfilesModuleFilter { entityTableId?: UUIDFilter; /** Filter by the object’s `id` field. */ id?: UUIDFilter; + /** Filter by the object’s `membershipProfilesTableId` field. */ + membershipProfilesTableId?: UUIDFilter; + /** Filter by the object’s `membershipProfilesTableName` field. */ + membershipProfilesTableName?: StringFilter; /** Filter by the object’s `membershipsTableId` field. */ membershipsTableId?: UUIDFilter; /** Negates the expression. */ not?: ProfilesModuleFilter; /** Checks for any expressions in this list. */ or?: ProfilesModuleFilter[]; - /** Filter by the object’s `permissionsTableId` field. */ - permissionsTableId?: UUIDFilter; /** Filter by the object’s `prefix` field. */ prefix?: StringFilter; /** Filter by the object’s `privateApiName` field. */ @@ -6961,6 +7499,10 @@ export interface ProfilesModuleFilter { privateSchemaId?: UUIDFilter; /** Filter by the object’s `privateSchemaName` field. */ privateSchemaName?: StringFilter; + /** Filter by the object’s `profileCapabilitiesTableId` field. */ + profileCapabilitiesTableId?: UUIDFilter; + /** Filter by the object’s `profileCapabilitiesTableName` field. */ + profileCapabilitiesTableName?: StringFilter; /** Filter by the object’s `profileDefinitionGrantsTableId` field. */ profileDefinitionGrantsTableId?: UUIDFilter; /** Filter by the object’s `profileDefinitionGrantsTableName` field. */ @@ -6969,10 +7511,6 @@ export interface ProfilesModuleFilter { profileGrantsTableId?: UUIDFilter; /** Filter by the object’s `profileGrantsTableName` field. */ profileGrantsTableName?: StringFilter; - /** Filter by the object’s `profilePermissionsTableId` field. */ - profilePermissionsTableId?: UUIDFilter; - /** Filter by the object’s `profilePermissionsTableName` field. */ - profilePermissionsTableName?: StringFilter; /** Filter by the object’s `profileTemplatesTableId` field. */ profileTemplatesTableId?: UUIDFilter; /** Filter by the object’s `profileTemplatesTableName` field. */ @@ -6997,8 +7535,8 @@ export interface RateLimitMetersModuleFilter { checkRateLimitFunction?: StringFilter; /** Filter by the object’s `databaseId` field. */ databaseId?: UUIDFilter; - /** Filter by the object’s `defaultPermissions` field. */ - defaultPermissions?: StringListFilter; + /** Filter by the object’s `defaultCapabilities` field. */ + defaultCapabilities?: StringListFilter; /** Filter by the object’s `id` field. */ id?: UUIDFilter; /** Negates the expression. */ @@ -7155,8 +7693,8 @@ export interface ResourceModuleFilter { apiName?: StringFilter; /** Filter by the object’s `databaseId` field. */ databaseId?: UUIDFilter; - /** Filter by the object’s `defaultPermissions` field. */ - defaultPermissions?: StringListFilter; + /** Filter by the object’s `defaultCapabilities` field. */ + defaultCapabilities?: StringListFilter; /** Filter by the object’s `entityField` field. */ entityField?: StringFilter; /** Filter by the object’s `entityTableId` field. */ @@ -7279,6 +7817,8 @@ export interface RouteModuleFilter { and?: RouteModuleFilter[]; /** Filter by the object’s `apiName` field. */ apiName?: StringFilter; + /** Filter by the object’s `appLinksFunctionName` field. */ + appLinksFunctionName?: StringFilter; /** Filter by the object’s `catalogModule` relation. */ catalogModule?: CatalogModuleFilter; /** A related `catalogModule` exists. */ @@ -7287,8 +7827,10 @@ export interface RouteModuleFilter { catalogModuleId?: UUIDFilter; /** Filter by the object’s `databaseId` field. */ databaseId?: UUIDFilter; - /** Filter by the object’s `defaultPermissions` field. */ - defaultPermissions?: StringListFilter; + /** Filter by the object’s `deepLinkFunctionName` field. */ + deepLinkFunctionName?: StringFilter; + /** Filter by the object’s `defaultCapabilities` field. */ + defaultCapabilities?: StringListFilter; /** Filter by the object’s `domainModule` relation. */ domainModule?: DomainModuleFilter; /** A related `domainModule` exists. */ @@ -7338,6 +7880,24 @@ export interface RouteModuleFilter { /** Filter by the object’s `scope` field. */ scope?: StringFilter; } +export interface ScopeTypesModuleFilter { + /** Checks for all expressions in this list. */ + and?: ScopeTypesModuleFilter[]; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Negates the expression. */ + not?: ScopeTypesModuleFilter; + /** Checks for any expressions in this list. */ + or?: ScopeTypesModuleFilter[]; + /** Filter by the object’s `privateSchemaName` field. */ + privateSchemaName?: StringFilter; + /** Filter by the object’s `schemaId` field. */ + schemaId?: UUIDFilter; + /** Filter by the object’s `scopeTypesTableId` field. */ + scopeTypesTableId?: UUIDFilter; +} export interface SecureTableProvisionFilter { /** Checks for all expressions in this list. */ and?: SecureTableProvisionFilter[]; @@ -7431,8 +7991,12 @@ export interface SiteSurfaceModuleFilter { catalogModuleId?: UUIDFilter; /** Filter by the object’s `databaseId` field. */ databaseId?: UUIDFilter; - /** Filter by the object’s `defaultPermissions` field. */ - defaultPermissions?: StringListFilter; + /** Filter by the object’s `defaultCapabilities` field. */ + defaultCapabilities?: StringListFilter; + /** Filter by the object’s `emailSenderModules` relation. */ + emailSenderModules?: SiteSurfaceModuleToManyEmailSenderModuleFilter; + /** `emailSenderModules` exist. */ + emailSenderModulesExist?: boolean; /** Filter by the object’s `entityField` field. */ entityField?: StringFilter; /** Filter by the object’s `entityTableId` field. */ @@ -7565,10 +8129,10 @@ export interface StorageModuleFilter { confirmUploadDelay?: IntervalFilter; /** Filter by the object’s `databaseId` field. */ databaseId?: UUIDFilter; + /** Filter by the object’s `defaultCapabilities` field. */ + defaultCapabilities?: StringListFilter; /** Filter by the object’s `defaultMaxFileSize` field. */ defaultMaxFileSize?: BigIntFilter; - /** Filter by the object’s `defaultPermissions` field. */ - defaultPermissions?: StringListFilter; /** Filter by the object’s `downloadUrlExpirySeconds` field. */ downloadUrlExpirySeconds?: IntFilter; /** Filter by the object’s `endpoint` field. */ @@ -7579,6 +8143,10 @@ export interface StorageModuleFilter { entityTableId?: UUIDFilter; /** Filter by the object’s `fileEventsTableId` field. */ fileEventsTableId?: UUIDFilter; + /** Filter by the object’s `fileRefFields` relation. */ + fileRefFields?: StorageModuleToManyFileRefFieldFilter; + /** `fileRefFields` exist. */ + fileRefFieldsExist?: boolean; /** Filter by the object’s `filesTableId` field. */ filesTableId?: UUIDFilter; /** Filter by the object’s `filesTableName` field. */ @@ -7796,6 +8364,28 @@ export interface UserSettingsModuleFilter { /** Filter by the object’s `tableName` field. */ tableName?: StringFilter; } +export interface UserSettingsSecurityModuleFilter { + /** Checks for all expressions in this list. */ + and?: UserSettingsSecurityModuleFilter[]; + /** Filter by the object’s `apiName` field. */ + apiName?: StringFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Negates the expression. */ + not?: UserSettingsSecurityModuleFilter; + /** Checks for any expressions in this list. */ + or?: UserSettingsSecurityModuleFilter[]; + /** Filter by the object’s `ownerTableId` field. */ + ownerTableId?: 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; +} export interface UserStateModuleFilter { /** Checks for all expressions in this list. */ and?: UserStateModuleFilter[]; @@ -7915,8 +8505,8 @@ export interface WebhookModuleFilter { apiName?: StringFilter; /** Filter by the object’s `databaseId` field. */ databaseId?: UUIDFilter; - /** Filter by the object’s `defaultPermissions` field. */ - defaultPermissions?: StringListFilter; + /** Filter by the object’s `defaultCapabilities` field. */ + defaultCapabilities?: StringListFilter; /** Filter by the object’s `entityField` field. */ entityField?: StringFilter; /** Filter by the object’s `entityTableId` field. */ @@ -7988,8 +8578,8 @@ export type AgentModuleOrderBy = | 'API_NAME_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' - | 'DEFAULT_PERMISSIONS_ASC' - | 'DEFAULT_PERMISSIONS_DESC' + | 'DEFAULT_CAPABILITIES_ASC' + | 'DEFAULT_CAPABILITIES_DESC' | 'ENTITY_FIELD_ASC' | 'ENTITY_FIELD_DESC' | 'ENTITY_TABLE_ID_ASC' @@ -8078,8 +8668,8 @@ export type ApiSurfaceModuleOrderBy = | 'CORS_SETTINGS_TABLE_NAME_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' - | 'DEFAULT_PERMISSIONS_ASC' - | 'DEFAULT_PERMISSIONS_DESC' + | 'DEFAULT_CAPABILITIES_ASC' + | 'DEFAULT_CAPABILITIES_DESC' | 'ENTITY_FIELD_ASC' | 'ENTITY_FIELD_DESC' | 'ENTITY_TABLE_ID_ASC' @@ -8118,8 +8708,8 @@ export type AppModuleOrderBy = | 'CATALOG_MODULE_ID_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' - | 'DEFAULT_PERMISSIONS_ASC' - | 'DEFAULT_PERMISSIONS_DESC' + | 'DEFAULT_CAPABILITIES_ASC' + | 'DEFAULT_CAPABILITIES_DESC' | 'ENTITY_FIELD_ASC' | 'ENTITY_FIELD_DESC' | 'ENTITY_TABLE_ID_ASC' @@ -8156,10 +8746,10 @@ export type BillingModuleOrderBy = | 'BALANCES_TABLE_NAME_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' + | 'DEFAULT_CAPABILITIES_ASC' + | 'DEFAULT_CAPABILITIES_DESC' | 'DEFAULT_METER_CATALOG_ASC' | 'DEFAULT_METER_CATALOG_DESC' - | 'DEFAULT_PERMISSIONS_ASC' - | 'DEFAULT_PERMISSIONS_DESC' | 'ID_ASC' | 'ID_DESC' | 'LEDGER_TABLE_ID_ASC' @@ -8214,6 +8804,10 @@ export type BillingProviderModuleOrderBy = | 'BILLING_CUSTOMERS_TABLE_ID_DESC' | 'BILLING_CUSTOMERS_TABLE_NAME_ASC' | 'BILLING_CUSTOMERS_TABLE_NAME_DESC' + | 'BILLING_INVOICES_TABLE_ID_ASC' + | 'BILLING_INVOICES_TABLE_ID_DESC' + | 'BILLING_INVOICES_TABLE_NAME_ASC' + | 'BILLING_INVOICES_TABLE_NAME_DESC' | 'BILLING_PRICES_TABLE_ID_ASC' | 'BILLING_PRICES_TABLE_ID_DESC' | 'BILLING_PRICES_TABLE_NAME_ASC' @@ -8222,6 +8816,10 @@ export type BillingProviderModuleOrderBy = | 'BILLING_PRODUCTS_TABLE_ID_DESC' | 'BILLING_PRODUCTS_TABLE_NAME_ASC' | 'BILLING_PRODUCTS_TABLE_NAME_DESC' + | 'BILLING_REFUNDS_TABLE_ID_ASC' + | 'BILLING_REFUNDS_TABLE_ID_DESC' + | 'BILLING_REFUNDS_TABLE_NAME_ASC' + | 'BILLING_REFUNDS_TABLE_NAME_DESC' | 'BILLING_SUBSCRIPTIONS_TABLE_ID_ASC' | 'BILLING_SUBSCRIPTIONS_TABLE_ID_DESC' | 'BILLING_SUBSCRIPTIONS_TABLE_NAME_ASC' @@ -8234,6 +8832,10 @@ export type BillingProviderModuleOrderBy = | 'DATABASE_ID_DESC' | 'ID_ASC' | 'ID_DESC' + | 'LIST_PENDING_USAGE_SYNC_FUNCTION_ASC' + | 'LIST_PENDING_USAGE_SYNC_FUNCTION_DESC' + | 'MARK_USAGE_SYNCED_FUNCTION_ASC' + | 'MARK_USAGE_SYNCED_FUNCTION_DESC' | 'NATURAL' | 'PREFIX_ASC' | 'PREFIX_DESC' @@ -8251,10 +8853,14 @@ export type BillingProviderModuleOrderBy = | 'PRODUCTS_TABLE_ID_DESC' | 'PROVIDER_ASC' | 'PROVIDER_DESC' + | 'RECORD_REFUND_FUNCTION_ASC' + | 'RECORD_REFUND_FUNCTION_DESC' | 'SCHEMA_ID_ASC' | 'SCHEMA_ID_DESC' | 'SUBSCRIPTIONS_TABLE_ID_ASC' - | 'SUBSCRIPTIONS_TABLE_ID_DESC'; + | 'SUBSCRIPTIONS_TABLE_ID_DESC' + | 'UPSERT_INVOICE_FUNCTION_ASC' + | 'UPSERT_INVOICE_FUNCTION_DESC'; export type BlueprintOrderBy = | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' @@ -8353,25 +8959,77 @@ export type BlueprintTemplateOrderBy = | 'VERSION_DESC' | 'VISIBILITY_ASC' | 'VISIBILITY_DESC'; -export type CatalogModuleOrderBy = - | 'APIS_TABLE_ID_ASC' - | 'APIS_TABLE_ID_DESC' - | 'APIS_TABLE_NAME_ASC' - | 'APIS_TABLE_NAME_DESC' - | 'API_NAME_ASC' +export type CapabilitiesModuleOrderBy = + | 'ACTOR_TABLE_ID_ASC' + | 'ACTOR_TABLE_ID_DESC' + | 'API_NAME_ASC' + | 'API_NAME_DESC' + | 'BITLEN_ASC' + | 'BITLEN_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'DEFAULT_TABLE_ID_ASC' + | 'DEFAULT_TABLE_ID_DESC' + | 'DEFAULT_TABLE_NAME_ASC' + | 'DEFAULT_TABLE_NAME_DESC' + | 'ENTITY_FIELD_ASC' + | 'ENTITY_FIELD_DESC' + | 'ENTITY_TABLE_ID_ASC' + | 'ENTITY_TABLE_ID_DESC' + | 'GET_BY_MASK_ASC' + | 'GET_BY_MASK_DESC' + | 'GET_MASK_ASC' + | 'GET_MASK_BY_NAME_ASC' + | 'GET_MASK_BY_NAME_DESC' + | 'GET_MASK_DESC' + | 'GET_PADDED_MASK_ASC' + | 'GET_PADDED_MASK_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'NATURAL' + | 'PREFIX_ASC' + | 'PREFIX_DESC' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'PRIVATE_API_NAME_ASC' + | 'PRIVATE_API_NAME_DESC' + | 'PRIVATE_SCHEMA_ID_ASC' + | 'PRIVATE_SCHEMA_ID_DESC' + | 'PRIVATE_SCHEMA_NAME_ASC' + | 'PRIVATE_SCHEMA_NAME_DESC' + | 'PUBLIC_SCHEMA_NAME_ASC' + | 'PUBLIC_SCHEMA_NAME_DESC' + | 'SCHEMA_ID_ASC' + | 'SCHEMA_ID_DESC' + | 'SCOPE_ASC' + | 'SCOPE_DESC' + | 'TABLE_ID_ASC' + | 'TABLE_ID_DESC' + | 'TABLE_NAME_ASC' + | 'TABLE_NAME_DESC'; +export type CatalogModuleOrderBy = + | 'APIS_TABLE_ID_ASC' + | 'APIS_TABLE_ID_DESC' + | 'APIS_TABLE_NAME_ASC' + | 'APIS_TABLE_NAME_DESC' + | 'API_NAME_ASC' | 'API_NAME_DESC' | 'APPS_TABLE_ID_ASC' | 'APPS_TABLE_ID_DESC' | 'APPS_TABLE_NAME_ASC' | 'APPS_TABLE_NAME_DESC' + | 'BINDINGS_TABLE_ID_ASC' + | 'BINDINGS_TABLE_ID_DESC' + | 'BINDINGS_TABLE_NAME_ASC' + | 'BINDINGS_TABLE_NAME_DESC' | 'BUCKETS_TABLE_ID_ASC' | 'BUCKETS_TABLE_ID_DESC' | 'BUCKETS_TABLE_NAME_ASC' | 'BUCKETS_TABLE_NAME_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' - | 'DEFAULT_PERMISSIONS_ASC' - | 'DEFAULT_PERMISSIONS_DESC' + | 'DEFAULT_CAPABILITIES_ASC' + | 'DEFAULT_CAPABILITIES_DESC' | 'DOMAINS_TABLE_ID_ASC' | 'DOMAINS_TABLE_ID_DESC' | 'DOMAINS_TABLE_NAME_ASC' @@ -8521,6 +9179,44 @@ export type ConnectedAccountsModuleOrderBy = | 'TABLE_ID_DESC' | 'TABLE_NAME_ASC' | 'TABLE_NAME_DESC'; +export type ContentPresetModuleOrderBy = + | 'API_NAME_ASC' + | 'API_NAME_DESC' + | 'CONTENT_PRESETS_TABLE_ID_ASC' + | 'CONTENT_PRESETS_TABLE_ID_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'ENTITY_TABLE_ID_ASC' + | 'ENTITY_TABLE_ID_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'MERKLE_STORE_MODULE_ID_ASC' + | 'MERKLE_STORE_MODULE_ID_DESC' + | 'NATURAL' + | 'POLICIES_ASC' + | 'POLICIES_DESC' + | 'PREFIX_ASC' + | 'PREFIX_DESC' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'PRIVATE_API_NAME_ASC' + | 'PRIVATE_API_NAME_DESC' + | 'PRIVATE_SCHEMA_ID_ASC' + | 'PRIVATE_SCHEMA_ID_DESC' + | 'PRIVATE_SCHEMA_NAME_ASC' + | 'PRIVATE_SCHEMA_NAME_DESC' + | 'PROVISIONS_ASC' + | 'PROVISIONS_DESC' + | 'PUBLIC_SCHEMA_ID_ASC' + | 'PUBLIC_SCHEMA_ID_DESC' + | 'PUBLIC_SCHEMA_NAME_ASC' + | 'PUBLIC_SCHEMA_NAME_DESC' + | 'SCOPE_ASC' + | 'SCOPE_DESC' + | 'STORE_NAME_ASC' + | 'STORE_NAME_DESC'; export type CryptoAddressesModuleOrderBy = | 'API_NAME_ASC' | 'API_NAME_DESC' @@ -8577,6 +9273,32 @@ export type CryptoAuthModuleOrderBy = | 'USERS_TABLE_ID_DESC' | 'USER_FIELD_ASC' | 'USER_FIELD_DESC'; +export type DataCapabilitiesFieldOrderBy = + | 'CAPABILITIES_MODULE_ID_ASC' + | 'CAPABILITIES_MODULE_ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'FIELD_ID_ASC' + | 'FIELD_ID_DESC' + | 'FROM_FIELD_ID_ASC' + | 'FROM_FIELD_ID_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'MAPPING_FIELD_ID_ASC' + | 'MAPPING_FIELD_ID_DESC' + | 'MAPPING_KEY_FIELD_ID_ASC' + | 'MAPPING_KEY_FIELD_ID_DESC' + | 'MAPPING_TABLE_ID_ASC' + | 'MAPPING_TABLE_ID_DESC' + | 'MODE_ASC' + | 'MODE_DESC' + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'SUBSET_GUARD_ASC' + | 'SUBSET_GUARD_DESC' + | 'TABLE_ID_ASC' + | 'TABLE_ID_DESC'; export type DatabaseProvisionModuleOrderBy = | 'ASYNC_ASC' | 'ASYNC_DESC' @@ -8628,8 +9350,8 @@ export type DatabaseSettingsModuleOrderBy = | 'DATABASE_SETTINGS_TABLE_ID_DESC' | 'DATABASE_SETTINGS_TABLE_NAME_ASC' | 'DATABASE_SETTINGS_TABLE_NAME_DESC' - | 'DEFAULT_PERMISSIONS_ASC' - | 'DEFAULT_PERMISSIONS_DESC' + | 'DEFAULT_CAPABILITIES_ASC' + | 'DEFAULT_CAPABILITIES_DESC' | 'ENTITY_FIELD_ASC' | 'ENTITY_FIELD_DESC' | 'ENTITY_TABLE_ID_ASC' @@ -8766,8 +9488,8 @@ export type DbUsageModuleOrderBy = | 'COLLECT_DB_TABLE_STATS_FUNCTION_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' - | 'DEFAULT_PERMISSIONS_ASC' - | 'DEFAULT_PERMISSIONS_DESC' + | 'DEFAULT_CAPABILITIES_ASC' + | 'DEFAULT_CAPABILITIES_DESC' | 'ENTITY_FIELD_ASC' | 'ENTITY_FIELD_DESC' | 'ID_ASC' @@ -8876,8 +9598,8 @@ export type DomainModuleOrderBy = | 'CATALOG_MODULE_ID_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' - | 'DEFAULT_PERMISSIONS_ASC' - | 'DEFAULT_PERMISSIONS_DESC' + | 'DEFAULT_CAPABILITIES_ASC' + | 'DEFAULT_CAPABILITIES_DESC' | 'DOMAINS_TABLE_ID_ASC' | 'DOMAINS_TABLE_ID_DESC' | 'DOMAINS_TABLE_NAME_ASC' @@ -8921,6 +9643,50 @@ export type DomainModuleOrderBy = | 'SCHEMA_ID_DESC' | 'SCOPE_ASC' | 'SCOPE_DESC'; +export type EmailSenderModuleOrderBy = + | 'API_NAME_ASC' + | 'API_NAME_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'DEFAULT_CAPABILITIES_ASC' + | 'DEFAULT_CAPABILITIES_DESC' + | 'EMAIL_IDENTITIES_TABLE_ID_ASC' + | 'EMAIL_IDENTITIES_TABLE_ID_DESC' + | 'EMAIL_IDENTITIES_TABLE_NAME_ASC' + | 'EMAIL_IDENTITIES_TABLE_NAME_DESC' + | 'EMAIL_PROVIDER_ACCOUNTS_TABLE_ID_ASC' + | 'EMAIL_PROVIDER_ACCOUNTS_TABLE_ID_DESC' + | 'EMAIL_PROVIDER_ACCOUNTS_TABLE_NAME_ASC' + | 'EMAIL_PROVIDER_ACCOUNTS_TABLE_NAME_DESC' + | 'EMAIL_SITE_IDENTITIES_TABLE_ID_ASC' + | 'EMAIL_SITE_IDENTITIES_TABLE_ID_DESC' + | 'EMAIL_SITE_IDENTITIES_TABLE_NAME_ASC' + | 'EMAIL_SITE_IDENTITIES_TABLE_NAME_DESC' + | 'ENTITY_FIELD_ASC' + | 'ENTITY_FIELD_DESC' + | 'ENTITY_TABLE_ID_ASC' + | 'ENTITY_TABLE_ID_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'NATURAL' + | 'POLICIES_ASC' + | 'POLICIES_DESC' + | 'PREFIX_ASC' + | 'PREFIX_DESC' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'PRIVATE_API_NAME_ASC' + | 'PRIVATE_API_NAME_DESC' + | 'PROVISIONS_ASC' + | 'PROVISIONS_DESC' + | 'PUBLIC_SCHEMA_NAME_ASC' + | 'PUBLIC_SCHEMA_NAME_DESC' + | 'SCHEMA_ID_ASC' + | 'SCHEMA_ID_DESC' + | 'SCOPE_ASC' + | 'SCOPE_DESC' + | 'SITE_SURFACE_MODULE_ID_ASC' + | 'SITE_SURFACE_MODULE_ID_DESC'; export type EmailsModuleOrderBy = | 'API_NAME_ASC' | 'API_NAME_DESC' @@ -9036,8 +9802,8 @@ export type EventsModuleOrderBy = | 'API_NAME_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' - | 'DEFAULT_PERMISSIONS_ASC' - | 'DEFAULT_PERMISSIONS_DESC' + | 'DEFAULT_CAPABILITIES_ASC' + | 'DEFAULT_CAPABILITIES_DESC' | 'ENTITY_FIELD_ASC' | 'ENTITY_FIELD_DESC' | 'ENTITY_TABLE_ID_ASC' @@ -9054,6 +9820,8 @@ export type EventsModuleOrderBy = | 'EVENT_TYPES_TABLE_ID_DESC' | 'EVENT_TYPES_TABLE_NAME_ASC' | 'EVENT_TYPES_TABLE_NAME_DESC' + | 'EXPIRE_GRANTS_ASC' + | 'EXPIRE_GRANTS_DESC' | 'GRANT_ACHIEVEMENT_ASC' | 'GRANT_ACHIEVEMENT_DESC' | 'ID_ASC' @@ -9089,12 +9857,16 @@ export type EventsModuleOrderBy = | 'PRIVATE_SCHEMA_NAME_DESC' | 'PUBLIC_SCHEMA_NAME_ASC' | 'PUBLIC_SCHEMA_NAME_DESC' + | 'RECOMPUTE_CAPABILITIES_ASC' + | 'RECOMPUTE_CAPABILITIES_DESC' | 'RECORD_EVENT_ASC' | 'RECORD_EVENT_DESC' | 'REMOVE_EVENT_ASC' | 'REMOVE_EVENT_DESC' | 'RETENTION_ASC' | 'RETENTION_DESC' + | 'REVOKE_ACHIEVEMENT_ASC' + | 'REVOKE_ACHIEVEMENT_DESC' | 'SCHEMA_ID_ASC' | 'SCHEMA_ID_DESC' | 'SCOPE_ASC' @@ -9113,17 +9885,43 @@ export type EventsModuleOrderBy = | 'TG_EVENT_TOGGLE_BOOL_ASC' | 'TG_EVENT_TOGGLE_BOOL_DESC' | 'TG_EVENT_TOGGLE_DESC' + | 'TG_LEVEL_GRANT_SYNC_ASC' + | 'TG_LEVEL_GRANT_SYNC_DESC' | 'TG_UPDATE_AGGREGATES_ASC' | 'TG_UPDATE_AGGREGATES_DESC' + | 'TRUST_LADDER_ASC' + | 'TRUST_LADDER_DESC' | 'UPSERT_AGGREGATE_ASC' | 'UPSERT_AGGREGATE_DESC'; +export type FileRefFieldOrderBy = + | 'BUCKET_KEY_ASC' + | 'BUCKET_KEY_DESC' + | 'BUCKET_TAGS_ASC' + | 'BUCKET_TAGS_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'ENFORCE_FK_ASC' + | 'ENFORCE_FK_DESC' + | 'FIELD_ID_ASC' + | 'FIELD_ID_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'IS_PUBLIC_ASC' + | 'IS_PUBLIC_DESC' + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'STORAGE_MODULE_ID_ASC' + | 'STORAGE_MODULE_ID_DESC' + | 'TABLE_ID_ASC' + | 'TABLE_ID_DESC'; export type FunctionDeploymentModuleOrderBy = | 'API_NAME_ASC' | 'API_NAME_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' - | 'DEFAULT_PERMISSIONS_ASC' - | 'DEFAULT_PERMISSIONS_DESC' + | 'DEFAULT_CAPABILITIES_ASC' + | 'DEFAULT_CAPABILITIES_DESC' | 'DEPLOYMENTS_TABLE_ID_ASC' | 'DEPLOYMENTS_TABLE_ID_DESC' | 'DEPLOYMENTS_TABLE_NAME_ASC' @@ -9172,8 +9970,8 @@ export type FunctionInvocationModuleOrderBy = | 'ATTEMPTS_TABLE_NAME_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' - | 'DEFAULT_PERMISSIONS_ASC' - | 'DEFAULT_PERMISSIONS_DESC' + | 'DEFAULT_CAPABILITIES_ASC' + | 'DEFAULT_CAPABILITIES_DESC' | 'ENTITY_FIELD_ASC' | 'ENTITY_FIELD_DESC' | 'ENTITY_TABLE_ID_ASC' @@ -9220,8 +10018,8 @@ export type FunctionModuleOrderBy = | 'CAPABILITY_BINDINGS_TABLE_ID_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' - | 'DEFAULT_PERMISSIONS_ASC' - | 'DEFAULT_PERMISSIONS_DESC' + | 'DEFAULT_CAPABILITIES_ASC' + | 'DEFAULT_CAPABILITIES_DESC' | 'DEFINITIONS_TABLE_ID_ASC' | 'DEFINITIONS_TABLE_ID_DESC' | 'DEFINITIONS_TABLE_NAME_ASC' @@ -9264,8 +10062,8 @@ export type GraphExecutionModuleOrderBy = | 'CREATED_AT_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' - | 'DEFAULT_PERMISSIONS_ASC' - | 'DEFAULT_PERMISSIONS_DESC' + | 'DEFAULT_CAPABILITIES_ASC' + | 'DEFAULT_CAPABILITIES_DESC' | 'ENTITY_FIELD_ASC' | 'ENTITY_FIELD_DESC' | 'ENTITY_TABLE_ID_ASC' @@ -9314,8 +10112,8 @@ export type GraphModuleOrderBy = | 'CREATED_AT_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' - | 'DEFAULT_PERMISSIONS_ASC' - | 'DEFAULT_PERMISSIONS_DESC' + | 'DEFAULT_CAPABILITIES_ASC' + | 'DEFAULT_CAPABILITIES_DESC' | 'ENTITY_FIELD_ASC' | 'ENTITY_FIELD_DESC' | 'ENTITY_TABLE_ID_ASC' @@ -9360,8 +10158,8 @@ export type HierarchyModuleOrderBy = | 'CREATED_AT_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' - | 'DEFAULT_PERMISSIONS_ASC' - | 'DEFAULT_PERMISSIONS_DESC' + | 'DEFAULT_CAPABILITIES_ASC' + | 'DEFAULT_CAPABILITIES_DESC' | 'ENTITY_FIELD_ASC' | 'ENTITY_FIELD_DESC' | 'ENTITY_TABLE_ID_ASC' @@ -9402,8 +10200,8 @@ export type HttpRouteModuleOrderBy = | 'API_NAME_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' - | 'DEFAULT_PERMISSIONS_ASC' - | 'DEFAULT_PERMISSIONS_DESC' + | 'DEFAULT_CAPABILITIES_ASC' + | 'DEFAULT_CAPABILITIES_DESC' | 'ENTITY_FIELD_ASC' | 'ENTITY_FIELD_DESC' | 'ENTITY_TABLE_ID_ASC' @@ -9764,6 +10562,8 @@ export type LimitsModuleOrderBy = | 'LIMIT_DECREMENT_FUNCTION_DESC' | 'LIMIT_DECREMENT_TRIGGER_ASC' | 'LIMIT_DECREMENT_TRIGGER_DESC' + | 'LIMIT_DEFAULTS_ASC' + | 'LIMIT_DEFAULTS_DESC' | 'LIMIT_INCREMENT_FUNCTION_ASC' | 'LIMIT_INCREMENT_FUNCTION_DESC' | 'LIMIT_INCREMENT_TRIGGER_ASC' @@ -9824,12 +10624,18 @@ export type MembershipsModuleOrderBy = | 'ADMIN_GRANTS_TABLE_NAME_DESC' | 'API_NAME_ASC' | 'API_NAME_DESC' + | 'CAPABILITIES_TABLE_ID_ASC' + | 'CAPABILITIES_TABLE_ID_DESC' + | 'CAPABILITY_DEFAULT_CAPABILITIES_TABLE_ID_ASC' + | 'CAPABILITY_DEFAULT_CAPABILITIES_TABLE_ID_DESC' + | 'CAPABILITY_DEFAULT_GRANTS_TABLE_ID_ASC' + | 'CAPABILITY_DEFAULT_GRANTS_TABLE_ID_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' + | 'DEFAULT_CAPABILITIES_TABLE_ID_ASC' + | 'DEFAULT_CAPABILITIES_TABLE_ID_DESC' | 'DEFAULT_LIMITS_TABLE_ID_ASC' | 'DEFAULT_LIMITS_TABLE_ID_DESC' - | 'DEFAULT_PERMISSIONS_TABLE_ID_ASC' - | 'DEFAULT_PERMISSIONS_TABLE_ID_DESC' | 'ENTITY_FIELD_ASC' | 'ENTITY_FIELD_DESC' | 'ENTITY_IDS_BY_MASK_ASC' @@ -9875,12 +10681,6 @@ export type MembershipsModuleOrderBy = | 'OWNER_GRANTS_TABLE_ID_DESC' | 'OWNER_GRANTS_TABLE_NAME_ASC' | 'OWNER_GRANTS_TABLE_NAME_DESC' - | 'PERMISSIONS_TABLE_ID_ASC' - | 'PERMISSIONS_TABLE_ID_DESC' - | 'PERMISSION_DEFAULT_GRANTS_TABLE_ID_ASC' - | 'PERMISSION_DEFAULT_GRANTS_TABLE_ID_DESC' - | 'PERMISSION_DEFAULT_PERMISSIONS_TABLE_ID_ASC' - | 'PERMISSION_DEFAULT_PERMISSIONS_TABLE_ID_DESC' | 'PREFIX_ASC' | 'PREFIX_DESC' | 'PRIMARY_KEY_ASC' @@ -9902,6 +10702,8 @@ export type MembershipsModuleOrderBy = export type MerkleStoreModuleOrderBy = | 'API_NAME_ASC' | 'API_NAME_DESC' + | 'CAPABILITY_KEY_ASC' + | 'CAPABILITY_KEY_DESC' | 'COMMIT_TABLE_ID_ASC' | 'COMMIT_TABLE_ID_DESC' | 'CREATED_AT_ASC' @@ -9917,8 +10719,6 @@ export type MerkleStoreModuleOrderBy = | 'NATURAL' | 'OBJECT_TABLE_ID_ASC' | 'OBJECT_TABLE_ID_DESC' - | 'PERMISSION_KEY_ASC' - | 'PERMISSION_KEY_DESC' | 'PREFIX_ASC' | 'PREFIX_DESC' | 'PRIMARY_KEY_ASC' @@ -9944,8 +10744,8 @@ export type NamespaceModuleOrderBy = | 'API_NAME_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' - | 'DEFAULT_PERMISSIONS_ASC' - | 'DEFAULT_PERMISSIONS_DESC' + | 'DEFAULT_CAPABILITIES_ASC' + | 'DEFAULT_CAPABILITIES_DESC' | 'ENTITY_FIELD_ASC' | 'ENTITY_FIELD_DESC' | 'ENTITY_TABLE_ID_ASC' @@ -9988,8 +10788,8 @@ export type NotificationsModuleOrderBy = | 'CHANNELS_TABLE_ID_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' - | 'DEFAULT_PERMISSIONS_ASC' - | 'DEFAULT_PERMISSIONS_DESC' + | 'DEFAULT_CAPABILITIES_ASC' + | 'DEFAULT_CAPABILITIES_DESC' | 'DELIVERY_LOG_TABLE_ID_ASC' | 'DELIVERY_LOG_TABLE_ID_DESC' | 'ENTITY_FIELD_ASC' @@ -10033,6 +10833,34 @@ export type NotificationsModuleOrderBy = | 'SUPPRESSIONS_TABLE_ID_DESC' | 'USER_SETTINGS_TABLE_ID_ASC' | 'USER_SETTINGS_TABLE_ID_DESC'; +export type OauthRequestsModuleOrderBy = + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'ENTITY_FIELD_ASC' + | 'ENTITY_FIELD_DESC' + | 'ENTITY_TABLE_ID_ASC' + | 'ENTITY_TABLE_ID_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'NATURAL' + | 'OAUTH_AUTHORIZATION_REQUESTS_TABLE_ID_ASC' + | 'OAUTH_AUTHORIZATION_REQUESTS_TABLE_ID_DESC' + | 'OAUTH_AUTHORIZATION_REQUESTS_TABLE_NAME_ASC' + | 'OAUTH_AUTHORIZATION_REQUESTS_TABLE_NAME_DESC' + | 'PENDING_IDENTITY_LINKS_TABLE_ID_ASC' + | 'PENDING_IDENTITY_LINKS_TABLE_ID_DESC' + | 'PENDING_IDENTITY_LINKS_TABLE_NAME_ASC' + | 'PENDING_IDENTITY_LINKS_TABLE_NAME_DESC' + | 'PREFIX_ASC' + | 'PREFIX_DESC' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'PRIVATE_SCHEMA_ID_ASC' + | 'PRIVATE_SCHEMA_ID_DESC' + | 'PRIVATE_SCHEMA_NAME_ASC' + | 'PRIVATE_SCHEMA_NAME_DESC' + | 'SCOPE_ASC' + | 'SCOPE_DESC'; export type PagesModuleOrderBy = | 'API_NAME_ASC' | 'API_NAME_DESC' @@ -10075,54 +10903,6 @@ export type PagesModuleOrderBy = | 'SITE_SURFACE_MODULE_ID_DESC' | 'STORE_NAME_PREFIX_ASC' | 'STORE_NAME_PREFIX_DESC'; -export type PermissionsModuleOrderBy = - | 'ACTOR_TABLE_ID_ASC' - | 'ACTOR_TABLE_ID_DESC' - | 'API_NAME_ASC' - | 'API_NAME_DESC' - | 'BITLEN_ASC' - | 'BITLEN_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' - | 'DEFAULT_TABLE_ID_ASC' - | 'DEFAULT_TABLE_ID_DESC' - | 'DEFAULT_TABLE_NAME_ASC' - | 'DEFAULT_TABLE_NAME_DESC' - | 'ENTITY_FIELD_ASC' - | 'ENTITY_FIELD_DESC' - | 'ENTITY_TABLE_ID_ASC' - | 'ENTITY_TABLE_ID_DESC' - | 'GET_BY_MASK_ASC' - | 'GET_BY_MASK_DESC' - | 'GET_MASK_ASC' - | 'GET_MASK_BY_NAME_ASC' - | 'GET_MASK_BY_NAME_DESC' - | 'GET_MASK_DESC' - | 'GET_PADDED_MASK_ASC' - | 'GET_PADDED_MASK_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'NATURAL' - | 'PREFIX_ASC' - | 'PREFIX_DESC' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'PRIVATE_API_NAME_ASC' - | 'PRIVATE_API_NAME_DESC' - | 'PRIVATE_SCHEMA_ID_ASC' - | 'PRIVATE_SCHEMA_ID_DESC' - | 'PRIVATE_SCHEMA_NAME_ASC' - | 'PRIVATE_SCHEMA_NAME_DESC' - | 'PUBLIC_SCHEMA_NAME_ASC' - | 'PUBLIC_SCHEMA_NAME_DESC' - | 'SCHEMA_ID_ASC' - | 'SCHEMA_ID_DESC' - | 'SCOPE_ASC' - | 'SCOPE_DESC' - | 'TABLE_ID_ASC' - | 'TABLE_ID_DESC' - | 'TABLE_NAME_ASC' - | 'TABLE_NAME_DESC'; export type PhoneNumbersModuleOrderBy = | 'API_NAME_ASC' | 'API_NAME_DESC' @@ -10236,6 +11016,8 @@ export type ProfilesModuleOrderBy = | 'ACTOR_TABLE_ID_DESC' | 'API_NAME_ASC' | 'API_NAME_DESC' + | 'CAPABILITIES_TABLE_ID_ASC' + | 'CAPABILITIES_TABLE_ID_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' | 'ENTITY_FIELD_ASC' @@ -10246,9 +11028,11 @@ export type ProfilesModuleOrderBy = | 'ID_DESC' | 'MEMBERSHIPS_TABLE_ID_ASC' | 'MEMBERSHIPS_TABLE_ID_DESC' + | 'MEMBERSHIP_PROFILES_TABLE_ID_ASC' + | 'MEMBERSHIP_PROFILES_TABLE_ID_DESC' + | 'MEMBERSHIP_PROFILES_TABLE_NAME_ASC' + | 'MEMBERSHIP_PROFILES_TABLE_NAME_DESC' | 'NATURAL' - | 'PERMISSIONS_TABLE_ID_ASC' - | 'PERMISSIONS_TABLE_ID_DESC' | 'PREFIX_ASC' | 'PREFIX_DESC' | 'PRIMARY_KEY_ASC' @@ -10259,6 +11043,10 @@ export type ProfilesModuleOrderBy = | 'PRIVATE_SCHEMA_ID_DESC' | 'PRIVATE_SCHEMA_NAME_ASC' | 'PRIVATE_SCHEMA_NAME_DESC' + | 'PROFILE_CAPABILITIES_TABLE_ID_ASC' + | 'PROFILE_CAPABILITIES_TABLE_ID_DESC' + | 'PROFILE_CAPABILITIES_TABLE_NAME_ASC' + | 'PROFILE_CAPABILITIES_TABLE_NAME_DESC' | 'PROFILE_DEFINITION_GRANTS_TABLE_ID_ASC' | 'PROFILE_DEFINITION_GRANTS_TABLE_ID_DESC' | 'PROFILE_DEFINITION_GRANTS_TABLE_NAME_ASC' @@ -10267,10 +11055,6 @@ export type ProfilesModuleOrderBy = | 'PROFILE_GRANTS_TABLE_ID_DESC' | 'PROFILE_GRANTS_TABLE_NAME_ASC' | 'PROFILE_GRANTS_TABLE_NAME_DESC' - | 'PROFILE_PERMISSIONS_TABLE_ID_ASC' - | 'PROFILE_PERMISSIONS_TABLE_ID_DESC' - | 'PROFILE_PERMISSIONS_TABLE_NAME_ASC' - | 'PROFILE_PERMISSIONS_TABLE_NAME_DESC' | 'PROFILE_TEMPLATES_TABLE_ID_ASC' | 'PROFILE_TEMPLATES_TABLE_ID_DESC' | 'PROFILE_TEMPLATES_TABLE_NAME_ASC' @@ -10292,8 +11076,8 @@ export type RateLimitMetersModuleOrderBy = | 'CHECK_RATE_LIMIT_FUNCTION_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' - | 'DEFAULT_PERMISSIONS_ASC' - | 'DEFAULT_PERMISSIONS_DESC' + | 'DEFAULT_CAPABILITIES_ASC' + | 'DEFAULT_CAPABILITIES_DESC' | 'ID_ASC' | 'ID_DESC' | 'NATURAL' @@ -10434,8 +11218,8 @@ export type ResourceModuleOrderBy = | 'API_NAME_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' - | 'DEFAULT_PERMISSIONS_ASC' - | 'DEFAULT_PERMISSIONS_DESC' + | 'DEFAULT_CAPABILITIES_ASC' + | 'DEFAULT_CAPABILITIES_DESC' | 'ENTITY_FIELD_ASC' | 'ENTITY_FIELD_DESC' | 'ENTITY_TABLE_ID_ASC' @@ -10538,12 +11322,16 @@ export type RlsModuleOrderBy = export type RouteModuleOrderBy = | 'API_NAME_ASC' | 'API_NAME_DESC' + | 'APP_LINKS_FUNCTION_NAME_ASC' + | 'APP_LINKS_FUNCTION_NAME_DESC' | 'CATALOG_MODULE_ID_ASC' | 'CATALOG_MODULE_ID_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' - | 'DEFAULT_PERMISSIONS_ASC' - | 'DEFAULT_PERMISSIONS_DESC' + | 'DEEP_LINK_FUNCTION_NAME_ASC' + | 'DEEP_LINK_FUNCTION_NAME_DESC' + | 'DEFAULT_CAPABILITIES_ASC' + | 'DEFAULT_CAPABILITIES_DESC' | 'DOMAIN_MODULE_ID_ASC' | 'DOMAIN_MODULE_ID_DESC' | 'ENTITY_FIELD_ASC' @@ -10587,6 +11375,20 @@ export type RouteModuleOrderBy = | 'SCHEMA_ID_DESC' | 'SCOPE_ASC' | 'SCOPE_DESC'; +export type ScopeTypesModuleOrderBy = + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'PRIVATE_SCHEMA_NAME_ASC' + | 'PRIVATE_SCHEMA_NAME_DESC' + | 'SCHEMA_ID_ASC' + | 'SCHEMA_ID_DESC' + | 'SCOPE_TYPES_TABLE_ID_ASC' + | 'SCOPE_TYPES_TABLE_ID_DESC'; export type SecureTableProvisionOrderBy = | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' @@ -10662,8 +11464,8 @@ export type SiteSurfaceModuleOrderBy = | 'CATALOG_MODULE_ID_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' - | 'DEFAULT_PERMISSIONS_ASC' - | 'DEFAULT_PERMISSIONS_DESC' + | 'DEFAULT_CAPABILITIES_ASC' + | 'DEFAULT_CAPABILITIES_DESC' | 'ENTITY_FIELD_ASC' | 'ENTITY_FIELD_DESC' | 'ENTITY_TABLE_ID_ASC' @@ -10784,10 +11586,10 @@ export type StorageModuleOrderBy = | 'CONFIRM_UPLOAD_DELAY_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' + | 'DEFAULT_CAPABILITIES_ASC' + | 'DEFAULT_CAPABILITIES_DESC' | 'DEFAULT_MAX_FILE_SIZE_ASC' | 'DEFAULT_MAX_FILE_SIZE_DESC' - | 'DEFAULT_PERMISSIONS_ASC' - | 'DEFAULT_PERMISSIONS_DESC' | 'DOWNLOAD_URL_EXPIRY_SECONDS_ASC' | 'DOWNLOAD_URL_EXPIRY_SECONDS_DESC' | 'ENDPOINT_ASC' @@ -10993,6 +11795,24 @@ export type UserSettingsModuleOrderBy = | 'TABLE_ID_DESC' | 'TABLE_NAME_ASC' | 'TABLE_NAME_DESC'; +export type UserSettingsSecurityModuleOrderBy = + | 'API_NAME_ASC' + | 'API_NAME_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'NATURAL' + | 'OWNER_TABLE_ID_ASC' + | 'OWNER_TABLE_ID_DESC' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'SCHEMA_ID_ASC' + | 'SCHEMA_ID_DESC' + | 'TABLE_ID_ASC' + | 'TABLE_ID_DESC' + | 'TABLE_NAME_ASC' + | 'TABLE_NAME_DESC'; export type UserStateModuleOrderBy = | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' @@ -11094,8 +11914,8 @@ export type WebhookModuleOrderBy = | 'API_NAME_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' - | 'DEFAULT_PERMISSIONS_ASC' - | 'DEFAULT_PERMISSIONS_DESC' + | 'DEFAULT_CAPABILITIES_ASC' + | 'DEFAULT_CAPABILITIES_DESC' | 'ENTITY_FIELD_ASC' | 'ENTITY_FIELD_DESC' | 'ENTITY_TABLE_ID_ASC' @@ -11147,7 +11967,7 @@ export interface CreateAgentModuleInput { agentTableName?: string; apiName?: string; databaseId: string; - defaultPermissions?: string[]; + defaultCapabilities?: string[]; entityField?: string; entityTableId?: string; hasAgents?: boolean; @@ -11185,7 +12005,7 @@ export interface AgentModulePatch { agentTableName?: string | null; apiName?: string | null; databaseId?: string | null; - defaultPermissions?: string[] | null; + defaultCapabilities?: string[] | null; entityField?: string | null; entityTableId?: string | null; hasAgents?: boolean | null; @@ -11240,7 +12060,7 @@ export interface CreateApiSurfaceModuleInput { corsSettingsTableId?: string; corsSettingsTableName?: string; databaseId: string; - defaultPermissions?: string[]; + defaultCapabilities?: string[]; entityField?: string; entityTableId?: string; policies?: Record; @@ -11264,7 +12084,7 @@ export interface ApiSurfaceModulePatch { corsSettingsTableId?: string | null; corsSettingsTableName?: string | null; databaseId?: string | null; - defaultPermissions?: string[] | null; + defaultCapabilities?: string[] | null; entityField?: string | null; entityTableId?: string | null; policies?: Record | null; @@ -11294,7 +12114,7 @@ export interface CreateAppModuleInput { appsTableName?: string; catalogModuleId?: string; databaseId: string; - defaultPermissions?: string[]; + defaultCapabilities?: string[]; entityField?: string; entityTableId?: string; policies?: Record; @@ -11316,7 +12136,7 @@ export interface AppModulePatch { appsTableName?: string | null; catalogModuleId?: string | null; databaseId?: string | null; - defaultPermissions?: string[] | null; + defaultCapabilities?: string[] | null; entityField?: string | null; entityTableId?: string | null; policies?: Record | null; @@ -11345,8 +12165,8 @@ export interface CreateBillingModuleInput { balancesTableId?: string; balancesTableName?: string; databaseId: string; + defaultCapabilities?: string[]; defaultMeterCatalog?: Record; - defaultPermissions?: string[]; ledgerTableId?: string; ledgerTableName?: string; meterCreditsTableId?: string; @@ -11375,8 +12195,8 @@ export interface BillingModulePatch { balancesTableId?: string | null; balancesTableName?: string | null; databaseId?: string | null; + defaultCapabilities?: string[] | null; defaultMeterCatalog?: Record | null; - defaultPermissions?: string[] | null; ledgerTableId?: string | null; ledgerTableName?: string | null; meterCreditsTableId?: string | null; @@ -11414,15 +12234,21 @@ export interface CreateBillingProviderModuleInput { apiName?: string; billingCustomersTableId?: string; billingCustomersTableName?: string; + billingInvoicesTableId?: string; + billingInvoicesTableName?: string; billingPricesTableId?: string; billingPricesTableName?: string; billingProductsTableId?: string; billingProductsTableName?: string; + billingRefundsTableId?: string; + billingRefundsTableName?: string; billingSubscriptionsTableId?: string; billingSubscriptionsTableName?: string; billingWebhookEventsTableId?: string; billingWebhookEventsTableName?: string; databaseId: string; + listPendingUsageSyncFunction?: string; + markUsageSyncedFunction?: string; prefix?: string; pricesTableId?: string; privateApiName?: string; @@ -11430,23 +12256,31 @@ export interface CreateBillingProviderModuleInput { processBillingEventFunction?: string; productsTableId?: string; provider?: string; + recordRefundFunction?: string; schemaId?: string; subscriptionsTableId?: string; + upsertInvoiceFunction?: string; }; } export interface BillingProviderModulePatch { apiName?: string | null; billingCustomersTableId?: string | null; billingCustomersTableName?: string | null; + billingInvoicesTableId?: string | null; + billingInvoicesTableName?: string | null; billingPricesTableId?: string | null; billingPricesTableName?: string | null; billingProductsTableId?: string | null; billingProductsTableName?: string | null; + billingRefundsTableId?: string | null; + billingRefundsTableName?: string | null; billingSubscriptionsTableId?: string | null; billingSubscriptionsTableName?: string | null; billingWebhookEventsTableId?: string | null; billingWebhookEventsTableName?: string | null; databaseId?: string | null; + listPendingUsageSyncFunction?: string | null; + markUsageSyncedFunction?: string | null; prefix?: string | null; pricesTableId?: string | null; privateApiName?: string | null; @@ -11454,8 +12288,10 @@ export interface BillingProviderModulePatch { processBillingEventFunction?: string | null; productsTableId?: string | null; provider?: string | null; + recordRefundFunction?: string | null; schemaId?: string | null; subscriptionsTableId?: string | null; + upsertInvoiceFunction?: string | null; } export interface UpdateBillingProviderModuleInput { clientMutationId?: string; @@ -11582,27 +12418,87 @@ export interface DeleteBlueprintTemplateInput { clientMutationId?: string; id: string; } -export interface CreateCatalogModuleInput { +export interface CreateCapabilitiesModuleInput { clientMutationId?: string; - catalogModule: { + capabilitiesModule: { + actorTableId?: string; apiName?: string; - apisTableId?: string; - apisTableName?: string; - appsTableId?: string; - appsTableName?: string; - bucketsTableId?: string; - bucketsTableName?: string; + bitlen?: number; databaseId: string; - defaultPermissions?: string[]; - domainsTableId?: string; - domainsTableName?: string; + defaultTableId?: string; + defaultTableName?: string; + entityField?: string; entityTableId?: string; - functionsTableId?: string; - functionsTableName?: string; - namespacesTableId?: string; - namespacesTableName?: string; - policies?: Record; - privateApiName?: string; + getByMask?: string; + getMask?: string; + getMaskByName?: string; + getPaddedMask?: string; + prefix?: string; + privateApiName?: string; + privateSchemaId?: string; + privateSchemaName?: string; + publicSchemaName?: string; + schemaId?: string; + scope: string; + tableId?: string; + tableName?: string; + }; +} +export interface CapabilitiesModulePatch { + actorTableId?: string | null; + apiName?: string | null; + bitlen?: number | null; + databaseId?: string | null; + defaultTableId?: string | null; + defaultTableName?: string | null; + entityField?: string | null; + entityTableId?: string | null; + getByMask?: string | null; + getMask?: string | null; + getMaskByName?: string | null; + getPaddedMask?: string | null; + prefix?: string | null; + privateApiName?: string | null; + privateSchemaId?: string | null; + privateSchemaName?: string | null; + publicSchemaName?: string | null; + schemaId?: string | null; + scope?: string | null; + tableId?: string | null; + tableName?: string | null; +} +export interface UpdateCapabilitiesModuleInput { + clientMutationId?: string; + id: string; + capabilitiesModulePatch: CapabilitiesModulePatch; +} +export interface DeleteCapabilitiesModuleInput { + clientMutationId?: string; + id: string; +} +export interface CreateCatalogModuleInput { + clientMutationId?: string; + catalogModule: { + apiName?: string; + apisTableId?: string; + apisTableName?: string; + appsTableId?: string; + appsTableName?: string; + bindingsTableId?: string; + bindingsTableName?: string; + bucketsTableId?: string; + bucketsTableName?: string; + databaseId: string; + defaultCapabilities?: string[]; + domainsTableId?: string; + domainsTableName?: string; + entityTableId?: string; + functionsTableId?: string; + functionsTableName?: string; + namespacesTableId?: string; + namespacesTableName?: string; + policies?: Record; + privateApiName?: string; provisions?: Record; publicSchemaName?: string; resourceDefinitionsTableId?: string; @@ -11631,10 +12527,12 @@ export interface CatalogModulePatch { apisTableName?: string | null; appsTableId?: string | null; appsTableName?: string | null; + bindingsTableId?: string | null; + bindingsTableName?: string | null; bucketsTableId?: string | null; bucketsTableName?: string | null; databaseId?: string | null; - defaultPermissions?: string[] | null; + defaultCapabilities?: string[] | null; domainsTableId?: string | null; domainsTableName?: string | null; entityTableId?: string | null; @@ -11790,6 +12688,52 @@ export interface DeleteConnectedAccountsModuleInput { clientMutationId?: string; id: string; } +export interface CreateContentPresetModuleInput { + clientMutationId?: string; + contentPresetModule: { + apiName?: string; + contentPresetsTableId?: string; + databaseId: string; + entityTableId?: string; + merkleStoreModuleId: string; + policies?: Record; + prefix: string; + privateApiName?: string; + privateSchemaId?: string; + privateSchemaName?: string; + provisions?: Record; + publicSchemaId?: string; + publicSchemaName?: string; + scope: string; + storeName: string; + }; +} +export interface ContentPresetModulePatch { + apiName?: string | null; + contentPresetsTableId?: string | null; + databaseId?: string | null; + entityTableId?: string | null; + merkleStoreModuleId?: string | null; + policies?: Record | null; + prefix?: string | null; + privateApiName?: string | null; + privateSchemaId?: string | null; + privateSchemaName?: string | null; + provisions?: Record | null; + publicSchemaId?: string | null; + publicSchemaName?: string | null; + scope?: string | null; + storeName?: string | null; +} +export interface UpdateContentPresetModuleInput { + clientMutationId?: string; + id: string; + contentPresetModulePatch: ContentPresetModulePatch; +} +export interface DeleteContentPresetModuleInput { + clientMutationId?: string; + id: string; +} export interface CreateCryptoAddressesModuleInput { clientMutationId?: string; cryptoAddressesModule: { @@ -11866,6 +12810,42 @@ export interface DeleteCryptoAuthModuleInput { clientMutationId?: string; id: string; } +export interface CreateDataCapabilitiesFieldInput { + clientMutationId?: string; + dataCapabilitiesField: { + capabilitiesModuleId: string; + databaseId: string; + fieldId: string; + fromFieldId?: string; + mappingFieldId?: string; + mappingKeyFieldId?: string; + mappingTableId?: string; + mode?: string; + subsetGuard?: boolean; + tableId: string; + }; +} +export interface DataCapabilitiesFieldPatch { + capabilitiesModuleId?: string | null; + databaseId?: string | null; + fieldId?: string | null; + fromFieldId?: string | null; + mappingFieldId?: string | null; + mappingKeyFieldId?: string | null; + mappingTableId?: string | null; + mode?: string | null; + subsetGuard?: boolean | null; + tableId?: string | null; +} +export interface UpdateDataCapabilitiesFieldInput { + clientMutationId?: string; + id: string; + dataCapabilitiesFieldPatch: DataCapabilitiesFieldPatch; +} +export interface DeleteDataCapabilitiesFieldInput { + clientMutationId?: string; + id: string; +} export interface CreateDatabaseProvisionModuleInput { clientMutationId?: string; databaseProvisionModule: { @@ -11921,7 +12901,7 @@ export interface CreateDatabaseSettingsModuleInput { databaseId: string; databaseSettingsTableId?: string; databaseSettingsTableName?: string; - defaultPermissions?: string[]; + defaultCapabilities?: string[]; entityField?: string; entityTableId?: string; policies?: Record; @@ -11944,7 +12924,7 @@ export interface DatabaseSettingsModulePatch { databaseId?: string | null; databaseSettingsTableId?: string | null; databaseSettingsTableName?: string | null; - defaultPermissions?: string[] | null; + defaultCapabilities?: string[] | null; entityField?: string | null; entityTableId?: string | null; policies?: Record | null; @@ -12089,7 +13069,7 @@ export interface CreateDbUsageModuleInput { collectDbQueryStatsFunction?: string; collectDbTableStatsFunction?: string; databaseId: string; - defaultPermissions?: string[]; + defaultCapabilities?: string[]; entityField?: string; interval?: string; prefix?: string; @@ -12118,7 +13098,7 @@ export interface DbUsageModulePatch { collectDbQueryStatsFunction?: string | null; collectDbTableStatsFunction?: string | null; databaseId?: string | null; - defaultPermissions?: string[] | null; + defaultCapabilities?: string[] | null; entityField?: string | null; interval?: string | null; prefix?: string | null; @@ -12240,7 +13220,7 @@ export interface CreateDomainModuleInput { apiName?: string; catalogModuleId?: string; databaseId: string; - defaultPermissions?: string[]; + defaultCapabilities?: string[]; domainEventsTableId?: string; domainEventsTableName?: string; domainVerificationsTableId?: string; @@ -12266,7 +13246,7 @@ export interface DomainModulePatch { apiName?: string | null; catalogModuleId?: string | null; databaseId?: string | null; - defaultPermissions?: string[] | null; + defaultCapabilities?: string[] | null; domainEventsTableId?: string | null; domainEventsTableName?: string | null; domainVerificationsTableId?: string | null; @@ -12296,6 +13276,60 @@ export interface DeleteDomainModuleInput { clientMutationId?: string; id: string; } +export interface CreateEmailSenderModuleInput { + clientMutationId?: string; + emailSenderModule: { + apiName?: string; + databaseId: string; + defaultCapabilities?: string[]; + emailIdentitiesTableId?: string; + emailIdentitiesTableName?: string; + emailProviderAccountsTableId?: string; + emailProviderAccountsTableName?: string; + emailSiteIdentitiesTableId?: string; + emailSiteIdentitiesTableName?: string; + entityField?: string; + entityTableId?: string; + policies?: Record; + prefix?: string; + privateApiName?: string; + provisions?: Record; + publicSchemaName?: string; + schemaId?: string; + scope: string; + siteSurfaceModuleId?: string; + }; +} +export interface EmailSenderModulePatch { + apiName?: string | null; + databaseId?: string | null; + defaultCapabilities?: string[] | null; + emailIdentitiesTableId?: string | null; + emailIdentitiesTableName?: string | null; + emailProviderAccountsTableId?: string | null; + emailProviderAccountsTableName?: string | null; + emailSiteIdentitiesTableId?: string | null; + emailSiteIdentitiesTableName?: string | null; + entityField?: string | null; + entityTableId?: string | null; + policies?: Record | null; + prefix?: string | null; + privateApiName?: string | null; + provisions?: Record | null; + publicSchemaName?: string | null; + schemaId?: string | null; + scope?: string | null; + siteSurfaceModuleId?: string | null; +} +export interface UpdateEmailSenderModuleInput { + clientMutationId?: string; + id: string; + emailSenderModulePatch: EmailSenderModulePatch; +} +export interface DeleteEmailSenderModuleInput { + clientMutationId?: string; + id: string; +} export interface CreateEmailsModuleInput { clientMutationId?: string; emailsModule: { @@ -12428,7 +13462,7 @@ export interface CreateEventsModuleInput { actorTableId?: string; apiName?: string; databaseId: string; - defaultPermissions?: string[]; + defaultCapabilities?: string[]; entityField?: string; entityTableId?: string; eventAggregatesTableId?: string; @@ -12437,6 +13471,7 @@ export interface CreateEventsModuleInput { eventTypesTableName?: string; eventsTableId?: string; eventsTableName?: string; + expireGrants?: string; grantAchievement?: string; interval?: string; levelAchieved?: string; @@ -12452,9 +13487,11 @@ export interface CreateEventsModuleInput { privateSchemaId?: string; privateSchemaName?: string; publicSchemaName?: string; + recomputeCapabilities?: string; recordEvent?: string; removeEvent?: string; retention?: string; + revokeAchievement?: string; schemaId?: string; scope: string; stepsRequired?: string; @@ -12464,7 +13501,9 @@ export interface CreateEventsModuleInput { tgEventBool?: string; tgEventToggle?: string; tgEventToggleBool?: string; + tgLevelGrantSync?: string; tgUpdateAggregates?: string; + trustLadder?: Record; upsertAggregate?: string; }; } @@ -12474,7 +13513,7 @@ export interface EventsModulePatch { actorTableId?: string | null; apiName?: string | null; databaseId?: string | null; - defaultPermissions?: string[] | null; + defaultCapabilities?: string[] | null; entityField?: string | null; entityTableId?: string | null; eventAggregatesTableId?: string | null; @@ -12483,6 +13522,7 @@ export interface EventsModulePatch { eventTypesTableName?: string | null; eventsTableId?: string | null; eventsTableName?: string | null; + expireGrants?: string | null; grantAchievement?: string | null; interval?: string | null; levelAchieved?: string | null; @@ -12498,9 +13538,11 @@ export interface EventsModulePatch { privateSchemaId?: string | null; privateSchemaName?: string | null; publicSchemaName?: string | null; + recomputeCapabilities?: string | null; recordEvent?: string | null; removeEvent?: string | null; retention?: string | null; + revokeAchievement?: string | null; schemaId?: string | null; scope?: string | null; stepsRequired?: string | null; @@ -12510,7 +13552,9 @@ export interface EventsModulePatch { tgEventBool?: string | null; tgEventToggle?: string | null; tgEventToggleBool?: string | null; + tgLevelGrantSync?: string | null; tgUpdateAggregates?: string | null; + trustLadder?: Record | null; upsertAggregate?: string | null; } export interface UpdateEventsModuleInput { @@ -12522,12 +13566,44 @@ export interface DeleteEventsModuleInput { clientMutationId?: string; id: string; } +export interface CreateFileRefFieldInput { + clientMutationId?: string; + fileRefField: { + bucketKey?: string; + bucketTags?: string[]; + databaseId: string; + enforceFk?: boolean; + fieldId: string; + isPublic?: boolean; + storageModuleId: string; + tableId: string; + }; +} +export interface FileRefFieldPatch { + bucketKey?: string | null; + bucketTags?: string[] | null; + databaseId?: string | null; + enforceFk?: boolean | null; + fieldId?: string | null; + isPublic?: boolean | null; + storageModuleId?: string | null; + tableId?: string | null; +} +export interface UpdateFileRefFieldInput { + clientMutationId?: string; + id: string; + fileRefFieldPatch: FileRefFieldPatch; +} +export interface DeleteFileRefFieldInput { + clientMutationId?: string; + id: string; +} export interface CreateFunctionDeploymentModuleInput { clientMutationId?: string; functionDeploymentModule: { apiName?: string; databaseId: string; - defaultPermissions?: string[]; + defaultCapabilities?: string[]; deploymentEventsTableId?: string; deploymentEventsTableName?: string; deploymentsTableId?: string; @@ -12550,7 +13626,7 @@ export interface CreateFunctionDeploymentModuleInput { export interface FunctionDeploymentModulePatch { apiName?: string | null; databaseId?: string | null; - defaultPermissions?: string[] | null; + defaultCapabilities?: string[] | null; deploymentEventsTableId?: string | null; deploymentEventsTableName?: string | null; deploymentsTableId?: string | null; @@ -12585,7 +13661,7 @@ export interface CreateFunctionInvocationModuleInput { attemptsTableId?: string; attemptsTableName?: string; databaseId: string; - defaultPermissions?: string[]; + defaultCapabilities?: string[]; entityField?: string; entityTableId?: string; executionLogsTableId?: string; @@ -12608,7 +13684,7 @@ export interface FunctionInvocationModulePatch { attemptsTableId?: string | null; attemptsTableName?: string | null; databaseId?: string | null; - defaultPermissions?: string[] | null; + defaultCapabilities?: string[] | null; entityField?: string | null; entityTableId?: string | null; executionLogsTableId?: string | null; @@ -12642,7 +13718,7 @@ export interface CreateFunctionModuleInput { bindingsTableName?: string; capabilityBindingsTableId?: string; databaseId: string; - defaultPermissions?: string[]; + defaultCapabilities?: string[]; definitionsTableId?: string; definitionsTableName?: string; entityField?: string; @@ -12666,7 +13742,7 @@ export interface FunctionModulePatch { bindingsTableName?: string | null; capabilityBindingsTableId?: string | null; databaseId?: string | null; - defaultPermissions?: string[] | null; + defaultCapabilities?: string[] | null; definitionsTableId?: string | null; definitionsTableName?: string | null; entityField?: string | null; @@ -12697,7 +13773,7 @@ export interface CreateGraphExecutionModuleInput { graphExecutionModule: { apiName?: string; databaseId: string; - defaultPermissions?: string[]; + defaultCapabilities?: string[]; entityField?: string; entityTableId?: string; executionsTableId?: string; @@ -12721,7 +13797,7 @@ export interface CreateGraphExecutionModuleInput { export interface GraphExecutionModulePatch { apiName?: string | null; databaseId?: string | null; - defaultPermissions?: string[] | null; + defaultCapabilities?: string[] | null; entityField?: string | null; entityTableId?: string | null; executionsTableId?: string | null; @@ -12755,7 +13831,7 @@ export interface CreateGraphModuleInput { graphModule: { apiName?: string; databaseId: string; - defaultPermissions?: string[]; + defaultCapabilities?: string[]; entityField?: string; entityTableId?: string; graphsTableId?: string; @@ -12774,7 +13850,7 @@ export interface CreateGraphModuleInput { export interface GraphModulePatch { apiName?: string | null; databaseId?: string | null; - defaultPermissions?: string[] | null; + defaultCapabilities?: string[] | null; entityField?: string | null; entityTableId?: string | null; graphsTableId?: string | null; @@ -12806,7 +13882,7 @@ export interface CreateHierarchyModuleInput { chartEdgesTableId?: string; chartEdgesTableName?: string; databaseId: string; - defaultPermissions?: string[]; + defaultCapabilities?: string[]; entityField?: string; entityTableId: string; getManagersFunction?: string; @@ -12830,7 +13906,7 @@ export interface HierarchyModulePatch { chartEdgesTableId?: string | null; chartEdgesTableName?: string | null; databaseId?: string | null; - defaultPermissions?: string[] | null; + defaultCapabilities?: string[] | null; entityField?: string | null; entityTableId?: string | null; getManagersFunction?: string | null; @@ -12861,7 +13937,7 @@ export interface CreateHttpRouteModuleInput { httpRouteModule: { apiName?: string; databaseId: string; - defaultPermissions?: string[]; + defaultCapabilities?: string[]; entityField?: string; entityTableId?: string; functionModuleId?: string; @@ -12884,7 +13960,7 @@ export interface CreateHttpRouteModuleInput { export interface HttpRouteModulePatch { apiName?: string | null; databaseId?: string | null; - defaultPermissions?: string[] | null; + defaultCapabilities?: string[] | null; entityField?: string | null; entityTableId?: string | null; functionModuleId?: string | null; @@ -13292,6 +14368,7 @@ export interface CreateLimitsModuleInput { limitCreditsTableId?: string; limitDecrementFunction?: string; limitDecrementTrigger?: string; + limitDefaults?: Record; limitIncrementFunction?: string; limitIncrementTrigger?: string; limitUpdateTrigger?: string; @@ -13331,6 +14408,7 @@ export interface LimitsModulePatch { limitCreditsTableId?: string | null; limitDecrementFunction?: string | null; limitDecrementTrigger?: string | null; + limitDefaults?: Record | null; limitIncrementFunction?: string | null; limitIncrementTrigger?: string | null; limitUpdateTrigger?: string | null; @@ -13389,9 +14467,12 @@ export interface CreateMembershipsModuleInput { adminGrantsTableId?: string; adminGrantsTableName?: string; apiName?: string; + capabilitiesTableId?: string; + capabilityDefaultCapabilitiesTableId?: string; + capabilityDefaultGrantsTableId?: string; databaseId: string; + defaultCapabilitiesTableId?: string; defaultLimitsTableId?: string; - defaultPermissionsTableId?: string; entityField?: string; entityIdsByMask?: string; entityIdsByPerm?: string; @@ -13413,9 +14494,6 @@ export interface CreateMembershipsModuleInput { membershipsTableName?: string; ownerGrantsTableId?: string; ownerGrantsTableName?: string; - permissionDefaultGrantsTableId?: string; - permissionDefaultPermissionsTableId?: string; - permissionsTableId?: string; prefix?: string; privateApiName?: string; privateSchemaId?: string; @@ -13433,9 +14511,12 @@ export interface MembershipsModulePatch { adminGrantsTableId?: string | null; adminGrantsTableName?: string | null; apiName?: string | null; + capabilitiesTableId?: string | null; + capabilityDefaultCapabilitiesTableId?: string | null; + capabilityDefaultGrantsTableId?: string | null; databaseId?: string | null; + defaultCapabilitiesTableId?: string | null; defaultLimitsTableId?: string | null; - defaultPermissionsTableId?: string | null; entityField?: string | null; entityIdsByMask?: string | null; entityIdsByPerm?: string | null; @@ -13457,9 +14538,6 @@ export interface MembershipsModulePatch { membershipsTableName?: string | null; ownerGrantsTableId?: string | null; ownerGrantsTableName?: string | null; - permissionDefaultGrantsTableId?: string | null; - permissionDefaultPermissionsTableId?: string | null; - permissionsTableId?: string | null; prefix?: string | null; privateApiName?: string | null; privateSchemaId?: string | null; @@ -13482,12 +14560,12 @@ export interface CreateMerkleStoreModuleInput { clientMutationId?: string; merkleStoreModule: { apiName?: string; + capabilityKey?: string; commitTableId?: string; databaseId: string; entityField?: string; functionPrefix?: string; objectTableId?: string; - permissionKey?: string; prefix?: string; privateApiName?: string; privateSchemaId?: string; @@ -13501,12 +14579,12 @@ export interface CreateMerkleStoreModuleInput { } export interface MerkleStoreModulePatch { apiName?: string | null; + capabilityKey?: string | null; commitTableId?: string | null; databaseId?: string | null; entityField?: string | null; functionPrefix?: string | null; objectTableId?: string | null; - permissionKey?: string | null; prefix?: string | null; privateApiName?: string | null; privateSchemaId?: string | null; @@ -13531,7 +14609,7 @@ export interface CreateNamespaceModuleInput { namespaceModule: { apiName?: string; databaseId: string; - defaultPermissions?: string[]; + defaultCapabilities?: string[]; entityField?: string; entityTableId?: string; namespaceEventsTableId?: string; @@ -13552,7 +14630,7 @@ export interface CreateNamespaceModuleInput { export interface NamespaceModulePatch { apiName?: string | null; databaseId?: string | null; - defaultPermissions?: string[] | null; + defaultCapabilities?: string[] | null; entityField?: string | null; entityTableId?: string | null; namespaceEventsTableId?: string | null; @@ -13584,7 +14662,7 @@ export interface CreateNotificationsModuleInput { apiName?: string; channelsTableId?: string; databaseId: string; - defaultPermissions?: string[]; + defaultCapabilities?: string[]; deliveryLogTableId?: string; entityField?: string; hasChannels?: boolean; @@ -13610,7 +14688,7 @@ export interface NotificationsModulePatch { apiName?: string | null; channelsTableId?: string | null; databaseId?: string | null; - defaultPermissions?: string[] | null; + defaultCapabilities?: string[] | null; deliveryLogTableId?: string | null; entityField?: string | null; hasChannels?: boolean | null; @@ -13640,6 +14718,44 @@ export interface DeleteNotificationsModuleInput { clientMutationId?: string; id: string; } +export interface CreateOauthRequestsModuleInput { + clientMutationId?: string; + oauthRequestsModule: { + databaseId: string; + entityField?: string; + entityTableId?: string; + oauthAuthorizationRequestsTableId?: string; + oauthAuthorizationRequestsTableName?: string; + pendingIdentityLinksTableId?: string; + pendingIdentityLinksTableName?: string; + prefix?: string; + privateSchemaId?: string; + privateSchemaName?: string; + scope: string; + }; +} +export interface OauthRequestsModulePatch { + databaseId?: string | null; + entityField?: string | null; + entityTableId?: string | null; + oauthAuthorizationRequestsTableId?: string | null; + oauthAuthorizationRequestsTableName?: string | null; + pendingIdentityLinksTableId?: string | null; + pendingIdentityLinksTableName?: string | null; + prefix?: string | null; + privateSchemaId?: string | null; + privateSchemaName?: string | null; + scope?: string | null; +} +export interface UpdateOauthRequestsModuleInput { + clientMutationId?: string; + id: string; + oauthRequestsModulePatch: OauthRequestsModulePatch; +} +export interface DeleteOauthRequestsModuleInput { + clientMutationId?: string; + id: string; +} export interface CreatePagesModuleInput { clientMutationId?: string; pagesModule: { @@ -13690,64 +14806,6 @@ export interface DeletePagesModuleInput { clientMutationId?: string; id: string; } -export interface CreatePermissionsModuleInput { - clientMutationId?: string; - permissionsModule: { - actorTableId?: string; - apiName?: string; - bitlen?: number; - databaseId: string; - defaultTableId?: string; - defaultTableName?: string; - entityField?: string; - entityTableId?: string; - getByMask?: string; - getMask?: string; - getMaskByName?: string; - getPaddedMask?: string; - prefix?: string; - privateApiName?: string; - privateSchemaId?: string; - privateSchemaName?: string; - publicSchemaName?: string; - schemaId?: string; - scope: string; - tableId?: string; - tableName?: string; - }; -} -export interface PermissionsModulePatch { - actorTableId?: string | null; - apiName?: string | null; - bitlen?: number | null; - databaseId?: string | null; - defaultTableId?: string | null; - defaultTableName?: string | null; - entityField?: string | null; - entityTableId?: string | null; - getByMask?: string | null; - getMask?: string | null; - getMaskByName?: string | null; - getPaddedMask?: string | null; - prefix?: string | null; - privateApiName?: string | null; - privateSchemaId?: string | null; - privateSchemaName?: string | null; - publicSchemaName?: string | null; - schemaId?: string | null; - scope?: string | null; - tableId?: string | null; - tableName?: string | null; -} -export interface UpdatePermissionsModuleInput { - clientMutationId?: string; - id: string; - permissionsModulePatch: PermissionsModulePatch; -} -export interface DeletePermissionsModuleInput { - clientMutationId?: string; - id: string; -} export interface CreatePhoneNumbersModuleInput { clientMutationId?: string; phoneNumbersModule: { @@ -13891,21 +14949,23 @@ export interface CreateProfilesModuleInput { profilesModule: { actorTableId?: string; apiName?: string; + capabilitiesTableId?: string; databaseId: string; entityField?: string; entityTableId?: string; + membershipProfilesTableId?: string; + membershipProfilesTableName?: string; membershipsTableId?: string; - permissionsTableId?: string; prefix?: string; privateApiName?: string; privateSchemaId?: string; privateSchemaName?: string; + profileCapabilitiesTableId?: string; + profileCapabilitiesTableName?: string; profileDefinitionGrantsTableId?: string; profileDefinitionGrantsTableName?: string; profileGrantsTableId?: string; profileGrantsTableName?: string; - profilePermissionsTableId?: string; - profilePermissionsTableName?: string; profileTemplatesTableId?: string; profileTemplatesTableName?: string; publicSchemaName?: string; @@ -13918,21 +14978,23 @@ export interface CreateProfilesModuleInput { export interface ProfilesModulePatch { actorTableId?: string | null; apiName?: string | null; + capabilitiesTableId?: string | null; databaseId?: string | null; entityField?: string | null; entityTableId?: string | null; + membershipProfilesTableId?: string | null; + membershipProfilesTableName?: string | null; membershipsTableId?: string | null; - permissionsTableId?: string | null; prefix?: string | null; privateApiName?: string | null; privateSchemaId?: string | null; privateSchemaName?: string | null; + profileCapabilitiesTableId?: string | null; + profileCapabilitiesTableName?: string | null; profileDefinitionGrantsTableId?: string | null; profileDefinitionGrantsTableName?: string | null; profileGrantsTableId?: string | null; profileGrantsTableName?: string | null; - profilePermissionsTableId?: string | null; - profilePermissionsTableName?: string | null; profileTemplatesTableId?: string | null; profileTemplatesTableName?: string | null; publicSchemaName?: string | null; @@ -13956,7 +15018,7 @@ export interface CreateRateLimitMetersModuleInput { apiName?: string; checkRateLimitFunction?: string; databaseId: string; - defaultPermissions?: string[]; + defaultCapabilities?: string[]; prefix?: string; privateApiName?: string; privateSchemaId?: string; @@ -13975,7 +15037,7 @@ export interface RateLimitMetersModulePatch { apiName?: string | null; checkRateLimitFunction?: string | null; databaseId?: string | null; - defaultPermissions?: string[] | null; + defaultCapabilities?: string[] | null; prefix?: string | null; privateApiName?: string | null; privateSchemaId?: string | null; @@ -14139,7 +15201,7 @@ export interface CreateResourceModuleInput { resourceModule: { apiName?: string; databaseId: string; - defaultPermissions?: string[]; + defaultCapabilities?: string[]; entityField?: string; entityTableId?: string; installationStoreName?: string; @@ -14177,7 +15239,7 @@ export interface CreateResourceModuleInput { export interface ResourceModulePatch { apiName?: string | null; databaseId?: string | null; - defaultPermissions?: string[] | null; + defaultCapabilities?: string[] | null; entityField?: string | null; entityTableId?: string | null; installationStoreName?: string | null; @@ -14264,9 +15326,11 @@ export interface CreateRouteModuleInput { clientMutationId?: string; routeModule: { apiName?: string; + appLinksFunctionName?: string; catalogModuleId?: string; databaseId: string; - defaultPermissions?: string[]; + deepLinkFunctionName?: string; + defaultCapabilities?: string[]; domainModuleId?: string; entityField?: string; entityTableId?: string; @@ -14290,9 +15354,11 @@ export interface CreateRouteModuleInput { } export interface RouteModulePatch { apiName?: string | null; + appLinksFunctionName?: string | null; catalogModuleId?: string | null; databaseId?: string | null; - defaultPermissions?: string[] | null; + deepLinkFunctionName?: string | null; + defaultCapabilities?: string[] | null; domainModuleId?: string | null; entityField?: string | null; entityTableId?: string | null; @@ -14322,15 +15388,39 @@ export interface DeleteRouteModuleInput { clientMutationId?: string; id: string; } -export interface CreateSecureTableProvisionInput { +export interface CreateScopeTypesModuleInput { clientMutationId?: string; - secureTableProvision: { + scopeTypesModule: { databaseId: string; - fields?: Record[]; - grants?: Record; - nodes?: Record; - outFields?: string[]; - policies?: Record; + privateSchemaName?: string; + schemaId?: string; + scopeTypesTableId?: string; + }; +} +export interface ScopeTypesModulePatch { + databaseId?: string | null; + privateSchemaName?: string | null; + schemaId?: string | null; + scopeTypesTableId?: string | null; +} +export interface UpdateScopeTypesModuleInput { + clientMutationId?: string; + id: string; + scopeTypesModulePatch: ScopeTypesModulePatch; +} +export interface DeleteScopeTypesModuleInput { + clientMutationId?: string; + id: string; +} +export interface CreateSecureTableProvisionInput { + clientMutationId?: string; + secureTableProvision: { + databaseId: string; + fields?: Record[]; + grants?: Record; + nodes?: Record; + outFields?: string[]; + policies?: Record; schemaId?: string; tableId?: string; tableName?: string; @@ -14426,7 +15516,7 @@ export interface CreateSiteSurfaceModuleInput { apiName?: string; catalogModuleId?: string; databaseId: string; - defaultPermissions?: string[]; + defaultCapabilities?: string[]; entityField?: string; entityTableId?: string; policies?: Record; @@ -14460,7 +15550,7 @@ export interface SiteSurfaceModulePatch { apiName?: string | null; catalogModuleId?: string | null; databaseId?: string | null; - defaultPermissions?: string[] | null; + defaultCapabilities?: string[] | null; entityField?: string | null; entityTableId?: string | null; policies?: Record | null; @@ -14563,8 +15653,8 @@ export interface CreateStorageModuleInput { catalogModuleId?: string; confirmUploadDelay?: IntervalInput; databaseId: string; + defaultCapabilities?: string[]; defaultMaxFileSize?: string; - defaultPermissions?: string[]; downloadUrlExpirySeconds?: number; endpoint?: string; entityField?: string; @@ -14606,8 +15696,8 @@ export interface StorageModulePatch { catalogModuleId?: string | null; confirmUploadDelay?: IntervalInput | null; databaseId?: string | null; + defaultCapabilities?: string[] | null; defaultMaxFileSize?: string | null; - defaultPermissions?: string[] | null; downloadUrlExpirySeconds?: number | null; endpoint?: string | null; entityField?: string | null; @@ -14828,6 +15918,34 @@ export interface DeleteUserSettingsModuleInput { clientMutationId?: string; id: string; } +export interface CreateUserSettingsSecurityModuleInput { + clientMutationId?: string; + userSettingsSecurityModule: { + apiName?: string; + databaseId: string; + ownerTableId?: string; + schemaId?: string; + tableId?: string; + tableName?: string; + }; +} +export interface UserSettingsSecurityModulePatch { + apiName?: string | null; + databaseId?: string | null; + ownerTableId?: string | null; + schemaId?: string | null; + tableId?: string | null; + tableName?: string | null; +} +export interface UpdateUserSettingsSecurityModuleInput { + clientMutationId?: string; + id: string; + userSettingsSecurityModulePatch: UserSettingsSecurityModulePatch; +} +export interface DeleteUserSettingsSecurityModuleInput { + clientMutationId?: string; + id: string; +} export interface CreateUserStateModuleInput { clientMutationId?: string; userStateModule: { @@ -14969,7 +16087,7 @@ export interface CreateWebhookModuleInput { webhookModule: { apiName?: string; databaseId: string; - defaultPermissions?: string[]; + defaultCapabilities?: string[]; entityField?: string; entityTableId?: string; functionInvocationModuleId?: string; @@ -14994,7 +16112,7 @@ export interface CreateWebhookModuleInput { export interface WebhookModulePatch { apiName?: string | null; databaseId?: string | null; - defaultPermissions?: string[] | null; + defaultCapabilities?: string[] | null; entityField?: string | null; entityTableId?: string | null; functionInvocationModuleId?: string | null; @@ -15033,6 +16151,9 @@ export const connectionFieldsMap = { blueprintTemplatesByForkedFromId: 'BlueprintTemplate', blueprintsByTemplateId: 'Blueprint', }, + CapabilitiesModule: { + dataCapabilitiesFields: 'DataCapabilitiesField', + }, CatalogModule: { apiSurfaceModules: 'ApiSurfaceModule', appModules: 'AppModule', @@ -15058,6 +16179,7 @@ export const connectionFieldsMap = { webhookModules: 'WebhookModule', }, MerkleStoreModule: { + contentPresetModules: 'ContentPresetModule', dbPresetModules: 'DbPresetModule', graphModules: 'GraphModule', pagesModules: 'PagesModule', @@ -15072,9 +16194,11 @@ export const connectionFieldsMap = { httpRouteModules: 'HttpRouteModule', }, SiteSurfaceModule: { + emailSenderModules: 'EmailSenderModule', pagesModules: 'PagesModule', }, StorageModule: { + fileRefFields: 'FileRefField', httpRouteModules: 'HttpRouteModule', }, } as Record>; @@ -15101,79 +16225,6 @@ export interface ProvisionBucketInput { */ ownerId?: string; } -export interface ProvisionCheckConstraintInput { - clientMutationId?: string; - databaseId?: string; - definition?: Record; - tableId?: string; -} -export interface ProvisionFullTextSearchInput { - clientMutationId?: string; - databaseId?: string; - definition?: Record; - tableId?: string; -} -export interface ProvisionIndexInput { - clientMutationId?: string; - databaseId?: string; - definition?: Record; - tableId?: string; -} -export interface ProvisionRelationInput { - apiRequired?: boolean; - clientMutationId?: string; - createIndex?: boolean; - databaseId?: string; - deleteAction?: string; - exposeInApi?: boolean; - fieldName?: string; - grants?: Record; - isRequired?: boolean; - junctionSchemaId?: string; - junctionTableId?: string; - junctionTableName?: string; - nodes?: Record; - policies?: Record; - relationType?: string; - sourceFieldName?: string; - sourceTableId?: string; - targetFieldName?: string; - targetTableId?: string; - useCompositeKey?: boolean; -} -export interface ProvisionSpatialRelationInput { - clientMutationId?: string; - databaseId?: string; - name?: string; - operator?: string; - paramName?: string; - sourceFieldId?: string; - sourceTableId?: string; - targetFieldId?: string; - targetTableId?: string; -} -export interface ProvisionTableInput { - clientMutationId?: string; - databaseId?: string; - description?: string; - fields?: Record; - fullTextSearches?: Record; - grants?: Record; - indexes?: Record; - nodes?: Record; - policies?: Record; - schemaId?: string; - tableId?: string; - tableName?: string; - uniqueConstraints?: Record; - useRls?: boolean; -} -export interface ProvisionUniqueConstraintInput { - clientMutationId?: string; - databaseId?: string; - definition?: Record; - tableId?: string; -} /** A filter to be used against many `BlueprintConstruction` object types. All fields are combined with a logical ‘and.’ */ export interface BlueprintToManyBlueprintConstructionFilter { /** Filters to entities where every related entity matches. */ @@ -15201,6 +16252,15 @@ export interface BlueprintTemplateToManyBlueprintFilter { /** Filters to entities where at least one related entity matches. */ some?: BlueprintFilter; } +/** A filter to be used against many `DataCapabilitiesField` object types. All fields are combined with a logical ‘and.’ */ +export interface CapabilitiesModuleToManyDataCapabilitiesFieldFilter { + /** Filters to entities where every related entity matches. */ + every?: DataCapabilitiesFieldFilter; + /** Filters to entities where no related entity matches. */ + none?: DataCapabilitiesFieldFilter; + /** Filters to entities where at least one related entity matches. */ + some?: DataCapabilitiesFieldFilter; +} /** A filter to be used against many `ApiSurfaceModule` object types. All fields are combined with a logical ‘and.’ */ export interface CatalogModuleToManyApiSurfaceModuleFilter { /** Filters to entities where every related entity matches. */ @@ -15334,6 +16394,15 @@ export interface InfraSecretsModuleToManyWebhookModuleFilter { /** Filters to entities where at least one related entity matches. */ some?: WebhookModuleFilter; } +/** A filter to be used against many `ContentPresetModule` object types. All fields are combined with a logical ‘and.’ */ +export interface MerkleStoreModuleToManyContentPresetModuleFilter { + /** Filters to entities where every related entity matches. */ + every?: ContentPresetModuleFilter; + /** Filters to entities where no related entity matches. */ + none?: ContentPresetModuleFilter; + /** Filters to entities where at least one related entity matches. */ + some?: ContentPresetModuleFilter; +} /** A filter to be used against many `DbPresetModule` object types. All fields are combined with a logical ‘and.’ */ export interface MerkleStoreModuleToManyDbPresetModuleFilter { /** Filters to entities where every related entity matches. */ @@ -15445,6 +16514,15 @@ export interface JSONListFilter { /** Overlaps the specified list of values. */ overlaps?: Record[]; } +/** A filter to be used against many `EmailSenderModule` object types. All fields are combined with a logical ‘and.’ */ +export interface SiteSurfaceModuleToManyEmailSenderModuleFilter { + /** Filters to entities where every related entity matches. */ + every?: EmailSenderModuleFilter; + /** Filters to entities where no related entity matches. */ + none?: EmailSenderModuleFilter; + /** Filters to entities where at least one related entity matches. */ + some?: EmailSenderModuleFilter; +} /** A filter to be used against many `PagesModule` object types. All fields are combined with a logical ‘and.’ */ export interface SiteSurfaceModuleToManyPagesModuleFilter { /** Filters to entities where every related entity matches. */ @@ -15454,6 +16532,15 @@ export interface SiteSurfaceModuleToManyPagesModuleFilter { /** Filters to entities where at least one related entity matches. */ some?: PagesModuleFilter; } +/** A filter to be used against many `FileRefField` object types. All fields are combined with a logical ‘and.’ */ +export interface StorageModuleToManyFileRefFieldFilter { + /** Filters to entities where every related entity matches. */ + every?: FileRefFieldFilter; + /** Filters to entities where no related entity matches. */ + none?: FileRefFieldFilter; + /** Filters to entities where at least one related entity matches. */ + some?: FileRefFieldFilter; +} /** A filter to be used against many `HttpRouteModule` object types. All fields are combined with a logical ‘and.’ */ export interface StorageModuleToManyHttpRouteModuleFilter { /** Filters to entities where every related entity matches. */ @@ -15469,7 +16556,7 @@ export interface AgentModuleInput { agentTableName?: string; apiName?: string; databaseId: string; - defaultPermissions?: string[]; + defaultCapabilities?: string[]; entityField?: string; entityTableId?: string; hasAgents?: boolean; @@ -15515,7 +16602,7 @@ export interface ApiSurfaceModuleInput { corsSettingsTableId?: string; corsSettingsTableName?: string; databaseId: string; - defaultPermissions?: string[]; + defaultCapabilities?: string[]; entityField?: string; entityTableId?: string; id?: string; @@ -15536,7 +16623,7 @@ export interface AppModuleInput { appsTableName?: string; catalogModuleId?: string; databaseId: string; - defaultPermissions?: string[]; + defaultCapabilities?: string[]; entityField?: string; entityTableId?: string; id?: string; @@ -15556,8 +16643,8 @@ export interface BillingModuleInput { balancesTableId?: string; balancesTableName?: string; databaseId: string; + defaultCapabilities?: string[]; defaultMeterCatalog?: Record; - defaultPermissions?: string[]; id?: string; ledgerTableId?: string; ledgerTableName?: string; @@ -15586,16 +16673,22 @@ export interface BillingProviderModuleInput { apiName?: string; billingCustomersTableId?: string; billingCustomersTableName?: string; + billingInvoicesTableId?: string; + billingInvoicesTableName?: string; billingPricesTableId?: string; billingPricesTableName?: string; billingProductsTableId?: string; billingProductsTableName?: string; + billingRefundsTableId?: string; + billingRefundsTableName?: string; billingSubscriptionsTableId?: string; billingSubscriptionsTableName?: string; billingWebhookEventsTableId?: string; billingWebhookEventsTableName?: string; databaseId: string; id?: string; + listPendingUsageSyncFunction?: string; + markUsageSyncedFunction?: string; prefix?: string; pricesTableId?: string; privateApiName?: string; @@ -15603,8 +16696,10 @@ export interface BillingProviderModuleInput { processBillingEventFunction?: string; productsTableId?: string; provider?: string; + recordRefundFunction?: string; schemaId?: string; subscriptionsTableId?: string; + upsertInvoiceFunction?: string; } /** An input for mutations affecting `Blueprint` */ export interface BlueprintInput { @@ -15701,6 +16796,31 @@ export interface BlueprintTemplateInput { /** Access control for the template. private: only the owner can see and copy. public: anyone can browse and copy from the marketplace. Defaults to private. */ visibility?: string; } +/** An input for mutations affecting `CapabilitiesModule` */ +export interface CapabilitiesModuleInput { + actorTableId?: string; + apiName?: string; + bitlen?: number; + databaseId: string; + defaultTableId?: string; + defaultTableName?: string; + entityField?: string; + entityTableId?: string; + getByMask?: string; + getMask?: string; + getMaskByName?: string; + getPaddedMask?: string; + id?: string; + prefix?: string; + privateApiName?: string; + privateSchemaId?: string; + privateSchemaName?: string; + publicSchemaName?: string; + schemaId?: string; + scope: string; + tableId?: string; + tableName?: string; +} /** An input for mutations affecting `CatalogModule` */ export interface CatalogModuleInput { apiName?: string; @@ -15708,10 +16828,12 @@ export interface CatalogModuleInput { apisTableName?: string; appsTableId?: string; appsTableName?: string; + bindingsTableId?: string; + bindingsTableName?: string; bucketsTableId?: string; bucketsTableName?: string; databaseId: string; - defaultPermissions?: string[]; + defaultCapabilities?: string[]; domainsTableId?: string; domainsTableName?: string; entityTableId?: string; @@ -15789,6 +16911,26 @@ export interface ConnectedAccountsModuleInput { tableId?: string; tableName: string; } +/** An input for mutations affecting `ContentPresetModule` */ +export interface ContentPresetModuleInput { + apiName?: string; + contentPresetsTableId?: string; + createdAt?: string; + databaseId: string; + entityTableId?: string; + id?: string; + merkleStoreModuleId: string; + policies?: Record; + prefix: string; + privateApiName?: string; + privateSchemaId?: string; + privateSchemaName?: string; + provisions?: Record; + publicSchemaId?: string; + publicSchemaName?: string; + scope: string; + storeName: string; +} /** An input for mutations affecting `CryptoAddressesModule` */ export interface CryptoAddressesModuleInput { apiName?: string; @@ -15819,6 +16961,20 @@ export interface CryptoAuthModuleInput { userField: string; usersTableId?: string; } +/** An input for mutations affecting `DataCapabilitiesField` */ +export interface DataCapabilitiesFieldInput { + capabilitiesModuleId: string; + databaseId: string; + fieldId: string; + fromFieldId?: string; + id?: string; + mappingFieldId?: string; + mappingKeyFieldId?: string; + mappingTableId?: string; + mode?: string; + subsetGuard?: boolean; + tableId: string; +} /** An input for mutations affecting `DatabaseProvisionModule` */ export interface DatabaseProvisionModuleInput { /** When true, cold provisioning runs in the database:provision background job and the insert returns a pending ticket; when false, provisioning runs inline in the insert trigger */ @@ -15841,7 +16997,7 @@ export interface DatabaseProvisionModuleInput { /** Uniform billing anchor: when the request was fulfilled with a usable database (cold provision completion or warm pool claim). Platform absorbs all provisioning compute before this point */ fulfilledAt?: string; id?: string; - /** JSONB array of modules to install. Each element is either a string ("users_module") or a [name, options] tuple (["permissions_module", {"scope": "app"}]) */ + /** JSONB array of modules to install. Each element is either a string ("users_module") or a [name, options] tuple (["capabilities_module", {"scope": "app"}]) */ modules?: Record; /** Additional configuration options for provisioning */ options?: Record; @@ -15861,7 +17017,7 @@ export interface DatabaseSettingsModuleInput { databaseId: string; databaseSettingsTableId?: string; databaseSettingsTableName?: string; - defaultPermissions?: string[]; + defaultCapabilities?: string[]; entityField?: string; entityTableId?: string; id?: string; @@ -15966,7 +17122,7 @@ export interface DbUsageModuleInput { collectDbQueryStatsFunction?: string; collectDbTableStatsFunction?: string; databaseId: string; - defaultPermissions?: string[]; + defaultCapabilities?: string[]; entityField?: string; id?: string; interval?: string; @@ -16025,7 +17181,7 @@ export interface DomainModuleInput { apiName?: string; catalogModuleId?: string; databaseId: string; - defaultPermissions?: string[]; + defaultCapabilities?: string[]; domainEventsTableId?: string; domainEventsTableName?: string; domainVerificationsTableId?: string; @@ -16047,6 +17203,29 @@ export interface DomainModuleInput { schemaId?: string; scope: string; } +/** An input for mutations affecting `EmailSenderModule` */ +export interface EmailSenderModuleInput { + apiName?: string; + databaseId: string; + defaultCapabilities?: string[]; + emailIdentitiesTableId?: string; + emailIdentitiesTableName?: string; + emailProviderAccountsTableId?: string; + emailProviderAccountsTableName?: string; + emailSiteIdentitiesTableId?: string; + emailSiteIdentitiesTableName?: string; + entityField?: string; + entityTableId?: string; + id?: string; + policies?: Record; + prefix?: string; + privateApiName?: string; + provisions?: Record; + publicSchemaName?: string; + schemaId?: string; + scope: string; + siteSurfaceModuleId?: string; +} /** An input for mutations affecting `EmailsModule` */ export interface EmailsModuleInput { apiName?: string; @@ -16074,7 +17253,7 @@ export interface EntityTypeProvisionInput { * - policies (jsonb array) RLS policy overrides. NULL = apply defaults from apply_function_security(). * Creates {prefix}_function_definitions (or {prefix}_{key}_function_definitions for non-default keys) * with entity-scoped RLS and a job trigger dispatching function:provision tasks. - * Registers manage_functions + invoke_functions permission bits on first provision. + * Registers manage_functions + invoke_functions capability bits on first provision. * Example: functions := '[{}]'::jsonb */ functions?: Record; @@ -16084,9 +17263,9 @@ export interface EntityTypeProvisionInput { * Each element recognizes (all optional): * - key (text) module discriminator. Defaults to 'default'. * - policies (jsonb array) RLS policy overrides. NULL = apply defaults from apply_graph_security(). - * Registers manage_graphs + execute_graphs permission bits on first provision. + * Registers manage_graphs + execute_graphs capability bits on first provision. * Graph module requires a merkle_store_module_id dependency, so entity_type_provision - * only registers permissions here. The graph module itself must be provisioned + * only registers capabilities here. The graph module itself must be provisioned * separately with the merkle store dependency resolved. * Example: graphs := '[{}]'::jsonb */ @@ -16126,8 +17305,11 @@ export interface EntityTypeProvisionInput { hasLimits?: boolean; /** * Whether to provision profiles_module for this type. Defaults to false. - * Profiles provide named permission roles (e.g. 'Editor', 'Viewer') with pre-configured permission bitmasks. - * When true, creates profile tables and applies profiles security. + * Profiles provide named capability roles (e.g. 'Editor', 'Viewer') with pre-configured capability bitmasks. + * When true, creates profile tables and applies profiles security. A membership may hold + * any number of profiles: the membership_profiles assignment table holds every profile a + * membership holds and the membership mask is granted | bit_or(held profile masks), with + * memberships.profile_id kept as a pointer at one held profile. */ hasProfiles?: boolean; /** Unique identifier for this provision row. */ @@ -16154,7 +17336,7 @@ export interface EntityTypeProvisionInput { * - policies (jsonb array) RLS policy overrides. NULL = apply defaults from apply_namespace_security(). * Creates {prefix}_namespaces (or {prefix}_{key}_namespaces for non-default keys) * with entity-scoped RLS (AuthzEntityMembership) and a rename proxy trigger. - * Registers manage_namespaces permission bit on first provision. + * Registers manage_namespaces capability bit on first provision. * Example: namespaces := '[{}]'::jsonb */ namespaces?: Record; @@ -16176,7 +17358,7 @@ export interface EntityTypeProvisionInput { outGraphModuleId?: string; outGraphsTableId?: string; /** - * Output: array of installed module labels (e.g. ARRAY['permissions_module:data_room', 'memberships_module:data_room', 'invites_module:data_room']). + * Output: array of installed module labels (e.g. ARRAY['capabilities_module:data_room', 'memberships_module:data_room', 'invites_module:data_room']). * Populated by the trigger. Useful for verifying which modules were provisioned. */ outInstalledModules?: string[]; @@ -16220,7 +17402,7 @@ export interface EntityTypeProvisionInput { parentEntity?: string; /** * SQL prefix used for table and module naming, e.g. 'data_room', 'team_channel'. Required. - * Drives entity table name (prefix || 's' by default), module labels (permissions_module:prefix), + * Drives entity table name (prefix || 's' by default), module labels (capabilities_module:prefix), * and membership table names (prefix_memberships, prefix_members, etc.). * Must be unique per database — the (database_id, prefix) constraint ensures graceful ON CONFLICT DO NOTHING. */ @@ -16234,8 +17416,8 @@ export interface EntityTypeProvisionInput { * Defaults (applied when table_provision IS NULL and skip_entity_policies=false): * - SELECT (parent_member): parent entity members can see child entities (only when is_visible=true) * - SELECT (self_member): direct members of the entity can see it - * - INSERT: create_entity permission on the parent entity - * - UPDATE: admin_entity permission on the entity itself + * - INSERT: create_entity capability on the parent entity + * - UPDATE: admin_entity capability on the entity itself * - DELETE: owner of the entity can delete it */ skipEntityPolicies?: boolean; @@ -16254,7 +17436,7 @@ export interface EntityTypeProvisionInput { * - 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 + * - restrict_reads (boolean) require read_files capability 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 @@ -16280,7 +17462,7 @@ export interface EntityTypeProvisionInput { tableName?: string; /** * Single jsonb object describing the full security setup to apply to the entity table. - * Uses the same vocabulary as metaschema_modules_public.provision_table() and blueprint tables[] + * Uses the same vocabulary as metaschema_modules_private.provision_table() and blueprint tables[] * entries, so an entity table is configured the same way an ordinary blueprint table is. * Defaults to NULL; when non-NULL, the five default policies are implicitly replaced by * table_provision.policies[] (is_visible becomes a no-op on this path). @@ -16318,7 +17500,7 @@ export interface EventsModuleInput { actorTableId?: string; apiName?: string; databaseId: string; - defaultPermissions?: string[]; + defaultCapabilities?: string[]; entityField?: string; entityTableId?: string; eventAggregatesTableId?: string; @@ -16327,6 +17509,7 @@ export interface EventsModuleInput { eventTypesTableName?: string; eventsTableId?: string; eventsTableName?: string; + expireGrants?: string; grantAchievement?: string; id?: string; interval?: string; @@ -16343,9 +17526,11 @@ export interface EventsModuleInput { privateSchemaId?: string; privateSchemaName?: string; publicSchemaName?: string; + recomputeCapabilities?: string; recordEvent?: string; removeEvent?: string; retention?: string; + revokeAchievement?: string; schemaId?: string; scope: string; stepsRequired?: string; @@ -16355,14 +17540,28 @@ export interface EventsModuleInput { tgEventBool?: string; tgEventToggle?: string; tgEventToggleBool?: string; + tgLevelGrantSync?: string; tgUpdateAggregates?: string; + trustLadder?: Record; upsertAggregate?: string; } +/** An input for mutations affecting `FileRefField` */ +export interface FileRefFieldInput { + bucketKey?: string; + bucketTags?: string[]; + databaseId: string; + enforceFk?: boolean; + fieldId: string; + id?: string; + isPublic?: boolean; + storageModuleId: string; + tableId: string; +} /** An input for mutations affecting `FunctionDeploymentModule` */ export interface FunctionDeploymentModuleInput { apiName?: string; databaseId: string; - defaultPermissions?: string[]; + defaultCapabilities?: string[]; deploymentEventsTableId?: string; deploymentEventsTableName?: string; deploymentsTableId?: string; @@ -16388,7 +17587,7 @@ export interface FunctionInvocationModuleInput { attemptsTableId?: string; attemptsTableName?: string; databaseId: string; - defaultPermissions?: string[]; + defaultCapabilities?: string[]; entityField?: string; entityTableId?: string; executionLogsTableId?: string; @@ -16413,7 +17612,7 @@ export interface FunctionModuleInput { bindingsTableName?: string; capabilityBindingsTableId?: string; databaseId: string; - defaultPermissions?: string[]; + defaultCapabilities?: string[]; definitionsTableId?: string; definitionsTableName?: string; entityField?: string; @@ -16436,7 +17635,7 @@ export interface GraphExecutionModuleInput { apiName?: string; createdAt?: string; databaseId: string; - defaultPermissions?: string[]; + defaultCapabilities?: string[]; entityField?: string; entityTableId?: string; executionsTableId?: string; @@ -16462,7 +17661,7 @@ export interface GraphModuleInput { apiName?: string; createdAt?: string; databaseId: string; - defaultPermissions?: string[]; + defaultCapabilities?: string[]; entityField?: string; entityTableId?: string; graphsTableId?: string; @@ -16486,7 +17685,7 @@ export interface HierarchyModuleInput { chartEdgesTableName?: string; createdAt?: string; databaseId: string; - defaultPermissions?: string[]; + defaultCapabilities?: string[]; entityField?: string; entityTableId: string; getManagersFunction?: string; @@ -16508,7 +17707,7 @@ export interface HierarchyModuleInput { export interface HttpRouteModuleInput { apiName?: string; databaseId: string; - defaultPermissions?: string[]; + defaultCapabilities?: string[]; entityField?: string; entityTableId?: string; functionModuleId?: string; @@ -16699,6 +17898,7 @@ export interface LimitsModuleInput { limitCreditsTableId?: string; limitDecrementFunction?: string; limitDecrementTrigger?: string; + limitDefaults?: Record; limitIncrementFunction?: string; limitIncrementTrigger?: string; limitUpdateTrigger?: string; @@ -16731,9 +17931,12 @@ export interface MembershipsModuleInput { adminGrantsTableId?: string; adminGrantsTableName?: string; apiName?: string; + capabilitiesTableId?: string; + capabilityDefaultCapabilitiesTableId?: string; + capabilityDefaultGrantsTableId?: string; databaseId: string; + defaultCapabilitiesTableId?: string; defaultLimitsTableId?: string; - defaultPermissionsTableId?: string; entityField?: string; entityIdsByMask?: string; entityIdsByPerm?: string; @@ -16756,9 +17959,6 @@ export interface MembershipsModuleInput { membershipsTableName?: string; ownerGrantsTableId?: string; ownerGrantsTableName?: string; - permissionDefaultGrantsTableId?: string; - permissionDefaultPermissionsTableId?: string; - permissionsTableId?: string; prefix?: string; privateApiName?: string; privateSchemaId?: string; @@ -16771,6 +17971,7 @@ export interface MembershipsModuleInput { /** An input for mutations affecting `MerkleStoreModule` */ export interface MerkleStoreModuleInput { apiName?: string; + capabilityKey?: string; commitTableId?: string; createdAt?: string; databaseId: string; @@ -16778,7 +17979,6 @@ export interface MerkleStoreModuleInput { functionPrefix?: string; id?: string; objectTableId?: string; - permissionKey?: string; prefix?: string; privateApiName?: string; privateSchemaId?: string; @@ -16793,7 +17993,7 @@ export interface MerkleStoreModuleInput { export interface NamespaceModuleInput { apiName?: string; databaseId: string; - defaultPermissions?: string[]; + defaultCapabilities?: string[]; entityField?: string; entityTableId?: string; id?: string; @@ -16816,7 +18016,7 @@ export interface NotificationsModuleInput { apiName?: string; channelsTableId?: string; databaseId: string; - defaultPermissions?: string[]; + defaultCapabilities?: string[]; deliveryLogTableId?: string; entityField?: string; hasChannels?: boolean; @@ -16838,6 +18038,21 @@ export interface NotificationsModuleInput { suppressionsTableId?: string; userSettingsTableId?: string; } +/** An input for mutations affecting `OauthRequestsModule` */ +export interface OauthRequestsModuleInput { + databaseId: string; + entityField?: string; + entityTableId?: string; + id?: string; + oauthAuthorizationRequestsTableId?: string; + oauthAuthorizationRequestsTableName?: string; + pendingIdentityLinksTableId?: string; + pendingIdentityLinksTableName?: string; + prefix?: string; + privateSchemaId?: string; + privateSchemaName?: string; + scope: string; +} /** An input for mutations affecting `PagesModule` */ export interface PagesModuleInput { apiName?: string; @@ -16860,31 +18075,6 @@ export interface PagesModuleInput { sitesTableId?: string; storeNamePrefix?: string; } -/** An input for mutations affecting `PermissionsModule` */ -export interface PermissionsModuleInput { - actorTableId?: string; - apiName?: string; - bitlen?: number; - databaseId: string; - defaultTableId?: string; - defaultTableName?: string; - entityField?: string; - entityTableId?: string; - getByMask?: string; - getMask?: string; - getMaskByName?: string; - getPaddedMask?: string; - id?: string; - prefix?: string; - privateApiName?: string; - privateSchemaId?: string; - privateSchemaName?: string; - publicSchemaName?: string; - schemaId?: string; - scope: string; - tableId?: string; - tableName?: string; -} /** An input for mutations affecting `PhoneNumbersModule` */ export interface PhoneNumbersModuleInput { apiName?: string; @@ -16946,22 +18136,24 @@ export interface PrincipalAuthModuleInput { export interface ProfilesModuleInput { actorTableId?: string; apiName?: string; + capabilitiesTableId?: string; databaseId: string; entityField?: string; entityTableId?: string; id?: string; + membershipProfilesTableId?: string; + membershipProfilesTableName?: string; membershipsTableId?: string; - permissionsTableId?: string; prefix?: string; privateApiName?: string; privateSchemaId?: string; privateSchemaName?: string; + profileCapabilitiesTableId?: string; + profileCapabilitiesTableName?: string; profileDefinitionGrantsTableId?: string; profileDefinitionGrantsTableName?: string; profileGrantsTableId?: string; profileGrantsTableName?: string; - profilePermissionsTableId?: string; - profilePermissionsTableName?: string; profileTemplatesTableId?: string; profileTemplatesTableName?: string; publicSchemaName?: string; @@ -16975,7 +18167,7 @@ export interface RateLimitMetersModuleInput { apiName?: string; checkRateLimitFunction?: string; databaseId: string; - defaultPermissions?: string[]; + defaultCapabilities?: string[]; id?: string; prefix?: string; privateApiName?: string; @@ -17147,7 +18339,7 @@ export interface RelationProvisionInput { export interface ResourceModuleInput { apiName?: string; databaseId: string; - defaultPermissions?: string[]; + defaultCapabilities?: string[]; entityField?: string; entityTableId?: string; id?: string; @@ -17201,9 +18393,11 @@ export interface RlsModuleInput { /** An input for mutations affecting `RouteModule` */ export interface RouteModuleInput { apiName?: string; + appLinksFunctionName?: string; catalogModuleId?: string; databaseId: string; - defaultPermissions?: string[]; + deepLinkFunctionName?: string; + defaultCapabilities?: string[]; domainModuleId?: string; entityField?: string; entityTableId?: string; @@ -17225,6 +18419,14 @@ export interface RouteModuleInput { schemaId?: string; scope: string; } +/** An input for mutations affecting `ScopeTypesModule` */ +export interface ScopeTypesModuleInput { + databaseId: string; + id?: string; + privateSchemaName?: string; + schemaId?: string; + scopeTypesTableId?: string; +} /** An input for mutations affecting `SecureTableProvision` */ export interface SecureTableProvisionInput { /** The database this provision belongs to. Required. */ @@ -17279,7 +18481,7 @@ export interface SiteSurfaceModuleInput { apiName?: string; catalogModuleId?: string; databaseId: string; - defaultPermissions?: string[]; + defaultCapabilities?: string[]; entityField?: string; entityTableId?: string; id?: string; @@ -17342,8 +18544,8 @@ export interface StorageModuleInput { catalogModuleId?: string; confirmUploadDelay?: IntervalInput; databaseId: string; + defaultCapabilities?: string[]; defaultMaxFileSize?: string; - defaultPermissions?: string[]; downloadUrlExpirySeconds?: number; endpoint?: string; entityField?: string; @@ -17450,6 +18652,16 @@ export interface UserSettingsModuleInput { tableId?: string; tableName?: string; } +/** An input for mutations affecting `UserSettingsSecurityModule` */ +export interface UserSettingsSecurityModuleInput { + apiName?: string; + databaseId: string; + id?: string; + ownerTableId?: string; + schemaId?: string; + tableId?: string; + tableName?: string; +} /** An input for mutations affecting `UserStateModule` */ export interface UserStateModuleInput { databaseId: string; @@ -17507,7 +18719,7 @@ export interface WebauthnCredentialsModuleInput { export interface WebhookModuleInput { apiName?: string; databaseId: string; - defaultPermissions?: string[]; + defaultCapabilities?: string[]; entityField?: string; entityTableId?: string; functionInvocationModuleId?: string; @@ -17664,6 +18876,39 @@ export interface BlueprintFilter { /** Filter by the object’s `updatedAt` field. */ updatedAt?: DatetimeFilter; } +/** A filter to be used against `DataCapabilitiesField` object types. All fields are combined with a logical ‘and.’ */ +export interface DataCapabilitiesFieldFilter { + /** Checks for all expressions in this list. */ + and?: DataCapabilitiesFieldFilter[]; + /** Filter by the object’s `capabilitiesModule` relation. */ + capabilitiesModule?: CapabilitiesModuleFilter; + /** Filter by the object’s `capabilitiesModuleId` field. */ + capabilitiesModuleId?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `fieldId` field. */ + fieldId?: UUIDFilter; + /** Filter by the object’s `fromFieldId` field. */ + fromFieldId?: UUIDFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `mappingFieldId` field. */ + mappingFieldId?: UUIDFilter; + /** Filter by the object’s `mappingKeyFieldId` field. */ + mappingKeyFieldId?: UUIDFilter; + /** Filter by the object’s `mappingTableId` field. */ + mappingTableId?: UUIDFilter; + /** Filter by the object’s `mode` field. */ + mode?: StringFilter; + /** Negates the expression. */ + not?: DataCapabilitiesFieldFilter; + /** Checks for any expressions in this list. */ + or?: DataCapabilitiesFieldFilter[]; + /** Filter by the object’s `subsetGuard` field. */ + subsetGuard?: BooleanFilter; + /** Filter by the object’s `tableId` field. */ + tableId?: UUIDFilter; +} /** A filter to be used against `ApiSurfaceModule` object types. All fields are combined with a logical ‘and.’ */ export interface ApiSurfaceModuleFilter { /** Checks for all expressions in this list. */ @@ -17694,8 +18939,8 @@ export interface ApiSurfaceModuleFilter { corsSettingsTableName?: StringFilter; /** Filter by the object’s `databaseId` field. */ databaseId?: UUIDFilter; - /** Filter by the object’s `defaultPermissions` field. */ - defaultPermissions?: StringListFilter; + /** Filter by the object’s `defaultCapabilities` field. */ + defaultCapabilities?: StringListFilter; /** Filter by the object’s `entityField` field. */ entityField?: StringFilter; /** Filter by the object’s `entityTableId` field. */ @@ -17743,8 +18988,8 @@ export interface AppModuleFilter { catalogModuleId?: UUIDFilter; /** Filter by the object’s `databaseId` field. */ databaseId?: UUIDFilter; - /** Filter by the object’s `defaultPermissions` field. */ - defaultPermissions?: StringListFilter; + /** Filter by the object’s `defaultCapabilities` field. */ + defaultCapabilities?: StringListFilter; /** Filter by the object’s `entityField` field. */ entityField?: StringFilter; /** Filter by the object’s `entityTableId` field. */ @@ -17788,8 +19033,8 @@ export interface DomainModuleFilter { catalogModuleId?: UUIDFilter; /** Filter by the object’s `databaseId` field. */ databaseId?: UUIDFilter; - /** Filter by the object’s `defaultPermissions` field. */ - defaultPermissions?: StringListFilter; + /** Filter by the object’s `defaultCapabilities` field. */ + defaultCapabilities?: StringListFilter; /** Filter by the object’s `domainEventsTableId` field. */ domainEventsTableId?: UUIDFilter; /** Filter by the object’s `domainEventsTableName` field. */ @@ -17845,6 +19090,8 @@ export interface RouteModuleFilter { and?: RouteModuleFilter[]; /** Filter by the object’s `apiName` field. */ apiName?: StringFilter; + /** Filter by the object’s `appLinksFunctionName` field. */ + appLinksFunctionName?: StringFilter; /** Filter by the object’s `catalogModule` relation. */ catalogModule?: CatalogModuleFilter; /** A related `catalogModule` exists. */ @@ -17853,8 +19100,10 @@ export interface RouteModuleFilter { catalogModuleId?: UUIDFilter; /** Filter by the object’s `databaseId` field. */ databaseId?: UUIDFilter; - /** Filter by the object’s `defaultPermissions` field. */ - defaultPermissions?: StringListFilter; + /** Filter by the object’s `deepLinkFunctionName` field. */ + deepLinkFunctionName?: StringFilter; + /** Filter by the object’s `defaultCapabilities` field. */ + defaultCapabilities?: StringListFilter; /** Filter by the object’s `domainModule` relation. */ domainModule?: DomainModuleFilter; /** A related `domainModule` exists. */ @@ -17918,8 +19167,12 @@ export interface SiteSurfaceModuleFilter { catalogModuleId?: UUIDFilter; /** Filter by the object’s `databaseId` field. */ databaseId?: UUIDFilter; - /** Filter by the object’s `defaultPermissions` field. */ - defaultPermissions?: StringListFilter; + /** Filter by the object’s `defaultCapabilities` field. */ + defaultCapabilities?: StringListFilter; + /** Filter by the object’s `emailSenderModules` relation. */ + emailSenderModules?: SiteSurfaceModuleToManyEmailSenderModuleFilter; + /** `emailSenderModules` exist. */ + emailSenderModulesExist?: boolean; /** Filter by the object’s `entityField` field. */ entityField?: StringFilter; /** Filter by the object’s `entityTableId` field. */ @@ -17993,8 +19246,8 @@ export interface WebhookModuleFilter { apiName?: StringFilter; /** Filter by the object’s `databaseId` field. */ databaseId?: UUIDFilter; - /** Filter by the object’s `defaultPermissions` field. */ - defaultPermissions?: StringListFilter; + /** Filter by the object’s `defaultCapabilities` field. */ + defaultCapabilities?: StringListFilter; /** Filter by the object’s `entityField` field. */ entityField?: StringFilter; /** Filter by the object’s `entityTableId` field. */ @@ -18064,8 +19317,8 @@ export interface FunctionDeploymentModuleFilter { apiName?: StringFilter; /** Filter by the object’s `databaseId` field. */ databaseId?: UUIDFilter; - /** Filter by the object’s `defaultPermissions` field. */ - defaultPermissions?: StringListFilter; + /** Filter by the object’s `defaultCapabilities` field. */ + defaultCapabilities?: StringListFilter; /** Filter by the object’s `deploymentEventsTableId` field. */ deploymentEventsTableId?: UUIDFilter; /** Filter by the object’s `deploymentEventsTableName` field. */ @@ -18123,8 +19376,8 @@ export interface HttpRouteModuleFilter { apiName?: StringFilter; /** Filter by the object’s `databaseId` field. */ databaseId?: UUIDFilter; - /** Filter by the object’s `defaultPermissions` field. */ - defaultPermissions?: StringListFilter; + /** Filter by the object’s `defaultCapabilities` field. */ + defaultCapabilities?: StringListFilter; /** Filter by the object’s `entityField` field. */ entityField?: StringFilter; /** Filter by the object’s `entityTableId` field. */ @@ -18188,8 +19441,8 @@ export interface GraphExecutionModuleFilter { createdAt?: DatetimeFilter; /** Filter by the object’s `databaseId` field. */ databaseId?: UUIDFilter; - /** Filter by the object’s `defaultPermissions` field. */ - defaultPermissions?: StringListFilter; + /** Filter by the object’s `defaultCapabilities` field. */ + defaultCapabilities?: StringListFilter; /** Filter by the object’s `entityField` field. */ entityField?: StringFilter; /** Filter by the object’s `entityTableId` field. */ @@ -18235,6 +19488,51 @@ export interface GraphExecutionModuleFilter { /** Filter by the object’s `scope` field. */ scope?: StringFilter; } +/** A filter to be used against `ContentPresetModule` object types. All fields are combined with a logical ‘and.’ */ +export interface ContentPresetModuleFilter { + /** Checks for all expressions in this list. */ + and?: ContentPresetModuleFilter[]; + /** Filter by the object’s `apiName` field. */ + apiName?: StringFilter; + /** Filter by the object’s `contentPresetsTableId` field. */ + contentPresetsTableId?: UUIDFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `entityTableId` field. */ + entityTableId?: UUIDFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `merkleStoreModule` relation. */ + merkleStoreModule?: MerkleStoreModuleFilter; + /** Filter by the object’s `merkleStoreModuleId` field. */ + merkleStoreModuleId?: UUIDFilter; + /** Negates the expression. */ + not?: ContentPresetModuleFilter; + /** Checks for any expressions in this list. */ + or?: ContentPresetModuleFilter[]; + /** Filter by the object’s `policies` field. */ + policies?: JSONFilter; + /** Filter by the object’s `prefix` field. */ + prefix?: StringFilter; + /** Filter by the object’s `privateApiName` field. */ + privateApiName?: StringFilter; + /** Filter by the object’s `privateSchemaId` field. */ + privateSchemaId?: UUIDFilter; + /** Filter by the object’s `privateSchemaName` field. */ + privateSchemaName?: StringFilter; + /** Filter by the object’s `provisions` field. */ + provisions?: JSONFilter; + /** Filter by the object’s `publicSchemaId` field. */ + publicSchemaId?: UUIDFilter; + /** Filter by the object’s `publicSchemaName` field. */ + publicSchemaName?: StringFilter; + /** Filter by the object’s `scope` field. */ + scope?: StringFilter; + /** Filter by the object’s `storeName` field. */ + storeName?: StringFilter; +} /** A filter to be used against `DbPresetModule` object types. All fields are combined with a logical ‘and.’ */ export interface DbPresetModuleFilter { /** Checks for all expressions in this list. */ @@ -18290,8 +19588,8 @@ export interface GraphModuleFilter { createdAt?: DatetimeFilter; /** Filter by the object’s `databaseId` field. */ databaseId?: UUIDFilter; - /** Filter by the object’s `defaultPermissions` field. */ - defaultPermissions?: StringListFilter; + /** Filter by the object’s `defaultCapabilities` field. */ + defaultCapabilities?: StringListFilter; /** Filter by the object’s `entityField` field. */ entityField?: StringFilter; /** Filter by the object’s `entityTableId` field. */ @@ -18392,8 +19690,8 @@ export interface ResourceModuleFilter { apiName?: StringFilter; /** Filter by the object’s `databaseId` field. */ databaseId?: UUIDFilter; - /** Filter by the object’s `defaultPermissions` field. */ - defaultPermissions?: StringListFilter; + /** Filter by the object’s `defaultCapabilities` field. */ + defaultCapabilities?: StringListFilter; /** Filter by the object’s `entityField` field. */ entityField?: StringFilter; /** Filter by the object’s `entityTableId` field. */ @@ -18477,6 +19775,88 @@ export interface ResourceModuleFilter { /** Filter by the object’s `scope` field. */ scope?: StringFilter; } +/** A filter to be used against `EmailSenderModule` object types. All fields are combined with a logical ‘and.’ */ +export interface EmailSenderModuleFilter { + /** Checks for all expressions in this list. */ + and?: EmailSenderModuleFilter[]; + /** Filter by the object’s `apiName` field. */ + apiName?: StringFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `defaultCapabilities` field. */ + defaultCapabilities?: StringListFilter; + /** Filter by the object’s `emailIdentitiesTableId` field. */ + emailIdentitiesTableId?: UUIDFilter; + /** Filter by the object’s `emailIdentitiesTableName` field. */ + emailIdentitiesTableName?: StringFilter; + /** Filter by the object’s `emailProviderAccountsTableId` field. */ + emailProviderAccountsTableId?: UUIDFilter; + /** Filter by the object’s `emailProviderAccountsTableName` field. */ + emailProviderAccountsTableName?: StringFilter; + /** Filter by the object’s `emailSiteIdentitiesTableId` field. */ + emailSiteIdentitiesTableId?: UUIDFilter; + /** Filter by the object’s `emailSiteIdentitiesTableName` field. */ + emailSiteIdentitiesTableName?: StringFilter; + /** Filter by the object’s `entityField` field. */ + entityField?: StringFilter; + /** Filter by the object’s `entityTableId` field. */ + entityTableId?: UUIDFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Negates the expression. */ + not?: EmailSenderModuleFilter; + /** Checks for any expressions in this list. */ + or?: EmailSenderModuleFilter[]; + /** Filter by the object’s `policies` field. */ + policies?: JSONFilter; + /** Filter by the object’s `prefix` field. */ + prefix?: StringFilter; + /** Filter by the object’s `privateApiName` field. */ + privateApiName?: StringFilter; + /** Filter by the object’s `provisions` field. */ + provisions?: JSONFilter; + /** Filter by the object’s `publicSchemaName` field. */ + publicSchemaName?: StringFilter; + /** Filter by the object’s `schemaId` field. */ + schemaId?: UUIDFilter; + /** Filter by the object’s `scope` field. */ + scope?: StringFilter; + /** Filter by the object’s `siteSurfaceModule` relation. */ + siteSurfaceModule?: SiteSurfaceModuleFilter; + /** A related `siteSurfaceModule` exists. */ + siteSurfaceModuleExists?: boolean; + /** Filter by the object’s `siteSurfaceModuleId` field. */ + siteSurfaceModuleId?: UUIDFilter; +} +/** A filter to be used against `FileRefField` object types. All fields are combined with a logical ‘and.’ */ +export interface FileRefFieldFilter { + /** Checks for all expressions in this list. */ + and?: FileRefFieldFilter[]; + /** Filter by the object’s `bucketKey` field. */ + bucketKey?: StringFilter; + /** Filter by the object’s `bucketTags` field. */ + bucketTags?: StringListFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `enforceFk` field. */ + enforceFk?: BooleanFilter; + /** Filter by the object’s `fieldId` field. */ + fieldId?: UUIDFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `isPublic` field. */ + isPublic?: BooleanFilter; + /** Negates the expression. */ + not?: FileRefFieldFilter; + /** Checks for any expressions in this list. */ + or?: FileRefFieldFilter[]; + /** Filter by the object’s `storageModule` relation. */ + storageModule?: StorageModuleFilter; + /** Filter by the object’s `storageModuleId` field. */ + storageModuleId?: UUIDFilter; + /** Filter by the object’s `tableId` field. */ + tableId?: UUIDFilter; +} /** A filter to be used against UUID fields. All fields are combined with a logical ‘and.’ */ export interface UUIDFilter { /** Not equal to the specified value, treating null like an ordinary value. */ @@ -18703,6 +20083,88 @@ export interface IntFilter { /** Not included in the specified list. */ notIn?: number[]; } +/** A filter to be used against `CapabilitiesModule` object types. All fields are combined with a logical ‘and.’ */ +export interface CapabilitiesModuleFilter { + /** Filter by the object’s `actorTableId` field. */ + actorTableId?: UUIDFilter; + /** Checks for all expressions in this list. */ + and?: CapabilitiesModuleFilter[]; + /** Filter by the object’s `apiName` field. */ + apiName?: StringFilter; + /** Filter by the object’s `bitlen` field. */ + bitlen?: IntFilter; + /** Filter by the object’s `dataCapabilitiesFields` relation. */ + dataCapabilitiesFields?: CapabilitiesModuleToManyDataCapabilitiesFieldFilter; + /** `dataCapabilitiesFields` exist. */ + dataCapabilitiesFieldsExist?: boolean; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `defaultTableId` field. */ + defaultTableId?: UUIDFilter; + /** Filter by the object’s `defaultTableName` field. */ + defaultTableName?: StringFilter; + /** Filter by the object’s `entityField` field. */ + entityField?: StringFilter; + /** Filter by the object’s `entityTableId` field. */ + entityTableId?: UUIDFilter; + /** Filter by the object’s `getByMask` field. */ + getByMask?: StringFilter; + /** Filter by the object’s `getMask` field. */ + getMask?: StringFilter; + /** Filter by the object’s `getMaskByName` field. */ + getMaskByName?: StringFilter; + /** Filter by the object’s `getPaddedMask` field. */ + getPaddedMask?: StringFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Negates the expression. */ + not?: CapabilitiesModuleFilter; + /** Checks for any expressions in this list. */ + or?: CapabilitiesModuleFilter[]; + /** Filter by the object’s `prefix` field. */ + prefix?: StringFilter; + /** Filter by the object’s `privateApiName` field. */ + privateApiName?: StringFilter; + /** Filter by the object’s `privateSchemaId` field. */ + privateSchemaId?: UUIDFilter; + /** Filter by the object’s `privateSchemaName` field. */ + privateSchemaName?: StringFilter; + /** Filter by the object’s `publicSchemaName` field. */ + publicSchemaName?: StringFilter; + /** Filter by the object’s `schemaId` field. */ + schemaId?: UUIDFilter; + /** Filter by the object’s `scope` field. */ + scope?: StringFilter; + /** Filter by the object’s `tableId` field. */ + tableId?: UUIDFilter; + /** Filter by the object’s `tableName` field. */ + tableName?: StringFilter; +} +/** A filter to be used against Boolean fields. All fields are combined with a logical ‘and.’ */ +export interface BooleanFilter { + /** Not equal to the specified value, treating null like an ordinary value. */ + distinctFrom?: boolean; + /** Equal to the specified value. */ + equalTo?: boolean; + /** Greater than the specified value. */ + greaterThan?: boolean; + /** Greater than or equal to the specified value. */ + greaterThanOrEqualTo?: boolean; + /** Included in the specified list. */ + in?: boolean[]; + /** Is null (if `true` is specified) or is not null (if `false` is specified). */ + isNull?: boolean; + /** Less than the specified value. */ + lessThan?: boolean; + /** Less than or equal to the specified value. */ + lessThanOrEqualTo?: boolean; + /** Equal to the specified value, treating null like an ordinary value. */ + notDistinctFrom?: boolean; + /** Not equal to the specified value. */ + notEqualTo?: boolean; + /** Not included in the specified list. */ + notIn?: boolean[]; +} /** A filter to be used against `CatalogModule` object types. All fields are combined with a logical ‘and.’ */ export interface CatalogModuleFilter { /** Checks for all expressions in this list. */ @@ -18725,14 +20187,18 @@ export interface CatalogModuleFilter { appsTableId?: UUIDFilter; /** Filter by the object’s `appsTableName` field. */ appsTableName?: StringFilter; + /** Filter by the object’s `bindingsTableId` field. */ + bindingsTableId?: UUIDFilter; + /** Filter by the object’s `bindingsTableName` field. */ + bindingsTableName?: StringFilter; /** Filter by the object’s `bucketsTableId` field. */ bucketsTableId?: UUIDFilter; /** Filter by the object’s `bucketsTableName` field. */ bucketsTableName?: StringFilter; /** Filter by the object’s `databaseId` field. */ databaseId?: UUIDFilter; - /** Filter by the object’s `defaultPermissions` field. */ - defaultPermissions?: StringListFilter; + /** Filter by the object’s `defaultCapabilities` field. */ + defaultCapabilities?: StringListFilter; /** Filter by the object’s `domainModules` relation. */ domainModules?: CatalogModuleToManyDomainModuleFilter; /** `domainModules` exist. */ @@ -18822,8 +20288,8 @@ export interface FunctionInvocationModuleFilter { attemptsTableName?: StringFilter; /** Filter by the object’s `databaseId` field. */ databaseId?: UUIDFilter; - /** Filter by the object’s `defaultPermissions` field. */ - defaultPermissions?: StringListFilter; + /** Filter by the object’s `defaultCapabilities` field. */ + defaultCapabilities?: StringListFilter; /** Filter by the object’s `entityField` field. */ entityField?: StringFilter; /** Filter by the object’s `entityTableId` field. */ @@ -18879,8 +20345,8 @@ export interface FunctionModuleFilter { capabilityBindingsTableId?: UUIDFilter; /** Filter by the object’s `databaseId` field. */ databaseId?: UUIDFilter; - /** Filter by the object’s `defaultPermissions` field. */ - defaultPermissions?: StringListFilter; + /** Filter by the object’s `defaultCapabilities` field. */ + defaultCapabilities?: StringListFilter; /** Filter by the object’s `definitionsTableId` field. */ definitionsTableId?: UUIDFilter; /** Filter by the object’s `definitionsTableName` field. */ @@ -18983,8 +20449,8 @@ export interface NamespaceModuleFilter { apiName?: StringFilter; /** Filter by the object’s `databaseId` field. */ databaseId?: UUIDFilter; - /** Filter by the object’s `defaultPermissions` field. */ - defaultPermissions?: StringListFilter; + /** Filter by the object’s `defaultCapabilities` field. */ + defaultCapabilities?: StringListFilter; /** Filter by the object’s `entityField` field. */ entityField?: StringFilter; /** Filter by the object’s `entityTableId` field. */ @@ -19054,10 +20520,10 @@ export interface StorageModuleFilter { confirmUploadDelay?: IntervalFilter; /** Filter by the object’s `databaseId` field. */ databaseId?: UUIDFilter; + /** Filter by the object’s `defaultCapabilities` field. */ + defaultCapabilities?: StringListFilter; /** Filter by the object’s `defaultMaxFileSize` field. */ defaultMaxFileSize?: BigIntFilter; - /** Filter by the object’s `defaultPermissions` field. */ - defaultPermissions?: StringListFilter; /** Filter by the object’s `downloadUrlExpirySeconds` field. */ downloadUrlExpirySeconds?: IntFilter; /** Filter by the object’s `endpoint` field. */ @@ -19068,6 +20534,10 @@ export interface StorageModuleFilter { entityTableId?: UUIDFilter; /** Filter by the object’s `fileEventsTableId` field. */ fileEventsTableId?: UUIDFilter; + /** Filter by the object’s `fileRefFields` relation. */ + fileRefFields?: StorageModuleToManyFileRefFieldFilter; + /** `fileRefFields` exist. */ + fileRefFieldsExist?: boolean; /** Filter by the object’s `filesTableId` field. */ filesTableId?: UUIDFilter; /** Filter by the object’s `filesTableName` field. */ @@ -19135,8 +20605,14 @@ export interface MerkleStoreModuleFilter { and?: MerkleStoreModuleFilter[]; /** Filter by the object’s `apiName` field. */ apiName?: StringFilter; + /** Filter by the object’s `capabilityKey` field. */ + capabilityKey?: StringFilter; /** Filter by the object’s `commitTableId` field. */ commitTableId?: UUIDFilter; + /** Filter by the object’s `contentPresetModules` relation. */ + contentPresetModules?: MerkleStoreModuleToManyContentPresetModuleFilter; + /** `contentPresetModules` exist. */ + contentPresetModulesExist?: boolean; /** Filter by the object’s `createdAt` field. */ createdAt?: DatetimeFilter; /** Filter by the object’s `databaseId` field. */ @@ -19165,8 +20641,6 @@ export interface MerkleStoreModuleFilter { pagesModules?: MerkleStoreModuleToManyPagesModuleFilter; /** `pagesModules` exist. */ pagesModulesExist?: boolean; - /** Filter by the object’s `permissionKey` field. */ - permissionKey?: StringFilter; /** Filter by the object’s `prefix` field. */ prefix?: StringFilter; /** Filter by the object’s `privateApiName` field. */ @@ -19190,31 +20664,6 @@ export interface MerkleStoreModuleFilter { /** Filter by the object’s `storeTableId` field. */ storeTableId?: UUIDFilter; } -/** A filter to be used against Boolean fields. All fields are combined with a logical ‘and.’ */ -export interface BooleanFilter { - /** Not equal to the specified value, treating null like an ordinary value. */ - distinctFrom?: boolean; - /** Equal to the specified value. */ - equalTo?: boolean; - /** Greater than the specified value. */ - greaterThan?: boolean; - /** Greater than or equal to the specified value. */ - greaterThanOrEqualTo?: boolean; - /** Included in the specified list. */ - in?: boolean[]; - /** Is null (if `true` is specified) or is not null (if `false` is specified). */ - isNull?: boolean; - /** Less than the specified value. */ - lessThan?: boolean; - /** Less than or equal to the specified value. */ - lessThanOrEqualTo?: boolean; - /** Equal to the specified value, treating null like an ordinary value. */ - notDistinctFrom?: boolean; - /** Not equal to the specified value. */ - notEqualTo?: boolean; - /** Not included in the specified list. */ - notIn?: boolean[]; -} /** A filter to be used against BigInt fields. All fields are combined with a logical ‘and.’ */ export interface BigIntFilter { /** Not equal to the specified value, treating null like an ordinary value. */ @@ -19251,89 +20700,33 @@ export type ConstructBlueprintPayloadSelect = { }; export interface CopyTemplateToBlueprintPayload { clientMutationId?: string | null; - result?: string | null; -} -export type CopyTemplateToBlueprintPayloadSelect = { - clientMutationId?: boolean; - result?: boolean; -}; -export interface ProvisionBucketPayload { - /** The access type applied */ - accessType: string; - /** The S3 bucket name that was provisioned */ - bucketName: string; - /** The S3 endpoint (null for AWS S3 default) */ - endpoint?: string | null; - /** Error message if provisioning failed */ - error?: string | null; - /** The storage provider used */ - provider: string; - /** Whether provisioning succeeded */ - success: boolean; -} -export type ProvisionBucketPayloadSelect = { - accessType?: boolean; - bucketName?: boolean; - endpoint?: boolean; - error?: boolean; - provider?: boolean; - success?: boolean; -}; -export interface ProvisionCheckConstraintPayload { - clientMutationId?: string | null; -} -export type ProvisionCheckConstraintPayloadSelect = { - clientMutationId?: boolean; -}; -export interface ProvisionFullTextSearchPayload { - clientMutationId?: string | null; - result?: string | null; -} -export type ProvisionFullTextSearchPayloadSelect = { - clientMutationId?: boolean; - result?: boolean; -}; -export interface ProvisionIndexPayload { - clientMutationId?: string | null; - result?: string | null; -} -export type ProvisionIndexPayloadSelect = { - clientMutationId?: boolean; - result?: boolean; -}; -export interface ProvisionRelationPayload { - clientMutationId?: string | null; - result?: ProvisionRelationRecord[] | null; -} -export type ProvisionRelationPayloadSelect = { - clientMutationId?: boolean; - result?: { - select: ProvisionRelationRecordSelect; - }; -}; -export interface ProvisionSpatialRelationPayload { - clientMutationId?: string | null; - result?: string | null; -} -export type ProvisionSpatialRelationPayloadSelect = { - clientMutationId?: boolean; - result?: boolean; -}; -export interface ProvisionTablePayload { - clientMutationId?: string | null; - result?: ProvisionTableRecord[] | null; + result?: string | null; } -export type ProvisionTablePayloadSelect = { +export type CopyTemplateToBlueprintPayloadSelect = { clientMutationId?: boolean; - result?: { - select: ProvisionTableRecordSelect; - }; + result?: boolean; }; -export interface ProvisionUniqueConstraintPayload { - clientMutationId?: string | null; +export interface ProvisionBucketPayload { + /** The access type applied */ + accessType: string; + /** The S3 bucket name that was provisioned */ + bucketName: string; + /** The S3 endpoint (null for AWS S3 default) */ + endpoint?: string | null; + /** Error message if provisioning failed */ + error?: string | null; + /** The storage provider used */ + provider: string; + /** Whether provisioning succeeded */ + success: boolean; } -export type ProvisionUniqueConstraintPayloadSelect = { - clientMutationId?: boolean; +export type ProvisionBucketPayloadSelect = { + accessType?: boolean; + bucketName?: boolean; + endpoint?: boolean; + error?: boolean; + provider?: boolean; + success?: boolean; }; export interface CreateAgentModulePayload { /** The `AgentModule` that was created by this mutation. */ @@ -19695,6 +21088,51 @@ export type DeleteBlueprintTemplatePayloadSelect = { }; clientMutationId?: boolean; }; +export interface CreateCapabilitiesModulePayload { + /** The `CapabilitiesModule` that was created by this mutation. */ + capabilitiesModule?: CapabilitiesModule | null; + capabilitiesModuleEdge?: CapabilitiesModuleEdge | null; + clientMutationId?: string | null; +} +export type CreateCapabilitiesModulePayloadSelect = { + capabilitiesModule?: { + select: CapabilitiesModuleSelect; + }; + capabilitiesModuleEdge?: { + select: CapabilitiesModuleEdgeSelect; + }; + clientMutationId?: boolean; +}; +export interface UpdateCapabilitiesModulePayload { + /** The `CapabilitiesModule` that was updated by this mutation. */ + capabilitiesModule?: CapabilitiesModule | null; + capabilitiesModuleEdge?: CapabilitiesModuleEdge | null; + clientMutationId?: string | null; +} +export type UpdateCapabilitiesModulePayloadSelect = { + capabilitiesModule?: { + select: CapabilitiesModuleSelect; + }; + capabilitiesModuleEdge?: { + select: CapabilitiesModuleEdgeSelect; + }; + clientMutationId?: boolean; +}; +export interface DeleteCapabilitiesModulePayload { + /** The `CapabilitiesModule` that was deleted by this mutation. */ + capabilitiesModule?: CapabilitiesModule | null; + capabilitiesModuleEdge?: CapabilitiesModuleEdge | null; + clientMutationId?: string | null; +} +export type DeleteCapabilitiesModulePayloadSelect = { + capabilitiesModule?: { + select: CapabilitiesModuleSelect; + }; + capabilitiesModuleEdge?: { + select: CapabilitiesModuleEdgeSelect; + }; + clientMutationId?: boolean; +}; export interface CreateCatalogModulePayload { /** The `CatalogModule` that was created by this mutation. */ catalogModule?: CatalogModule | null; @@ -19875,6 +21313,51 @@ export type DeleteConnectedAccountsModulePayloadSelect = { select: ConnectedAccountsModuleEdgeSelect; }; }; +export interface CreateContentPresetModulePayload { + clientMutationId?: string | null; + /** The `ContentPresetModule` that was created by this mutation. */ + contentPresetModule?: ContentPresetModule | null; + contentPresetModuleEdge?: ContentPresetModuleEdge | null; +} +export type CreateContentPresetModulePayloadSelect = { + clientMutationId?: boolean; + contentPresetModule?: { + select: ContentPresetModuleSelect; + }; + contentPresetModuleEdge?: { + select: ContentPresetModuleEdgeSelect; + }; +}; +export interface UpdateContentPresetModulePayload { + clientMutationId?: string | null; + /** The `ContentPresetModule` that was updated by this mutation. */ + contentPresetModule?: ContentPresetModule | null; + contentPresetModuleEdge?: ContentPresetModuleEdge | null; +} +export type UpdateContentPresetModulePayloadSelect = { + clientMutationId?: boolean; + contentPresetModule?: { + select: ContentPresetModuleSelect; + }; + contentPresetModuleEdge?: { + select: ContentPresetModuleEdgeSelect; + }; +}; +export interface DeleteContentPresetModulePayload { + clientMutationId?: string | null; + /** The `ContentPresetModule` that was deleted by this mutation. */ + contentPresetModule?: ContentPresetModule | null; + contentPresetModuleEdge?: ContentPresetModuleEdge | null; +} +export type DeleteContentPresetModulePayloadSelect = { + clientMutationId?: boolean; + contentPresetModule?: { + select: ContentPresetModuleSelect; + }; + contentPresetModuleEdge?: { + select: ContentPresetModuleEdgeSelect; + }; +}; export interface CreateCryptoAddressesModulePayload { clientMutationId?: string | null; /** The `CryptoAddressesModule` that was created by this mutation. */ @@ -19965,6 +21448,51 @@ export type DeleteCryptoAuthModulePayloadSelect = { select: CryptoAuthModuleEdgeSelect; }; }; +export interface CreateDataCapabilitiesFieldPayload { + clientMutationId?: string | null; + /** The `DataCapabilitiesField` that was created by this mutation. */ + dataCapabilitiesField?: DataCapabilitiesField | null; + dataCapabilitiesFieldEdge?: DataCapabilitiesFieldEdge | null; +} +export type CreateDataCapabilitiesFieldPayloadSelect = { + clientMutationId?: boolean; + dataCapabilitiesField?: { + select: DataCapabilitiesFieldSelect; + }; + dataCapabilitiesFieldEdge?: { + select: DataCapabilitiesFieldEdgeSelect; + }; +}; +export interface UpdateDataCapabilitiesFieldPayload { + clientMutationId?: string | null; + /** The `DataCapabilitiesField` that was updated by this mutation. */ + dataCapabilitiesField?: DataCapabilitiesField | null; + dataCapabilitiesFieldEdge?: DataCapabilitiesFieldEdge | null; +} +export type UpdateDataCapabilitiesFieldPayloadSelect = { + clientMutationId?: boolean; + dataCapabilitiesField?: { + select: DataCapabilitiesFieldSelect; + }; + dataCapabilitiesFieldEdge?: { + select: DataCapabilitiesFieldEdgeSelect; + }; +}; +export interface DeleteDataCapabilitiesFieldPayload { + clientMutationId?: string | null; + /** The `DataCapabilitiesField` that was deleted by this mutation. */ + dataCapabilitiesField?: DataCapabilitiesField | null; + dataCapabilitiesFieldEdge?: DataCapabilitiesFieldEdge | null; +} +export type DeleteDataCapabilitiesFieldPayloadSelect = { + clientMutationId?: boolean; + dataCapabilitiesField?: { + select: DataCapabilitiesFieldSelect; + }; + dataCapabilitiesFieldEdge?: { + select: DataCapabilitiesFieldEdgeSelect; + }; +}; export interface CreateDatabaseProvisionModulePayload { clientMutationId?: string | null; /** The `DatabaseProvisionModule` that was created by this mutation. */ @@ -20415,6 +21943,51 @@ export type DeleteDomainModulePayloadSelect = { select: DomainModuleEdgeSelect; }; }; +export interface CreateEmailSenderModulePayload { + clientMutationId?: string | null; + /** The `EmailSenderModule` that was created by this mutation. */ + emailSenderModule?: EmailSenderModule | null; + emailSenderModuleEdge?: EmailSenderModuleEdge | null; +} +export type CreateEmailSenderModulePayloadSelect = { + clientMutationId?: boolean; + emailSenderModule?: { + select: EmailSenderModuleSelect; + }; + emailSenderModuleEdge?: { + select: EmailSenderModuleEdgeSelect; + }; +}; +export interface UpdateEmailSenderModulePayload { + clientMutationId?: string | null; + /** The `EmailSenderModule` that was updated by this mutation. */ + emailSenderModule?: EmailSenderModule | null; + emailSenderModuleEdge?: EmailSenderModuleEdge | null; +} +export type UpdateEmailSenderModulePayloadSelect = { + clientMutationId?: boolean; + emailSenderModule?: { + select: EmailSenderModuleSelect; + }; + emailSenderModuleEdge?: { + select: EmailSenderModuleEdgeSelect; + }; +}; +export interface DeleteEmailSenderModulePayload { + clientMutationId?: string | null; + /** The `EmailSenderModule` that was deleted by this mutation. */ + emailSenderModule?: EmailSenderModule | null; + emailSenderModuleEdge?: EmailSenderModuleEdge | null; +} +export type DeleteEmailSenderModulePayloadSelect = { + clientMutationId?: boolean; + emailSenderModule?: { + select: EmailSenderModuleSelect; + }; + emailSenderModuleEdge?: { + select: EmailSenderModuleEdgeSelect; + }; +}; export interface CreateEmailsModulePayload { clientMutationId?: string | null; /** The `EmailsModule` that was created by this mutation. */ @@ -20550,6 +22123,51 @@ export type DeleteEventsModulePayloadSelect = { select: EventsModuleEdgeSelect; }; }; +export interface CreateFileRefFieldPayload { + clientMutationId?: string | null; + /** The `FileRefField` that was created by this mutation. */ + fileRefField?: FileRefField | null; + fileRefFieldEdge?: FileRefFieldEdge | null; +} +export type CreateFileRefFieldPayloadSelect = { + clientMutationId?: boolean; + fileRefField?: { + select: FileRefFieldSelect; + }; + fileRefFieldEdge?: { + select: FileRefFieldEdgeSelect; + }; +}; +export interface UpdateFileRefFieldPayload { + clientMutationId?: string | null; + /** The `FileRefField` that was updated by this mutation. */ + fileRefField?: FileRefField | null; + fileRefFieldEdge?: FileRefFieldEdge | null; +} +export type UpdateFileRefFieldPayloadSelect = { + clientMutationId?: boolean; + fileRefField?: { + select: FileRefFieldSelect; + }; + fileRefFieldEdge?: { + select: FileRefFieldEdgeSelect; + }; +}; +export interface DeleteFileRefFieldPayload { + clientMutationId?: string | null; + /** The `FileRefField` that was deleted by this mutation. */ + fileRefField?: FileRefField | null; + fileRefFieldEdge?: FileRefFieldEdge | null; +} +export type DeleteFileRefFieldPayloadSelect = { + clientMutationId?: boolean; + fileRefField?: { + select: FileRefFieldSelect; + }; + fileRefFieldEdge?: { + select: FileRefFieldEdgeSelect; + }; +}; export interface CreateFunctionDeploymentModulePayload { clientMutationId?: string | null; /** The `FunctionDeploymentModule` that was created by this mutation. */ @@ -21495,6 +23113,51 @@ export type DeleteNotificationsModulePayloadSelect = { select: NotificationsModuleEdgeSelect; }; }; +export interface CreateOauthRequestsModulePayload { + clientMutationId?: string | null; + /** The `OauthRequestsModule` that was created by this mutation. */ + oauthRequestsModule?: OauthRequestsModule | null; + oauthRequestsModuleEdge?: OauthRequestsModuleEdge | null; +} +export type CreateOauthRequestsModulePayloadSelect = { + clientMutationId?: boolean; + oauthRequestsModule?: { + select: OauthRequestsModuleSelect; + }; + oauthRequestsModuleEdge?: { + select: OauthRequestsModuleEdgeSelect; + }; +}; +export interface UpdateOauthRequestsModulePayload { + clientMutationId?: string | null; + /** The `OauthRequestsModule` that was updated by this mutation. */ + oauthRequestsModule?: OauthRequestsModule | null; + oauthRequestsModuleEdge?: OauthRequestsModuleEdge | null; +} +export type UpdateOauthRequestsModulePayloadSelect = { + clientMutationId?: boolean; + oauthRequestsModule?: { + select: OauthRequestsModuleSelect; + }; + oauthRequestsModuleEdge?: { + select: OauthRequestsModuleEdgeSelect; + }; +}; +export interface DeleteOauthRequestsModulePayload { + clientMutationId?: string | null; + /** The `OauthRequestsModule` that was deleted by this mutation. */ + oauthRequestsModule?: OauthRequestsModule | null; + oauthRequestsModuleEdge?: OauthRequestsModuleEdge | null; +} +export type DeleteOauthRequestsModulePayloadSelect = { + clientMutationId?: boolean; + oauthRequestsModule?: { + select: OauthRequestsModuleSelect; + }; + oauthRequestsModuleEdge?: { + select: OauthRequestsModuleEdgeSelect; + }; +}; export interface CreatePagesModulePayload { clientMutationId?: string | null; /** The `PagesModule` that was created by this mutation. */ @@ -21540,51 +23203,6 @@ export type DeletePagesModulePayloadSelect = { select: PagesModuleEdgeSelect; }; }; -export interface CreatePermissionsModulePayload { - clientMutationId?: string | null; - /** The `PermissionsModule` that was created by this mutation. */ - permissionsModule?: PermissionsModule | null; - permissionsModuleEdge?: PermissionsModuleEdge | null; -} -export type CreatePermissionsModulePayloadSelect = { - clientMutationId?: boolean; - permissionsModule?: { - select: PermissionsModuleSelect; - }; - permissionsModuleEdge?: { - select: PermissionsModuleEdgeSelect; - }; -}; -export interface UpdatePermissionsModulePayload { - clientMutationId?: string | null; - /** The `PermissionsModule` that was updated by this mutation. */ - permissionsModule?: PermissionsModule | null; - permissionsModuleEdge?: PermissionsModuleEdge | null; -} -export type UpdatePermissionsModulePayloadSelect = { - clientMutationId?: boolean; - permissionsModule?: { - select: PermissionsModuleSelect; - }; - permissionsModuleEdge?: { - select: PermissionsModuleEdgeSelect; - }; -}; -export interface DeletePermissionsModulePayload { - clientMutationId?: string | null; - /** The `PermissionsModule` that was deleted by this mutation. */ - permissionsModule?: PermissionsModule | null; - permissionsModuleEdge?: PermissionsModuleEdge | null; -} -export type DeletePermissionsModulePayloadSelect = { - clientMutationId?: boolean; - permissionsModule?: { - select: PermissionsModuleSelect; - }; - permissionsModuleEdge?: { - select: PermissionsModuleEdgeSelect; - }; -}; export interface CreatePhoneNumbersModulePayload { clientMutationId?: string | null; /** The `PhoneNumbersModule` that was created by this mutation. */ @@ -22080,6 +23698,51 @@ export type DeleteRouteModulePayloadSelect = { select: RouteModuleEdgeSelect; }; }; +export interface CreateScopeTypesModulePayload { + clientMutationId?: string | null; + /** The `ScopeTypesModule` that was created by this mutation. */ + scopeTypesModule?: ScopeTypesModule | null; + scopeTypesModuleEdge?: ScopeTypesModuleEdge | null; +} +export type CreateScopeTypesModulePayloadSelect = { + clientMutationId?: boolean; + scopeTypesModule?: { + select: ScopeTypesModuleSelect; + }; + scopeTypesModuleEdge?: { + select: ScopeTypesModuleEdgeSelect; + }; +}; +export interface UpdateScopeTypesModulePayload { + clientMutationId?: string | null; + /** The `ScopeTypesModule` that was updated by this mutation. */ + scopeTypesModule?: ScopeTypesModule | null; + scopeTypesModuleEdge?: ScopeTypesModuleEdge | null; +} +export type UpdateScopeTypesModulePayloadSelect = { + clientMutationId?: boolean; + scopeTypesModule?: { + select: ScopeTypesModuleSelect; + }; + scopeTypesModuleEdge?: { + select: ScopeTypesModuleEdgeSelect; + }; +}; +export interface DeleteScopeTypesModulePayload { + clientMutationId?: string | null; + /** The `ScopeTypesModule` that was deleted by this mutation. */ + scopeTypesModule?: ScopeTypesModule | null; + scopeTypesModuleEdge?: ScopeTypesModuleEdge | null; +} +export type DeleteScopeTypesModulePayloadSelect = { + clientMutationId?: boolean; + scopeTypesModule?: { + select: ScopeTypesModuleSelect; + }; + scopeTypesModuleEdge?: { + select: ScopeTypesModuleEdgeSelect; + }; +}; export interface CreateSecureTableProvisionPayload { clientMutationId?: string | null; /** The `SecureTableProvision` that was created by this mutation. */ @@ -22530,6 +24193,51 @@ export type DeleteUserSettingsModulePayloadSelect = { select: UserSettingsModuleEdgeSelect; }; }; +export interface CreateUserSettingsSecurityModulePayload { + clientMutationId?: string | null; + /** The `UserSettingsSecurityModule` that was created by this mutation. */ + userSettingsSecurityModule?: UserSettingsSecurityModule | null; + userSettingsSecurityModuleEdge?: UserSettingsSecurityModuleEdge | null; +} +export type CreateUserSettingsSecurityModulePayloadSelect = { + clientMutationId?: boolean; + userSettingsSecurityModule?: { + select: UserSettingsSecurityModuleSelect; + }; + userSettingsSecurityModuleEdge?: { + select: UserSettingsSecurityModuleEdgeSelect; + }; +}; +export interface UpdateUserSettingsSecurityModulePayload { + clientMutationId?: string | null; + /** The `UserSettingsSecurityModule` that was updated by this mutation. */ + userSettingsSecurityModule?: UserSettingsSecurityModule | null; + userSettingsSecurityModuleEdge?: UserSettingsSecurityModuleEdge | null; +} +export type UpdateUserSettingsSecurityModulePayloadSelect = { + clientMutationId?: boolean; + userSettingsSecurityModule?: { + select: UserSettingsSecurityModuleSelect; + }; + userSettingsSecurityModuleEdge?: { + select: UserSettingsSecurityModuleEdgeSelect; + }; +}; +export interface DeleteUserSettingsSecurityModulePayload { + clientMutationId?: string | null; + /** The `UserSettingsSecurityModule` that was deleted by this mutation. */ + userSettingsSecurityModule?: UserSettingsSecurityModule | null; + userSettingsSecurityModuleEdge?: UserSettingsSecurityModuleEdge | null; +} +export type DeleteUserSettingsSecurityModulePayloadSelect = { + clientMutationId?: boolean; + userSettingsSecurityModule?: { + select: UserSettingsSecurityModuleSelect; + }; + userSettingsSecurityModuleEdge?: { + select: UserSettingsSecurityModuleEdgeSelect; + }; +}; export interface CreateUserStateModulePayload { clientMutationId?: string | null; /** The `UserStateModule` that was created by this mutation. */ @@ -22755,26 +24463,6 @@ export type DeleteWebhookModulePayloadSelect = { select: WebhookModuleEdgeSelect; }; }; -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 ProvisionTableRecord { - outFields?: string[] | null; - outTableId?: string | null; -} -export type ProvisionTableRecordSelect = { - outFields?: boolean; - outTableId?: boolean; -}; /** A `AgentModule` edge in the connection. */ export interface AgentModuleEdge { cursor?: string | null; @@ -22871,6 +24559,18 @@ export type BlueprintTemplateEdgeSelect = { select: BlueprintTemplateSelect; }; }; +/** A `CapabilitiesModule` edge in the connection. */ +export interface CapabilitiesModuleEdge { + cursor?: string | null; + /** The `CapabilitiesModule` at the end of the edge. */ + node?: CapabilitiesModule | null; +} +export type CapabilitiesModuleEdgeSelect = { + cursor?: boolean; + node?: { + select: CapabilitiesModuleSelect; + }; +}; /** A `CatalogModule` edge in the connection. */ export interface CatalogModuleEdge { cursor?: string | null; @@ -22919,6 +24619,18 @@ export type ConnectedAccountsModuleEdgeSelect = { select: ConnectedAccountsModuleSelect; }; }; +/** A `ContentPresetModule` edge in the connection. */ +export interface ContentPresetModuleEdge { + cursor?: string | null; + /** The `ContentPresetModule` at the end of the edge. */ + node?: ContentPresetModule | null; +} +export type ContentPresetModuleEdgeSelect = { + cursor?: boolean; + node?: { + select: ContentPresetModuleSelect; + }; +}; /** A `CryptoAddressesModule` edge in the connection. */ export interface CryptoAddressesModuleEdge { cursor?: string | null; @@ -22943,6 +24655,18 @@ export type CryptoAuthModuleEdgeSelect = { select: CryptoAuthModuleSelect; }; }; +/** A `DataCapabilitiesField` edge in the connection. */ +export interface DataCapabilitiesFieldEdge { + cursor?: string | null; + /** The `DataCapabilitiesField` at the end of the edge. */ + node?: DataCapabilitiesField | null; +} +export type DataCapabilitiesFieldEdgeSelect = { + cursor?: boolean; + node?: { + select: DataCapabilitiesFieldSelect; + }; +}; /** A `DatabaseProvisionModule` edge in the connection. */ export interface DatabaseProvisionModuleEdge { cursor?: string | null; @@ -23063,6 +24787,18 @@ export type DomainModuleEdgeSelect = { select: DomainModuleSelect; }; }; +/** A `EmailSenderModule` edge in the connection. */ +export interface EmailSenderModuleEdge { + cursor?: string | null; + /** The `EmailSenderModule` at the end of the edge. */ + node?: EmailSenderModule | null; +} +export type EmailSenderModuleEdgeSelect = { + cursor?: boolean; + node?: { + select: EmailSenderModuleSelect; + }; +}; /** A `EmailsModule` edge in the connection. */ export interface EmailsModuleEdge { cursor?: string | null; @@ -23099,6 +24835,18 @@ export type EventsModuleEdgeSelect = { select: EventsModuleSelect; }; }; +/** A `FileRefField` edge in the connection. */ +export interface FileRefFieldEdge { + cursor?: string | null; + /** The `FileRefField` at the end of the edge. */ + node?: FileRefField | null; +} +export type FileRefFieldEdgeSelect = { + cursor?: boolean; + node?: { + select: FileRefFieldSelect; + }; +}; /** A `FunctionDeploymentModule` edge in the connection. */ export interface FunctionDeploymentModuleEdge { cursor?: string | null; @@ -23351,28 +25099,28 @@ export type NotificationsModuleEdgeSelect = { select: NotificationsModuleSelect; }; }; -/** A `PagesModule` edge in the connection. */ -export interface PagesModuleEdge { +/** A `OauthRequestsModule` edge in the connection. */ +export interface OauthRequestsModuleEdge { cursor?: string | null; - /** The `PagesModule` at the end of the edge. */ - node?: PagesModule | null; + /** The `OauthRequestsModule` at the end of the edge. */ + node?: OauthRequestsModule | null; } -export type PagesModuleEdgeSelect = { +export type OauthRequestsModuleEdgeSelect = { cursor?: boolean; node?: { - select: PagesModuleSelect; + select: OauthRequestsModuleSelect; }; }; -/** A `PermissionsModule` edge in the connection. */ -export interface PermissionsModuleEdge { +/** A `PagesModule` edge in the connection. */ +export interface PagesModuleEdge { cursor?: string | null; - /** The `PermissionsModule` at the end of the edge. */ - node?: PermissionsModule | null; + /** The `PagesModule` at the end of the edge. */ + node?: PagesModule | null; } -export type PermissionsModuleEdgeSelect = { +export type PagesModuleEdgeSelect = { cursor?: boolean; node?: { - select: PermissionsModuleSelect; + select: PagesModuleSelect; }; }; /** A `PhoneNumbersModule` edge in the connection. */ @@ -23507,6 +25255,18 @@ export type RouteModuleEdgeSelect = { select: RouteModuleSelect; }; }; +/** A `ScopeTypesModule` edge in the connection. */ +export interface ScopeTypesModuleEdge { + cursor?: string | null; + /** The `ScopeTypesModule` at the end of the edge. */ + node?: ScopeTypesModule | null; +} +export type ScopeTypesModuleEdgeSelect = { + cursor?: boolean; + node?: { + select: ScopeTypesModuleSelect; + }; +}; /** A `SecureTableProvision` edge in the connection. */ export interface SecureTableProvisionEdge { cursor?: string | null; @@ -23627,6 +25387,18 @@ export type UserSettingsModuleEdgeSelect = { select: UserSettingsModuleSelect; }; }; +/** A `UserSettingsSecurityModule` edge in the connection. */ +export interface UserSettingsSecurityModuleEdge { + cursor?: string | null; + /** The `UserSettingsSecurityModule` at the end of the edge. */ + node?: UserSettingsSecurityModule | null; +} +export type UserSettingsSecurityModuleEdgeSelect = { + cursor?: boolean; + node?: { + select: UserSettingsSecurityModuleSelect; + }; +}; /** A `UserStateModule` edge in the connection. */ export interface UserStateModuleEdge { cursor?: string | null; diff --git a/sdk/constructive-sdk/src/modules/orm/models/capabilitiesModule.ts b/sdk/constructive-sdk/src/modules/orm/models/capabilitiesModule.ts new file mode 100644 index 0000000000..60aa4dabf4 --- /dev/null +++ b/sdk/constructive-sdk/src/modules/orm/models/capabilitiesModule.ts @@ -0,0 +1,245 @@ +/** + * CapabilitiesModule 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 { + CapabilitiesModule, + CapabilitiesModuleWithRelations, + CapabilitiesModuleSelect, + CapabilitiesModuleFilter, + CapabilitiesModuleOrderBy, + CreateCapabilitiesModuleInput, + UpdateCapabilitiesModuleInput, + CapabilitiesModulePatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class CapabilitiesModuleModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + capabilitiesModules: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'CapabilitiesModule', + 'capabilitiesModules', + 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, + }, + 'CapabilitiesModuleFilter', + 'CapabilitiesModuleOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'CapabilitiesModule', + fieldName: 'capabilitiesModules', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + capabilitiesModule: InferSelectResult | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'CapabilitiesModule', + 'capabilitiesModules', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'CapabilitiesModuleFilter', + 'CapabilitiesModuleOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'CapabilitiesModule', + fieldName: 'capabilitiesModule', + document, + variables, + transform: (data: { + capabilitiesModules?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + capabilitiesModule: data.capabilitiesModules?.nodes?.[0] ?? null, + }), + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + capabilitiesModule: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'CapabilitiesModule', + 'capabilitiesModules', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'CapabilitiesModuleFilter', + 'CapabilitiesModuleOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'CapabilitiesModule', + fieldName: 'capabilitiesModule', + document, + variables, + transform: (data: { + capabilitiesModules?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + capabilitiesModule: data.capabilitiesModules?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createCapabilitiesModule: { + capabilitiesModule: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'CapabilitiesModule', + 'createCapabilitiesModule', + 'capabilitiesModule', + args.select, + args.data, + 'CreateCapabilitiesModuleInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'CapabilitiesModule', + fieldName: 'createCapabilitiesModule', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + CapabilitiesModulePatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateCapabilitiesModule: { + capabilitiesModule: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'CapabilitiesModule', + 'updateCapabilitiesModule', + 'capabilitiesModule', + args.select, + args.where.id, + args.data, + 'UpdateCapabilitiesModuleInput', + 'id', + 'capabilitiesModulePatch', + connectionFieldsMap, + undefined + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'CapabilitiesModule', + fieldName: 'updateCapabilitiesModule', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteCapabilitiesModule: { + capabilitiesModule: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'CapabilitiesModule', + 'deleteCapabilitiesModule', + 'capabilitiesModule', + { + id: args.where.id, + }, + 'DeleteCapabilitiesModuleInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'CapabilitiesModule', + fieldName: 'deleteCapabilitiesModule', + document, + variables, + }); + } +} diff --git a/sdk/constructive-sdk/src/modules/orm/models/contentPresetModule.ts b/sdk/constructive-sdk/src/modules/orm/models/contentPresetModule.ts new file mode 100644 index 0000000000..b756c7a1b2 --- /dev/null +++ b/sdk/constructive-sdk/src/modules/orm/models/contentPresetModule.ts @@ -0,0 +1,245 @@ +/** + * ContentPresetModule 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 { + ContentPresetModule, + ContentPresetModuleWithRelations, + ContentPresetModuleSelect, + ContentPresetModuleFilter, + ContentPresetModuleOrderBy, + CreateContentPresetModuleInput, + UpdateContentPresetModuleInput, + ContentPresetModulePatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class ContentPresetModuleModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + contentPresetModules: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'ContentPresetModule', + 'contentPresetModules', + 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, + }, + 'ContentPresetModuleFilter', + 'ContentPresetModuleOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'ContentPresetModule', + fieldName: 'contentPresetModules', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + contentPresetModule: InferSelectResult | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'ContentPresetModule', + 'contentPresetModules', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'ContentPresetModuleFilter', + 'ContentPresetModuleOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'ContentPresetModule', + fieldName: 'contentPresetModule', + document, + variables, + transform: (data: { + contentPresetModules?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + contentPresetModule: data.contentPresetModules?.nodes?.[0] ?? null, + }), + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + contentPresetModule: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'ContentPresetModule', + 'contentPresetModules', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'ContentPresetModuleFilter', + 'ContentPresetModuleOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'ContentPresetModule', + fieldName: 'contentPresetModule', + document, + variables, + transform: (data: { + contentPresetModules?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + contentPresetModule: data.contentPresetModules?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createContentPresetModule: { + contentPresetModule: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'ContentPresetModule', + 'createContentPresetModule', + 'contentPresetModule', + args.select, + args.data, + 'CreateContentPresetModuleInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'ContentPresetModule', + fieldName: 'createContentPresetModule', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + ContentPresetModulePatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateContentPresetModule: { + contentPresetModule: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'ContentPresetModule', + 'updateContentPresetModule', + 'contentPresetModule', + args.select, + args.where.id, + args.data, + 'UpdateContentPresetModuleInput', + 'id', + 'contentPresetModulePatch', + connectionFieldsMap, + undefined + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'ContentPresetModule', + fieldName: 'updateContentPresetModule', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteContentPresetModule: { + contentPresetModule: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'ContentPresetModule', + 'deleteContentPresetModule', + 'contentPresetModule', + { + id: args.where.id, + }, + 'DeleteContentPresetModuleInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'ContentPresetModule', + fieldName: 'deleteContentPresetModule', + document, + variables, + }); + } +} diff --git a/sdk/constructive-sdk/src/modules/orm/models/dataCapabilitiesField.ts b/sdk/constructive-sdk/src/modules/orm/models/dataCapabilitiesField.ts new file mode 100644 index 0000000000..f2d9ae971b --- /dev/null +++ b/sdk/constructive-sdk/src/modules/orm/models/dataCapabilitiesField.ts @@ -0,0 +1,247 @@ +/** + * DataCapabilitiesField 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 { + DataCapabilitiesField, + DataCapabilitiesFieldWithRelations, + DataCapabilitiesFieldSelect, + DataCapabilitiesFieldFilter, + DataCapabilitiesFieldOrderBy, + CreateDataCapabilitiesFieldInput, + UpdateDataCapabilitiesFieldInput, + DataCapabilitiesFieldPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class DataCapabilitiesFieldModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + dataCapabilitiesFields: ConnectionResult< + InferSelectResult + >; + }> { + const { document, variables } = buildFindManyDocument( + 'DataCapabilitiesField', + 'dataCapabilitiesFields', + 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, + }, + 'DataCapabilitiesFieldFilter', + 'DataCapabilitiesFieldOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'DataCapabilitiesField', + fieldName: 'dataCapabilitiesFields', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + dataCapabilitiesField: InferSelectResult | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'DataCapabilitiesField', + 'dataCapabilitiesFields', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'DataCapabilitiesFieldFilter', + 'DataCapabilitiesFieldOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'DataCapabilitiesField', + fieldName: 'dataCapabilitiesField', + document, + variables, + transform: (data: { + dataCapabilitiesFields?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + dataCapabilitiesField: data.dataCapabilitiesFields?.nodes?.[0] ?? null, + }), + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + dataCapabilitiesField: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'DataCapabilitiesField', + 'dataCapabilitiesFields', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'DataCapabilitiesFieldFilter', + 'DataCapabilitiesFieldOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'DataCapabilitiesField', + fieldName: 'dataCapabilitiesField', + document, + variables, + transform: (data: { + dataCapabilitiesFields?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + dataCapabilitiesField: data.dataCapabilitiesFields?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createDataCapabilitiesField: { + dataCapabilitiesField: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'DataCapabilitiesField', + 'createDataCapabilitiesField', + 'dataCapabilitiesField', + args.select, + args.data, + 'CreateDataCapabilitiesFieldInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'DataCapabilitiesField', + fieldName: 'createDataCapabilitiesField', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + DataCapabilitiesFieldPatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateDataCapabilitiesField: { + dataCapabilitiesField: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'DataCapabilitiesField', + 'updateDataCapabilitiesField', + 'dataCapabilitiesField', + args.select, + args.where.id, + args.data, + 'UpdateDataCapabilitiesFieldInput', + 'id', + 'dataCapabilitiesFieldPatch', + connectionFieldsMap, + undefined + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'DataCapabilitiesField', + fieldName: 'updateDataCapabilitiesField', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteDataCapabilitiesField: { + dataCapabilitiesField: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'DataCapabilitiesField', + 'deleteDataCapabilitiesField', + 'dataCapabilitiesField', + { + id: args.where.id, + }, + 'DeleteDataCapabilitiesFieldInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'DataCapabilitiesField', + fieldName: 'deleteDataCapabilitiesField', + document, + variables, + }); + } +} diff --git a/sdk/constructive-sdk/src/modules/orm/models/permissionsModule.ts b/sdk/constructive-sdk/src/modules/orm/models/emailSenderModule.ts similarity index 51% rename from sdk/constructive-sdk/src/modules/orm/models/permissionsModule.ts rename to sdk/constructive-sdk/src/modules/orm/models/emailSenderModule.ts index 2a330457b5..3f5f0f6385 100644 --- a/sdk/constructive-sdk/src/modules/orm/models/permissionsModule.ts +++ b/sdk/constructive-sdk/src/modules/orm/models/emailSenderModule.ts @@ -1,5 +1,5 @@ /** - * PermissionsModule model for ORM client + * EmailSenderModule 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 { - PermissionsModule, - PermissionsModuleWithRelations, - PermissionsModuleSelect, - PermissionsModuleFilter, - PermissionsModuleOrderBy, - CreatePermissionsModuleInput, - UpdatePermissionsModuleInput, - PermissionsModulePatch, + EmailSenderModule, + EmailSenderModuleWithRelations, + EmailSenderModuleSelect, + EmailSenderModuleFilter, + EmailSenderModuleOrderBy, + CreateEmailSenderModuleInput, + UpdateEmailSenderModuleInput, + EmailSenderModulePatch, } from '../input-types'; import { connectionFieldsMap } from '../input-types'; -export class PermissionsModuleModel { +export class EmailSenderModuleModel { constructor(private client: OrmClient) {} - findMany( - args: FindManyArgs & { + findMany( + args: FindManyArgs & { select: S; - } & StrictSelect + } & StrictSelect ): QueryBuilder<{ - permissionsModules: ConnectionResult>; + emailSenderModules: ConnectionResult>; }> { const { document, variables } = buildFindManyDocument( - 'PermissionsModule', - 'permissionsModules', + 'EmailSenderModule', + 'emailSenderModules', args.select, { where: args?.where, @@ -56,65 +56,65 @@ export class PermissionsModuleModel { before: args?.before, offset: args?.offset, }, - 'PermissionsModuleFilter', - 'PermissionsModuleOrderBy', + 'EmailSenderModuleFilter', + 'EmailSenderModuleOrderBy', connectionFieldsMap ); return new QueryBuilder({ client: this.client, operation: 'query', - operationName: 'PermissionsModule', - fieldName: 'permissionsModules', + operationName: 'EmailSenderModule', + fieldName: 'emailSenderModules', document, variables, }); } - findFirst( - args: FindFirstArgs & { + findFirst( + args: FindFirstArgs & { select: S; - } & StrictSelect + } & StrictSelect ): QueryBuilder<{ - permissionsModule: InferSelectResult | null; + emailSenderModule: InferSelectResult | null; }> { const { document, variables } = buildFindFirstDocument( - 'PermissionsModule', - 'permissionsModules', + 'EmailSenderModule', + 'emailSenderModules', args.select, { where: args?.where, orderBy: args?.orderBy as string[] | undefined, }, - 'PermissionsModuleFilter', - 'PermissionsModuleOrderBy', + 'EmailSenderModuleFilter', + 'EmailSenderModuleOrderBy', connectionFieldsMap ); return new QueryBuilder({ client: this.client, operation: 'query', - operationName: 'PermissionsModule', - fieldName: 'permissionsModule', + operationName: 'EmailSenderModule', + fieldName: 'emailSenderModule', document, variables, transform: (data: { - permissionsModules?: { - nodes?: InferSelectResult[]; + emailSenderModules?: { + nodes?: InferSelectResult[]; }; }) => ({ - permissionsModule: data.permissionsModules?.nodes?.[0] ?? null, + emailSenderModule: data.emailSenderModules?.nodes?.[0] ?? null, }), }); } - findOne( + findOne( args: { id: string; select: S; - } & StrictSelect + } & StrictSelect ): QueryBuilder<{ - permissionsModule: InferSelectResult | null; + emailSenderModule: InferSelectResult | null; }> { const { document, variables } = buildFindManyDocument( - 'PermissionsModule', - 'permissionsModules', + 'EmailSenderModule', + 'emailSenderModules', args.select, { where: { @@ -124,91 +124,91 @@ export class PermissionsModuleModel { }, first: 1, }, - 'PermissionsModuleFilter', - 'PermissionsModuleOrderBy', + 'EmailSenderModuleFilter', + 'EmailSenderModuleOrderBy', connectionFieldsMap ); return new QueryBuilder({ client: this.client, operation: 'query', - operationName: 'PermissionsModule', - fieldName: 'permissionsModule', + operationName: 'EmailSenderModule', + fieldName: 'emailSenderModule', document, variables, transform: (data: { - permissionsModules?: { - nodes?: InferSelectResult[]; + emailSenderModules?: { + nodes?: InferSelectResult[]; }; }) => ({ - permissionsModule: data.permissionsModules?.nodes?.[0] ?? null, + emailSenderModule: data.emailSenderModules?.nodes?.[0] ?? null, }), }); } - create( - args: CreateArgs & { + create( + args: CreateArgs & { select: S; - } & StrictSelect + } & StrictSelect ): QueryBuilder<{ - createPermissionsModule: { - permissionsModule: InferSelectResult; + createEmailSenderModule: { + emailSenderModule: InferSelectResult; }; }> { const { document, variables } = buildCreateDocument( - 'PermissionsModule', - 'createPermissionsModule', - 'permissionsModule', + 'EmailSenderModule', + 'createEmailSenderModule', + 'emailSenderModule', args.select, args.data, - 'CreatePermissionsModuleInput', + 'CreateEmailSenderModuleInput', connectionFieldsMap ); return new QueryBuilder({ client: this.client, operation: 'mutation', - operationName: 'PermissionsModule', - fieldName: 'createPermissionsModule', + operationName: 'EmailSenderModule', + fieldName: 'createEmailSenderModule', document, variables, }); } - update( + update( args: UpdateArgs< S, { id: string; }, - PermissionsModulePatch + EmailSenderModulePatch > & { select: S; - } & StrictSelect + } & StrictSelect ): QueryBuilder<{ - updatePermissionsModule: { - permissionsModule: InferSelectResult; + updateEmailSenderModule: { + emailSenderModule: InferSelectResult; }; }> { const { document, variables } = buildUpdateByPkDocument( - 'PermissionsModule', - 'updatePermissionsModule', - 'permissionsModule', + 'EmailSenderModule', + 'updateEmailSenderModule', + 'emailSenderModule', args.select, args.where.id, args.data, - 'UpdatePermissionsModuleInput', + 'UpdateEmailSenderModuleInput', 'id', - 'permissionsModulePatch', + 'emailSenderModulePatch', connectionFieldsMap, undefined ); return new QueryBuilder({ client: this.client, operation: 'mutation', - operationName: 'PermissionsModule', - fieldName: 'updatePermissionsModule', + operationName: 'EmailSenderModule', + fieldName: 'updateEmailSenderModule', document, variables, }); } - delete( + delete( args: DeleteArgs< { id: string; @@ -216,28 +216,28 @@ export class PermissionsModuleModel { S > & { select: S; - } & StrictSelect + } & StrictSelect ): QueryBuilder<{ - deletePermissionsModule: { - permissionsModule: InferSelectResult; + deleteEmailSenderModule: { + emailSenderModule: InferSelectResult; }; }> { const { document, variables } = buildDeleteByPkDocument( - 'PermissionsModule', - 'deletePermissionsModule', - 'permissionsModule', + 'EmailSenderModule', + 'deleteEmailSenderModule', + 'emailSenderModule', { id: args.where.id, }, - 'DeletePermissionsModuleInput', + 'DeleteEmailSenderModuleInput', args.select, connectionFieldsMap ); return new QueryBuilder({ client: this.client, operation: 'mutation', - operationName: 'PermissionsModule', - fieldName: 'deletePermissionsModule', + operationName: 'EmailSenderModule', + fieldName: 'deleteEmailSenderModule', document, variables, }); diff --git a/sdk/constructive-sdk/src/modules/orm/models/fileRefField.ts b/sdk/constructive-sdk/src/modules/orm/models/fileRefField.ts new file mode 100644 index 0000000000..130f0d6858 --- /dev/null +++ b/sdk/constructive-sdk/src/modules/orm/models/fileRefField.ts @@ -0,0 +1,245 @@ +/** + * FileRefField 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 { + FileRefField, + FileRefFieldWithRelations, + FileRefFieldSelect, + FileRefFieldFilter, + FileRefFieldOrderBy, + CreateFileRefFieldInput, + UpdateFileRefFieldInput, + FileRefFieldPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class FileRefFieldModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + fileRefFields: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'FileRefField', + 'fileRefFields', + 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, + }, + 'FileRefFieldFilter', + 'FileRefFieldOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'FileRefField', + fieldName: 'fileRefFields', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + fileRefField: InferSelectResult | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'FileRefField', + 'fileRefFields', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'FileRefFieldFilter', + 'FileRefFieldOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'FileRefField', + fieldName: 'fileRefField', + document, + variables, + transform: (data: { + fileRefFields?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + fileRefField: data.fileRefFields?.nodes?.[0] ?? null, + }), + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + fileRefField: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'FileRefField', + 'fileRefFields', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'FileRefFieldFilter', + 'FileRefFieldOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'FileRefField', + fieldName: 'fileRefField', + document, + variables, + transform: (data: { + fileRefFields?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + fileRefField: data.fileRefFields?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createFileRefField: { + fileRefField: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'FileRefField', + 'createFileRefField', + 'fileRefField', + args.select, + args.data, + 'CreateFileRefFieldInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'FileRefField', + fieldName: 'createFileRefField', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + FileRefFieldPatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateFileRefField: { + fileRefField: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'FileRefField', + 'updateFileRefField', + 'fileRefField', + args.select, + args.where.id, + args.data, + 'UpdateFileRefFieldInput', + 'id', + 'fileRefFieldPatch', + connectionFieldsMap, + undefined + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'FileRefField', + fieldName: 'updateFileRefField', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteFileRefField: { + fileRefField: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'FileRefField', + 'deleteFileRefField', + 'fileRefField', + { + id: args.where.id, + }, + 'DeleteFileRefFieldInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'FileRefField', + fieldName: 'deleteFileRefField', + document, + variables, + }); + } +} diff --git a/sdk/constructive-sdk/src/modules/orm/models/index.ts b/sdk/constructive-sdk/src/modules/orm/models/index.ts index 55e18104c1..beb1e2e872 100644 --- a/sdk/constructive-sdk/src/modules/orm/models/index.ts +++ b/sdk/constructive-sdk/src/modules/orm/models/index.ts @@ -11,12 +11,15 @@ export { BillingProviderModuleModel } from './billingProviderModule'; export { BlueprintModel } from './blueprint'; export { BlueprintConstructionModel } from './blueprintConstruction'; export { BlueprintTemplateModel } from './blueprintTemplate'; +export { CapabilitiesModuleModel } from './capabilitiesModule'; export { CatalogModuleModel } from './catalogModule'; export { ComputeLogModuleModel } from './computeLogModule'; export { ConfigSecretsUserModuleModel } from './configSecretsUserModule'; export { ConnectedAccountsModuleModel } from './connectedAccountsModule'; +export { ContentPresetModuleModel } from './contentPresetModule'; export { CryptoAddressesModuleModel } from './cryptoAddressesModule'; export { CryptoAuthModuleModel } from './cryptoAuthModule'; +export { DataCapabilitiesFieldModel } from './dataCapabilitiesField'; export { DatabaseProvisionModuleModel } from './databaseProvisionModule'; export { DatabaseSettingsModuleModel } from './databaseSettingsModule'; export { DbPoolConfigModel } from './dbPoolConfig'; @@ -27,9 +30,11 @@ export { DefaultIdsModuleModel } from './defaultIdsModule'; export { DenormalizedTableFieldModel } from './denormalizedTableField'; export { DevicesModuleModel } from './devicesModule'; export { DomainModuleModel } from './domainModule'; +export { EmailSenderModuleModel } from './emailSenderModule'; export { EmailsModuleModel } from './emailsModule'; export { EntityTypeProvisionModel } from './entityTypeProvision'; export { EventsModuleModel } from './eventsModule'; +export { FileRefFieldModel } from './fileRefField'; export { FunctionDeploymentModuleModel } from './functionDeploymentModule'; export { FunctionInvocationModuleModel } from './functionInvocationModule'; export { FunctionModuleModel } from './functionModule'; @@ -51,8 +56,8 @@ export { MembershipsModuleModel } from './membershipsModule'; export { MerkleStoreModuleModel } from './merkleStoreModule'; export { NamespaceModuleModel } from './namespaceModule'; export { NotificationsModuleModel } from './notificationsModule'; +export { OauthRequestsModuleModel } from './oauthRequestsModule'; export { PagesModuleModel } from './pagesModule'; -export { PermissionsModuleModel } from './permissionsModule'; export { PhoneNumbersModuleModel } from './phoneNumbersModule'; export { PlansModuleModel } from './plansModule'; export { PrincipalAuthModuleModel } from './principalAuthModule'; @@ -64,6 +69,7 @@ export { RelationProvisionModel } from './relationProvision'; export { ResourceModuleModel } from './resourceModule'; export { RlsModuleModel } from './rlsModule'; export { RouteModuleModel } from './routeModule'; +export { ScopeTypesModuleModel } from './scopeTypesModule'; export { SecureTableProvisionModel } from './secureTableProvision'; export { SessionSecretsModuleModel } from './sessionSecretsModule'; export { SessionsModuleModel } from './sessionsModule'; @@ -74,6 +80,7 @@ export { TransferLogModuleModel } from './transferLogModule'; export { UserAuthModuleModel } from './userAuthModule'; export { UserCredentialsModuleModel } from './userCredentialsModule'; export { UserSettingsModuleModel } from './userSettingsModule'; +export { UserSettingsSecurityModuleModel } from './userSettingsSecurityModule'; export { UserStateModuleModel } from './userStateModule'; export { UsersModuleModel } from './usersModule'; export { WebauthnAuthModuleModel } from './webauthnAuthModule'; diff --git a/sdk/constructive-sdk/src/modules/orm/models/oauthRequestsModule.ts b/sdk/constructive-sdk/src/modules/orm/models/oauthRequestsModule.ts new file mode 100644 index 0000000000..a874125a9e --- /dev/null +++ b/sdk/constructive-sdk/src/modules/orm/models/oauthRequestsModule.ts @@ -0,0 +1,245 @@ +/** + * OauthRequestsModule 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 { + OauthRequestsModule, + OauthRequestsModuleWithRelations, + OauthRequestsModuleSelect, + OauthRequestsModuleFilter, + OauthRequestsModuleOrderBy, + CreateOauthRequestsModuleInput, + UpdateOauthRequestsModuleInput, + OauthRequestsModulePatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class OauthRequestsModuleModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + oauthRequestsModules: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'OauthRequestsModule', + 'oauthRequestsModules', + 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, + }, + 'OauthRequestsModuleFilter', + 'OauthRequestsModuleOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'OauthRequestsModule', + fieldName: 'oauthRequestsModules', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + oauthRequestsModule: InferSelectResult | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'OauthRequestsModule', + 'oauthRequestsModules', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'OauthRequestsModuleFilter', + 'OauthRequestsModuleOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'OauthRequestsModule', + fieldName: 'oauthRequestsModule', + document, + variables, + transform: (data: { + oauthRequestsModules?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + oauthRequestsModule: data.oauthRequestsModules?.nodes?.[0] ?? null, + }), + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + oauthRequestsModule: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'OauthRequestsModule', + 'oauthRequestsModules', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'OauthRequestsModuleFilter', + 'OauthRequestsModuleOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'OauthRequestsModule', + fieldName: 'oauthRequestsModule', + document, + variables, + transform: (data: { + oauthRequestsModules?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + oauthRequestsModule: data.oauthRequestsModules?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createOauthRequestsModule: { + oauthRequestsModule: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'OauthRequestsModule', + 'createOauthRequestsModule', + 'oauthRequestsModule', + args.select, + args.data, + 'CreateOauthRequestsModuleInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'OauthRequestsModule', + fieldName: 'createOauthRequestsModule', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + OauthRequestsModulePatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateOauthRequestsModule: { + oauthRequestsModule: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'OauthRequestsModule', + 'updateOauthRequestsModule', + 'oauthRequestsModule', + args.select, + args.where.id, + args.data, + 'UpdateOauthRequestsModuleInput', + 'id', + 'oauthRequestsModulePatch', + connectionFieldsMap, + undefined + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'OauthRequestsModule', + fieldName: 'updateOauthRequestsModule', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteOauthRequestsModule: { + oauthRequestsModule: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'OauthRequestsModule', + 'deleteOauthRequestsModule', + 'oauthRequestsModule', + { + id: args.where.id, + }, + 'DeleteOauthRequestsModuleInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'OauthRequestsModule', + fieldName: 'deleteOauthRequestsModule', + document, + variables, + }); + } +} diff --git a/sdk/constructive-sdk/src/modules/orm/models/scopeTypesModule.ts b/sdk/constructive-sdk/src/modules/orm/models/scopeTypesModule.ts new file mode 100644 index 0000000000..1cbd281d05 --- /dev/null +++ b/sdk/constructive-sdk/src/modules/orm/models/scopeTypesModule.ts @@ -0,0 +1,245 @@ +/** + * ScopeTypesModule 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 { + ScopeTypesModule, + ScopeTypesModuleWithRelations, + ScopeTypesModuleSelect, + ScopeTypesModuleFilter, + ScopeTypesModuleOrderBy, + CreateScopeTypesModuleInput, + UpdateScopeTypesModuleInput, + ScopeTypesModulePatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class ScopeTypesModuleModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + scopeTypesModules: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'ScopeTypesModule', + 'scopeTypesModules', + 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, + }, + 'ScopeTypesModuleFilter', + 'ScopeTypesModuleOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'ScopeTypesModule', + fieldName: 'scopeTypesModules', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + scopeTypesModule: InferSelectResult | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'ScopeTypesModule', + 'scopeTypesModules', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'ScopeTypesModuleFilter', + 'ScopeTypesModuleOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'ScopeTypesModule', + fieldName: 'scopeTypesModule', + document, + variables, + transform: (data: { + scopeTypesModules?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + scopeTypesModule: data.scopeTypesModules?.nodes?.[0] ?? null, + }), + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + scopeTypesModule: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'ScopeTypesModule', + 'scopeTypesModules', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'ScopeTypesModuleFilter', + 'ScopeTypesModuleOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'ScopeTypesModule', + fieldName: 'scopeTypesModule', + document, + variables, + transform: (data: { + scopeTypesModules?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + scopeTypesModule: data.scopeTypesModules?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createScopeTypesModule: { + scopeTypesModule: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'ScopeTypesModule', + 'createScopeTypesModule', + 'scopeTypesModule', + args.select, + args.data, + 'CreateScopeTypesModuleInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'ScopeTypesModule', + fieldName: 'createScopeTypesModule', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + ScopeTypesModulePatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateScopeTypesModule: { + scopeTypesModule: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'ScopeTypesModule', + 'updateScopeTypesModule', + 'scopeTypesModule', + args.select, + args.where.id, + args.data, + 'UpdateScopeTypesModuleInput', + 'id', + 'scopeTypesModulePatch', + connectionFieldsMap, + undefined + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'ScopeTypesModule', + fieldName: 'updateScopeTypesModule', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteScopeTypesModule: { + scopeTypesModule: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'ScopeTypesModule', + 'deleteScopeTypesModule', + 'scopeTypesModule', + { + id: args.where.id, + }, + 'DeleteScopeTypesModuleInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'ScopeTypesModule', + fieldName: 'deleteScopeTypesModule', + document, + variables, + }); + } +} diff --git a/sdk/constructive-sdk/src/modules/orm/models/userSettingsSecurityModule.ts b/sdk/constructive-sdk/src/modules/orm/models/userSettingsSecurityModule.ts new file mode 100644 index 0000000000..13b7c87010 --- /dev/null +++ b/sdk/constructive-sdk/src/modules/orm/models/userSettingsSecurityModule.ts @@ -0,0 +1,253 @@ +/** + * UserSettingsSecurityModule 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 { + UserSettingsSecurityModule, + UserSettingsSecurityModuleWithRelations, + UserSettingsSecurityModuleSelect, + UserSettingsSecurityModuleFilter, + UserSettingsSecurityModuleOrderBy, + CreateUserSettingsSecurityModuleInput, + UpdateUserSettingsSecurityModuleInput, + UserSettingsSecurityModulePatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class UserSettingsSecurityModuleModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + userSettingsSecurityModules: ConnectionResult< + InferSelectResult + >; + }> { + const { document, variables } = buildFindManyDocument( + 'UserSettingsSecurityModule', + 'userSettingsSecurityModules', + 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, + }, + 'UserSettingsSecurityModuleFilter', + 'UserSettingsSecurityModuleOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'UserSettingsSecurityModule', + fieldName: 'userSettingsSecurityModules', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + userSettingsSecurityModule: InferSelectResult< + UserSettingsSecurityModuleWithRelations, + S + > | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'UserSettingsSecurityModule', + 'userSettingsSecurityModules', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'UserSettingsSecurityModuleFilter', + 'UserSettingsSecurityModuleOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'UserSettingsSecurityModule', + fieldName: 'userSettingsSecurityModule', + document, + variables, + transform: (data: { + userSettingsSecurityModules?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + userSettingsSecurityModule: data.userSettingsSecurityModules?.nodes?.[0] ?? null, + }), + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + userSettingsSecurityModule: InferSelectResult< + UserSettingsSecurityModuleWithRelations, + S + > | null; + }> { + const { document, variables } = buildFindManyDocument( + 'UserSettingsSecurityModule', + 'userSettingsSecurityModules', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'UserSettingsSecurityModuleFilter', + 'UserSettingsSecurityModuleOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'UserSettingsSecurityModule', + fieldName: 'userSettingsSecurityModule', + document, + variables, + transform: (data: { + userSettingsSecurityModules?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + userSettingsSecurityModule: data.userSettingsSecurityModules?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createUserSettingsSecurityModule: { + userSettingsSecurityModule: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'UserSettingsSecurityModule', + 'createUserSettingsSecurityModule', + 'userSettingsSecurityModule', + args.select, + args.data, + 'CreateUserSettingsSecurityModuleInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'UserSettingsSecurityModule', + fieldName: 'createUserSettingsSecurityModule', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + UserSettingsSecurityModulePatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateUserSettingsSecurityModule: { + userSettingsSecurityModule: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'UserSettingsSecurityModule', + 'updateUserSettingsSecurityModule', + 'userSettingsSecurityModule', + args.select, + args.where.id, + args.data, + 'UpdateUserSettingsSecurityModuleInput', + 'id', + 'userSettingsSecurityModulePatch', + connectionFieldsMap, + undefined + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'UserSettingsSecurityModule', + fieldName: 'updateUserSettingsSecurityModule', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteUserSettingsSecurityModule: { + userSettingsSecurityModule: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'UserSettingsSecurityModule', + 'deleteUserSettingsSecurityModule', + 'userSettingsSecurityModule', + { + id: args.where.id, + }, + 'DeleteUserSettingsSecurityModuleInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'UserSettingsSecurityModule', + fieldName: 'deleteUserSettingsSecurityModule', + document, + variables, + }); + } +} diff --git a/sdk/constructive-sdk/src/modules/orm/mutation/index.ts b/sdk/constructive-sdk/src/modules/orm/mutation/index.ts index 60041efadb..5450eca294 100644 --- a/sdk/constructive-sdk/src/modules/orm/mutation/index.ts +++ b/sdk/constructive-sdk/src/modules/orm/mutation/index.ts @@ -10,33 +10,12 @@ import type { ConstructBlueprintInput, CopyTemplateToBlueprintInput, ProvisionBucketInput, - ProvisionCheckConstraintInput, - ProvisionFullTextSearchInput, - ProvisionIndexInput, - ProvisionRelationInput, - ProvisionSpatialRelationInput, - ProvisionTableInput, - ProvisionUniqueConstraintInput, ConstructBlueprintPayload, CopyTemplateToBlueprintPayload, ProvisionBucketPayload, - ProvisionCheckConstraintPayload, - ProvisionFullTextSearchPayload, - ProvisionIndexPayload, - ProvisionRelationPayload, - ProvisionSpatialRelationPayload, - ProvisionTablePayload, - ProvisionUniqueConstraintPayload, ConstructBlueprintPayloadSelect, CopyTemplateToBlueprintPayloadSelect, ProvisionBucketPayloadSelect, - ProvisionCheckConstraintPayloadSelect, - ProvisionFullTextSearchPayloadSelect, - ProvisionIndexPayloadSelect, - ProvisionRelationPayloadSelect, - ProvisionSpatialRelationPayloadSelect, - ProvisionTablePayloadSelect, - ProvisionUniqueConstraintPayloadSelect, } from '../input-types'; import { connectionFieldsMap } from '../input-types'; /** @@ -63,55 +42,6 @@ and lifecycle settings. export interface ProvisionBucketVariables { input: ProvisionBucketInput; } -/** - * Variables for provisionCheckConstraint - * 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. - */ -export interface ProvisionCheckConstraintVariables { - input: ProvisionCheckConstraintInput; -} -/** - * Variables for provisionFullTextSearch - * 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. - */ -export interface ProvisionFullTextSearchVariables { - input: ProvisionFullTextSearchInput; -} -/** - * Variables for provisionIndex - * 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. - */ -export interface ProvisionIndexVariables { - input: ProvisionIndexInput; -} -/** - * Variables for provisionRelation - * 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). - */ -export interface ProvisionRelationVariables { - input: ProvisionRelationInput; -} -/** - * Variables for provisionSpatialRelation - * 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. - */ -export interface ProvisionSpatialRelationVariables { - input: ProvisionSpatialRelationInput; -} -/** - * 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). - */ -export interface ProvisionTableVariables { - input: ProvisionTableInput; -} -/** - * Variables for provisionUniqueConstraint - * 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. - */ -export interface ProvisionUniqueConstraintVariables { - input: ProvisionUniqueConstraintInput; -} export function createMutationOperations(client: OrmClient) { return { constructBlueprint: ( @@ -201,208 +131,5 @@ export function createMutationOperations(client: OrmClient) { 'ProvisionBucketPayload' ), }), - provisionCheckConstraint: ( - args: ProvisionCheckConstraintVariables, - options: { - select: S; - } & StrictSelect - ) => - new QueryBuilder<{ - provisionCheckConstraint: InferSelectResult | null; - }>({ - client, - operation: 'mutation', - operationName: 'ProvisionCheckConstraint', - fieldName: 'provisionCheckConstraint', - ...buildCustomDocument( - 'mutation', - 'ProvisionCheckConstraint', - 'provisionCheckConstraint', - options.select, - args, - [ - { - name: 'input', - type: 'ProvisionCheckConstraintInput!', - }, - ], - connectionFieldsMap, - 'ProvisionCheckConstraintPayload' - ), - }), - provisionFullTextSearch: ( - args: ProvisionFullTextSearchVariables, - options: { - select: S; - } & StrictSelect - ) => - new QueryBuilder<{ - provisionFullTextSearch: InferSelectResult | null; - }>({ - client, - operation: 'mutation', - operationName: 'ProvisionFullTextSearch', - fieldName: 'provisionFullTextSearch', - ...buildCustomDocument( - 'mutation', - 'ProvisionFullTextSearch', - 'provisionFullTextSearch', - options.select, - args, - [ - { - name: 'input', - type: 'ProvisionFullTextSearchInput!', - }, - ], - connectionFieldsMap, - 'ProvisionFullTextSearchPayload' - ), - }), - provisionIndex: ( - args: ProvisionIndexVariables, - options: { - select: S; - } & StrictSelect - ) => - new QueryBuilder<{ - provisionIndex: InferSelectResult | null; - }>({ - client, - operation: 'mutation', - operationName: 'ProvisionIndex', - fieldName: 'provisionIndex', - ...buildCustomDocument( - 'mutation', - 'ProvisionIndex', - 'provisionIndex', - options.select, - args, - [ - { - name: 'input', - type: 'ProvisionIndexInput!', - }, - ], - connectionFieldsMap, - 'ProvisionIndexPayload' - ), - }), - provisionRelation: ( - args: ProvisionRelationVariables, - options: { - select: S; - } & StrictSelect - ) => - new QueryBuilder<{ - provisionRelation: InferSelectResult | null; - }>({ - client, - operation: 'mutation', - operationName: 'ProvisionRelation', - fieldName: 'provisionRelation', - ...buildCustomDocument( - 'mutation', - 'ProvisionRelation', - 'provisionRelation', - options.select, - args, - [ - { - name: 'input', - type: 'ProvisionRelationInput!', - }, - ], - connectionFieldsMap, - 'ProvisionRelationPayload' - ), - }), - provisionSpatialRelation: ( - args: ProvisionSpatialRelationVariables, - options: { - select: S; - } & StrictSelect - ) => - new QueryBuilder<{ - provisionSpatialRelation: InferSelectResult | null; - }>({ - client, - operation: 'mutation', - operationName: 'ProvisionSpatialRelation', - fieldName: 'provisionSpatialRelation', - ...buildCustomDocument( - 'mutation', - 'ProvisionSpatialRelation', - 'provisionSpatialRelation', - options.select, - args, - [ - { - name: 'input', - type: 'ProvisionSpatialRelationInput!', - }, - ], - connectionFieldsMap, - 'ProvisionSpatialRelationPayload' - ), - }), - provisionTable: ( - args: ProvisionTableVariables, - options: { - select: S; - } & StrictSelect - ) => - new QueryBuilder<{ - provisionTable: InferSelectResult | null; - }>({ - client, - operation: 'mutation', - operationName: 'ProvisionTable', - fieldName: 'provisionTable', - ...buildCustomDocument( - 'mutation', - 'ProvisionTable', - 'provisionTable', - options.select, - args, - [ - { - name: 'input', - type: 'ProvisionTableInput!', - }, - ], - connectionFieldsMap, - 'ProvisionTablePayload' - ), - }), - provisionUniqueConstraint: ( - args: ProvisionUniqueConstraintVariables, - options: { - select: S; - } & StrictSelect - ) => - new QueryBuilder<{ - provisionUniqueConstraint: InferSelectResult | null; - }>({ - client, - operation: 'mutation', - operationName: 'ProvisionUniqueConstraint', - fieldName: 'provisionUniqueConstraint', - ...buildCustomDocument( - 'mutation', - 'ProvisionUniqueConstraint', - 'provisionUniqueConstraint', - options.select, - args, - [ - { - name: 'input', - type: 'ProvisionUniqueConstraintInput!', - }, - ], - connectionFieldsMap, - 'ProvisionUniqueConstraintPayload' - ), - }), }; } diff --git a/sdk/constructive-sdk/src/modules/orm/query/index.ts b/sdk/constructive-sdk/src/modules/orm/query/index.ts deleted file mode 100644 index 70496d57ba..0000000000 --- a/sdk/constructive-sdk/src/modules/orm/query/index.ts +++ /dev/null @@ -1,115 +0,0 @@ -/** - * Custom query operations - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ -import { OrmClient } from '../client'; -import { QueryBuilder, buildCustomDocument } from '../query-builder'; -import type { InferSelectResult, StrictSelect } from '../select-types'; -import { connectionFieldsMap } from '../input-types'; -/** - * Variables for resolveBlueprintField - * 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. - */ -export interface ResolveBlueprintFieldVariables { - databaseId?: string; - fieldName?: string; - tableId?: string; -} -/** - * Variables for resolveBlueprintTable - * 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. - */ -export interface ResolveBlueprintTableVariables { - databaseId?: string; - defaultSchemaId?: string; - schemaName?: string; - tableMap?: unknown; - tableName?: string; -} -export function createQueryOperations(client: OrmClient) { - return { - resolveBlueprintField: ( - args: ResolveBlueprintFieldVariables, - options?: { - select?: Record; - } - ) => - new QueryBuilder<{ - resolveBlueprintField: string | null; - }>({ - client, - operation: 'query', - operationName: 'ResolveBlueprintField', - fieldName: 'resolveBlueprintField', - ...buildCustomDocument( - 'query', - 'ResolveBlueprintField', - 'resolveBlueprintField', - options?.select, - args, - [ - { - name: 'databaseId', - type: 'UUID', - }, - { - name: 'fieldName', - type: 'String', - }, - { - name: 'tableId', - type: 'UUID', - }, - ], - connectionFieldsMap, - undefined - ), - }), - resolveBlueprintTable: ( - args: ResolveBlueprintTableVariables, - options?: { - select?: Record; - } - ) => - new QueryBuilder<{ - resolveBlueprintTable: string | null; - }>({ - client, - operation: 'query', - operationName: 'ResolveBlueprintTable', - fieldName: 'resolveBlueprintTable', - ...buildCustomDocument( - 'query', - 'ResolveBlueprintTable', - 'resolveBlueprintTable', - options?.select, - args, - [ - { - name: 'databaseId', - type: 'UUID', - }, - { - name: 'defaultSchemaId', - type: 'UUID', - }, - { - name: 'schemaName', - type: 'String', - }, - { - name: 'tableMap', - type: 'JSON', - }, - { - name: 'tableName', - type: 'String', - }, - ], - connectionFieldsMap, - undefined - ), - }), - }; -} diff --git a/sdk/constructive-sdk/src/objects/README.md b/sdk/constructive-sdk/src/objects/README.md index 8c4dfb1d48..e75db077a4 100644 --- a/sdk/constructive-sdk/src/objects/README.md +++ b/sdk/constructive-sdk/src/objects/README.md @@ -10,7 +10,7 @@ - **Tables:** 5 - **Custom queries:** 0 -- **Custom mutations:** 4 +- **Custom mutations:** 7 **Generators:** ORM diff --git a/sdk/constructive-sdk/src/objects/orm/README.md b/sdk/constructive-sdk/src/objects/orm/README.md index 2a09348ad0..e112c19ae0 100644 --- a/sdk/constructive-sdk/src/objects/orm/README.md +++ b/sdk/constructive-sdk/src/objects/orm/README.md @@ -228,6 +228,21 @@ insertNodeAtPath const result = await db.mutation.insertNodeAtPath({ input: '' }).execute(); ``` +### `db.mutation.insertNodesAtPaths` + +insertNodesAtPaths + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | InsertNodesAtPathsInput (required) | + +```typescript +const result = await db.mutation.insertNodesAtPaths({ input: '' }).execute(); +``` + ### `db.mutation.provisionBucket` Provision an S3 bucket for a logical bucket in the database. @@ -246,6 +261,21 @@ and lifecycle settings. const result = await db.mutation.provisionBucket({ input: { bucketKey: '', ownerId: '' } }).execute(); ``` +### `db.mutation.setAndCommit` + +setAndCommit + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | SetAndCommitInput (required) | + +```typescript +const result = await db.mutation.setAndCommit({ input: '' }).execute(); +``` + ### `db.mutation.setDataAtPath` setDataAtPath @@ -261,6 +291,21 @@ setDataAtPath const result = await db.mutation.setDataAtPath({ input: { data: '', path: '', root: '', sId: '' } }).execute(); ``` +### `db.mutation.setManyAndCommit` + +setManyAndCommit + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | SetManyAndCommitInput (required) | + +```typescript +const result = await db.mutation.setManyAndCommit({ input: { entries: '', message: '', refname: '', sId: '', storeId: '' } }).execute(); +``` + --- Built by the [Constructive](https://constructive.io) team. diff --git a/sdk/constructive-sdk/src/objects/orm/input-types.ts b/sdk/constructive-sdk/src/objects/orm/input-types.ts index bab07456e0..1ca44bc9d7 100644 --- a/sdk/constructive-sdk/src/objects/orm/input-types.ts +++ b/sdk/constructive-sdk/src/objects/orm/input-types.ts @@ -665,6 +665,15 @@ export interface InsertNodeAtPathInput { root?: string; sId?: string; } +export interface InsertNodesAtPathsInput { + clientMutationId?: string; + datas?: Record[]; + kidsList?: Record; + ktreeList?: Record; + paths?: Record; + root?: string; + sId?: string; +} export interface ProvisionBucketInput { /** The logical bucket key (e.g., "public", "private") */ bucketKey: string; @@ -674,6 +683,17 @@ export interface ProvisionBucketInput { */ ownerId?: string; } +export interface SetAndCommitInput { + clientMutationId?: string; + data?: Record; + kids?: string[]; + ktree?: string[]; + message?: string; + path?: string[]; + refname?: string; + sId?: string; + storeId?: string; +} export interface SetDataAtPathInput { clientMutationId?: string; data?: Record; @@ -681,6 +701,14 @@ export interface SetDataAtPathInput { root?: string; sId?: string; } +export interface SetManyAndCommitInput { + clientMutationId?: string; + entries?: Record; + message?: string; + refname?: string; + sId?: string; + storeId?: string; +} /** An input for mutations affecting `Commit` */ export interface CommitInput { /** User who authored the changes */ @@ -758,6 +786,14 @@ export type InsertNodeAtPathPayloadSelect = { clientMutationId?: boolean; result?: boolean; }; +export interface InsertNodesAtPathsPayload { + clientMutationId?: string | null; + result?: string | null; +} +export type InsertNodesAtPathsPayloadSelect = { + clientMutationId?: boolean; + result?: boolean; +}; export interface ProvisionBucketPayload { /** The access type applied */ accessType: string; @@ -780,6 +816,20 @@ export type ProvisionBucketPayloadSelect = { provider?: boolean; success?: boolean; }; +export interface SetAndCommitPayload { + clientMutationId?: string | null; + commitEdge?: CommitEdge | null; + result?: Commit | null; +} +export type SetAndCommitPayloadSelect = { + clientMutationId?: boolean; + commitEdge?: { + select: CommitEdgeSelect; + }; + result?: { + select: CommitSelect; + }; +}; export interface SetDataAtPathPayload { clientMutationId?: string | null; result?: string | null; @@ -788,6 +838,20 @@ export type SetDataAtPathPayloadSelect = { clientMutationId?: boolean; result?: boolean; }; +export interface SetManyAndCommitPayload { + clientMutationId?: string | null; + commitEdge?: CommitEdge | null; + result?: Commit | null; +} +export type SetManyAndCommitPayloadSelect = { + clientMutationId?: boolean; + commitEdge?: { + select: CommitEdgeSelect; + }; + result?: { + select: CommitSelect; + }; +}; export interface CreateCommitPayload { clientMutationId?: string | null; /** The `Commit` that was created by this mutation. */ diff --git a/sdk/constructive-sdk/src/objects/orm/mutation/index.ts b/sdk/constructive-sdk/src/objects/orm/mutation/index.ts index a0c21cb2bd..7d08bdc42e 100644 --- a/sdk/constructive-sdk/src/objects/orm/mutation/index.ts +++ b/sdk/constructive-sdk/src/objects/orm/mutation/index.ts @@ -9,16 +9,25 @@ import type { InferSelectResult, StrictSelect } from '../select-types'; import type { InitEmptyRepoInput, InsertNodeAtPathInput, + InsertNodesAtPathsInput, ProvisionBucketInput, + SetAndCommitInput, SetDataAtPathInput, + SetManyAndCommitInput, InitEmptyRepoPayload, InsertNodeAtPathPayload, + InsertNodesAtPathsPayload, ProvisionBucketPayload, + SetAndCommitPayload, SetDataAtPathPayload, + SetManyAndCommitPayload, InitEmptyRepoPayloadSelect, InsertNodeAtPathPayloadSelect, + InsertNodesAtPathsPayloadSelect, ProvisionBucketPayloadSelect, + SetAndCommitPayloadSelect, SetDataAtPathPayloadSelect, + SetManyAndCommitPayloadSelect, } from '../input-types'; import { connectionFieldsMap } from '../input-types'; export interface InitEmptyRepoVariables { @@ -27,6 +36,9 @@ export interface InitEmptyRepoVariables { export interface InsertNodeAtPathVariables { input: InsertNodeAtPathInput; } +export interface InsertNodesAtPathsVariables { + input: InsertNodesAtPathsInput; +} /** * Variables for provisionBucket * Provision an S3 bucket for a logical bucket in the database. @@ -37,9 +49,15 @@ and lifecycle settings. export interface ProvisionBucketVariables { input: ProvisionBucketInput; } +export interface SetAndCommitVariables { + input: SetAndCommitInput; +} export interface SetDataAtPathVariables { input: SetDataAtPathInput; } +export interface SetManyAndCommitVariables { + input: SetManyAndCommitInput; +} export function createMutationOperations(client: OrmClient) { return { initEmptyRepo: ( @@ -100,6 +118,35 @@ export function createMutationOperations(client: OrmClient) { 'InsertNodeAtPathPayload' ), }), + insertNodesAtPaths: ( + args: InsertNodesAtPathsVariables, + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + insertNodesAtPaths: InferSelectResult | null; + }>({ + client, + operation: 'mutation', + operationName: 'InsertNodesAtPaths', + fieldName: 'insertNodesAtPaths', + ...buildCustomDocument( + 'mutation', + 'InsertNodesAtPaths', + 'insertNodesAtPaths', + options.select, + args, + [ + { + name: 'input', + type: 'InsertNodesAtPathsInput!', + }, + ], + connectionFieldsMap, + 'InsertNodesAtPathsPayload' + ), + }), provisionBucket: ( args: ProvisionBucketVariables, options: { @@ -129,6 +176,35 @@ export function createMutationOperations(client: OrmClient) { 'ProvisionBucketPayload' ), }), + setAndCommit: ( + args: SetAndCommitVariables, + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + setAndCommit: InferSelectResult | null; + }>({ + client, + operation: 'mutation', + operationName: 'SetAndCommit', + fieldName: 'setAndCommit', + ...buildCustomDocument( + 'mutation', + 'SetAndCommit', + 'setAndCommit', + options.select, + args, + [ + { + name: 'input', + type: 'SetAndCommitInput!', + }, + ], + connectionFieldsMap, + 'SetAndCommitPayload' + ), + }), setDataAtPath: ( args: SetDataAtPathVariables, options: { @@ -158,5 +234,34 @@ export function createMutationOperations(client: OrmClient) { 'SetDataAtPathPayload' ), }), + setManyAndCommit: ( + args: SetManyAndCommitVariables, + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + setManyAndCommit: InferSelectResult | null; + }>({ + client, + operation: 'mutation', + operationName: 'SetManyAndCommit', + fieldName: 'setManyAndCommit', + ...buildCustomDocument( + 'mutation', + 'SetManyAndCommit', + 'setManyAndCommit', + options.select, + args, + [ + { + name: 'input', + type: 'SetManyAndCommitInput!', + }, + ], + connectionFieldsMap, + 'SetManyAndCommitPayload' + ), + }), }; } diff --git a/sdk/constructive-sdk/src/usage/README.md b/sdk/constructive-sdk/src/usage/README.md index 99f27a1620..51cfd0b09f 100644 --- a/sdk/constructive-sdk/src/usage/README.md +++ b/sdk/constructive-sdk/src/usage/README.md @@ -9,7 +9,7 @@ ## Overview - **Tables:** 18 -- **Custom queries:** 0 +- **Custom queries:** 2 - **Custom mutations:** 5 **Generators:** ORM diff --git a/sdk/constructive-sdk/src/usage/orm/README.md b/sdk/constructive-sdk/src/usage/orm/README.md index dfcec601ac..99c23e9f50 100644 --- a/sdk/constructive-sdk/src/usage/orm/README.md +++ b/sdk/constructive-sdk/src/usage/orm/README.md @@ -678,6 +678,28 @@ const deleted = await db.orgLimitWarning.delete({ where: { id: '' } }).exe ## Custom Operations +### `db.query.captureAppLimitDefaults` + +captureAppLimitDefaults + +- **Type:** query +- **Arguments:** none + +```typescript +const result = await db.query.captureAppLimitDefaults().execute(); +``` + +### `db.query.captureOrgLimitDefaults` + +captureOrgLimitDefaults + +- **Type:** query +- **Arguments:** none + +```typescript +const result = await db.query.captureOrgLimitDefaults().execute(); +``` + ### `db.mutation.provisionBucket` Provision an S3 bucket for a logical bucket in the database. diff --git a/sdk/constructive-sdk/src/usage/orm/index.ts b/sdk/constructive-sdk/src/usage/orm/index.ts index 7d48027d3b..04e02a468b 100644 --- a/sdk/constructive-sdk/src/usage/orm/index.ts +++ b/sdk/constructive-sdk/src/usage/orm/index.ts @@ -23,12 +23,14 @@ import { OrgLimitCreditModel } from './models/orgLimitCredit'; import { OrgLimitDefaultModel } from './models/orgLimitDefault'; import { OrgLimitEventModel } from './models/orgLimitEvent'; import { OrgLimitWarningModel } from './models/orgLimitWarning'; +import { createQueryOperations } from './query'; import { createMutationOperations } from './mutation'; export type { OrmClientConfig, QueryResult, GraphQLError, GraphQLAdapter } from './client'; export { GraphQLRequestError, FetchAdapter } from './client'; export { QueryBuilder } from './query-builder'; export * from './select-types'; export * from './models'; +export { createQueryOperations } from './query'; export { createMutationOperations } from './mutation'; /** * Create an ORM client instance @@ -74,6 +76,7 @@ export function createClient(config: OrmClientConfig) { orgLimitDefault: new OrgLimitDefaultModel(client), orgLimitEvent: new OrgLimitEventModel(client), orgLimitWarning: new OrgLimitWarningModel(client), + query: createQueryOperations(client), mutation: createMutationOperations(client), }; } diff --git a/sdk/constructive-sdk/src/usage/orm/input-types.ts b/sdk/constructive-sdk/src/usage/orm/input-types.ts index f8df1c43d8..330559a4a4 100644 --- a/sdk/constructive-sdk/src/usage/orm/input-types.ts +++ b/sdk/constructive-sdk/src/usage/orm/input-types.ts @@ -266,7 +266,7 @@ export interface AppLimit { organizationId?: string | null; /** Temporary credits for the current billing window. Resets to 0 on window expiry. */ periodCredits?: string | null; - /** Ceiling set by the active plan via apply_plan(). Window reset does not change this value. */ + /** Ceiling pinned for this actor by the active plan via apply_plan(). NULL means the ceiling follows the tenant default in the default-limits table, so raising a default reaches rows that already exist. Window reset does not change this value. */ planMax?: string | null; /** Permanent credits from purchases, admin grants, or lifetime rewards. Survives window reset. */ purchasedCredits?: string | null; @@ -277,7 +277,7 @@ export interface AppLimit { /** Start of the current metering window; NULL means no time window */ windowStart?: string | null; } -/** Redeemable credit codes managed by admins with the add_credits permission */ +/** Redeemable credit codes managed by admins with the add_credits capability */ export interface AppLimitCreditCode { /** Human-readable credit code (case-insensitive, unique) */ code?: string | null; @@ -394,7 +394,7 @@ export interface OrgLimitAggregate { organizationId?: string | null; /** Temporary credits for the current billing window. Resets to 0 on window expiry. */ periodCredits?: string | null; - /** Ceiling set by the active plan via apply_plan(). Window reset does not change this value. */ + /** Ceiling pinned for this entity by the active plan via apply_plan(). NULL means the ceiling follows the tenant default in the default-limits table, so raising a default reaches rows that already exist. Window reset does not change this value. */ planMax?: string | null; /** Permanent credits from purchases, admin grants, or lifetime rewards. Survives window reset. */ purchasedCredits?: string | null; @@ -443,7 +443,7 @@ export interface OrgLimit { organizationId?: string | null; /** Temporary credits for the current billing window. Resets to 0 on window expiry. */ periodCredits?: string | null; - /** Ceiling set by the active plan via apply_plan(). Window reset does not change this value. */ + /** Ceiling pinned for this actor by the active plan via apply_plan(). NULL means the ceiling follows the tenant default in the default-limits table, so raising a default reaches rows that already exist. Window reset does not change this value. */ planMax?: string | null; /** Permanent credits from purchases, admin grants, or lifetime rewards. Survives window reset. */ purchasedCredits?: string | null; @@ -2229,7 +2229,7 @@ export interface AppLimitInput { organizationId?: string; /** Temporary credits for the current billing window. Resets to 0 on window expiry. */ periodCredits?: string; - /** Ceiling set by the active plan via apply_plan(). Window reset does not change this value. */ + /** Ceiling pinned for this actor by the active plan via apply_plan(). NULL means the ceiling follows the tenant default in the default-limits table, so raising a default reaches rows that already exist. Window reset does not change this value. */ planMax?: string; /** Permanent credits from purchases, admin grants, or lifetime rewards. Survives window reset. */ purchasedCredits?: string; @@ -2376,7 +2376,7 @@ export interface OrgLimitAggregateInput { organizationId?: string; /** Temporary credits for the current billing window. Resets to 0 on window expiry. */ periodCredits?: string; - /** Ceiling set by the active plan via apply_plan(). Window reset does not change this value. */ + /** Ceiling pinned for this entity by the active plan via apply_plan(). NULL means the ceiling follows the tenant default in the default-limits table, so raising a default reaches rows that already exist. Window reset does not change this value. */ planMax?: string; /** Permanent credits from purchases, admin grants, or lifetime rewards. Survives window reset. */ purchasedCredits?: string; @@ -2425,7 +2425,7 @@ export interface OrgLimitInput { organizationId?: string; /** Temporary credits for the current billing window. Resets to 0 on window expiry. */ periodCredits?: string; - /** Ceiling set by the active plan via apply_plan(). Window reset does not change this value. */ + /** Ceiling pinned for this actor by the active plan via apply_plan(). NULL means the ceiling follows the tenant default in the default-limits table, so raising a default reaches rows that already exist. Window reset does not change this value. */ planMax?: string; /** Permanent credits from purchases, admin grants, or lifetime rewards. Survives window reset. */ purchasedCredits?: string; diff --git a/sdk/constructive-sdk/src/usage/orm/query/index.ts b/sdk/constructive-sdk/src/usage/orm/query/index.ts new file mode 100644 index 0000000000..4972b387c7 --- /dev/null +++ b/sdk/constructive-sdk/src/usage/orm/query/index.ts @@ -0,0 +1,51 @@ +/** + * Custom query operations + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ +import { OrmClient } from '../client'; +import { QueryBuilder, buildCustomDocument } from '../query-builder'; +import type { InferSelectResult, StrictSelect } from '../select-types'; +import { connectionFieldsMap } from '../input-types'; +export function createQueryOperations(client: OrmClient) { + return { + captureAppLimitDefaults: (options?: { select?: Record }) => + new QueryBuilder<{ + captureAppLimitDefaults: unknown | null; + }>({ + client, + operation: 'query', + operationName: 'CaptureAppLimitDefaults', + fieldName: 'captureAppLimitDefaults', + ...buildCustomDocument( + 'query', + 'CaptureAppLimitDefaults', + 'captureAppLimitDefaults', + options?.select, + undefined, + [], + connectionFieldsMap, + undefined + ), + }), + captureOrgLimitDefaults: (options?: { select?: Record }) => + new QueryBuilder<{ + captureOrgLimitDefaults: unknown | null; + }>({ + client, + operation: 'query', + operationName: 'CaptureOrgLimitDefaults', + fieldName: 'captureOrgLimitDefaults', + ...buildCustomDocument( + 'query', + 'CaptureOrgLimitDefaults', + 'captureOrgLimitDefaults', + options?.select, + undefined, + [], + connectionFieldsMap, + undefined + ), + }), + }; +}